From f30db41702d13305cdbee6d09e5a0758fee01077 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 24 Aug 2007 04:15:30 +0000 Subject: [PATCH] [ 1772015 ] Generate java Interface and implementation instead of X_ class --- base/GenerateModel-general.launch | 4 +- .../org/compiere/model/I_AD_AccessLog.java | 177 + base/src/org/compiere/model/I_AD_Alert.java | 192 + .../compiere/model/I_AD_AlertProcessor.java | 186 + .../model/I_AD_AlertProcessorLog.java | 166 + .../compiere/model/I_AD_AlertRecipient.java | 116 + .../org/compiere/model/I_AD_AlertRule.java | 216 + base/src/org/compiere/model/I_AD_Archive.java | 190 + .../org/compiere/model/I_AD_Attachment.java | 140 + .../compiere/model/I_AD_AttachmentNote.java | 127 + .../org/compiere/model/I_AD_Attribute.java | 378 ++ .../compiere/model/I_AD_Attribute_Value.java | 109 + .../org/compiere/model/I_AD_ChangeLog.java | 214 + base/src/org/compiere/model/I_AD_Client.java | 378 ++ .../org/compiere/model/I_AD_ClientInfo.java | 292 ++ .../org/compiere/model/I_AD_ClientShare.java | 127 + base/src/org/compiere/model/I_AD_Color.java | 296 ++ base/src/org/compiere/model/I_AD_Column.java | 499 +++ .../compiere/model/I_AD_Column_Access.java | 131 + base/src/org/compiere/model/I_AD_Desktop.java | 138 + .../compiere/model/I_AD_DesktopWorkbench.java | 114 + base/src/org/compiere/model/I_AD_Element.java | 205 + .../org/compiere/model/I_AD_EntityType.java | 175 + base/src/org/compiere/model/I_AD_Error.java | 108 + base/src/org/compiere/model/I_AD_Field.java | 356 ++ .../org/compiere/model/I_AD_FieldGroup.java | 101 + base/src/org/compiere/model/I_AD_Find.java | 143 + base/src/org/compiere/model/I_AD_Form.java | 179 + .../org/compiere/model/I_AD_Form_Access.java | 103 + base/src/org/compiere/model/I_AD_Image.java | 140 + .../org/compiere/model/I_AD_ImpFormat.java | 132 + .../compiere/model/I_AD_ImpFormat_Row.java | 236 + .../org/compiere/model/I_AD_InfoColumn.java | 224 + .../org/compiere/model/I_AD_InfoWindow.java | 177 + base/src/org/compiere/model/I_AD_Issue.java | 606 +++ .../org/compiere/model/I_AD_LabelPrinter.java | 99 + .../model/I_AD_LabelPrinterFunction.java | 166 + .../src/org/compiere/model/I_AD_Language.java | 195 + .../org/compiere/model/I_AD_LdapAccess.java | 157 + .../compiere/model/I_AD_LdapProcessor.java | 173 + .../compiere/model/I_AD_LdapProcessorLog.java | 166 + base/src/org/compiere/model/I_AD_Menu.java | 256 ++ base/src/org/compiere/model/I_AD_Message.java | 140 + .../org/compiere/model/I_AD_Modification.java | 155 + base/src/org/compiere/model/I_AD_Note.java | 205 + base/src/org/compiere/model/I_AD_Org.java | 112 + base/src/org/compiere/model/I_AD_OrgInfo.java | 155 + base/src/org/compiere/model/I_AD_OrgType.java | 114 + .../org/compiere/model/I_AD_PInstance.java | 147 + .../compiere/model/I_AD_PInstance_Log.java | 128 + .../compiere/model/I_AD_PInstance_Para.java | 199 + .../org/compiere/model/I_AD_Package_Exp.java | 205 + .../model/I_AD_Package_Exp_Common.java | 346 ++ .../model/I_AD_Package_Exp_Detail.java | 425 ++ .../org/compiere/model/I_AD_Package_Imp.java | 201 + .../model/I_AD_Package_Imp_Backup.java | 162 + .../model/I_AD_Package_Imp_Detail.java | 179 + .../compiere/model/I_AD_Package_Imp_Inst.java | 201 + .../compiere/model/I_AD_Package_Imp_Proc.java | 126 + .../org/compiere/model/I_AD_Preference.java | 125 + .../org/compiere/model/I_AD_PrintColor.java | 112 + .../org/compiere/model/I_AD_PrintFont.java | 112 + .../org/compiere/model/I_AD_PrintForm.java | 229 + .../org/compiere/model/I_AD_PrintFormat.java | 302 ++ .../compiere/model/I_AD_PrintFormatItem.java | 748 ++++ .../org/compiere/model/I_AD_PrintGraph.java | 205 + .../org/compiere/model/I_AD_PrintLabel.java | 179 + .../compiere/model/I_AD_PrintLabelLine.java | 198 + .../org/compiere/model/I_AD_PrintPaper.java | 238 + .../compiere/model/I_AD_PrintTableFormat.java | 437 ++ .../compiere/model/I_AD_Private_Access.java | 103 + base/src/org/compiere/model/I_AD_Process.java | 333 ++ .../compiere/model/I_AD_Process_Access.java | 103 + .../org/compiere/model/I_AD_Process_Para.java | 343 ++ .../compiere/model/I_AD_Record_Access.java | 142 + .../src/org/compiere/model/I_AD_Ref_List.java | 168 + .../org/compiere/model/I_AD_Ref_Table.java | 170 + .../org/compiere/model/I_AD_Reference.java | 155 + .../org/compiere/model/I_AD_Registration.java | 294 ++ .../org/compiere/model/I_AD_Replication.java | 266 ++ .../model/I_AD_ReplicationStrategy.java | 127 + .../compiere/model/I_AD_ReplicationTable.java | 131 + .../compiere/model/I_AD_Replication_Log.java | 125 + .../compiere/model/I_AD_Replication_Run.java | 127 + .../org/compiere/model/I_AD_ReportView.java | 155 + .../compiere/model/I_AD_ReportView_Col.java | 125 + base/src/org/compiere/model/I_AD_Role.java | 473 ++ .../compiere/model/I_AD_Role_OrgAccess.java | 88 + .../org/compiere/model/I_AD_Scheduler.java | 240 + .../org/compiere/model/I_AD_SchedulerLog.java | 166 + .../model/I_AD_SchedulerRecipient.java | 116 + .../compiere/model/I_AD_Scheduler_Para.java | 112 + .../src/org/compiere/model/I_AD_Sequence.java | 244 + .../compiere/model/I_AD_Sequence_Audit.java | 116 + .../org/compiere/model/I_AD_Sequence_No.java | 101 + base/src/org/compiere/model/I_AD_Session.java | 125 + .../org/compiere/model/I_AD_SysConfig.java | 108 + base/src/org/compiere/model/I_AD_System.java | 455 ++ base/src/org/compiere/model/I_AD_Tab.java | 460 ++ base/src/org/compiere/model/I_AD_Table.java | 305 ++ .../org/compiere/model/I_AD_Table_Access.java | 155 + base/src/org/compiere/model/I_AD_Task.java | 166 + .../org/compiere/model/I_AD_TaskInstance.java | 82 + .../org/compiere/model/I_AD_Task_Access.java | 103 + base/src/org/compiere/model/I_AD_Tree.java | 147 + base/src/org/compiere/model/I_AD_TreeBar.java | 99 + .../src/org/compiere/model/I_AD_TreeNode.java | 112 + .../org/compiere/model/I_AD_TreeNodeBP.java | 112 + .../org/compiere/model/I_AD_TreeNodeCMC.java | 112 + .../org/compiere/model/I_AD_TreeNodeCMM.java | 112 + .../org/compiere/model/I_AD_TreeNodeCMS.java | 112 + .../org/compiere/model/I_AD_TreeNodeCMT.java | 112 + .../org/compiere/model/I_AD_TreeNodeMM.java | 112 + .../org/compiere/model/I_AD_TreeNodePR.java | 112 + .../org/compiere/model/I_AD_TreeNodeU1.java | 112 + .../org/compiere/model/I_AD_TreeNodeU2.java | 112 + .../org/compiere/model/I_AD_TreeNodeU3.java | 112 + .../org/compiere/model/I_AD_TreeNodeU4.java | 112 + base/src/org/compiere/model/I_AD_User.java | 439 ++ .../org/compiere/model/I_AD_UserBPAccess.java | 127 + .../compiere/model/I_AD_UserDef_Field.java | 255 ++ .../org/compiere/model/I_AD_UserDef_Tab.java | 173 + .../org/compiere/model/I_AD_UserDef_Win.java | 205 + .../src/org/compiere/model/I_AD_UserMail.java | 177 + .../org/compiere/model/I_AD_UserQuery.java | 140 + .../compiere/model/I_AD_User_OrgAccess.java | 88 + .../org/compiere/model/I_AD_User_Roles.java | 86 + .../compiere/model/I_AD_User_Substitute.java | 151 + .../src/org/compiere/model/I_AD_Val_Rule.java | 140 + .../org/compiere/model/I_AD_WF_Activity.java | 287 ++ .../model/I_AD_WF_ActivityResult.java | 140 + .../src/org/compiere/model/I_AD_WF_Block.java | 114 + .../compiere/model/I_AD_WF_EventAudit.java | 263 ++ .../compiere/model/I_AD_WF_NextCondition.java | 185 + base/src/org/compiere/model/I_AD_WF_Node.java | 602 +++ .../org/compiere/model/I_AD_WF_NodeNext.java | 170 + .../org/compiere/model/I_AD_WF_Node_Para.java | 153 + .../org/compiere/model/I_AD_WF_Process.java | 218 + .../compiere/model/I_AD_WF_ProcessData.java | 114 + .../compiere/model/I_AD_WF_Responsible.java | 155 + base/src/org/compiere/model/I_AD_Window.java | 236 + .../compiere/model/I_AD_Window_Access.java | 103 + .../org/compiere/model/I_AD_Workbench.java | 166 + .../compiere/model/I_AD_WorkbenchWindow.java | 187 + .../src/org/compiere/model/I_AD_Workflow.java | 428 ++ .../model/I_AD_WorkflowProcessor.java | 225 + .../model/I_AD_WorkflowProcessorLog.java | 166 + .../compiere/model/I_AD_Workflow_Access.java | 103 + base/src/org/compiere/model/I_A_Asset.java | 614 +++ .../compiere/model/I_A_Asset_Delivery.java | 285 ++ .../org/compiere/model/I_A_Asset_Group.java | 177 + .../compiere/model/I_A_Asset_Retirement.java | 127 + .../org/compiere/model/I_A_Registration.java | 266 ++ .../model/I_A_RegistrationAttribute.java | 166 + .../model/I_A_RegistrationProduct.java | 101 + .../compiere/model/I_A_RegistrationValue.java | 116 + base/src/org/compiere/model/I_B_Bid.java | 166 + .../org/compiere/model/I_B_BidComment.java | 116 + base/src/org/compiere/model/I_B_Buyer.java | 114 + .../org/compiere/model/I_B_BuyerFunds.java | 140 + base/src/org/compiere/model/I_B_Offer.java | 166 + base/src/org/compiere/model/I_B_Seller.java | 127 + .../org/compiere/model/I_B_SellerFunds.java | 140 + base/src/org/compiere/model/I_B_Topic.java | 226 + .../org/compiere/model/I_B_TopicCategory.java | 114 + .../src/org/compiere/model/I_B_TopicType.java | 162 + .../compiere/model/I_CM_AccessContainer.java | 90 + .../model/I_CM_AccessListBPGroup.java | 90 + .../compiere/model/I_CM_AccessListRole.java | 90 + .../org/compiere/model/I_CM_AccessMedia.java | 90 + .../model/I_CM_AccessNewsChannel.java | 90 + .../compiere/model/I_CM_AccessProfile.java | 125 + .../org/compiere/model/I_CM_AccessStage.java | 90 + base/src/org/compiere/model/I_CM_Ad.java | 298 ++ base/src/org/compiere/model/I_CM_Ad_Cat.java | 127 + .../compiere/model/I_CM_BroadcastServer.java | 153 + base/src/org/compiere/model/I_CM_CStage.java | 439 ++ .../org/compiere/model/I_CM_CStageTTable.java | 168 + .../compiere/model/I_CM_CStage_Element.java | 153 + base/src/org/compiere/model/I_CM_Chat.java | 155 + .../org/compiere/model/I_CM_ChatEntry.java | 194 + .../src/org/compiere/model/I_CM_ChatType.java | 127 + .../compiere/model/I_CM_ChatTypeUpdate.java | 103 + .../org/compiere/model/I_CM_ChatUpdate.java | 103 + .../org/compiere/model/I_CM_Container.java | 417 ++ .../compiere/model/I_CM_ContainerTTable.java | 168 + .../model/I_CM_Container_Element.java | 153 + .../compiere/model/I_CM_Container_URL.java | 127 + base/src/org/compiere/model/I_CM_Media.java | 184 + .../org/compiere/model/I_CM_MediaDeploy.java | 142 + .../org/compiere/model/I_CM_Media_Server.java | 205 + .../org/compiere/model/I_CM_NewsChannel.java | 153 + .../src/org/compiere/model/I_CM_NewsItem.java | 166 + .../src/org/compiere/model/I_CM_Template.java | 240 + .../compiere/model/I_CM_TemplateTable.java | 155 + .../compiere/model/I_CM_Template_Ad_Cat.java | 116 + .../org/compiere/model/I_CM_WebAccessLog.java | 299 ++ .../org/compiere/model/I_CM_WebProject.java | 231 + .../model/I_CM_WebProject_Domain.java | 155 + .../org/compiere/model/I_CM_WikiToken.java | 166 + .../org/compiere/model/I_C_AcctProcessor.java | 216 + .../compiere/model/I_C_AcctProcessorLog.java | 166 + .../org/compiere/model/I_C_AcctSchema.java | 400 ++ .../model/I_C_AcctSchema_Default.java | 864 ++++ .../model/I_C_AcctSchema_Element.java | 300 ++ .../org/compiere/model/I_C_AcctSchema_GL.java | 207 + base/src/org/compiere/model/I_C_Activity.java | 138 + .../org/compiere/model/I_C_AllocationHdr.java | 240 + .../compiere/model/I_C_AllocationLine.java | 231 + .../compiere/model/I_C_BP_BankAccount.java | 387 ++ .../compiere/model/I_C_BP_Customer_Acct.java | 129 + base/src/org/compiere/model/I_C_BP_EDI.java | 306 ++ .../compiere/model/I_C_BP_Employee_Acct.java | 116 + base/src/org/compiere/model/I_C_BP_Group.java | 261 ++ .../org/compiere/model/I_C_BP_Group_Acct.java | 268 ++ .../org/compiere/model/I_C_BP_Relation.java | 205 + .../compiere/model/I_C_BP_Vendor_Acct.java | 129 + .../compiere/model/I_C_BP_Withholding.java | 127 + base/src/org/compiere/model/I_C_BPartner.java | 822 ++++ .../compiere/model/I_C_BPartner_Location.java | 231 + .../compiere/model/I_C_BPartner_Product.java | 177 + base/src/org/compiere/model/I_C_Bank.java | 151 + .../org/compiere/model/I_C_BankAccount.java | 207 + .../compiere/model/I_C_BankAccountDoc.java | 153 + .../compiere/model/I_C_BankAccount_Acct.java | 246 + .../org/compiere/model/I_C_BankStatement.java | 301 ++ .../compiere/model/I_C_BankStatementLine.java | 500 +++ .../model/I_C_BankStatementLoader.java | 322 ++ .../model/I_C_BankStatementMatcher.java | 127 + base/src/org/compiere/model/I_C_Calendar.java | 99 + base/src/org/compiere/model/I_C_Campaign.java | 179 + base/src/org/compiere/model/I_C_Cash.java | 337 ++ base/src/org/compiere/model/I_C_CashBook.java | 127 + .../org/compiere/model/I_C_CashBook_Acct.java | 155 + base/src/org/compiere/model/I_C_CashLine.java | 248 + base/src/org/compiere/model/I_C_Channel.java | 114 + base/src/org/compiere/model/I_C_Charge.java | 175 + .../org/compiere/model/I_C_Charge_Acct.java | 116 + base/src/org/compiere/model/I_C_City.java | 166 + .../org/compiere/model/I_C_Commission.java | 216 + .../org/compiere/model/I_C_CommissionAmt.java | 142 + .../compiere/model/I_C_CommissionDetail.java | 194 + .../compiere/model/I_C_CommissionLine.java | 276 ++ .../org/compiere/model/I_C_CommissionRun.java | 162 + .../compiere/model/I_C_ConversionType.java | 125 + .../compiere/model/I_C_Conversion_Rate.java | 166 + base/src/org/compiere/model/I_C_Country.java | 380 ++ base/src/org/compiere/model/I_C_Currency.java | 190 + .../org/compiere/model/I_C_Currency_Acct.java | 142 + base/src/org/compiere/model/I_C_Cycle.java | 114 + .../org/compiere/model/I_C_CyclePhase.java | 90 + .../src/org/compiere/model/I_C_CycleStep.java | 129 + base/src/org/compiere/model/I_C_DocType.java | 415 ++ .../compiere/model/I_C_DocTypeCounter.java | 175 + base/src/org/compiere/model/I_C_Dunning.java | 138 + .../org/compiere/model/I_C_DunningLevel.java | 294 ++ .../org/compiere/model/I_C_DunningRun.java | 141 + .../compiere/model/I_C_DunningRunEntry.java | 209 + .../compiere/model/I_C_DunningRunLine.java | 244 + base/src/org/compiere/model/I_C_Element.java | 168 + .../org/compiere/model/I_C_ElementValue.java | 313 ++ base/src/org/compiere/model/I_C_Greeting.java | 143 + .../org/compiere/model/I_C_InterOrg_Acct.java | 114 + base/src/org/compiere/model/I_C_Invoice.java | 776 ++++ .../org/compiere/model/I_C_InvoiceBatch.java | 216 + .../compiere/model/I_C_InvoiceBatchLine.java | 423 ++ .../org/compiere/model/I_C_InvoiceLine.java | 557 +++ .../model/I_C_InvoicePaySchedule.java | 188 + .../compiere/model/I_C_InvoiceSchedule.java | 216 + .../org/compiere/model/I_C_InvoiceTax.java | 140 + base/src/org/compiere/model/I_C_Job.java | 140 + .../org/compiere/model/I_C_JobAssignment.java | 140 + .../org/compiere/model/I_C_JobCategory.java | 112 + .../compiere/model/I_C_JobRemuneration.java | 142 + .../org/compiere/model/I_C_LandedCost.java | 177 + .../model/I_C_LandedCostAllocation.java | 166 + base/src/org/compiere/model/I_C_Location.java | 220 + .../compiere/model/I_C_NonBusinessDay.java | 114 + base/src/org/compiere/model/I_C_Order.java | 930 ++++ .../src/org/compiere/model/I_C_OrderLine.java | 680 +++ base/src/org/compiere/model/I_C_OrderTax.java | 140 + .../org/compiere/model/I_C_OrgAssignment.java | 125 + base/src/org/compiere/model/I_C_POS.java | 239 + base/src/org/compiere/model/I_C_POSKey.java | 170 + .../org/compiere/model/I_C_POSKeyLayout.java | 112 + .../org/compiere/model/I_C_PaySchedule.java | 179 + .../org/compiere/model/I_C_PaySelection.java | 188 + .../compiere/model/I_C_PaySelectionCheck.java | 233 + .../compiere/model/I_C_PaySelectionLine.java | 246 + base/src/org/compiere/model/I_C_Payment.java | 1073 +++++ .../compiere/model/I_C_PaymentAllocate.java | 190 + .../org/compiere/model/I_C_PaymentBatch.java | 145 + .../compiere/model/I_C_PaymentProcessor.java | 467 ++ .../org/compiere/model/I_C_PaymentTerm.java | 329 ++ base/src/org/compiere/model/I_C_Period.java | 162 + .../org/compiere/model/I_C_PeriodControl.java | 132 + base/src/org/compiere/model/I_C_Phase.java | 168 + base/src/org/compiere/model/I_C_Project.java | 566 +++ .../org/compiere/model/I_C_ProjectIssue.java | 240 + .../compiere/model/I_C_ProjectIssueMA.java | 101 + .../org/compiere/model/I_C_ProjectLine.java | 352 ++ .../org/compiere/model/I_C_ProjectPhase.java | 313 ++ .../org/compiere/model/I_C_ProjectTask.java | 222 + .../org/compiere/model/I_C_ProjectType.java | 125 + .../org/compiere/model/I_C_Project_Acct.java | 116 + .../src/org/compiere/model/I_C_Recurring.java | 277 ++ .../org/compiere/model/I_C_Recurring_Run.java | 166 + base/src/org/compiere/model/I_C_Region.java | 127 + .../org/compiere/model/I_C_Remuneration.java | 190 + .../model/I_C_RevenueRecognition.java | 130 + .../model/I_C_RevenueRecognition_Plan.java | 179 + .../model/I_C_RevenueRecognition_Run.java | 112 + base/src/org/compiere/model/I_C_RfQ.java | 438 ++ base/src/org/compiere/model/I_C_RfQLine.java | 192 + .../org/compiere/model/I_C_RfQLineQty.java | 207 + .../org/compiere/model/I_C_RfQResponse.java | 361 ++ .../compiere/model/I_C_RfQResponseLine.java | 194 + .../model/I_C_RfQResponseLineQty.java | 142 + .../src/org/compiere/model/I_C_RfQ_Topic.java | 127 + .../model/I_C_RfQ_TopicSubscriber.java | 157 + .../model/I_C_RfQ_TopicSubscriberOnly.java | 129 + .../org/compiere/model/I_C_SalesRegion.java | 151 + .../org/compiere/model/I_C_ServiceLevel.java | 162 + .../compiere/model/I_C_ServiceLevelLine.java | 140 + base/src/org/compiere/model/I_C_SubAcct.java | 140 + .../org/compiere/model/I_C_Subscription.java | 175 + .../compiere/model/I_C_SubscriptionType.java | 125 + .../model/I_C_Subscription_Delivery.java | 88 + base/src/org/compiere/model/I_C_Task.java | 168 + base/src/org/compiere/model/I_C_Tax.java | 309 ++ .../org/compiere/model/I_C_TaxCategory.java | 125 + .../compiere/model/I_C_TaxDeclaration.java | 160 + .../model/I_C_TaxDeclarationAcct.java | 255 ++ .../model/I_C_TaxDeclarationLine.java | 248 + .../src/org/compiere/model/I_C_TaxPostal.java | 114 + base/src/org/compiere/model/I_C_Tax_Acct.java | 155 + base/src/org/compiere/model/I_C_UOM.java | 164 + .../compiere/model/I_C_UOM_Conversion.java | 140 + .../compiere/model/I_C_UserRemuneration.java | 192 + .../compiere/model/I_C_ValidCombination.java | 337 ++ .../org/compiere/model/I_C_Withholding.java | 257 ++ .../compiere/model/I_C_Withholding_Acct.java | 103 + base/src/org/compiere/model/I_C_Year.java | 123 + base/src/org/compiere/model/I_Fact_Acct.java | 595 +++ .../compiere/model/I_Fact_Acct_Balance.java | 390 ++ base/src/org/compiere/model/I_GL_Budget.java | 125 + .../compiere/model/I_GL_BudgetControl.java | 181 + .../src/org/compiere/model/I_GL_Category.java | 138 + .../org/compiere/model/I_GL_Distribution.java | 534 +++ .../compiere/model/I_GL_DistributionLine.java | 473 ++ base/src/org/compiere/model/I_GL_Fund.java | 166 + .../compiere/model/I_GL_FundRestriction.java | 127 + base/src/org/compiere/model/I_GL_Journal.java | 395 ++ .../org/compiere/model/I_GL_JournalBatch.java | 309 ++ .../org/compiere/model/I_GL_JournalLine.java | 289 ++ base/src/org/compiere/model/I_I_BPartner.java | 586 +++ .../org/compiere/model/I_I_BankStatement.java | 717 +++ .../compiere/model/I_I_Conversion_Rate.java | 283 ++ .../org/compiere/model/I_I_ElementValue.java | 359 ++ .../src/org/compiere/model/I_I_GLJournal.java | 845 ++++ .../compiere/model/I_I_InOutLineConfirm.java | 199 + .../src/org/compiere/model/I_I_Inventory.java | 359 ++ base/src/org/compiere/model/I_I_Invoice.java | 728 +++ base/src/org/compiere/model/I_I_Order.java | 799 ++++ base/src/org/compiere/model/I_I_Payment.java | 857 ++++ base/src/org/compiere/model/I_I_Product.java | 658 +++ .../org/compiere/model/I_I_ReportLine.java | 310 ++ base/src/org/compiere/model/I_K_Category.java | 112 + .../org/compiere/model/I_K_CategoryValue.java | 114 + base/src/org/compiere/model/I_K_Comment.java | 140 + base/src/org/compiere/model/I_K_Entry.java | 209 + .../org/compiere/model/I_K_EntryCategory.java | 103 + .../org/compiere/model/I_K_EntryRelated.java | 99 + base/src/org/compiere/model/I_K_Index.java | 185 + base/src/org/compiere/model/I_K_IndexLog.java | 112 + .../src/org/compiere/model/I_K_IndexStop.java | 144 + base/src/org/compiere/model/I_K_Source.java | 99 + base/src/org/compiere/model/I_K_Synonym.java | 112 + base/src/org/compiere/model/I_K_Topic.java | 153 + base/src/org/compiere/model/I_K_Type.java | 138 + .../src/org/compiere/model/I_M_Attribute.java | 153 + .../compiere/model/I_M_AttributeInstance.java | 129 + .../compiere/model/I_M_AttributeSearch.java | 99 + .../org/compiere/model/I_M_AttributeSet.java | 298 ++ .../model/I_M_AttributeSetExclude.java | 116 + .../model/I_M_AttributeSetInstance.java | 153 + .../org/compiere/model/I_M_AttributeUse.java | 105 + .../compiere/model/I_M_AttributeValue.java | 127 + base/src/org/compiere/model/I_M_BOM.java | 175 + .../compiere/model/I_M_BOMAlternative.java | 112 + .../org/compiere/model/I_M_BOMProduct.java | 265 ++ .../org/compiere/model/I_M_ChangeNotice.java | 160 + .../org/compiere/model/I_M_ChangeRequest.java | 207 + base/src/org/compiere/model/I_M_Cost.java | 244 + .../org/compiere/model/I_M_CostDetail.java | 324 ++ .../org/compiere/model/I_M_CostElement.java | 138 + .../src/org/compiere/model/I_M_CostQueue.java | 170 + base/src/org/compiere/model/I_M_CostType.java | 112 + base/src/org/compiere/model/I_M_Demand.java | 164 + .../org/compiere/model/I_M_DemandDetail.java | 127 + .../org/compiere/model/I_M_DemandLine.java | 142 + .../compiere/model/I_M_DiscountSchema.java | 199 + .../model/I_M_DiscountSchemaBreak.java | 170 + .../model/I_M_DiscountSchemaLine.java | 449 ++ .../compiere/model/I_M_DistributionList.java | 134 + .../model/I_M_DistributionListLine.java | 155 + .../compiere/model/I_M_DistributionRun.java | 149 + .../model/I_M_DistributionRunLine.java | 168 + base/src/org/compiere/model/I_M_EDI.java | 276 ++ base/src/org/compiere/model/I_M_EDI_Info.java | 93 + base/src/org/compiere/model/I_M_Forecast.java | 164 + .../org/compiere/model/I_M_ForecastLine.java | 142 + base/src/org/compiere/model/I_M_Freight.java | 200 + .../compiere/model/I_M_FreightCategory.java | 125 + base/src/org/compiere/model/I_M_InOut.java | 775 ++++ .../org/compiere/model/I_M_InOutConfirm.java | 273 ++ .../src/org/compiere/model/I_M_InOutLine.java | 447 ++ .../compiere/model/I_M_InOutLineConfirm.java | 218 + .../org/compiere/model/I_M_InOutLineMA.java | 99 + .../src/org/compiere/model/I_M_Inventory.java | 350 ++ .../org/compiere/model/I_M_InventoryLine.java | 259 ++ .../compiere/model/I_M_InventoryLineMA.java | 99 + base/src/org/compiere/model/I_M_Locator.java | 166 + base/src/org/compiere/model/I_M_Lot.java | 166 + base/src/org/compiere/model/I_M_LotCtl.java | 164 + .../org/compiere/model/I_M_LotCtlExclude.java | 116 + base/src/org/compiere/model/I_M_MatchInv.java | 225 + base/src/org/compiere/model/I_M_MatchPO.java | 264 ++ base/src/org/compiere/model/I_M_Movement.java | 324 ++ .../compiere/model/I_M_MovementConfirm.java | 199 + .../org/compiere/model/I_M_MovementLine.java | 244 + .../model/I_M_MovementLineConfirm.java | 192 + .../compiere/model/I_M_MovementLineMA.java | 99 + .../compiere/model/I_M_OperationResource.java | 196 + base/src/org/compiere/model/I_M_Package.java | 177 + .../org/compiere/model/I_M_PackageLine.java | 129 + .../org/compiere/model/I_M_PerpetualInv.java | 216 + .../src/org/compiere/model/I_M_PriceList.java | 192 + .../compiere/model/I_M_PriceList_Version.java | 164 + base/src/org/compiere/model/I_M_Product.java | 724 +++ .../compiere/model/I_M_ProductDownload.java | 112 + .../compiere/model/I_M_ProductOperation.java | 164 + .../org/compiere/model/I_M_ProductPrice.java | 127 + .../org/compiere/model/I_M_Product_Acct.java | 220 + .../org/compiere/model/I_M_Product_BOM.java | 147 + .../compiere/model/I_M_Product_Category.java | 203 + .../model/I_M_Product_Category_Acct.java | 255 ++ .../compiere/model/I_M_Product_Costing.java | 266 ++ .../org/compiere/model/I_M_Product_PO.java | 363 ++ .../org/compiere/model/I_M_Production.java | 240 + .../compiere/model/I_M_ProductionLine.java | 179 + .../compiere/model/I_M_ProductionLineMA.java | 99 + .../compiere/model/I_M_ProductionPlan.java | 166 + base/src/org/compiere/model/I_M_RMA.java | 320 ++ base/src/org/compiere/model/I_M_RMALine.java | 209 + base/src/org/compiere/model/I_M_RMAType.java | 112 + .../compiere/model/I_M_RelatedProduct.java | 121 + .../src/org/compiere/model/I_M_Replenish.java | 140 + .../org/compiere/model/I_M_Requisition.java | 298 ++ .../compiere/model/I_M_RequisitionLine.java | 207 + base/src/org/compiere/model/I_M_SerNoCtl.java | 164 + .../compiere/model/I_M_SerNoCtlExclude.java | 116 + base/src/org/compiere/model/I_M_Shipper.java | 125 + base/src/org/compiere/model/I_M_Storage.java | 151 + .../org/compiere/model/I_M_Substitute.java | 112 + .../org/compiere/model/I_M_Transaction.java | 212 + .../model/I_M_TransactionAllocation.java | 238 + .../src/org/compiere/model/I_M_Warehouse.java | 164 + .../compiere/model/I_M_Warehouse_Acct.java | 142 + .../org/compiere/model/I_PA_Achievement.java | 181 + .../org/compiere/model/I_PA_Benchmark.java | 125 + .../compiere/model/I_PA_BenchmarkData.java | 140 + .../org/compiere/model/I_PA_ColorSchema.java | 218 + .../compiere/model/I_PA_DashboardContent.java | 147 + base/src/org/compiere/model/I_PA_Goal.java | 328 ++ .../compiere/model/I_PA_GoalRestriction.java | 183 + .../org/compiere/model/I_PA_Hierarchy.java | 216 + base/src/org/compiere/model/I_PA_Measure.java | 254 ++ .../org/compiere/model/I_PA_MeasureCalc.java | 220 + base/src/org/compiere/model/I_PA_Ratio.java | 127 + .../org/compiere/model/I_PA_RatioElement.java | 222 + base/src/org/compiere/model/I_PA_Report.java | 205 + .../org/compiere/model/I_PA_ReportColumn.java | 421 ++ .../compiere/model/I_PA_ReportColumnSet.java | 108 + .../org/compiere/model/I_PA_ReportLine.java | 245 + .../compiere/model/I_PA_ReportLineSet.java | 104 + .../org/compiere/model/I_PA_ReportSource.java | 239 + .../org/compiere/model/I_PA_SLA_Criteria.java | 138 + .../src/org/compiere/model/I_PA_SLA_Goal.java | 227 + .../org/compiere/model/I_PA_SLA_Measure.java | 175 + .../src/org/compiere/model/I_RV_BPartner.java | 1233 +++++ .../compiere/model/I_RV_WarehousePrice.java | 313 ++ base/src/org/compiere/model/I_R_Category.java | 125 + .../compiere/model/I_R_CategoryUpdates.java | 101 + .../compiere/model/I_R_ContactInterest.java | 116 + base/src/org/compiere/model/I_R_Group.java | 140 + .../org/compiere/model/I_R_GroupUpdates.java | 101 + .../org/compiere/model/I_R_InterestArea.java | 125 + .../org/compiere/model/I_R_IssueKnown.java | 231 + .../org/compiere/model/I_R_IssueProject.java | 164 + .../model/I_R_IssueRecommendation.java | 112 + .../org/compiere/model/I_R_IssueStatus.java | 99 + .../org/compiere/model/I_R_IssueSystem.java | 138 + .../src/org/compiere/model/I_R_IssueUser.java | 112 + base/src/org/compiere/model/I_R_MailText.java | 151 + base/src/org/compiere/model/I_R_Request.java | 827 ++++ .../org/compiere/model/I_R_RequestAction.java | 576 +++ .../compiere/model/I_R_RequestProcessor.java | 253 ++ .../model/I_R_RequestProcessorLog.java | 166 + .../model/I_R_RequestProcessor_Route.java | 146 + .../org/compiere/model/I_R_RequestType.java | 257 ++ .../model/I_R_RequestTypeUpdates.java | 101 + .../org/compiere/model/I_R_RequestUpdate.java | 179 + .../compiere/model/I_R_RequestUpdates.java | 101 + .../org/compiere/model/I_R_Resolution.java | 112 + .../compiere/model/I_R_StandardResponse.java | 99 + base/src/org/compiere/model/I_R_Status.java | 259 ++ .../compiere/model/I_R_StatusCategory.java | 125 + .../org/compiere/model/I_S_ExpenseType.java | 170 + base/src/org/compiere/model/I_S_Resource.java | 175 + .../model/I_S_ResourceAssignment.java | 166 + .../org/compiere/model/I_S_ResourceType.java | 331 ++ .../model/I_S_ResourceUnAvailable.java | 123 + .../org/compiere/model/I_S_TimeExpense.java | 229 + .../compiere/model/I_S_TimeExpenseLine.java | 468 ++ base/src/org/compiere/model/I_S_TimeType.java | 112 + base/src/org/compiere/model/I_S_Training.java | 205 + .../compiere/model/I_S_Training_Class.java | 127 + base/src/org/compiere/model/I_T_Aging.java | 466 ++ .../model/I_T_DistributionRunDetail.java | 190 + .../compiere/model/I_T_InventoryValue.java | 343 ++ .../src/org/compiere/model/I_T_InvoiceGL.java | 279 ++ .../src/org/compiere/model/I_T_Replenish.java | 270 ++ base/src/org/compiere/model/I_T_Report.java | 347 ++ .../compiere/model/I_T_ReportStatement.java | 180 + .../org/compiere/model/I_T_Transaction.java | 329 ++ base/src/org/compiere/model/I_Test.java | 314 ++ .../org/compiere/model/I_W_Advertisement.java | 322 ++ base/src/org/compiere/model/I_W_Basket.java | 136 + .../org/compiere/model/I_W_BasketLine.java | 162 + base/src/org/compiere/model/I_W_Click.java | 205 + .../org/compiere/model/I_W_ClickCount.java | 138 + base/src/org/compiere/model/I_W_Counter.java | 201 + .../org/compiere/model/I_W_CounterCount.java | 134 + base/src/org/compiere/model/I_W_MailMsg.java | 179 + base/src/org/compiere/model/I_W_Store.java | 521 +++ .../org/compiere/model/X_AD_AccessLog.java | 501 ++- base/src/org/compiere/model/X_AD_Alert.java | 594 +-- .../compiere/model/X_AD_AlertProcessor.java | 537 +-- .../model/X_AD_AlertProcessorLog.java | 460 +- .../compiere/model/X_AD_AlertRecipient.java | 329 +- .../org/compiere/model/X_AD_AlertRule.java | 676 +-- base/src/org/compiere/model/X_AD_Archive.java | 546 +-- .../org/compiere/model/X_AD_Attachment.java | 392 +- .../compiere/model/X_AD_AttachmentNote.java | 366 +- .../org/compiere/model/X_AD_Attribute.java | 1175 ++--- .../compiere/model/X_AD_Attribute_Value.java | 304 +- .../org/compiere/model/X_AD_ChangeLog.java | 674 +-- base/src/org/compiere/model/X_AD_Client.java | 1268 +++--- .../org/compiere/model/X_AD_ClientInfo.java | 841 ++-- .../org/compiere/model/X_AD_ClientShare.java | 374 +- base/src/org/compiere/model/X_AD_Color.java | 892 ++-- base/src/org/compiere/model/X_AD_Column.java | 1591 ++++--- .../compiere/model/X_AD_Column_Access.java | 398 +- base/src/org/compiere/model/X_AD_Desktop.java | 384 +- .../compiere/model/X_AD_DesktopWorkbench.java | 327 +- base/src/org/compiere/model/X_AD_Element.java | 605 +-- .../org/compiere/model/X_AD_EntityType.java | 516 +-- base/src/org/compiere/model/X_AD_Error.java | 300 +- base/src/org/compiere/model/X_AD_Field.java | 1135 ++--- .../org/compiere/model/X_AD_FieldGroup.java | 267 +- base/src/org/compiere/model/X_AD_Find.java | 463 +- base/src/org/compiere/model/X_AD_Form.java | 540 +-- .../org/compiere/model/X_AD_Form_Access.java | 281 +- base/src/org/compiere/model/X_AD_Image.java | 380 +- .../org/compiere/model/X_AD_ImpFormat.java | 417 +- .../compiere/model/X_AD_ImpFormat_Row.java | 754 ++-- .../org/compiere/model/X_AD_InfoColumn.java | 680 +-- .../org/compiere/model/X_AD_InfoWindow.java | 534 +-- base/src/org/compiere/model/X_AD_Issue.java | 1959 ++++---- .../org/compiere/model/X_AD_LabelPrinter.java | 263 +- .../model/X_AD_LabelPrinterFunction.java | 489 +- .../src/org/compiere/model/X_AD_Language.java | 610 +-- .../org/compiere/model/X_AD_LdapAccess.java | 473 +- .../compiere/model/X_AD_LdapProcessor.java | 484 +- .../compiere/model/X_AD_LdapProcessorLog.java | 460 +- base/src/org/compiere/model/X_AD_Menu.java | 846 ++-- base/src/org/compiere/model/X_AD_Message.java | 409 +- .../org/compiere/model/X_AD_Modification.java | 430 +- base/src/org/compiere/model/X_AD_Note.java | 632 +-- base/src/org/compiere/model/X_AD_Org.java | 314 +- base/src/org/compiere/model/X_AD_OrgInfo.java | 443 +- base/src/org/compiere/model/X_AD_OrgType.java | 319 +- .../org/compiere/model/X_AD_PInstance.java | 447 +- .../compiere/model/X_AD_PInstance_Log.java | 358 +- .../compiere/model/X_AD_PInstance_Para.java | 565 +-- .../org/compiere/model/X_AD_Package_Exp.java | 736 +-- .../model/X_AD_Package_Exp_Common.java | 1211 ++--- .../model/X_AD_Package_Exp_Detail.java | 1549 ++++--- .../org/compiere/model/X_AD_Package_Imp.java | 668 +-- .../model/X_AD_Package_Imp_Backup.java | 522 +-- .../model/X_AD_Package_Imp_Detail.java | 555 +-- .../compiere/model/X_AD_Package_Imp_Inst.java | 656 +-- .../compiere/model/X_AD_Package_Imp_Proc.java | 377 +- .../org/compiere/model/X_AD_Preference.java | 377 +- .../org/compiere/model/X_AD_PrintColor.java | 314 +- .../org/compiere/model/X_AD_PrintFont.java | 314 +- .../org/compiere/model/X_AD_PrintForm.java | 653 +-- .../org/compiere/model/X_AD_PrintFormat.java | 984 ++-- .../compiere/model/X_AD_PrintFormatItem.java | 2584 ++++++----- .../org/compiere/model/X_AD_PrintGraph.java | 611 +-- .../org/compiere/model/X_AD_PrintLabel.java | 524 ++- .../compiere/model/X_AD_PrintLabelLine.java | 601 +-- .../org/compiere/model/X_AD_PrintPaper.java | 720 +-- .../compiere/model/X_AD_PrintTableFormat.java | 1363 +++--- .../compiere/model/X_AD_Private_Access.java | 276 +- base/src/org/compiere/model/X_AD_Process.java | 1092 ++--- .../compiere/model/X_AD_Process_Access.java | 281 +- .../org/compiere/model/X_AD_Process_Para.java | 1053 +++-- .../compiere/model/X_AD_Record_Access.java | 430 +- .../src/org/compiere/model/X_AD_Ref_List.java | 473 +- .../org/compiere/model/X_AD_Ref_Table.java | 496 +- .../org/compiere/model/X_AD_Reference.java | 446 +- .../org/compiere/model/X_AD_Registration.java | 893 ++-- .../org/compiere/model/X_AD_Replication.java | 799 ++-- .../model/X_AD_ReplicationStrategy.java | 349 +- .../compiere/model/X_AD_ReplicationTable.java | 389 +- .../compiere/model/X_AD_Replication_Log.java | 374 +- .../compiere/model/X_AD_Replication_Run.java | 367 +- .../org/compiere/model/X_AD_ReportView.java | 447 +- .../compiere/model/X_AD_ReportView_Col.java | 378 +- base/src/org/compiere/model/X_AD_Role.java | 1686 +++---- .../compiere/model/X_AD_Role_OrgAccess.java | 224 +- .../org/compiere/model/X_AD_Scheduler.java | 748 ++-- .../org/compiere/model/X_AD_SchedulerLog.java | 460 +- .../model/X_AD_SchedulerRecipient.java | 329 +- .../compiere/model/X_AD_Scheduler_Para.java | 314 +- .../src/org/compiere/model/X_AD_Sequence.java | 722 +-- .../compiere/model/X_AD_Sequence_Audit.java | 322 +- .../org/compiere/model/X_AD_Sequence_No.java | 262 +- base/src/org/compiere/model/X_AD_Session.java | 345 +- .../org/compiere/model/X_AD_SysConfig.java | 306 +- base/src/org/compiere/model/X_AD_System.java | 1442 +++--- base/src/org/compiere/model/X_AD_Tab.java | 1483 +++--- base/src/org/compiere/model/X_AD_Table.java | 1009 +++-- .../org/compiere/model/X_AD_Table_Access.java | 489 +- base/src/org/compiere/model/X_AD_Task.java | 505 +-- .../org/compiere/model/X_AD_TaskInstance.java | 214 +- .../org/compiere/model/X_AD_Task_Access.java | 281 +- base/src/org/compiere/model/X_AD_Tree.java | 499 +-- base/src/org/compiere/model/X_AD_TreeBar.java | 287 +- .../src/org/compiere/model/X_AD_TreeNode.java | 296 +- .../org/compiere/model/X_AD_TreeNodeBP.java | 294 +- .../org/compiere/model/X_AD_TreeNodeCMC.java | 297 +- .../org/compiere/model/X_AD_TreeNodeCMM.java | 297 +- .../org/compiere/model/X_AD_TreeNodeCMS.java | 297 +- .../org/compiere/model/X_AD_TreeNodeCMT.java | 297 +- .../org/compiere/model/X_AD_TreeNodeMM.java | 294 +- .../org/compiere/model/X_AD_TreeNodePR.java | 294 +- .../org/compiere/model/X_AD_TreeNodeU1.java | 297 +- .../org/compiere/model/X_AD_TreeNodeU2.java | 297 +- .../org/compiere/model/X_AD_TreeNodeU3.java | 297 +- .../org/compiere/model/X_AD_TreeNodeU4.java | 297 +- base/src/org/compiere/model/X_AD_User.java | 1375 +++--- .../org/compiere/model/X_AD_UserBPAccess.java | 424 +- .../compiere/model/X_AD_UserDef_Field.java | 795 ++-- .../org/compiere/model/X_AD_UserDef_Tab.java | 550 +-- .../org/compiere/model/X_AD_UserDef_Win.java | 650 +-- .../src/org/compiere/model/X_AD_UserMail.java | 538 ++- .../org/compiere/model/X_AD_UserQuery.java | 391 +- .../compiere/model/X_AD_User_OrgAccess.java | 225 +- .../org/compiere/model/X_AD_User_Roles.java | 203 +- .../compiere/model/X_AD_User_Substitute.java | 406 +- .../src/org/compiere/model/X_AD_Val_Rule.java | 403 +- .../org/compiere/model/X_AD_WF_Activity.java | 905 ++-- .../model/X_AD_WF_ActivityResult.java | 402 +- .../src/org/compiere/model/X_AD_WF_Block.java | 320 +- .../compiere/model/X_AD_WF_EventAudit.java | 847 ++-- .../compiere/model/X_AD_WF_NextCondition.java | 587 +-- base/src/org/compiere/model/X_AD_WF_Node.java | 2055 +++++---- .../org/compiere/model/X_AD_WF_NodeNext.java | 487 +- .../org/compiere/model/X_AD_WF_Node_Para.java | 454 +- .../org/compiere/model/X_AD_WF_Process.java | 694 +-- .../compiere/model/X_AD_WF_ProcessData.java | 320 +- .../compiere/model/X_AD_WF_Responsible.java | 461 +- base/src/org/compiere/model/X_AD_Window.java | 765 ++-- .../compiere/model/X_AD_Window_Access.java | 281 +- .../org/compiere/model/X_AD_Workbench.java | 469 +- .../compiere/model/X_AD_WorkbenchWindow.java | 585 ++- .../src/org/compiere/model/X_AD_Workflow.java | 1380 +++--- .../model/X_AD_WorkflowProcessor.java | 645 +-- .../model/X_AD_WorkflowProcessorLog.java | 460 +- .../compiere/model/X_AD_Workflow_Access.java | 281 +- base/src/org/compiere/model/X_A_Asset.java | 1852 ++++---- .../compiere/model/X_A_Asset_Delivery.java | 856 ++-- .../org/compiere/model/X_A_Asset_Group.java | 536 +-- .../compiere/model/X_A_Asset_Retirement.java | 355 +- .../org/compiere/model/X_A_Registration.java | 818 ++-- .../model/X_A_RegistrationAttribute.java | 470 +- .../model/X_A_RegistrationProduct.java | 260 +- .../compiere/model/X_A_RegistrationValue.java | 336 +- base/src/org/compiere/model/X_B_Bid.java | 518 ++- .../org/compiere/model/X_B_BidComment.java | 322 +- base/src/org/compiere/model/X_B_Buyer.java | 315 +- .../org/compiere/model/X_B_BuyerFunds.java | 395 +- base/src/org/compiere/model/X_B_Offer.java | 518 ++- base/src/org/compiere/model/X_B_Seller.java | 361 +- .../org/compiere/model/X_B_SellerFunds.java | 395 +- base/src/org/compiere/model/X_B_Topic.java | 754 ++-- .../org/compiere/model/X_B_TopicCategory.java | 320 +- .../src/org/compiere/model/X_B_TopicType.java | 485 +- .../compiere/model/X_CM_AccessContainer.java | 235 +- .../model/X_CM_AccessListBPGroup.java | 235 +- .../compiere/model/X_CM_AccessListRole.java | 235 +- .../org/compiere/model/X_CM_AccessMedia.java | 235 +- .../model/X_CM_AccessNewsChannel.java | 235 +- .../compiere/model/X_CM_AccessProfile.java | 351 +- .../org/compiere/model/X_CM_AccessStage.java | 235 +- base/src/org/compiere/model/X_CM_Ad.java | 895 ++-- base/src/org/compiere/model/X_CM_Ad_Cat.java | 361 +- .../compiere/model/X_CM_BroadcastServer.java | 437 +- base/src/org/compiere/model/X_CM_CStage.java | 1415 +++--- .../org/compiere/model/X_CM_CStageTTable.java | 499 ++- .../compiere/model/X_CM_CStage_Element.java | 436 +- base/src/org/compiere/model/X_CM_Chat.java | 484 +- .../org/compiere/model/X_CM_ChatEntry.java | 610 +-- .../src/org/compiere/model/X_CM_ChatType.java | 371 +- .../compiere/model/X_CM_ChatTypeUpdate.java | 281 +- .../org/compiere/model/X_CM_ChatUpdate.java | 281 +- .../org/compiere/model/X_CM_Container.java | 1323 +++--- .../compiere/model/X_CM_ContainerTTable.java | 499 ++- .../model/X_CM_Container_Element.java | 436 +- .../compiere/model/X_CM_Container_URL.java | 347 +- base/src/org/compiere/model/X_CM_Media.java | 573 +-- .../org/compiere/model/X_CM_MediaDeploy.java | 394 +- .../org/compiere/model/X_CM_Media_Server.java | 612 +-- .../org/compiere/model/X_CM_NewsChannel.java | 447 +- .../src/org/compiere/model/X_CM_NewsItem.java | 445 +- .../src/org/compiere/model/X_CM_Template.java | 749 ++-- .../compiere/model/X_CM_TemplateTable.java | 459 +- .../compiere/model/X_CM_Template_Ad_Cat.java | 336 +- .../org/compiere/model/X_CM_WebAccessLog.java | 966 ++-- .../org/compiere/model/X_CM_WebProject.java | 698 +-- .../model/X_CM_WebProject_Domain.java | 463 +- .../org/compiere/model/X_CM_WikiToken.java | 500 ++- .../org/compiere/model/X_C_AcctProcessor.java | 649 +-- .../compiere/model/X_C_AcctProcessorLog.java | 460 +- .../org/compiere/model/X_C_AcctSchema.java | 1393 +++--- .../model/X_C_AcctSchema_Default.java | 2515 ++++++----- .../model/X_C_AcctSchema_Element.java | 1020 +++-- .../org/compiere/model/X_C_AcctSchema_GL.java | 648 +-- base/src/org/compiere/model/X_C_Activity.java | 396 +- .../org/compiere/model/X_C_AllocationHdr.java | 828 ++-- .../compiere/model/X_C_AllocationLine.java | 667 +-- .../compiere/model/X_C_BP_BankAccount.java | 1236 ++--- .../compiere/model/X_C_BP_Customer_Acct.java | 349 +- base/src/org/compiere/model/X_C_BP_EDI.java | 1021 +++-- .../compiere/model/X_C_BP_Employee_Acct.java | 311 +- base/src/org/compiere/model/X_C_BP_Group.java | 810 ++-- .../org/compiere/model/X_C_BP_Group_Acct.java | 784 ++-- .../org/compiere/model/X_C_BP_Relation.java | 625 +-- .../compiere/model/X_C_BP_Vendor_Acct.java | 347 +- .../compiere/model/X_C_BP_Withholding.java | 352 +- base/src/org/compiere/model/X_C_BPartner.java | 2692 ++++++----- .../compiere/model/X_C_BPartner_Location.java | 713 +-- .../compiere/model/X_C_BPartner_Product.java | 479 +- base/src/org/compiere/model/X_C_Bank.java | 437 +- .../org/compiere/model/X_C_BankAccount.java | 638 +-- .../compiere/model/X_C_BankAccountDoc.java | 460 +- .../compiere/model/X_C_BankAccount_Acct.java | 691 +-- .../org/compiere/model/X_C_BankStatement.java | 1020 +++-- .../compiere/model/X_C_BankStatementLine.java | 1548 ++++--- .../model/X_C_BankStatementLoader.java | 956 ++-- .../model/X_C_BankStatementMatcher.java | 349 +- base/src/org/compiere/model/X_C_Calendar.java | 263 +- base/src/org/compiere/model/X_C_Campaign.java | 514 ++- base/src/org/compiere/model/X_C_Cash.java | 1148 ++--- base/src/org/compiere/model/X_C_CashBook.java | 367 +- .../org/compiere/model/X_C_CashBook_Acct.java | 425 +- base/src/org/compiere/model/X_C_CashLine.java | 772 ++-- base/src/org/compiere/model/X_C_Channel.java | 319 +- base/src/org/compiere/model/X_C_Charge.java | 537 ++- .../org/compiere/model/X_C_Charge_Acct.java | 311 +- base/src/org/compiere/model/X_C_City.java | 481 +- .../org/compiere/model/X_C_Commission.java | 689 +-- .../org/compiere/model/X_C_CommissionAmt.java | 413 +- .../compiere/model/X_C_CommissionDetail.java | 575 +-- .../compiere/model/X_C_CommissionLine.java | 856 ++-- .../org/compiere/model/X_C_CommissionRun.java | 484 +- .../compiere/model/X_C_ConversionType.java | 355 +- .../compiere/model/X_C_Conversion_Rate.java | 459 +- base/src/org/compiere/model/X_C_Country.java | 1178 ++--- base/src/org/compiere/model/X_C_Currency.java | 548 +-- .../org/compiere/model/X_C_Currency_Acct.java | 387 +- base/src/org/compiere/model/X_C_Cycle.java | 320 +- .../org/compiere/model/X_C_CyclePhase.java | 235 +- .../src/org/compiere/model/X_C_CycleStep.java | 362 +- base/src/org/compiere/model/X_C_DocType.java | 1430 +++--- .../compiere/model/X_C_DocTypeCounter.java | 578 +-- base/src/org/compiere/model/X_C_Dunning.java | 401 +- .../org/compiere/model/X_C_DunningLevel.java | 926 ++-- .../org/compiere/model/X_C_DunningRun.java | 433 +- .../compiere/model/X_C_DunningRunEntry.java | 637 +-- .../compiere/model/X_C_DunningRunLine.java | 727 +-- base/src/org/compiere/model/X_C_Element.java | 507 ++- .../org/compiere/model/X_C_ElementValue.java | 1025 +++-- base/src/org/compiere/model/X_C_Greeting.java | 373 +- .../org/compiere/model/X_C_InterOrg_Acct.java | 294 +- base/src/org/compiere/model/X_C_Invoice.java | 2668 ++++++----- .../org/compiere/model/X_C_InvoiceBatch.java | 671 +-- .../compiere/model/X_C_InvoiceBatchLine.java | 1340 +++--- .../org/compiere/model/X_C_InvoiceLine.java | 1781 +++++--- .../model/X_C_InvoicePaySchedule.java | 560 +-- .../compiere/model/X_C_InvoiceSchedule.java | 701 +-- .../org/compiere/model/X_C_InvoiceTax.java | 393 +- base/src/org/compiere/model/X_C_Job.java | 408 +- .../org/compiere/model/X_C_JobAssignment.java | 382 +- .../org/compiere/model/X_C_JobCategory.java | 304 +- .../compiere/model/X_C_JobRemuneration.java | 398 +- .../org/compiere/model/X_C_LandedCost.java | 553 +-- .../model/X_C_LandedCostAllocation.java | 478 +- base/src/org/compiere/model/X_C_Location.java | 657 +-- .../compiere/model/X_C_NonBusinessDay.java | 310 +- base/src/org/compiere/model/X_C_Order.java | 3249 ++++++++------ .../src/org/compiere/model/X_C_OrderLine.java | 2134 +++++---- base/src/org/compiere/model/X_C_OrderTax.java | 393 +- .../org/compiere/model/X_C_OrgAssignment.java | 311 +- base/src/org/compiere/model/X_C_POS.java | 754 ++-- base/src/org/compiere/model/X_C_POSKey.java | 498 +- .../org/compiere/model/X_C_POSKeyLayout.java | 304 +- .../org/compiere/model/X_C_PaySchedule.java | 538 +-- .../org/compiere/model/X_C_PaySelection.java | 575 +-- .../compiere/model/X_C_PaySelectionCheck.java | 719 +-- .../compiere/model/X_C_PaySelectionLine.java | 777 ++-- base/src/org/compiere/model/X_C_Payment.java | 3626 ++++++++------- .../compiere/model/X_C_PaymentAllocate.java | 562 +-- .../org/compiere/model/X_C_PaymentBatch.java | 437 +- .../compiere/model/X_C_PaymentProcessor.java | 1497 ++++--- .../org/compiere/model/X_C_PaymentTerm.java | 1022 +++-- base/src/org/compiere/model/X_C_Period.java | 477 +- .../org/compiere/model/X_C_PeriodControl.java | 497 +- base/src/org/compiere/model/X_C_Phase.java | 484 +- base/src/org/compiere/model/X_C_Project.java | 1866 ++++---- .../org/compiere/model/X_C_ProjectIssue.java | 727 +-- .../compiere/model/X_C_ProjectIssueMA.java | 274 +- .../org/compiere/model/X_C_ProjectLine.java | 1108 +++-- .../org/compiere/model/X_C_ProjectPhase.java | 948 ++-- .../org/compiere/model/X_C_ProjectTask.java | 677 +-- .../org/compiere/model/X_C_ProjectType.java | 362 +- .../org/compiere/model/X_C_Project_Acct.java | 311 +- .../src/org/compiere/model/X_C_Recurring.java | 839 ++-- .../org/compiere/model/X_C_Recurring_Run.java | 450 +- base/src/org/compiere/model/X_C_Region.java | 364 +- .../org/compiere/model/X_C_Remuneration.java | 569 +-- .../model/X_C_RevenueRecognition.java | 393 +- .../model/X_C_RevenueRecognition_Plan.java | 543 ++- .../model/X_C_RevenueRecognition_Run.java | 328 +- base/src/org/compiere/model/X_C_RfQ.java | 1436 +++--- base/src/org/compiere/model/X_C_RfQLine.java | 533 ++- .../org/compiere/model/X_C_RfQLineQty.java | 620 +-- .../org/compiere/model/X_C_RfQResponse.java | 1129 +++-- .../compiere/model/X_C_RfQResponseLine.java | 548 ++- .../model/X_C_RfQResponseLineQty.java | 403 +- .../src/org/compiere/model/X_C_RfQ_Topic.java | 365 +- .../model/X_C_RfQ_TopicSubscriber.java | 449 +- .../model/X_C_RfQ_TopicSubscriberOnly.java | 370 +- .../org/compiere/model/X_C_SalesRegion.java | 440 +- .../org/compiere/model/X_C_ServiceLevel.java | 482 +- .../compiere/model/X_C_ServiceLevelLine.java | 395 +- base/src/org/compiere/model/X_C_SubAcct.java | 407 +- .../org/compiere/model/X_C_Subscription.java | 512 ++- .../compiere/model/X_C_SubscriptionType.java | 355 +- .../model/X_C_Subscription_Delivery.java | 233 +- base/src/org/compiere/model/X_C_Task.java | 484 +- base/src/org/compiere/model/X_C_Tax.java | 965 ++-- .../org/compiere/model/X_C_TaxCategory.java | 350 +- .../compiere/model/X_C_TaxDeclaration.java | 458 +- .../model/X_C_TaxDeclarationAcct.java | 700 +-- .../model/X_C_TaxDeclarationLine.java | 738 +-- .../src/org/compiere/model/X_C_TaxPostal.java | 320 +- base/src/org/compiere/model/X_C_Tax_Acct.java | 425 +- base/src/org/compiere/model/X_C_UOM.java | 472 +- .../compiere/model/X_C_UOM_Conversion.java | 394 +- .../compiere/model/X_C_UserRemuneration.java | 546 ++- .../compiere/model/X_C_ValidCombination.java | 1007 +++-- .../org/compiere/model/X_C_Withholding.java | 757 ++-- .../compiere/model/X_C_Withholding_Acct.java | 273 +- base/src/org/compiere/model/X_C_Year.java | 361 +- base/src/org/compiere/model/X_Fact_Acct.java | 1963 ++++---- .../compiere/model/X_Fact_Acct_Balance.java | 1254 +++--- base/src/org/compiere/model/X_GL_Budget.java | 357 +- .../compiere/model/X_GL_BudgetControl.java | 573 +-- .../src/org/compiere/model/X_GL_Category.java | 414 +- .../org/compiere/model/X_GL_Distribution.java | 1775 ++++---- .../compiere/model/X_GL_DistributionLine.java | 1529 ++++--- base/src/org/compiere/model/X_GL_Fund.java | 464 +- .../compiere/model/X_GL_FundRestriction.java | 361 +- base/src/org/compiere/model/X_GL_Journal.java | 1403 +++--- .../org/compiere/model/X_GL_JournalBatch.java | 1061 +++-- .../org/compiere/model/X_GL_JournalLine.java | 897 ++-- base/src/org/compiere/model/X_I_BPartner.java | 1877 ++++---- .../org/compiere/model/X_I_BankStatement.java | 2178 +++++---- .../compiere/model/X_I_Conversion_Rate.java | 850 ++-- .../org/compiere/model/X_I_ElementValue.java | 1159 ++--- .../src/org/compiere/model/X_I_GLJournal.java | 2683 ++++++----- .../compiere/model/X_I_InOutLineConfirm.java | 599 +-- .../src/org/compiere/model/X_I_Inventory.java | 1095 ++--- base/src/org/compiere/model/X_I_Invoice.java | 2305 ++++++---- base/src/org/compiere/model/X_I_Order.java | 2545 ++++++----- base/src/org/compiere/model/X_I_Payment.java | 2698 ++++++----- base/src/org/compiere/model/X_I_Product.java | 2011 +++++---- .../org/compiere/model/X_I_ReportLine.java | 1087 ++--- base/src/org/compiere/model/X_K_Category.java | 304 +- .../org/compiere/model/X_K_CategoryValue.java | 320 +- base/src/org/compiere/model/X_K_Comment.java | 404 +- base/src/org/compiere/model/X_K_Entry.java | 635 +-- .../org/compiere/model/X_K_EntryCategory.java | 290 +- .../org/compiere/model/X_K_EntryRelated.java | 257 +- base/src/org/compiere/model/X_K_Index.java | 565 ++- base/src/org/compiere/model/X_K_IndexLog.java | 317 +- .../src/org/compiere/model/X_K_IndexStop.java | 437 +- base/src/org/compiere/model/X_K_Source.java | 263 +- base/src/org/compiere/model/X_K_Synonym.java | 310 +- base/src/org/compiere/model/X_K_Topic.java | 455 +- base/src/org/compiere/model/X_K_Type.java | 398 +- .../src/org/compiere/model/X_M_Attribute.java | 466 +- .../compiere/model/X_M_AttributeInstance.java | 366 +- .../compiere/model/X_M_AttributeSearch.java | 263 +- .../org/compiere/model/X_M_AttributeSet.java | 951 ++-- .../model/X_M_AttributeSetExclude.java | 322 +- .../model/X_M_AttributeSetInstance.java | 427 +- .../org/compiere/model/X_M_AttributeUse.java | 290 +- .../compiere/model/X_M_AttributeValue.java | 366 +- base/src/org/compiere/model/X_M_BOM.java | 567 +-- .../compiere/model/X_M_BOMAlternative.java | 304 +- .../org/compiere/model/X_M_BOMProduct.java | 826 ++-- .../org/compiere/model/X_M_ChangeNotice.java | 469 +- .../org/compiere/model/X_M_ChangeRequest.java | 625 +-- base/src/org/compiere/model/X_M_Cost.java | 744 +-- .../org/compiere/model/X_M_CostDetail.java | 959 ++-- .../org/compiere/model/X_M_CostElement.java | 438 +- .../src/org/compiere/model/X_M_CostQueue.java | 497 +- base/src/org/compiere/model/X_M_CostType.java | 304 +- base/src/org/compiere/model/X_M_Demand.java | 505 ++- .../org/compiere/model/X_M_DemandDetail.java | 353 +- .../org/compiere/model/X_M_DemandLine.java | 413 +- .../compiere/model/X_M_DiscountSchema.java | 612 +-- .../model/X_M_DiscountSchemaBreak.java | 499 ++- .../model/X_M_DiscountSchemaLine.java | 1492 +++--- .../compiere/model/X_M_DistributionList.java | 381 +- .../model/X_M_DistributionListLine.java | 449 +- .../compiere/model/X_M_DistributionRun.java | 447 +- .../model/X_M_DistributionRunLine.java | 494 +- base/src/org/compiere/model/X_M_EDI.java | 924 ++-- base/src/org/compiere/model/X_M_EDI_Info.java | 273 +- base/src/org/compiere/model/X_M_Forecast.java | 505 ++- .../org/compiere/model/X_M_ForecastLine.java | 413 +- base/src/org/compiere/model/X_M_Freight.java | 614 +-- .../compiere/model/X_M_FreightCategory.java | 350 +- base/src/org/compiere/model/X_M_InOut.java | 2654 ++++++----- .../org/compiere/model/X_M_InOutConfirm.java | 955 ++-- .../src/org/compiere/model/X_M_InOutLine.java | 1444 +++--- .../compiere/model/X_M_InOutLineConfirm.java | 636 +-- .../org/compiere/model/X_M_InOutLineMA.java | 258 +- .../src/org/compiere/model/X_M_Inventory.java | 1219 ++--- .../org/compiere/model/X_M_InventoryLine.java | 765 ++-- .../compiere/model/X_M_InventoryLineMA.java | 258 +- base/src/org/compiere/model/X_M_Locator.java | 502 ++- base/src/org/compiere/model/X_M_Lot.java | 463 +- base/src/org/compiere/model/X_M_LotCtl.java | 462 +- .../org/compiere/model/X_M_LotCtlExclude.java | 322 +- base/src/org/compiere/model/X_M_MatchInv.java | 669 +-- base/src/org/compiere/model/X_M_MatchPO.java | 789 ++-- base/src/org/compiere/model/X_M_Movement.java | 1104 ++--- .../compiere/model/X_M_MovementConfirm.java | 682 ++- .../org/compiere/model/X_M_MovementLine.java | 719 +-- .../model/X_M_MovementLineConfirm.java | 565 +-- .../compiere/model/X_M_MovementLineMA.java | 253 +- .../compiere/model/X_M_OperationResource.java | 596 +-- base/src/org/compiere/model/X_M_Package.java | 504 ++- .../org/compiere/model/X_M_PackageLine.java | 372 +- .../org/compiere/model/X_M_PerpetualInv.java | 646 +-- .../src/org/compiere/model/X_M_PriceList.java | 585 +-- .../compiere/model/X_M_PriceList_Version.java | 492 +- base/src/org/compiere/model/X_M_Product.java | 2351 +++++----- .../compiere/model/X_M_ProductDownload.java | 309 +- .../compiere/model/X_M_ProductOperation.java | 453 +- .../org/compiere/model/X_M_ProductPrice.java | 342 +- .../org/compiere/model/X_M_Product_Acct.java | 615 +-- .../org/compiere/model/X_M_Product_BOM.java | 451 +- .../compiere/model/X_M_Product_Category.java | 643 +-- .../model/X_M_Product_Category_Acct.java | 776 ++-- .../compiere/model/X_M_Product_Costing.java | 790 ++-- .../org/compiere/model/X_M_Product_PO.java | 1036 +++-- .../org/compiere/model/X_M_Production.java | 761 ++-- .../compiere/model/X_M_ProductionLine.java | 524 ++- .../compiere/model/X_M_ProductionLineMA.java | 258 +- .../compiere/model/X_M_ProductionPlan.java | 483 +- base/src/org/compiere/model/X_M_RMA.java | 1090 ++--- base/src/org/compiere/model/X_M_RMALine.java | 617 +-- base/src/org/compiere/model/X_M_RMAType.java | 304 +- .../compiere/model/X_M_RelatedProduct.java | 340 +- .../src/org/compiere/model/X_M_Replenish.java | 397 +- .../org/compiere/model/X_M_Requisition.java | 1056 +++-- .../compiere/model/X_M_RequisitionLine.java | 613 +-- base/src/org/compiere/model/X_M_SerNoCtl.java | 462 +- .../compiere/model/X_M_SerNoCtlExclude.java | 322 +- base/src/org/compiere/model/X_M_Shipper.java | 344 +- base/src/org/compiere/model/X_M_Storage.java | 398 +- .../org/compiere/model/X_M_Substitute.java | 303 +- .../org/compiere/model/X_M_Transaction.java | 654 +-- .../model/X_M_TransactionAllocation.java | 703 +-- .../src/org/compiere/model/X_M_Warehouse.java | 477 +- .../compiere/model/X_M_Warehouse_Acct.java | 387 +- .../org/compiere/model/X_PA_Achievement.java | 519 ++- .../org/compiere/model/X_PA_Benchmark.java | 355 +- .../compiere/model/X_PA_BenchmarkData.java | 397 +- .../org/compiere/model/X_PA_ColorSchema.java | 614 +-- .../compiere/model/X_PA_DashboardContent.java | 436 +- base/src/org/compiere/model/X_PA_Goal.java | 1019 +++-- .../compiere/model/X_PA_GoalRestriction.java | 570 +-- .../org/compiere/model/X_PA_Hierarchy.java | 624 +-- base/src/org/compiere/model/X_PA_Measure.java | 836 ++-- .../org/compiere/model/X_PA_MeasureCalc.java | 681 +-- base/src/org/compiere/model/X_PA_Ratio.java | 361 +- .../org/compiere/model/X_PA_RatioElement.java | 702 +-- base/src/org/compiere/model/X_PA_Report.java | 679 +-- .../org/compiere/model/X_PA_ReportColumn.java | 1526 ++++--- .../compiere/model/X_PA_ReportColumnSet.java | 306 +- .../org/compiere/model/X_PA_ReportLine.java | 819 ++-- .../compiere/model/X_PA_ReportLineSet.java | 303 +- .../org/compiere/model/X_PA_ReportSource.java | 818 ++-- .../org/compiere/model/X_PA_SLA_Criteria.java | 392 +- .../src/org/compiere/model/X_PA_SLA_Goal.java | 664 +-- .../org/compiere/model/X_PA_SLA_Measure.java | 518 ++- .../src/org/compiere/model/X_RV_BPartner.java | 3985 +++++++++-------- .../compiere/model/X_RV_WarehousePrice.java | 926 ++-- base/src/org/compiere/model/X_R_Category.java | 344 +- .../compiere/model/X_R_CategoryUpdates.java | 265 +- .../compiere/model/X_R_ContactInterest.java | 312 +- base/src/org/compiere/model/X_R_Group.java | 400 +- .../org/compiere/model/X_R_GroupUpdates.java | 265 +- .../org/compiere/model/X_R_InterestArea.java | 356 +- .../org/compiere/model/X_R_IssueKnown.java | 718 +-- .../org/compiere/model/X_R_IssueProject.java | 479 +- .../model/X_R_IssueRecommendation.java | 304 +- .../org/compiere/model/X_R_IssueStatus.java | 263 +- .../org/compiere/model/X_R_IssueSystem.java | 398 +- .../src/org/compiere/model/X_R_IssueUser.java | 303 +- base/src/org/compiere/model/X_R_MailText.java | 437 +- base/src/org/compiere/model/X_R_Request.java | 2695 ++++++----- .../org/compiere/model/X_R_RequestAction.java | 1863 ++++---- .../compiere/model/X_R_RequestProcessor.java | 750 ++-- .../model/X_R_RequestProcessorLog.java | 460 +- .../model/X_R_RequestProcessor_Route.java | 427 +- .../org/compiere/model/X_R_RequestType.java | 822 ++-- .../model/X_R_RequestTypeUpdates.java | 265 +- .../org/compiere/model/X_R_RequestUpdate.java | 504 ++- .../compiere/model/X_R_RequestUpdates.java | 265 +- .../org/compiere/model/X_R_Resolution.java | 304 +- .../compiere/model/X_R_StandardResponse.java | 268 +- base/src/org/compiere/model/X_R_Status.java | 793 ++-- .../compiere/model/X_R_StatusCategory.java | 350 +- .../org/compiere/model/X_S_ExpenseType.java | 526 ++- base/src/org/compiere/model/X_S_Resource.java | 556 ++- .../model/X_S_ResourceAssignment.java | 469 +- .../org/compiere/model/X_S_ResourceType.java | 1084 +++-- .../model/X_S_ResourceUnAvailable.java | 338 +- .../org/compiere/model/X_S_TimeExpense.java | 793 ++-- .../compiere/model/X_S_TimeExpenseLine.java | 1468 +++--- base/src/org/compiere/model/X_S_TimeType.java | 304 +- base/src/org/compiere/model/X_S_Training.java | 639 +-- .../compiere/model/X_S_Training_Class.java | 346 +- base/src/org/compiere/model/X_T_Aging.java | 1644 ++++--- .../model/X_T_DistributionRunDetail.java | 545 +-- .../compiere/model/X_T_InventoryValue.java | 984 ++-- .../src/org/compiere/model/X_T_InvoiceGL.java | 833 ++-- .../src/org/compiere/model/X_T_Replenish.java | 815 ++-- base/src/org/compiere/model/X_T_Report.java | 1173 ++--- .../compiere/model/X_T_ReportStatement.java | 524 ++- .../org/compiere/model/X_T_Transaction.java | 998 +++-- base/src/org/compiere/model/X_Test.java | 986 ++-- .../org/compiere/model/X_W_Advertisement.java | 1004 +++-- base/src/org/compiere/model/X_W_Basket.java | 392 +- .../org/compiere/model/X_W_BasketLine.java | 482 +- base/src/org/compiere/model/X_W_Click.java | 605 +-- .../org/compiere/model/X_W_ClickCount.java | 383 +- base/src/org/compiere/model/X_W_Counter.java | 617 +-- .../org/compiere/model/X_W_CounterCount.java | 380 +- base/src/org/compiere/model/X_W_MailMsg.java | 566 +-- base/src/org/compiere/model/X_W_Store.java | 1697 +++---- base/src/org/compiere/util/GenerateModel.java | 874 ---- 1092 files changed, 313266 insertions(+), 166026 deletions(-) create mode 100644 base/src/org/compiere/model/I_AD_AccessLog.java create mode 100644 base/src/org/compiere/model/I_AD_Alert.java create mode 100644 base/src/org/compiere/model/I_AD_AlertProcessor.java create mode 100644 base/src/org/compiere/model/I_AD_AlertProcessorLog.java create mode 100644 base/src/org/compiere/model/I_AD_AlertRecipient.java create mode 100644 base/src/org/compiere/model/I_AD_AlertRule.java create mode 100644 base/src/org/compiere/model/I_AD_Archive.java create mode 100644 base/src/org/compiere/model/I_AD_Attachment.java create mode 100644 base/src/org/compiere/model/I_AD_AttachmentNote.java create mode 100644 base/src/org/compiere/model/I_AD_Attribute.java create mode 100644 base/src/org/compiere/model/I_AD_Attribute_Value.java create mode 100644 base/src/org/compiere/model/I_AD_ChangeLog.java create mode 100644 base/src/org/compiere/model/I_AD_Client.java create mode 100644 base/src/org/compiere/model/I_AD_ClientInfo.java create mode 100644 base/src/org/compiere/model/I_AD_ClientShare.java create mode 100644 base/src/org/compiere/model/I_AD_Color.java create mode 100644 base/src/org/compiere/model/I_AD_Column.java create mode 100644 base/src/org/compiere/model/I_AD_Column_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Desktop.java create mode 100644 base/src/org/compiere/model/I_AD_DesktopWorkbench.java create mode 100644 base/src/org/compiere/model/I_AD_Element.java create mode 100644 base/src/org/compiere/model/I_AD_EntityType.java create mode 100644 base/src/org/compiere/model/I_AD_Error.java create mode 100644 base/src/org/compiere/model/I_AD_Field.java create mode 100644 base/src/org/compiere/model/I_AD_FieldGroup.java create mode 100644 base/src/org/compiere/model/I_AD_Find.java create mode 100644 base/src/org/compiere/model/I_AD_Form.java create mode 100644 base/src/org/compiere/model/I_AD_Form_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Image.java create mode 100644 base/src/org/compiere/model/I_AD_ImpFormat.java create mode 100644 base/src/org/compiere/model/I_AD_ImpFormat_Row.java create mode 100644 base/src/org/compiere/model/I_AD_InfoColumn.java create mode 100644 base/src/org/compiere/model/I_AD_InfoWindow.java create mode 100644 base/src/org/compiere/model/I_AD_Issue.java create mode 100644 base/src/org/compiere/model/I_AD_LabelPrinter.java create mode 100644 base/src/org/compiere/model/I_AD_LabelPrinterFunction.java create mode 100644 base/src/org/compiere/model/I_AD_Language.java create mode 100644 base/src/org/compiere/model/I_AD_LdapAccess.java create mode 100644 base/src/org/compiere/model/I_AD_LdapProcessor.java create mode 100644 base/src/org/compiere/model/I_AD_LdapProcessorLog.java create mode 100644 base/src/org/compiere/model/I_AD_Menu.java create mode 100644 base/src/org/compiere/model/I_AD_Message.java create mode 100644 base/src/org/compiere/model/I_AD_Modification.java create mode 100644 base/src/org/compiere/model/I_AD_Note.java create mode 100644 base/src/org/compiere/model/I_AD_Org.java create mode 100644 base/src/org/compiere/model/I_AD_OrgInfo.java create mode 100644 base/src/org/compiere/model/I_AD_OrgType.java create mode 100644 base/src/org/compiere/model/I_AD_PInstance.java create mode 100644 base/src/org/compiere/model/I_AD_PInstance_Log.java create mode 100644 base/src/org/compiere/model/I_AD_PInstance_Para.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Exp.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Exp_Common.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Exp_Detail.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Imp.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Imp_Backup.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Imp_Detail.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Imp_Inst.java create mode 100644 base/src/org/compiere/model/I_AD_Package_Imp_Proc.java create mode 100644 base/src/org/compiere/model/I_AD_Preference.java create mode 100644 base/src/org/compiere/model/I_AD_PrintColor.java create mode 100644 base/src/org/compiere/model/I_AD_PrintFont.java create mode 100644 base/src/org/compiere/model/I_AD_PrintForm.java create mode 100644 base/src/org/compiere/model/I_AD_PrintFormat.java create mode 100644 base/src/org/compiere/model/I_AD_PrintFormatItem.java create mode 100644 base/src/org/compiere/model/I_AD_PrintGraph.java create mode 100644 base/src/org/compiere/model/I_AD_PrintLabel.java create mode 100644 base/src/org/compiere/model/I_AD_PrintLabelLine.java create mode 100644 base/src/org/compiere/model/I_AD_PrintPaper.java create mode 100644 base/src/org/compiere/model/I_AD_PrintTableFormat.java create mode 100644 base/src/org/compiere/model/I_AD_Private_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Process.java create mode 100644 base/src/org/compiere/model/I_AD_Process_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Process_Para.java create mode 100644 base/src/org/compiere/model/I_AD_Record_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Ref_List.java create mode 100644 base/src/org/compiere/model/I_AD_Ref_Table.java create mode 100644 base/src/org/compiere/model/I_AD_Reference.java create mode 100644 base/src/org/compiere/model/I_AD_Registration.java create mode 100644 base/src/org/compiere/model/I_AD_Replication.java create mode 100644 base/src/org/compiere/model/I_AD_ReplicationStrategy.java create mode 100644 base/src/org/compiere/model/I_AD_ReplicationTable.java create mode 100644 base/src/org/compiere/model/I_AD_Replication_Log.java create mode 100644 base/src/org/compiere/model/I_AD_Replication_Run.java create mode 100644 base/src/org/compiere/model/I_AD_ReportView.java create mode 100644 base/src/org/compiere/model/I_AD_ReportView_Col.java create mode 100644 base/src/org/compiere/model/I_AD_Role.java create mode 100644 base/src/org/compiere/model/I_AD_Role_OrgAccess.java create mode 100644 base/src/org/compiere/model/I_AD_Scheduler.java create mode 100644 base/src/org/compiere/model/I_AD_SchedulerLog.java create mode 100644 base/src/org/compiere/model/I_AD_SchedulerRecipient.java create mode 100644 base/src/org/compiere/model/I_AD_Scheduler_Para.java create mode 100644 base/src/org/compiere/model/I_AD_Sequence.java create mode 100644 base/src/org/compiere/model/I_AD_Sequence_Audit.java create mode 100644 base/src/org/compiere/model/I_AD_Sequence_No.java create mode 100644 base/src/org/compiere/model/I_AD_Session.java create mode 100644 base/src/org/compiere/model/I_AD_SysConfig.java create mode 100644 base/src/org/compiere/model/I_AD_System.java create mode 100644 base/src/org/compiere/model/I_AD_Tab.java create mode 100644 base/src/org/compiere/model/I_AD_Table.java create mode 100644 base/src/org/compiere/model/I_AD_Table_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Task.java create mode 100644 base/src/org/compiere/model/I_AD_TaskInstance.java create mode 100644 base/src/org/compiere/model/I_AD_Task_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Tree.java create mode 100644 base/src/org/compiere/model/I_AD_TreeBar.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNode.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeBP.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeCMC.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeCMM.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeCMS.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeCMT.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeMM.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodePR.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeU1.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeU2.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeU3.java create mode 100644 base/src/org/compiere/model/I_AD_TreeNodeU4.java create mode 100644 base/src/org/compiere/model/I_AD_User.java create mode 100644 base/src/org/compiere/model/I_AD_UserBPAccess.java create mode 100644 base/src/org/compiere/model/I_AD_UserDef_Field.java create mode 100644 base/src/org/compiere/model/I_AD_UserDef_Tab.java create mode 100644 base/src/org/compiere/model/I_AD_UserDef_Win.java create mode 100644 base/src/org/compiere/model/I_AD_UserMail.java create mode 100644 base/src/org/compiere/model/I_AD_UserQuery.java create mode 100644 base/src/org/compiere/model/I_AD_User_OrgAccess.java create mode 100644 base/src/org/compiere/model/I_AD_User_Roles.java create mode 100644 base/src/org/compiere/model/I_AD_User_Substitute.java create mode 100644 base/src/org/compiere/model/I_AD_Val_Rule.java create mode 100644 base/src/org/compiere/model/I_AD_WF_Activity.java create mode 100644 base/src/org/compiere/model/I_AD_WF_ActivityResult.java create mode 100644 base/src/org/compiere/model/I_AD_WF_Block.java create mode 100644 base/src/org/compiere/model/I_AD_WF_EventAudit.java create mode 100644 base/src/org/compiere/model/I_AD_WF_NextCondition.java create mode 100644 base/src/org/compiere/model/I_AD_WF_Node.java create mode 100644 base/src/org/compiere/model/I_AD_WF_NodeNext.java create mode 100644 base/src/org/compiere/model/I_AD_WF_Node_Para.java create mode 100644 base/src/org/compiere/model/I_AD_WF_Process.java create mode 100644 base/src/org/compiere/model/I_AD_WF_ProcessData.java create mode 100644 base/src/org/compiere/model/I_AD_WF_Responsible.java create mode 100644 base/src/org/compiere/model/I_AD_Window.java create mode 100644 base/src/org/compiere/model/I_AD_Window_Access.java create mode 100644 base/src/org/compiere/model/I_AD_Workbench.java create mode 100644 base/src/org/compiere/model/I_AD_WorkbenchWindow.java create mode 100644 base/src/org/compiere/model/I_AD_Workflow.java create mode 100644 base/src/org/compiere/model/I_AD_WorkflowProcessor.java create mode 100644 base/src/org/compiere/model/I_AD_WorkflowProcessorLog.java create mode 100644 base/src/org/compiere/model/I_AD_Workflow_Access.java create mode 100644 base/src/org/compiere/model/I_A_Asset.java create mode 100644 base/src/org/compiere/model/I_A_Asset_Delivery.java create mode 100644 base/src/org/compiere/model/I_A_Asset_Group.java create mode 100644 base/src/org/compiere/model/I_A_Asset_Retirement.java create mode 100644 base/src/org/compiere/model/I_A_Registration.java create mode 100644 base/src/org/compiere/model/I_A_RegistrationAttribute.java create mode 100644 base/src/org/compiere/model/I_A_RegistrationProduct.java create mode 100644 base/src/org/compiere/model/I_A_RegistrationValue.java create mode 100644 base/src/org/compiere/model/I_B_Bid.java create mode 100644 base/src/org/compiere/model/I_B_BidComment.java create mode 100644 base/src/org/compiere/model/I_B_Buyer.java create mode 100644 base/src/org/compiere/model/I_B_BuyerFunds.java create mode 100644 base/src/org/compiere/model/I_B_Offer.java create mode 100644 base/src/org/compiere/model/I_B_Seller.java create mode 100644 base/src/org/compiere/model/I_B_SellerFunds.java create mode 100644 base/src/org/compiere/model/I_B_Topic.java create mode 100644 base/src/org/compiere/model/I_B_TopicCategory.java create mode 100644 base/src/org/compiere/model/I_B_TopicType.java create mode 100644 base/src/org/compiere/model/I_CM_AccessContainer.java create mode 100644 base/src/org/compiere/model/I_CM_AccessListBPGroup.java create mode 100644 base/src/org/compiere/model/I_CM_AccessListRole.java create mode 100644 base/src/org/compiere/model/I_CM_AccessMedia.java create mode 100644 base/src/org/compiere/model/I_CM_AccessNewsChannel.java create mode 100644 base/src/org/compiere/model/I_CM_AccessProfile.java create mode 100644 base/src/org/compiere/model/I_CM_AccessStage.java create mode 100644 base/src/org/compiere/model/I_CM_Ad.java create mode 100644 base/src/org/compiere/model/I_CM_Ad_Cat.java create mode 100644 base/src/org/compiere/model/I_CM_BroadcastServer.java create mode 100644 base/src/org/compiere/model/I_CM_CStage.java create mode 100644 base/src/org/compiere/model/I_CM_CStageTTable.java create mode 100644 base/src/org/compiere/model/I_CM_CStage_Element.java create mode 100644 base/src/org/compiere/model/I_CM_Chat.java create mode 100644 base/src/org/compiere/model/I_CM_ChatEntry.java create mode 100644 base/src/org/compiere/model/I_CM_ChatType.java create mode 100644 base/src/org/compiere/model/I_CM_ChatTypeUpdate.java create mode 100644 base/src/org/compiere/model/I_CM_ChatUpdate.java create mode 100644 base/src/org/compiere/model/I_CM_Container.java create mode 100644 base/src/org/compiere/model/I_CM_ContainerTTable.java create mode 100644 base/src/org/compiere/model/I_CM_Container_Element.java create mode 100644 base/src/org/compiere/model/I_CM_Container_URL.java create mode 100644 base/src/org/compiere/model/I_CM_Media.java create mode 100644 base/src/org/compiere/model/I_CM_MediaDeploy.java create mode 100644 base/src/org/compiere/model/I_CM_Media_Server.java create mode 100644 base/src/org/compiere/model/I_CM_NewsChannel.java create mode 100644 base/src/org/compiere/model/I_CM_NewsItem.java create mode 100644 base/src/org/compiere/model/I_CM_Template.java create mode 100644 base/src/org/compiere/model/I_CM_TemplateTable.java create mode 100644 base/src/org/compiere/model/I_CM_Template_Ad_Cat.java create mode 100644 base/src/org/compiere/model/I_CM_WebAccessLog.java create mode 100644 base/src/org/compiere/model/I_CM_WebProject.java create mode 100644 base/src/org/compiere/model/I_CM_WebProject_Domain.java create mode 100644 base/src/org/compiere/model/I_CM_WikiToken.java create mode 100644 base/src/org/compiere/model/I_C_AcctProcessor.java create mode 100644 base/src/org/compiere/model/I_C_AcctProcessorLog.java create mode 100644 base/src/org/compiere/model/I_C_AcctSchema.java create mode 100644 base/src/org/compiere/model/I_C_AcctSchema_Default.java create mode 100644 base/src/org/compiere/model/I_C_AcctSchema_Element.java create mode 100644 base/src/org/compiere/model/I_C_AcctSchema_GL.java create mode 100644 base/src/org/compiere/model/I_C_Activity.java create mode 100644 base/src/org/compiere/model/I_C_AllocationHdr.java create mode 100644 base/src/org/compiere/model/I_C_AllocationLine.java create mode 100644 base/src/org/compiere/model/I_C_BP_BankAccount.java create mode 100644 base/src/org/compiere/model/I_C_BP_Customer_Acct.java create mode 100644 base/src/org/compiere/model/I_C_BP_EDI.java create mode 100644 base/src/org/compiere/model/I_C_BP_Employee_Acct.java create mode 100644 base/src/org/compiere/model/I_C_BP_Group.java create mode 100644 base/src/org/compiere/model/I_C_BP_Group_Acct.java create mode 100644 base/src/org/compiere/model/I_C_BP_Relation.java create mode 100644 base/src/org/compiere/model/I_C_BP_Vendor_Acct.java create mode 100644 base/src/org/compiere/model/I_C_BP_Withholding.java create mode 100644 base/src/org/compiere/model/I_C_BPartner.java create mode 100644 base/src/org/compiere/model/I_C_BPartner_Location.java create mode 100644 base/src/org/compiere/model/I_C_BPartner_Product.java create mode 100644 base/src/org/compiere/model/I_C_Bank.java create mode 100644 base/src/org/compiere/model/I_C_BankAccount.java create mode 100644 base/src/org/compiere/model/I_C_BankAccountDoc.java create mode 100644 base/src/org/compiere/model/I_C_BankAccount_Acct.java create mode 100644 base/src/org/compiere/model/I_C_BankStatement.java create mode 100644 base/src/org/compiere/model/I_C_BankStatementLine.java create mode 100644 base/src/org/compiere/model/I_C_BankStatementLoader.java create mode 100644 base/src/org/compiere/model/I_C_BankStatementMatcher.java create mode 100644 base/src/org/compiere/model/I_C_Calendar.java create mode 100644 base/src/org/compiere/model/I_C_Campaign.java create mode 100644 base/src/org/compiere/model/I_C_Cash.java create mode 100644 base/src/org/compiere/model/I_C_CashBook.java create mode 100644 base/src/org/compiere/model/I_C_CashBook_Acct.java create mode 100644 base/src/org/compiere/model/I_C_CashLine.java create mode 100644 base/src/org/compiere/model/I_C_Channel.java create mode 100644 base/src/org/compiere/model/I_C_Charge.java create mode 100644 base/src/org/compiere/model/I_C_Charge_Acct.java create mode 100644 base/src/org/compiere/model/I_C_City.java create mode 100644 base/src/org/compiere/model/I_C_Commission.java create mode 100644 base/src/org/compiere/model/I_C_CommissionAmt.java create mode 100644 base/src/org/compiere/model/I_C_CommissionDetail.java create mode 100644 base/src/org/compiere/model/I_C_CommissionLine.java create mode 100644 base/src/org/compiere/model/I_C_CommissionRun.java create mode 100644 base/src/org/compiere/model/I_C_ConversionType.java create mode 100644 base/src/org/compiere/model/I_C_Conversion_Rate.java create mode 100644 base/src/org/compiere/model/I_C_Country.java create mode 100644 base/src/org/compiere/model/I_C_Currency.java create mode 100644 base/src/org/compiere/model/I_C_Currency_Acct.java create mode 100644 base/src/org/compiere/model/I_C_Cycle.java create mode 100644 base/src/org/compiere/model/I_C_CyclePhase.java create mode 100644 base/src/org/compiere/model/I_C_CycleStep.java create mode 100644 base/src/org/compiere/model/I_C_DocType.java create mode 100644 base/src/org/compiere/model/I_C_DocTypeCounter.java create mode 100644 base/src/org/compiere/model/I_C_Dunning.java create mode 100644 base/src/org/compiere/model/I_C_DunningLevel.java create mode 100644 base/src/org/compiere/model/I_C_DunningRun.java create mode 100644 base/src/org/compiere/model/I_C_DunningRunEntry.java create mode 100644 base/src/org/compiere/model/I_C_DunningRunLine.java create mode 100644 base/src/org/compiere/model/I_C_Element.java create mode 100644 base/src/org/compiere/model/I_C_ElementValue.java create mode 100644 base/src/org/compiere/model/I_C_Greeting.java create mode 100644 base/src/org/compiere/model/I_C_InterOrg_Acct.java create mode 100644 base/src/org/compiere/model/I_C_Invoice.java create mode 100644 base/src/org/compiere/model/I_C_InvoiceBatch.java create mode 100644 base/src/org/compiere/model/I_C_InvoiceBatchLine.java create mode 100644 base/src/org/compiere/model/I_C_InvoiceLine.java create mode 100644 base/src/org/compiere/model/I_C_InvoicePaySchedule.java create mode 100644 base/src/org/compiere/model/I_C_InvoiceSchedule.java create mode 100644 base/src/org/compiere/model/I_C_InvoiceTax.java create mode 100644 base/src/org/compiere/model/I_C_Job.java create mode 100644 base/src/org/compiere/model/I_C_JobAssignment.java create mode 100644 base/src/org/compiere/model/I_C_JobCategory.java create mode 100644 base/src/org/compiere/model/I_C_JobRemuneration.java create mode 100644 base/src/org/compiere/model/I_C_LandedCost.java create mode 100644 base/src/org/compiere/model/I_C_LandedCostAllocation.java create mode 100644 base/src/org/compiere/model/I_C_Location.java create mode 100644 base/src/org/compiere/model/I_C_NonBusinessDay.java create mode 100644 base/src/org/compiere/model/I_C_Order.java create mode 100644 base/src/org/compiere/model/I_C_OrderLine.java create mode 100644 base/src/org/compiere/model/I_C_OrderTax.java create mode 100644 base/src/org/compiere/model/I_C_OrgAssignment.java create mode 100644 base/src/org/compiere/model/I_C_POS.java create mode 100644 base/src/org/compiere/model/I_C_POSKey.java create mode 100644 base/src/org/compiere/model/I_C_POSKeyLayout.java create mode 100644 base/src/org/compiere/model/I_C_PaySchedule.java create mode 100644 base/src/org/compiere/model/I_C_PaySelection.java create mode 100644 base/src/org/compiere/model/I_C_PaySelectionCheck.java create mode 100644 base/src/org/compiere/model/I_C_PaySelectionLine.java create mode 100644 base/src/org/compiere/model/I_C_Payment.java create mode 100644 base/src/org/compiere/model/I_C_PaymentAllocate.java create mode 100644 base/src/org/compiere/model/I_C_PaymentBatch.java create mode 100644 base/src/org/compiere/model/I_C_PaymentProcessor.java create mode 100644 base/src/org/compiere/model/I_C_PaymentTerm.java create mode 100644 base/src/org/compiere/model/I_C_Period.java create mode 100644 base/src/org/compiere/model/I_C_PeriodControl.java create mode 100644 base/src/org/compiere/model/I_C_Phase.java create mode 100644 base/src/org/compiere/model/I_C_Project.java create mode 100644 base/src/org/compiere/model/I_C_ProjectIssue.java create mode 100644 base/src/org/compiere/model/I_C_ProjectIssueMA.java create mode 100644 base/src/org/compiere/model/I_C_ProjectLine.java create mode 100644 base/src/org/compiere/model/I_C_ProjectPhase.java create mode 100644 base/src/org/compiere/model/I_C_ProjectTask.java create mode 100644 base/src/org/compiere/model/I_C_ProjectType.java create mode 100644 base/src/org/compiere/model/I_C_Project_Acct.java create mode 100644 base/src/org/compiere/model/I_C_Recurring.java create mode 100644 base/src/org/compiere/model/I_C_Recurring_Run.java create mode 100644 base/src/org/compiere/model/I_C_Region.java create mode 100644 base/src/org/compiere/model/I_C_Remuneration.java create mode 100644 base/src/org/compiere/model/I_C_RevenueRecognition.java create mode 100644 base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java create mode 100644 base/src/org/compiere/model/I_C_RevenueRecognition_Run.java create mode 100644 base/src/org/compiere/model/I_C_RfQ.java create mode 100644 base/src/org/compiere/model/I_C_RfQLine.java create mode 100644 base/src/org/compiere/model/I_C_RfQLineQty.java create mode 100644 base/src/org/compiere/model/I_C_RfQResponse.java create mode 100644 base/src/org/compiere/model/I_C_RfQResponseLine.java create mode 100644 base/src/org/compiere/model/I_C_RfQResponseLineQty.java create mode 100644 base/src/org/compiere/model/I_C_RfQ_Topic.java create mode 100644 base/src/org/compiere/model/I_C_RfQ_TopicSubscriber.java create mode 100644 base/src/org/compiere/model/I_C_RfQ_TopicSubscriberOnly.java create mode 100644 base/src/org/compiere/model/I_C_SalesRegion.java create mode 100644 base/src/org/compiere/model/I_C_ServiceLevel.java create mode 100644 base/src/org/compiere/model/I_C_ServiceLevelLine.java create mode 100644 base/src/org/compiere/model/I_C_SubAcct.java create mode 100644 base/src/org/compiere/model/I_C_Subscription.java create mode 100644 base/src/org/compiere/model/I_C_SubscriptionType.java create mode 100644 base/src/org/compiere/model/I_C_Subscription_Delivery.java create mode 100644 base/src/org/compiere/model/I_C_Task.java create mode 100644 base/src/org/compiere/model/I_C_Tax.java create mode 100644 base/src/org/compiere/model/I_C_TaxCategory.java create mode 100644 base/src/org/compiere/model/I_C_TaxDeclaration.java create mode 100644 base/src/org/compiere/model/I_C_TaxDeclarationAcct.java create mode 100644 base/src/org/compiere/model/I_C_TaxDeclarationLine.java create mode 100644 base/src/org/compiere/model/I_C_TaxPostal.java create mode 100644 base/src/org/compiere/model/I_C_Tax_Acct.java create mode 100644 base/src/org/compiere/model/I_C_UOM.java create mode 100644 base/src/org/compiere/model/I_C_UOM_Conversion.java create mode 100644 base/src/org/compiere/model/I_C_UserRemuneration.java create mode 100644 base/src/org/compiere/model/I_C_ValidCombination.java create mode 100644 base/src/org/compiere/model/I_C_Withholding.java create mode 100644 base/src/org/compiere/model/I_C_Withholding_Acct.java create mode 100644 base/src/org/compiere/model/I_C_Year.java create mode 100644 base/src/org/compiere/model/I_Fact_Acct.java create mode 100644 base/src/org/compiere/model/I_Fact_Acct_Balance.java create mode 100644 base/src/org/compiere/model/I_GL_Budget.java create mode 100644 base/src/org/compiere/model/I_GL_BudgetControl.java create mode 100644 base/src/org/compiere/model/I_GL_Category.java create mode 100644 base/src/org/compiere/model/I_GL_Distribution.java create mode 100644 base/src/org/compiere/model/I_GL_DistributionLine.java create mode 100644 base/src/org/compiere/model/I_GL_Fund.java create mode 100644 base/src/org/compiere/model/I_GL_FundRestriction.java create mode 100644 base/src/org/compiere/model/I_GL_Journal.java create mode 100644 base/src/org/compiere/model/I_GL_JournalBatch.java create mode 100644 base/src/org/compiere/model/I_GL_JournalLine.java create mode 100644 base/src/org/compiere/model/I_I_BPartner.java create mode 100644 base/src/org/compiere/model/I_I_BankStatement.java create mode 100644 base/src/org/compiere/model/I_I_Conversion_Rate.java create mode 100644 base/src/org/compiere/model/I_I_ElementValue.java create mode 100644 base/src/org/compiere/model/I_I_GLJournal.java create mode 100644 base/src/org/compiere/model/I_I_InOutLineConfirm.java create mode 100644 base/src/org/compiere/model/I_I_Inventory.java create mode 100644 base/src/org/compiere/model/I_I_Invoice.java create mode 100644 base/src/org/compiere/model/I_I_Order.java create mode 100644 base/src/org/compiere/model/I_I_Payment.java create mode 100644 base/src/org/compiere/model/I_I_Product.java create mode 100644 base/src/org/compiere/model/I_I_ReportLine.java create mode 100644 base/src/org/compiere/model/I_K_Category.java create mode 100644 base/src/org/compiere/model/I_K_CategoryValue.java create mode 100644 base/src/org/compiere/model/I_K_Comment.java create mode 100644 base/src/org/compiere/model/I_K_Entry.java create mode 100644 base/src/org/compiere/model/I_K_EntryCategory.java create mode 100644 base/src/org/compiere/model/I_K_EntryRelated.java create mode 100644 base/src/org/compiere/model/I_K_Index.java create mode 100644 base/src/org/compiere/model/I_K_IndexLog.java create mode 100644 base/src/org/compiere/model/I_K_IndexStop.java create mode 100644 base/src/org/compiere/model/I_K_Source.java create mode 100644 base/src/org/compiere/model/I_K_Synonym.java create mode 100644 base/src/org/compiere/model/I_K_Topic.java create mode 100644 base/src/org/compiere/model/I_K_Type.java create mode 100644 base/src/org/compiere/model/I_M_Attribute.java create mode 100644 base/src/org/compiere/model/I_M_AttributeInstance.java create mode 100644 base/src/org/compiere/model/I_M_AttributeSearch.java create mode 100644 base/src/org/compiere/model/I_M_AttributeSet.java create mode 100644 base/src/org/compiere/model/I_M_AttributeSetExclude.java create mode 100644 base/src/org/compiere/model/I_M_AttributeSetInstance.java create mode 100644 base/src/org/compiere/model/I_M_AttributeUse.java create mode 100644 base/src/org/compiere/model/I_M_AttributeValue.java create mode 100644 base/src/org/compiere/model/I_M_BOM.java create mode 100644 base/src/org/compiere/model/I_M_BOMAlternative.java create mode 100644 base/src/org/compiere/model/I_M_BOMProduct.java create mode 100644 base/src/org/compiere/model/I_M_ChangeNotice.java create mode 100644 base/src/org/compiere/model/I_M_ChangeRequest.java create mode 100644 base/src/org/compiere/model/I_M_Cost.java create mode 100644 base/src/org/compiere/model/I_M_CostDetail.java create mode 100644 base/src/org/compiere/model/I_M_CostElement.java create mode 100644 base/src/org/compiere/model/I_M_CostQueue.java create mode 100644 base/src/org/compiere/model/I_M_CostType.java create mode 100644 base/src/org/compiere/model/I_M_Demand.java create mode 100644 base/src/org/compiere/model/I_M_DemandDetail.java create mode 100644 base/src/org/compiere/model/I_M_DemandLine.java create mode 100644 base/src/org/compiere/model/I_M_DiscountSchema.java create mode 100644 base/src/org/compiere/model/I_M_DiscountSchemaBreak.java create mode 100644 base/src/org/compiere/model/I_M_DiscountSchemaLine.java create mode 100644 base/src/org/compiere/model/I_M_DistributionList.java create mode 100644 base/src/org/compiere/model/I_M_DistributionListLine.java create mode 100644 base/src/org/compiere/model/I_M_DistributionRun.java create mode 100644 base/src/org/compiere/model/I_M_DistributionRunLine.java create mode 100644 base/src/org/compiere/model/I_M_EDI.java create mode 100644 base/src/org/compiere/model/I_M_EDI_Info.java create mode 100644 base/src/org/compiere/model/I_M_Forecast.java create mode 100644 base/src/org/compiere/model/I_M_ForecastLine.java create mode 100644 base/src/org/compiere/model/I_M_Freight.java create mode 100644 base/src/org/compiere/model/I_M_FreightCategory.java create mode 100644 base/src/org/compiere/model/I_M_InOut.java create mode 100644 base/src/org/compiere/model/I_M_InOutConfirm.java create mode 100644 base/src/org/compiere/model/I_M_InOutLine.java create mode 100644 base/src/org/compiere/model/I_M_InOutLineConfirm.java create mode 100644 base/src/org/compiere/model/I_M_InOutLineMA.java create mode 100644 base/src/org/compiere/model/I_M_Inventory.java create mode 100644 base/src/org/compiere/model/I_M_InventoryLine.java create mode 100644 base/src/org/compiere/model/I_M_InventoryLineMA.java create mode 100644 base/src/org/compiere/model/I_M_Locator.java create mode 100644 base/src/org/compiere/model/I_M_Lot.java create mode 100644 base/src/org/compiere/model/I_M_LotCtl.java create mode 100644 base/src/org/compiere/model/I_M_LotCtlExclude.java create mode 100644 base/src/org/compiere/model/I_M_MatchInv.java create mode 100644 base/src/org/compiere/model/I_M_MatchPO.java create mode 100644 base/src/org/compiere/model/I_M_Movement.java create mode 100644 base/src/org/compiere/model/I_M_MovementConfirm.java create mode 100644 base/src/org/compiere/model/I_M_MovementLine.java create mode 100644 base/src/org/compiere/model/I_M_MovementLineConfirm.java create mode 100644 base/src/org/compiere/model/I_M_MovementLineMA.java create mode 100644 base/src/org/compiere/model/I_M_OperationResource.java create mode 100644 base/src/org/compiere/model/I_M_Package.java create mode 100644 base/src/org/compiere/model/I_M_PackageLine.java create mode 100644 base/src/org/compiere/model/I_M_PerpetualInv.java create mode 100644 base/src/org/compiere/model/I_M_PriceList.java create mode 100644 base/src/org/compiere/model/I_M_PriceList_Version.java create mode 100644 base/src/org/compiere/model/I_M_Product.java create mode 100644 base/src/org/compiere/model/I_M_ProductDownload.java create mode 100644 base/src/org/compiere/model/I_M_ProductOperation.java create mode 100644 base/src/org/compiere/model/I_M_ProductPrice.java create mode 100644 base/src/org/compiere/model/I_M_Product_Acct.java create mode 100644 base/src/org/compiere/model/I_M_Product_BOM.java create mode 100644 base/src/org/compiere/model/I_M_Product_Category.java create mode 100644 base/src/org/compiere/model/I_M_Product_Category_Acct.java create mode 100644 base/src/org/compiere/model/I_M_Product_Costing.java create mode 100644 base/src/org/compiere/model/I_M_Product_PO.java create mode 100644 base/src/org/compiere/model/I_M_Production.java create mode 100644 base/src/org/compiere/model/I_M_ProductionLine.java create mode 100644 base/src/org/compiere/model/I_M_ProductionLineMA.java create mode 100644 base/src/org/compiere/model/I_M_ProductionPlan.java create mode 100644 base/src/org/compiere/model/I_M_RMA.java create mode 100644 base/src/org/compiere/model/I_M_RMALine.java create mode 100644 base/src/org/compiere/model/I_M_RMAType.java create mode 100644 base/src/org/compiere/model/I_M_RelatedProduct.java create mode 100644 base/src/org/compiere/model/I_M_Replenish.java create mode 100644 base/src/org/compiere/model/I_M_Requisition.java create mode 100644 base/src/org/compiere/model/I_M_RequisitionLine.java create mode 100644 base/src/org/compiere/model/I_M_SerNoCtl.java create mode 100644 base/src/org/compiere/model/I_M_SerNoCtlExclude.java create mode 100644 base/src/org/compiere/model/I_M_Shipper.java create mode 100644 base/src/org/compiere/model/I_M_Storage.java create mode 100644 base/src/org/compiere/model/I_M_Substitute.java create mode 100644 base/src/org/compiere/model/I_M_Transaction.java create mode 100644 base/src/org/compiere/model/I_M_TransactionAllocation.java create mode 100644 base/src/org/compiere/model/I_M_Warehouse.java create mode 100644 base/src/org/compiere/model/I_M_Warehouse_Acct.java create mode 100644 base/src/org/compiere/model/I_PA_Achievement.java create mode 100644 base/src/org/compiere/model/I_PA_Benchmark.java create mode 100644 base/src/org/compiere/model/I_PA_BenchmarkData.java create mode 100644 base/src/org/compiere/model/I_PA_ColorSchema.java create mode 100644 base/src/org/compiere/model/I_PA_DashboardContent.java create mode 100644 base/src/org/compiere/model/I_PA_Goal.java create mode 100644 base/src/org/compiere/model/I_PA_GoalRestriction.java create mode 100644 base/src/org/compiere/model/I_PA_Hierarchy.java create mode 100644 base/src/org/compiere/model/I_PA_Measure.java create mode 100644 base/src/org/compiere/model/I_PA_MeasureCalc.java create mode 100644 base/src/org/compiere/model/I_PA_Ratio.java create mode 100644 base/src/org/compiere/model/I_PA_RatioElement.java create mode 100644 base/src/org/compiere/model/I_PA_Report.java create mode 100644 base/src/org/compiere/model/I_PA_ReportColumn.java create mode 100644 base/src/org/compiere/model/I_PA_ReportColumnSet.java create mode 100644 base/src/org/compiere/model/I_PA_ReportLine.java create mode 100644 base/src/org/compiere/model/I_PA_ReportLineSet.java create mode 100644 base/src/org/compiere/model/I_PA_ReportSource.java create mode 100644 base/src/org/compiere/model/I_PA_SLA_Criteria.java create mode 100644 base/src/org/compiere/model/I_PA_SLA_Goal.java create mode 100644 base/src/org/compiere/model/I_PA_SLA_Measure.java create mode 100644 base/src/org/compiere/model/I_RV_BPartner.java create mode 100644 base/src/org/compiere/model/I_RV_WarehousePrice.java create mode 100644 base/src/org/compiere/model/I_R_Category.java create mode 100644 base/src/org/compiere/model/I_R_CategoryUpdates.java create mode 100644 base/src/org/compiere/model/I_R_ContactInterest.java create mode 100644 base/src/org/compiere/model/I_R_Group.java create mode 100644 base/src/org/compiere/model/I_R_GroupUpdates.java create mode 100644 base/src/org/compiere/model/I_R_InterestArea.java create mode 100644 base/src/org/compiere/model/I_R_IssueKnown.java create mode 100644 base/src/org/compiere/model/I_R_IssueProject.java create mode 100644 base/src/org/compiere/model/I_R_IssueRecommendation.java create mode 100644 base/src/org/compiere/model/I_R_IssueStatus.java create mode 100644 base/src/org/compiere/model/I_R_IssueSystem.java create mode 100644 base/src/org/compiere/model/I_R_IssueUser.java create mode 100644 base/src/org/compiere/model/I_R_MailText.java create mode 100644 base/src/org/compiere/model/I_R_Request.java create mode 100644 base/src/org/compiere/model/I_R_RequestAction.java create mode 100644 base/src/org/compiere/model/I_R_RequestProcessor.java create mode 100644 base/src/org/compiere/model/I_R_RequestProcessorLog.java create mode 100644 base/src/org/compiere/model/I_R_RequestProcessor_Route.java create mode 100644 base/src/org/compiere/model/I_R_RequestType.java create mode 100644 base/src/org/compiere/model/I_R_RequestTypeUpdates.java create mode 100644 base/src/org/compiere/model/I_R_RequestUpdate.java create mode 100644 base/src/org/compiere/model/I_R_RequestUpdates.java create mode 100644 base/src/org/compiere/model/I_R_Resolution.java create mode 100644 base/src/org/compiere/model/I_R_StandardResponse.java create mode 100644 base/src/org/compiere/model/I_R_Status.java create mode 100644 base/src/org/compiere/model/I_R_StatusCategory.java create mode 100644 base/src/org/compiere/model/I_S_ExpenseType.java create mode 100644 base/src/org/compiere/model/I_S_Resource.java create mode 100644 base/src/org/compiere/model/I_S_ResourceAssignment.java create mode 100644 base/src/org/compiere/model/I_S_ResourceType.java create mode 100644 base/src/org/compiere/model/I_S_ResourceUnAvailable.java create mode 100644 base/src/org/compiere/model/I_S_TimeExpense.java create mode 100644 base/src/org/compiere/model/I_S_TimeExpenseLine.java create mode 100644 base/src/org/compiere/model/I_S_TimeType.java create mode 100644 base/src/org/compiere/model/I_S_Training.java create mode 100644 base/src/org/compiere/model/I_S_Training_Class.java create mode 100644 base/src/org/compiere/model/I_T_Aging.java create mode 100644 base/src/org/compiere/model/I_T_DistributionRunDetail.java create mode 100644 base/src/org/compiere/model/I_T_InventoryValue.java create mode 100644 base/src/org/compiere/model/I_T_InvoiceGL.java create mode 100644 base/src/org/compiere/model/I_T_Replenish.java create mode 100644 base/src/org/compiere/model/I_T_Report.java create mode 100644 base/src/org/compiere/model/I_T_ReportStatement.java create mode 100644 base/src/org/compiere/model/I_T_Transaction.java create mode 100644 base/src/org/compiere/model/I_Test.java create mode 100644 base/src/org/compiere/model/I_W_Advertisement.java create mode 100644 base/src/org/compiere/model/I_W_Basket.java create mode 100644 base/src/org/compiere/model/I_W_BasketLine.java create mode 100644 base/src/org/compiere/model/I_W_Click.java create mode 100644 base/src/org/compiere/model/I_W_ClickCount.java create mode 100644 base/src/org/compiere/model/I_W_Counter.java create mode 100644 base/src/org/compiere/model/I_W_CounterCount.java create mode 100644 base/src/org/compiere/model/I_W_MailMsg.java create mode 100644 base/src/org/compiere/model/I_W_Store.java delete mode 100644 base/src/org/compiere/util/GenerateModel.java diff --git a/base/GenerateModel-general.launch b/base/GenerateModel-general.launch index 6d21582e92..970896282f 100644 --- a/base/GenerateModel-general.launch +++ b/base/GenerateModel-general.launch @@ -1,7 +1,7 @@ - + @@ -11,7 +11,7 @@ - + diff --git a/base/src/org/compiere/model/I_AD_AccessLog.java b/base/src/org/compiere/model/I_AD_AccessLog.java new file mode 100644 index 0000000000..f8096d2976 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_AccessLog.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_AccessLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:19.968 + */ + public interface I_AD_AccessLog +{ + + /** TableName=AD_AccessLog */ + public static final String Table_Name = "AD_AccessLog"; + + /** AD_Table_ID=717 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AccessLog_ID */ + public static final String COLUMNNAME_AD_AccessLog_ID = "AD_AccessLog_ID"; + + /** Set Access Log. + * Log of Access to the System + */ + public void setAD_AccessLog_ID (int AD_AccessLog_ID); + + /** Get Access Log. + * Log of Access to the System + */ + public int getAD_AccessLog_ID(); + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name Reply */ + public static final String COLUMNNAME_Reply = "Reply"; + + /** Set Reply. + * Reply or Answer + */ + public void setReply (String Reply); + + /** Get Reply. + * Reply or Answer + */ + public String getReply(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_AD_Alert.java b/base/src/org/compiere/model/I_AD_Alert.java new file mode 100644 index 0000000000..efae3b52e5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Alert.java @@ -0,0 +1,192 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Alert + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.328 + */ + public interface I_AD_Alert +{ + + /** TableName=AD_Alert */ + public static final String Table_Name = "AD_Alert"; + + /** AD_Table_ID=594 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AlertProcessor_ID */ + public static final String COLUMNNAME_AD_AlertProcessor_ID = "AD_AlertProcessor_ID"; + + /** Set Alert Processor. + * Alert Processor/Server Parameter + */ + public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID); + + /** Get Alert Processor. + * Alert Processor/Server Parameter + */ + public int getAD_AlertProcessor_ID(); + + public I_AD_AlertProcessor getI_AD_AlertProcessor() throws Exception; + + /** Column name AD_Alert_ID */ + public static final String COLUMNNAME_AD_Alert_ID = "AD_Alert_ID"; + + /** Set Alert. + * Adempiere Alert + */ + public void setAD_Alert_ID (int AD_Alert_ID); + + /** Get Alert. + * Adempiere Alert + */ + public int getAD_Alert_ID(); + + /** Column name AlertMessage */ + public static final String COLUMNNAME_AlertMessage = "AlertMessage"; + + /** Set Alert Message. + * Message of the Alert + */ + public void setAlertMessage (String AlertMessage); + + /** Get Alert Message. + * Message of the Alert + */ + public String getAlertMessage(); + + /** Column name AlertSubject */ + public static final String COLUMNNAME_AlertSubject = "AlertSubject"; + + /** Set Alert Subject. + * Subject of the Alert + */ + public void setAlertSubject (String AlertSubject); + + /** Get Alert Subject. + * Subject of the Alert + */ + public String getAlertSubject(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EnforceClientSecurity */ + public static final String COLUMNNAME_EnforceClientSecurity = "EnforceClientSecurity"; + + /** Set Enforce Client Security. + * Send alerts to recipient only if the client security rules of the role allows + */ + public void setEnforceClientSecurity (boolean EnforceClientSecurity); + + /** Get Enforce Client Security. + * Send alerts to recipient only if the client security rules of the role allows + */ + public boolean isEnforceClientSecurity(); + + /** Column name EnforceRoleSecurity */ + public static final String COLUMNNAME_EnforceRoleSecurity = "EnforceRoleSecurity"; + + /** Set Enforce Role Security. + * Send alerts to recipient only if the data security rules of the role allows + */ + public void setEnforceRoleSecurity (boolean EnforceRoleSecurity); + + /** Get Enforce Role Security. + * Send alerts to recipient only if the data security rules of the role allows + */ + public boolean isEnforceRoleSecurity(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_AlertProcessor.java b/base/src/org/compiere/model/I_AD_AlertProcessor.java new file mode 100644 index 0000000000..43a03ec2f1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_AlertProcessor.java @@ -0,0 +1,186 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_AlertProcessor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.39 + */ + public interface I_AD_AlertProcessor +{ + + /** TableName=AD_AlertProcessor */ + public static final String Table_Name = "AD_AlertProcessor"; + + /** AD_Table_ID=700 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AlertProcessor_ID */ + public static final String COLUMNNAME_AD_AlertProcessor_ID = "AD_AlertProcessor_ID"; + + /** Set Alert Processor. + * Alert Processor/Server Parameter + */ + public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID); + + /** Get Alert Processor. + * Alert Processor/Server Parameter + */ + public int getAD_AlertProcessor_ID(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_AlertProcessorLog.java b/base/src/org/compiere/model/I_AD_AlertProcessorLog.java new file mode 100644 index 0000000000..8fcb488cfe --- /dev/null +++ b/base/src/org/compiere/model/I_AD_AlertProcessorLog.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_AlertProcessorLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.453 + */ + public interface I_AD_AlertProcessorLog +{ + + /** TableName=AD_AlertProcessorLog */ + public static final String Table_Name = "AD_AlertProcessorLog"; + + /** AD_Table_ID=699 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AlertProcessorLog_ID */ + public static final String COLUMNNAME_AD_AlertProcessorLog_ID = "AD_AlertProcessorLog_ID"; + + /** Set Alert Processor Log. + * Result of the execution of the Alert Processor + */ + public void setAD_AlertProcessorLog_ID (int AD_AlertProcessorLog_ID); + + /** Get Alert Processor Log. + * Result of the execution of the Alert Processor + */ + public int getAD_AlertProcessorLog_ID(); + + /** Column name AD_AlertProcessor_ID */ + public static final String COLUMNNAME_AD_AlertProcessor_ID = "AD_AlertProcessor_ID"; + + /** Set Alert Processor. + * Alert Processor/Server Parameter + */ + public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID); + + /** Get Alert Processor. + * Alert Processor/Server Parameter + */ + public int getAD_AlertProcessor_ID(); + + public I_AD_AlertProcessor getI_AD_AlertProcessor() throws Exception; + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_AD_AlertRecipient.java b/base/src/org/compiere/model/I_AD_AlertRecipient.java new file mode 100644 index 0000000000..64c4353881 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_AlertRecipient.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_AlertRecipient + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.484 + */ + public interface I_AD_AlertRecipient +{ + + /** TableName=AD_AlertRecipient */ + public static final String Table_Name = "AD_AlertRecipient"; + + /** AD_Table_ID=592 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AlertRecipient_ID */ + public static final String COLUMNNAME_AD_AlertRecipient_ID = "AD_AlertRecipient_ID"; + + /** Set Alert Recipient. + * Recipient of the Alert Notification + */ + public void setAD_AlertRecipient_ID (int AD_AlertRecipient_ID); + + /** Get Alert Recipient. + * Recipient of the Alert Notification + */ + public int getAD_AlertRecipient_ID(); + + /** Column name AD_Alert_ID */ + public static final String COLUMNNAME_AD_Alert_ID = "AD_Alert_ID"; + + /** Set Alert. + * Adempiere Alert + */ + public void setAD_Alert_ID (int AD_Alert_ID); + + /** Get Alert. + * Adempiere Alert + */ + public int getAD_Alert_ID(); + + public I_AD_Alert getI_AD_Alert() throws Exception; + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_AlertRule.java b/base/src/org/compiere/model/I_AD_AlertRule.java new file mode 100644 index 0000000000..8b05e39f0e --- /dev/null +++ b/base/src/org/compiere/model/I_AD_AlertRule.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_AlertRule + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.562 + */ + public interface I_AD_AlertRule +{ + + /** TableName=AD_AlertRule */ + public static final String Table_Name = "AD_AlertRule"; + + /** AD_Table_ID=593 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AlertRule_ID */ + public static final String COLUMNNAME_AD_AlertRule_ID = "AD_AlertRule_ID"; + + /** Set Alert Rule. + * Definition of the alert element + */ + public void setAD_AlertRule_ID (int AD_AlertRule_ID); + + /** Get Alert Rule. + * Definition of the alert element + */ + public int getAD_AlertRule_ID(); + + /** Column name AD_Alert_ID */ + public static final String COLUMNNAME_AD_Alert_ID = "AD_Alert_ID"; + + /** Set Alert. + * Adempiere Alert + */ + public void setAD_Alert_ID (int AD_Alert_ID); + + /** Get Alert. + * Adempiere Alert + */ + public int getAD_Alert_ID(); + + public I_AD_Alert getI_AD_Alert() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name ErrorMsg */ + public static final String COLUMNNAME_ErrorMsg = "ErrorMsg"; + + /** Set Error Msg */ + public void setErrorMsg (String ErrorMsg); + + /** Get Error Msg */ + public String getErrorMsg(); + + /** Column name FromClause */ + public static final String COLUMNNAME_FromClause = "FromClause"; + + /** Set Sql FROM. + * SQL FROM clause + */ + public void setFromClause (String FromClause); + + /** Get Sql FROM. + * SQL FROM clause + */ + public String getFromClause(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OtherClause */ + public static final String COLUMNNAME_OtherClause = "OtherClause"; + + /** Set Other SQL Clause. + * Other SQL Clause + */ + public void setOtherClause (String OtherClause); + + /** Get Other SQL Clause. + * Other SQL Clause + */ + public String getOtherClause(); + + /** Column name PostProcessing */ + public static final String COLUMNNAME_PostProcessing = "PostProcessing"; + + /** Set Post Processing. + * Process SQL after executing the query + */ + public void setPostProcessing (String PostProcessing); + + /** Get Post Processing. + * Process SQL after executing the query + */ + public String getPostProcessing(); + + /** Column name PreProcessing */ + public static final String COLUMNNAME_PreProcessing = "PreProcessing"; + + /** Set Pre Processing. + * Process SQL before executing the query + */ + public void setPreProcessing (String PreProcessing); + + /** Get Pre Processing. + * Process SQL before executing the query + */ + public String getPreProcessing(); + + /** Column name SelectClause */ + public static final String COLUMNNAME_SelectClause = "SelectClause"; + + /** Set Sql SELECT. + * SQL SELECT clause + */ + public void setSelectClause (String SelectClause); + + /** Get Sql SELECT. + * SQL SELECT clause + */ + public String getSelectClause(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_AD_Archive.java b/base/src/org/compiere/model/I_AD_Archive.java new file mode 100644 index 0000000000..9e18e4e64c --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Archive.java @@ -0,0 +1,190 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Archive + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.625 + */ + public interface I_AD_Archive +{ + + /** TableName=AD_Archive */ + public static final String Table_Name = "AD_Archive"; + + /** AD_Table_ID=754 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Archive_ID */ + public static final String COLUMNNAME_AD_Archive_ID = "AD_Archive_ID"; + + /** Set Archive. + * Document and Report Archive + */ + public void setAD_Archive_ID (int AD_Archive_ID); + + /** Get Archive. + * Document and Report Archive + */ + public int getAD_Archive_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsReport */ + public static final String COLUMNNAME_IsReport = "IsReport"; + + /** Set Report. + * Indicates a Report record + */ + public void setIsReport (boolean IsReport); + + /** Get Report. + * Indicates a Report record + */ + public boolean isReport(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_Attachment.java b/base/src/org/compiere/model/I_AD_Attachment.java new file mode 100644 index 0000000000..b41eabf6bb --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Attachment.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Attachment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.718 + */ + public interface I_AD_Attachment +{ + + /** TableName=AD_Attachment */ + public static final String Table_Name = "AD_Attachment"; + + /** AD_Table_ID=254 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Attachment_ID */ + public static final String COLUMNNAME_AD_Attachment_ID = "AD_Attachment_ID"; + + /** Set Attachment. + * Attachment for the document + */ + public void setAD_Attachment_ID (int AD_Attachment_ID); + + /** Get Attachment. + * Attachment for the document + */ + public int getAD_Attachment_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); +} diff --git a/base/src/org/compiere/model/I_AD_AttachmentNote.java b/base/src/org/compiere/model/I_AD_AttachmentNote.java new file mode 100644 index 0000000000..35be66a5c1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_AttachmentNote.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_AttachmentNote + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.781 + */ + public interface I_AD_AttachmentNote +{ + + /** TableName=AD_AttachmentNote */ + public static final String Table_Name = "AD_AttachmentNote"; + + /** AD_Table_ID=705 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_AttachmentNote_ID */ + public static final String COLUMNNAME_AD_AttachmentNote_ID = "AD_AttachmentNote_ID"; + + /** Set Attachment Note. + * Personal Attachment Note + */ + public void setAD_AttachmentNote_ID (int AD_AttachmentNote_ID); + + /** Get Attachment Note. + * Personal Attachment Note + */ + public int getAD_AttachmentNote_ID(); + + /** Column name AD_Attachment_ID */ + public static final String COLUMNNAME_AD_Attachment_ID = "AD_Attachment_ID"; + + /** Set Attachment. + * Attachment for the document + */ + public void setAD_Attachment_ID (int AD_Attachment_ID); + + /** Get Attachment. + * Attachment for the document + */ + public int getAD_Attachment_ID(); + + public I_AD_Attachment getI_AD_Attachment() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); +} diff --git a/base/src/org/compiere/model/I_AD_Attribute.java b/base/src/org/compiere/model/I_AD_Attribute.java new file mode 100644 index 0000000000..b2fcbcd9d4 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Attribute.java @@ -0,0 +1,378 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Attribute + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.906 + */ + public interface I_AD_Attribute +{ + + /** TableName=AD_Attribute */ + public static final String Table_Name = "AD_Attribute"; + + /** AD_Table_ID=405 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Attribute_ID */ + public static final String COLUMNNAME_AD_Attribute_ID = "AD_Attribute_ID"; + + /** Set System Attribute */ + public void setAD_Attribute_ID (int AD_Attribute_ID); + + /** Get System Attribute */ + public int getAD_Attribute_ID(); + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name AD_Reference_Value_ID */ + public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; + + /** Set Reference Key. + * Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID); + + /** Get Reference Key. + * Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_Val_Rule_ID */ + public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; + + /** Set Dynamic Validation. + * Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID); + + /** Get Dynamic Validation. + * Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID(); + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception; + + /** Column name Callout */ + public static final String COLUMNNAME_Callout = "Callout"; + + /** Set Callout. + * Fully qualified class names and method - separated by semicolons + */ + public void setCallout (String Callout); + + /** Get Callout. + * Fully qualified class names and method - separated by semicolons + */ + public String getCallout(); + + /** Column name DefaultValue */ + public static final String COLUMNNAME_DefaultValue = "DefaultValue"; + + /** Set Default Logic. + * Default value hierarchy, separated by ; + + */ + public void setDefaultValue (String DefaultValue); + + /** Get Default Logic. + * Default value hierarchy, separated by ; + + */ + public String getDefaultValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DisplayLength */ + public static final String COLUMNNAME_DisplayLength = "DisplayLength"; + + /** Set Display Length. + * Length of the display in characters + */ + public void setDisplayLength (int DisplayLength); + + /** Get Display Length. + * Length of the display in characters + */ + public int getDisplayLength(); + + /** Column name DisplayLogic */ + public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; + + /** Set Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic); + + /** Get Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic(); + + /** Column name FieldLength */ + public static final String COLUMNNAME_FieldLength = "FieldLength"; + + /** Set Length. + * Length of the column in the database + */ + public void setFieldLength (int FieldLength); + + /** Get Length. + * Length of the column in the database + */ + public int getFieldLength(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsEncrypted */ + public static final String COLUMNNAME_IsEncrypted = "IsEncrypted"; + + /** Set Encrypted. + * Display or Storage is encrypted + */ + public void setIsEncrypted (boolean IsEncrypted); + + /** Get Encrypted. + * Display or Storage is encrypted + */ + public boolean isEncrypted(); + + /** Column name IsFieldOnly */ + public static final String COLUMNNAME_IsFieldOnly = "IsFieldOnly"; + + /** Set Field Only. + * Label is not displayed + */ + public void setIsFieldOnly (boolean IsFieldOnly); + + /** Get Field Only. + * Label is not displayed + */ + public boolean isFieldOnly(); + + /** Column name IsHeading */ + public static final String COLUMNNAME_IsHeading = "IsHeading"; + + /** Set Heading only. + * Field without Column - Only label is displayed + */ + public void setIsHeading (boolean IsHeading); + + /** Get Heading only. + * Field without Column - Only label is displayed + */ + public boolean isHeading(); + + /** Column name IsMandatory */ + public static final String COLUMNNAME_IsMandatory = "IsMandatory"; + + /** Set Mandatory. + * Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory); + + /** Get Mandatory. + * Data entry is required in this column + */ + public boolean isMandatory(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsSameLine */ + public static final String COLUMNNAME_IsSameLine = "IsSameLine"; + + /** Set Same Line. + * Displayed on same line as previous field + */ + public void setIsSameLine (boolean IsSameLine); + + /** Get Same Line. + * Displayed on same line as previous field + */ + public boolean isSameLine(); + + /** Column name IsUpdateable */ + public static final String COLUMNNAME_IsUpdateable = "IsUpdateable"; + + /** Set Updateable. + * Determines, if the field can be updated + */ + public void setIsUpdateable (boolean IsUpdateable); + + /** Get Updateable. + * Determines, if the field can be updated + */ + public boolean isUpdateable(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name VFormat */ + public static final String COLUMNNAME_VFormat = "VFormat"; + + /** Set Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat); + + /** Get Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat(); + + /** Column name ValueMax */ + public static final String COLUMNNAME_ValueMax = "ValueMax"; + + /** Set Max. Value. + * Maximum Value for a field + */ + public void setValueMax (String ValueMax); + + /** Get Max. Value. + * Maximum Value for a field + */ + public String getValueMax(); + + /** Column name ValueMin */ + public static final String COLUMNNAME_ValueMin = "ValueMin"; + + /** Set Min. Value. + * Minimum Value for a field + */ + public void setValueMin (String ValueMin); + + /** Get Min. Value. + * Minimum Value for a field + */ + public String getValueMin(); +} diff --git a/base/src/org/compiere/model/I_AD_Attribute_Value.java b/base/src/org/compiere/model/I_AD_Attribute_Value.java new file mode 100644 index 0000000000..03a9317e7f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Attribute_Value.java @@ -0,0 +1,109 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Attribute_Value + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:20.968 + */ + public interface I_AD_Attribute_Value +{ + + /** TableName=AD_Attribute_Value */ + public static final String Table_Name = "AD_Attribute_Value"; + + /** AD_Table_ID=406 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Attribute_ID */ + public static final String COLUMNNAME_AD_Attribute_ID = "AD_Attribute_ID"; + + /** Set System Attribute */ + public void setAD_Attribute_ID (int AD_Attribute_ID); + + /** Get System Attribute */ + public int getAD_Attribute_ID(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name V_Date */ + public static final String COLUMNNAME_V_Date = "V_Date"; + + /** Set V_Date */ + public void setV_Date (Timestamp V_Date); + + /** Get V_Date */ + public Timestamp getV_Date(); + + /** Column name V_Number */ + public static final String COLUMNNAME_V_Number = "V_Number"; + + /** Set V_Number */ + public void setV_Number (String V_Number); + + /** Get V_Number */ + public String getV_Number(); + + /** Column name V_String */ + public static final String COLUMNNAME_V_String = "V_String"; + + /** Set V_String */ + public void setV_String (String V_String); + + /** Get V_String */ + public String getV_String(); +} diff --git a/base/src/org/compiere/model/I_AD_ChangeLog.java b/base/src/org/compiere/model/I_AD_ChangeLog.java new file mode 100644 index 0000000000..edae6de9ab --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ChangeLog.java @@ -0,0 +1,214 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ChangeLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.015 + */ + public interface I_AD_ChangeLog +{ + + /** TableName=AD_ChangeLog */ + public static final String Table_Name = "AD_ChangeLog"; + + /** AD_Table_ID=580 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_ChangeLog_ID */ + public static final String COLUMNNAME_AD_ChangeLog_ID = "AD_ChangeLog_ID"; + + /** Set Change Log. + * Log of data changes + */ + public void setAD_ChangeLog_ID (int AD_ChangeLog_ID); + + /** Get Change Log. + * Log of data changes + */ + public int getAD_ChangeLog_ID(); + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_Session_ID */ + public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; + + /** Set Session. + * User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID); + + /** Get Session. + * User Session Online or Web + */ + public int getAD_Session_ID(); + + public I_AD_Session getI_AD_Session() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsCustomization */ + public static final String COLUMNNAME_IsCustomization = "IsCustomization"; + + /** Set Customization. + * The change is a customization of the data dictionary and can be applied after Migration + */ + public void setIsCustomization (boolean IsCustomization); + + /** Get Customization. + * The change is a customization of the data dictionary and can be applied after Migration + */ + public boolean isCustomization(); + + /** Column name NewValue */ + public static final String COLUMNNAME_NewValue = "NewValue"; + + /** Set New Value. + * New field value + */ + public void setNewValue (String NewValue); + + /** Get New Value. + * New field value + */ + public String getNewValue(); + + /** Column name OldValue */ + public static final String COLUMNNAME_OldValue = "OldValue"; + + /** Set Old Value. + * The old file data + */ + public void setOldValue (String OldValue); + + /** Get Old Value. + * The old file data + */ + public String getOldValue(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name Redo */ + public static final String COLUMNNAME_Redo = "Redo"; + + /** Set Redo */ + public void setRedo (String Redo); + + /** Get Redo */ + public String getRedo(); + + /** Column name TrxName */ + public static final String COLUMNNAME_TrxName = "TrxName"; + + /** Set Transaction. + * Name of the transaction + */ + public void setTrxName (String TrxName); + + /** Get Transaction. + * Name of the transaction + */ + public String getTrxName(); + + /** Column name Undo */ + public static final String COLUMNNAME_Undo = "Undo"; + + /** Set Undo */ + public void setUndo (String Undo); + + /** Get Undo */ + public String getUndo(); +} diff --git a/base/src/org/compiere/model/I_AD_Client.java b/base/src/org/compiere/model/I_AD_Client.java new file mode 100644 index 0000000000..b876e426b4 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Client.java @@ -0,0 +1,378 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Client + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.078 + */ + public interface I_AD_Client +{ + + /** TableName=AD_Client */ + public static final String Table_Name = "AD_Client"; + + /** AD_Table_ID=112 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AutoArchive */ + public static final String COLUMNNAME_AutoArchive = "AutoArchive"; + + /** Set Auto Archive. + * Enable and level of automatic Archive of documents + */ + public void setAutoArchive (String AutoArchive); + + /** Get Auto Archive. + * Enable and level of automatic Archive of documents + */ + public String getAutoArchive(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentDir */ + public static final String COLUMNNAME_DocumentDir = "DocumentDir"; + + /** Set Document Directory. + * Directory for documents from the application server + */ + public void setDocumentDir (String DocumentDir); + + /** Get Document Directory. + * Directory for documents from the application server + */ + public String getDocumentDir(); + + /** Column name EMailTest */ + public static final String COLUMNNAME_EMailTest = "EMailTest"; + + /** Set EMail Test. + * Test EMail + */ + public void setEMailTest (String EMailTest); + + /** Get EMail Test. + * Test EMail + */ + public String getEMailTest(); + + /** Column name IsCostImmediate */ + public static final String COLUMNNAME_IsCostImmediate = "IsCostImmediate"; + + /** Set Cost Immediately. + * Update Costs immediately for testing + */ + public void setIsCostImmediate (boolean IsCostImmediate); + + /** Get Cost Immediately. + * Update Costs immediately for testing + */ + public boolean isCostImmediate(); + + /** Column name IsMultiLingualDocument */ + public static final String COLUMNNAME_IsMultiLingualDocument = "IsMultiLingualDocument"; + + /** Set Multi Lingual Documents. + * Documents are Multi Lingual + */ + public void setIsMultiLingualDocument (boolean IsMultiLingualDocument); + + /** Get Multi Lingual Documents. + * Documents are Multi Lingual + */ + public boolean isMultiLingualDocument(); + + /** Column name IsPostImmediate */ + public static final String COLUMNNAME_IsPostImmediate = "IsPostImmediate"; + + /** Set Post Immediately. + * Post the accounting immediately for testing + */ + public void setIsPostImmediate (boolean IsPostImmediate); + + /** Get Post Immediately. + * Post the accounting immediately for testing + */ + public boolean isPostImmediate(); + + /** Column name IsServerEMail */ + public static final String COLUMNNAME_IsServerEMail = "IsServerEMail"; + + /** Set Server EMail. + * Send EMail from Server + */ + public void setIsServerEMail (boolean IsServerEMail); + + /** Get Server EMail. + * Send EMail from Server + */ + public boolean isServerEMail(); + + /** Column name IsSmtpAuthorization */ + public static final String COLUMNNAME_IsSmtpAuthorization = "IsSmtpAuthorization"; + + /** Set SMTP Authentication. + * Your mail server requires Authentication + */ + public void setIsSmtpAuthorization (boolean IsSmtpAuthorization); + + /** Get SMTP Authentication. + * Your mail server requires Authentication + */ + public boolean isSmtpAuthorization(); + + /** Column name IsUseBetaFunctions */ + public static final String COLUMNNAME_IsUseBetaFunctions = "IsUseBetaFunctions"; + + /** Set Use Beta Functions. + * Enable the use of Beta Functionality + */ + public void setIsUseBetaFunctions (boolean IsUseBetaFunctions); + + /** Get Use Beta Functions. + * Enable the use of Beta Functionality + */ + public boolean isUseBetaFunctions(); + + /** Column name MMPolicy */ + public static final String COLUMNNAME_MMPolicy = "MMPolicy"; + + /** Set Material Policy. + * Material Movement Policy + */ + public void setMMPolicy (String MMPolicy); + + /** Get Material Policy. + * Material Movement Policy + */ + public String getMMPolicy(); + + /** Column name ModelValidationClasses */ + public static final String COLUMNNAME_ModelValidationClasses = "ModelValidationClasses"; + + /** Set Model Validation Classes. + * List of data model validation classes separated by ; + + */ + public void setModelValidationClasses (String ModelValidationClasses); + + /** Get Model Validation Classes. + * List of data model validation classes separated by ; + + */ + public String getModelValidationClasses(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name RequestEMail */ + public static final String COLUMNNAME_RequestEMail = "RequestEMail"; + + /** Set Request EMail. + * EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public void setRequestEMail (String RequestEMail); + + /** Get Request EMail. + * EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public String getRequestEMail(); + + /** Column name RequestFolder */ + public static final String COLUMNNAME_RequestFolder = "RequestFolder"; + + /** Set Request Folder. + * EMail folder to process incoming emails; + if empty INBOX is used + */ + public void setRequestFolder (String RequestFolder); + + /** Get Request Folder. + * EMail folder to process incoming emails; + if empty INBOX is used + */ + public String getRequestFolder(); + + /** Column name RequestUser */ + public static final String COLUMNNAME_RequestUser = "RequestUser"; + + /** Set Request User. + * User Name (ID) of the email owner + */ + public void setRequestUser (String RequestUser); + + /** Get Request User. + * User Name (ID) of the email owner + */ + public String getRequestUser(); + + /** Column name RequestUserPW */ + public static final String COLUMNNAME_RequestUserPW = "RequestUserPW"; + + /** Set Request User Password. + * Password of the user name (ID) for mail processing + */ + public void setRequestUserPW (String RequestUserPW); + + /** Get Request User Password. + * Password of the user name (ID) for mail processing + */ + public String getRequestUserPW(); + + /** Column name SMTPHost */ + public static final String COLUMNNAME_SMTPHost = "SMTPHost"; + + /** Set Mail Host. + * Hostname of Mail Server for SMTP and IMAP + */ + public void setSMTPHost (String SMTPHost); + + /** Get Mail Host. + * Hostname of Mail Server for SMTP and IMAP + */ + public String getSMTPHost(); + + /** Column name StoreArchiveOnFileSystem */ + public static final String COLUMNNAME_StoreArchiveOnFileSystem = "StoreArchiveOnFileSystem"; + + /** Set Store Archive On File System */ + public void setStoreArchiveOnFileSystem (boolean StoreArchiveOnFileSystem); + + /** Get Store Archive On File System */ + public boolean isStoreArchiveOnFileSystem(); + + /** Column name StoreAttachmentsOnFileSystem */ + public static final String COLUMNNAME_StoreAttachmentsOnFileSystem = "StoreAttachmentsOnFileSystem"; + + /** Set Store Attachments On File System */ + public void setStoreAttachmentsOnFileSystem (boolean StoreAttachmentsOnFileSystem); + + /** Get Store Attachments On File System */ + public boolean isStoreAttachmentsOnFileSystem(); + + /** Column name UnixArchivePath */ + public static final String COLUMNNAME_UnixArchivePath = "UnixArchivePath"; + + /** Set Unix Archive Path */ + public void setUnixArchivePath (String UnixArchivePath); + + /** Get Unix Archive Path */ + public String getUnixArchivePath(); + + /** Column name UnixAttachmentPath */ + public static final String COLUMNNAME_UnixAttachmentPath = "UnixAttachmentPath"; + + /** Set Unix Attachment Path */ + public void setUnixAttachmentPath (String UnixAttachmentPath); + + /** Get Unix Attachment Path */ + public String getUnixAttachmentPath(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name WindowsArchivePath */ + public static final String COLUMNNAME_WindowsArchivePath = "WindowsArchivePath"; + + /** Set Windows Archive Path */ + public void setWindowsArchivePath (String WindowsArchivePath); + + /** Get Windows Archive Path */ + public String getWindowsArchivePath(); + + /** Column name WindowsAttachmentPath */ + public static final String COLUMNNAME_WindowsAttachmentPath = "WindowsAttachmentPath"; + + /** Set Windows Attachment Path */ + public void setWindowsAttachmentPath (String WindowsAttachmentPath); + + /** Get Windows Attachment Path */ + public String getWindowsAttachmentPath(); +} diff --git a/base/src/org/compiere/model/I_AD_ClientInfo.java b/base/src/org/compiere/model/I_AD_ClientInfo.java new file mode 100644 index 0000000000..7e65297bf6 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ClientInfo.java @@ -0,0 +1,292 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ClientInfo + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.203 + */ + public interface I_AD_ClientInfo +{ + + /** TableName=AD_ClientInfo */ + public static final String Table_Name = "AD_ClientInfo"; + + /** AD_Table_ID=227 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Tree_Activity_ID */ + public static final String COLUMNNAME_AD_Tree_Activity_ID = "AD_Tree_Activity_ID"; + + /** Set Activity Tree. + * Tree to determine activity hierarchy + */ + public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID); + + /** Get Activity Tree. + * Tree to determine activity hierarchy + */ + public int getAD_Tree_Activity_ID(); + + /** Column name AD_Tree_BPartner_ID */ + public static final String COLUMNNAME_AD_Tree_BPartner_ID = "AD_Tree_BPartner_ID"; + + /** Set BPartner Tree. + * Tree to determine business partner hierarchy + */ + public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID); + + /** Get BPartner Tree. + * Tree to determine business partner hierarchy + */ + public int getAD_Tree_BPartner_ID(); + + /** Column name AD_Tree_Campaign_ID */ + public static final String COLUMNNAME_AD_Tree_Campaign_ID = "AD_Tree_Campaign_ID"; + + /** Set Campaign Tree. + * Tree to determine marketing campaign hierarchy + */ + public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID); + + /** Get Campaign Tree. + * Tree to determine marketing campaign hierarchy + */ + public int getAD_Tree_Campaign_ID(); + + /** Column name AD_Tree_Menu_ID */ + public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; + + /** Set Menu Tree. + * Tree of the menu + */ + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID); + + /** Get Menu Tree. + * Tree of the menu + */ + public int getAD_Tree_Menu_ID(); + + /** Column name AD_Tree_Org_ID */ + public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; + + /** Set Organization Tree. + * Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID); + + /** Get Organization Tree. + * Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID(); + + /** Column name AD_Tree_Product_ID */ + public static final String COLUMNNAME_AD_Tree_Product_ID = "AD_Tree_Product_ID"; + + /** Set Product Tree. + * Tree to determine product hierarchy + */ + public void setAD_Tree_Product_ID (int AD_Tree_Product_ID); + + /** Get Product Tree. + * Tree to determine product hierarchy + */ + public int getAD_Tree_Product_ID(); + + /** Column name AD_Tree_Project_ID */ + public static final String COLUMNNAME_AD_Tree_Project_ID = "AD_Tree_Project_ID"; + + /** Set Project Tree. + * Tree to determine project hierarchy + */ + public void setAD_Tree_Project_ID (int AD_Tree_Project_ID); + + /** Get Project Tree. + * Tree to determine project hierarchy + */ + public int getAD_Tree_Project_ID(); + + /** Column name AD_Tree_SalesRegion_ID */ + public static final String COLUMNNAME_AD_Tree_SalesRegion_ID = "AD_Tree_SalesRegion_ID"; + + /** Set Sales Region Tree. + * Tree to determine sales regional hierarchy + */ + public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID); + + /** Get Sales Region Tree. + * Tree to determine sales regional hierarchy + */ + public int getAD_Tree_SalesRegion_ID(); + + /** Column name C_AcctSchema1_ID */ + public static final String COLUMNNAME_C_AcctSchema1_ID = "C_AcctSchema1_ID"; + + /** Set Primary Accounting Schema. + * Primary rules for accounting + */ + public void setC_AcctSchema1_ID (int C_AcctSchema1_ID); + + /** Get Primary Accounting Schema. + * Primary rules for accounting + */ + public int getC_AcctSchema1_ID(); + + /** Column name C_BPartnerCashTrx_ID */ + public static final String COLUMNNAME_C_BPartnerCashTrx_ID = "C_BPartnerCashTrx_ID"; + + /** Set Template B.Partner. + * Business Partner used for creating new Business Partners on the fly + */ + public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID); + + /** Get Template B.Partner. + * Business Partner used for creating new Business Partners on the fly + */ + public int getC_BPartnerCashTrx_ID(); + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getI_C_Calendar() throws Exception; + + /** Column name C_UOM_Length_ID */ + public static final String COLUMNNAME_C_UOM_Length_ID = "C_UOM_Length_ID"; + + /** Set UOM for Length. + * Standard Unit of Measure for Length + */ + public void setC_UOM_Length_ID (int C_UOM_Length_ID); + + /** Get UOM for Length. + * Standard Unit of Measure for Length + */ + public int getC_UOM_Length_ID(); + + /** Column name C_UOM_Time_ID */ + public static final String COLUMNNAME_C_UOM_Time_ID = "C_UOM_Time_ID"; + + /** Set UOM for Time. + * Standard Unit of Measure for Time + */ + public void setC_UOM_Time_ID (int C_UOM_Time_ID); + + /** Get UOM for Time. + * Standard Unit of Measure for Time + */ + public int getC_UOM_Time_ID(); + + /** Column name C_UOM_Volume_ID */ + public static final String COLUMNNAME_C_UOM_Volume_ID = "C_UOM_Volume_ID"; + + /** Set UOM for Volume. + * Standard Unit of Measure for Volume + */ + public void setC_UOM_Volume_ID (int C_UOM_Volume_ID); + + /** Get UOM for Volume. + * Standard Unit of Measure for Volume + */ + public int getC_UOM_Volume_ID(); + + /** Column name C_UOM_Weight_ID */ + public static final String COLUMNNAME_C_UOM_Weight_ID = "C_UOM_Weight_ID"; + + /** Set UOM for Weight. + * Standard Unit of Measure for Weight + */ + public void setC_UOM_Weight_ID (int C_UOM_Weight_ID); + + /** Get UOM for Weight. + * Standard Unit of Measure for Weight + */ + public int getC_UOM_Weight_ID(); + + /** Column name IsDiscountLineAmt */ + public static final String COLUMNNAME_IsDiscountLineAmt = "IsDiscountLineAmt"; + + /** Set Discount calculated from Line Amounts. + * Payment Discount calculation does not include Taxes and Charges + */ + public void setIsDiscountLineAmt (boolean IsDiscountLineAmt); + + /** Get Discount calculated from Line Amounts. + * Payment Discount calculation does not include Taxes and Charges + */ + public boolean isDiscountLineAmt(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name M_ProductFreight_ID */ + public static final String COLUMNNAME_M_ProductFreight_ID = "M_ProductFreight_ID"; + + /** Set Product for Freight */ + public void setM_ProductFreight_ID (int M_ProductFreight_ID); + + /** Get Product for Freight */ + public int getM_ProductFreight_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_ClientShare.java b/base/src/org/compiere/model/I_AD_ClientShare.java new file mode 100644 index 0000000000..def38ff1c3 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ClientShare.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ClientShare + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.25 + */ + public interface I_AD_ClientShare +{ + + /** TableName=AD_ClientShare */ + public static final String Table_Name = "AD_ClientShare"; + + /** AD_Table_ID=827 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_ClientShare_ID */ + public static final String COLUMNNAME_AD_ClientShare_ID = "AD_ClientShare_ID"; + + /** Set Client Share. + * Force (not) sharing of client/org entities + */ + public void setAD_ClientShare_ID (int AD_ClientShare_ID); + + /** Get Client Share. + * Force (not) sharing of client/org entities + */ + public int getAD_ClientShare_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ShareType */ + public static final String COLUMNNAME_ShareType = "ShareType"; + + /** Set Share Type. + * Type of sharing + */ + public void setShareType (String ShareType); + + /** Get Share Type. + * Type of sharing + */ + public String getShareType(); +} diff --git a/base/src/org/compiere/model/I_AD_Color.java b/base/src/org/compiere/model/I_AD_Color.java new file mode 100644 index 0000000000..7c0ee58b78 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Color.java @@ -0,0 +1,296 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Color + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.281 + */ + public interface I_AD_Color +{ + + /** TableName=AD_Color */ + public static final String Table_Name = "AD_Color"; + + /** AD_Table_ID=457 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Color_ID */ + public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; + + /** Set System Color. + * Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID); + + /** Get System Color. + * Color for backgrounds or indicators + */ + public int getAD_Color_ID(); + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + public I_AD_Image getI_AD_Image() throws Exception; + + /** Column name Alpha */ + public static final String COLUMNNAME_Alpha = "Alpha"; + + /** Set Alpha. + * Color Alpha value 0-255 + */ + public void setAlpha (int Alpha); + + /** Get Alpha. + * Color Alpha value 0-255 + */ + public int getAlpha(); + + /** Column name Alpha_1 */ + public static final String COLUMNNAME_Alpha_1 = "Alpha_1"; + + /** Set 2nd Alpha. + * Alpha value for second color + */ + public void setAlpha_1 (int Alpha_1); + + /** Get 2nd Alpha. + * Alpha value for second color + */ + public int getAlpha_1(); + + /** Column name Blue */ + public static final String COLUMNNAME_Blue = "Blue"; + + /** Set Blue. + * Color RGB blue value + */ + public void setBlue (int Blue); + + /** Get Blue. + * Color RGB blue value + */ + public int getBlue(); + + /** Column name Blue_1 */ + public static final String COLUMNNAME_Blue_1 = "Blue_1"; + + /** Set 2nd Blue. + * RGB value for second color + */ + public void setBlue_1 (int Blue_1); + + /** Get 2nd Blue. + * RGB value for second color + */ + public int getBlue_1(); + + /** Column name ColorType */ + public static final String COLUMNNAME_ColorType = "ColorType"; + + /** Set Color Type. + * Color presentation for this color + */ + public void setColorType (String ColorType); + + /** Get Color Type. + * Color presentation for this color + */ + public String getColorType(); + + /** Column name Green */ + public static final String COLUMNNAME_Green = "Green"; + + /** Set Green. + * RGB value + */ + public void setGreen (int Green); + + /** Get Green. + * RGB value + */ + public int getGreen(); + + /** Column name Green_1 */ + public static final String COLUMNNAME_Green_1 = "Green_1"; + + /** Set 2nd Green. + * RGB value for second color + */ + public void setGreen_1 (int Green_1); + + /** Get 2nd Green. + * RGB value for second color + */ + public int getGreen_1(); + + /** Column name ImageAlpha */ + public static final String COLUMNNAME_ImageAlpha = "ImageAlpha"; + + /** Set Image Alpha . + * Image Texture Composite Alpha + */ + public void setImageAlpha (BigDecimal ImageAlpha); + + /** Get Image Alpha . + * Image Texture Composite Alpha + */ + public BigDecimal getImageAlpha(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name LineDistance */ + public static final String COLUMNNAME_LineDistance = "LineDistance"; + + /** Set Line Distance. + * Distance between lines + */ + public void setLineDistance (int LineDistance); + + /** Get Line Distance. + * Distance between lines + */ + public int getLineDistance(); + + /** Column name LineWidth */ + public static final String COLUMNNAME_LineWidth = "LineWidth"; + + /** Set Line Width. + * Width of the lines + */ + public void setLineWidth (int LineWidth); + + /** Get Line Width. + * Width of the lines + */ + public int getLineWidth(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Red */ + public static final String COLUMNNAME_Red = "Red"; + + /** Set Red. + * RGB value + */ + public void setRed (int Red); + + /** Get Red. + * RGB value + */ + public int getRed(); + + /** Column name Red_1 */ + public static final String COLUMNNAME_Red_1 = "Red_1"; + + /** Set 2nd Red. + * RGB value for second color + */ + public void setRed_1 (int Red_1); + + /** Get 2nd Red. + * RGB value for second color + */ + public int getRed_1(); + + /** Column name RepeatDistance */ + public static final String COLUMNNAME_RepeatDistance = "RepeatDistance"; + + /** Set Repeat Distance. + * Distance in points to repeat gradient color - or zero + */ + public void setRepeatDistance (int RepeatDistance); + + /** Get Repeat Distance. + * Distance in points to repeat gradient color - or zero + */ + public int getRepeatDistance(); + + /** Column name StartPoint */ + public static final String COLUMNNAME_StartPoint = "StartPoint"; + + /** Set Start Point. + * Start point of the gradient colors + */ + public void setStartPoint (String StartPoint); + + /** Get Start Point. + * Start point of the gradient colors + */ + public String getStartPoint(); +} diff --git a/base/src/org/compiere/model/I_AD_Column.java b/base/src/org/compiere/model/I_AD_Column.java new file mode 100644 index 0000000000..e417c626f9 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Column.java @@ -0,0 +1,499 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Column + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.375 + */ + public interface I_AD_Column +{ + + /** TableName=AD_Column */ + public static final String Table_Name = "AD_Column"; + + /** AD_Table_ID=101 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + /** Column name AD_Element_ID */ + public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; + + /** Set System Element. + * System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID); + + /** Get System Element. + * System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name AD_Reference_Value_ID */ + public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; + + /** Set Reference Key. + * Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID); + + /** Get Reference Key. + * Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_Val_Rule_ID */ + public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; + + /** Set Dynamic Validation. + * Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID); + + /** Get Dynamic Validation. + * Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID(); + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception; + + /** Column name Callout */ + public static final String COLUMNNAME_Callout = "Callout"; + + /** Set Callout. + * Fully qualified class names and method - separated by semicolons + */ + public void setCallout (String Callout); + + /** Get Callout. + * Fully qualified class names and method - separated by semicolons + */ + public String getCallout(); + + /** Column name ColumnName */ + public static final String COLUMNNAME_ColumnName = "ColumnName"; + + /** Set DB Column Name. + * Name of the column in the database + */ + public void setColumnName (String ColumnName); + + /** Get DB Column Name. + * Name of the column in the database + */ + public String getColumnName(); + + /** Column name ColumnSQL */ + public static final String COLUMNNAME_ColumnSQL = "ColumnSQL"; + + /** Set Column SQL. + * Virtual Column (r/o) + */ + public void setColumnSQL (String ColumnSQL); + + /** Get Column SQL. + * Virtual Column (r/o) + */ + public String getColumnSQL(); + + /** Column name DefaultValue */ + public static final String COLUMNNAME_DefaultValue = "DefaultValue"; + + /** Set Default Logic. + * Default value hierarchy, separated by ; + + */ + public void setDefaultValue (String DefaultValue); + + /** Get Default Logic. + * Default value hierarchy, separated by ; + + */ + public String getDefaultValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name FieldLength */ + public static final String COLUMNNAME_FieldLength = "FieldLength"; + + /** Set Length. + * Length of the column in the database + */ + public void setFieldLength (int FieldLength); + + /** Get Length. + * Length of the column in the database + */ + public int getFieldLength(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsAlwaysUpdateable */ + public static final String COLUMNNAME_IsAlwaysUpdateable = "IsAlwaysUpdateable"; + + /** Set Always Updateable. + * The column is always updateable, even if the record is not active or processed + */ + public void setIsAlwaysUpdateable (boolean IsAlwaysUpdateable); + + /** Get Always Updateable. + * The column is always updateable, even if the record is not active or processed + */ + public boolean isAlwaysUpdateable(); + + /** Column name IsEncrypted */ + public static final String COLUMNNAME_IsEncrypted = "IsEncrypted"; + + /** Set Encrypted. + * Display or Storage is encrypted + */ + public void setIsEncrypted (String IsEncrypted); + + /** Get Encrypted. + * Display or Storage is encrypted + */ + public String getIsEncrypted(); + + /** Column name IsIdentifier */ + public static final String COLUMNNAME_IsIdentifier = "IsIdentifier"; + + /** Set Identifier. + * This column is part of the record identifier + */ + public void setIsIdentifier (boolean IsIdentifier); + + /** Get Identifier. + * This column is part of the record identifier + */ + public boolean isIdentifier(); + + /** Column name IsKey */ + public static final String COLUMNNAME_IsKey = "IsKey"; + + /** Set Key column. + * This column is the key in this table + */ + public void setIsKey (boolean IsKey); + + /** Get Key column. + * This column is the key in this table + */ + public boolean isKey(); + + /** Column name IsMandatory */ + public static final String COLUMNNAME_IsMandatory = "IsMandatory"; + + /** Set Mandatory. + * Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory); + + /** Get Mandatory. + * Data entry is required in this column + */ + public boolean isMandatory(); + + /** Column name IsParent */ + public static final String COLUMNNAME_IsParent = "IsParent"; + + /** Set Parent link column. + * This column is a link to the parent table (e.g. header from lines) - incl. Association key columns + */ + public void setIsParent (boolean IsParent); + + /** Get Parent link column. + * This column is a link to the parent table (e.g. header from lines) - incl. Association key columns + */ + public boolean isParent(); + + /** Column name IsSelectionColumn */ + public static final String COLUMNNAME_IsSelectionColumn = "IsSelectionColumn"; + + /** Set Selection Column. + * Is this column used for finding rows in windows + */ + public void setIsSelectionColumn (boolean IsSelectionColumn); + + /** Get Selection Column. + * Is this column used for finding rows in windows + */ + public boolean isSelectionColumn(); + + /** Column name IsSyncDatabase */ + public static final String COLUMNNAME_IsSyncDatabase = "IsSyncDatabase"; + + /** Set Synchronize Database. + * Change database table definition when changing dictionary definition + */ + public void setIsSyncDatabase (String IsSyncDatabase); + + /** Get Synchronize Database. + * Change database table definition when changing dictionary definition + */ + public String getIsSyncDatabase(); + + /** Column name IsTranslated */ + public static final String COLUMNNAME_IsTranslated = "IsTranslated"; + + /** Set Translated. + * This column is translated + */ + public void setIsTranslated (boolean IsTranslated); + + /** Get Translated. + * This column is translated + */ + public boolean isTranslated(); + + /** Column name IsUpdateable */ + public static final String COLUMNNAME_IsUpdateable = "IsUpdateable"; + + /** Set Updateable. + * Determines, if the field can be updated + */ + public void setIsUpdateable (boolean IsUpdateable); + + /** Get Updateable. + * Determines, if the field can be updated + */ + public boolean isUpdateable(); + + /** Column name MandatoryLogic */ + public static final String COLUMNNAME_MandatoryLogic = "MandatoryLogic"; + + /** Set Mandatory Logic */ + public void setMandatoryLogic (String MandatoryLogic); + + /** Get Mandatory Logic */ + public String getMandatoryLogic(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ReadOnlyLogic */ + public static final String COLUMNNAME_ReadOnlyLogic = "ReadOnlyLogic"; + + /** Set Read Only Logic. + * Logic to determine if field is read only (applies only when field is read-write) + */ + public void setReadOnlyLogic (String ReadOnlyLogic); + + /** Get Read Only Logic. + * Logic to determine if field is read only (applies only when field is read-write) + */ + public String getReadOnlyLogic(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name VFormat */ + public static final String COLUMNNAME_VFormat = "VFormat"; + + /** Set Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat); + + /** Get Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat(); + + /** Column name ValueMax */ + public static final String COLUMNNAME_ValueMax = "ValueMax"; + + /** Set Max. Value. + * Maximum Value for a field + */ + public void setValueMax (String ValueMax); + + /** Get Max. Value. + * Maximum Value for a field + */ + public String getValueMax(); + + /** Column name ValueMin */ + public static final String COLUMNNAME_ValueMin = "ValueMin"; + + /** Set Min. Value. + * Minimum Value for a field + */ + public void setValueMin (String ValueMin); + + /** Get Min. Value. + * Minimum Value for a field + */ + public String getValueMin(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (BigDecimal Version); + + /** Get Version. + * Version of the table definition + */ + public BigDecimal getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_Column_Access.java b/base/src/org/compiere/model/I_AD_Column_Access.java new file mode 100644 index 0000000000..936798f2e5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Column_Access.java @@ -0,0 +1,131 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Column_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.515 + */ + public interface I_AD_Column_Access +{ + + /** TableName=AD_Column_Access */ + public static final String Table_Name = "AD_Column_Access"; + + /** AD_Table_ID=571 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name IsExclude */ + public static final String COLUMNNAME_IsExclude = "IsExclude"; + + /** Set Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude); + + /** Get Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); +} diff --git a/base/src/org/compiere/model/I_AD_Desktop.java b/base/src/org/compiere/model/I_AD_Desktop.java new file mode 100644 index 0000000000..e92012f168 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Desktop.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Desktop + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.562 + */ + public interface I_AD_Desktop +{ + + /** TableName=AD_Desktop */ + public static final String Table_Name = "AD_Desktop"; + + /** AD_Table_ID=458 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Color_ID */ + public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; + + /** Set System Color. + * Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID); + + /** Get System Color. + * Color for backgrounds or indicators + */ + public int getAD_Color_ID(); + + /** Column name AD_Desktop_ID */ + public static final String COLUMNNAME_AD_Desktop_ID = "AD_Desktop_ID"; + + /** Set Desktop. + * Collection of Workbenches + */ + public void setAD_Desktop_ID (int AD_Desktop_ID); + + /** Get Desktop. + * Collection of Workbenches + */ + public int getAD_Desktop_ID(); + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_DesktopWorkbench.java b/base/src/org/compiere/model/I_AD_DesktopWorkbench.java new file mode 100644 index 0000000000..4b1472ab3e --- /dev/null +++ b/base/src/org/compiere/model/I_AD_DesktopWorkbench.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_DesktopWorkbench + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.64 + */ + public interface I_AD_DesktopWorkbench +{ + + /** TableName=AD_DesktopWorkbench */ + public static final String Table_Name = "AD_DesktopWorkbench"; + + /** AD_Table_ID=459 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_DesktopWorkbench_ID */ + public static final String COLUMNNAME_AD_DesktopWorkbench_ID = "AD_DesktopWorkbench_ID"; + + /** Set Desktop Workbench */ + public void setAD_DesktopWorkbench_ID (int AD_DesktopWorkbench_ID); + + /** Get Desktop Workbench */ + public int getAD_DesktopWorkbench_ID(); + + /** Column name AD_Desktop_ID */ + public static final String COLUMNNAME_AD_Desktop_ID = "AD_Desktop_ID"; + + /** Set Desktop. + * Collection of Workbenches + */ + public void setAD_Desktop_ID (int AD_Desktop_ID); + + /** Get Desktop. + * Collection of Workbenches + */ + public int getAD_Desktop_ID(); + + public I_AD_Desktop getI_AD_Desktop() throws Exception; + + /** Column name AD_Workbench_ID */ + public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** Set Workbench. + * Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID); + + /** Get Workbench. + * Collection of windows, reports + */ + public int getAD_Workbench_ID(); + + public I_AD_Workbench getI_AD_Workbench() throws Exception; + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_Element.java b/base/src/org/compiere/model/I_AD_Element.java new file mode 100644 index 0000000000..777d966ff4 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Element.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Element + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.703 + */ + public interface I_AD_Element +{ + + /** TableName=AD_Element */ + public static final String Table_Name = "AD_Element"; + + /** AD_Table_ID=276 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Element_ID */ + public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; + + /** Set System Element. + * System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID); + + /** Get System Element. + * System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID(); + + /** Column name ColumnName */ + public static final String COLUMNNAME_ColumnName = "ColumnName"; + + /** Set DB Column Name. + * Name of the column in the database + */ + public void setColumnName (String ColumnName); + + /** Get DB Column Name. + * Name of the column in the database + */ + public String getColumnName(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PO_Description */ + public static final String COLUMNNAME_PO_Description = "PO_Description"; + + /** Set PO Description. + * Description in PO Screens + */ + public void setPO_Description (String PO_Description); + + /** Get PO Description. + * Description in PO Screens + */ + public String getPO_Description(); + + /** Column name PO_Help */ + public static final String COLUMNNAME_PO_Help = "PO_Help"; + + /** Set PO Help. + * Help for PO Screens + */ + public void setPO_Help (String PO_Help); + + /** Get PO Help. + * Help for PO Screens + */ + public String getPO_Help(); + + /** Column name PO_Name */ + public static final String COLUMNNAME_PO_Name = "PO_Name"; + + /** Set PO Name. + * Name on PO Screens + */ + public void setPO_Name (String PO_Name); + + /** Get PO Name. + * Name on PO Screens + */ + public String getPO_Name(); + + /** Column name PO_PrintName */ + public static final String COLUMNNAME_PO_PrintName = "PO_PrintName"; + + /** Set PO Print name. + * Print name on PO Screens/Reports + */ + public void setPO_PrintName (String PO_PrintName); + + /** Get PO Print name. + * Print name on PO Screens/Reports + */ + public String getPO_PrintName(); + + /** Column name PrintName */ + public static final String COLUMNNAME_PrintName = "PrintName"; + + /** Set Print Text. + * The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName); + + /** Get Print Text. + * The label text to be printed on a document or correspondence. + */ + public String getPrintName(); +} diff --git a/base/src/org/compiere/model/I_AD_EntityType.java b/base/src/org/compiere/model/I_AD_EntityType.java new file mode 100644 index 0000000000..f40db69d84 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_EntityType.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_EntityType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.812 + */ + public interface I_AD_EntityType +{ + + /** TableName=AD_EntityType */ + public static final String Table_Name = "AD_EntityType"; + + /** AD_Table_ID=882 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_EntityType_ID */ + public static final String COLUMNNAME_AD_EntityType_ID = "AD_EntityType_ID"; + + /** Set Entity Type. + * System Entity Type + */ + public void setAD_EntityType_ID (int AD_EntityType_ID); + + /** Get Entity Type. + * System Entity Type + */ + public int getAD_EntityType_ID(); + + /** Column name Classpath */ + public static final String COLUMNNAME_Classpath = "Classpath"; + + /** Set Classpath. + * Extension Classpath + */ + public void setClasspath (String Classpath); + + /** Get Classpath. + * Extension Classpath + */ + public String getClasspath(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ModelPackage */ + public static final String COLUMNNAME_ModelPackage = "ModelPackage"; + + /** Set ModelPackage. + * Java Package of the model classes + */ + public void setModelPackage (String ModelPackage); + + /** Get ModelPackage. + * Java Package of the model classes + */ + public String getModelPackage(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_Error.java b/base/src/org/compiere/model/I_AD_Error.java new file mode 100644 index 0000000000..f81baaff28 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Error.java @@ -0,0 +1,108 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Error + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.875 + */ + public interface I_AD_Error +{ + + /** TableName=AD_Error */ + public static final String Table_Name = "AD_Error"; + + /** AD_Table_ID=380 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Error_ID */ + public static final String COLUMNNAME_AD_Error_ID = "AD_Error_ID"; + + /** Set Error */ + public void setAD_Error_ID (int AD_Error_ID); + + /** Get Error */ + public int getAD_Error_ID(); + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name Code */ + public static final String COLUMNNAME_Code = "Code"; + + /** Set Validation code. + * Validation Code + */ + public void setCode (String Code); + + /** Get Validation code. + * Validation Code + */ + public String getCode(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_Field.java b/base/src/org/compiere/model/I_AD_Field.java new file mode 100644 index 0000000000..54b78eaef5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Field.java @@ -0,0 +1,356 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Field + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.921 + */ + public interface I_AD_Field +{ + + /** TableName=AD_Field */ + public static final String Table_Name = "AD_Field"; + + /** AD_Table_ID=107 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_FieldGroup_ID */ + public static final String COLUMNNAME_AD_FieldGroup_ID = "AD_FieldGroup_ID"; + + /** Set Field Group. + * Logical grouping of fields + */ + public void setAD_FieldGroup_ID (int AD_FieldGroup_ID); + + /** Get Field Group. + * Logical grouping of fields + */ + public int getAD_FieldGroup_ID(); + + public I_AD_FieldGroup getI_AD_FieldGroup() throws Exception; + + /** Column name AD_Field_ID */ + public static final String COLUMNNAME_AD_Field_ID = "AD_Field_ID"; + + /** Set Field. + * Field on a database table + */ + public void setAD_Field_ID (int AD_Field_ID); + + /** Get Field. + * Field on a database table + */ + public int getAD_Field_ID(); + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name AD_Tab_ID */ + public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; + + /** Set Tab. + * Tab within a Window + */ + public void setAD_Tab_ID (int AD_Tab_ID); + + /** Get Tab. + * Tab within a Window + */ + public int getAD_Tab_ID(); + + public I_AD_Tab getI_AD_Tab() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DisplayLength */ + public static final String COLUMNNAME_DisplayLength = "DisplayLength"; + + /** Set Display Length. + * Length of the display in characters + */ + public void setDisplayLength (int DisplayLength); + + /** Get Display Length. + * Length of the display in characters + */ + public int getDisplayLength(); + + /** Column name DisplayLogic */ + public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; + + /** Set Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic); + + /** Get Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsCentrallyMaintained */ + public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; + + /** Set Centrally maintained. + * Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained); + + /** Get Centrally maintained. + * Information maintained in System Element table + */ + public boolean isCentrallyMaintained(); + + /** Column name IsDisplayed */ + public static final String COLUMNNAME_IsDisplayed = "IsDisplayed"; + + /** Set Displayed. + * Determines, if this field is displayed + */ + public void setIsDisplayed (boolean IsDisplayed); + + /** Get Displayed. + * Determines, if this field is displayed + */ + public boolean isDisplayed(); + + /** Column name IsEncrypted */ + public static final String COLUMNNAME_IsEncrypted = "IsEncrypted"; + + /** Set Encrypted. + * Display or Storage is encrypted + */ + public void setIsEncrypted (boolean IsEncrypted); + + /** Get Encrypted. + * Display or Storage is encrypted + */ + public boolean isEncrypted(); + + /** Column name IsFieldOnly */ + public static final String COLUMNNAME_IsFieldOnly = "IsFieldOnly"; + + /** Set Field Only. + * Label is not displayed + */ + public void setIsFieldOnly (boolean IsFieldOnly); + + /** Get Field Only. + * Label is not displayed + */ + public boolean isFieldOnly(); + + /** Column name IsHeading */ + public static final String COLUMNNAME_IsHeading = "IsHeading"; + + /** Set Heading only. + * Field without Column - Only label is displayed + */ + public void setIsHeading (boolean IsHeading); + + /** Get Heading only. + * Field without Column - Only label is displayed + */ + public boolean isHeading(); + + /** Column name IsMandatory */ + public static final String COLUMNNAME_IsMandatory = "IsMandatory"; + + /** Set Mandatory. + * Data entry is required in this column + */ + public void setIsMandatory (String IsMandatory); + + /** Get Mandatory. + * Data entry is required in this column + */ + public String getIsMandatory(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsSameLine */ + public static final String COLUMNNAME_IsSameLine = "IsSameLine"; + + /** Set Same Line. + * Displayed on same line as previous field + */ + public void setIsSameLine (boolean IsSameLine); + + /** Get Same Line. + * Displayed on same line as previous field + */ + public boolean isSameLine(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ObscureType */ + public static final String COLUMNNAME_ObscureType = "ObscureType"; + + /** Set Obscure. + * Type of obscuring the data (limiting the display) + */ + public void setObscureType (String ObscureType); + + /** Get Obscure. + * Type of obscuring the data (limiting the display) + */ + public String getObscureType(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name SortNo */ + public static final String COLUMNNAME_SortNo = "SortNo"; + + /** Set Record Sort No. + * Determines in what order the records are displayed + */ + public void setSortNo (BigDecimal SortNo); + + /** Get Record Sort No. + * Determines in what order the records are displayed + */ + public BigDecimal getSortNo(); +} diff --git a/base/src/org/compiere/model/I_AD_FieldGroup.java b/base/src/org/compiere/model/I_AD_FieldGroup.java new file mode 100644 index 0000000000..fde5116942 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_FieldGroup.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_FieldGroup + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:21.984 + */ + public interface I_AD_FieldGroup +{ + + /** TableName=AD_FieldGroup */ + public static final String Table_Name = "AD_FieldGroup"; + + /** AD_Table_ID=414 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_FieldGroup_ID */ + public static final String COLUMNNAME_AD_FieldGroup_ID = "AD_FieldGroup_ID"; + + /** Set Field Group. + * Logical grouping of fields + */ + public void setAD_FieldGroup_ID (int AD_FieldGroup_ID); + + /** Get Field Group. + * Logical grouping of fields + */ + public int getAD_FieldGroup_ID(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_Find.java b/base/src/org/compiere/model/I_AD_Find.java new file mode 100644 index 0000000000..edef9cae8d --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Find.java @@ -0,0 +1,143 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Find + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.109 + */ + public interface I_AD_Find +{ + + /** TableName=AD_Find */ + public static final String Table_Name = "AD_Find"; + + /** AD_Table_ID=404 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + /** Column name AD_Find_ID */ + public static final String COLUMNNAME_AD_Find_ID = "AD_Find_ID"; + + /** Set Find */ + public void setAD_Find_ID (int AD_Find_ID); + + /** Get Find */ + public int getAD_Find_ID(); + + /** Column name AndOr */ + public static final String COLUMNNAME_AndOr = "AndOr"; + + /** Set And/Or. + * Logical operation: AND or OR + */ + public void setAndOr (String AndOr); + + /** Get And/Or. + * Logical operation: AND or OR + */ + public String getAndOr(); + + /** Column name Find_ID */ + public static final String COLUMNNAME_Find_ID = "Find_ID"; + + /** Set Find_ID */ + public void setFind_ID (BigDecimal Find_ID); + + /** Get Find_ID */ + public BigDecimal getFind_ID(); + + /** Column name Operation */ + public static final String COLUMNNAME_Operation = "Operation"; + + /** Set Operation. + * Compare Operation + */ + public void setOperation (String Operation); + + /** Get Operation. + * Compare Operation + */ + public String getOperation(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name Value2 */ + public static final String COLUMNNAME_Value2 = "Value2"; + + /** Set Value To. + * Value To + */ + public void setValue2 (String Value2); + + /** Get Value To. + * Value To + */ + public String getValue2(); +} diff --git a/base/src/org/compiere/model/I_AD_Form.java b/base/src/org/compiere/model/I_AD_Form.java new file mode 100644 index 0000000000..05fff50424 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Form.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Form + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.14 + */ + public interface I_AD_Form +{ + + /** TableName=AD_Form */ + public static final String Table_Name = "AD_Form"; + + /** AD_Table_ID=376 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + + /** Column name Classname */ + public static final String COLUMNNAME_Classname = "Classname"; + + /** Set Classname. + * Java Classname + */ + public void setClassname (String Classname); + + /** Get Classname. + * Java Classname + */ + public String getClassname(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsBetaFunctionality */ + public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality"; + + /** Set Beta Functionality. + * This functionality is considered Beta + */ + public void setIsBetaFunctionality (boolean IsBetaFunctionality); + + /** Get Beta Functionality. + * This functionality is considered Beta + */ + public boolean isBetaFunctionality(); + + /** Column name JSPURL */ + public static final String COLUMNNAME_JSPURL = "JSPURL"; + + /** Set jsp URL. + * Web URL of the jsp function + */ + public void setJSPURL (String JSPURL); + + /** Get jsp URL. + * Web URL of the jsp function + */ + public String getJSPURL(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_Form_Access.java b/base/src/org/compiere/model/I_AD_Form_Access.java new file mode 100644 index 0000000000..d33160366b --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Form_Access.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Form_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.156 + */ + public interface I_AD_Form_Access +{ + + /** TableName=AD_Form_Access */ + public static final String Table_Name = "AD_Form_Access"; + + /** AD_Table_ID=378 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + public I_AD_Form getI_AD_Form() throws Exception; + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name IsReadWrite */ + public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; + + /** Set Read Write. + * Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite); + + /** Get Read Write. + * Field is read / write + */ + public boolean isReadWrite(); +} diff --git a/base/src/org/compiere/model/I_AD_Image.java b/base/src/org/compiere/model/I_AD_Image.java new file mode 100644 index 0000000000..535cb7413d --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Image.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Image + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.203 + */ + public interface I_AD_Image +{ + + /** TableName=AD_Image */ + public static final String Table_Name = "AD_Image"; + + /** AD_Table_ID=461 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_ImpFormat.java b/base/src/org/compiere/model/I_AD_ImpFormat.java new file mode 100644 index 0000000000..9fc540d46a --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ImpFormat.java @@ -0,0 +1,132 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ImpFormat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.312 + */ + public interface I_AD_ImpFormat +{ + + /** TableName=AD_ImpFormat */ + public static final String Table_Name = "AD_ImpFormat"; + + /** AD_Table_ID=381 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_ImpFormat_ID */ + public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; + + /** Set Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID); + + /** Get Import Format */ + public int getAD_ImpFormat_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FormatType */ + public static final String COLUMNNAME_FormatType = "FormatType"; + + /** Set Format. + * Format of the data + */ + public void setFormatType (String FormatType); + + /** Get Format. + * Format of the data + */ + public String getFormatType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_AD_ImpFormat_Row.java b/base/src/org/compiere/model/I_AD_ImpFormat_Row.java new file mode 100644 index 0000000000..63e87d2128 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ImpFormat_Row.java @@ -0,0 +1,236 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ImpFormat_Row + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.406 + */ + public interface I_AD_ImpFormat_Row +{ + + /** TableName=AD_ImpFormat_Row */ + public static final String Table_Name = "AD_ImpFormat_Row"; + + /** AD_Table_ID=382 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_ImpFormat_ID */ + public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; + + /** Set Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID); + + /** Get Import Format */ + public int getAD_ImpFormat_ID(); + + public I_AD_ImpFormat getI_AD_ImpFormat() throws Exception; + + /** Column name AD_ImpFormat_Row_ID */ + public static final String COLUMNNAME_AD_ImpFormat_Row_ID = "AD_ImpFormat_Row_ID"; + + /** Set Format Field */ + public void setAD_ImpFormat_Row_ID (int AD_ImpFormat_Row_ID); + + /** Get Format Field */ + public int getAD_ImpFormat_Row_ID(); + + /** Column name Callout */ + public static final String COLUMNNAME_Callout = "Callout"; + + /** Set Callout. + * Fully qualified class names and method - separated by semicolons + */ + public void setCallout (String Callout); + + /** Get Callout. + * Fully qualified class names and method - separated by semicolons + */ + public String getCallout(); + + /** Column name ConstantValue */ + public static final String COLUMNNAME_ConstantValue = "ConstantValue"; + + /** Set Constant Value. + * Constant value + */ + public void setConstantValue (String ConstantValue); + + /** Get Constant Value. + * Constant value + */ + public String getConstantValue(); + + /** Column name DataFormat */ + public static final String COLUMNNAME_DataFormat = "DataFormat"; + + /** Set Data Format. + * Format String in Java Notation, e.g. ddMMyy + */ + public void setDataFormat (String DataFormat); + + /** Get Data Format. + * Format String in Java Notation, e.g. ddMMyy + */ + public String getDataFormat(); + + /** Column name DataType */ + public static final String COLUMNNAME_DataType = "DataType"; + + /** Set Data Type. + * Type of data + */ + public void setDataType (String DataType); + + /** Get Data Type. + * Type of data + */ + public String getDataType(); + + /** Column name DecimalPoint */ + public static final String COLUMNNAME_DecimalPoint = "DecimalPoint"; + + /** Set Decimal Point. + * Decimal Point in the data file - if any + */ + public void setDecimalPoint (String DecimalPoint); + + /** Get Decimal Point. + * Decimal Point in the data file - if any + */ + public String getDecimalPoint(); + + /** Column name DivideBy100 */ + public static final String COLUMNNAME_DivideBy100 = "DivideBy100"; + + /** Set Divide by 100. + * Divide number by 100 to get correct amount + */ + public void setDivideBy100 (boolean DivideBy100); + + /** Get Divide by 100. + * Divide number by 100 to get correct amount + */ + public boolean isDivideBy100(); + + /** Column name EndNo */ + public static final String COLUMNNAME_EndNo = "EndNo"; + + /** Set End No */ + public void setEndNo (int EndNo); + + /** Get End No */ + public int getEndNo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Script */ + public static final String COLUMNNAME_Script = "Script"; + + /** Set Script. + * Dynamic Java Language Script to calculate result + */ + public void setScript (String Script); + + /** Get Script. + * Dynamic Java Language Script to calculate result + */ + public String getScript(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name StartNo */ + public static final String COLUMNNAME_StartNo = "StartNo"; + + /** Set Start No. + * Starting number/position + */ + public void setStartNo (int StartNo); + + /** Get Start No. + * Starting number/position + */ + public int getStartNo(); +} diff --git a/base/src/org/compiere/model/I_AD_InfoColumn.java b/base/src/org/compiere/model/I_AD_InfoColumn.java new file mode 100644 index 0000000000..8d33d7d1f2 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_InfoColumn.java @@ -0,0 +1,224 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_InfoColumn + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.453 + */ + public interface I_AD_InfoColumn +{ + + /** TableName=AD_InfoColumn */ + public static final String Table_Name = "AD_InfoColumn"; + + /** AD_Table_ID=897 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Element_ID */ + public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; + + /** Set System Element. + * System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID); + + /** Get System Element. + * System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID(); + + public I_AD_Element getI_AD_Element() throws Exception; + + /** Column name AD_InfoColumn_ID */ + public static final String COLUMNNAME_AD_InfoColumn_ID = "AD_InfoColumn_ID"; + + /** Set Info Column. + * Info Window Column + */ + public void setAD_InfoColumn_ID (int AD_InfoColumn_ID); + + /** Get Info Column. + * Info Window Column + */ + public int getAD_InfoColumn_ID(); + + /** Column name AD_InfoWindow_ID */ + public static final String COLUMNNAME_AD_InfoWindow_ID = "AD_InfoWindow_ID"; + + /** Set Info Window. + * Info and search/select Window + */ + public void setAD_InfoWindow_ID (int AD_InfoWindow_ID); + + /** Get Info Window. + * Info and search/select Window + */ + public int getAD_InfoWindow_ID(); + + public I_AD_InfoWindow getI_AD_InfoWindow() throws Exception; + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDisplayed */ + public static final String COLUMNNAME_IsDisplayed = "IsDisplayed"; + + /** Set Displayed. + * Determines, if this field is displayed + */ + public void setIsDisplayed (boolean IsDisplayed); + + /** Get Displayed. + * Determines, if this field is displayed + */ + public boolean isDisplayed(); + + /** Column name IsQueryCriteria */ + public static final String COLUMNNAME_IsQueryCriteria = "IsQueryCriteria"; + + /** Set Query Criteria. + * The column is also used as a query criteria + */ + public void setIsQueryCriteria (boolean IsQueryCriteria); + + /** Get Query Criteria. + * The column is also used as a query criteria + */ + public boolean isQueryCriteria(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SelectClause */ + public static final String COLUMNNAME_SelectClause = "SelectClause"; + + /** Set Sql SELECT. + * SQL SELECT clause + */ + public void setSelectClause (String SelectClause); + + /** Get Sql SELECT. + * SQL SELECT clause + */ + public String getSelectClause(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_InfoWindow.java b/base/src/org/compiere/model/I_AD_InfoWindow.java new file mode 100644 index 0000000000..dc3c731009 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_InfoWindow.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_InfoWindow + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.484 + */ + public interface I_AD_InfoWindow +{ + + /** TableName=AD_InfoWindow */ + public static final String Table_Name = "AD_InfoWindow"; + + /** AD_Table_ID=895 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_InfoWindow_ID */ + public static final String COLUMNNAME_AD_InfoWindow_ID = "AD_InfoWindow_ID"; + + /** Set Info Window. + * Info and search/select Window + */ + public void setAD_InfoWindow_ID (int AD_InfoWindow_ID); + + /** Get Info Window. + * Info and search/select Window + */ + public int getAD_InfoWindow_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name FromClause */ + public static final String COLUMNNAME_FromClause = "FromClause"; + + /** Set Sql FROM. + * SQL FROM clause + */ + public void setFromClause (String FromClause); + + /** Get Sql FROM. + * SQL FROM clause + */ + public String getFromClause(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OtherClause */ + public static final String COLUMNNAME_OtherClause = "OtherClause"; + + /** Set Other SQL Clause. + * Other SQL Clause + */ + public void setOtherClause (String OtherClause); + + /** Get Other SQL Clause. + * Other SQL Clause + */ + public String getOtherClause(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_AD_Issue.java b/base/src/org/compiere/model/I_AD_Issue.java new file mode 100644 index 0000000000..0a63aa6705 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Issue.java @@ -0,0 +1,606 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Issue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:22.625 + */ + public interface I_AD_Issue +{ + + /** TableName=AD_Issue */ + public static final String Table_Name = "AD_Issue"; + + /** AD_Table_ID=828 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + public I_AD_Form getI_AD_Form() throws Exception; + + /** Column name AD_Issue_ID */ + public static final String COLUMNNAME_AD_Issue_ID = "AD_Issue_ID"; + + /** Set System Issue. + * Automatically created or manually entered System Issue + */ + public void setAD_Issue_ID (int AD_Issue_ID); + + /** Get System Issue. + * Automatically created or manually entered System Issue + */ + public int getAD_Issue_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + public I_A_Asset getI_A_Asset() throws Exception; + + /** Column name Comments */ + public static final String COLUMNNAME_Comments = "Comments"; + + /** Set Comments. + * Comments or additional information + */ + public void setComments (String Comments); + + /** Get Comments. + * Comments or additional information + */ + public String getComments(); + + /** Column name DBAddress */ + public static final String COLUMNNAME_DBAddress = "DBAddress"; + + /** Set DB Address. + * JDBC URL of the database server + */ + public void setDBAddress (String DBAddress); + + /** Get DB Address. + * JDBC URL of the database server + */ + public String getDBAddress(); + + /** Column name DatabaseInfo */ + public static final String COLUMNNAME_DatabaseInfo = "DatabaseInfo"; + + /** Set Database. + * Database Information + */ + public void setDatabaseInfo (String DatabaseInfo); + + /** Get Database. + * Database Information + */ + public String getDatabaseInfo(); + + /** Column name ErrorTrace */ + public static final String COLUMNNAME_ErrorTrace = "ErrorTrace"; + + /** Set Error Trace. + * System Error Trace + */ + public void setErrorTrace (String ErrorTrace); + + /** Get Error Trace. + * System Error Trace + */ + public String getErrorTrace(); + + /** Column name IsReproducible */ + public static final String COLUMNNAME_IsReproducible = "IsReproducible"; + + /** Set Reproducible. + * Problem can re reproduced in Gardenworld + */ + public void setIsReproducible (String IsReproducible); + + /** Get Reproducible. + * Problem can re reproduced in Gardenworld + */ + public String getIsReproducible(); + + /** Column name IsVanillaSystem */ + public static final String COLUMNNAME_IsVanillaSystem = "IsVanillaSystem"; + + /** Set Vanilla System. + * The system was NOT compiled from Source - i.e. standard distribution + */ + public void setIsVanillaSystem (String IsVanillaSystem); + + /** Get Vanilla System. + * The system was NOT compiled from Source - i.e. standard distribution + */ + public String getIsVanillaSystem(); + + /** Column name IssueSource */ + public static final String COLUMNNAME_IssueSource = "IssueSource"; + + /** Set Source. + * Issue Source + */ + public void setIssueSource (String IssueSource); + + /** Get Source. + * Issue Source + */ + public String getIssueSource(); + + /** Column name IssueSummary */ + public static final String COLUMNNAME_IssueSummary = "IssueSummary"; + + /** Set Issue Summary. + * Issue Summary + */ + public void setIssueSummary (String IssueSummary); + + /** Get Issue Summary. + * Issue Summary + */ + public String getIssueSummary(); + + /** Column name JavaInfo */ + public static final String COLUMNNAME_JavaInfo = "JavaInfo"; + + /** Set Java Info. + * Java Version Info + */ + public void setJavaInfo (String JavaInfo); + + /** Get Java Info. + * Java Version Info + */ + public String getJavaInfo(); + + /** Column name LineNo */ + public static final String COLUMNNAME_LineNo = "LineNo"; + + /** Set Line. + * Line No + */ + public void setLineNo (int LineNo); + + /** Get Line. + * Line No + */ + public int getLineNo(); + + /** Column name Local_Host */ + public static final String COLUMNNAME_Local_Host = "Local_Host"; + + /** Set Local Host. + * Local Host Info + */ + public void setLocal_Host (String Local_Host); + + /** Get Local Host. + * Local Host Info + */ + public String getLocal_Host(); + + /** Column name LoggerName */ + public static final String COLUMNNAME_LoggerName = "LoggerName"; + + /** Set Logger. + * Logger Name + */ + public void setLoggerName (String LoggerName); + + /** Get Logger. + * Logger Name + */ + public String getLoggerName(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OperatingSystemInfo */ + public static final String COLUMNNAME_OperatingSystemInfo = "OperatingSystemInfo"; + + /** Set Operating System. + * Operating System Info + */ + public void setOperatingSystemInfo (String OperatingSystemInfo); + + /** Get Operating System. + * Operating System Info + */ + public String getOperatingSystemInfo(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProfileInfo */ + public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; + + /** Set Profile. + * Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo); + + /** Get Profile. + * Information to help profiling the system for solving support issues + */ + public String getProfileInfo(); + + /** Column name R_IssueKnown_ID */ + public static final String COLUMNNAME_R_IssueKnown_ID = "R_IssueKnown_ID"; + + /** Set Known Issue. + * Known Issue + */ + public void setR_IssueKnown_ID (int R_IssueKnown_ID); + + /** Get Known Issue. + * Known Issue + */ + public int getR_IssueKnown_ID(); + + /** Column name R_IssueProject_ID */ + public static final String COLUMNNAME_R_IssueProject_ID = "R_IssueProject_ID"; + + /** Set Issue Project. + * Implementation Projects + */ + public void setR_IssueProject_ID (int R_IssueProject_ID); + + /** Get Issue Project. + * Implementation Projects + */ + public int getR_IssueProject_ID(); + + /** Column name R_IssueSystem_ID */ + public static final String COLUMNNAME_R_IssueSystem_ID = "R_IssueSystem_ID"; + + /** Set Issue System. + * System creating the issue + */ + public void setR_IssueSystem_ID (int R_IssueSystem_ID); + + /** Get Issue System. + * System creating the issue + */ + public int getR_IssueSystem_ID(); + + /** Column name R_IssueUser_ID */ + public static final String COLUMNNAME_R_IssueUser_ID = "R_IssueUser_ID"; + + /** Set IssueUser. + * User who reported issues + */ + public void setR_IssueUser_ID (int R_IssueUser_ID); + + /** Get IssueUser. + * User who reported issues + */ + public int getR_IssueUser_ID(); + + /** Column name R_Request_ID */ + public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; + + /** Set Request. + * Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID); + + /** Get Request. + * Request from a Business Partner or Prospect + */ + public int getR_Request_ID(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name ReleaseTag */ + public static final String COLUMNNAME_ReleaseTag = "ReleaseTag"; + + /** Set Release Tag. + * Release Tag + */ + public void setReleaseTag (String ReleaseTag); + + /** Get Release Tag. + * Release Tag + */ + public String getReleaseTag(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name RequestDocumentNo */ + public static final String COLUMNNAME_RequestDocumentNo = "RequestDocumentNo"; + + /** Set Request Document No. + * Adempiere Request Document No + */ + public void setRequestDocumentNo (String RequestDocumentNo); + + /** Get Request Document No. + * Adempiere Request Document No + */ + public String getRequestDocumentNo(); + + /** Column name ResponseText */ + public static final String COLUMNNAME_ResponseText = "ResponseText"; + + /** Set Response Text. + * Request Response Text + */ + public void setResponseText (String ResponseText); + + /** Get Response Text. + * Request Response Text + */ + public String getResponseText(); + + /** Column name SourceClassName */ + public static final String COLUMNNAME_SourceClassName = "SourceClassName"; + + /** Set Source Class. + * Source Class Name + */ + public void setSourceClassName (String SourceClassName); + + /** Get Source Class. + * Source Class Name + */ + public String getSourceClassName(); + + /** Column name SourceMethodName */ + public static final String COLUMNNAME_SourceMethodName = "SourceMethodName"; + + /** Set Source Method. + * Source Method Name + */ + public void setSourceMethodName (String SourceMethodName); + + /** Get Source Method. + * Source Method Name + */ + public String getSourceMethodName(); + + /** Column name StackTrace */ + public static final String COLUMNNAME_StackTrace = "StackTrace"; + + /** Set Stack Trace. + * System Log Trace + */ + public void setStackTrace (String StackTrace); + + /** Get Stack Trace. + * System Log Trace + */ + public String getStackTrace(); + + /** Column name StatisticsInfo */ + public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; + + /** Set Statistics. + * Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo); + + /** Get Statistics. + * Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo(); + + /** Column name SupportEMail */ + public static final String COLUMNNAME_SupportEMail = "SupportEMail"; + + /** Set Support EMail. + * EMail address to send support information and updates to + */ + public void setSupportEMail (String SupportEMail); + + /** Get Support EMail. + * EMail address to send support information and updates to + */ + public String getSupportEMail(); + + /** Column name SystemStatus */ + public static final String COLUMNNAME_SystemStatus = "SystemStatus"; + + /** Set System Status. + * Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus); + + /** Get System Status. + * Status of the system - Support priority depends on system status + */ + public String getSystemStatus(); + + /** Column name UserName */ + public static final String COLUMNNAME_UserName = "UserName"; + + /** Set Registered EMail. + * Email of the responsible for the System + */ + public void setUserName (String UserName); + + /** Get Registered EMail. + * Email of the responsible for the System + */ + public String getUserName(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_LabelPrinter.java b/base/src/org/compiere/model/I_AD_LabelPrinter.java new file mode 100644 index 0000000000..c336e42079 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_LabelPrinter.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_LabelPrinter + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.171 + */ + public interface I_AD_LabelPrinter +{ + + /** TableName=AD_LabelPrinter */ + public static final String Table_Name = "AD_LabelPrinter"; + + /** AD_Table_ID=626 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_LabelPrinter_ID */ + public static final String COLUMNNAME_AD_LabelPrinter_ID = "AD_LabelPrinter_ID"; + + /** Set Label printer. + * Label Printer Definition + */ + public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID); + + /** Get Label printer. + * Label Printer Definition + */ + public int getAD_LabelPrinter_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_LabelPrinterFunction.java b/base/src/org/compiere/model/I_AD_LabelPrinterFunction.java new file mode 100644 index 0000000000..1de35841ed --- /dev/null +++ b/base/src/org/compiere/model/I_AD_LabelPrinterFunction.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_LabelPrinterFunction + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.265 + */ + public interface I_AD_LabelPrinterFunction +{ + + /** TableName=AD_LabelPrinterFunction */ + public static final String Table_Name = "AD_LabelPrinterFunction"; + + /** AD_Table_ID=624 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_LabelPrinterFunction_ID */ + public static final String COLUMNNAME_AD_LabelPrinterFunction_ID = "AD_LabelPrinterFunction_ID"; + + /** Set Label printer Function. + * Function of Label Printer + */ + public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID); + + /** Get Label printer Function. + * Function of Label Printer + */ + public int getAD_LabelPrinterFunction_ID(); + + /** Column name AD_LabelPrinter_ID */ + public static final String COLUMNNAME_AD_LabelPrinter_ID = "AD_LabelPrinter_ID"; + + /** Set Label printer. + * Label Printer Definition + */ + public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID); + + /** Get Label printer. + * Label Printer Definition + */ + public int getAD_LabelPrinter_ID(); + + public I_AD_LabelPrinter getI_AD_LabelPrinter() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FunctionPrefix */ + public static final String COLUMNNAME_FunctionPrefix = "FunctionPrefix"; + + /** Set Function Prefix. + * Data sent before the function + */ + public void setFunctionPrefix (String FunctionPrefix); + + /** Get Function Prefix. + * Data sent before the function + */ + public String getFunctionPrefix(); + + /** Column name FunctionSuffix */ + public static final String COLUMNNAME_FunctionSuffix = "FunctionSuffix"; + + /** Set Function Suffix. + * Data sent after the function + */ + public void setFunctionSuffix (String FunctionSuffix); + + /** Get Function Suffix. + * Data sent after the function + */ + public String getFunctionSuffix(); + + /** Column name IsXYPosition */ + public static final String COLUMNNAME_IsXYPosition = "IsXYPosition"; + + /** Set XY Position. + * The Function is XY position + */ + public void setIsXYPosition (boolean IsXYPosition); + + /** Get XY Position. + * The Function is XY position + */ + public boolean isXYPosition(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name XYSeparator */ + public static final String COLUMNNAME_XYSeparator = "XYSeparator"; + + /** Set XY Separator. + * The separator between the X and Y function. + */ + public void setXYSeparator (String XYSeparator); + + /** Get XY Separator. + * The separator between the X and Y function. + */ + public String getXYSeparator(); +} diff --git a/base/src/org/compiere/model/I_AD_Language.java b/base/src/org/compiere/model/I_AD_Language.java new file mode 100644 index 0000000000..1cfcf43ced --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Language.java @@ -0,0 +1,195 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Language + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.312 + */ + public interface I_AD_Language +{ + + /** TableName=AD_Language */ + public static final String Table_Name = "AD_Language"; + + /** AD_Table_ID=111 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AD_Language_ID */ + public static final String COLUMNNAME_AD_Language_ID = "AD_Language_ID"; + + /** Set Language ID */ + public void setAD_Language_ID (int AD_Language_ID); + + /** Get Language ID */ + public int getAD_Language_ID(); + + /** Column name CountryCode */ + public static final String COLUMNNAME_CountryCode = "CountryCode"; + + /** Set ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode); + + /** Get ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode(); + + /** Column name DatePattern */ + public static final String COLUMNNAME_DatePattern = "DatePattern"; + + /** Set Date Pattern. + * Java Date Pattern + */ + public void setDatePattern (String DatePattern); + + /** Get Date Pattern. + * Java Date Pattern + */ + public String getDatePattern(); + + /** Column name IsBaseLanguage */ + public static final String COLUMNNAME_IsBaseLanguage = "IsBaseLanguage"; + + /** Set Base Language. + * The system information is maintained in this language + */ + public void setIsBaseLanguage (boolean IsBaseLanguage); + + /** Get Base Language. + * The system information is maintained in this language + */ + public boolean isBaseLanguage(); + + /** Column name IsDecimalPoint */ + public static final String COLUMNNAME_IsDecimalPoint = "IsDecimalPoint"; + + /** Set Decimal Point. + * The number notation has a decimal point (no decimal comma) + */ + public void setIsDecimalPoint (boolean IsDecimalPoint); + + /** Get Decimal Point. + * The number notation has a decimal point (no decimal comma) + */ + public boolean isDecimalPoint(); + + /** Column name IsSystemLanguage */ + public static final String COLUMNNAME_IsSystemLanguage = "IsSystemLanguage"; + + /** Set System Language. + * The screens, etc. are maintained in this Language + */ + public void setIsSystemLanguage (boolean IsSystemLanguage); + + /** Get System Language. + * The screens, etc. are maintained in this Language + */ + public boolean isSystemLanguage(); + + /** Column name LanguageISO */ + public static final String COLUMNNAME_LanguageISO = "LanguageISO"; + + /** Set ISO Language Code. + * Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt + */ + public void setLanguageISO (String LanguageISO); + + /** Get ISO Language Code. + * Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt + */ + public String getLanguageISO(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TimePattern */ + public static final String COLUMNNAME_TimePattern = "TimePattern"; + + /** Set Time Pattern. + * Java Time Pattern + */ + public void setTimePattern (String TimePattern); + + /** Get Time Pattern. + * Java Time Pattern + */ + public String getTimePattern(); +} diff --git a/base/src/org/compiere/model/I_AD_LdapAccess.java b/base/src/org/compiere/model/I_AD_LdapAccess.java new file mode 100644 index 0000000000..c6ef2c29dc --- /dev/null +++ b/base/src/org/compiere/model/I_AD_LdapAccess.java @@ -0,0 +1,157 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_LdapAccess + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.484 + */ + public interface I_AD_LdapAccess +{ + + /** TableName=AD_LdapAccess */ + public static final String Table_Name = "AD_LdapAccess"; + + /** AD_Table_ID=904 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_LdapAccess_ID */ + public static final String COLUMNNAME_AD_LdapAccess_ID = "AD_LdapAccess_ID"; + + /** Set Ldap Access. + * Ldap Access Log + */ + public void setAD_LdapAccess_ID (int AD_LdapAccess_ID); + + /** Get Ldap Access. + * Ldap Access Log + */ + public int getAD_LdapAccess_ID(); + + /** Column name AD_LdapProcessor_ID */ + public static final String COLUMNNAME_AD_LdapProcessor_ID = "AD_LdapProcessor_ID"; + + /** Set Ldap Processor. + * LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID); + + /** Get Ldap Processor. + * LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public int getAD_LdapProcessor_ID(); + + public I_AD_LdapProcessor getI_AD_LdapProcessor() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name R_InterestArea_ID */ + public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; + + /** Set Interest Area. + * Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID); + + /** Get Interest Area. + * Interest Area or Topic + */ + public int getR_InterestArea_ID(); + + public I_R_InterestArea getI_R_InterestArea() throws Exception; + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); +} diff --git a/base/src/org/compiere/model/I_AD_LdapProcessor.java b/base/src/org/compiere/model/I_AD_LdapProcessor.java new file mode 100644 index 0000000000..9ffbe8181e --- /dev/null +++ b/base/src/org/compiere/model/I_AD_LdapProcessor.java @@ -0,0 +1,173 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_LdapProcessor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.625 + */ + public interface I_AD_LdapProcessor +{ + + /** TableName=AD_LdapProcessor */ + public static final String Table_Name = "AD_LdapProcessor"; + + /** AD_Table_ID=902 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_LdapProcessor_ID */ + public static final String COLUMNNAME_AD_LdapProcessor_ID = "AD_LdapProcessor_ID"; + + /** Set Ldap Processor. + * LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID); + + /** Get Ldap Processor. + * LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public int getAD_LdapProcessor_ID(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name LdapPort */ + public static final String COLUMNNAME_LdapPort = "LdapPort"; + + /** Set Ldap Port. + * The port the server is listening + */ + public void setLdapPort (int LdapPort); + + /** Get Ldap Port. + * The port the server is listening + */ + public int getLdapPort(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_LdapProcessorLog.java b/base/src/org/compiere/model/I_AD_LdapProcessorLog.java new file mode 100644 index 0000000000..59f85cca41 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_LdapProcessorLog.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_LdapProcessorLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.687 + */ + public interface I_AD_LdapProcessorLog +{ + + /** TableName=AD_LdapProcessorLog */ + public static final String Table_Name = "AD_LdapProcessorLog"; + + /** AD_Table_ID=903 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_LdapProcessorLog_ID */ + public static final String COLUMNNAME_AD_LdapProcessorLog_ID = "AD_LdapProcessorLog_ID"; + + /** Set Ldap Processor Log. + * LDAP Server Log + */ + public void setAD_LdapProcessorLog_ID (int AD_LdapProcessorLog_ID); + + /** Get Ldap Processor Log. + * LDAP Server Log + */ + public int getAD_LdapProcessorLog_ID(); + + /** Column name AD_LdapProcessor_ID */ + public static final String COLUMNNAME_AD_LdapProcessor_ID = "AD_LdapProcessor_ID"; + + /** Set Ldap Processor. + * LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID); + + /** Get Ldap Processor. + * LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public int getAD_LdapProcessor_ID(); + + public I_AD_LdapProcessor getI_AD_LdapProcessor() throws Exception; + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_AD_Menu.java b/base/src/org/compiere/model/I_AD_Menu.java new file mode 100644 index 0000000000..bafc40c3e4 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Menu.java @@ -0,0 +1,256 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Menu + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:23.906 + */ + public interface I_AD_Menu +{ + + /** TableName=AD_Menu */ + public static final String Table_Name = "AD_Menu"; + + /** AD_Table_ID=116 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + public I_AD_Form getI_AD_Form() throws Exception; + + /** Column name AD_Menu_ID */ + public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID"; + + /** Set Menu. + * Identifies a Menu + */ + public void setAD_Menu_ID (int AD_Menu_ID); + + /** Get Menu. + * Identifies a Menu + */ + public int getAD_Menu_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); + + public I_AD_Task getI_AD_Task() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name AD_Workbench_ID */ + public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** Set Workbench. + * Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID); + + /** Get Workbench. + * Collection of windows, reports + */ + public int getAD_Workbench_ID(); + + public I_AD_Workbench getI_AD_Workbench() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name Action */ + public static final String COLUMNNAME_Action = "Action"; + + /** Set Action. + * Indicates the Action to be performed + */ + public void setAction (String Action); + + /** Get Action. + * Indicates the Action to be performed + */ + public String getAction(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_Message.java b/base/src/org/compiere/model/I_AD_Message.java new file mode 100644 index 0000000000..f974031fe9 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Message.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Message + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.062 + */ + public interface I_AD_Message +{ + + /** TableName=AD_Message */ + public static final String Table_Name = "AD_Message"; + + /** AD_Table_ID=109 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Message_ID */ + public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; + + /** Set Message. + * System Message + */ + public void setAD_Message_ID (int AD_Message_ID); + + /** Get Message. + * System Message + */ + public int getAD_Message_ID(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name MsgText */ + public static final String COLUMNNAME_MsgText = "MsgText"; + + /** Set Message Text. + * Textual Informational, Menu or Error Message + */ + public void setMsgText (String MsgText); + + /** Get Message Text. + * Textual Informational, Menu or Error Message + */ + public String getMsgText(); + + /** Column name MsgTip */ + public static final String COLUMNNAME_MsgTip = "MsgTip"; + + /** Set Message Tip. + * Additional tip or help for this message + */ + public void setMsgTip (String MsgTip); + + /** Get Message Tip. + * Additional tip or help for this message + */ + public String getMsgTip(); + + /** Column name MsgType */ + public static final String COLUMNNAME_MsgType = "MsgType"; + + /** Set Message Type. + * Type of message (Informational, Menu or Error) + */ + public void setMsgType (String MsgType); + + /** Get Message Type. + * Type of message (Informational, Menu or Error) + */ + public String getMsgType(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_AD_Modification.java b/base/src/org/compiere/model/I_AD_Modification.java new file mode 100644 index 0000000000..27b5eaf247 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Modification.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Modification + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.109 + */ + public interface I_AD_Modification +{ + + /** TableName=AD_Modification */ + public static final String Table_Name = "AD_Modification"; + + /** AD_Table_ID=883 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Modification_ID */ + public static final String COLUMNNAME_AD_Modification_ID = "AD_Modification_ID"; + + /** Set Modification. + * System Modification or Extension + */ + public void setAD_Modification_ID (int AD_Modification_ID); + + /** Get Modification. + * System Modification or Extension + */ + public int getAD_Modification_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_Note.java b/base/src/org/compiere/model/I_AD_Note.java new file mode 100644 index 0000000000..29b676e9a5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Note.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Note + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.203 + */ + public interface I_AD_Note +{ + + /** TableName=AD_Note */ + public static final String Table_Name = "AD_Note"; + + /** AD_Table_ID=389 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Message_ID */ + public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; + + /** Set Message. + * System Message + */ + public void setAD_Message_ID (int AD_Message_ID); + + /** Get Message. + * System Message + */ + public int getAD_Message_ID(); + + /** Column name AD_Note_ID */ + public static final String COLUMNNAME_AD_Note_ID = "AD_Note_ID"; + + /** Set Notice. + * System Notice + */ + public void setAD_Note_ID (int AD_Note_ID); + + /** Get Notice. + * System Notice + */ + public int getAD_Note_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name AD_WF_Activity_ID */ + public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; + + /** Set Workflow Activity. + * Workflow Activity + */ + public void setAD_WF_Activity_ID (int AD_WF_Activity_ID); + + /** Get Workflow Activity. + * Workflow Activity + */ + public int getAD_WF_Activity_ID(); + + public I_AD_WF_Activity getI_AD_WF_Activity() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_AD_Org.java b/base/src/org/compiere/model/I_AD_Org.java new file mode 100644 index 0000000000..7fc7e35eaf --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Org.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Org + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.25 + */ + public interface I_AD_Org +{ + + /** TableName=AD_Org */ + public static final String Table_Name = "AD_Org"; + + /** AD_Table_ID=155 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_AD_OrgInfo.java b/base/src/org/compiere/model/I_AD_OrgInfo.java new file mode 100644 index 0000000000..a065d929e3 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_OrgInfo.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_OrgInfo + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.296 + */ + public interface I_AD_OrgInfo +{ + + /** TableName=AD_OrgInfo */ + public static final String Table_Name = "AD_OrgInfo"; + + /** AD_Table_ID=228 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_OrgType_ID */ + public static final String COLUMNNAME_AD_OrgType_ID = "AD_OrgType_ID"; + + /** Set Organization Type. + * Organization Type allows you to categorize your organizations + */ + public void setAD_OrgType_ID (int AD_OrgType_ID); + + /** Get Organization Type. + * Organization Type allows you to categorize your organizations + */ + public int getAD_OrgType_ID(); + + public I_AD_OrgType getI_AD_OrgType() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name DUNS */ + public static final String COLUMNNAME_DUNS = "DUNS"; + + /** Set D-U-N-S. + * Dun & Bradstreet Number + */ + public void setDUNS (String DUNS); + + /** Get D-U-N-S. + * Dun & Bradstreet Number + */ + public String getDUNS(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Parent_Org_ID */ + public static final String COLUMNNAME_Parent_Org_ID = "Parent_Org_ID"; + + /** Set Parent Organization. + * Parent (superior) Organization + */ + public void setParent_Org_ID (int Parent_Org_ID); + + /** Get Parent Organization. + * Parent (superior) Organization + */ + public int getParent_Org_ID(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); + + /** Column name TaxID */ + public static final String COLUMNNAME_TaxID = "TaxID"; + + /** Set Tax ID. + * Tax Identification + */ + public void setTaxID (String TaxID); + + /** Get Tax ID. + * Tax Identification + */ + public String getTaxID(); +} diff --git a/base/src/org/compiere/model/I_AD_OrgType.java b/base/src/org/compiere/model/I_AD_OrgType.java new file mode 100644 index 0000000000..a503ef9203 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_OrgType.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_OrgType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.343 + */ + public interface I_AD_OrgType +{ + + /** TableName=AD_OrgType */ + public static final String Table_Name = "AD_OrgType"; + + /** AD_Table_ID=689 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_OrgType_ID */ + public static final String COLUMNNAME_AD_OrgType_ID = "AD_OrgType_ID"; + + /** Set Organization Type. + * Organization Type allows you to categorize your organizations + */ + public void setAD_OrgType_ID (int AD_OrgType_ID); + + /** Get Organization Type. + * Organization Type allows you to categorize your organizations + */ + public int getAD_OrgType_ID(); + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_PInstance.java b/base/src/org/compiere/model/I_AD_PInstance.java new file mode 100644 index 0000000000..fdd2786c26 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PInstance.java @@ -0,0 +1,147 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PInstance + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.406 + */ + public interface I_AD_PInstance +{ + + /** TableName=AD_PInstance */ + public static final String Table_Name = "AD_PInstance"; + + /** AD_Table_ID=282 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name ErrorMsg */ + public static final String COLUMNNAME_ErrorMsg = "ErrorMsg"; + + /** Set Error Msg */ + public void setErrorMsg (String ErrorMsg); + + /** Get Error Msg */ + public String getErrorMsg(); + + /** Column name IsProcessing */ + public static final String COLUMNNAME_IsProcessing = "IsProcessing"; + + /** Set Processing */ + public void setIsProcessing (boolean IsProcessing); + + /** Get Processing */ + public boolean isProcessing(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name Result */ + public static final String COLUMNNAME_Result = "Result"; + + /** Set Result. + * Result of the action taken + */ + public void setResult (int Result); + + /** Get Result. + * Result of the action taken + */ + public int getResult(); +} diff --git a/base/src/org/compiere/model/I_AD_PInstance_Log.java b/base/src/org/compiere/model/I_AD_PInstance_Log.java new file mode 100644 index 0000000000..b5d636442a --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PInstance_Log.java @@ -0,0 +1,128 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PInstance_Log + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.64 + */ + public interface I_AD_PInstance_Log +{ + + /** TableName=AD_PInstance_Log */ + public static final String Table_Name = "AD_PInstance_Log"; + + /** AD_Table_ID=578 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name Log_ID */ + public static final String COLUMNNAME_Log_ID = "Log_ID"; + + /** Set Log */ + public void setLog_ID (int Log_ID); + + /** Get Log */ + public int getLog_ID(); + + /** Column name P_Date */ + public static final String COLUMNNAME_P_Date = "P_Date"; + + /** Set Process Date. + * Process Parameter + */ + public void setP_Date (Timestamp P_Date); + + /** Get Process Date. + * Process Parameter + */ + public Timestamp getP_Date(); + + /** Column name P_ID */ + public static final String COLUMNNAME_P_ID = "P_ID"; + + /** Set Process ID */ + public void setP_ID (int P_ID); + + /** Get Process ID */ + public int getP_ID(); + + /** Column name P_Msg */ + public static final String COLUMNNAME_P_Msg = "P_Msg"; + + /** Set Process Message */ + public void setP_Msg (String P_Msg); + + /** Get Process Message */ + public String getP_Msg(); + + /** Column name P_Number */ + public static final String COLUMNNAME_P_Number = "P_Number"; + + /** Set Process Number. + * Process Parameter + */ + public void setP_Number (BigDecimal P_Number); + + /** Get Process Number. + * Process Parameter + */ + public BigDecimal getP_Number(); +} diff --git a/base/src/org/compiere/model/I_AD_PInstance_Para.java b/base/src/org/compiere/model/I_AD_PInstance_Para.java new file mode 100644 index 0000000000..a8f2017408 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PInstance_Para.java @@ -0,0 +1,199 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PInstance_Para + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.687 + */ + public interface I_AD_PInstance_Para +{ + + /** TableName=AD_PInstance_Para */ + public static final String Table_Name = "AD_PInstance_Para"; + + /** AD_Table_ID=283 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name Info */ + public static final String COLUMNNAME_Info = "Info"; + + /** Set Info. + * Information + */ + public void setInfo (String Info); + + /** Get Info. + * Information + */ + public String getInfo(); + + /** Column name Info_To */ + public static final String COLUMNNAME_Info_To = "Info_To"; + + /** Set Info To */ + public void setInfo_To (String Info_To); + + /** Get Info To */ + public String getInfo_To(); + + /** Column name P_Date */ + public static final String COLUMNNAME_P_Date = "P_Date"; + + /** Set Process Date. + * Process Parameter + */ + public void setP_Date (Timestamp P_Date); + + /** Get Process Date. + * Process Parameter + */ + public Timestamp getP_Date(); + + /** Column name P_Date_To */ + public static final String COLUMNNAME_P_Date_To = "P_Date_To"; + + /** Set Process Date To. + * Process Parameter + */ + public void setP_Date_To (Timestamp P_Date_To); + + /** Get Process Date To. + * Process Parameter + */ + public Timestamp getP_Date_To(); + + /** Column name P_Number */ + public static final String COLUMNNAME_P_Number = "P_Number"; + + /** Set Process Number. + * Process Parameter + */ + public void setP_Number (BigDecimal P_Number); + + /** Get Process Number. + * Process Parameter + */ + public BigDecimal getP_Number(); + + /** Column name P_Number_To */ + public static final String COLUMNNAME_P_Number_To = "P_Number_To"; + + /** Set Process Number To. + * Process Parameter + */ + public void setP_Number_To (BigDecimal P_Number_To); + + /** Get Process Number To. + * Process Parameter + */ + public BigDecimal getP_Number_To(); + + /** Column name P_String */ + public static final String COLUMNNAME_P_String = "P_String"; + + /** Set Process String. + * Process Parameter + */ + public void setP_String (String P_String); + + /** Get Process String. + * Process Parameter + */ + public String getP_String(); + + /** Column name P_String_To */ + public static final String COLUMNNAME_P_String_To = "P_String_To"; + + /** Set Process String To. + * Process Parameter + */ + public void setP_String_To (String P_String_To); + + /** Get Process String To. + * Process Parameter + */ + public String getP_String_To(); + + /** Column name ParameterName */ + public static final String COLUMNNAME_ParameterName = "ParameterName"; + + /** Set Parameter Name */ + public void setParameterName (String ParameterName); + + /** Get Parameter Name */ + public String getParameterName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Exp.java b/base/src/org/compiere/model/I_AD_Package_Exp.java new file mode 100644 index 0000000000..1bae2d222d --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Exp.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Exp + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.734 + */ + public interface I_AD_Package_Exp +{ + + /** TableName=AD_Package_Exp */ + public static final String Table_Name = "AD_Package_Exp"; + + /** AD_Table_ID=50005 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Package_Exp_ID */ + public static final String COLUMNNAME_AD_Package_Exp_ID = "AD_Package_Exp_ID"; + + /** Set AD_Package_Exp_ID */ + public void setAD_Package_Exp_ID (int AD_Package_Exp_ID); + + /** Get AD_Package_Exp_ID */ + public int getAD_Package_Exp_ID(); + + /** Column name AD_Package_Type */ + public static final String COLUMNNAME_AD_Package_Type = "AD_Package_Type"; + + /** Set AD_Package_Type */ + public void setAD_Package_Type (String AD_Package_Type); + + /** Get AD_Package_Type */ + public String getAD_Package_Type(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name File_Directory */ + public static final String COLUMNNAME_File_Directory = "File_Directory"; + + /** Set File_Directory */ + public void setFile_Directory (String File_Directory); + + /** Get File_Directory */ + public String getFile_Directory(); + + /** Column name Instructions */ + public static final String COLUMNNAME_Instructions = "Instructions"; + + /** Set Instructions */ + public void setInstructions (String Instructions); + + /** Get Instructions */ + public String getInstructions(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PK_Version */ + public static final String COLUMNNAME_PK_Version = "PK_Version"; + + /** Set Package Version */ + public void setPK_Version (String PK_Version); + + /** Get Package Version */ + public String getPK_Version(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name UserName */ + public static final String COLUMNNAME_UserName = "UserName"; + + /** Set Registered EMail. + * Email of the responsible for the System + */ + public void setUserName (String UserName); + + /** Get Registered EMail. + * Email of the responsible for the System + */ + public String getUserName(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Exp_Common.java b/base/src/org/compiere/model/I_AD_Package_Exp_Common.java new file mode 100644 index 0000000000..7608a0e68c --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Exp_Common.java @@ -0,0 +1,346 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Exp_Common + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:24.875 + */ + public interface I_AD_Package_Exp_Common +{ + + /** TableName=AD_Package_Exp_Common */ + public static final String Table_Name = "AD_Package_Exp_Common"; + + /** AD_Table_ID=50007 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + /** Column name AD_ImpFormat_ID */ + public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; + + /** Set Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID); + + /** Get Import Format */ + public int getAD_ImpFormat_ID(); + + public I_AD_ImpFormat getI_AD_ImpFormat() throws Exception; + + /** Column name AD_Menu_ID */ + public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID"; + + /** Set Menu. + * Identifies a Menu + */ + public void setAD_Menu_ID (int AD_Menu_ID); + + /** Get Menu. + * Identifies a Menu + */ + public int getAD_Menu_ID(); + + public I_AD_Menu getI_AD_Menu() throws Exception; + + /** Column name AD_Package_Exp_Common_ID */ + public static final String COLUMNNAME_AD_Package_Exp_Common_ID = "AD_Package_Exp_Common_ID"; + + /** Set AD_Package_Exp_Common_ID */ + public void setAD_Package_Exp_Common_ID (int AD_Package_Exp_Common_ID); + + /** Get AD_Package_Exp_Common_ID */ + public int getAD_Package_Exp_Common_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + /** Column name AD_Workbench_ID */ + public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** Set Workbench. + * Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID); + + /** Get Workbench. + * Collection of windows, reports + */ + public int getAD_Workbench_ID(); + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + /** Column name DBType */ + public static final String COLUMNNAME_DBType = "DBType"; + + /** Set DBType */ + public void setDBType (String DBType); + + /** Get DBType */ + public String getDBType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Destination_Directory */ + public static final String COLUMNNAME_Destination_Directory = "Destination_Directory"; + + /** Set Destination_Directory */ + public void setDestination_Directory (String Destination_Directory); + + /** Get Destination_Directory */ + public String getDestination_Directory(); + + /** Column name FileName */ + public static final String COLUMNNAME_FileName = "FileName"; + + /** Set File Name. + * Name of the local file or URL + */ + public void setFileName (String FileName); + + /** Get File Name. + * Name of the local file or URL + */ + public String getFileName(); + + /** Column name File_Directory */ + public static final String COLUMNNAME_File_Directory = "File_Directory"; + + /** Set File_Directory */ + public void setFile_Directory (String File_Directory); + + /** Get File_Directory */ + public String getFile_Directory(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Name2 */ + public static final String COLUMNNAME_Name2 = "Name2"; + + /** Set Name 2. + * Additional Name + */ + public void setName2 (String Name2); + + /** Get Name 2. + * Additional Name + */ + public String getName2(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name SQLStatement */ + public static final String COLUMNNAME_SQLStatement = "SQLStatement"; + + /** Set SQLStatement */ + public void setSQLStatement (String SQLStatement); + + /** Get SQLStatement */ + public String getSQLStatement(); + + /** Column name Target_Directory */ + public static final String COLUMNNAME_Target_Directory = "Target_Directory"; + + /** Set Target_Directory */ + public void setTarget_Directory (String Target_Directory); + + /** Get Target_Directory */ + public String getTarget_Directory(); + + /** Column name Type */ + public static final String COLUMNNAME_Type = "Type"; + + /** Set Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type); + + /** Get Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public String getType(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Exp_Detail.java b/base/src/org/compiere/model/I_AD_Package_Exp_Detail.java new file mode 100644 index 0000000000..951f5b904e --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Exp_Detail.java @@ -0,0 +1,425 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Exp_Detail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.031 + */ + public interface I_AD_Package_Exp_Detail +{ + + /** TableName=AD_Package_Exp_Detail */ + public static final String Table_Name = "AD_Package_Exp_Detail"; + + /** AD_Table_ID=50006 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + /** Column name AD_ImpFormat_ID */ + public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; + + /** Set Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID); + + /** Get Import Format */ + public int getAD_ImpFormat_ID(); + + public I_AD_ImpFormat getI_AD_ImpFormat() throws Exception; + + /** Column name AD_Menu_ID */ + public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID"; + + /** Set Menu. + * Identifies a Menu + */ + public void setAD_Menu_ID (int AD_Menu_ID); + + /** Get Menu. + * Identifies a Menu + */ + public int getAD_Menu_ID(); + + public I_AD_Menu getI_AD_Menu() throws Exception; + + /** Column name AD_Message_ID */ + public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; + + /** Set Message. + * System Message + */ + public void setAD_Message_ID (int AD_Message_ID); + + /** Get Message. + * System Message + */ + public int getAD_Message_ID(); + + public I_AD_Message getI_AD_Message() throws Exception; + + /** Column name AD_Package_Code_New */ + public static final String COLUMNNAME_AD_Package_Code_New = "AD_Package_Code_New"; + + /** Set AD_Package_Code_New */ + public void setAD_Package_Code_New (String AD_Package_Code_New); + + /** Get AD_Package_Code_New */ + public String getAD_Package_Code_New(); + + /** Column name AD_Package_Code_Old */ + public static final String COLUMNNAME_AD_Package_Code_Old = "AD_Package_Code_Old"; + + /** Set AD_Package_Code_Old */ + public void setAD_Package_Code_Old (String AD_Package_Code_Old); + + /** Get AD_Package_Code_Old */ + public String getAD_Package_Code_Old(); + + /** Column name AD_Package_Exp_Detail_ID */ + public static final String COLUMNNAME_AD_Package_Exp_Detail_ID = "AD_Package_Exp_Detail_ID"; + + /** Set AD_Package_Exp_Detail_ID */ + public void setAD_Package_Exp_Detail_ID (int AD_Package_Exp_Detail_ID); + + /** Get AD_Package_Exp_Detail_ID */ + public int getAD_Package_Exp_Detail_ID(); + + /** Column name AD_Package_Exp_ID */ + public static final String COLUMNNAME_AD_Package_Exp_ID = "AD_Package_Exp_ID"; + + /** Set AD_Package_Exp_ID */ + public void setAD_Package_Exp_ID (int AD_Package_Exp_ID); + + /** Get AD_Package_Exp_ID */ + public int getAD_Package_Exp_ID(); + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name AD_Val_Rule_ID */ + public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; + + /** Set Dynamic Validation. + * Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID); + + /** Get Dynamic Validation. + * Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID(); + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + /** Column name AD_Workbench_ID */ + public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** Set Workbench. + * Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID); + + /** Get Workbench. + * Collection of windows, reports + */ + public int getAD_Workbench_ID(); + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + /** Column name DBType */ + public static final String COLUMNNAME_DBType = "DBType"; + + /** Set DBType */ + public void setDBType (String DBType); + + /** Get DBType */ + public String getDBType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Destination_Directory */ + public static final String COLUMNNAME_Destination_Directory = "Destination_Directory"; + + /** Set Destination_Directory */ + public void setDestination_Directory (String Destination_Directory); + + /** Get Destination_Directory */ + public String getDestination_Directory(); + + /** Column name Destination_FileName */ + public static final String COLUMNNAME_Destination_FileName = "Destination_FileName"; + + /** Set Destination_FileName */ + public void setDestination_FileName (String Destination_FileName); + + /** Get Destination_FileName */ + public String getDestination_FileName(); + + /** Column name FileName */ + public static final String COLUMNNAME_FileName = "FileName"; + + /** Set File Name. + * Name of the local file or URL + */ + public void setFileName (String FileName); + + /** Get File Name. + * Name of the local file or URL + */ + public String getFileName(); + + /** Column name File_Directory */ + public static final String COLUMNNAME_File_Directory = "File_Directory"; + + /** Set File_Directory */ + public void setFile_Directory (String File_Directory); + + /** Get File_Directory */ + public String getFile_Directory(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name Name2 */ + public static final String COLUMNNAME_Name2 = "Name2"; + + /** Set Name 2. + * Additional Name + */ + public void setName2 (String Name2); + + /** Get Name 2. + * Additional Name + */ + public String getName2(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name SQLStatement */ + public static final String COLUMNNAME_SQLStatement = "SQLStatement"; + + /** Set SQLStatement */ + public void setSQLStatement (String SQLStatement); + + /** Get SQLStatement */ + public String getSQLStatement(); + + /** Column name Target_Directory */ + public static final String COLUMNNAME_Target_Directory = "Target_Directory"; + + /** Set Target_Directory */ + public void setTarget_Directory (String Target_Directory); + + /** Get Target_Directory */ + public String getTarget_Directory(); + + /** Column name Type */ + public static final String COLUMNNAME_Type = "Type"; + + /** Set Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type); + + /** Get Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public String getType(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Imp.java b/base/src/org/compiere/model/I_AD_Package_Imp.java new file mode 100644 index 0000000000..d6033b7dd9 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Imp.java @@ -0,0 +1,201 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Imp + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.109 + */ + public interface I_AD_Package_Imp +{ + + /** TableName=AD_Package_Imp */ + public static final String Table_Name = "AD_Package_Imp"; + + /** AD_Table_ID=50003 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Package_Imp_ID */ + public static final String COLUMNNAME_AD_Package_Imp_ID = "AD_Package_Imp_ID"; + + /** Set AD_Package_Imp_ID */ + public void setAD_Package_Imp_ID (int AD_Package_Imp_ID); + + /** Get AD_Package_Imp_ID */ + public int getAD_Package_Imp_ID(); + + /** Column name Creator */ + public static final String COLUMNNAME_Creator = "Creator"; + + /** Set Creator */ + public void setCreator (String Creator); + + /** Get Creator */ + public String getCreator(); + + /** Column name CreatorContact */ + public static final String COLUMNNAME_CreatorContact = "CreatorContact"; + + /** Set CreatorContact */ + public void setCreatorContact (String CreatorContact); + + /** Get CreatorContact */ + public String getCreatorContact(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PK_Status */ + public static final String COLUMNNAME_PK_Status = "PK_Status"; + + /** Set PK_Status */ + public void setPK_Status (String PK_Status); + + /** Get PK_Status */ + public String getPK_Status(); + + /** Column name PK_Version */ + public static final String COLUMNNAME_PK_Version = "PK_Version"; + + /** Set Package Version */ + public void setPK_Version (String PK_Version); + + /** Get Package Version */ + public String getPK_Version(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name Uninstall */ + public static final String COLUMNNAME_Uninstall = "Uninstall"; + + /** Set Uninstall */ + public void setUninstall (boolean Uninstall); + + /** Get Uninstall */ + public boolean isUninstall(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} 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 new file mode 100644 index 0000000000..8ea27e7bff --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Imp_Backup.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Imp_Backup + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.156 + */ + public interface I_AD_Package_Imp_Backup +{ + + /** TableName=AD_Package_Imp_Backup */ + public static final String Table_Name = "AD_Package_Imp_Backup"; + + /** AD_Table_ID=50002 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + /** Column name AD_Package_Imp_Backup_ID */ + public static final String COLUMNNAME_AD_Package_Imp_Backup_ID = "AD_Package_Imp_Backup_ID"; + + /** Set AD_Package_Imp_Backup_ID */ + public void setAD_Package_Imp_Backup_ID (int AD_Package_Imp_Backup_ID); + + /** Get AD_Package_Imp_Backup_ID */ + public int getAD_Package_Imp_Backup_ID(); + + /** Column name AD_Package_Imp_Bck_Dir */ + public static final String COLUMNNAME_AD_Package_Imp_Bck_Dir = "AD_Package_Imp_Bck_Dir"; + + /** Set AD_Package_Imp_Bck_Dir */ + public void setAD_Package_Imp_Bck_Dir (String AD_Package_Imp_Bck_Dir); + + /** Get AD_Package_Imp_Bck_Dir */ + public String getAD_Package_Imp_Bck_Dir(); + + /** Column name AD_Package_Imp_Detail_ID */ + public static final String COLUMNNAME_AD_Package_Imp_Detail_ID = "AD_Package_Imp_Detail_ID"; + + /** Set AD_Package_Imp_Detail_ID */ + public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID); + + /** Get AD_Package_Imp_Detail_ID */ + public int getAD_Package_Imp_Detail_ID(); + + /** Column name AD_Package_Imp_ID */ + public static final String COLUMNNAME_AD_Package_Imp_ID = "AD_Package_Imp_ID"; + + /** Set AD_Package_Imp_ID */ + public void setAD_Package_Imp_ID (int AD_Package_Imp_ID); + + /** Get AD_Package_Imp_ID */ + public int getAD_Package_Imp_ID(); + + /** Column name AD_Package_Imp_Org_Dir */ + public static final String COLUMNNAME_AD_Package_Imp_Org_Dir = "AD_Package_Imp_Org_Dir"; + + /** Set AD_Package_Imp_Org_Dir */ + public void setAD_Package_Imp_Org_Dir (String AD_Package_Imp_Org_Dir); + + /** Get AD_Package_Imp_Org_Dir */ + public String getAD_Package_Imp_Org_Dir(); + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name ColValue */ + public static final String COLUMNNAME_ColValue = "ColValue"; + + /** Set ColValue */ + public void setColValue (String ColValue); + + /** Get ColValue */ + public String getColValue(); + + /** Column name Uninstall */ + public static final String COLUMNNAME_Uninstall = "Uninstall"; + + /** Set Uninstall */ + public void setUninstall (boolean Uninstall); + + /** Get Uninstall */ + public boolean isUninstall(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Imp_Detail.java b/base/src/org/compiere/model/I_AD_Package_Imp_Detail.java new file mode 100644 index 0000000000..d3476844a0 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Imp_Detail.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Imp_Detail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.218 + */ + public interface I_AD_Package_Imp_Detail +{ + + /** TableName=AD_Package_Imp_Detail */ + public static final String Table_Name = "AD_Package_Imp_Detail"; + + /** AD_Table_ID=50004 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Original_ID */ + public static final String COLUMNNAME_AD_Original_ID = "AD_Original_ID"; + + /** Set AD_Original_ID */ + public void setAD_Original_ID (int AD_Original_ID); + + /** Get AD_Original_ID */ + public int getAD_Original_ID(); + + /** Column name AD_Package_Imp_Detail_ID */ + public static final String COLUMNNAME_AD_Package_Imp_Detail_ID = "AD_Package_Imp_Detail_ID"; + + /** Set AD_Package_Imp_Detail_ID */ + public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID); + + /** Get AD_Package_Imp_Detail_ID */ + public int getAD_Package_Imp_Detail_ID(); + + /** Column name AD_Package_Imp_ID */ + public static final String COLUMNNAME_AD_Package_Imp_ID = "AD_Package_Imp_ID"; + + /** Set AD_Package_Imp_ID */ + public void setAD_Package_Imp_ID (int AD_Package_Imp_ID); + + /** Get AD_Package_Imp_ID */ + public int getAD_Package_Imp_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name Action */ + public static final String COLUMNNAME_Action = "Action"; + + /** Set Action. + * Indicates the Action to be performed + */ + public void setAction (String Action); + + /** Get Action. + * Indicates the Action to be performed + */ + public String getAction(); + + /** Column name Ad_Backup_ID */ + public static final String COLUMNNAME_Ad_Backup_ID = "Ad_Backup_ID"; + + /** Set Ad_Backup_ID */ + public void setAd_Backup_ID (int Ad_Backup_ID); + + /** Get Ad_Backup_ID */ + public int getAd_Backup_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Success */ + public static final String COLUMNNAME_Success = "Success"; + + /** Set Success */ + public void setSuccess (String Success); + + /** Get Success */ + public String getSuccess(); + + /** Column name TableName */ + public static final String COLUMNNAME_TableName = "TableName"; + + /** Set DB Table Name. + * Name of the table in the database + */ + public void setTableName (String TableName); + + /** Get DB Table Name. + * Name of the table in the database + */ + public String getTableName(); + + /** Column name Type */ + public static final String COLUMNNAME_Type = "Type"; + + /** Set Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type); + + /** Get Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public String getType(); + + /** Column name Uninstall */ + public static final String COLUMNNAME_Uninstall = "Uninstall"; + + /** Set Uninstall */ + public void setUninstall (boolean Uninstall); + + /** Get Uninstall */ + public boolean isUninstall(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Imp_Inst.java b/base/src/org/compiere/model/I_AD_Package_Imp_Inst.java new file mode 100644 index 0000000000..8b7555a6e2 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Imp_Inst.java @@ -0,0 +1,201 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Imp_Inst + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.265 + */ + public interface I_AD_Package_Imp_Inst +{ + + /** TableName=AD_Package_Imp_Inst */ + public static final String Table_Name = "AD_Package_Imp_Inst"; + + /** AD_Table_ID=50001 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_PACKAGE_IMP_INST_ID */ + public static final String COLUMNNAME_AD_PACKAGE_IMP_INST_ID = "AD_PACKAGE_IMP_INST_ID"; + + /** Set AD_PACKAGE_IMP_INST_ID */ + public void setAD_PACKAGE_IMP_INST_ID (int AD_PACKAGE_IMP_INST_ID); + + /** Get AD_PACKAGE_IMP_INST_ID */ + public int getAD_PACKAGE_IMP_INST_ID(); + + /** Column name Creator */ + public static final String COLUMNNAME_Creator = "Creator"; + + /** Set Creator */ + public void setCreator (String Creator); + + /** Get Creator */ + public String getCreator(); + + /** Column name CreatorContact */ + public static final String COLUMNNAME_CreatorContact = "CreatorContact"; + + /** Set CreatorContact */ + public void setCreatorContact (String CreatorContact); + + /** Get CreatorContact */ + public String getCreatorContact(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PK_Status */ + public static final String COLUMNNAME_PK_Status = "PK_Status"; + + /** Set PK_Status */ + public void setPK_Status (String PK_Status); + + /** Get PK_Status */ + public String getPK_Status(); + + /** Column name PK_Version */ + public static final String COLUMNNAME_PK_Version = "PK_Version"; + + /** Set Package Version */ + public void setPK_Version (String PK_Version); + + /** Get Package Version */ + public String getPK_Version(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name Uninstall */ + public static final String COLUMNNAME_Uninstall = "Uninstall"; + + /** Set Uninstall */ + public void setUninstall (boolean Uninstall); + + /** Get Uninstall */ + public boolean isUninstall(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_Package_Imp_Proc.java b/base/src/org/compiere/model/I_AD_Package_Imp_Proc.java new file mode 100644 index 0000000000..07c30b86a1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Package_Imp_Proc.java @@ -0,0 +1,126 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Package_Imp_Proc + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.312 + */ + public interface I_AD_Package_Imp_Proc +{ + + /** TableName=AD_Package_Imp_Proc */ + public static final String Table_Name = "AD_Package_Imp_Proc"; + + /** AD_Table_ID=50008 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Override_Dict */ + public static final String COLUMNNAME_AD_Override_Dict = "AD_Override_Dict"; + + /** Set Update System Maintained Application Dictionary */ + public void setAD_Override_Dict (boolean AD_Override_Dict); + + /** Get Update System Maintained Application Dictionary */ + public boolean isAD_Override_Dict(); + + /** Column name AD_Package_Dir */ + public static final String COLUMNNAME_AD_Package_Dir = "AD_Package_Dir"; + + /** Set Package Directory. + * Package directory, default to AdempiereHome/packages + */ + public void setAD_Package_Dir (String AD_Package_Dir); + + /** Get Package Directory. + * Package directory, default to AdempiereHome/packages + */ + public String getAD_Package_Dir(); + + /** Column name AD_Package_Imp_Proc_ID */ + public static final String COLUMNNAME_AD_Package_Imp_Proc_ID = "AD_Package_Imp_Proc_ID"; + + /** Set AD_Package_Imp_Proc_ID */ + public void setAD_Package_Imp_Proc_ID (int AD_Package_Imp_Proc_ID); + + /** Get AD_Package_Imp_Proc_ID */ + public int getAD_Package_Imp_Proc_ID(); + + /** Column name AD_Package_Source */ + public static final String COLUMNNAME_AD_Package_Source = "AD_Package_Source"; + + /** Set Package Source. + * Fully qualified package source file name + */ + public void setAD_Package_Source (String AD_Package_Source); + + /** Get Package Source. + * Fully qualified package source file name + */ + public String getAD_Package_Source(); + + /** Column name AD_Package_Source_Type */ + public static final String COLUMNNAME_AD_Package_Source_Type = "AD_Package_Source_Type"; + + /** Set Package Source Type. + * Type of package source - file, ftp, webservice etc + */ + public void setAD_Package_Source_Type (String AD_Package_Source_Type); + + /** Get Package Source Type. + * Type of package source - file, ftp, webservice etc + */ + public String getAD_Package_Source_Type(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_AD_Preference.java b/base/src/org/compiere/model/I_AD_Preference.java new file mode 100644 index 0000000000..f7de455033 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Preference.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Preference + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.343 + */ + public interface I_AD_Preference +{ + + /** TableName=AD_Preference */ + public static final String Table_Name = "AD_Preference"; + + /** AD_Table_ID=195 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Preference_ID */ + public static final String COLUMNNAME_AD_Preference_ID = "AD_Preference_ID"; + + /** Set Preference. + * Personal Value Preference + */ + public void setAD_Preference_ID (int AD_Preference_ID); + + /** Get Preference. + * Personal Value Preference + */ + public int getAD_Preference_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name Attribute */ + public static final String COLUMNNAME_Attribute = "Attribute"; + + /** Set Attribute */ + public void setAttribute (String Attribute); + + /** Get Attribute */ + public String getAttribute(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintColor.java b/base/src/org/compiere/model/I_AD_PrintColor.java new file mode 100644 index 0000000000..65ae295a64 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintColor.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintColor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.359 + */ + public interface I_AD_PrintColor +{ + + /** TableName=AD_PrintColor */ + public static final String Table_Name = "AD_PrintColor"; + + /** AD_Table_ID=490 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + /** Column name Code */ + public static final String COLUMNNAME_Code = "Code"; + + /** Set Validation code. + * Validation Code + */ + public void setCode (String Code); + + /** Get Validation code. + * Validation Code + */ + public String getCode(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintFont.java b/base/src/org/compiere/model/I_AD_PrintFont.java new file mode 100644 index 0000000000..892b277421 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintFont.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintFont + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.406 + */ + public interface I_AD_PrintFont +{ + + /** TableName=AD_PrintFont */ + public static final String Table_Name = "AD_PrintFont"; + + /** AD_Table_ID=491 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintFont_ID */ + public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; + + /** Set Print Font. + * Maintain Print Font + */ + public void setAD_PrintFont_ID (int AD_PrintFont_ID); + + /** Get Print Font. + * Maintain Print Font + */ + public int getAD_PrintFont_ID(); + + /** Column name Code */ + public static final String COLUMNNAME_Code = "Code"; + + /** Set Validation code. + * Validation Code + */ + public void setCode (String Code); + + /** Get Validation code. + * Validation Code + */ + public String getCode(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintForm.java b/base/src/org/compiere/model/I_AD_PrintForm.java new file mode 100644 index 0000000000..2e38f82302 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintForm.java @@ -0,0 +1,229 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintForm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.453 + */ + public interface I_AD_PrintForm +{ + + /** TableName=AD_PrintForm */ + public static final String Table_Name = "AD_PrintForm"; + + /** AD_Table_ID=454 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintForm_ID */ + public static final String COLUMNNAME_AD_PrintForm_ID = "AD_PrintForm_ID"; + + /** Set Print Form. + * Form + */ + public void setAD_PrintForm_ID (int AD_PrintForm_ID); + + /** Get Print Form. + * Form + */ + public int getAD_PrintForm_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Invoice_MailText_ID */ + public static final String COLUMNNAME_Invoice_MailText_ID = "Invoice_MailText_ID"; + + /** Set Invoice Mail Text. + * Email text used for sending invoices + */ + public void setInvoice_MailText_ID (int Invoice_MailText_ID); + + /** Get Invoice Mail Text. + * Email text used for sending invoices + */ + public int getInvoice_MailText_ID(); + + /** Column name Invoice_PrintFormat_ID */ + public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; + + /** Set Invoice Print Format. + * Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID); + + /** Get Invoice Print Format. + * Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Order_MailText_ID */ + public static final String COLUMNNAME_Order_MailText_ID = "Order_MailText_ID"; + + /** Set Order Mail Text. + * Email text used for sending order acknowledgements or quotations + */ + public void setOrder_MailText_ID (int Order_MailText_ID); + + /** Get Order Mail Text. + * Email text used for sending order acknowledgements or quotations + */ + public int getOrder_MailText_ID(); + + /** Column name Order_PrintFormat_ID */ + public static final String COLUMNNAME_Order_PrintFormat_ID = "Order_PrintFormat_ID"; + + /** Set Order Print Format. + * Print Format for Orders, Quotes, Offers + */ + public void setOrder_PrintFormat_ID (int Order_PrintFormat_ID); + + /** Get Order Print Format. + * Print Format for Orders, Quotes, Offers + */ + public int getOrder_PrintFormat_ID(); + + /** Column name Project_MailText_ID */ + public static final String COLUMNNAME_Project_MailText_ID = "Project_MailText_ID"; + + /** Set Project Mail Text. + * Standard text for Project EMails + */ + public void setProject_MailText_ID (int Project_MailText_ID); + + /** Get Project Mail Text. + * Standard text for Project EMails + */ + public int getProject_MailText_ID(); + + /** Column name Project_PrintFormat_ID */ + public static final String COLUMNNAME_Project_PrintFormat_ID = "Project_PrintFormat_ID"; + + /** Set Project Print Format. + * Standard Project Print Format + */ + public void setProject_PrintFormat_ID (int Project_PrintFormat_ID); + + /** Get Project Print Format. + * Standard Project Print Format + */ + public int getProject_PrintFormat_ID(); + + /** Column name Remittance_MailText_ID */ + public static final String COLUMNNAME_Remittance_MailText_ID = "Remittance_MailText_ID"; + + /** Set Remittance Mail Text. + * Email text used for sending payment remittances + */ + public void setRemittance_MailText_ID (int Remittance_MailText_ID); + + /** Get Remittance Mail Text. + * Email text used for sending payment remittances + */ + public int getRemittance_MailText_ID(); + + /** Column name Remittance_PrintFormat_ID */ + public static final String COLUMNNAME_Remittance_PrintFormat_ID = "Remittance_PrintFormat_ID"; + + /** Set Remittance Print Format. + * Print Format for separate Remittances + */ + public void setRemittance_PrintFormat_ID (int Remittance_PrintFormat_ID); + + /** Get Remittance Print Format. + * Print Format for separate Remittances + */ + public int getRemittance_PrintFormat_ID(); + + /** Column name Shipment_MailText_ID */ + public static final String COLUMNNAME_Shipment_MailText_ID = "Shipment_MailText_ID"; + + /** Set Shipment Mail Text. + * Email text used for sending delivery notes + */ + public void setShipment_MailText_ID (int Shipment_MailText_ID); + + /** Get Shipment Mail Text. + * Email text used for sending delivery notes + */ + public int getShipment_MailText_ID(); + + /** Column name Shipment_PrintFormat_ID */ + public static final String COLUMNNAME_Shipment_PrintFormat_ID = "Shipment_PrintFormat_ID"; + + /** Set Shipment Print Format. + * Print Format for Shipments, Receipts, Pick Lists + */ + public void setShipment_PrintFormat_ID (int Shipment_PrintFormat_ID); + + /** Get Shipment Print Format. + * Print Format for Shipments, Receipts, Pick Lists + */ + public int getShipment_PrintFormat_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintFormat.java b/base/src/org/compiere/model/I_AD_PrintFormat.java new file mode 100644 index 0000000000..2ce3e23832 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintFormat.java @@ -0,0 +1,302 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintFormat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.484 + */ + public interface I_AD_PrintFormat +{ + + /** TableName=AD_PrintFormat */ + public static final String Table_Name = "AD_PrintFormat"; + + /** AD_Table_ID=493 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name AD_PrintFont_ID */ + public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; + + /** Set Print Font. + * Maintain Print Font + */ + public void setAD_PrintFont_ID (int AD_PrintFont_ID); + + /** Get Print Font. + * Maintain Print Font + */ + public int getAD_PrintFont_ID(); + + public I_AD_PrintFont getI_AD_PrintFont() throws Exception; + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + /** Column name AD_PrintPaper_ID */ + public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID"; + + /** Set Print Paper. + * Printer paper definition + */ + public void setAD_PrintPaper_ID (int AD_PrintPaper_ID); + + /** Get Print Paper. + * Printer paper definition + */ + public int getAD_PrintPaper_ID(); + + public I_AD_PrintPaper getI_AD_PrintPaper() throws Exception; + + /** Column name AD_PrintTableFormat_ID */ + public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID"; + + /** Set Print Table Format. + * Table Format in Reports + */ + public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID); + + /** Get Print Table Format. + * Table Format in Reports + */ + public int getAD_PrintTableFormat_ID(); + + public I_AD_PrintTableFormat getI_AD_PrintTableFormat() throws Exception; + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + public I_AD_ReportView getI_AD_ReportView() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name CreateCopy */ + public static final String COLUMNNAME_CreateCopy = "CreateCopy"; + + /** Set Create Copy */ + public void setCreateCopy (String CreateCopy); + + /** Get Create Copy */ + public String getCreateCopy(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FooterMargin */ + public static final String COLUMNNAME_FooterMargin = "FooterMargin"; + + /** Set Footer Margin. + * Margin of the Footer in 1/72 of an inch + */ + public void setFooterMargin (int FooterMargin); + + /** Get Footer Margin. + * Margin of the Footer in 1/72 of an inch + */ + public int getFooterMargin(); + + /** Column name HeaderMargin */ + public static final String COLUMNNAME_HeaderMargin = "HeaderMargin"; + + /** Set Header Margin. + * Margin of the Header in 1/72 of an inch + */ + public void setHeaderMargin (int HeaderMargin); + + /** Get Header Margin. + * Margin of the Header in 1/72 of an inch + */ + public int getHeaderMargin(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsForm */ + public static final String COLUMNNAME_IsForm = "IsForm"; + + /** Set Form. + * If Selected, a Form is printed, if not selected a columnar List report + */ + public void setIsForm (boolean IsForm); + + /** Get Form. + * If Selected, a Form is printed, if not selected a columnar List report + */ + public boolean isForm(); + + /** Column name IsStandardHeaderFooter */ + public static final String COLUMNNAME_IsStandardHeaderFooter = "IsStandardHeaderFooter"; + + /** Set Standard Header/Footer. + * The standard Header and Footer is used + */ + public void setIsStandardHeaderFooter (boolean IsStandardHeaderFooter); + + /** Get Standard Header/Footer. + * The standard Header and Footer is used + */ + public boolean isStandardHeaderFooter(); + + /** Column name IsTableBased */ + public static final String COLUMNNAME_IsTableBased = "IsTableBased"; + + /** Set Table Based. + * Table based List Reporting + */ + public void setIsTableBased (boolean IsTableBased); + + /** Get Table Based. + * Table based List Reporting + */ + public boolean isTableBased(); + + /** Column name JasperProcess_ID */ + public static final String COLUMNNAME_JasperProcess_ID = "JasperProcess_ID"; + + /** Set Jasper Process. + * The Jasper Process used by the printengine if any process defined + */ + public void setJasperProcess_ID (int JasperProcess_ID); + + /** Get Jasper Process. + * The Jasper Process used by the printengine if any process defined + */ + public int getJasperProcess_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrinterName */ + public static final String COLUMNNAME_PrinterName = "PrinterName"; + + /** Set Printer Name. + * Name of the Printer + */ + public void setPrinterName (String PrinterName); + + /** Get Printer Name. + * Name of the Printer + */ + public String getPrinterName(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintFormatItem.java b/base/src/org/compiere/model/I_AD_PrintFormatItem.java new file mode 100644 index 0000000000..304148074b --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintFormatItem.java @@ -0,0 +1,748 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintFormatItem + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.593 + */ + public interface I_AD_PrintFormatItem +{ + + /** TableName=AD_PrintFormatItem */ + public static final String Table_Name = "AD_PrintFormatItem"; + + /** AD_Table_ID=489 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name AD_PrintFont_ID */ + public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; + + /** Set Print Font. + * Maintain Print Font + */ + public void setAD_PrintFont_ID (int AD_PrintFont_ID); + + /** Get Print Font. + * Maintain Print Font + */ + public int getAD_PrintFont_ID(); + + public I_AD_PrintFont getI_AD_PrintFont() throws Exception; + + /** Column name AD_PrintFormatChild_ID */ + public static final String COLUMNNAME_AD_PrintFormatChild_ID = "AD_PrintFormatChild_ID"; + + /** Set Included Print Format. + * Print format that is included here. + */ + public void setAD_PrintFormatChild_ID (int AD_PrintFormatChild_ID); + + /** Get Included Print Format. + * Print format that is included here. + */ + public int getAD_PrintFormatChild_ID(); + + /** Column name AD_PrintFormatItem_ID */ + public static final String COLUMNNAME_AD_PrintFormatItem_ID = "AD_PrintFormatItem_ID"; + + /** Set Print Format Item. + * Item/Column in the Print format + */ + public void setAD_PrintFormatItem_ID (int AD_PrintFormatItem_ID); + + /** Get Print Format Item. + * Item/Column in the Print format + */ + public int getAD_PrintFormatItem_ID(); + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name AD_PrintGraph_ID */ + public static final String COLUMNNAME_AD_PrintGraph_ID = "AD_PrintGraph_ID"; + + /** Set Graph. + * Graph included in Reports + */ + public void setAD_PrintGraph_ID (int AD_PrintGraph_ID); + + /** Get Graph. + * Graph included in Reports + */ + public int getAD_PrintGraph_ID(); + + public I_AD_PrintGraph getI_AD_PrintGraph() throws Exception; + + /** Column name ArcDiameter */ + public static final String COLUMNNAME_ArcDiameter = "ArcDiameter"; + + /** Set Arc Diameter. + * Arc Diameter for rounded Rectangles + */ + public void setArcDiameter (int ArcDiameter); + + /** Get Arc Diameter. + * Arc Diameter for rounded Rectangles + */ + public int getArcDiameter(); + + /** Column name BarcodeType */ + public static final String COLUMNNAME_BarcodeType = "BarcodeType"; + + /** Set Barcode Type. + * Type of barcode + */ + public void setBarcodeType (String BarcodeType); + + /** Get Barcode Type. + * Type of barcode + */ + public String getBarcodeType(); + + /** Column name BelowColumn */ + public static final String COLUMNNAME_BelowColumn = "BelowColumn"; + + /** Set Below Column. + * Print this column below the column index entered + */ + public void setBelowColumn (int BelowColumn); + + /** Get Below Column. + * Print this column below the column index entered + */ + public int getBelowColumn(); + + /** Column name FieldAlignmentType */ + public static final String COLUMNNAME_FieldAlignmentType = "FieldAlignmentType"; + + /** Set Field Alignment. + * Field Text Alignment + */ + public void setFieldAlignmentType (String FieldAlignmentType); + + /** Get Field Alignment. + * Field Text Alignment + */ + public String getFieldAlignmentType(); + + /** Column name ImageIsAttached */ + public static final String COLUMNNAME_ImageIsAttached = "ImageIsAttached"; + + /** Set Image attached. + * The image to be printed is attached to the record + */ + public void setImageIsAttached (boolean ImageIsAttached); + + /** Get Image attached. + * The image to be printed is attached to the record + */ + public boolean isImageIsAttached(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name IsAveraged */ + public static final String COLUMNNAME_IsAveraged = "IsAveraged"; + + /** Set Calculate Mean (?). + * Calculate Average of numeric content or length + */ + public void setIsAveraged (boolean IsAveraged); + + /** Get Calculate Mean (?). + * Calculate Average of numeric content or length + */ + public boolean isAveraged(); + + /** Column name IsCentrallyMaintained */ + public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; + + /** Set Centrally maintained. + * Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained); + + /** Get Centrally maintained. + * Information maintained in System Element table + */ + public boolean isCentrallyMaintained(); + + /** Column name IsCounted */ + public static final String COLUMNNAME_IsCounted = "IsCounted"; + + /** Set Calculate Count (?). + * Count number of not empty elements + */ + public void setIsCounted (boolean IsCounted); + + /** Get Calculate Count (?). + * Count number of not empty elements + */ + public boolean isCounted(); + + /** Column name IsDeviationCalc */ + public static final String COLUMNNAME_IsDeviationCalc = "IsDeviationCalc"; + + /** Set Calculate Deviation (?). + * Calculate Standard Deviation + */ + public void setIsDeviationCalc (boolean IsDeviationCalc); + + /** Get Calculate Deviation (?). + * Calculate Standard Deviation + */ + public boolean isDeviationCalc(); + + /** Column name IsFilledRectangle */ + public static final String COLUMNNAME_IsFilledRectangle = "IsFilledRectangle"; + + /** Set Fill Shape. + * Fill the shape with the color selected + */ + public void setIsFilledRectangle (boolean IsFilledRectangle); + + /** Get Fill Shape. + * Fill the shape with the color selected + */ + public boolean isFilledRectangle(); + + /** Column name IsFixedWidth */ + public static final String COLUMNNAME_IsFixedWidth = "IsFixedWidth"; + + /** Set Fixed Width. + * Column has a fixed width + */ + public void setIsFixedWidth (boolean IsFixedWidth); + + /** Get Fixed Width. + * Column has a fixed width + */ + public boolean isFixedWidth(); + + /** Column name IsGroupBy */ + public static final String COLUMNNAME_IsGroupBy = "IsGroupBy"; + + /** Set Group by. + * After a group change, totals, etc. are printed + */ + public void setIsGroupBy (boolean IsGroupBy); + + /** Get Group by. + * After a group change, totals, etc. are printed + */ + public boolean isGroupBy(); + + /** Column name IsHeightOneLine */ + public static final String COLUMNNAME_IsHeightOneLine = "IsHeightOneLine"; + + /** Set One Line Only. + * If selected, only one line is printed + */ + public void setIsHeightOneLine (boolean IsHeightOneLine); + + /** Get One Line Only. + * If selected, only one line is printed + */ + public boolean isHeightOneLine(); + + /** Column name IsImageField */ + public static final String COLUMNNAME_IsImageField = "IsImageField"; + + /** Set Image Field. + * The image is retrieved from the data column + */ + public void setIsImageField (boolean IsImageField); + + /** Get Image Field. + * The image is retrieved from the data column + */ + public boolean isImageField(); + + /** Column name IsMaxCalc */ + public static final String COLUMNNAME_IsMaxCalc = "IsMaxCalc"; + + /** Set Calculate Maximim (?). + * Calculate the maximim amount + */ + public void setIsMaxCalc (boolean IsMaxCalc); + + /** Get Calculate Maximim (?). + * Calculate the maximim amount + */ + public boolean isMaxCalc(); + + /** Column name IsMinCalc */ + public static final String COLUMNNAME_IsMinCalc = "IsMinCalc"; + + /** Set Calculate Minimum (?). + * Calculate the minimum amount + */ + public void setIsMinCalc (boolean IsMinCalc); + + /** Get Calculate Minimum (?). + * Calculate the minimum amount + */ + public boolean isMinCalc(); + + /** Column name IsNextLine */ + public static final String COLUMNNAME_IsNextLine = "IsNextLine"; + + /** Set Next Line. + * Print item on next line + */ + public void setIsNextLine (boolean IsNextLine); + + /** Get Next Line. + * Print item on next line + */ + public boolean isNextLine(); + + /** Column name IsNextPage */ + public static final String COLUMNNAME_IsNextPage = "IsNextPage"; + + /** Set Next Page. + * The column is printed on the next page + */ + public void setIsNextPage (boolean IsNextPage); + + /** Get Next Page. + * The column is printed on the next page + */ + public boolean isNextPage(); + + /** Column name IsOrderBy */ + public static final String COLUMNNAME_IsOrderBy = "IsOrderBy"; + + /** Set Order by. + * Include in sort order + */ + public void setIsOrderBy (boolean IsOrderBy); + + /** Get Order by. + * Include in sort order + */ + public boolean isOrderBy(); + + /** Column name IsPageBreak */ + public static final String COLUMNNAME_IsPageBreak = "IsPageBreak"; + + /** Set Page break. + * Start with new page + */ + public void setIsPageBreak (boolean IsPageBreak); + + /** Get Page break. + * Start with new page + */ + public boolean isPageBreak(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsRelativePosition */ + public static final String COLUMNNAME_IsRelativePosition = "IsRelativePosition"; + + /** Set Relative Position. + * The item is relative positioned (not absolute) + */ + public void setIsRelativePosition (boolean IsRelativePosition); + + /** Get Relative Position. + * The item is relative positioned (not absolute) + */ + public boolean isRelativePosition(); + + /** Column name IsRunningTotal */ + public static final String COLUMNNAME_IsRunningTotal = "IsRunningTotal"; + + /** Set Running Total. + * Create a running total (sum) + */ + public void setIsRunningTotal (boolean IsRunningTotal); + + /** Get Running Total. + * Create a running total (sum) + */ + public boolean isRunningTotal(); + + /** Column name IsSetNLPosition */ + public static final String COLUMNNAME_IsSetNLPosition = "IsSetNLPosition"; + + /** Set Set NL Position. + * Set New Line Position + */ + public void setIsSetNLPosition (boolean IsSetNLPosition); + + /** Get Set NL Position. + * Set New Line Position + */ + public boolean isSetNLPosition(); + + /** Column name IsSummarized */ + public static final String COLUMNNAME_IsSummarized = "IsSummarized"; + + /** Set Calculate Sum (?). + * Calculate the Sum of numeric content or length + */ + public void setIsSummarized (boolean IsSummarized); + + /** Get Calculate Sum (?). + * Calculate the Sum of numeric content or length + */ + public boolean isSummarized(); + + /** Column name IsSuppressNull */ + public static final String COLUMNNAME_IsSuppressNull = "IsSuppressNull"; + + /** Set Suppress Null. + * Suppress columns or elements with NULL value + */ + public void setIsSuppressNull (boolean IsSuppressNull); + + /** Get Suppress Null. + * Suppress columns or elements with NULL value + */ + public boolean isSuppressNull(); + + /** Column name IsVarianceCalc */ + public static final String COLUMNNAME_IsVarianceCalc = "IsVarianceCalc"; + + /** Set Calculate Variance (??). + * Calculate Variance + */ + public void setIsVarianceCalc (boolean IsVarianceCalc); + + /** Get Calculate Variance (??). + * Calculate Variance + */ + public boolean isVarianceCalc(); + + /** Column name LineAlignmentType */ + public static final String COLUMNNAME_LineAlignmentType = "LineAlignmentType"; + + /** Set Line Alignment. + * Line Alignment + */ + public void setLineAlignmentType (String LineAlignmentType); + + /** Get Line Alignment. + * Line Alignment + */ + public String getLineAlignmentType(); + + /** Column name LineWidth */ + public static final String COLUMNNAME_LineWidth = "LineWidth"; + + /** Set Line Width. + * Width of the lines + */ + public void setLineWidth (int LineWidth); + + /** Get Line Width. + * Width of the lines + */ + public int getLineWidth(); + + /** Column name MaxHeight */ + public static final String COLUMNNAME_MaxHeight = "MaxHeight"; + + /** Set Max Height. + * Maximum Height in 1/72 if an inch - 0 = no restriction + */ + public void setMaxHeight (int MaxHeight); + + /** Get Max Height. + * Maximum Height in 1/72 if an inch - 0 = no restriction + */ + public int getMaxHeight(); + + /** Column name MaxWidth */ + public static final String COLUMNNAME_MaxWidth = "MaxWidth"; + + /** Set Max Width. + * Maximum Width in 1/72 if an inch - 0 = no restriction + */ + public void setMaxWidth (int MaxWidth); + + /** Get Max Width. + * Maximum Width in 1/72 if an inch - 0 = no restriction + */ + public int getMaxWidth(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrintAreaType */ + public static final String COLUMNNAME_PrintAreaType = "PrintAreaType"; + + /** Set Area. + * Print Area + */ + public void setPrintAreaType (String PrintAreaType); + + /** Get Area. + * Print Area + */ + public String getPrintAreaType(); + + /** Column name PrintFormatType */ + public static final String COLUMNNAME_PrintFormatType = "PrintFormatType"; + + /** Set Format Type. + * Print Format Type + */ + public void setPrintFormatType (String PrintFormatType); + + /** Get Format Type. + * Print Format Type + */ + public String getPrintFormatType(); + + /** Column name PrintName */ + public static final String COLUMNNAME_PrintName = "PrintName"; + + /** Set Print Text. + * The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName); + + /** Get Print Text. + * The label text to be printed on a document or correspondence. + */ + public String getPrintName(); + + /** Column name PrintNameSuffix */ + public static final String COLUMNNAME_PrintNameSuffix = "PrintNameSuffix"; + + /** Set Print Label Suffix. + * The label text to be printed on a document or correspondence after the field + */ + public void setPrintNameSuffix (String PrintNameSuffix); + + /** Get Print Label Suffix. + * The label text to be printed on a document or correspondence after the field + */ + public String getPrintNameSuffix(); + + /** Column name RunningTotalLines */ + public static final String COLUMNNAME_RunningTotalLines = "RunningTotalLines"; + + /** Set Running Total Lines. + * Create Running Total Lines (page break) every x lines + */ + public void setRunningTotalLines (int RunningTotalLines); + + /** Get Running Total Lines. + * Create Running Total Lines (page break) every x lines + */ + public int getRunningTotalLines(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name ShapeType */ + public static final String COLUMNNAME_ShapeType = "ShapeType"; + + /** Set Shape Type. + * Type of the shape to be painted + */ + public void setShapeType (String ShapeType); + + /** Get Shape Type. + * Type of the shape to be painted + */ + public String getShapeType(); + + /** Column name SortNo */ + public static final String COLUMNNAME_SortNo = "SortNo"; + + /** Set Record Sort No. + * Determines in what order the records are displayed + */ + public void setSortNo (int SortNo); + + /** Get Record Sort No. + * Determines in what order the records are displayed + */ + public int getSortNo(); + + /** Column name XPosition */ + public static final String COLUMNNAME_XPosition = "XPosition"; + + /** Set X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition); + + /** Get X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition(); + + /** Column name XSpace */ + public static final String COLUMNNAME_XSpace = "XSpace"; + + /** Set X Space. + * Relative X (horizontal) space in 1/72 of an inch + */ + public void setXSpace (int XSpace); + + /** Get X Space. + * Relative X (horizontal) space in 1/72 of an inch + */ + public int getXSpace(); + + /** Column name YPosition */ + public static final String COLUMNNAME_YPosition = "YPosition"; + + /** Set Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition); + + /** Get Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition(); + + /** Column name YSpace */ + public static final String COLUMNNAME_YSpace = "YSpace"; + + /** Set Y Space. + * Relative Y (vertical) space in 1/72 of an inch + */ + public void setYSpace (int YSpace); + + /** Get Y Space. + * Relative Y (vertical) space in 1/72 of an inch + */ + public int getYSpace(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintGraph.java b/base/src/org/compiere/model/I_AD_PrintGraph.java new file mode 100644 index 0000000000..0eeb1fcdf6 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintGraph.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintGraph + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.75 + */ + public interface I_AD_PrintGraph +{ + + /** TableName=AD_PrintGraph */ + public static final String Table_Name = "AD_PrintGraph"; + + /** AD_Table_ID=521 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name AD_PrintGraph_ID */ + public static final String COLUMNNAME_AD_PrintGraph_ID = "AD_PrintGraph_ID"; + + /** Set Graph. + * Graph included in Reports + */ + public void setAD_PrintGraph_ID (int AD_PrintGraph_ID); + + /** Get Graph. + * Graph included in Reports + */ + public int getAD_PrintGraph_ID(); + + /** Column name Data1_PrintFormatItem_ID */ + public static final String COLUMNNAME_Data1_PrintFormatItem_ID = "Data1_PrintFormatItem_ID"; + + /** Set Data Column 2. + * Data Column for Line Charts + */ + public void setData1_PrintFormatItem_ID (int Data1_PrintFormatItem_ID); + + /** Get Data Column 2. + * Data Column for Line Charts + */ + public int getData1_PrintFormatItem_ID(); + + /** Column name Data2_PrintFormatItem_ID */ + public static final String COLUMNNAME_Data2_PrintFormatItem_ID = "Data2_PrintFormatItem_ID"; + + /** Set Data Column 3. + * Data Column for Line Charts + */ + public void setData2_PrintFormatItem_ID (int Data2_PrintFormatItem_ID); + + /** Get Data Column 3. + * Data Column for Line Charts + */ + public int getData2_PrintFormatItem_ID(); + + /** Column name Data3_PrintFormatItem_ID */ + public static final String COLUMNNAME_Data3_PrintFormatItem_ID = "Data3_PrintFormatItem_ID"; + + /** Set Data Column 4. + * Data Column for Line Charts + */ + public void setData3_PrintFormatItem_ID (int Data3_PrintFormatItem_ID); + + /** Get Data Column 4. + * Data Column for Line Charts + */ + public int getData3_PrintFormatItem_ID(); + + /** Column name Data4_PrintFormatItem_ID */ + public static final String COLUMNNAME_Data4_PrintFormatItem_ID = "Data4_PrintFormatItem_ID"; + + /** Set Data Column 5. + * Data Column for Line Charts + */ + public void setData4_PrintFormatItem_ID (int Data4_PrintFormatItem_ID); + + /** Get Data Column 5. + * Data Column for Line Charts + */ + public int getData4_PrintFormatItem_ID(); + + /** Column name Data_PrintFormatItem_ID */ + public static final String COLUMNNAME_Data_PrintFormatItem_ID = "Data_PrintFormatItem_ID"; + + /** Set Data Column. + * Data Column for Pie and Line Charts + */ + public void setData_PrintFormatItem_ID (int Data_PrintFormatItem_ID); + + /** Get Data Column. + * Data Column for Pie and Line Charts + */ + public int getData_PrintFormatItem_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Description_PrintFormatItem_ID */ + public static final String COLUMNNAME_Description_PrintFormatItem_ID = "Description_PrintFormatItem_ID"; + + /** Set Description Column. + * Description Column for Pie/Line/Bar Charts + */ + public void setDescription_PrintFormatItem_ID (int Description_PrintFormatItem_ID); + + /** Get Description Column. + * Description Column for Pie/Line/Bar Charts + */ + public int getDescription_PrintFormatItem_ID(); + + /** Column name GraphType */ + public static final String COLUMNNAME_GraphType = "GraphType"; + + /** Set Graph Type. + * Type of graph to be painted + */ + public void setGraphType (String GraphType); + + /** Get Graph Type. + * Type of graph to be painted + */ + public String getGraphType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintLabel.java b/base/src/org/compiere/model/I_AD_PrintLabel.java new file mode 100644 index 0000000000..54d832d4d5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintLabel.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintLabel + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:25.796 + */ + public interface I_AD_PrintLabel +{ + + /** TableName=AD_PrintLabel */ + public static final String Table_Name = "AD_PrintLabel"; + + /** AD_Table_ID=570 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_LabelPrinter_ID */ + public static final String COLUMNNAME_AD_LabelPrinter_ID = "AD_LabelPrinter_ID"; + + /** Set Label printer. + * Label Printer Definition + */ + public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID); + + /** Get Label printer. + * Label Printer Definition + */ + public int getAD_LabelPrinter_ID(); + + /** Column name AD_PrintLabel_ID */ + public static final String COLUMNNAME_AD_PrintLabel_ID = "AD_PrintLabel_ID"; + + /** Set Print Label. + * Label Format to print + */ + public void setAD_PrintLabel_ID (int AD_PrintLabel_ID); + + /** Get Print Label. + * Label Format to print + */ + public int getAD_PrintLabel_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsLandscape */ + public static final String COLUMNNAME_IsLandscape = "IsLandscape"; + + /** Set Landscape. + * Landscape orientation + */ + public void setIsLandscape (boolean IsLandscape); + + /** Get Landscape. + * Landscape orientation + */ + public boolean isLandscape(); + + /** Column name LabelHeight */ + public static final String COLUMNNAME_LabelHeight = "LabelHeight"; + + /** Set Label Height. + * Height of the label + */ + public void setLabelHeight (int LabelHeight); + + /** Get Label Height. + * Height of the label + */ + public int getLabelHeight(); + + /** Column name LabelWidth */ + public static final String COLUMNNAME_LabelWidth = "LabelWidth"; + + /** Set Label Width. + * Width of the Label + */ + public void setLabelWidth (int LabelWidth); + + /** Get Label Width. + * Width of the Label + */ + public int getLabelWidth(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrinterName */ + public static final String COLUMNNAME_PrinterName = "PrinterName"; + + /** Set Printer Name. + * Name of the Printer + */ + public void setPrinterName (String PrinterName); + + /** Get Printer Name. + * Name of the Printer + */ + public String getPrinterName(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintLabelLine.java b/base/src/org/compiere/model/I_AD_PrintLabelLine.java new file mode 100644 index 0000000000..9c9b03fe84 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintLabelLine.java @@ -0,0 +1,198 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintLabelLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.203 + */ + public interface I_AD_PrintLabelLine +{ + + /** TableName=AD_PrintLabelLine */ + public static final String Table_Name = "AD_PrintLabelLine"; + + /** AD_Table_ID=569 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_LabelPrinterFunction_ID */ + public static final String COLUMNNAME_AD_LabelPrinterFunction_ID = "AD_LabelPrinterFunction_ID"; + + /** Set Label printer Function. + * Function of Label Printer + */ + public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID); + + /** Get Label printer Function. + * Function of Label Printer + */ + public int getAD_LabelPrinterFunction_ID(); + + public I_AD_LabelPrinterFunction getI_AD_LabelPrinterFunction() throws Exception; + + /** Column name AD_PrintLabelLine_ID */ + public static final String COLUMNNAME_AD_PrintLabelLine_ID = "AD_PrintLabelLine_ID"; + + /** Set Print Label Line. + * Print Label Line Format + */ + public void setAD_PrintLabelLine_ID (int AD_PrintLabelLine_ID); + + /** Get Print Label Line. + * Print Label Line Format + */ + public int getAD_PrintLabelLine_ID(); + + /** Column name AD_PrintLabel_ID */ + public static final String COLUMNNAME_AD_PrintLabel_ID = "AD_PrintLabel_ID"; + + /** Set Print Label. + * Label Format to print + */ + public void setAD_PrintLabel_ID (int AD_PrintLabel_ID); + + /** Get Print Label. + * Label Format to print + */ + public int getAD_PrintLabel_ID(); + + public I_AD_PrintLabel getI_AD_PrintLabel() throws Exception; + + /** Column name LabelFormatType */ + public static final String COLUMNNAME_LabelFormatType = "LabelFormatType"; + + /** Set Label Format Type. + * Label Format Type + */ + public void setLabelFormatType (String LabelFormatType); + + /** Get Label Format Type. + * Label Format Type + */ + public String getLabelFormatType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrintName */ + public static final String COLUMNNAME_PrintName = "PrintName"; + + /** Set Print Text. + * The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName); + + /** Get Print Text. + * The label text to be printed on a document or correspondence. + */ + public String getPrintName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name XPosition */ + public static final String COLUMNNAME_XPosition = "XPosition"; + + /** Set X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition); + + /** Get X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition(); + + /** Column name YPosition */ + public static final String COLUMNNAME_YPosition = "YPosition"; + + /** Set Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition); + + /** Get Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintPaper.java b/base/src/org/compiere/model/I_AD_PrintPaper.java new file mode 100644 index 0000000000..36c015251b --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintPaper.java @@ -0,0 +1,238 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintPaper + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.312 + */ + public interface I_AD_PrintPaper +{ + + /** TableName=AD_PrintPaper */ + public static final String Table_Name = "AD_PrintPaper"; + + /** AD_Table_ID=492 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintPaper_ID */ + public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID"; + + /** Set Print Paper. + * Printer paper definition + */ + public void setAD_PrintPaper_ID (int AD_PrintPaper_ID); + + /** Get Print Paper. + * Printer paper definition + */ + public int getAD_PrintPaper_ID(); + + /** Column name Code */ + public static final String COLUMNNAME_Code = "Code"; + + /** Set Validation code. + * Validation Code + */ + public void setCode (String Code); + + /** Get Validation code. + * Validation Code + */ + public String getCode(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DimensionUnits */ + public static final String COLUMNNAME_DimensionUnits = "DimensionUnits"; + + /** Set Dimension Units. + * Units of Dimension + */ + public void setDimensionUnits (String DimensionUnits); + + /** Get Dimension Units. + * Units of Dimension + */ + public String getDimensionUnits(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsLandscape */ + public static final String COLUMNNAME_IsLandscape = "IsLandscape"; + + /** Set Landscape. + * Landscape orientation + */ + public void setIsLandscape (boolean IsLandscape); + + /** Get Landscape. + * Landscape orientation + */ + public boolean isLandscape(); + + /** Column name MarginBottom */ + public static final String COLUMNNAME_MarginBottom = "MarginBottom"; + + /** Set Bottom Margin. + * Bottom Space in 1/72 inch + */ + public void setMarginBottom (int MarginBottom); + + /** Get Bottom Margin. + * Bottom Space in 1/72 inch + */ + public int getMarginBottom(); + + /** Column name MarginLeft */ + public static final String COLUMNNAME_MarginLeft = "MarginLeft"; + + /** Set Left Margin. + * Left Space in 1/72 inch + */ + public void setMarginLeft (int MarginLeft); + + /** Get Left Margin. + * Left Space in 1/72 inch + */ + public int getMarginLeft(); + + /** Column name MarginRight */ + public static final String COLUMNNAME_MarginRight = "MarginRight"; + + /** Set Right Margin. + * Right Space in 1/72 inch + */ + public void setMarginRight (int MarginRight); + + /** Get Right Margin. + * Right Space in 1/72 inch + */ + public int getMarginRight(); + + /** Column name MarginTop */ + public static final String COLUMNNAME_MarginTop = "MarginTop"; + + /** Set Top Margin. + * Top Space in 1/72 inch + */ + public void setMarginTop (int MarginTop); + + /** Get Top Margin. + * Top Space in 1/72 inch + */ + public int getMarginTop(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name SizeX */ + public static final String COLUMNNAME_SizeX = "SizeX"; + + /** Set Size X. + * X (horizontal) dimension size + */ + public void setSizeX (BigDecimal SizeX); + + /** Get Size X. + * X (horizontal) dimension size + */ + public BigDecimal getSizeX(); + + /** Column name SizeY */ + public static final String COLUMNNAME_SizeY = "SizeY"; + + /** Set Size Y. + * Y (vertical) dimension size + */ + public void setSizeY (BigDecimal SizeY); + + /** Get Size Y. + * Y (vertical) dimension size + */ + public BigDecimal getSizeY(); +} diff --git a/base/src/org/compiere/model/I_AD_PrintTableFormat.java b/base/src/org/compiere/model/I_AD_PrintTableFormat.java new file mode 100644 index 0000000000..1bb2b47402 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_PrintTableFormat.java @@ -0,0 +1,437 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_PrintTableFormat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.375 + */ + public interface I_AD_PrintTableFormat +{ + + /** TableName=AD_PrintTableFormat */ + public static final String Table_Name = "AD_PrintTableFormat"; + + /** AD_Table_ID=523 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintTableFormat_ID */ + public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID"; + + /** Set Print Table Format. + * Table Format in Reports + */ + public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID); + + /** Get Print Table Format. + * Table Format in Reports + */ + public int getAD_PrintTableFormat_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FooterCenter */ + public static final String COLUMNNAME_FooterCenter = "FooterCenter"; + + /** Set Footer Center. + * Content of the center portion of the footer. + */ + public void setFooterCenter (String FooterCenter); + + /** Get Footer Center. + * Content of the center portion of the footer. + */ + public String getFooterCenter(); + + /** Column name FooterLeft */ + public static final String COLUMNNAME_FooterLeft = "FooterLeft"; + + /** Set Footer Left. + * Content of the left portion of the footer. + */ + public void setFooterLeft (String FooterLeft); + + /** Get Footer Left. + * Content of the left portion of the footer. + */ + public String getFooterLeft(); + + /** Column name FooterRight */ + public static final String COLUMNNAME_FooterRight = "FooterRight"; + + /** Set Footer Right. + * Content of the right portion of the footer. + */ + public void setFooterRight (String FooterRight); + + /** Get Footer Right. + * Content of the right portion of the footer. + */ + public String getFooterRight(); + + /** Column name FunctBG_PrintColor_ID */ + public static final String COLUMNNAME_FunctBG_PrintColor_ID = "FunctBG_PrintColor_ID"; + + /** Set Function BG Color. + * Function Background Color + */ + public void setFunctBG_PrintColor_ID (int FunctBG_PrintColor_ID); + + /** Get Function BG Color. + * Function Background Color + */ + public int getFunctBG_PrintColor_ID(); + + /** Column name FunctFG_PrintColor_ID */ + public static final String COLUMNNAME_FunctFG_PrintColor_ID = "FunctFG_PrintColor_ID"; + + /** Set Function Color. + * Function Foreground Color + */ + public void setFunctFG_PrintColor_ID (int FunctFG_PrintColor_ID); + + /** Get Function Color. + * Function Foreground Color + */ + public int getFunctFG_PrintColor_ID(); + + /** Column name Funct_PrintFont_ID */ + public static final String COLUMNNAME_Funct_PrintFont_ID = "Funct_PrintFont_ID"; + + /** Set Function Font. + * Function row Font + */ + public void setFunct_PrintFont_ID (int Funct_PrintFont_ID); + + /** Get Function Font. + * Function row Font + */ + public int getFunct_PrintFont_ID(); + + /** Column name HdrLine_PrintColor_ID */ + public static final String COLUMNNAME_HdrLine_PrintColor_ID = "HdrLine_PrintColor_ID"; + + /** Set Header Line Color. + * Table header row line color + */ + public void setHdrLine_PrintColor_ID (int HdrLine_PrintColor_ID); + + /** Get Header Line Color. + * Table header row line color + */ + public int getHdrLine_PrintColor_ID(); + + /** Column name HdrStroke */ + public static final String COLUMNNAME_HdrStroke = "HdrStroke"; + + /** Set Header Stroke. + * Width of the Header Line Stroke + */ + public void setHdrStroke (BigDecimal HdrStroke); + + /** Get Header Stroke. + * Width of the Header Line Stroke + */ + public BigDecimal getHdrStroke(); + + /** Column name HdrStrokeType */ + public static final String COLUMNNAME_HdrStrokeType = "HdrStrokeType"; + + /** Set Header Stroke Type. + * Type of the Header Line Stroke + */ + public void setHdrStrokeType (String HdrStrokeType); + + /** Get Header Stroke Type. + * Type of the Header Line Stroke + */ + public String getHdrStrokeType(); + + /** Column name HdrTextBG_PrintColor_ID */ + public static final String COLUMNNAME_HdrTextBG_PrintColor_ID = "HdrTextBG_PrintColor_ID"; + + /** Set Header Row BG Color. + * Background color of header row + */ + public void setHdrTextBG_PrintColor_ID (int HdrTextBG_PrintColor_ID); + + /** Get Header Row BG Color. + * Background color of header row + */ + public int getHdrTextBG_PrintColor_ID(); + + /** Column name HdrTextFG_PrintColor_ID */ + public static final String COLUMNNAME_HdrTextFG_PrintColor_ID = "HdrTextFG_PrintColor_ID"; + + /** Set Header Row Color. + * Foreground color if the table header row + */ + public void setHdrTextFG_PrintColor_ID (int HdrTextFG_PrintColor_ID); + + /** Get Header Row Color. + * Foreground color if the table header row + */ + public int getHdrTextFG_PrintColor_ID(); + + /** Column name Hdr_PrintFont_ID */ + public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID"; + + /** Set Header Row Font. + * Header row Font + */ + public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID); + + /** Get Header Row Font. + * Header row Font + */ + public int getHdr_PrintFont_ID(); + + /** Column name HeaderCenter */ + public static final String COLUMNNAME_HeaderCenter = "HeaderCenter"; + + /** Set Header Center. + * Content of the center portion of the header. + */ + public void setHeaderCenter (String HeaderCenter); + + /** Get Header Center. + * Content of the center portion of the header. + */ + public String getHeaderCenter(); + + /** Column name HeaderLeft */ + public static final String COLUMNNAME_HeaderLeft = "HeaderLeft"; + + /** Set Header Left. + * Content of the left portion of the header. + */ + public void setHeaderLeft (String HeaderLeft); + + /** Get Header Left. + * Content of the left portion of the header. + */ + public String getHeaderLeft(); + + /** Column name HeaderRight */ + public static final String COLUMNNAME_HeaderRight = "HeaderRight"; + + /** Set Header Right. + * Content of the right portion of the header. + */ + public void setHeaderRight (String HeaderRight); + + /** Get Header Right. + * Content of the right portion of the header. + */ + public String getHeaderRight(); + + /** Column name ImageIsAttached */ + public static final String COLUMNNAME_ImageIsAttached = "ImageIsAttached"; + + /** Set Image attached. + * The image to be printed is attached to the record + */ + public void setImageIsAttached (boolean ImageIsAttached); + + /** Get Image attached. + * The image to be printed is attached to the record + */ + public boolean isImageIsAttached(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsPaintBoundaryLines */ + public static final String COLUMNNAME_IsPaintBoundaryLines = "IsPaintBoundaryLines"; + + /** Set Paint Boundary Lines. + * Paint table boundary lines + */ + public void setIsPaintBoundaryLines (boolean IsPaintBoundaryLines); + + /** Get Paint Boundary Lines. + * Paint table boundary lines + */ + public boolean isPaintBoundaryLines(); + + /** Column name IsPaintHLines */ + public static final String COLUMNNAME_IsPaintHLines = "IsPaintHLines"; + + /** Set Paint Horizontal Lines. + * Paint horizontal lines + */ + public void setIsPaintHLines (boolean IsPaintHLines); + + /** Get Paint Horizontal Lines. + * Paint horizontal lines + */ + public boolean isPaintHLines(); + + /** Column name IsPaintHeaderLines */ + public static final String COLUMNNAME_IsPaintHeaderLines = "IsPaintHeaderLines"; + + /** Set Paint Header Lines. + * Paint Lines over/under the Header Line + */ + public void setIsPaintHeaderLines (boolean IsPaintHeaderLines); + + /** Get Paint Header Lines. + * Paint Lines over/under the Header Line + */ + public boolean isPaintHeaderLines(); + + /** Column name IsPaintVLines */ + public static final String COLUMNNAME_IsPaintVLines = "IsPaintVLines"; + + /** Set Paint Vertical Lines. + * Paint vertical lines + */ + public void setIsPaintVLines (boolean IsPaintVLines); + + /** Get Paint Vertical Lines. + * Paint vertical lines + */ + public boolean isPaintVLines(); + + /** Column name IsPrintFunctionSymbols */ + public static final String COLUMNNAME_IsPrintFunctionSymbols = "IsPrintFunctionSymbols"; + + /** Set Print Function Symbols. + * Print Symbols for Functions (Sum, Average, Count) + */ + public void setIsPrintFunctionSymbols (boolean IsPrintFunctionSymbols); + + /** Get Print Function Symbols. + * Print Symbols for Functions (Sum, Average, Count) + */ + public boolean isPrintFunctionSymbols(); + + /** Column name LineStroke */ + public static final String COLUMNNAME_LineStroke = "LineStroke"; + + /** Set Line Stroke. + * Width of the Line Stroke + */ + public void setLineStroke (BigDecimal LineStroke); + + /** Get Line Stroke. + * Width of the Line Stroke + */ + public BigDecimal getLineStroke(); + + /** Column name LineStrokeType */ + public static final String COLUMNNAME_LineStrokeType = "LineStrokeType"; + + /** Set Line Stroke Type. + * Type of the Line Stroke + */ + public void setLineStrokeType (String LineStrokeType); + + /** Get Line Stroke Type. + * Type of the Line Stroke + */ + public String getLineStrokeType(); + + /** Column name Line_PrintColor_ID */ + public static final String COLUMNNAME_Line_PrintColor_ID = "Line_PrintColor_ID"; + + /** Set Line Color. + * Table line color + */ + public void setLine_PrintColor_ID (int Line_PrintColor_ID); + + /** Get Line Color. + * Table line color + */ + public int getLine_PrintColor_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_Private_Access.java b/base/src/org/compiere/model/I_AD_Private_Access.java new file mode 100644 index 0000000000..b6423c51b1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Private_Access.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Private_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.421 + */ + public interface I_AD_Private_Access +{ + + /** TableName=AD_Private_Access */ + public static final String Table_Name = "AD_Private_Access"; + + /** AD_Table_ID=627 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_Process.java b/base/src/org/compiere/model/I_AD_Process.java new file mode 100644 index 0000000000..ef97be7a0d --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Process.java @@ -0,0 +1,333 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Process + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.453 + */ + public interface I_AD_Process +{ + + /** TableName=AD_Process */ + public static final String Table_Name = "AD_Process"; + + /** AD_Table_ID=284 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + public I_AD_ReportView getI_AD_ReportView() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + + /** Column name Classname */ + public static final String COLUMNNAME_Classname = "Classname"; + + /** Set Classname. + * Java Classname + */ + public void setClassname (String Classname); + + /** Get Classname. + * Java Classname + */ + public String getClassname(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsBetaFunctionality */ + public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality"; + + /** Set Beta Functionality. + * This functionality is considered Beta + */ + public void setIsBetaFunctionality (boolean IsBetaFunctionality); + + /** Get Beta Functionality. + * This functionality is considered Beta + */ + public boolean isBetaFunctionality(); + + /** Column name IsDirectPrint */ + public static final String COLUMNNAME_IsDirectPrint = "IsDirectPrint"; + + /** Set Direct print. + * Print without dialog + */ + public void setIsDirectPrint (boolean IsDirectPrint); + + /** Get Direct print. + * Print without dialog + */ + public boolean isDirectPrint(); + + /** Column name IsReport */ + public static final String COLUMNNAME_IsReport = "IsReport"; + + /** Set Report. + * Indicates a Report record + */ + public void setIsReport (boolean IsReport); + + /** Get Report. + * Indicates a Report record + */ + public boolean isReport(); + + /** Column name IsServerProcess */ + public static final String COLUMNNAME_IsServerProcess = "IsServerProcess"; + + /** Set Server Process. + * Run this Process on Server only + */ + public void setIsServerProcess (boolean IsServerProcess); + + /** Get Server Process. + * Run this Process on Server only + */ + public boolean isServerProcess(); + + /** Column name JasperReport */ + public static final String COLUMNNAME_JasperReport = "JasperReport"; + + /** Set Jasper Report */ + public void setJasperReport (String JasperReport); + + /** Get Jasper Report */ + public String getJasperReport(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ProcedureName */ + public static final String COLUMNNAME_ProcedureName = "ProcedureName"; + + /** Set Procedure. + * Name of the Database Procedure + */ + public void setProcedureName (String ProcedureName); + + /** Get Procedure. + * Name of the Database Procedure + */ + public String getProcedureName(); + + /** Column name ShowHelp */ + public static final String COLUMNNAME_ShowHelp = "ShowHelp"; + + /** Set Show Help */ + public void setShowHelp (String ShowHelp); + + /** Get Show Help */ + public String getShowHelp(); + + /** Column name Statistic_Count */ + public static final String COLUMNNAME_Statistic_Count = "Statistic_Count"; + + /** Set Statistic Count. + * Internal statistics how often the entity was used + */ + public void setStatistic_Count (int Statistic_Count); + + /** Get Statistic Count. + * Internal statistics how often the entity was used + */ + public int getStatistic_Count(); + + /** Column name Statistic_Seconds */ + public static final String COLUMNNAME_Statistic_Seconds = "Statistic_Seconds"; + + /** Set Statistic Seconds. + * Internal statistics how many seconds a process took + */ + public void setStatistic_Seconds (int Statistic_Seconds); + + /** Get Statistic Seconds. + * Internal statistics how many seconds a process took + */ + public int getStatistic_Seconds(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name WorkflowValue */ + public static final String COLUMNNAME_WorkflowValue = "WorkflowValue"; + + /** Set Workflow Key. + * Key of the Workflow to start + */ + public void setWorkflowValue (String WorkflowValue); + + /** Get Workflow Key. + * Key of the Workflow to start + */ + public String getWorkflowValue(); +} diff --git a/base/src/org/compiere/model/I_AD_Process_Access.java b/base/src/org/compiere/model/I_AD_Process_Access.java new file mode 100644 index 0000000000..554a3b05ef --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Process_Access.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Process_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.515 + */ + public interface I_AD_Process_Access +{ + + /** TableName=AD_Process_Access */ + public static final String Table_Name = "AD_Process_Access"; + + /** AD_Table_ID=197 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name IsReadWrite */ + public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; + + /** Set Read Write. + * Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite); + + /** Get Read Write. + * Field is read / write + */ + public boolean isReadWrite(); +} diff --git a/base/src/org/compiere/model/I_AD_Process_Para.java b/base/src/org/compiere/model/I_AD_Process_Para.java new file mode 100644 index 0000000000..794542d155 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Process_Para.java @@ -0,0 +1,343 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Process_Para + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.546 + */ + public interface I_AD_Process_Para +{ + + /** TableName=AD_Process_Para */ + public static final String Table_Name = "AD_Process_Para"; + + /** AD_Table_ID=285 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Element_ID */ + public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; + + /** Set System Element. + * System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID); + + /** Get System Element. + * System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Process_Para_ID */ + public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; + + /** Set Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID); + + /** Get Process Parameter */ + public int getAD_Process_Para_ID(); + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name AD_Reference_Value_ID */ + public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; + + /** Set Reference Key. + * Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID); + + /** Get Reference Key. + * Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID(); + + /** Column name AD_Val_Rule_ID */ + public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; + + /** Set Dynamic Validation. + * Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID); + + /** Get Dynamic Validation. + * Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID(); + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception; + + /** Column name ColumnName */ + public static final String COLUMNNAME_ColumnName = "ColumnName"; + + /** Set DB Column Name. + * Name of the column in the database + */ + public void setColumnName (String ColumnName); + + /** Get DB Column Name. + * Name of the column in the database + */ + public String getColumnName(); + + /** Column name DefaultValue */ + public static final String COLUMNNAME_DefaultValue = "DefaultValue"; + + /** Set Default Logic. + * Default value hierarchy, separated by ; + + */ + public void setDefaultValue (String DefaultValue); + + /** Get Default Logic. + * Default value hierarchy, separated by ; + + */ + public String getDefaultValue(); + + /** Column name DefaultValue2 */ + public static final String COLUMNNAME_DefaultValue2 = "DefaultValue2"; + + /** Set Default Logic 2. + * Default value hierarchy, separated by ; + + */ + public void setDefaultValue2 (String DefaultValue2); + + /** Get Default Logic 2. + * Default value hierarchy, separated by ; + + */ + public String getDefaultValue2(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name FieldLength */ + public static final String COLUMNNAME_FieldLength = "FieldLength"; + + /** Set Length. + * Length of the column in the database + */ + public void setFieldLength (int FieldLength); + + /** Get Length. + * Length of the column in the database + */ + public int getFieldLength(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsCentrallyMaintained */ + public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; + + /** Set Centrally maintained. + * Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained); + + /** Get Centrally maintained. + * Information maintained in System Element table + */ + public boolean isCentrallyMaintained(); + + /** Column name IsMandatory */ + public static final String COLUMNNAME_IsMandatory = "IsMandatory"; + + /** Set Mandatory. + * Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory); + + /** Get Mandatory. + * Data entry is required in this column + */ + public boolean isMandatory(); + + /** Column name IsRange */ + public static final String COLUMNNAME_IsRange = "IsRange"; + + /** Set Range. + * The parameter is a range of values + */ + public void setIsRange (boolean IsRange); + + /** Get Range. + * The parameter is a range of values + */ + public boolean isRange(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name VFormat */ + public static final String COLUMNNAME_VFormat = "VFormat"; + + /** Set Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat); + + /** Get Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat(); + + /** Column name ValueMax */ + public static final String COLUMNNAME_ValueMax = "ValueMax"; + + /** Set Max. Value. + * Maximum Value for a field + */ + public void setValueMax (String ValueMax); + + /** Get Max. Value. + * Maximum Value for a field + */ + public String getValueMax(); + + /** Column name ValueMin */ + public static final String COLUMNNAME_ValueMin = "ValueMin"; + + /** Set Min. Value. + * Minimum Value for a field + */ + public void setValueMin (String ValueMin); + + /** Get Min. Value. + * Minimum Value for a field + */ + public String getValueMin(); +} diff --git a/base/src/org/compiere/model/I_AD_Record_Access.java b/base/src/org/compiere/model/I_AD_Record_Access.java new file mode 100644 index 0000000000..8f7110a86f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Record_Access.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Record_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.593 + */ + public interface I_AD_Record_Access +{ + + /** TableName=AD_Record_Access */ + public static final String Table_Name = "AD_Record_Access"; + + /** AD_Table_ID=567 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name IsDependentEntities */ + public static final String COLUMNNAME_IsDependentEntities = "IsDependentEntities"; + + /** Set Dependent Entities. + * Also check access in dependent entities + */ + public void setIsDependentEntities (boolean IsDependentEntities); + + /** Get Dependent Entities. + * Also check access in dependent entities + */ + public boolean isDependentEntities(); + + /** Column name IsExclude */ + public static final String COLUMNNAME_IsExclude = "IsExclude"; + + /** Set Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude); + + /** Get Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_Ref_List.java b/base/src/org/compiere/model/I_AD_Ref_List.java new file mode 100644 index 0000000000..a155762ca1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Ref_List.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Ref_List + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.734 + */ + public interface I_AD_Ref_List +{ + + /** TableName=AD_Ref_List */ + public static final String Table_Name = "AD_Ref_List"; + + /** AD_Table_ID=104 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Ref_List_ID */ + public static final String COLUMNNAME_AD_Ref_List_ID = "AD_Ref_List_ID"; + + /** Set Reference List. + * Reference List based on Table + */ + public void setAD_Ref_List_ID (int AD_Ref_List_ID); + + /** Get Reference List. + * Reference List based on Table + */ + public int getAD_Ref_List_ID(); + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + public I_AD_Reference getI_AD_Reference() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_AD_Ref_Table.java b/base/src/org/compiere/model/I_AD_Ref_Table.java new file mode 100644 index 0000000000..38da7dfec3 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Ref_Table.java @@ -0,0 +1,170 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Ref_Table + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:26.765 + */ + public interface I_AD_Ref_Table +{ + + /** TableName=AD_Ref_Table */ + public static final String Table_Name = "AD_Ref_Table"; + + /** AD_Table_ID=103 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Display */ + public static final String COLUMNNAME_AD_Display = "AD_Display"; + + /** Set Display column. + * Column that will display + */ + public void setAD_Display (int AD_Display); + + /** Get Display column. + * Column that will display + */ + public int getAD_Display(); + + /** Column name AD_Key */ + public static final String COLUMNNAME_AD_Key = "AD_Key"; + + /** Set Key column. + * Unique identifier of a record + */ + public void setAD_Key (int AD_Key); + + /** Get Key column. + * Unique identifier of a record + */ + public int getAD_Key(); + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + public I_AD_Reference getI_AD_Reference() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name IsValueDisplayed */ + public static final String COLUMNNAME_IsValueDisplayed = "IsValueDisplayed"; + + /** Set Display Value. + * Displays Value column with the Display column + */ + public void setIsValueDisplayed (boolean IsValueDisplayed); + + /** Get Display Value. + * Displays Value column with the Display column + */ + public boolean isValueDisplayed(); + + /** Column name OrderByClause */ + public static final String COLUMNNAME_OrderByClause = "OrderByClause"; + + /** Set Sql ORDER BY. + * Fully qualified ORDER BY clause + */ + public void setOrderByClause (String OrderByClause); + + /** Get Sql ORDER BY. + * Fully qualified ORDER BY clause + */ + public String getOrderByClause(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_AD_Reference.java b/base/src/org/compiere/model/I_AD_Reference.java new file mode 100644 index 0000000000..3e7b3f00a7 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Reference.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Reference + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.093 + */ + public interface I_AD_Reference +{ + + /** TableName=AD_Reference */ + public static final String Table_Name = "AD_Reference"; + + /** AD_Table_ID=102 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name VFormat */ + public static final String COLUMNNAME_VFormat = "VFormat"; + + /** Set Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat); + + /** Get Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat(); + + /** Column name ValidationType */ + public static final String COLUMNNAME_ValidationType = "ValidationType"; + + /** Set Validation type. + * Different method of validating data + */ + public void setValidationType (String ValidationType); + + /** Get Validation type. + * Different method of validating data + */ + public String getValidationType(); +} diff --git a/base/src/org/compiere/model/I_AD_Registration.java b/base/src/org/compiere/model/I_AD_Registration.java new file mode 100644 index 0000000000..04fbf4ad74 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Registration.java @@ -0,0 +1,294 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Registration + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.125 + */ + public interface I_AD_Registration +{ + + /** TableName=AD_Registration */ + public static final String Table_Name = "AD_Registration"; + + /** AD_Table_ID=625 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Registration_ID */ + public static final String COLUMNNAME_AD_Registration_ID = "AD_Registration_ID"; + + /** Set System Registration. + * System Registration + */ + public void setAD_Registration_ID (int AD_Registration_ID); + + /** Get System Registration. + * System Registration + */ + public int getAD_Registration_ID(); + + /** Column name AD_System_ID */ + public static final String COLUMNNAME_AD_System_ID = "AD_System_ID"; + + /** Set System. + * System Definition + */ + public void setAD_System_ID (int AD_System_ID); + + /** Get System. + * System Definition + */ + public int getAD_System_ID(); + + public I_AD_System getI_AD_System() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IndustryInfo */ + public static final String COLUMNNAME_IndustryInfo = "IndustryInfo"; + + /** Set Industry Info. + * Information of the industry (e.g. professional service, distribution of furnitures, ..) + */ + public void setIndustryInfo (String IndustryInfo); + + /** Get Industry Info. + * Information of the industry (e.g. professional service, distribution of furnitures, ..) + */ + public String getIndustryInfo(); + + /** Column name IsAllowPublish */ + public static final String COLUMNNAME_IsAllowPublish = "IsAllowPublish"; + + /** Set Allowed to be Published. + * You allow to publish the information, not just statistical summary info + */ + public void setIsAllowPublish (boolean IsAllowPublish); + + /** Get Allowed to be Published. + * You allow to publish the information, not just statistical summary info + */ + public boolean isAllowPublish(); + + /** Column name IsAllowStatistics */ + public static final String COLUMNNAME_IsAllowStatistics = "IsAllowStatistics"; + + /** Set Maintain Statistics. + * Maintain general statistics + */ + public void setIsAllowStatistics (boolean IsAllowStatistics); + + /** Get Maintain Statistics. + * Maintain general statistics + */ + public boolean isAllowStatistics(); + + /** Column name IsInProduction */ + public static final String COLUMNNAME_IsInProduction = "IsInProduction"; + + /** Set In Production. + * The system is in production + */ + public void setIsInProduction (boolean IsInProduction); + + /** Get In Production. + * The system is in production + */ + public boolean isInProduction(); + + /** Column name IsRegistered */ + public static final String COLUMNNAME_IsRegistered = "IsRegistered"; + + /** Set Registered. + * The application is registered. + */ + public void setIsRegistered (boolean IsRegistered); + + /** Get Registered. + * The application is registered. + */ + public boolean isRegistered(); + + /** Column name NumberEmployees */ + public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; + + /** Set Employees. + * Number of employees + */ + public void setNumberEmployees (int NumberEmployees); + + /** Get Employees. + * Number of employees + */ + public int getNumberEmployees(); + + /** Column name PlatformInfo */ + public static final String COLUMNNAME_PlatformInfo = "PlatformInfo"; + + /** Set Platform Info. + * Information about Server and Client Platform + */ + public void setPlatformInfo (String PlatformInfo); + + /** Get Platform Info. + * Information about Server and Client Platform + */ + public String getPlatformInfo(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name SalesVolume */ + public static final String COLUMNNAME_SalesVolume = "SalesVolume"; + + /** Set Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (int SalesVolume); + + /** Get Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public int getSalesVolume(); + + /** Column name StartProductionDate */ + public static final String COLUMNNAME_StartProductionDate = "StartProductionDate"; + + /** Set Start Implementation/Production. + * The day you started the implementation (if implementing) - or production (went life) with Adempiere + */ + public void setStartProductionDate (Timestamp StartProductionDate); + + /** Get Start Implementation/Production. + * The day you started the implementation (if implementing) - or production (went life) with Adempiere + */ + public Timestamp getStartProductionDate(); +} diff --git a/base/src/org/compiere/model/I_AD_Replication.java b/base/src/org/compiere/model/I_AD_Replication.java new file mode 100644 index 0000000000..3ec3dd9117 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Replication.java @@ -0,0 +1,266 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Replication + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.171 + */ + public interface I_AD_Replication +{ + + /** TableName=AD_Replication */ + public static final String Table_Name = "AD_Replication"; + + /** AD_Table_ID=605 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_ReplicationStrategy_ID */ + public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; + + /** Set Replication Strategy. + * Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID); + + /** Get Replication Strategy. + * Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID(); + + public I_AD_ReplicationStrategy getI_AD_ReplicationStrategy() throws Exception; + + /** Column name AD_Replication_ID */ + public static final String COLUMNNAME_AD_Replication_ID = "AD_Replication_ID"; + + /** Set Replication. + * Data Replication Target + */ + public void setAD_Replication_ID (int AD_Replication_ID); + + /** Get Replication. + * Data Replication Target + */ + public int getAD_Replication_ID(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name HostAddress */ + public static final String COLUMNNAME_HostAddress = "HostAddress"; + + /** Set Host Address. + * Host Address URL or DNS + */ + public void setHostAddress (String HostAddress); + + /** Get Host Address. + * Host Address URL or DNS + */ + public String getHostAddress(); + + /** Column name HostPort */ + public static final String COLUMNNAME_HostPort = "HostPort"; + + /** Set Host port. + * Host Communication Port + */ + public void setHostPort (int HostPort); + + /** Get Host port. + * Host Communication Port + */ + public int getHostPort(); + + /** Column name IDRangeEnd */ + public static final String COLUMNNAME_IDRangeEnd = "IDRangeEnd"; + + /** Set ID Range End. + * End if the ID Range used + */ + public void setIDRangeEnd (BigDecimal IDRangeEnd); + + /** Get ID Range End. + * End if the ID Range used + */ + public BigDecimal getIDRangeEnd(); + + /** Column name IDRangeStart */ + public static final String COLUMNNAME_IDRangeStart = "IDRangeStart"; + + /** Set ID Range Start. + * Start of the ID Range used + */ + public void setIDRangeStart (BigDecimal IDRangeStart); + + /** Get ID Range Start. + * Start of the ID Range used + */ + public BigDecimal getIDRangeStart(); + + /** Column name IsRMIoverHTTP */ + public static final String COLUMNNAME_IsRMIoverHTTP = "IsRMIoverHTTP"; + + /** Set Tunnel via HTTP. + * Connect to Server via HTTP Tunnel + */ + public void setIsRMIoverHTTP (boolean IsRMIoverHTTP); + + /** Get Tunnel via HTTP. + * Connect to Server via HTTP Tunnel + */ + public boolean isRMIoverHTTP(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Prefix */ + public static final String COLUMNNAME_Prefix = "Prefix"; + + /** Set Prefix. + * Prefix before the sequence number + */ + public void setPrefix (String Prefix); + + /** Get Prefix. + * Prefix before the sequence number + */ + public String getPrefix(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Remote_Client_ID */ + public static final String COLUMNNAME_Remote_Client_ID = "Remote_Client_ID"; + + /** Set Remote Client. + * Remote Client to be used to replicate / synchronize data with. + */ + public void setRemote_Client_ID (int Remote_Client_ID); + + /** Get Remote Client. + * Remote Client to be used to replicate / synchronize data with. + */ + public int getRemote_Client_ID(); + + /** Column name Remote_Org_ID */ + public static final String COLUMNNAME_Remote_Org_ID = "Remote_Org_ID"; + + /** Set Remote Organization. + * Remote Organization to be used to replicate / synchronize data with. + */ + public void setRemote_Org_ID (int Remote_Org_ID); + + /** Get Remote Organization. + * Remote Organization to be used to replicate / synchronize data with. + */ + public int getRemote_Org_ID(); + + /** Column name Suffix */ + public static final String COLUMNNAME_Suffix = "Suffix"; + + /** Set Suffix. + * Suffix after the number + */ + public void setSuffix (String Suffix); + + /** Get Suffix. + * Suffix after the number + */ + public String getSuffix(); +} diff --git a/base/src/org/compiere/model/I_AD_ReplicationStrategy.java b/base/src/org/compiere/model/I_AD_ReplicationStrategy.java new file mode 100644 index 0000000000..fa72e6ab0f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ReplicationStrategy.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ReplicationStrategy + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.203 + */ + public interface I_AD_ReplicationStrategy +{ + + /** TableName=AD_ReplicationStrategy */ + public static final String Table_Name = "AD_ReplicationStrategy"; + + /** AD_Table_ID=602 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_ReplicationStrategy_ID */ + public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; + + /** Set Replication Strategy. + * Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID); + + /** Get Replication Strategy. + * Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_ReplicationTable.java b/base/src/org/compiere/model/I_AD_ReplicationTable.java new file mode 100644 index 0000000000..95813c2cff --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ReplicationTable.java @@ -0,0 +1,131 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ReplicationTable + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.25 + */ + public interface I_AD_ReplicationTable +{ + + /** TableName=AD_ReplicationTable */ + public static final String Table_Name = "AD_ReplicationTable"; + + /** AD_Table_ID=601 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_ReplicationStrategy_ID */ + public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; + + /** Set Replication Strategy. + * Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID); + + /** Get Replication Strategy. + * Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID(); + + public I_AD_ReplicationStrategy getI_AD_ReplicationStrategy() throws Exception; + + /** Column name AD_ReplicationTable_ID */ + public static final String COLUMNNAME_AD_ReplicationTable_ID = "AD_ReplicationTable_ID"; + + /** Set Replication Table. + * Data Replication Strategy Table Info + */ + public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID); + + /** Get Replication Table. + * Data Replication Strategy Table Info + */ + public int getAD_ReplicationTable_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name ReplicationType */ + public static final String COLUMNNAME_ReplicationType = "ReplicationType"; + + /** Set Replication Type. + * Type of Data Replication + */ + public void setReplicationType (String ReplicationType); + + /** Get Replication Type. + * Type of Data Replication + */ + public String getReplicationType(); +} diff --git a/base/src/org/compiere/model/I_AD_Replication_Log.java b/base/src/org/compiere/model/I_AD_Replication_Log.java new file mode 100644 index 0000000000..1b7ba1d3ea --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Replication_Log.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Replication_Log + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.312 + */ + public interface I_AD_Replication_Log +{ + + /** TableName=AD_Replication_Log */ + public static final String Table_Name = "AD_Replication_Log"; + + /** AD_Table_ID=604 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_ReplicationTable_ID */ + public static final String COLUMNNAME_AD_ReplicationTable_ID = "AD_ReplicationTable_ID"; + + /** Set Replication Table. + * Data Replication Strategy Table Info + */ + public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID); + + /** Get Replication Table. + * Data Replication Strategy Table Info + */ + public int getAD_ReplicationTable_ID(); + + public I_AD_ReplicationTable getI_AD_ReplicationTable() throws Exception; + + /** Column name AD_Replication_Log_ID */ + public static final String COLUMNNAME_AD_Replication_Log_ID = "AD_Replication_Log_ID"; + + /** Set Replication Log. + * Data Replication Log Details + */ + public void setAD_Replication_Log_ID (int AD_Replication_Log_ID); + + /** Get Replication Log. + * Data Replication Log Details + */ + public int getAD_Replication_Log_ID(); + + /** Column name AD_Replication_Run_ID */ + public static final String COLUMNNAME_AD_Replication_Run_ID = "AD_Replication_Run_ID"; + + /** Set Replication Run. + * Data Replication Run + */ + public void setAD_Replication_Run_ID (int AD_Replication_Run_ID); + + /** Get Replication Run. + * Data Replication Run + */ + public int getAD_Replication_Run_ID(); + + public I_AD_Replication_Run getI_AD_Replication_Run() throws Exception; + + /** Column name IsReplicated */ + public static final String COLUMNNAME_IsReplicated = "IsReplicated"; + + /** Set Replicated. + * The data is successfully replicated + */ + public void setIsReplicated (boolean IsReplicated); + + /** Get Replicated. + * The data is successfully replicated + */ + public boolean isReplicated(); + + /** Column name P_Msg */ + public static final String COLUMNNAME_P_Msg = "P_Msg"; + + /** Set Process Message */ + public void setP_Msg (String P_Msg); + + /** Get Process Message */ + public String getP_Msg(); +} diff --git a/base/src/org/compiere/model/I_AD_Replication_Run.java b/base/src/org/compiere/model/I_AD_Replication_Run.java new file mode 100644 index 0000000000..0e5475568c --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Replication_Run.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Replication_Run + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.328 + */ + public interface I_AD_Replication_Run +{ + + /** TableName=AD_Replication_Run */ + public static final String Table_Name = "AD_Replication_Run"; + + /** AD_Table_ID=603 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Replication_ID */ + public static final String COLUMNNAME_AD_Replication_ID = "AD_Replication_ID"; + + /** Set Replication. + * Data Replication Target + */ + public void setAD_Replication_ID (int AD_Replication_ID); + + /** Get Replication. + * Data Replication Target + */ + public int getAD_Replication_ID(); + + public I_AD_Replication getI_AD_Replication() throws Exception; + + /** Column name AD_Replication_Run_ID */ + public static final String COLUMNNAME_AD_Replication_Run_ID = "AD_Replication_Run_ID"; + + /** Set Replication Run. + * Data Replication Run + */ + public void setAD_Replication_Run_ID (int AD_Replication_Run_ID); + + /** Get Replication Run. + * Data Replication Run + */ + public int getAD_Replication_Run_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsReplicated */ + public static final String COLUMNNAME_IsReplicated = "IsReplicated"; + + /** Set Replicated. + * The data is successfully replicated + */ + public void setIsReplicated (boolean IsReplicated); + + /** Get Replicated. + * The data is successfully replicated + */ + public boolean isReplicated(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_ReportView.java b/base/src/org/compiere/model/I_AD_ReportView.java new file mode 100644 index 0000000000..b2145d9bee --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ReportView.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ReportView + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.359 + */ + public interface I_AD_ReportView +{ + + /** TableName=AD_ReportView */ + public static final String Table_Name = "AD_ReportView"; + + /** AD_Table_ID=361 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OrderByClause */ + public static final String COLUMNNAME_OrderByClause = "OrderByClause"; + + /** Set Sql ORDER BY. + * Fully qualified ORDER BY clause + */ + public void setOrderByClause (String OrderByClause); + + /** Get Sql ORDER BY. + * Fully qualified ORDER BY clause + */ + public String getOrderByClause(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_AD_ReportView_Col.java b/base/src/org/compiere/model/I_AD_ReportView_Col.java new file mode 100644 index 0000000000..3d81986919 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ReportView_Col.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_ReportView_Col + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.406 + */ + public interface I_AD_ReportView_Col +{ + + /** TableName=AD_ReportView_Col */ + public static final String Table_Name = "AD_ReportView_Col"; + + /** AD_Table_ID=428 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_ReportView_Col_ID */ + public static final String COLUMNNAME_AD_ReportView_Col_ID = "AD_ReportView_Col_ID"; + + /** Set Report view Column */ + public void setAD_ReportView_Col_ID (int AD_ReportView_Col_ID); + + /** Get Report view Column */ + public int getAD_ReportView_Col_ID(); + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + public I_AD_ReportView getI_AD_ReportView() throws Exception; + + /** Column name FunctionColumn */ + public static final String COLUMNNAME_FunctionColumn = "FunctionColumn"; + + /** Set Function Column. + * Overwrite Column with Function + */ + public void setFunctionColumn (String FunctionColumn); + + /** Get Function Column. + * Overwrite Column with Function + */ + public String getFunctionColumn(); + + /** Column name IsGroupFunction */ + public static final String COLUMNNAME_IsGroupFunction = "IsGroupFunction"; + + /** Set SQL Group Function. + * This function will generate a Group By Clause + */ + public void setIsGroupFunction (boolean IsGroupFunction); + + /** Get SQL Group Function. + * This function will generate a Group By Clause + */ + public boolean isGroupFunction(); +} diff --git a/base/src/org/compiere/model/I_AD_Role.java b/base/src/org/compiere/model/I_AD_Role.java new file mode 100644 index 0000000000..26d69de7e1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Role.java @@ -0,0 +1,473 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Role + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.421 + */ + public interface I_AD_Role +{ + + /** TableName=AD_Role */ + public static final String Table_Name = "AD_Role"; + + /** AD_Table_ID=156 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + /** Column name AD_Tree_Menu_ID */ + public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; + + /** Set Menu Tree. + * Tree of the menu + */ + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID); + + /** Get Menu Tree. + * Tree of the menu + */ + public int getAD_Tree_Menu_ID(); + + /** Column name AD_Tree_Org_ID */ + public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; + + /** Set Organization Tree. + * Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID); + + /** Get Organization Tree. + * Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID(); + + /** Column name Allow_Info_Account */ + public static final String COLUMNNAME_Allow_Info_Account = "Allow_Info_Account"; + + /** Set Allow Info Account */ + public void setAllow_Info_Account (boolean Allow_Info_Account); + + /** Get Allow Info Account */ + public boolean isAllow_Info_Account(); + + /** Column name Allow_Info_Asset */ + public static final String COLUMNNAME_Allow_Info_Asset = "Allow_Info_Asset"; + + /** Set Allow Info Asset */ + public void setAllow_Info_Asset (boolean Allow_Info_Asset); + + /** Get Allow Info Asset */ + public boolean isAllow_Info_Asset(); + + /** Column name Allow_Info_BPartner */ + public static final String COLUMNNAME_Allow_Info_BPartner = "Allow_Info_BPartner"; + + /** Set Allow Info BPartner */ + public void setAllow_Info_BPartner (boolean Allow_Info_BPartner); + + /** Get Allow Info BPartner */ + public boolean isAllow_Info_BPartner(); + + /** Column name Allow_Info_CashJournal */ + public static final String COLUMNNAME_Allow_Info_CashJournal = "Allow_Info_CashJournal"; + + /** Set Allow Info CashJournal */ + public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal); + + /** Get Allow Info CashJournal */ + public boolean isAllow_Info_CashJournal(); + + /** Column name Allow_Info_InOut */ + public static final String COLUMNNAME_Allow_Info_InOut = "Allow_Info_InOut"; + + /** Set Allow Info InOut */ + public void setAllow_Info_InOut (boolean Allow_Info_InOut); + + /** Get Allow Info InOut */ + public boolean isAllow_Info_InOut(); + + /** Column name Allow_Info_Invoice */ + public static final String COLUMNNAME_Allow_Info_Invoice = "Allow_Info_Invoice"; + + /** Set Allow Info Invoice */ + public void setAllow_Info_Invoice (boolean Allow_Info_Invoice); + + /** Get Allow Info Invoice */ + public boolean isAllow_Info_Invoice(); + + /** Column name Allow_Info_Order */ + public static final String COLUMNNAME_Allow_Info_Order = "Allow_Info_Order"; + + /** Set Allow Info Order */ + public void setAllow_Info_Order (boolean Allow_Info_Order); + + /** Get Allow Info Order */ + public boolean isAllow_Info_Order(); + + /** Column name Allow_Info_Payment */ + public static final String COLUMNNAME_Allow_Info_Payment = "Allow_Info_Payment"; + + /** Set Allow Info Payment */ + public void setAllow_Info_Payment (boolean Allow_Info_Payment); + + /** Get Allow Info Payment */ + public boolean isAllow_Info_Payment(); + + /** Column name Allow_Info_Product */ + public static final String COLUMNNAME_Allow_Info_Product = "Allow_Info_Product"; + + /** Set Allow Info Product */ + public void setAllow_Info_Product (boolean Allow_Info_Product); + + /** Get Allow Info Product */ + public boolean isAllow_Info_Product(); + + /** Column name Allow_Info_Resource */ + public static final String COLUMNNAME_Allow_Info_Resource = "Allow_Info_Resource"; + + /** Set Allow Info Resource */ + public void setAllow_Info_Resource (boolean Allow_Info_Resource); + + /** Get Allow Info Resource */ + public boolean isAllow_Info_Resource(); + + /** Column name Allow_Info_Schedule */ + public static final String COLUMNNAME_Allow_Info_Schedule = "Allow_Info_Schedule"; + + /** Set Allow Info Schedule */ + public void setAllow_Info_Schedule (boolean Allow_Info_Schedule); + + /** Get Allow Info Schedule */ + public boolean isAllow_Info_Schedule(); + + /** Column name AmtApproval */ + public static final String COLUMNNAME_AmtApproval = "AmtApproval"; + + /** Set Approval Amount. + * The approval amount limit for this role + */ + public void setAmtApproval (BigDecimal AmtApproval); + + /** Get Approval Amount. + * The approval amount limit for this role + */ + public BigDecimal getAmtApproval(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name ConfirmQueryRecords */ + public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords"; + + /** Set Confirm Query Records. + * Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public void setConfirmQueryRecords (int ConfirmQueryRecords); + + /** Get Confirm Query Records. + * Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public int getConfirmQueryRecords(); + + /** Column name ConnectionProfile */ + public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; + + /** Set Connection Profile. + * How a Java Client connects to the server(s) + */ + public void setConnectionProfile (String ConnectionProfile); + + /** Get Connection Profile. + * How a Java Client connects to the server(s) + */ + public String getConnectionProfile(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsAccessAllOrgs */ + public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs"; + + /** Set Access all Orgs. + * Access all Organizations (no org access control) of the client + */ + public void setIsAccessAllOrgs (boolean IsAccessAllOrgs); + + /** Get Access all Orgs. + * Access all Organizations (no org access control) of the client + */ + public boolean isAccessAllOrgs(); + + /** Column name IsCanApproveOwnDoc */ + public static final String COLUMNNAME_IsCanApproveOwnDoc = "IsCanApproveOwnDoc"; + + /** Set Approve own Documents. + * Users with this role can approve their own documents + */ + public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc); + + /** Get Approve own Documents. + * Users with this role can approve their own documents + */ + public boolean isCanApproveOwnDoc(); + + /** Column name IsCanExport */ + public static final String COLUMNNAME_IsCanExport = "IsCanExport"; + + /** Set Can Export. + * Users with this role can export data + */ + public void setIsCanExport (boolean IsCanExport); + + /** Get Can Export. + * Users with this role can export data + */ + public boolean isCanExport(); + + /** Column name IsCanReport */ + public static final String COLUMNNAME_IsCanReport = "IsCanReport"; + + /** Set Can Report. + * Users with this role can create reports + */ + public void setIsCanReport (boolean IsCanReport); + + /** Get Can Report. + * Users with this role can create reports + */ + public boolean isCanReport(); + + /** Column name IsChangeLog */ + public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; + + /** Set Maintain Change Log. + * Maintain a log of changes + */ + public void setIsChangeLog (boolean IsChangeLog); + + /** Get Maintain Change Log. + * Maintain a log of changes + */ + public boolean isChangeLog(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name IsPersonalAccess */ + public static final String COLUMNNAME_IsPersonalAccess = "IsPersonalAccess"; + + /** Set Personal Access. + * Allow access to all personal records + */ + public void setIsPersonalAccess (boolean IsPersonalAccess); + + /** Get Personal Access. + * Allow access to all personal records + */ + public boolean isPersonalAccess(); + + /** Column name IsPersonalLock */ + public static final String COLUMNNAME_IsPersonalLock = "IsPersonalLock"; + + /** Set Personal Lock. + * Allow users with role to lock access to personal records + */ + public void setIsPersonalLock (boolean IsPersonalLock); + + /** Get Personal Lock. + * Allow users with role to lock access to personal records + */ + public boolean isPersonalLock(); + + /** Column name IsShowAcct */ + public static final String COLUMNNAME_IsShowAcct = "IsShowAcct"; + + /** Set Show Accounting. + * Users with this role can see accounting information + */ + public void setIsShowAcct (boolean IsShowAcct); + + /** Get Show Accounting. + * Users with this role can see accounting information + */ + public boolean isShowAcct(); + + /** Column name IsUseUserOrgAccess */ + public static final String COLUMNNAME_IsUseUserOrgAccess = "IsUseUserOrgAccess"; + + /** Set Use User Org Access. + * Use Org Access defined by user instead of Role Org Access + */ + public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess); + + /** Get Use User Org Access. + * Use Org Access defined by user instead of Role Org Access + */ + public boolean isUseUserOrgAccess(); + + /** Column name MaxQueryRecords */ + public static final String COLUMNNAME_MaxQueryRecords = "MaxQueryRecords"; + + /** Set Max Query Records. + * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public void setMaxQueryRecords (int MaxQueryRecords); + + /** Get Max Query Records. + * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public int getMaxQueryRecords(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OverwritePriceLimit */ + public static final String COLUMNNAME_OverwritePriceLimit = "OverwritePriceLimit"; + + /** Set Overwrite Price Limit. + * Overwrite Price Limit if the Price List enforces the Price Limit + */ + public void setOverwritePriceLimit (boolean OverwritePriceLimit); + + /** Get Overwrite Price Limit. + * Overwrite Price Limit if the Price List enforces the Price Limit + */ + public boolean isOverwritePriceLimit(); + + /** Column name PreferenceType */ + public static final String COLUMNNAME_PreferenceType = "PreferenceType"; + + /** Set Preference Level. + * Determines what preferences the user can set + */ + public void setPreferenceType (String PreferenceType); + + /** Get Preference Level. + * Determines what preferences the user can set + */ + public String getPreferenceType(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); + + /** Column name UserLevel */ + public static final String COLUMNNAME_UserLevel = "UserLevel"; + + /** Set User Level. + * System Client Organization + */ + public void setUserLevel (String UserLevel); + + /** Get User Level. + * System Client Organization + */ + public String getUserLevel(); +} diff --git a/base/src/org/compiere/model/I_AD_Role_OrgAccess.java b/base/src/org/compiere/model/I_AD_Role_OrgAccess.java new file mode 100644 index 0000000000..1780876636 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Role_OrgAccess.java @@ -0,0 +1,88 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Role_OrgAccess + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.484 + */ + public interface I_AD_Role_OrgAccess +{ + + /** TableName=AD_Role_OrgAccess */ + public static final String Table_Name = "AD_Role_OrgAccess"; + + /** AD_Table_ID=422 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); +} diff --git a/base/src/org/compiere/model/I_AD_Scheduler.java b/base/src/org/compiere/model/I_AD_Scheduler.java new file mode 100644 index 0000000000..dbf591456f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Scheduler.java @@ -0,0 +1,240 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Scheduler + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.515 + */ + public interface I_AD_Scheduler +{ + + /** TableName=AD_Scheduler */ + public static final String Table_Name = "AD_Scheduler"; + + /** AD_Table_ID=688 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Scheduler_ID */ + public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; + + /** Set Scheduler. + * Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID); + + /** Get Scheduler. + * Schedule Processes + */ + public int getAD_Scheduler_ID(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name MonthDay */ + public static final String COLUMNNAME_MonthDay = "MonthDay"; + + /** Set Day of the Month. + * Day of the month 1 to 28/29/30/31 + */ + public void setMonthDay (int MonthDay); + + /** Get Day of the Month. + * Day of the month 1 to 28/29/30/31 + */ + public int getMonthDay(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ScheduleType */ + public static final String COLUMNNAME_ScheduleType = "ScheduleType"; + + /** Set Schedule Type. + * Type of schedule + */ + public void setScheduleType (String ScheduleType); + + /** Get Schedule Type. + * Type of schedule + */ + public String getScheduleType(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); + + /** Column name WeekDay */ + public static final String COLUMNNAME_WeekDay = "WeekDay"; + + /** Set Day of the Week. + * Day of the Week + */ + public void setWeekDay (String WeekDay); + + /** Get Day of the Week. + * Day of the Week + */ + public String getWeekDay(); +} diff --git a/base/src/org/compiere/model/I_AD_SchedulerLog.java b/base/src/org/compiere/model/I_AD_SchedulerLog.java new file mode 100644 index 0000000000..557d1c4f20 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_SchedulerLog.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_SchedulerLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.625 + */ + public interface I_AD_SchedulerLog +{ + + /** TableName=AD_SchedulerLog */ + public static final String Table_Name = "AD_SchedulerLog"; + + /** AD_Table_ID=687 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_SchedulerLog_ID */ + public static final String COLUMNNAME_AD_SchedulerLog_ID = "AD_SchedulerLog_ID"; + + /** Set Scheduler Log. + * Result of the execution of the Scheduler + */ + public void setAD_SchedulerLog_ID (int AD_SchedulerLog_ID); + + /** Get Scheduler Log. + * Result of the execution of the Scheduler + */ + public int getAD_SchedulerLog_ID(); + + /** Column name AD_Scheduler_ID */ + public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; + + /** Set Scheduler. + * Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID); + + /** Get Scheduler. + * Schedule Processes + */ + public int getAD_Scheduler_ID(); + + public I_AD_Scheduler getI_AD_Scheduler() throws Exception; + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_AD_SchedulerRecipient.java b/base/src/org/compiere/model/I_AD_SchedulerRecipient.java new file mode 100644 index 0000000000..da2a7c4b12 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_SchedulerRecipient.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_SchedulerRecipient + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.687 + */ + public interface I_AD_SchedulerRecipient +{ + + /** TableName=AD_SchedulerRecipient */ + public static final String Table_Name = "AD_SchedulerRecipient"; + + /** AD_Table_ID=704 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_SchedulerRecipient_ID */ + public static final String COLUMNNAME_AD_SchedulerRecipient_ID = "AD_SchedulerRecipient_ID"; + + /** Set Scheduler Recipient. + * Recipient of the Scheduler Notification + */ + public void setAD_SchedulerRecipient_ID (int AD_SchedulerRecipient_ID); + + /** Get Scheduler Recipient. + * Recipient of the Scheduler Notification + */ + public int getAD_SchedulerRecipient_ID(); + + /** Column name AD_Scheduler_ID */ + public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; + + /** Set Scheduler. + * Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID); + + /** Get Scheduler. + * Schedule Processes + */ + public int getAD_Scheduler_ID(); + + public I_AD_Scheduler getI_AD_Scheduler() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_Scheduler_Para.java b/base/src/org/compiere/model/I_AD_Scheduler_Para.java new file mode 100644 index 0000000000..7db54ae461 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Scheduler_Para.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Scheduler_Para + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.703 + */ + public interface I_AD_Scheduler_Para +{ + + /** TableName=AD_Scheduler_Para */ + public static final String Table_Name = "AD_Scheduler_Para"; + + /** AD_Table_ID=698 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Process_Para_ID */ + public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; + + /** Set Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID); + + /** Get Process Parameter */ + public int getAD_Process_Para_ID(); + + public I_AD_Process_Para getI_AD_Process_Para() throws Exception; + + /** Column name AD_Scheduler_ID */ + public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; + + /** Set Scheduler. + * Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID); + + /** Get Scheduler. + * Schedule Processes + */ + public int getAD_Scheduler_ID(); + + public I_AD_Scheduler getI_AD_Scheduler() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ParameterDefault */ + public static final String COLUMNNAME_ParameterDefault = "ParameterDefault"; + + /** Set Default Parameter. + * Default value of the parameter + */ + public void setParameterDefault (String ParameterDefault); + + /** Get Default Parameter. + * Default value of the parameter + */ + public String getParameterDefault(); +} diff --git a/base/src/org/compiere/model/I_AD_Sequence.java b/base/src/org/compiere/model/I_AD_Sequence.java new file mode 100644 index 0000000000..16fa9266fc --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Sequence.java @@ -0,0 +1,244 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Sequence + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:27.984 + */ + public interface I_AD_Sequence +{ + + /** TableName=AD_Sequence */ + public static final String Table_Name = "AD_Sequence"; + + /** AD_Table_ID=115 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Sequence_ID */ + public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; + + /** Set Sequence. + * Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID); + + /** Get Sequence. + * Document Sequence + */ + public int getAD_Sequence_ID(); + + /** Column name CurrentNext */ + public static final String COLUMNNAME_CurrentNext = "CurrentNext"; + + /** Set Current Next. + * The next number to be used + */ + public void setCurrentNext (int CurrentNext); + + /** Get Current Next. + * The next number to be used + */ + public int getCurrentNext(); + + /** Column name CurrentNextSys */ + public static final String COLUMNNAME_CurrentNextSys = "CurrentNextSys"; + + /** Set Current Next (System). + * Next sequence for system use + */ + public void setCurrentNextSys (int CurrentNextSys); + + /** Get Current Next (System). + * Next sequence for system use + */ + public int getCurrentNextSys(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IncrementNo */ + public static final String COLUMNNAME_IncrementNo = "IncrementNo"; + + /** Set Increment. + * The number to increment the last document number by + */ + public void setIncrementNo (int IncrementNo); + + /** Get Increment. + * The number to increment the last document number by + */ + public int getIncrementNo(); + + /** Column name IsAudited */ + public static final String COLUMNNAME_IsAudited = "IsAudited"; + + /** Set Activate Audit. + * Activate Audit Trail of what numbers are generated + */ + public void setIsAudited (boolean IsAudited); + + /** Get Activate Audit. + * Activate Audit Trail of what numbers are generated + */ + public boolean isAudited(); + + /** Column name IsAutoSequence */ + public static final String COLUMNNAME_IsAutoSequence = "IsAutoSequence"; + + /** Set Auto numbering. + * Automatically assign the next number + */ + public void setIsAutoSequence (boolean IsAutoSequence); + + /** Get Auto numbering. + * Automatically assign the next number + */ + public boolean isAutoSequence(); + + /** Column name IsTableID */ + public static final String COLUMNNAME_IsTableID = "IsTableID"; + + /** Set Used for Record ID. + * The document number will be used as the record key + */ + public void setIsTableID (boolean IsTableID); + + /** Get Used for Record ID. + * The document number will be used as the record key + */ + public boolean isTableID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Prefix */ + public static final String COLUMNNAME_Prefix = "Prefix"; + + /** Set Prefix. + * Prefix before the sequence number + */ + public void setPrefix (String Prefix); + + /** Get Prefix. + * Prefix before the sequence number + */ + public String getPrefix(); + + /** Column name StartNewYear */ + public static final String COLUMNNAME_StartNewYear = "StartNewYear"; + + /** Set Restart sequence every Year. + * Restart the sequence with Start on every 1/1 + */ + public void setStartNewYear (boolean StartNewYear); + + /** Get Restart sequence every Year. + * Restart the sequence with Start on every 1/1 + */ + public boolean isStartNewYear(); + + /** Column name StartNo */ + public static final String COLUMNNAME_StartNo = "StartNo"; + + /** Set Start No. + * Starting number/position + */ + public void setStartNo (int StartNo); + + /** Get Start No. + * Starting number/position + */ + public int getStartNo(); + + /** Column name Suffix */ + public static final String COLUMNNAME_Suffix = "Suffix"; + + /** Set Suffix. + * Suffix after the number + */ + public void setSuffix (String Suffix); + + /** Get Suffix. + * Suffix after the number + */ + public String getSuffix(); + + /** Column name VFormat */ + public static final String COLUMNNAME_VFormat = "VFormat"; + + /** Set Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat); + + /** Get Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat(); +} diff --git a/base/src/org/compiere/model/I_AD_Sequence_Audit.java b/base/src/org/compiere/model/I_AD_Sequence_Audit.java new file mode 100644 index 0000000000..abcd918ff6 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Sequence_Audit.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Sequence_Audit + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.046 + */ + public interface I_AD_Sequence_Audit +{ + + /** TableName=AD_Sequence_Audit */ + public static final String Table_Name = "AD_Sequence_Audit"; + + /** AD_Table_ID=121 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Sequence_ID */ + public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; + + /** Set Sequence. + * Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID); + + /** Get Sequence. + * Document Sequence + */ + public int getAD_Sequence_ID(); + + public I_AD_Sequence getI_AD_Sequence() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_Sequence_No.java b/base/src/org/compiere/model/I_AD_Sequence_No.java new file mode 100644 index 0000000000..d7ddb14fc6 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Sequence_No.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Sequence_No + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.093 + */ + public interface I_AD_Sequence_No +{ + + /** TableName=AD_Sequence_No */ + public static final String Table_Name = "AD_Sequence_No"; + + /** AD_Table_ID=122 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Sequence_ID */ + public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; + + /** Set Sequence. + * Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID); + + /** Get Sequence. + * Document Sequence + */ + public int getAD_Sequence_ID(); + + public I_AD_Sequence getI_AD_Sequence() throws Exception; + + /** Column name CalendarYear */ + public static final String COLUMNNAME_CalendarYear = "CalendarYear"; + + /** Set Year. + * Calendar Year + */ + public void setCalendarYear (String CalendarYear); + + /** Get Year. + * Calendar Year + */ + public String getCalendarYear(); + + /** Column name CurrentNext */ + public static final String COLUMNNAME_CurrentNext = "CurrentNext"; + + /** Set Current Next. + * The next number to be used + */ + public void setCurrentNext (int CurrentNext); + + /** Get Current Next. + * The next number to be used + */ + public int getCurrentNext(); +} diff --git a/base/src/org/compiere/model/I_AD_Session.java b/base/src/org/compiere/model/I_AD_Session.java new file mode 100644 index 0000000000..49f3dcced6 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Session.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Session + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.171 + */ + public interface I_AD_Session +{ + + /** TableName=AD_Session */ + public static final String Table_Name = "AD_Session"; + + /** AD_Table_ID=566 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Session_ID */ + public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; + + /** Set Session. + * User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID); + + /** Get Session. + * User Session Online or Web + */ + public int getAD_Session_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name WebSession */ + public static final String COLUMNNAME_WebSession = "WebSession"; + + /** Set Web Session. + * Web Session ID + */ + public void setWebSession (String WebSession); + + /** Get Web Session. + * Web Session ID + */ + public String getWebSession(); +} diff --git a/base/src/org/compiere/model/I_AD_SysConfig.java b/base/src/org/compiere/model/I_AD_SysConfig.java new file mode 100644 index 0000000000..3354aa06f0 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_SysConfig.java @@ -0,0 +1,108 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_SysConfig + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.203 + */ + public interface I_AD_SysConfig +{ + + /** TableName=AD_SysConfig */ + public static final String Table_Name = "AD_SysConfig"; + + /** AD_Table_ID=50009 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_SysConfig_ID */ + public static final String COLUMNNAME_AD_SysConfig_ID = "AD_SysConfig_ID"; + + /** Set System Configurator */ + public void setAD_SysConfig_ID (int AD_SysConfig_ID); + + /** Get System Configurator */ + public int getAD_SysConfig_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_AD_System.java b/base/src/org/compiere/model/I_AD_System.java new file mode 100644 index 0000000000..3eb56f9f52 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_System.java @@ -0,0 +1,455 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_System + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.218 + */ + public interface I_AD_System +{ + + /** TableName=AD_System */ + public static final String Table_Name = "AD_System"; + + /** AD_Table_ID=531 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_System_ID */ + public static final String COLUMNNAME_AD_System_ID = "AD_System_ID"; + + /** Set System. + * System Definition + */ + public void setAD_System_ID (int AD_System_ID); + + /** Get System. + * System Definition + */ + public int getAD_System_ID(); + + /** Column name CustomPrefix */ + public static final String COLUMNNAME_CustomPrefix = "CustomPrefix"; + + /** Set Custom Prefix. + * Prefix for Custom entities + */ + public void setCustomPrefix (String CustomPrefix); + + /** Get Custom Prefix. + * Prefix for Custom entities + */ + public String getCustomPrefix(); + + /** Column name DBAddress */ + public static final String COLUMNNAME_DBAddress = "DBAddress"; + + /** Set DB Address. + * JDBC URL of the database server + */ + public void setDBAddress (String DBAddress); + + /** Get DB Address. + * JDBC URL of the database server + */ + public String getDBAddress(); + + /** Column name DBInstance */ + public static final String COLUMNNAME_DBInstance = "DBInstance"; + + /** Set Database Name. + * Database Name + */ + public void setDBInstance (String DBInstance); + + /** Get Database Name. + * Database Name + */ + public String getDBInstance(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EncryptionKey */ + public static final String COLUMNNAME_EncryptionKey = "EncryptionKey"; + + /** Set Encryption Class. + * Encryption Class used for securing data content + */ + public void setEncryptionKey (String EncryptionKey); + + /** Get Encryption Class. + * Encryption Class used for securing data content + */ + public String getEncryptionKey(); + + /** Column name IDRangeEnd */ + public static final String COLUMNNAME_IDRangeEnd = "IDRangeEnd"; + + /** Set ID Range End. + * End if the ID Range used + */ + public void setIDRangeEnd (BigDecimal IDRangeEnd); + + /** Get ID Range End. + * End if the ID Range used + */ + public BigDecimal getIDRangeEnd(); + + /** Column name IDRangeStart */ + public static final String COLUMNNAME_IDRangeStart = "IDRangeStart"; + + /** Set ID Range Start. + * Start of the ID Range used + */ + public void setIDRangeStart (BigDecimal IDRangeStart); + + /** Get ID Range Start. + * Start of the ID Range used + */ + public BigDecimal getIDRangeStart(); + + /** Column name Info */ + public static final String COLUMNNAME_Info = "Info"; + + /** Set Info. + * Information + */ + public void setInfo (String Info); + + /** Get Info. + * Information + */ + public String getInfo(); + + /** Column name IsAllowStatistics */ + public static final String COLUMNNAME_IsAllowStatistics = "IsAllowStatistics"; + + /** Set Maintain Statistics. + * Maintain general statistics + */ + public void setIsAllowStatistics (boolean IsAllowStatistics); + + /** Get Maintain Statistics. + * Maintain general statistics + */ + public boolean isAllowStatistics(); + + /** Column name IsAutoErrorReport */ + public static final String COLUMNNAME_IsAutoErrorReport = "IsAutoErrorReport"; + + /** Set Error Reporting. + * Automatically report Errors + */ + public void setIsAutoErrorReport (boolean IsAutoErrorReport); + + /** Get Error Reporting. + * Automatically report Errors + */ + public boolean isAutoErrorReport(); + + /** Column name IsJustMigrated */ + public static final String COLUMNNAME_IsJustMigrated = "IsJustMigrated"; + + /** Set Just Migrated. + * Value set by Migration for post-Migation tasks. + */ + public void setIsJustMigrated (boolean IsJustMigrated); + + /** Get Just Migrated. + * Value set by Migration for post-Migation tasks. + */ + public boolean isJustMigrated(); + + /** Column name LDAPDomain */ + public static final String COLUMNNAME_LDAPDomain = "LDAPDomain"; + + /** Set LDAP Domain. + * Directory service domain name - e.g. adempiere.org + */ + public void setLDAPDomain (String LDAPDomain); + + /** Get LDAP Domain. + * Directory service domain name - e.g. adempiere.org + */ + public String getLDAPDomain(); + + /** Column name LDAPHost */ + public static final String COLUMNNAME_LDAPHost = "LDAPHost"; + + /** Set LDAP URL. + * Connection String to LDAP server starting with ldap:// + */ + public void setLDAPHost (String LDAPHost); + + /** Get LDAP URL. + * Connection String to LDAP server starting with ldap:// + */ + public String getLDAPHost(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name NoProcessors */ + public static final String COLUMNNAME_NoProcessors = "NoProcessors"; + + /** Set Processors. + * Number of Database Processors + */ + public void setNoProcessors (int NoProcessors); + + /** Get Processors. + * Number of Database Processors + */ + public int getNoProcessors(); + + /** Column name OldName */ + public static final String COLUMNNAME_OldName = "OldName"; + + /** Set Old Name */ + public void setOldName (String OldName); + + /** Get Old Name */ + public String getOldName(); + + /** Column name Password */ + public static final String COLUMNNAME_Password = "Password"; + + /** Set Password. + * Password of any length (case sensitive) + */ + public void setPassword (String Password); + + /** Get Password. + * Password of any length (case sensitive) + */ + public String getPassword(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProfileInfo */ + public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; + + /** Set Profile. + * Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo); + + /** Get Profile. + * Information to help profiling the system for solving support issues + */ + public String getProfileInfo(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name ReplicationType */ + public static final String COLUMNNAME_ReplicationType = "ReplicationType"; + + /** Set Replication Type. + * Type of Data Replication + */ + public void setReplicationType (String ReplicationType); + + /** Get Replication Type. + * Type of Data Replication + */ + public String getReplicationType(); + + /** Column name StatisticsInfo */ + public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; + + /** Set Statistics. + * Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo); + + /** Get Statistics. + * Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name SupportEMail */ + public static final String COLUMNNAME_SupportEMail = "SupportEMail"; + + /** Set Support EMail. + * EMail address to send support information and updates to + */ + public void setSupportEMail (String SupportEMail); + + /** Get Support EMail. + * EMail address to send support information and updates to + */ + public String getSupportEMail(); + + /** Column name SupportExpDate */ + public static final String COLUMNNAME_SupportExpDate = "SupportExpDate"; + + /** Set Support Expires. + * Date when the Adempiere support expires + */ + public void setSupportExpDate (Timestamp SupportExpDate); + + /** Get Support Expires. + * Date when the Adempiere support expires + */ + public Timestamp getSupportExpDate(); + + /** Column name SupportUnits */ + public static final String COLUMNNAME_SupportUnits = "SupportUnits"; + + /** Set Internal Users. + * Number of Internal Users for Adempiere Support + */ + public void setSupportUnits (int SupportUnits); + + /** Get Internal Users. + * Number of Internal Users for Adempiere Support + */ + public int getSupportUnits(); + + /** Column name SystemStatus */ + public static final String COLUMNNAME_SystemStatus = "SystemStatus"; + + /** Set System Status. + * Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus); + + /** Get System Status. + * Status of the system - Support priority depends on system status + */ + public String getSystemStatus(); + + /** Column name UserName */ + public static final String COLUMNNAME_UserName = "UserName"; + + /** Set Registered EMail. + * Email of the responsible for the System + */ + public void setUserName (String UserName); + + /** Get Registered EMail. + * Email of the responsible for the System + */ + public String getUserName(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (String Version); + + /** Get Version. + * Version of the table definition + */ + public String getVersion(); +} diff --git a/base/src/org/compiere/model/I_AD_Tab.java b/base/src/org/compiere/model/I_AD_Tab.java new file mode 100644 index 0000000000..994a8771ae --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Tab.java @@ -0,0 +1,460 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Tab + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.281 + */ + public interface I_AD_Tab +{ + + /** TableName=AD_Tab */ + public static final String Table_Name = "AD_Tab"; + + /** AD_Table_ID=106 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_ColumnSortOrder_ID */ + public static final String COLUMNNAME_AD_ColumnSortOrder_ID = "AD_ColumnSortOrder_ID"; + + /** Set Order Column. + * Column determining the order + */ + public void setAD_ColumnSortOrder_ID (int AD_ColumnSortOrder_ID); + + /** Get Order Column. + * Column determining the order + */ + public int getAD_ColumnSortOrder_ID(); + + /** Column name AD_ColumnSortYesNo_ID */ + public static final String COLUMNNAME_AD_ColumnSortYesNo_ID = "AD_ColumnSortYesNo_ID"; + + /** Set Included Column. + * Column determining if a Table Column is included in Ordering + */ + public void setAD_ColumnSortYesNo_ID (int AD_ColumnSortYesNo_ID); + + /** Get Included Column. + * Column determining if a Table Column is included in Ordering + */ + public int getAD_ColumnSortYesNo_ID(); + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + public I_AD_Image getI_AD_Image() throws Exception; + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Tab_ID */ + public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; + + /** Set Tab. + * Tab within a Window + */ + public void setAD_Tab_ID (int AD_Tab_ID); + + /** Get Tab. + * Tab within a Window + */ + public int getAD_Tab_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name CommitWarning */ + public static final String COLUMNNAME_CommitWarning = "CommitWarning"; + + /** Set Commit Warning. + * Warning displayed when saving + */ + public void setCommitWarning (String CommitWarning); + + /** Get Commit Warning. + * Warning displayed when saving + */ + public String getCommitWarning(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DisplayLogic */ + public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; + + /** Set Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic); + + /** Get Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name HasTree */ + public static final String COLUMNNAME_HasTree = "HasTree"; + + /** Set Has Tree. + * Window has Tree Graph + */ + public void setHasTree (boolean HasTree); + + /** Get Has Tree. + * Window has Tree Graph + */ + public boolean isHasTree(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ImportFields */ + public static final String COLUMNNAME_ImportFields = "ImportFields"; + + /** Set Import Fields. + * Create Fields from Table Columns + */ + public void setImportFields (String ImportFields); + + /** Get Import Fields. + * Create Fields from Table Columns + */ + public String getImportFields(); + + /** Column name Included_Tab_ID */ + public static final String COLUMNNAME_Included_Tab_ID = "Included_Tab_ID"; + + /** Set Included Tab. + * Included Tab in this Tab (Master Dateail) + */ + public void setIncluded_Tab_ID (int Included_Tab_ID); + + /** Get Included Tab. + * Included Tab in this Tab (Master Dateail) + */ + public int getIncluded_Tab_ID(); + + /** Column name IsAdvancedTab */ + public static final String COLUMNNAME_IsAdvancedTab = "IsAdvancedTab"; + + /** Set Advanced Tab. + * This Tab contains advanced Functionality + */ + public void setIsAdvancedTab (boolean IsAdvancedTab); + + /** Get Advanced Tab. + * This Tab contains advanced Functionality + */ + public boolean isAdvancedTab(); + + /** Column name IsInfoTab */ + public static final String COLUMNNAME_IsInfoTab = "IsInfoTab"; + + /** Set Accounting Tab. + * This Tab contains accounting information + */ + public void setIsInfoTab (boolean IsInfoTab); + + /** Get Accounting Tab. + * This Tab contains accounting information + */ + public boolean isInfoTab(); + + /** Column name IsInsertRecord */ + public static final String COLUMNNAME_IsInsertRecord = "IsInsertRecord"; + + /** Set Insert Record. + * The user can insert a new Record + */ + public void setIsInsertRecord (boolean IsInsertRecord); + + /** Get Insert Record. + * The user can insert a new Record + */ + public boolean isInsertRecord(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsSingleRow */ + public static final String COLUMNNAME_IsSingleRow = "IsSingleRow"; + + /** Set Single Row Layout. + * Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public void setIsSingleRow (boolean IsSingleRow); + + /** Get Single Row Layout. + * Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public boolean isSingleRow(); + + /** Column name IsSortTab */ + public static final String COLUMNNAME_IsSortTab = "IsSortTab"; + + /** Set Order Tab. + * The Tab determines the Order + */ + public void setIsSortTab (boolean IsSortTab); + + /** Get Order Tab. + * The Tab determines the Order + */ + public boolean isSortTab(); + + /** Column name IsTranslationTab */ + public static final String COLUMNNAME_IsTranslationTab = "IsTranslationTab"; + + /** Set TranslationTab. + * This Tab contains translation information + */ + public void setIsTranslationTab (boolean IsTranslationTab); + + /** Get TranslationTab. + * This Tab contains translation information + */ + public boolean isTranslationTab(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OrderByClause */ + public static final String COLUMNNAME_OrderByClause = "OrderByClause"; + + /** Set Sql ORDER BY. + * Fully qualified ORDER BY clause + */ + public void setOrderByClause (String OrderByClause); + + /** Get Sql ORDER BY. + * Fully qualified ORDER BY clause + */ + public String getOrderByClause(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReadOnlyLogic */ + public static final String COLUMNNAME_ReadOnlyLogic = "ReadOnlyLogic"; + + /** Set Read Only Logic. + * Logic to determine if field is read only (applies only when field is read-write) + */ + public void setReadOnlyLogic (String ReadOnlyLogic); + + /** Get Read Only Logic. + * Logic to determine if field is read only (applies only when field is read-write) + */ + public String getReadOnlyLogic(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name TabLevel */ + public static final String COLUMNNAME_TabLevel = "TabLevel"; + + /** Set Tab Level. + * Hierarchical Tab Level (0 = top) + */ + public void setTabLevel (int TabLevel); + + /** Get Tab Level. + * Hierarchical Tab Level (0 = top) + */ + public int getTabLevel(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_AD_Table.java b/base/src/org/compiere/model/I_AD_Table.java new file mode 100644 index 0000000000..bdba0eccce --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Table.java @@ -0,0 +1,305 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Table + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.39 + */ + public interface I_AD_Table +{ + + /** TableName=AD_Table */ + public static final String Table_Name = "AD_Table"; + + /** AD_Table_ID=100 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name AD_Val_Rule_ID */ + public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; + + /** Set Dynamic Validation. + * Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID); + + /** Get Dynamic Validation. + * Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID(); + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + + /** Column name CopyColumnsFromTable */ + public static final String COLUMNNAME_CopyColumnsFromTable = "CopyColumnsFromTable"; + + /** Set Copy Columns From Table */ + public void setCopyColumnsFromTable (String CopyColumnsFromTable); + + /** Get Copy Columns From Table */ + public String getCopyColumnsFromTable(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ImportTable */ + public static final String COLUMNNAME_ImportTable = "ImportTable"; + + /** Set Import Table. + * Import Table Columns from Database + */ + public void setImportTable (String ImportTable); + + /** Get Import Table. + * Import Table Columns from Database + */ + public String getImportTable(); + + /** Column name IsChangeLog */ + public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; + + /** Set Maintain Change Log. + * Maintain a log of changes + */ + public void setIsChangeLog (boolean IsChangeLog); + + /** Get Maintain Change Log. + * Maintain a log of changes + */ + public boolean isChangeLog(); + + /** Column name IsDeleteable */ + public static final String COLUMNNAME_IsDeleteable = "IsDeleteable"; + + /** Set Records deleteable. + * Indicates if records can be deleted from the database + */ + public void setIsDeleteable (boolean IsDeleteable); + + /** Get Records deleteable. + * Indicates if records can be deleted from the database + */ + public boolean isDeleteable(); + + /** Column name IsHighVolume */ + public static final String COLUMNNAME_IsHighVolume = "IsHighVolume"; + + /** Set High Volume. + * Use Search instead of Pick list + */ + public void setIsHighVolume (boolean IsHighVolume); + + /** Get High Volume. + * Use Search instead of Pick list + */ + public boolean isHighVolume(); + + /** Column name IsSecurityEnabled */ + public static final String COLUMNNAME_IsSecurityEnabled = "IsSecurityEnabled"; + + /** Set Security enabled. + * If security is enabled, user access to data can be restricted via Roles + */ + public void setIsSecurityEnabled (boolean IsSecurityEnabled); + + /** Get Security enabled. + * If security is enabled, user access to data can be restricted via Roles + */ + public boolean isSecurityEnabled(); + + /** Column name IsView */ + public static final String COLUMNNAME_IsView = "IsView"; + + /** Set View. + * This is a view + */ + public void setIsView (boolean IsView); + + /** Get View. + * This is a view + */ + public boolean isView(); + + /** Column name LoadSeq */ + public static final String COLUMNNAME_LoadSeq = "LoadSeq"; + + /** Set Sequence */ + public void setLoadSeq (int LoadSeq); + + /** Get Sequence */ + public int getLoadSeq(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PO_Window_ID */ + public static final String COLUMNNAME_PO_Window_ID = "PO_Window_ID"; + + /** Set PO Window. + * Purchase Order Window + */ + public void setPO_Window_ID (int PO_Window_ID); + + /** Get PO Window. + * Purchase Order Window + */ + public int getPO_Window_ID(); + + /** Column name ReplicationType */ + public static final String COLUMNNAME_ReplicationType = "ReplicationType"; + + /** Set Replication Type. + * Type of Data Replication + */ + public void setReplicationType (String ReplicationType); + + /** Get Replication Type. + * Type of Data Replication + */ + public String getReplicationType(); + + /** Column name TableName */ + public static final String COLUMNNAME_TableName = "TableName"; + + /** Set DB Table Name. + * Name of the table in the database + */ + public void setTableName (String TableName); + + /** Get DB Table Name. + * Name of the table in the database + */ + public String getTableName(); +} diff --git a/base/src/org/compiere/model/I_AD_Table_Access.java b/base/src/org/compiere/model/I_AD_Table_Access.java new file mode 100644 index 0000000000..11a35b1914 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Table_Access.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Table_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.562 + */ + public interface I_AD_Table_Access +{ + + /** TableName=AD_Table_Access */ + public static final String Table_Name = "AD_Table_Access"; + + /** AD_Table_ID=565 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AccessTypeRule */ + public static final String COLUMNNAME_AccessTypeRule = "AccessTypeRule"; + + /** Set Access Type. + * The type of access for this rule + */ + public void setAccessTypeRule (String AccessTypeRule); + + /** Get Access Type. + * The type of access for this rule + */ + public String getAccessTypeRule(); + + /** Column name IsCanExport */ + public static final String COLUMNNAME_IsCanExport = "IsCanExport"; + + /** Set Can Export. + * Users with this role can export data + */ + public void setIsCanExport (boolean IsCanExport); + + /** Get Can Export. + * Users with this role can export data + */ + public boolean isCanExport(); + + /** Column name IsCanReport */ + public static final String COLUMNNAME_IsCanReport = "IsCanReport"; + + /** Set Can Report. + * Users with this role can create reports + */ + public void setIsCanReport (boolean IsCanReport); + + /** Get Can Report. + * Users with this role can create reports + */ + public boolean isCanReport(); + + /** Column name IsExclude */ + public static final String COLUMNNAME_IsExclude = "IsExclude"; + + /** Set Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude); + + /** Get Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); +} diff --git a/base/src/org/compiere/model/I_AD_Task.java b/base/src/org/compiere/model/I_AD_Task.java new file mode 100644 index 0000000000..91750bb0d5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Task.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Task + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.578 + */ + public interface I_AD_Task +{ + + /** TableName=AD_Task */ + public static final String Table_Name = "AD_Task"; + + /** AD_Table_ID=118 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); + + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsServerProcess */ + public static final String COLUMNNAME_IsServerProcess = "IsServerProcess"; + + /** Set Server Process. + * Run this Process on Server only + */ + public void setIsServerProcess (boolean IsServerProcess); + + /** Get Server Process. + * Run this Process on Server only + */ + public boolean isServerProcess(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OS_Command */ + public static final String COLUMNNAME_OS_Command = "OS_Command"; + + /** Set OS Command. + * Operating System Command + */ + public void setOS_Command (String OS_Command); + + /** Get OS Command. + * Operating System Command + */ + public String getOS_Command(); +} diff --git a/base/src/org/compiere/model/I_AD_TaskInstance.java b/base/src/org/compiere/model/I_AD_TaskInstance.java new file mode 100644 index 0000000000..850a27aad0 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TaskInstance.java @@ -0,0 +1,82 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TaskInstance + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.609 + */ + public interface I_AD_TaskInstance +{ + + /** TableName=AD_TaskInstance */ + public static final String Table_Name = "AD_TaskInstance"; + + /** AD_Table_ID=125 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_TaskInstance_ID */ + public static final String COLUMNNAME_AD_TaskInstance_ID = "AD_TaskInstance_ID"; + + /** Set Task Instance */ + public void setAD_TaskInstance_ID (int AD_TaskInstance_ID); + + /** Get Task Instance */ + public int getAD_TaskInstance_ID(); + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_Task_Access.java b/base/src/org/compiere/model/I_AD_Task_Access.java new file mode 100644 index 0000000000..5977e81107 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Task_Access.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Task_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.656 + */ + public interface I_AD_Task_Access +{ + + /** TableName=AD_Task_Access */ + public static final String Table_Name = "AD_Task_Access"; + + /** AD_Table_ID=199 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); + + public I_AD_Task getI_AD_Task() throws Exception; + + /** Column name IsReadWrite */ + public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; + + /** Set Read Write. + * Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite); + + /** Get Read Write. + * Field is read / write + */ + public boolean isReadWrite(); +} diff --git a/base/src/org/compiere/model/I_AD_Tree.java b/base/src/org/compiere/model/I_AD_Tree.java new file mode 100644 index 0000000000..c232e2460f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Tree.java @@ -0,0 +1,147 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Tree + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.937 + */ + public interface I_AD_Tree +{ + + /** TableName=AD_Tree */ + public static final String Table_Name = "AD_Tree"; + + /** AD_Table_ID=288 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsAllNodes */ + public static final String COLUMNNAME_IsAllNodes = "IsAllNodes"; + + /** Set All Nodes. + * All Nodes are included (Complete Tree) + */ + public void setIsAllNodes (boolean IsAllNodes); + + /** Get All Nodes. + * All Nodes are included (Complete Tree) + */ + public boolean isAllNodes(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TreeType */ + public static final String COLUMNNAME_TreeType = "TreeType"; + + /** Set Type | Area. + * Element this tree is built on (i.e Product, Business Partner) + */ + public void setTreeType (String TreeType); + + /** Get Type | Area. + * Element this tree is built on (i.e Product, Business Partner) + */ + public String getTreeType(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeBar.java b/base/src/org/compiere/model/I_AD_TreeBar.java new file mode 100644 index 0000000000..7786e51278 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeBar.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeBar + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:28.984 + */ + public interface I_AD_TreeBar +{ + + /** TableName=AD_TreeBar */ + public static final String Table_Name = "AD_TreeBar"; + + /** AD_Table_ID=456 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNode.java b/base/src/org/compiere/model/I_AD_TreeNode.java new file mode 100644 index 0000000000..da6d5b8a0a --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNode.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNode + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.031 + */ + public interface I_AD_TreeNode +{ + + /** TableName=AD_TreeNode */ + public static final String Table_Name = "AD_TreeNode"; + + /** AD_Table_ID=289 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeBP.java b/base/src/org/compiere/model/I_AD_TreeNodeBP.java new file mode 100644 index 0000000000..1348213938 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeBP.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeBP + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.125 + */ + public interface I_AD_TreeNodeBP +{ + + /** TableName=AD_TreeNodeBP */ + public static final String Table_Name = "AD_TreeNodeBP"; + + /** AD_Table_ID=451 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeCMC.java b/base/src/org/compiere/model/I_AD_TreeNodeCMC.java new file mode 100644 index 0000000000..526a00643b --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeCMC.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeCMC + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.171 + */ + public interface I_AD_TreeNodeCMC +{ + + /** TableName=AD_TreeNodeCMC */ + public static final String Table_Name = "AD_TreeNodeCMC"; + + /** AD_Table_ID=845 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeCMM.java b/base/src/org/compiere/model/I_AD_TreeNodeCMM.java new file mode 100644 index 0000000000..151a05b66a --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeCMM.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeCMM + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.25 + */ + public interface I_AD_TreeNodeCMM +{ + + /** TableName=AD_TreeNodeCMM */ + public static final String Table_Name = "AD_TreeNodeCMM"; + + /** AD_Table_ID=846 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeCMS.java b/base/src/org/compiere/model/I_AD_TreeNodeCMS.java new file mode 100644 index 0000000000..67dbbc32fd --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeCMS.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeCMS + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.281 + */ + public interface I_AD_TreeNodeCMS +{ + + /** TableName=AD_TreeNodeCMS */ + public static final String Table_Name = "AD_TreeNodeCMS"; + + /** AD_Table_ID=847 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeCMT.java b/base/src/org/compiere/model/I_AD_TreeNodeCMT.java new file mode 100644 index 0000000000..1bb4c0a75f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeCMT.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeCMT + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.343 + */ + public interface I_AD_TreeNodeCMT +{ + + /** TableName=AD_TreeNodeCMT */ + public static final String Table_Name = "AD_TreeNodeCMT"; + + /** AD_Table_ID=848 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeMM.java b/base/src/org/compiere/model/I_AD_TreeNodeMM.java new file mode 100644 index 0000000000..3daf599337 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeMM.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeMM + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.359 + */ + public interface I_AD_TreeNodeMM +{ + + /** TableName=AD_TreeNodeMM */ + public static final String Table_Name = "AD_TreeNodeMM"; + + /** AD_Table_ID=452 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodePR.java b/base/src/org/compiere/model/I_AD_TreeNodePR.java new file mode 100644 index 0000000000..1c790a342a --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodePR.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodePR + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.406 + */ + public interface I_AD_TreeNodePR +{ + + /** TableName=AD_TreeNodePR */ + public static final String Table_Name = "AD_TreeNodePR"; + + /** AD_Table_ID=453 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeU1.java b/base/src/org/compiere/model/I_AD_TreeNodeU1.java new file mode 100644 index 0000000000..d576bbc101 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeU1.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeU1 + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.421 + */ + public interface I_AD_TreeNodeU1 +{ + + /** TableName=AD_TreeNodeU1 */ + public static final String Table_Name = "AD_TreeNodeU1"; + + /** AD_Table_ID=852 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeU2.java b/base/src/org/compiere/model/I_AD_TreeNodeU2.java new file mode 100644 index 0000000000..da32a34004 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeU2.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeU2 + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.468 + */ + public interface I_AD_TreeNodeU2 +{ + + /** TableName=AD_TreeNodeU2 */ + public static final String Table_Name = "AD_TreeNodeU2"; + + /** AD_Table_ID=851 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeU3.java b/base/src/org/compiere/model/I_AD_TreeNodeU3.java new file mode 100644 index 0000000000..3552317730 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeU3.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeU3 + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.531 + */ + public interface I_AD_TreeNodeU3 +{ + + /** TableName=AD_TreeNodeU3 */ + public static final String Table_Name = "AD_TreeNodeU3"; + + /** AD_Table_ID=850 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_TreeNodeU4.java b/base/src/org/compiere/model/I_AD_TreeNodeU4.java new file mode 100644 index 0000000000..2984f96417 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_TreeNodeU4.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_TreeNodeU4 + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.593 + */ + public interface I_AD_TreeNodeU4 +{ + + /** TableName=AD_TreeNodeU4 */ + public static final String Table_Name = "AD_TreeNodeU4"; + + /** AD_Table_ID=849 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name Node_ID */ + public static final String COLUMNNAME_Node_ID = "Node_ID"; + + /** Set Node_ID */ + public void setNode_ID (int Node_ID); + + /** Get Node_ID */ + public int getNode_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_User.java b/base/src/org/compiere/model/I_AD_User.java new file mode 100644 index 0000000000..e5f2f3e05c --- /dev/null +++ b/base/src/org/compiere/model/I_AD_User.java @@ -0,0 +1,439 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_User + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:29.625 + */ + public interface I_AD_User +{ + + /** TableName=AD_User */ + public static final String Table_Name = "AD_User"; + + /** AD_Table_ID=114 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name Birthday */ + public static final String COLUMNNAME_Birthday = "Birthday"; + + /** Set Birthday. + * Birthday or Anniversary day + */ + public void setBirthday (Timestamp Birthday); + + /** Get Birthday. + * Birthday or Anniversary day + */ + public Timestamp getBirthday(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Greeting_ID */ + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + + /** Set Greeting. + * Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID); + + /** Get Greeting. + * Greeting to print on correspondence + */ + public int getC_Greeting_ID(); + + public I_C_Greeting getI_C_Greeting() throws Exception; + + /** Column name C_Job_ID */ + public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; + + /** Set Position. + * Job Position + */ + public void setC_Job_ID (int C_Job_ID); + + /** Get Position. + * Job Position + */ + public int getC_Job_ID(); + + public I_C_Job getI_C_Job() throws Exception; + + /** Column name Comments */ + public static final String COLUMNNAME_Comments = "Comments"; + + /** Set Comments. + * Comments or additional information + */ + public void setComments (String Comments); + + /** Get Comments. + * Comments or additional information + */ + public String getComments(); + + /** Column name ConnectionProfile */ + public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; + + /** Set Connection Profile. + * How a Java Client connects to the server(s) + */ + public void setConnectionProfile (String ConnectionProfile); + + /** Get Connection Profile. + * How a Java Client connects to the server(s) + */ + public String getConnectionProfile(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name EMailUser */ + public static final String COLUMNNAME_EMailUser = "EMailUser"; + + /** Set EMail User ID. + * User Name (ID) in the Mail System + */ + public void setEMailUser (String EMailUser); + + /** Get EMail User ID. + * User Name (ID) in the Mail System + */ + public String getEMailUser(); + + /** Column name EMailUserPW */ + public static final String COLUMNNAME_EMailUserPW = "EMailUserPW"; + + /** Set EMail User Password. + * Password of your email user id + */ + public void setEMailUserPW (String EMailUserPW); + + /** Get EMail User Password. + * Password of your email user id + */ + public String getEMailUserPW(); + + /** Column name EMailVerify */ + public static final String COLUMNNAME_EMailVerify = "EMailVerify"; + + /** Set Verification Info. + * Verification information of EMail Address + */ + public void setEMailVerify (String EMailVerify); + + /** Get Verification Info. + * Verification information of EMail Address + */ + public String getEMailVerify(); + + /** Column name EMailVerifyDate */ + public static final String COLUMNNAME_EMailVerifyDate = "EMailVerifyDate"; + + /** Set EMail Verify. + * Date Email was verified + */ + public void setEMailVerifyDate (Timestamp EMailVerifyDate); + + /** Get EMail Verify. + * Date Email was verified + */ + public Timestamp getEMailVerifyDate(); + + /** Column name Fax */ + public static final String COLUMNNAME_Fax = "Fax"; + + /** Set Fax. + * Facsimile number + */ + public void setFax (String Fax); + + /** Get Fax. + * Facsimile number + */ + public String getFax(); + + /** Column name IsFullBPAccess */ + public static final String COLUMNNAME_IsFullBPAccess = "IsFullBPAccess"; + + /** Set Full BP Access. + * The user/concat has full access to Business Partner information and resources + */ + public void setIsFullBPAccess (boolean IsFullBPAccess); + + /** Get Full BP Access. + * The user/concat has full access to Business Partner information and resources + */ + public boolean isFullBPAccess(); + + /** Column name LDAPUser */ + public static final String COLUMNNAME_LDAPUser = "LDAPUser"; + + /** Set LDAP User Name. + * User Name used for authorization via LDAP (directory) services + */ + public void setLDAPUser (String LDAPUser); + + /** Get LDAP User Name. + * User Name used for authorization via LDAP (directory) services + */ + public String getLDAPUser(); + + /** Column name LastContact */ + public static final String COLUMNNAME_LastContact = "LastContact"; + + /** Set Last Contact. + * Date this individual was last contacted + */ + public void setLastContact (Timestamp LastContact); + + /** Get Last Contact. + * Date this individual was last contacted + */ + public Timestamp getLastContact(); + + /** Column name LastResult */ + public static final String COLUMNNAME_LastResult = "LastResult"; + + /** Set Last Result. + * Result of last contact + */ + public void setLastResult (String LastResult); + + /** Get Last Result. + * Result of last contact + */ + public String getLastResult(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name NotificationType */ + public static final String COLUMNNAME_NotificationType = "NotificationType"; + + /** Set Notification Type. + * Type of Notifications + */ + public void setNotificationType (String NotificationType); + + /** Get Notification Type. + * Type of Notifications + */ + public String getNotificationType(); + + /** Column name Password */ + public static final String COLUMNNAME_Password = "Password"; + + /** Set Password. + * Password of any length (case sensitive) + */ + public void setPassword (String Password); + + /** Get Password. + * Password of any length (case sensitive) + */ + public String getPassword(); + + /** Column name Phone */ + public static final String COLUMNNAME_Phone = "Phone"; + + /** Set Phone. + * Identifies a telephone number + */ + public void setPhone (String Phone); + + /** Get Phone. + * Identifies a telephone number + */ + public String getPhone(); + + /** Column name Phone2 */ + public static final String COLUMNNAME_Phone2 = "Phone2"; + + /** Set 2nd Phone. + * Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2); + + /** Get 2nd Phone. + * Identifies an alternate telephone number. + */ + public String getPhone2(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_AD_UserBPAccess.java b/base/src/org/compiere/model/I_AD_UserBPAccess.java new file mode 100644 index 0000000000..d80ed573f4 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_UserBPAccess.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_UserBPAccess + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.078 + */ + public interface I_AD_UserBPAccess +{ + + /** TableName=AD_UserBPAccess */ + public static final String Table_Name = "AD_UserBPAccess"; + + /** AD_Table_ID=813 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_UserBPAccess_ID */ + public static final String COLUMNNAME_AD_UserBPAccess_ID = "AD_UserBPAccess_ID"; + + /** Set User BP Access. + * User/concat access to Business Partner information and resources + */ + public void setAD_UserBPAccess_ID (int AD_UserBPAccess_ID); + + /** Get User BP Access. + * User/concat access to Business Partner information and resources + */ + public int getAD_UserBPAccess_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name BPAccessType */ + public static final String COLUMNNAME_BPAccessType = "BPAccessType"; + + /** Set Access Type. + * Type of Access of the user/contact to Business Partner information and resources + */ + public void setBPAccessType (String BPAccessType); + + /** Get Access Type. + * Type of Access of the user/contact to Business Partner information and resources + */ + public String getBPAccessType(); + + /** Column name DocBaseType */ + public static final String COLUMNNAME_DocBaseType = "DocBaseType"; + + /** Set Document BaseType. + * Logical type of document + */ + public void setDocBaseType (String DocBaseType); + + /** Get Document BaseType. + * Logical type of document + */ + public String getDocBaseType(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; +} diff --git a/base/src/org/compiere/model/I_AD_UserDef_Field.java b/base/src/org/compiere/model/I_AD_UserDef_Field.java new file mode 100644 index 0000000000..89c2ca2f23 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_UserDef_Field.java @@ -0,0 +1,255 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_UserDef_Field + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.171 + */ + public interface I_AD_UserDef_Field +{ + + /** TableName=AD_UserDef_Field */ + public static final String Table_Name = "AD_UserDef_Field"; + + /** AD_Table_ID=464 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Field_ID */ + public static final String COLUMNNAME_AD_Field_ID = "AD_Field_ID"; + + /** Set Field. + * Field on a database table + */ + public void setAD_Field_ID (int AD_Field_ID); + + /** Get Field. + * Field on a database table + */ + public int getAD_Field_ID(); + + public I_AD_Field getI_AD_Field() throws Exception; + + /** Column name AD_UserDef_Field_ID */ + public static final String COLUMNNAME_AD_UserDef_Field_ID = "AD_UserDef_Field_ID"; + + /** Set User defined Field */ + public void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID); + + /** Get User defined Field */ + public int getAD_UserDef_Field_ID(); + + /** Column name AD_UserDef_Tab_ID */ + public static final String COLUMNNAME_AD_UserDef_Tab_ID = "AD_UserDef_Tab_ID"; + + /** Set User defined Tab */ + public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID); + + /** Get User defined Tab */ + public int getAD_UserDef_Tab_ID(); + + public I_AD_UserDef_Tab getI_AD_UserDef_Tab() throws Exception; + + /** Column name DefaultValue */ + public static final String COLUMNNAME_DefaultValue = "DefaultValue"; + + /** Set Default Logic. + * Default value hierarchy, separated by ; + + */ + public void setDefaultValue (String DefaultValue); + + /** Get Default Logic. + * Default value hierarchy, separated by ; + + */ + public String getDefaultValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DisplayLength */ + public static final String COLUMNNAME_DisplayLength = "DisplayLength"; + + /** Set Display Length. + * Length of the display in characters + */ + public void setDisplayLength (int DisplayLength); + + /** Get Display Length. + * Length of the display in characters + */ + public int getDisplayLength(); + + /** Column name DisplayLogic */ + public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; + + /** Set Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic); + + /** Get Display Logic. + * If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDisplayed */ + public static final String COLUMNNAME_IsDisplayed = "IsDisplayed"; + + /** Set Displayed. + * Determines, if this field is displayed + */ + public void setIsDisplayed (boolean IsDisplayed); + + /** Get Displayed. + * Determines, if this field is displayed + */ + public boolean isDisplayed(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsSameLine */ + public static final String COLUMNNAME_IsSameLine = "IsSameLine"; + + /** Set Same Line. + * Displayed on same line as previous field + */ + public void setIsSameLine (boolean IsSameLine); + + /** Get Same Line. + * Displayed on same line as previous field + */ + public boolean isSameLine(); + + /** Column name IsUpdateable */ + public static final String COLUMNNAME_IsUpdateable = "IsUpdateable"; + + /** Set Updateable. + * Determines, if the field can be updated + */ + public void setIsUpdateable (boolean IsUpdateable); + + /** Get Updateable. + * Determines, if the field can be updated + */ + public boolean isUpdateable(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name SortNo */ + public static final String COLUMNNAME_SortNo = "SortNo"; + + /** Set Record Sort No. + * Determines in what order the records are displayed + */ + public void setSortNo (int SortNo); + + /** Get Record Sort No. + * Determines in what order the records are displayed + */ + public int getSortNo(); +} diff --git a/base/src/org/compiere/model/I_AD_UserDef_Tab.java b/base/src/org/compiere/model/I_AD_UserDef_Tab.java new file mode 100644 index 0000000000..028c3052d3 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_UserDef_Tab.java @@ -0,0 +1,173 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_UserDef_Tab + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.218 + */ + public interface I_AD_UserDef_Tab +{ + + /** TableName=AD_UserDef_Tab */ + public static final String Table_Name = "AD_UserDef_Tab"; + + /** AD_Table_ID=466 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Tab_ID */ + public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; + + /** Set Tab. + * Tab within a Window + */ + public void setAD_Tab_ID (int AD_Tab_ID); + + /** Get Tab. + * Tab within a Window + */ + public int getAD_Tab_ID(); + + public I_AD_Tab getI_AD_Tab() throws Exception; + + /** Column name AD_UserDef_Tab_ID */ + public static final String COLUMNNAME_AD_UserDef_Tab_ID = "AD_UserDef_Tab_ID"; + + /** Set User defined Tab */ + public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID); + + /** Get User defined Tab */ + public int getAD_UserDef_Tab_ID(); + + /** Column name AD_UserDef_Win_ID */ + public static final String COLUMNNAME_AD_UserDef_Win_ID = "AD_UserDef_Win_ID"; + + /** Set User defined Window */ + public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID); + + /** Get User defined Window */ + public int getAD_UserDef_Win_ID(); + + public I_AD_UserDef_Win getI_AD_UserDef_Win() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsMultiRowOnly */ + public static final String COLUMNNAME_IsMultiRowOnly = "IsMultiRowOnly"; + + /** Set Multi Row Only. + * This applies to Multi-Row view only + */ + public void setIsMultiRowOnly (boolean IsMultiRowOnly); + + /** Get Multi Row Only. + * This applies to Multi-Row view only + */ + public boolean isMultiRowOnly(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsSingleRow */ + public static final String COLUMNNAME_IsSingleRow = "IsSingleRow"; + + /** Set Single Row Layout. + * Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public void setIsSingleRow (boolean IsSingleRow); + + /** Get Single Row Layout. + * Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public boolean isSingleRow(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_UserDef_Win.java b/base/src/org/compiere/model/I_AD_UserDef_Win.java new file mode 100644 index 0000000000..33d0603277 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_UserDef_Win.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_UserDef_Win + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.265 + */ + public interface I_AD_UserDef_Win +{ + + /** TableName=AD_UserDef_Win */ + public static final String Table_Name = "AD_UserDef_Win"; + + /** AD_Table_ID=467 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_UserDef_Win_ID */ + public static final String COLUMNNAME_AD_UserDef_Win_ID = "AD_UserDef_Win_ID"; + + /** Set User defined Window */ + public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID); + + /** Get User defined Window */ + public int getAD_UserDef_Win_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); + + /** Column name IsUserUpdateable */ + public static final String COLUMNNAME_IsUserUpdateable = "IsUserUpdateable"; + + /** Set User updateable. + * The field can be updated by the user + */ + public void setIsUserUpdateable (boolean IsUserUpdateable); + + /** Get User updateable. + * The field can be updated by the user + */ + public boolean isUserUpdateable(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_UserMail.java b/base/src/org/compiere/model/I_AD_UserMail.java new file mode 100644 index 0000000000..c8b53f243a --- /dev/null +++ b/base/src/org/compiere/model/I_AD_UserMail.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_UserMail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.312 + */ + public interface I_AD_UserMail +{ + + /** TableName=AD_UserMail */ + public static final String Table_Name = "AD_UserMail"; + + /** AD_Table_ID=782 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_UserMail_ID */ + public static final String COLUMNNAME_AD_UserMail_ID = "AD_UserMail_ID"; + + /** Set User Mail. + * Mail sent to the user + */ + public void setAD_UserMail_ID (int AD_UserMail_ID); + + /** Get User Mail. + * Mail sent to the user + */ + public int getAD_UserMail_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name DeliveryConfirmation */ + public static final String COLUMNNAME_DeliveryConfirmation = "DeliveryConfirmation"; + + /** Set Delivery Confirmation. + * EMail Delivery confirmation + */ + public void setDeliveryConfirmation (String DeliveryConfirmation); + + /** Get Delivery Confirmation. + * EMail Delivery confirmation + */ + public String getDeliveryConfirmation(); + + /** Column name IsDelivered */ + public static final String COLUMNNAME_IsDelivered = "IsDelivered"; + + /** Set Delivered */ + public void setIsDelivered (String IsDelivered); + + /** Get Delivered */ + public String getIsDelivered(); + + /** Column name MailText */ + public static final String COLUMNNAME_MailText = "MailText"; + + /** Set Mail Text. + * Text used for Mail message + */ + public void setMailText (String MailText); + + /** Get Mail Text. + * Text used for Mail message + */ + public String getMailText(); + + /** Column name MessageID */ + public static final String COLUMNNAME_MessageID = "MessageID"; + + /** Set Message ID. + * EMail Message ID + */ + public void setMessageID (String MessageID); + + /** Get Message ID. + * EMail Message ID + */ + public String getMessageID(); + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); + + public I_R_MailText getI_R_MailText() throws Exception; + + /** Column name Subject */ + public static final String COLUMNNAME_Subject = "Subject"; + + /** Set Subject. + * Email Message Subject + */ + public void setSubject (String Subject); + + /** Get Subject. + * Email Message Subject + */ + public String getSubject(); + + /** Column name W_MailMsg_ID */ + public static final String COLUMNNAME_W_MailMsg_ID = "W_MailMsg_ID"; + + /** Set Mail Message. + * Web Store Mail Message Template + */ + public void setW_MailMsg_ID (int W_MailMsg_ID); + + /** Get Mail Message. + * Web Store Mail Message Template + */ + public int getW_MailMsg_ID(); + + public I_W_MailMsg getI_W_MailMsg() throws Exception; +} diff --git a/base/src/org/compiere/model/I_AD_UserQuery.java b/base/src/org/compiere/model/I_AD_UserQuery.java new file mode 100644 index 0000000000..d0f1e7ffc6 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_UserQuery.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_UserQuery + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.39 + */ + public interface I_AD_UserQuery +{ + + /** TableName=AD_UserQuery */ + public static final String Table_Name = "AD_UserQuery"; + + /** AD_Table_ID=814 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_UserQuery_ID */ + public static final String COLUMNNAME_AD_UserQuery_ID = "AD_UserQuery_ID"; + + /** Set User Query. + * Saved User Query + */ + public void setAD_UserQuery_ID (int AD_UserQuery_ID); + + /** Get User Query. + * Saved User Query + */ + public int getAD_UserQuery_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name Code */ + public static final String COLUMNNAME_Code = "Code"; + + /** Set Validation code. + * Validation Code + */ + public void setCode (String Code); + + /** Get Validation code. + * Validation Code + */ + public String getCode(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_User_OrgAccess.java b/base/src/org/compiere/model/I_AD_User_OrgAccess.java new file mode 100644 index 0000000000..d66704da6d --- /dev/null +++ b/base/src/org/compiere/model/I_AD_User_OrgAccess.java @@ -0,0 +1,88 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_User_OrgAccess + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.406 + */ + public interface I_AD_User_OrgAccess +{ + + /** TableName=AD_User_OrgAccess */ + public static final String Table_Name = "AD_User_OrgAccess"; + + /** AD_Table_ID=769 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name IsReadOnly */ + public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; + + /** Set Read Only. + * Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly); + + /** Get Read Only. + * Field is read only + */ + public boolean isReadOnly(); +} diff --git a/base/src/org/compiere/model/I_AD_User_Roles.java b/base/src/org/compiere/model/I_AD_User_Roles.java new file mode 100644 index 0000000000..a63e4d169c --- /dev/null +++ b/base/src/org/compiere/model/I_AD_User_Roles.java @@ -0,0 +1,86 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_User_Roles + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.421 + */ + public interface I_AD_User_Roles +{ + + /** TableName=AD_User_Roles */ + public static final String Table_Name = "AD_User_Roles"; + + /** AD_Table_ID=157 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_User_Substitute.java b/base/src/org/compiere/model/I_AD_User_Substitute.java new file mode 100644 index 0000000000..657894ee10 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_User_Substitute.java @@ -0,0 +1,151 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_User_Substitute + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.437 + */ + public interface I_AD_User_Substitute +{ + + /** TableName=AD_User_Substitute */ + public static final String Table_Name = "AD_User_Substitute"; + + /** AD_Table_ID=642 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AD_User_Substitute_ID */ + public static final String COLUMNNAME_AD_User_Substitute_ID = "AD_User_Substitute_ID"; + + /** Set User Substitute. + * Substitute of the user + */ + public void setAD_User_Substitute_ID (int AD_User_Substitute_ID); + + /** Get User Substitute. + * Substitute of the user + */ + public int getAD_User_Substitute_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Substitute_ID */ + public static final String COLUMNNAME_Substitute_ID = "Substitute_ID"; + + /** Set Substitute. + * Entity which can be used in place of this entity + */ + public void setSubstitute_ID (int Substitute_ID); + + /** Get Substitute. + * Entity which can be used in place of this entity + */ + public int getSubstitute_ID(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_AD_Val_Rule.java b/base/src/org/compiere/model/I_AD_Val_Rule.java new file mode 100644 index 0000000000..52ad664e42 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Val_Rule.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Val_Rule + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.484 + */ + public interface I_AD_Val_Rule +{ + + /** TableName=AD_Val_Rule */ + public static final String Table_Name = "AD_Val_Rule"; + + /** AD_Table_ID=108 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Val_Rule_ID */ + public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; + + /** Set Dynamic Validation. + * Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID); + + /** Get Dynamic Validation. + * Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID(); + + /** Column name Code */ + public static final String COLUMNNAME_Code = "Code"; + + /** Set Validation code. + * Validation Code + */ + public void setCode (String Code); + + /** Get Validation code. + * Validation Code + */ + public String getCode(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Type */ + public static final String COLUMNNAME_Type = "Type"; + + /** Set Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type); + + /** Get Type. + * Type of Validation (SQL, Java Script, Java Language) + */ + public String getType(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Activity.java b/base/src/org/compiere/model/I_AD_WF_Activity.java new file mode 100644 index 0000000000..b00071b6b3 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Activity.java @@ -0,0 +1,287 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_Activity + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.531 + */ + public interface I_AD_WF_Activity +{ + + /** TableName=AD_WF_Activity */ + public static final String Table_Name = "AD_WF_Activity"; + + /** AD_Table_ID=644 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Message_ID */ + public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; + + /** Set Message. + * System Message + */ + public void setAD_Message_ID (int AD_Message_ID); + + /** Get Message. + * System Message + */ + public int getAD_Message_ID(); + + public I_AD_Message getI_AD_Message() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AD_WF_Activity_ID */ + public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; + + /** Set Workflow Activity. + * Workflow Activity + */ + public void setAD_WF_Activity_ID (int AD_WF_Activity_ID); + + /** Get Workflow Activity. + * Workflow Activity + */ + public int getAD_WF_Activity_ID(); + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception; + + /** Column name AD_WF_Process_ID */ + public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; + + /** Set Workflow Process. + * Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID); + + /** Get Workflow Process. + * Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID(); + + public I_AD_WF_Process getI_AD_WF_Process() throws Exception; + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name DateLastAlert */ + public static final String COLUMNNAME_DateLastAlert = "DateLastAlert"; + + /** Set Last Alert. + * Date when last alert were sent + */ + public void setDateLastAlert (Timestamp DateLastAlert); + + /** Get Last Alert. + * Date when last alert were sent + */ + public Timestamp getDateLastAlert(); + + /** Column name DynPriorityStart */ + public static final String COLUMNNAME_DynPriorityStart = "DynPriorityStart"; + + /** Set Dyn Priority Start. + * Starting priority before changed dynamically + */ + public void setDynPriorityStart (int DynPriorityStart); + + /** Get Dyn Priority Start. + * Starting priority before changed dynamically + */ + public int getDynPriorityStart(); + + /** Column name EndWaitTime */ + public static final String COLUMNNAME_EndWaitTime = "EndWaitTime"; + + /** Set End Wait. + * End of sleep time + */ + public void setEndWaitTime (Timestamp EndWaitTime); + + /** Get End Wait. + * End of sleep time + */ + public Timestamp getEndWaitTime(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name WFState */ + public static final String COLUMNNAME_WFState = "WFState"; + + /** Set Workflow State. + * State of the execution of the workflow + */ + public void setWFState (String WFState); + + /** Get Workflow State. + * State of the execution of the workflow + */ + public String getWFState(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_ActivityResult.java b/base/src/org/compiere/model/I_AD_WF_ActivityResult.java new file mode 100644 index 0000000000..0352b4e964 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_ActivityResult.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_ActivityResult + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.562 + */ + public interface I_AD_WF_ActivityResult +{ + + /** TableName=AD_WF_ActivityResult */ + public static final String Table_Name = "AD_WF_ActivityResult"; + + /** AD_Table_ID=650 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_WF_ActivityResult_ID */ + public static final String COLUMNNAME_AD_WF_ActivityResult_ID = "AD_WF_ActivityResult_ID"; + + /** Set Workflow Activity Result. + * Result of the Workflow Process Activity + */ + public void setAD_WF_ActivityResult_ID (int AD_WF_ActivityResult_ID); + + /** Get Workflow Activity Result. + * Result of the Workflow Process Activity + */ + public int getAD_WF_ActivityResult_ID(); + + /** Column name AD_WF_Activity_ID */ + public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; + + /** Set Workflow Activity. + * Workflow Activity + */ + public void setAD_WF_Activity_ID (int AD_WF_Activity_ID); + + /** Get Workflow Activity. + * Workflow Activity + */ + public int getAD_WF_Activity_ID(); + + public I_AD_WF_Activity getI_AD_WF_Activity() throws Exception; + + /** Column name AttributeName */ + public static final String COLUMNNAME_AttributeName = "AttributeName"; + + /** Set Attribute Name. + * Name of the Attribute + */ + public void setAttributeName (String AttributeName); + + /** Get Attribute Name. + * Name of the Attribute + */ + public String getAttributeName(); + + /** Column name AttributeValue */ + public static final String COLUMNNAME_AttributeValue = "AttributeValue"; + + /** Set Attribute Value. + * Value of the Attribute + */ + public void setAttributeValue (String AttributeValue); + + /** Get Attribute Value. + * Value of the Attribute + */ + public String getAttributeValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Block.java b/base/src/org/compiere/model/I_AD_WF_Block.java new file mode 100644 index 0000000000..51318ac365 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Block.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_Block + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.593 + */ + public interface I_AD_WF_Block +{ + + /** TableName=AD_WF_Block */ + public static final String Table_Name = "AD_WF_Block"; + + /** AD_Table_ID=647 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_WF_Block_ID */ + public static final String COLUMNNAME_AD_WF_Block_ID = "AD_WF_Block_ID"; + + /** Set Workflow Block. + * Workflow Transaction Execution Block + */ + public void setAD_WF_Block_ID (int AD_WF_Block_ID); + + /** Get Workflow Block. + * Workflow Transaction Execution Block + */ + public int getAD_WF_Block_ID(); + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_EventAudit.java b/base/src/org/compiere/model/I_AD_WF_EventAudit.java new file mode 100644 index 0000000000..c1ac14733d --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_EventAudit.java @@ -0,0 +1,263 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_EventAudit + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.609 + */ + public interface I_AD_WF_EventAudit +{ + + /** TableName=AD_WF_EventAudit */ + public static final String Table_Name = "AD_WF_EventAudit"; + + /** AD_Table_ID=649 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AD_WF_EventAudit_ID */ + public static final String COLUMNNAME_AD_WF_EventAudit_ID = "AD_WF_EventAudit_ID"; + + /** Set Workflow Event Audit. + * Workflow Process Activity Event Audit Information + */ + public void setAD_WF_EventAudit_ID (int AD_WF_EventAudit_ID); + + /** Get Workflow Event Audit. + * Workflow Process Activity Event Audit Information + */ + public int getAD_WF_EventAudit_ID(); + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception; + + /** Column name AD_WF_Process_ID */ + public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; + + /** Set Workflow Process. + * Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID); + + /** Get Workflow Process. + * Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID(); + + public I_AD_WF_Process getI_AD_WF_Process() throws Exception; + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception; + + /** Column name AttributeName */ + public static final String COLUMNNAME_AttributeName = "AttributeName"; + + /** Set Attribute Name. + * Name of the Attribute + */ + public void setAttributeName (String AttributeName); + + /** Get Attribute Name. + * Name of the Attribute + */ + public String getAttributeName(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ElapsedTimeMS */ + public static final String COLUMNNAME_ElapsedTimeMS = "ElapsedTimeMS"; + + /** Set Elapsed Time ms. + * Elapsed Time in mili seconds + */ + public void setElapsedTimeMS (BigDecimal ElapsedTimeMS); + + /** Get Elapsed Time ms. + * Elapsed Time in mili seconds + */ + public BigDecimal getElapsedTimeMS(); + + /** Column name EventType */ + public static final String COLUMNNAME_EventType = "EventType"; + + /** Set Event Type. + * Type of Event + */ + public void setEventType (String EventType); + + /** Get Event Type. + * Type of Event + */ + public String getEventType(); + + /** Column name NewValue */ + public static final String COLUMNNAME_NewValue = "NewValue"; + + /** Set New Value. + * New field value + */ + public void setNewValue (String NewValue); + + /** Get New Value. + * New field value + */ + public String getNewValue(); + + /** Column name OldValue */ + public static final String COLUMNNAME_OldValue = "OldValue"; + + /** Set Old Value. + * The old file data + */ + public void setOldValue (String OldValue); + + /** Get Old Value. + * The old file data + */ + public String getOldValue(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name WFState */ + public static final String COLUMNNAME_WFState = "WFState"; + + /** Set Workflow State. + * State of the execution of the workflow + */ + public void setWFState (String WFState); + + /** Get Workflow State. + * State of the execution of the workflow + */ + public String getWFState(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_NextCondition.java b/base/src/org/compiere/model/I_AD_WF_NextCondition.java new file mode 100644 index 0000000000..b5fe730722 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_NextCondition.java @@ -0,0 +1,185 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_NextCondition + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.64 + */ + public interface I_AD_WF_NextCondition +{ + + /** TableName=AD_WF_NextCondition */ + public static final String Table_Name = "AD_WF_NextCondition"; + + /** AD_Table_ID=706 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_WF_NextCondition_ID */ + public static final String COLUMNNAME_AD_WF_NextCondition_ID = "AD_WF_NextCondition_ID"; + + /** Set Transition Condition. + * Workflow Node Transition Condition + */ + public void setAD_WF_NextCondition_ID (int AD_WF_NextCondition_ID); + + /** Get Transition Condition. + * Workflow Node Transition Condition + */ + public int getAD_WF_NextCondition_ID(); + + /** Column name AD_WF_NodeNext_ID */ + public static final String COLUMNNAME_AD_WF_NodeNext_ID = "AD_WF_NodeNext_ID"; + + /** Set Node Transition. + * Workflow Node Transition + */ + public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID); + + /** Get Node Transition. + * Workflow Node Transition + */ + public int getAD_WF_NodeNext_ID(); + + public I_AD_WF_NodeNext getI_AD_WF_NodeNext() throws Exception; + + /** Column name AndOr */ + public static final String COLUMNNAME_AndOr = "AndOr"; + + /** Set And/Or. + * Logical operation: AND or OR + */ + public void setAndOr (String AndOr); + + /** Get And/Or. + * Logical operation: AND or OR + */ + public String getAndOr(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Operation */ + public static final String COLUMNNAME_Operation = "Operation"; + + /** Set Operation. + * Compare Operation + */ + public void setOperation (String Operation); + + /** Get Operation. + * Compare Operation + */ + public String getOperation(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name Value2 */ + public static final String COLUMNNAME_Value2 = "Value2"; + + /** Set Value To. + * Value To + */ + public void setValue2 (String Value2); + + /** Get Value To. + * Value To + */ + public String getValue2(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Node.java b/base/src/org/compiere/model/I_AD_WF_Node.java new file mode 100644 index 0000000000..98eaa5dcd5 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Node.java @@ -0,0 +1,602 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_Node + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:30.968 + */ + public interface I_AD_WF_Node +{ + + /** TableName=AD_WF_Node */ + public static final String Table_Name = "AD_WF_Node"; + + /** AD_Table_ID=129 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + public I_AD_Form getI_AD_Form() throws Exception; + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + public I_AD_Image getI_AD_Image() throws Exception; + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); + + public I_AD_Task getI_AD_Task() throws Exception; + + /** Column name AD_WF_Block_ID */ + public static final String COLUMNNAME_AD_WF_Block_ID = "AD_WF_Block_ID"; + + /** Set Workflow Block. + * Workflow Transaction Execution Block + */ + public void setAD_WF_Block_ID (int AD_WF_Block_ID); + + /** Get Workflow Block. + * Workflow Transaction Execution Block + */ + public int getAD_WF_Block_ID(); + + public I_AD_WF_Block getI_AD_WF_Block() throws Exception; + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name Action */ + public static final String COLUMNNAME_Action = "Action"; + + /** Set Action. + * Indicates the Action to be performed + */ + public void setAction (String Action); + + /** Get Action. + * Indicates the Action to be performed + */ + public String getAction(); + + /** Column name AttributeName */ + public static final String COLUMNNAME_AttributeName = "AttributeName"; + + /** Set Attribute Name. + * Name of the Attribute + */ + public void setAttributeName (String AttributeName); + + /** Get Attribute Name. + * Name of the Attribute + */ + public String getAttributeName(); + + /** Column name AttributeValue */ + public static final String COLUMNNAME_AttributeValue = "AttributeValue"; + + /** Set Attribute Value. + * Value of the Attribute + */ + public void setAttributeValue (String AttributeValue); + + /** Get Attribute Value. + * Value of the Attribute + */ + public String getAttributeValue(); + + /** Column name Cost */ + public static final String COLUMNNAME_Cost = "Cost"; + + /** Set Cost. + * Cost information + */ + public void setCost (BigDecimal Cost); + + /** Get Cost. + * Cost information + */ + public BigDecimal getCost(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name Duration */ + public static final String COLUMNNAME_Duration = "Duration"; + + /** Set Duration. + * Normal Duration in Duration Unit + */ + public void setDuration (int Duration); + + /** Get Duration. + * Normal Duration in Duration Unit + */ + public int getDuration(); + + /** Column name DynPriorityChange */ + public static final String COLUMNNAME_DynPriorityChange = "DynPriorityChange"; + + /** Set Dynamic Priority Change. + * Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityChange (BigDecimal DynPriorityChange); + + /** Get Dynamic Priority Change. + * Change of priority when Activity is suspended waiting for user + */ + public BigDecimal getDynPriorityChange(); + + /** Column name DynPriorityUnit */ + public static final String COLUMNNAME_DynPriorityUnit = "DynPriorityUnit"; + + /** Set Dynamic Priority Unit. + * Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityUnit (String DynPriorityUnit); + + /** Get Dynamic Priority Unit. + * Change of priority when Activity is suspended waiting for user + */ + public String getDynPriorityUnit(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name EMailRecipient */ + public static final String COLUMNNAME_EMailRecipient = "EMailRecipient"; + + /** Set EMail Recipient. + * Recipient of the EMail + */ + public void setEMailRecipient (String EMailRecipient); + + /** Get EMail Recipient. + * Recipient of the EMail + */ + public String getEMailRecipient(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name FinishMode */ + public static final String COLUMNNAME_FinishMode = "FinishMode"; + + /** Set Finish Mode. + * Workflow Activity Finish Mode + */ + public void setFinishMode (String FinishMode); + + /** Get Finish Mode. + * Workflow Activity Finish Mode + */ + public String getFinishMode(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsCentrallyMaintained */ + public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; + + /** Set Centrally maintained. + * Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained); + + /** Get Centrally maintained. + * Information maintained in System Element table + */ + public boolean isCentrallyMaintained(); + + /** Column name JoinElement */ + public static final String COLUMNNAME_JoinElement = "JoinElement"; + + /** Set Join Element. + * Semantics for multiple incoming Transitions + */ + public void setJoinElement (String JoinElement); + + /** Get Join Element. + * Semantics for multiple incoming Transitions + */ + public String getJoinElement(); + + /** Column name Limit */ + public static final String COLUMNNAME_Limit = "Limit"; + + /** Set Duration Limit. + * Maximum Duration in Duration Unit + */ + public void setLimit (int Limit); + + /** Get Duration Limit. + * Maximum Duration in Duration Unit + */ + public int getLimit(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); + + public I_R_MailText getI_R_MailText() throws Exception; + + /** Column name SplitElement */ + public static final String COLUMNNAME_SplitElement = "SplitElement"; + + /** Set Split Element. + * Semantics for multiple outgoing Transitions + */ + public void setSplitElement (String SplitElement); + + /** Get Split Element. + * Semantics for multiple outgoing Transitions + */ + public String getSplitElement(); + + /** Column name StartMode */ + public static final String COLUMNNAME_StartMode = "StartMode"; + + /** Set Start Mode. + * Workflow Activity Start Mode + */ + public void setStartMode (String StartMode); + + /** Get Start Mode. + * Workflow Activity Start Mode + */ + public String getStartMode(); + + /** Column name SubflowExecution */ + public static final String COLUMNNAME_SubflowExecution = "SubflowExecution"; + + /** Set Subflow Execution. + * Mode how the sub-workflow is executed + */ + public void setSubflowExecution (String SubflowExecution); + + /** Get Subflow Execution. + * Mode how the sub-workflow is executed + */ + public String getSubflowExecution(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name WaitTime */ + public static final String COLUMNNAME_WaitTime = "WaitTime"; + + /** Set Wait Time. + * Time in minutes to wait (sleep) + */ + public void setWaitTime (int WaitTime); + + /** Get Wait Time. + * Time in minutes to wait (sleep) + */ + public int getWaitTime(); + + /** Column name WaitingTime */ + public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + + /** Set Waiting Time. + * Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime); + + /** Get Waiting Time. + * Workflow Simulation Waiting time + */ + public int getWaitingTime(); + + /** Column name Workflow_ID */ + public static final String COLUMNNAME_Workflow_ID = "Workflow_ID"; + + /** Set Workflow. + * Workflow or tasks + */ + public void setWorkflow_ID (int Workflow_ID); + + /** Get Workflow. + * Workflow or tasks + */ + public int getWorkflow_ID(); + + /** Column name WorkingTime */ + public static final String COLUMNNAME_WorkingTime = "WorkingTime"; + + /** Set Working Time. + * Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime); + + /** Get Working Time. + * Workflow Simulation Execution Time + */ + public int getWorkingTime(); + + /** Column name XPosition */ + public static final String COLUMNNAME_XPosition = "XPosition"; + + /** Set X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition); + + /** Get X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition(); + + /** Column name YPosition */ + public static final String COLUMNNAME_YPosition = "YPosition"; + + /** Set Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition); + + /** Get Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_NodeNext.java b/base/src/org/compiere/model/I_AD_WF_NodeNext.java new file mode 100644 index 0000000000..9c81cc4cdd --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_NodeNext.java @@ -0,0 +1,170 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_NodeNext + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.078 + */ + public interface I_AD_WF_NodeNext +{ + + /** TableName=AD_WF_NodeNext */ + public static final String Table_Name = "AD_WF_NodeNext"; + + /** AD_Table_ID=131 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_WF_Next_ID */ + public static final String COLUMNNAME_AD_WF_Next_ID = "AD_WF_Next_ID"; + + /** Set Next Node. + * Next Node in workflow + */ + public void setAD_WF_Next_ID (int AD_WF_Next_ID); + + /** Get Next Node. + * Next Node in workflow + */ + public int getAD_WF_Next_ID(); + + /** Column name AD_WF_NodeNext_ID */ + public static final String COLUMNNAME_AD_WF_NodeNext_ID = "AD_WF_NodeNext_ID"; + + /** Set Node Transition. + * Workflow Node Transition + */ + public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID); + + /** Get Node Transition. + * Workflow Node Transition + */ + public int getAD_WF_NodeNext_ID(); + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name IsStdUserWorkflow */ + public static final String COLUMNNAME_IsStdUserWorkflow = "IsStdUserWorkflow"; + + /** Set Std User Workflow. + * Standard Manual User Approval Workflow + */ + public void setIsStdUserWorkflow (boolean IsStdUserWorkflow); + + /** Get Std User Workflow. + * Standard Manual User Approval Workflow + */ + public boolean isStdUserWorkflow(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name TransitionCode */ + public static final String COLUMNNAME_TransitionCode = "TransitionCode"; + + /** Set Transition Code. + * Code resulting in TRUE of FALSE + */ + public void setTransitionCode (String TransitionCode); + + /** Get Transition Code. + * Code resulting in TRUE of FALSE + */ + public String getTransitionCode(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Node_Para.java b/base/src/org/compiere/model/I_AD_WF_Node_Para.java new file mode 100644 index 0000000000..6e7b26f36e --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Node_Para.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_Node_Para + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.109 + */ + public interface I_AD_WF_Node_Para +{ + + /** TableName=AD_WF_Node_Para */ + public static final String Table_Name = "AD_WF_Node_Para"; + + /** AD_Table_ID=643 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Process_Para_ID */ + public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; + + /** Set Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID); + + /** Get Process Parameter */ + public int getAD_Process_Para_ID(); + + public I_AD_Process_Para getI_AD_Process_Para() throws Exception; + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception; + + /** Column name AD_WF_Node_Para_ID */ + public static final String COLUMNNAME_AD_WF_Node_Para_ID = "AD_WF_Node_Para_ID"; + + /** Set Workflow Node Parameter. + * Workflow Node Execution Parameter + */ + public void setAD_WF_Node_Para_ID (int AD_WF_Node_Para_ID); + + /** Get Workflow Node Parameter. + * Workflow Node Execution Parameter + */ + public int getAD_WF_Node_Para_ID(); + + /** Column name AttributeName */ + public static final String COLUMNNAME_AttributeName = "AttributeName"; + + /** Set Attribute Name. + * Name of the Attribute + */ + public void setAttributeName (String AttributeName); + + /** Get Attribute Name. + * Name of the Attribute + */ + public String getAttributeName(); + + /** Column name AttributeValue */ + public static final String COLUMNNAME_AttributeValue = "AttributeValue"; + + /** Set Attribute Value. + * Value of the Attribute + */ + public void setAttributeValue (String AttributeValue); + + /** Get Attribute Value. + * Value of the Attribute + */ + public String getAttributeValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Process.java b/base/src/org/compiere/model/I_AD_WF_Process.java new file mode 100644 index 0000000000..e9109e8a17 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Process.java @@ -0,0 +1,218 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_Process + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.14 + */ + public interface I_AD_WF_Process +{ + + /** TableName=AD_WF_Process */ + public static final String Table_Name = "AD_WF_Process"; + + /** AD_Table_ID=645 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Message_ID */ + public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; + + /** Set Message. + * System Message + */ + public void setAD_Message_ID (int AD_Message_ID); + + /** Get Message. + * System Message + */ + public int getAD_Message_ID(); + + public I_AD_Message getI_AD_Message() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AD_WF_Process_ID */ + public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; + + /** Set Workflow Process. + * Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID); + + /** Get Workflow Process. + * Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID(); + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name WFState */ + public static final String COLUMNNAME_WFState = "WFState"; + + /** Set Workflow State. + * State of the execution of the workflow + */ + public void setWFState (String WFState); + + /** Get Workflow State. + * State of the execution of the workflow + */ + public String getWFState(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_ProcessData.java b/base/src/org/compiere/model/I_AD_WF_ProcessData.java new file mode 100644 index 0000000000..ee0c123650 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_ProcessData.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_ProcessData + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.171 + */ + public interface I_AD_WF_ProcessData +{ + + /** TableName=AD_WF_ProcessData */ + public static final String Table_Name = "AD_WF_ProcessData"; + + /** AD_Table_ID=648 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_WF_ProcessData_ID */ + public static final String COLUMNNAME_AD_WF_ProcessData_ID = "AD_WF_ProcessData_ID"; + + /** Set Workflow Process Data. + * Workflow Process Context + */ + public void setAD_WF_ProcessData_ID (int AD_WF_ProcessData_ID); + + /** Get Workflow Process Data. + * Workflow Process Context + */ + public int getAD_WF_ProcessData_ID(); + + /** Column name AD_WF_Process_ID */ + public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; + + /** Set Workflow Process. + * Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID); + + /** Get Workflow Process. + * Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID(); + + public I_AD_WF_Process getI_AD_WF_Process() throws Exception; + + /** Column name AttributeName */ + public static final String COLUMNNAME_AttributeName = "AttributeName"; + + /** Set Attribute Name. + * Name of the Attribute + */ + public void setAttributeName (String AttributeName); + + /** Get Attribute Name. + * Name of the Attribute + */ + public String getAttributeName(); + + /** Column name AttributeValue */ + public static final String COLUMNNAME_AttributeValue = "AttributeValue"; + + /** Set Attribute Value. + * Value of the Attribute + */ + public void setAttributeValue (String AttributeValue); + + /** Get Attribute Value. + * Value of the Attribute + */ + public String getAttributeValue(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Responsible.java b/base/src/org/compiere/model/I_AD_WF_Responsible.java new file mode 100644 index 0000000000..e273400ee1 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Responsible.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WF_Responsible + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.25 + */ + public interface I_AD_WF_Responsible +{ + + /** TableName=AD_WF_Responsible */ + public static final String Table_Name = "AD_WF_Responsible"; + + /** AD_Table_ID=646 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ResponsibleType */ + public static final String COLUMNNAME_ResponsibleType = "ResponsibleType"; + + /** Set Responsible Type. + * Type of the Responsibility for a workflow + */ + public void setResponsibleType (String ResponsibleType); + + /** Get Responsible Type. + * Type of the Responsibility for a workflow + */ + public String getResponsibleType(); +} diff --git a/base/src/org/compiere/model/I_AD_Window.java b/base/src/org/compiere/model/I_AD_Window.java new file mode 100644 index 0000000000..d29ac3a5e2 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Window.java @@ -0,0 +1,236 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Window + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.281 + */ + public interface I_AD_Window +{ + + /** TableName=AD_Window */ + public static final String Table_Name = "AD_Window"; + + /** AD_Table_ID=105 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Color_ID */ + public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; + + /** Set System Color. + * Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID); + + /** Get System Color. + * Color for backgrounds or indicators + */ + public int getAD_Color_ID(); + + public I_AD_Color getI_AD_Color() throws Exception; + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + public I_AD_Image getI_AD_Image() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsBetaFunctionality */ + public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality"; + + /** Set Beta Functionality. + * This functionality is considered Beta + */ + public void setIsBetaFunctionality (boolean IsBetaFunctionality); + + /** Get Beta Functionality. + * This functionality is considered Beta + */ + public boolean isBetaFunctionality(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name WinHeight */ + public static final String COLUMNNAME_WinHeight = "WinHeight"; + + /** Set Window Height */ + public void setWinHeight (int WinHeight); + + /** Get Window Height */ + public int getWinHeight(); + + /** Column name WinWidth */ + public static final String COLUMNNAME_WinWidth = "WinWidth"; + + /** Set Window Width */ + public void setWinWidth (int WinWidth); + + /** Get Window Width */ + public int getWinWidth(); + + /** Column name WindowType */ + public static final String COLUMNNAME_WindowType = "WindowType"; + + /** Set WindowType. + * Type or classification of a Window + */ + public void setWindowType (String WindowType); + + /** Get WindowType. + * Type or classification of a Window + */ + public String getWindowType(); +} diff --git a/base/src/org/compiere/model/I_AD_Window_Access.java b/base/src/org/compiere/model/I_AD_Window_Access.java new file mode 100644 index 0000000000..72f81d1ef9 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Window_Access.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Window_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.296 + */ + public interface I_AD_Window_Access +{ + + /** TableName=AD_Window_Access */ + public static final String Table_Name = "AD_Window_Access"; + + /** AD_Table_ID=201 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name IsReadWrite */ + public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; + + /** Set Read Write. + * Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite); + + /** Get Read Write. + * Field is read / write + */ + public boolean isReadWrite(); +} diff --git a/base/src/org/compiere/model/I_AD_Workbench.java b/base/src/org/compiere/model/I_AD_Workbench.java new file mode 100644 index 0000000000..9453b47511 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Workbench.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Workbench + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.312 + */ + public interface I_AD_Workbench +{ + + /** TableName=AD_Workbench */ + public static final String Table_Name = "AD_Workbench"; + + /** AD_Table_ID=468 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Color_ID */ + public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; + + /** Set System Color. + * Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID); + + /** Get System Color. + * Color for backgrounds or indicators + */ + public int getAD_Color_ID(); + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + /** Column name AD_Workbench_ID */ + public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** Set Workbench. + * Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID); + + /** Get Workbench. + * Collection of windows, reports + */ + public int getAD_Workbench_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_AD_WorkbenchWindow.java b/base/src/org/compiere/model/I_AD_WorkbenchWindow.java new file mode 100644 index 0000000000..37e195d9dc --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WorkbenchWindow.java @@ -0,0 +1,187 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WorkbenchWindow + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.359 + */ + public interface I_AD_WorkbenchWindow +{ + + /** TableName=AD_WorkbenchWindow */ + public static final String Table_Name = "AD_WorkbenchWindow"; + + /** AD_Table_ID=469 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + public I_AD_Form getI_AD_Form() throws Exception; + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getI_AD_Process() throws Exception; + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); + + public I_AD_Task getI_AD_Task() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name AD_WorkbenchWindow_ID */ + public static final String COLUMNNAME_AD_WorkbenchWindow_ID = "AD_WorkbenchWindow_ID"; + + /** Set Workbench Window */ + public void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID); + + /** Get Workbench Window */ + public int getAD_WorkbenchWindow_ID(); + + /** Column name AD_Workbench_ID */ + public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** Set Workbench. + * Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID); + + /** Get Workbench. + * Collection of windows, reports + */ + public int getAD_Workbench_ID(); + + public I_AD_Workbench getI_AD_Workbench() throws Exception; + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name IsPrimary */ + public static final String COLUMNNAME_IsPrimary = "IsPrimary"; + + /** Set Primary. + * Indicates if this is the primary budget + */ + public void setIsPrimary (boolean IsPrimary); + + /** Get Primary. + * Indicates if this is the primary budget + */ + public boolean isPrimary(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_AD_Workflow.java b/base/src/org/compiere/model/I_AD_Workflow.java new file mode 100644 index 0000000000..a2c6be1710 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Workflow.java @@ -0,0 +1,428 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Workflow + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.375 + */ + public interface I_AD_Workflow +{ + + /** TableName=AD_Workflow */ + public static final String Table_Name = "AD_Workflow"; + + /** AD_Table_ID=117 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception; + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception; + + /** Column name AD_WorkflowProcessor_ID */ + public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; + + /** Set Workflow Processor. + * Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID); + + /** Get Workflow Processor. + * Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID(); + + public I_AD_WorkflowProcessor getI_AD_WorkflowProcessor() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + + /** Column name Author */ + public static final String COLUMNNAME_Author = "Author"; + + /** Set Author. + * Author/Creator of the Entity + */ + public void setAuthor (String Author); + + /** Get Author. + * Author/Creator of the Entity + */ + public String getAuthor(); + + /** Column name Cost */ + public static final String COLUMNNAME_Cost = "Cost"; + + /** Set Cost. + * Cost information + */ + public void setCost (int Cost); + + /** Get Cost. + * Cost information + */ + public int getCost(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocValueLogic */ + public static final String COLUMNNAME_DocValueLogic = "DocValueLogic"; + + /** Set Document Value Logic. + * Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public void setDocValueLogic (String DocValueLogic); + + /** Get Document Value Logic. + * Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public String getDocValueLogic(); + + /** Column name Duration */ + public static final String COLUMNNAME_Duration = "Duration"; + + /** Set Duration. + * Normal Duration in Duration Unit + */ + public void setDuration (int Duration); + + /** Get Duration. + * Normal Duration in Duration Unit + */ + public int getDuration(); + + /** Column name DurationUnit */ + public static final String COLUMNNAME_DurationUnit = "DurationUnit"; + + /** Set Duration Unit. + * Unit of Duration + */ + public void setDurationUnit (String DurationUnit); + + /** Get Duration Unit. + * Unit of Duration + */ + public String getDurationUnit(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Limit */ + public static final String COLUMNNAME_Limit = "Limit"; + + /** Set Duration Limit. + * Maximum Duration in Duration Unit + */ + public void setLimit (int Limit); + + /** Get Duration Limit. + * Maximum Duration in Duration Unit + */ + public int getLimit(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name PublishStatus */ + public static final String COLUMNNAME_PublishStatus = "PublishStatus"; + + /** Set Publication Status. + * Status of Publication + */ + public void setPublishStatus (String PublishStatus); + + /** Get Publication Status. + * Status of Publication + */ + public String getPublishStatus(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); + + /** Column name ValidateWorkflow */ + public static final String COLUMNNAME_ValidateWorkflow = "ValidateWorkflow"; + + /** Set Validate Workflow */ + public void setValidateWorkflow (String ValidateWorkflow); + + /** Get Validate Workflow */ + public String getValidateWorkflow(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (int Version); + + /** Get Version. + * Version of the table definition + */ + public int getVersion(); + + /** Column name WaitingTime */ + public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + + /** Set Waiting Time. + * Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime); + + /** Get Waiting Time. + * Workflow Simulation Waiting time + */ + public int getWaitingTime(); + + /** Column name WorkflowType */ + public static final String COLUMNNAME_WorkflowType = "WorkflowType"; + + /** Set Workflow Type. + * Type of Worflow + */ + public void setWorkflowType (String WorkflowType); + + /** Get Workflow Type. + * Type of Worflow + */ + public String getWorkflowType(); + + /** Column name WorkingTime */ + public static final String COLUMNNAME_WorkingTime = "WorkingTime"; + + /** Set Working Time. + * Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime); + + /** Get Working Time. + * Workflow Simulation Execution Time + */ + public int getWorkingTime(); +} diff --git a/base/src/org/compiere/model/I_AD_WorkflowProcessor.java b/base/src/org/compiere/model/I_AD_WorkflowProcessor.java new file mode 100644 index 0000000000..66c8845593 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WorkflowProcessor.java @@ -0,0 +1,225 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WorkflowProcessor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.421 + */ + public interface I_AD_WorkflowProcessor +{ + + /** TableName=AD_WorkflowProcessor */ + public static final String Table_Name = "AD_WorkflowProcessor"; + + /** AD_Table_ID=697 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_WorkflowProcessor_ID */ + public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; + + /** Set Workflow Processor. + * Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID); + + /** Get Workflow Processor. + * Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID(); + + /** Column name AlertOverPriority */ + public static final String COLUMNNAME_AlertOverPriority = "AlertOverPriority"; + + /** Set Alert over Priority. + * Send alert email when over priority + */ + public void setAlertOverPriority (int AlertOverPriority); + + /** Get Alert over Priority. + * Send alert email when over priority + */ + public int getAlertOverPriority(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name InactivityAlertDays */ + public static final String COLUMNNAME_InactivityAlertDays = "InactivityAlertDays"; + + /** Set Inactivity Alert Days. + * Send Alert when there is no activity after days (0= no alert) + */ + public void setInactivityAlertDays (int InactivityAlertDays); + + /** Get Inactivity Alert Days. + * Send Alert when there is no activity after days (0= no alert) + */ + public int getInactivityAlertDays(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name RemindDays */ + public static final String COLUMNNAME_RemindDays = "RemindDays"; + + /** Set Reminder Days. + * Days between sending Reminder Emails for a due or inactive Document + */ + public void setRemindDays (int RemindDays); + + /** Get Reminder Days. + * Days between sending Reminder Emails for a due or inactive Document + */ + public int getRemindDays(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); +} diff --git a/base/src/org/compiere/model/I_AD_WorkflowProcessorLog.java b/base/src/org/compiere/model/I_AD_WorkflowProcessorLog.java new file mode 100644 index 0000000000..c6ec81e298 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WorkflowProcessorLog.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_WorkflowProcessorLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.515 + */ + public interface I_AD_WorkflowProcessorLog +{ + + /** TableName=AD_WorkflowProcessorLog */ + public static final String Table_Name = "AD_WorkflowProcessorLog"; + + /** AD_Table_ID=696 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_WorkflowProcessorLog_ID */ + public static final String COLUMNNAME_AD_WorkflowProcessorLog_ID = "AD_WorkflowProcessorLog_ID"; + + /** Set Workflow Processorl Log. + * Result of the execution of the Workflow Processor + */ + public void setAD_WorkflowProcessorLog_ID (int AD_WorkflowProcessorLog_ID); + + /** Get Workflow Processorl Log. + * Result of the execution of the Workflow Processor + */ + public int getAD_WorkflowProcessorLog_ID(); + + /** Column name AD_WorkflowProcessor_ID */ + public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; + + /** Set Workflow Processor. + * Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID); + + /** Get Workflow Processor. + * Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID(); + + public I_AD_WorkflowProcessor getI_AD_WorkflowProcessor() throws Exception; + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_AD_Workflow_Access.java b/base/src/org/compiere/model/I_AD_Workflow_Access.java new file mode 100644 index 0000000000..e34510591e --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Workflow_Access.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for AD_Workflow_Access + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.531 + */ + public interface I_AD_Workflow_Access +{ + + /** TableName=AD_Workflow_Access */ + public static final String Table_Name = "AD_Workflow_Access"; + + /** AD_Table_ID=202 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getI_AD_Workflow() throws Exception; + + /** Column name IsReadWrite */ + public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; + + /** Set Read Write. + * Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite); + + /** Get Read Write. + * Field is read / write + */ + public boolean isReadWrite(); +} diff --git a/base/src/org/compiere/model/I_A_Asset.java b/base/src/org/compiere/model/I_A_Asset.java new file mode 100644 index 0000000000..bcb3db55d0 --- /dev/null +++ b/base/src/org/compiere/model/I_A_Asset.java @@ -0,0 +1,614 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_Asset + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.546 + */ + public interface I_A_Asset +{ + + /** TableName=A_Asset */ + public static final String Table_Name = "A_Asset"; + + /** AD_Table_ID=539 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name A_Asset_Group_ID */ + public static final String COLUMNNAME_A_Asset_Group_ID = "A_Asset_Group_ID"; + + /** Set Asset Group. + * Group of Assets + */ + public void setA_Asset_Group_ID (int A_Asset_Group_ID); + + /** Get Asset Group. + * Group of Assets + */ + public int getA_Asset_Group_ID(); + + public I_A_Asset_Group getI_A_Asset_Group() throws Exception; + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name AssetDepreciationDate */ + public static final String COLUMNNAME_AssetDepreciationDate = "AssetDepreciationDate"; + + /** Set Asset Depreciation Date. + * Date of last depreciation + */ + public void setAssetDepreciationDate (Timestamp AssetDepreciationDate); + + /** Get Asset Depreciation Date. + * Date of last depreciation + */ + public Timestamp getAssetDepreciationDate(); + + /** Column name AssetDisposalDate */ + public static final String COLUMNNAME_AssetDisposalDate = "AssetDisposalDate"; + + /** Set Asset Disposal Date. + * Date when the asset is/was disposed + */ + public void setAssetDisposalDate (Timestamp AssetDisposalDate); + + /** Get Asset Disposal Date. + * Date when the asset is/was disposed + */ + public Timestamp getAssetDisposalDate(); + + /** Column name AssetServiceDate */ + public static final String COLUMNNAME_AssetServiceDate = "AssetServiceDate"; + + /** Set In Service Date. + * Date when Asset was put into service + */ + public void setAssetServiceDate (Timestamp AssetServiceDate); + + /** Get In Service Date. + * Date when Asset was put into service + */ + public Timestamp getAssetServiceDate(); + + /** Column name C_BPartnerSR_ID */ + public static final String COLUMNNAME_C_BPartnerSR_ID = "C_BPartnerSR_ID"; + + /** Set BPartner (Agent). + * Business Partner (Agent or Sales Rep) + */ + public void setC_BPartnerSR_ID (int C_BPartnerSR_ID); + + /** Get BPartner (Agent). + * Business Partner (Agent or Sales Rep) + */ + public int getC_BPartnerSR_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GuaranteeDate */ + public static final String COLUMNNAME_GuaranteeDate = "GuaranteeDate"; + + /** Set Guarantee Date. + * Date when guarantee expires + */ + public void setGuaranteeDate (Timestamp GuaranteeDate); + + /** Get Guarantee Date. + * Date when guarantee expires + */ + public Timestamp getGuaranteeDate(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDepreciated */ + public static final String COLUMNNAME_IsDepreciated = "IsDepreciated"; + + /** Set Depreciate. + * The asset will be depreciated + */ + public void setIsDepreciated (boolean IsDepreciated); + + /** Get Depreciate. + * The asset will be depreciated + */ + public boolean isDepreciated(); + + /** Column name IsDisposed */ + public static final String COLUMNNAME_IsDisposed = "IsDisposed"; + + /** Set Disposed. + * The asset is disposed + */ + public void setIsDisposed (boolean IsDisposed); + + /** Get Disposed. + * The asset is disposed + */ + public boolean isDisposed(); + + /** Column name IsFullyDepreciated */ + public static final String COLUMNNAME_IsFullyDepreciated = "IsFullyDepreciated"; + + /** Set Fully depreciated. + * The asset is fully depreciated + */ + public void setIsFullyDepreciated (boolean IsFullyDepreciated); + + /** Get Fully depreciated. + * The asset is fully depreciated + */ + public boolean isFullyDepreciated(); + + /** Column name IsInPosession */ + public static final String COLUMNNAME_IsInPosession = "IsInPosession"; + + /** Set In Possession. + * The asset is in the possession of the organization + */ + public void setIsInPosession (boolean IsInPosession); + + /** Get In Possession. + * The asset is in the possession of the organization + */ + public boolean isInPosession(); + + /** Column name IsOwned */ + public static final String COLUMNNAME_IsOwned = "IsOwned"; + + /** Set Owned. + * The asset is owned by the organization + */ + public void setIsOwned (boolean IsOwned); + + /** Get Owned. + * The asset is owned by the organization + */ + public boolean isOwned(); + + /** Column name LastMaintenanceDate */ + public static final String COLUMNNAME_LastMaintenanceDate = "LastMaintenanceDate"; + + /** Set Last Maintenance. + * Last Maintenance Date + */ + public void setLastMaintenanceDate (Timestamp LastMaintenanceDate); + + /** Get Last Maintenance. + * Last Maintenance Date + */ + public Timestamp getLastMaintenanceDate(); + + /** Column name LastMaintenanceNote */ + public static final String COLUMNNAME_LastMaintenanceNote = "LastMaintenanceNote"; + + /** Set Last Note. + * Last Maintenance Note + */ + public void setLastMaintenanceNote (String LastMaintenanceNote); + + /** Get Last Note. + * Last Maintenance Note + */ + public String getLastMaintenanceNote(); + + /** Column name LastMaintenanceUnit */ + public static final String COLUMNNAME_LastMaintenanceUnit = "LastMaintenanceUnit"; + + /** Set Last Unit. + * Last Maintenance Unit + */ + public void setLastMaintenanceUnit (int LastMaintenanceUnit); + + /** Get Last Unit. + * Last Maintenance Unit + */ + public int getLastMaintenanceUnit(); + + /** Column name LeaseTerminationDate */ + public static final String COLUMNNAME_LeaseTerminationDate = "LeaseTerminationDate"; + + /** Set Lease Termination. + * Lease Termination Date + */ + public void setLeaseTerminationDate (Timestamp LeaseTerminationDate); + + /** Get Lease Termination. + * Lease Termination Date + */ + public Timestamp getLeaseTerminationDate(); + + /** Column name Lease_BPartner_ID */ + public static final String COLUMNNAME_Lease_BPartner_ID = "Lease_BPartner_ID"; + + /** Set Lessor. + * The Business Partner who rents or leases + */ + public void setLease_BPartner_ID (int Lease_BPartner_ID); + + /** Get Lessor. + * The Business Partner who rents or leases + */ + public int getLease_BPartner_ID(); + + /** Column name LifeUseUnits */ + public static final String COLUMNNAME_LifeUseUnits = "LifeUseUnits"; + + /** Set Life use. + * Units of use until the asset is not usable anymore + */ + public void setLifeUseUnits (int LifeUseUnits); + + /** Get Life use. + * Units of use until the asset is not usable anymore + */ + public int getLifeUseUnits(); + + /** Column name LocationComment */ + public static final String COLUMNNAME_LocationComment = "LocationComment"; + + /** Set Location comment. + * Additional comments or remarks concerning the location + */ + public void setLocationComment (String LocationComment); + + /** Get Location comment. + * Additional comments or remarks concerning the location + */ + public String getLocationComment(); + + /** Column name Lot */ + public static final String COLUMNNAME_Lot = "Lot"; + + /** Set Lot No. + * Lot number (alphanumeric) + */ + public void setLot (String Lot); + + /** Get Lot No. + * Lot number (alphanumeric) + */ + public String getLot(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + public I_M_InOutLine getI_M_InOutLine() throws Exception; + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + public I_M_Locator getI_M_Locator() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name NextMaintenenceDate */ + public static final String COLUMNNAME_NextMaintenenceDate = "NextMaintenenceDate"; + + /** Set Next Maintenence. + * Next Maintenence Date + */ + public void setNextMaintenenceDate (Timestamp NextMaintenenceDate); + + /** Get Next Maintenence. + * Next Maintenence Date + */ + public Timestamp getNextMaintenenceDate(); + + /** Column name NextMaintenenceUnit */ + public static final String COLUMNNAME_NextMaintenenceUnit = "NextMaintenenceUnit"; + + /** Set Next Unit. + * Next Maintenence Unit + */ + public void setNextMaintenenceUnit (int NextMaintenenceUnit); + + /** Get Next Unit. + * Next Maintenence Unit + */ + public int getNextMaintenenceUnit(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name SerNo */ + public static final String COLUMNNAME_SerNo = "SerNo"; + + /** Set Serial No. + * Product Serial Number + */ + public void setSerNo (String SerNo); + + /** Get Serial No. + * Product Serial Number + */ + public String getSerNo(); + + /** Column name UseLifeMonths */ + public static final String COLUMNNAME_UseLifeMonths = "UseLifeMonths"; + + /** Set Usable Life - Months. + * Months of the usable life of the asset + */ + public void setUseLifeMonths (int UseLifeMonths); + + /** Get Usable Life - Months. + * Months of the usable life of the asset + */ + public int getUseLifeMonths(); + + /** Column name UseLifeYears */ + public static final String COLUMNNAME_UseLifeYears = "UseLifeYears"; + + /** Set Usable Life - Years. + * Years of the usable life of the asset + */ + public void setUseLifeYears (int UseLifeYears); + + /** Get Usable Life - Years. + * Years of the usable life of the asset + */ + public int getUseLifeYears(); + + /** Column name UseUnits */ + public static final String COLUMNNAME_UseUnits = "UseUnits"; + + /** Set Use units. + * Currently used units of the assets + */ + public void setUseUnits (int UseUnits); + + /** Get Use units. + * Currently used units of the assets + */ + public int getUseUnits(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name VersionNo */ + public static final String COLUMNNAME_VersionNo = "VersionNo"; + + /** Set Version No. + * Version Number + */ + public void setVersionNo (String VersionNo); + + /** Get Version No. + * Version Number + */ + public String getVersionNo(); +} diff --git a/base/src/org/compiere/model/I_A_Asset_Delivery.java b/base/src/org/compiere/model/I_A_Asset_Delivery.java new file mode 100644 index 0000000000..a086557484 --- /dev/null +++ b/base/src/org/compiere/model/I_A_Asset_Delivery.java @@ -0,0 +1,285 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_Asset_Delivery + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:31.625 + */ + public interface I_A_Asset_Delivery +{ + + /** TableName=A_Asset_Delivery */ + public static final String Table_Name = "A_Asset_Delivery"; + + /** AD_Table_ID=541 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name A_Asset_Delivery_ID */ + public static final String COLUMNNAME_A_Asset_Delivery_ID = "A_Asset_Delivery_ID"; + + /** Set Asset Delivery. + * Delivery of Asset + */ + public void setA_Asset_Delivery_ID (int A_Asset_Delivery_ID); + + /** Get Asset Delivery. + * Delivery of Asset + */ + public int getA_Asset_Delivery_ID(); + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + public I_A_Asset getI_A_Asset() throws Exception; + + /** Column name DeliveryConfirmation */ + public static final String COLUMNNAME_DeliveryConfirmation = "DeliveryConfirmation"; + + /** Set Delivery Confirmation. + * EMail Delivery confirmation + */ + public void setDeliveryConfirmation (String DeliveryConfirmation); + + /** Get Delivery Confirmation. + * EMail Delivery confirmation + */ + public String getDeliveryConfirmation(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name Lot */ + public static final String COLUMNNAME_Lot = "Lot"; + + /** Set Lot No. + * Lot number (alphanumeric) + */ + public void setLot (String Lot); + + /** Get Lot No. + * Lot number (alphanumeric) + */ + public String getLot(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_ProductDownload_ID */ + public static final String COLUMNNAME_M_ProductDownload_ID = "M_ProductDownload_ID"; + + /** Set Product Download. + * Product downloads + */ + public void setM_ProductDownload_ID (int M_ProductDownload_ID); + + /** Get Product Download. + * Product downloads + */ + public int getM_ProductDownload_ID(); + + public I_M_ProductDownload getI_M_ProductDownload() throws Exception; + + /** Column name MessageID */ + public static final String COLUMNNAME_MessageID = "MessageID"; + + /** Set Message ID. + * EMail Message ID + */ + public void setMessageID (String MessageID); + + /** Get Message ID. + * EMail Message ID + */ + public String getMessageID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Referrer */ + public static final String COLUMNNAME_Referrer = "Referrer"; + + /** Set Referrer. + * Referring web address + */ + public void setReferrer (String Referrer); + + /** Get Referrer. + * Referring web address + */ + public String getReferrer(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name SerNo */ + public static final String COLUMNNAME_SerNo = "SerNo"; + + /** Set Serial No. + * Product Serial Number + */ + public void setSerNo (String SerNo); + + /** Get Serial No. + * Product Serial Number + */ + public String getSerNo(); + + /** Column name URL */ + public static final String COLUMNNAME_URL = "URL"; + + /** Set URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL); + + /** Get URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public String getURL(); + + /** Column name VersionNo */ + public static final String COLUMNNAME_VersionNo = "VersionNo"; + + /** Set Version No. + * Version Number + */ + public void setVersionNo (String VersionNo); + + /** Get Version No. + * Version Number + */ + public String getVersionNo(); +} diff --git a/base/src/org/compiere/model/I_A_Asset_Group.java b/base/src/org/compiere/model/I_A_Asset_Group.java new file mode 100644 index 0000000000..187887cfe2 --- /dev/null +++ b/base/src/org/compiere/model/I_A_Asset_Group.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_Asset_Group + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.031 + */ + public interface I_A_Asset_Group +{ + + /** TableName=A_Asset_Group */ + public static final String Table_Name = "A_Asset_Group"; + + /** AD_Table_ID=542 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name A_Asset_Group_ID */ + public static final String COLUMNNAME_A_Asset_Group_ID = "A_Asset_Group_ID"; + + /** Set Asset Group. + * Group of Assets + */ + public void setA_Asset_Group_ID (int A_Asset_Group_ID); + + /** Get Asset Group. + * Group of Assets + */ + public int getA_Asset_Group_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsCreateAsActive */ + public static final String COLUMNNAME_IsCreateAsActive = "IsCreateAsActive"; + + /** Set Create As Active. + * Create Asset and activate it + */ + public void setIsCreateAsActive (boolean IsCreateAsActive); + + /** Get Create As Active. + * Create Asset and activate it + */ + public boolean isCreateAsActive(); + + /** Column name IsDepreciated */ + public static final String COLUMNNAME_IsDepreciated = "IsDepreciated"; + + /** Set Depreciate. + * The asset will be depreciated + */ + public void setIsDepreciated (boolean IsDepreciated); + + /** Get Depreciate. + * The asset will be depreciated + */ + public boolean isDepreciated(); + + /** Column name IsOneAssetPerUOM */ + public static final String COLUMNNAME_IsOneAssetPerUOM = "IsOneAssetPerUOM"; + + /** Set One Asset Per UOM. + * Create one asset per UOM + */ + public void setIsOneAssetPerUOM (boolean IsOneAssetPerUOM); + + /** Get One Asset Per UOM. + * Create one asset per UOM + */ + public boolean isOneAssetPerUOM(); + + /** Column name IsOwned */ + public static final String COLUMNNAME_IsOwned = "IsOwned"; + + /** Set Owned. + * The asset is owned by the organization + */ + public void setIsOwned (boolean IsOwned); + + /** Get Owned. + * The asset is owned by the organization + */ + public boolean isOwned(); + + /** Column name IsTrackIssues */ + public static final String COLUMNNAME_IsTrackIssues = "IsTrackIssues"; + + /** Set Track Issues. + * Enable tracking issues for this asset + */ + public void setIsTrackIssues (boolean IsTrackIssues); + + /** Get Track Issues. + * Enable tracking issues for this asset + */ + public boolean isTrackIssues(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_A_Asset_Retirement.java b/base/src/org/compiere/model/I_A_Asset_Retirement.java new file mode 100644 index 0000000000..2ba13014af --- /dev/null +++ b/base/src/org/compiere/model/I_A_Asset_Retirement.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_Asset_Retirement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.078 + */ + public interface I_A_Asset_Retirement +{ + + /** TableName=A_Asset_Retirement */ + public static final String Table_Name = "A_Asset_Retirement"; + + /** AD_Table_ID=540 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + public I_A_Asset getI_A_Asset() throws Exception; + + /** Column name A_Asset_Retirement_ID */ + public static final String COLUMNNAME_A_Asset_Retirement_ID = "A_Asset_Retirement_ID"; + + /** Set Asset Retirement. + * Internally used asset is not longer used. + */ + public void setA_Asset_Retirement_ID (int A_Asset_Retirement_ID); + + /** Get Asset Retirement. + * Internally used asset is not longer used. + */ + public int getA_Asset_Retirement_ID(); + + /** Column name AssetMarketValueAmt */ + public static final String COLUMNNAME_AssetMarketValueAmt = "AssetMarketValueAmt"; + + /** Set Market value Amount. + * Market value of the asset + */ + public void setAssetMarketValueAmt (BigDecimal AssetMarketValueAmt); + + /** Get Market value Amount. + * Market value of the asset + */ + public BigDecimal getAssetMarketValueAmt(); + + /** Column name AssetValueAmt */ + public static final String COLUMNNAME_AssetValueAmt = "AssetValueAmt"; + + /** Set Asset value. + * Book Value of the asset + */ + public void setAssetValueAmt (BigDecimal AssetValueAmt); + + /** Get Asset value. + * Book Value of the asset + */ + public BigDecimal getAssetValueAmt(); + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); +} diff --git a/base/src/org/compiere/model/I_A_Registration.java b/base/src/org/compiere/model/I_A_Registration.java new file mode 100644 index 0000000000..befcf526e5 --- /dev/null +++ b/base/src/org/compiere/model/I_A_Registration.java @@ -0,0 +1,266 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_Registration + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.093 + */ + public interface I_A_Registration +{ + + /** TableName=A_Registration */ + public static final String Table_Name = "A_Registration"; + + /** AD_Table_ID=651 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name A_Registration_ID */ + public static final String COLUMNNAME_A_Registration_ID = "A_Registration_ID"; + + /** Set Registration. + * User Asset Registration + */ + public void setA_Registration_ID (int A_Registration_ID); + + /** Get Registration. + * User Asset Registration + */ + public int getA_Registration_ID(); + + /** Column name AssetServiceDate */ + public static final String COLUMNNAME_AssetServiceDate = "AssetServiceDate"; + + /** Set In Service Date. + * Date when Asset was put into service + */ + public void setAssetServiceDate (Timestamp AssetServiceDate); + + /** Get In Service Date. + * Date when Asset was put into service + */ + public Timestamp getAssetServiceDate(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsAllowPublish */ + public static final String COLUMNNAME_IsAllowPublish = "IsAllowPublish"; + + /** Set Allowed to be Published. + * You allow to publish the information, not just statistical summary info + */ + public void setIsAllowPublish (boolean IsAllowPublish); + + /** Get Allowed to be Published. + * You allow to publish the information, not just statistical summary info + */ + public boolean isAllowPublish(); + + /** Column name IsInProduction */ + public static final String COLUMNNAME_IsInProduction = "IsInProduction"; + + /** Set In Production. + * The system is in production + */ + public void setIsInProduction (boolean IsInProduction); + + /** Get In Production. + * The system is in production + */ + public boolean isInProduction(); + + /** Column name IsRegistered */ + public static final String COLUMNNAME_IsRegistered = "IsRegistered"; + + /** Set Registered. + * The application is registered. + */ + public void setIsRegistered (boolean IsRegistered); + + /** Get Registered. + * The application is registered. + */ + public boolean isRegistered(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); +} diff --git a/base/src/org/compiere/model/I_A_RegistrationAttribute.java b/base/src/org/compiere/model/I_A_RegistrationAttribute.java new file mode 100644 index 0000000000..39372ceda6 --- /dev/null +++ b/base/src/org/compiere/model/I_A_RegistrationAttribute.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_RegistrationAttribute + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.187 + */ + public interface I_A_RegistrationAttribute +{ + + /** TableName=A_RegistrationAttribute */ + public static final String Table_Name = "A_RegistrationAttribute"; + + /** AD_Table_ID=652 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Reference_ID */ + public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + + /** Set Reference. + * System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID); + + /** Get Reference. + * System Reference and Validation + */ + public int getAD_Reference_ID(); + + /** Column name AD_Reference_Value_ID */ + public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; + + /** Set Reference Key. + * Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID); + + /** Get Reference Key. + * Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID(); + + /** Column name A_RegistrationAttribute_ID */ + public static final String COLUMNNAME_A_RegistrationAttribute_ID = "A_RegistrationAttribute_ID"; + + /** Set Registration Attribute. + * Asset Registration Attribute + */ + public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID); + + /** Get Registration Attribute. + * Asset Registration Attribute + */ + public int getA_RegistrationAttribute_ID(); + + /** Column name ColumnName */ + public static final String COLUMNNAME_ColumnName = "ColumnName"; + + /** Set DB Column Name. + * Name of the column in the database + */ + public void setColumnName (String ColumnName); + + /** Get DB Column Name. + * Name of the column in the database + */ + public String getColumnName(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_A_RegistrationProduct.java b/base/src/org/compiere/model/I_A_RegistrationProduct.java new file mode 100644 index 0000000000..fdafc9a935 --- /dev/null +++ b/base/src/org/compiere/model/I_A_RegistrationProduct.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_RegistrationProduct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.312 + */ + public interface I_A_RegistrationProduct +{ + + /** TableName=A_RegistrationProduct */ + public static final String Table_Name = "A_RegistrationProduct"; + + /** AD_Table_ID=715 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name A_RegistrationAttribute_ID */ + public static final String COLUMNNAME_A_RegistrationAttribute_ID = "A_RegistrationAttribute_ID"; + + /** Set Registration Attribute. + * Asset Registration Attribute + */ + public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID); + + /** Get Registration Attribute. + * Asset Registration Attribute + */ + public int getA_RegistrationAttribute_ID(); + + public I_A_RegistrationAttribute getI_A_RegistrationAttribute() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); +} diff --git a/base/src/org/compiere/model/I_A_RegistrationValue.java b/base/src/org/compiere/model/I_A_RegistrationValue.java new file mode 100644 index 0000000000..daf5f7f23a --- /dev/null +++ b/base/src/org/compiere/model/I_A_RegistrationValue.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for A_RegistrationValue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.359 + */ + public interface I_A_RegistrationValue +{ + + /** TableName=A_RegistrationValue */ + public static final String Table_Name = "A_RegistrationValue"; + + /** AD_Table_ID=653 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name A_RegistrationAttribute_ID */ + public static final String COLUMNNAME_A_RegistrationAttribute_ID = "A_RegistrationAttribute_ID"; + + /** Set Registration Attribute. + * Asset Registration Attribute + */ + public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID); + + /** Get Registration Attribute. + * Asset Registration Attribute + */ + public int getA_RegistrationAttribute_ID(); + + public I_A_RegistrationAttribute getI_A_RegistrationAttribute() throws Exception; + + /** Column name A_Registration_ID */ + public static final String COLUMNNAME_A_Registration_ID = "A_Registration_ID"; + + /** Set Registration. + * User Asset Registration + */ + public void setA_Registration_ID (int A_Registration_ID); + + /** Get Registration. + * User Asset Registration + */ + public int getA_Registration_ID(); + + public I_A_Registration getI_A_Registration() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_B_Bid.java b/base/src/org/compiere/model/I_B_Bid.java new file mode 100644 index 0000000000..6a28f19b54 --- /dev/null +++ b/base/src/org/compiere/model/I_B_Bid.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_Bid + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.375 + */ + public interface I_B_Bid +{ + + /** TableName=B_Bid */ + public static final String Table_Name = "B_Bid"; + + /** AD_Table_ID=686 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name B_Bid_ID */ + public static final String COLUMNNAME_B_Bid_ID = "B_Bid_ID"; + + /** Set Bid. + * Bid for a Topic + */ + public void setB_Bid_ID (int B_Bid_ID); + + /** Get Bid. + * Bid for a Topic + */ + public int getB_Bid_ID(); + + /** Column name B_BuyerFunds_ID */ + public static final String COLUMNNAME_B_BuyerFunds_ID = "B_BuyerFunds_ID"; + + /** Set Buyer Funds. + * Buyer Funds for Bids on Topics + */ + public void setB_BuyerFunds_ID (int B_BuyerFunds_ID); + + /** Get Buyer Funds. + * Buyer Funds for Bids on Topics + */ + public int getB_BuyerFunds_ID(); + + public I_B_BuyerFunds getI_B_BuyerFunds() throws Exception; + + /** Column name B_Topic_ID */ + public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; + + /** Set Topic. + * Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID); + + /** Get Topic. + * Auction Topic + */ + public int getB_Topic_ID(); + + public I_B_Topic getI_B_Topic() throws Exception; + + /** Column name IsWillingToCommit */ + public static final String COLUMNNAME_IsWillingToCommit = "IsWillingToCommit"; + + /** Set Willing to commit */ + public void setIsWillingToCommit (boolean IsWillingToCommit); + + /** Get Willing to commit */ + public boolean isWillingToCommit(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrivateNote */ + public static final String COLUMNNAME_PrivateNote = "PrivateNote"; + + /** Set Private Note. + * Private Note - not visible to the other parties + */ + public void setPrivateNote (String PrivateNote); + + /** Get Private Note. + * Private Note - not visible to the other parties + */ + public String getPrivateNote(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_B_BidComment.java b/base/src/org/compiere/model/I_B_BidComment.java new file mode 100644 index 0000000000..c7b844313c --- /dev/null +++ b/base/src/org/compiere/model/I_B_BidComment.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_BidComment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.39 + */ + public interface I_B_BidComment +{ + + /** TableName=B_BidComment */ + public static final String Table_Name = "B_BidComment"; + + /** AD_Table_ID=685 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name B_BidComment_ID */ + public static final String COLUMNNAME_B_BidComment_ID = "B_BidComment_ID"; + + /** Set Bid Comment. + * Make a comment to a Bid Topic + */ + public void setB_BidComment_ID (int B_BidComment_ID); + + /** Get Bid Comment. + * Make a comment to a Bid Topic + */ + public int getB_BidComment_ID(); + + /** Column name B_Topic_ID */ + public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; + + /** Set Topic. + * Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID); + + /** Get Topic. + * Auction Topic + */ + public int getB_Topic_ID(); + + public I_B_Topic getI_B_Topic() throws Exception; + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_B_Buyer.java b/base/src/org/compiere/model/I_B_Buyer.java new file mode 100644 index 0000000000..7f7ad688b4 --- /dev/null +++ b/base/src/org/compiere/model/I_B_Buyer.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_Buyer + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.421 + */ + public interface I_B_Buyer +{ + + /** TableName=B_Buyer */ + public static final String Table_Name = "B_Buyer"; + + /** AD_Table_ID=684 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_B_BuyerFunds.java b/base/src/org/compiere/model/I_B_BuyerFunds.java new file mode 100644 index 0000000000..2f5d2fc875 --- /dev/null +++ b/base/src/org/compiere/model/I_B_BuyerFunds.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_BuyerFunds + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.515 + */ + public interface I_B_BuyerFunds +{ + + /** TableName=B_BuyerFunds */ + public static final String Table_Name = "B_BuyerFunds"; + + /** AD_Table_ID=683 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name B_BuyerFunds_ID */ + public static final String COLUMNNAME_B_BuyerFunds_ID = "B_BuyerFunds_ID"; + + /** Set Buyer Funds. + * Buyer Funds for Bids on Topics + */ + public void setB_BuyerFunds_ID (int B_BuyerFunds_ID); + + /** Get Buyer Funds. + * Buyer Funds for Bids on Topics + */ + public int getB_BuyerFunds_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name CommittedAmt */ + public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; + + /** Set Committed Amount. + * The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt); + + /** Get Committed Amount. + * The (legal) commitment amount + */ + public BigDecimal getCommittedAmt(); + + /** Column name NonCommittedAmt */ + public static final String COLUMNNAME_NonCommittedAmt = "NonCommittedAmt"; + + /** Set Not Committed Aount. + * Amount not committed yet + */ + public void setNonCommittedAmt (BigDecimal NonCommittedAmt); + + /** Get Not Committed Aount. + * Amount not committed yet + */ + public BigDecimal getNonCommittedAmt(); +} diff --git a/base/src/org/compiere/model/I_B_Offer.java b/base/src/org/compiere/model/I_B_Offer.java new file mode 100644 index 0000000000..77430276a0 --- /dev/null +++ b/base/src/org/compiere/model/I_B_Offer.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_Offer + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.578 + */ + public interface I_B_Offer +{ + + /** TableName=B_Offer */ + public static final String Table_Name = "B_Offer"; + + /** AD_Table_ID=682 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name B_Offer_ID */ + public static final String COLUMNNAME_B_Offer_ID = "B_Offer_ID"; + + /** Set Offer. + * Offer for a Topic + */ + public void setB_Offer_ID (int B_Offer_ID); + + /** Get Offer. + * Offer for a Topic + */ + public int getB_Offer_ID(); + + /** Column name B_SellerFunds_ID */ + public static final String COLUMNNAME_B_SellerFunds_ID = "B_SellerFunds_ID"; + + /** Set Seller Funds. + * Seller Funds from Offers on Topics + */ + public void setB_SellerFunds_ID (int B_SellerFunds_ID); + + /** Get Seller Funds. + * Seller Funds from Offers on Topics + */ + public int getB_SellerFunds_ID(); + + public I_B_SellerFunds getI_B_SellerFunds() throws Exception; + + /** Column name B_Topic_ID */ + public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; + + /** Set Topic. + * Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID); + + /** Get Topic. + * Auction Topic + */ + public int getB_Topic_ID(); + + public I_B_Topic getI_B_Topic() throws Exception; + + /** Column name IsWillingToCommit */ + public static final String COLUMNNAME_IsWillingToCommit = "IsWillingToCommit"; + + /** Set Willing to commit */ + public void setIsWillingToCommit (boolean IsWillingToCommit); + + /** Get Willing to commit */ + public boolean isWillingToCommit(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrivateNote */ + public static final String COLUMNNAME_PrivateNote = "PrivateNote"; + + /** Set Private Note. + * Private Note - not visible to the other parties + */ + public void setPrivateNote (String PrivateNote); + + /** Get Private Note. + * Private Note - not visible to the other parties + */ + public String getPrivateNote(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_B_Seller.java b/base/src/org/compiere/model/I_B_Seller.java new file mode 100644 index 0000000000..2a474e7ab0 --- /dev/null +++ b/base/src/org/compiere/model/I_B_Seller.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_Seller + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.593 + */ + public interface I_B_Seller +{ + + /** TableName=B_Seller */ + public static final String Table_Name = "B_Seller"; + + /** AD_Table_ID=681 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsInternal */ + public static final String COLUMNNAME_IsInternal = "IsInternal"; + + /** Set Internal. + * Internal Organization + */ + public void setIsInternal (boolean IsInternal); + + /** Get Internal. + * Internal Organization + */ + public boolean isInternal(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_B_SellerFunds.java b/base/src/org/compiere/model/I_B_SellerFunds.java new file mode 100644 index 0000000000..7b8b257c26 --- /dev/null +++ b/base/src/org/compiere/model/I_B_SellerFunds.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_SellerFunds + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.625 + */ + public interface I_B_SellerFunds +{ + + /** TableName=B_SellerFunds */ + public static final String Table_Name = "B_SellerFunds"; + + /** AD_Table_ID=680 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name B_SellerFunds_ID */ + public static final String COLUMNNAME_B_SellerFunds_ID = "B_SellerFunds_ID"; + + /** Set Seller Funds. + * Seller Funds from Offers on Topics + */ + public void setB_SellerFunds_ID (int B_SellerFunds_ID); + + /** Get Seller Funds. + * Seller Funds from Offers on Topics + */ + public int getB_SellerFunds_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name CommittedAmt */ + public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; + + /** Set Committed Amount. + * The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt); + + /** Get Committed Amount. + * The (legal) commitment amount + */ + public BigDecimal getCommittedAmt(); + + /** Column name NonCommittedAmt */ + public static final String COLUMNNAME_NonCommittedAmt = "NonCommittedAmt"; + + /** Set Not Committed Aount. + * Amount not committed yet + */ + public void setNonCommittedAmt (BigDecimal NonCommittedAmt); + + /** Get Not Committed Aount. + * Amount not committed yet + */ + public BigDecimal getNonCommittedAmt(); +} diff --git a/base/src/org/compiere/model/I_B_Topic.java b/base/src/org/compiere/model/I_B_Topic.java new file mode 100644 index 0000000000..da019f7a01 --- /dev/null +++ b/base/src/org/compiere/model/I_B_Topic.java @@ -0,0 +1,226 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_Topic + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.64 + */ + public interface I_B_Topic +{ + + /** TableName=B_Topic */ + public static final String Table_Name = "B_Topic"; + + /** AD_Table_ID=679 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name B_TopicCategory_ID */ + public static final String COLUMNNAME_B_TopicCategory_ID = "B_TopicCategory_ID"; + + /** Set Topic Category. + * Auction Topic Category + */ + public void setB_TopicCategory_ID (int B_TopicCategory_ID); + + /** Get Topic Category. + * Auction Topic Category + */ + public int getB_TopicCategory_ID(); + + public I_B_TopicCategory getI_B_TopicCategory() throws Exception; + + /** Column name B_TopicType_ID */ + public static final String COLUMNNAME_B_TopicType_ID = "B_TopicType_ID"; + + /** Set Topic Type. + * Auction Topic Type + */ + public void setB_TopicType_ID (int B_TopicType_ID); + + /** Get Topic Type. + * Auction Topic Type + */ + public int getB_TopicType_ID(); + + public I_B_TopicType getI_B_TopicType() throws Exception; + + /** Column name B_Topic_ID */ + public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; + + /** Set Topic. + * Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID); + + /** Get Topic. + * Auction Topic + */ + public int getB_Topic_ID(); + + /** Column name DecisionDate */ + public static final String COLUMNNAME_DecisionDate = "DecisionDate"; + + /** Set Decision date */ + public void setDecisionDate (Timestamp DecisionDate); + + /** Get Decision date */ + public Timestamp getDecisionDate(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsPublished */ + public static final String COLUMNNAME_IsPublished = "IsPublished"; + + /** Set Published. + * The Topic is published and can be viewed + */ + public void setIsPublished (boolean IsPublished); + + /** Get Published. + * The Topic is published and can be viewed + */ + public boolean isPublished(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TextDetails */ + public static final String COLUMNNAME_TextDetails = "TextDetails"; + + /** Set Details */ + public void setTextDetails (String TextDetails); + + /** Get Details */ + public String getTextDetails(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name TopicAction */ + public static final String COLUMNNAME_TopicAction = "TopicAction"; + + /** Set Topic Action */ + public void setTopicAction (String TopicAction); + + /** Get Topic Action */ + public String getTopicAction(); + + /** Column name TopicStatus */ + public static final String COLUMNNAME_TopicStatus = "TopicStatus"; + + /** Set Topic Status */ + public void setTopicStatus (String TopicStatus); + + /** Get Topic Status */ + public String getTopicStatus(); +} diff --git a/base/src/org/compiere/model/I_B_TopicCategory.java b/base/src/org/compiere/model/I_B_TopicCategory.java new file mode 100644 index 0000000000..0989c61c57 --- /dev/null +++ b/base/src/org/compiere/model/I_B_TopicCategory.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_TopicCategory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.687 + */ + public interface I_B_TopicCategory +{ + + /** TableName=B_TopicCategory */ + public static final String Table_Name = "B_TopicCategory"; + + /** AD_Table_ID=691 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name B_TopicCategory_ID */ + public static final String COLUMNNAME_B_TopicCategory_ID = "B_TopicCategory_ID"; + + /** Set Topic Category. + * Auction Topic Category + */ + public void setB_TopicCategory_ID (int B_TopicCategory_ID); + + /** Get Topic Category. + * Auction Topic Category + */ + public int getB_TopicCategory_ID(); + + /** Column name B_TopicType_ID */ + public static final String COLUMNNAME_B_TopicType_ID = "B_TopicType_ID"; + + /** Set Topic Type. + * Auction Topic Type + */ + public void setB_TopicType_ID (int B_TopicType_ID); + + /** Get Topic Type. + * Auction Topic Type + */ + public int getB_TopicType_ID(); + + public I_B_TopicType getI_B_TopicType() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_B_TopicType.java b/base/src/org/compiere/model/I_B_TopicType.java new file mode 100644 index 0000000000..2a1d486da9 --- /dev/null +++ b/base/src/org/compiere/model/I_B_TopicType.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for B_TopicType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.703 + */ + public interface I_B_TopicType +{ + + /** TableName=B_TopicType */ + public static final String Table_Name = "B_TopicType"; + + /** AD_Table_ID=690 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AuctionType */ + public static final String COLUMNNAME_AuctionType = "AuctionType"; + + /** Set Auction Type */ + public void setAuctionType (String AuctionType); + + /** Get Auction Type */ + public String getAuctionType(); + + /** Column name B_TopicType_ID */ + public static final String COLUMNNAME_B_TopicType_ID = "B_TopicType_ID"; + + /** Set Topic Type. + * Auction Topic Type + */ + public void setB_TopicType_ID (int B_TopicType_ID); + + /** Get Topic Type. + * Auction Topic Type + */ + public int getB_TopicType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_ProductMember_ID */ + public static final String COLUMNNAME_M_ProductMember_ID = "M_ProductMember_ID"; + + /** Set Membership. + * Product used to deternine the price of the membership for the topic type + */ + public void setM_ProductMember_ID (int M_ProductMember_ID); + + /** Get Membership. + * Product used to deternine the price of the membership for the topic type + */ + public int getM_ProductMember_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_AccessContainer.java b/base/src/org/compiere/model/I_CM_AccessContainer.java new file mode 100644 index 0000000000..000818e26f --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessContainer.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessContainer + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:32.734 + */ + public interface I_CM_AccessContainer +{ + + /** TableName=CM_AccessContainer */ + public static final String Table_Name = "CM_AccessContainer"; + + /** AD_Table_ID=888 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception; + + /** Column name CM_Container_ID */ + public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; + + /** Set Web Container. + * Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID); + + /** Get Web Container. + * Web Container contains content like images, text etc. + */ + public int getCM_Container_ID(); + + public I_CM_Container getI_CM_Container() throws Exception; +} diff --git a/base/src/org/compiere/model/I_CM_AccessListBPGroup.java b/base/src/org/compiere/model/I_CM_AccessListBPGroup.java new file mode 100644 index 0000000000..b646353a7c --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessListBPGroup.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessListBPGroup + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.187 + */ + public interface I_CM_AccessListBPGroup +{ + + /** TableName=CM_AccessListBPGroup */ + public static final String Table_Name = "CM_AccessListBPGroup"; + + /** AD_Table_ID=886 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception; + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; +} diff --git a/base/src/org/compiere/model/I_CM_AccessListRole.java b/base/src/org/compiere/model/I_CM_AccessListRole.java new file mode 100644 index 0000000000..b18ca49dc9 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessListRole.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessListRole + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.234 + */ + public interface I_CM_AccessListRole +{ + + /** TableName=CM_AccessListRole */ + public static final String Table_Name = "CM_AccessListRole"; + + /** AD_Table_ID=887 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception; +} diff --git a/base/src/org/compiere/model/I_CM_AccessMedia.java b/base/src/org/compiere/model/I_CM_AccessMedia.java new file mode 100644 index 0000000000..c89d4ce2be --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessMedia.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessMedia + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.343 + */ + public interface I_CM_AccessMedia +{ + + /** TableName=CM_AccessMedia */ + public static final String Table_Name = "CM_AccessMedia"; + + /** AD_Table_ID=890 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception; + + /** Column name CM_Media_ID */ + public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; + + /** Set Media Item. + * Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID); + + /** Get Media Item. + * Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID(); + + public I_CM_Media getI_CM_Media() throws Exception; +} diff --git a/base/src/org/compiere/model/I_CM_AccessNewsChannel.java b/base/src/org/compiere/model/I_CM_AccessNewsChannel.java new file mode 100644 index 0000000000..0cacdf42d4 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessNewsChannel.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessNewsChannel + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.375 + */ + public interface I_CM_AccessNewsChannel +{ + + /** TableName=CM_AccessNewsChannel */ + public static final String Table_Name = "CM_AccessNewsChannel"; + + /** AD_Table_ID=891 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception; + + /** Column name CM_NewsChannel_ID */ + public static final String COLUMNNAME_CM_NewsChannel_ID = "CM_NewsChannel_ID"; + + /** Set News Channel. + * News channel for rss feed + */ + public void setCM_NewsChannel_ID (int CM_NewsChannel_ID); + + /** Get News Channel. + * News channel for rss feed + */ + public int getCM_NewsChannel_ID(); + + public I_CM_NewsChannel getI_CM_NewsChannel() throws Exception; +} diff --git a/base/src/org/compiere/model/I_CM_AccessProfile.java b/base/src/org/compiere/model/I_CM_AccessProfile.java new file mode 100644 index 0000000000..7a1d945f13 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessProfile.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessProfile + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.437 + */ + public interface I_CM_AccessProfile +{ + + /** TableName=CM_AccessProfile */ + public static final String Table_Name = "CM_AccessProfile"; + + /** AD_Table_ID=885 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsExclude */ + public static final String COLUMNNAME_IsExclude = "IsExclude"; + + /** Set Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude); + + /** Get Exclude. + * Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_AccessStage.java b/base/src/org/compiere/model/I_CM_AccessStage.java new file mode 100644 index 0000000000..2c2b22f1cd --- /dev/null +++ b/base/src/org/compiere/model/I_CM_AccessStage.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_AccessStage + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.484 + */ + public interface I_CM_AccessStage +{ + + /** TableName=CM_AccessStage */ + public static final String Table_Name = "CM_AccessStage"; + + /** AD_Table_ID=889 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_AccessProfile_ID */ + public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; + + /** Set Web Access Profile. + * Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID); + + /** Get Web Access Profile. + * Web Access Profile + */ + public int getCM_AccessProfile_ID(); + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception; + + /** Column name CM_CStage_ID */ + public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; + + /** Set Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID); + + /** Get Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID(); + + public I_CM_CStage getI_CM_CStage() throws Exception; +} diff --git a/base/src/org/compiere/model/I_CM_Ad.java b/base/src/org/compiere/model/I_CM_Ad.java new file mode 100644 index 0000000000..d8f45dc6d3 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Ad.java @@ -0,0 +1,298 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Ad + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.593 + */ + public interface I_CM_Ad +{ + + /** TableName=CM_Ad */ + public static final String Table_Name = "CM_Ad"; + + /** AD_Table_ID=858 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name ActualClick */ + public static final String COLUMNNAME_ActualClick = "ActualClick"; + + /** Set Actual Click Count. + * How many clicks have been counted + */ + public void setActualClick (int ActualClick); + + /** Get Actual Click Count. + * How many clicks have been counted + */ + public int getActualClick(); + + /** Column name ActualImpression */ + public static final String COLUMNNAME_ActualImpression = "ActualImpression"; + + /** Set Actual Impression Count. + * How many impressions have been counted + */ + public void setActualImpression (int ActualImpression); + + /** Get Actual Impression Count. + * How many impressions have been counted + */ + public int getActualImpression(); + + /** Column name CM_Ad_Cat_ID */ + public static final String COLUMNNAME_CM_Ad_Cat_ID = "CM_Ad_Cat_ID"; + + /** Set Advertisement Category. + * Advertisement Category like Banner Homepage + */ + public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID); + + /** Get Advertisement Category. + * Advertisement Category like Banner Homepage + */ + public int getCM_Ad_Cat_ID(); + + public I_CM_Ad_Cat getI_CM_Ad_Cat() throws Exception; + + /** Column name CM_Ad_ID */ + public static final String COLUMNNAME_CM_Ad_ID = "CM_Ad_ID"; + + /** Set Advertisement. + * An Advertisement is something like a banner + */ + public void setCM_Ad_ID (int CM_Ad_ID); + + /** Get Advertisement. + * An Advertisement is something like a banner + */ + public int getCM_Ad_ID(); + + /** Column name CM_Media_ID */ + public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; + + /** Set Media Item. + * Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID); + + /** Get Media Item. + * Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID(); + + public I_CM_Media getI_CM_Media() throws Exception; + + /** Column name ContentHTML */ + public static final String COLUMNNAME_ContentHTML = "ContentHTML"; + + /** Set Content HTML. + * Contains the content itself + */ + public void setContentHTML (String ContentHTML); + + /** Get Content HTML. + * Contains the content itself + */ + public String getContentHTML(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EndDate */ + public static final String COLUMNNAME_EndDate = "EndDate"; + + /** Set End Date. + * Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate); + + /** Get End Date. + * Last effective date (inclusive) + */ + public Timestamp getEndDate(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsAdFlag */ + public static final String COLUMNNAME_IsAdFlag = "IsAdFlag"; + + /** Set Special AD Flag. + * Do we need to specially mention this ad? + */ + public void setIsAdFlag (boolean IsAdFlag); + + /** Get Special AD Flag. + * Do we need to specially mention this ad? + */ + public boolean isAdFlag(); + + /** Column name IsLogged */ + public static final String COLUMNNAME_IsLogged = "IsLogged"; + + /** Set Logging. + * Do we need to log the banner impressions and clicks? (needs much performance) + */ + public void setIsLogged (boolean IsLogged); + + /** Get Logging. + * Do we need to log the banner impressions and clicks? (needs much performance) + */ + public boolean isLogged(); + + /** Column name MaxClick */ + public static final String COLUMNNAME_MaxClick = "MaxClick"; + + /** Set Max Click Count. + * Maximum Click Count until banner is deactivated + */ + public void setMaxClick (int MaxClick); + + /** Get Max Click Count. + * Maximum Click Count until banner is deactivated + */ + public int getMaxClick(); + + /** Column name MaxImpression */ + public static final String COLUMNNAME_MaxImpression = "MaxImpression"; + + /** Set Max Impression Count. + * Maximum Impression Count until banner is deactivated + */ + public void setMaxImpression (int MaxImpression); + + /** Get Max Impression Count. + * Maximum Impression Count until banner is deactivated + */ + public int getMaxImpression(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); + + /** Column name StartImpression */ + public static final String COLUMNNAME_StartImpression = "StartImpression"; + + /** Set Start Count Impression. + * For rotation we need a start count + */ + public void setStartImpression (int StartImpression); + + /** Get Start Count Impression. + * For rotation we need a start count + */ + public int getStartImpression(); + + /** Column name TargetURL */ + public static final String COLUMNNAME_TargetURL = "TargetURL"; + + /** Set Target URL. + * URL for the Target + */ + public void setTargetURL (String TargetURL); + + /** Get Target URL. + * URL for the Target + */ + public String getTargetURL(); + + /** Column name Target_Frame */ + public static final String COLUMNNAME_Target_Frame = "Target_Frame"; + + /** Set Target Frame. + * Which target should be used if user clicks? + */ + public void setTarget_Frame (String Target_Frame); + + /** Get Target Frame. + * Which target should be used if user clicks? + */ + public String getTarget_Frame(); +} diff --git a/base/src/org/compiere/model/I_CM_Ad_Cat.java b/base/src/org/compiere/model/I_CM_Ad_Cat.java new file mode 100644 index 0000000000..ba1b1cac43 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Ad_Cat.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Ad_Cat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.625 + */ + public interface I_CM_Ad_Cat +{ + + /** TableName=CM_Ad_Cat */ + public static final String Table_Name = "CM_Ad_Cat"; + + /** AD_Table_ID=856 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Ad_Cat_ID */ + public static final String COLUMNNAME_CM_Ad_Cat_ID = "CM_Ad_Cat_ID"; + + /** Set Advertisement Category. + * Advertisement Category like Banner Homepage + */ + public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID); + + /** Get Advertisement Category. + * Advertisement Category like Banner Homepage + */ + public int getCM_Ad_Cat_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_BroadcastServer.java b/base/src/org/compiere/model/I_CM_BroadcastServer.java new file mode 100644 index 0000000000..a0e9e01b7e --- /dev/null +++ b/base/src/org/compiere/model/I_CM_BroadcastServer.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_BroadcastServer + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:33.64 + */ + public interface I_CM_BroadcastServer +{ + + /** TableName=CM_BroadcastServer */ + public static final String Table_Name = "CM_BroadcastServer"; + + /** AD_Table_ID=893 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_BroadcastServer_ID */ + public static final String COLUMNNAME_CM_BroadcastServer_ID = "CM_BroadcastServer_ID"; + + /** Set Broadcast Server. + * Web Broadcast Server + */ + public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID); + + /** Get Broadcast Server. + * Web Broadcast Server + */ + public int getCM_BroadcastServer_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IP_Address */ + public static final String COLUMNNAME_IP_Address = "IP_Address"; + + /** Set IP Address. + * Defines the IP address to transfer data to + */ + public void setIP_Address (String IP_Address); + + /** Get IP Address. + * Defines the IP address to transfer data to + */ + public String getIP_Address(); + + /** Column name LastSynchronized */ + public static final String COLUMNNAME_LastSynchronized = "LastSynchronized"; + + /** Set Last Synchronized. + * Date when last synchronized + */ + public void setLastSynchronized (Timestamp LastSynchronized); + + /** Get Last Synchronized. + * Date when last synchronized + */ + public Timestamp getLastSynchronized(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_CStage.java b/base/src/org/compiere/model/I_CM_CStage.java new file mode 100644 index 0000000000..1c367662c0 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_CStage.java @@ -0,0 +1,439 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_CStage + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.109 + */ + public interface I_CM_CStage +{ + + /** TableName=CM_CStage */ + public static final String Table_Name = "CM_CStage"; + + /** AD_Table_ID=866 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_CStageLink_ID */ + public static final String COLUMNNAME_CM_CStageLink_ID = "CM_CStageLink_ID"; + + /** Set Container Link. + * Stage Link to another Container in the Web Project + */ + public void setCM_CStageLink_ID (int CM_CStageLink_ID); + + /** Get Container Link. + * Stage Link to another Container in the Web Project + */ + public int getCM_CStageLink_ID(); + + /** Column name CM_CStage_ID */ + public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; + + /** Set Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID); + + /** Get Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID(); + + /** Column name CM_Template_ID */ + public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; + + /** Set Template. + * Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID); + + /** Get Template. + * Template defines how content is displayed + */ + public int getCM_Template_ID(); + + public I_CM_Template getI_CM_Template() throws Exception; + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name ContainerLinkURL */ + public static final String COLUMNNAME_ContainerLinkURL = "ContainerLinkURL"; + + /** Set External Link (URL). + * External Link (IRL) for the Container + */ + public void setContainerLinkURL (String ContainerLinkURL); + + /** Get External Link (URL). + * External Link (IRL) for the Container + */ + public String getContainerLinkURL(); + + /** Column name ContainerType */ + public static final String COLUMNNAME_ContainerType = "ContainerType"; + + /** Set Web Container Type. + * Web Container Type + */ + public void setContainerType (String ContainerType); + + /** Get Web Container Type. + * Web Container Type + */ + public String getContainerType(); + + /** Column name ContainerXML */ + public static final String COLUMNNAME_ContainerXML = "ContainerXML"; + + /** Set ContainerXML. + * Autogenerated Containerdefinition as XML Code + */ + public void setContainerXML (String ContainerXML); + + /** Get ContainerXML. + * Autogenerated Containerdefinition as XML Code + */ + public String getContainerXML(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsIndexed */ + public static final String COLUMNNAME_IsIndexed = "IsIndexed"; + + /** Set Indexed. + * Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed); + + /** Get Indexed. + * Index the document for the internal search engine + */ + public boolean isIndexed(); + + /** Column name IsModified */ + public static final String COLUMNNAME_IsModified = "IsModified"; + + /** Set Modified. + * The record is modified + */ + public void setIsModified (boolean IsModified); + + /** Get Modified. + * The record is modified + */ + public boolean isModified(); + + /** Column name IsSecure */ + public static final String COLUMNNAME_IsSecure = "IsSecure"; + + /** Set Secure content. + * Defines whether content needs to get encrypted + */ + public void setIsSecure (boolean IsSecure); + + /** Get Secure content. + * Defines whether content needs to get encrypted + */ + public boolean isSecure(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Meta_Author */ + public static final String COLUMNNAME_Meta_Author = "Meta_Author"; + + /** Set Meta Author. + * Author of the content + */ + public void setMeta_Author (String Meta_Author); + + /** Get Meta Author. + * Author of the content + */ + public String getMeta_Author(); + + /** Column name Meta_Content */ + public static final String COLUMNNAME_Meta_Content = "Meta_Content"; + + /** Set Meta Content Type. + * Defines the type of content i.e. "text/html; + charset=UTF-8" + */ + public void setMeta_Content (String Meta_Content); + + /** Get Meta Content Type. + * Defines the type of content i.e. "text/html; + charset=UTF-8" + */ + public String getMeta_Content(); + + /** Column name Meta_Copyright */ + public static final String COLUMNNAME_Meta_Copyright = "Meta_Copyright"; + + /** Set Meta Copyright. + * Contains Copyright information for the content + */ + public void setMeta_Copyright (String Meta_Copyright); + + /** Get Meta Copyright. + * Contains Copyright information for the content + */ + public String getMeta_Copyright(); + + /** Column name Meta_Description */ + public static final String COLUMNNAME_Meta_Description = "Meta_Description"; + + /** Set Meta Description. + * Meta info describing the contents of the page + */ + public void setMeta_Description (String Meta_Description); + + /** Get Meta Description. + * Meta info describing the contents of the page + */ + public String getMeta_Description(); + + /** Column name Meta_Keywords */ + public static final String COLUMNNAME_Meta_Keywords = "Meta_Keywords"; + + /** Set Meta Keywords. + * Contains the keywords for the content + */ + public void setMeta_Keywords (String Meta_Keywords); + + /** Get Meta Keywords. + * Contains the keywords for the content + */ + public String getMeta_Keywords(); + + /** Column name Meta_Language */ + public static final String COLUMNNAME_Meta_Language = "Meta_Language"; + + /** Set Meta Language. + * Language HTML Meta Tag + */ + public void setMeta_Language (String Meta_Language); + + /** Get Meta Language. + * Language HTML Meta Tag + */ + public String getMeta_Language(); + + /** Column name Meta_Publisher */ + public static final String COLUMNNAME_Meta_Publisher = "Meta_Publisher"; + + /** Set Meta Publisher. + * Meta Publisher defines the publisher of the content + */ + public void setMeta_Publisher (String Meta_Publisher); + + /** Get Meta Publisher. + * Meta Publisher defines the publisher of the content + */ + public String getMeta_Publisher(); + + /** Column name Meta_RobotsTag */ + public static final String COLUMNNAME_Meta_RobotsTag = "Meta_RobotsTag"; + + /** Set Meta RobotsTag. + * RobotsTag defines how search robots should handle this content + */ + public void setMeta_RobotsTag (String Meta_RobotsTag); + + /** Get Meta RobotsTag. + * RobotsTag defines how search robots should handle this content + */ + public String getMeta_RobotsTag(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Notice */ + public static final String COLUMNNAME_Notice = "Notice"; + + /** Set Notice. + * Contains last write notice + */ + public void setNotice (String Notice); + + /** Get Notice. + * Contains last write notice + */ + public String getNotice(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name RelativeURL */ + public static final String COLUMNNAME_RelativeURL = "RelativeURL"; + + /** Set Relative URL. + * Contains the relative URL for the container + */ + public void setRelativeURL (String RelativeURL); + + /** Get Relative URL. + * Contains the relative URL for the container + */ + public String getRelativeURL(); + + /** Column name StructureXML */ + public static final String COLUMNNAME_StructureXML = "StructureXML"; + + /** Set StructureXML. + * Autogenerated Containerdefinition as XML Code + */ + public void setStructureXML (String StructureXML); + + /** Get StructureXML. + * Autogenerated Containerdefinition as XML Code + */ + public String getStructureXML(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); +} diff --git a/base/src/org/compiere/model/I_CM_CStageTTable.java b/base/src/org/compiere/model/I_CM_CStageTTable.java new file mode 100644 index 0000000000..357afb7acb --- /dev/null +++ b/base/src/org/compiere/model/I_CM_CStageTTable.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_CStageTTable + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.234 + */ + public interface I_CM_CStageTTable +{ + + /** TableName=CM_CStageTTable */ + public static final String Table_Name = "CM_CStageTTable"; + + /** AD_Table_ID=881 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_CStageTTable_ID */ + public static final String COLUMNNAME_CM_CStageTTable_ID = "CM_CStageTTable_ID"; + + /** Set Stage T.Table. + * Containet Stage Template Table + */ + public void setCM_CStageTTable_ID (int CM_CStageTTable_ID); + + /** Get Stage T.Table. + * Containet Stage Template Table + */ + public int getCM_CStageTTable_ID(); + + /** Column name CM_CStage_ID */ + public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; + + /** Set Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID); + + /** Get Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID(); + + public I_CM_CStage getI_CM_CStage() throws Exception; + + /** Column name CM_TemplateTable_ID */ + public static final String COLUMNNAME_CM_TemplateTable_ID = "CM_TemplateTable_ID"; + + /** Set Template Table. + * CM Template Table Link + */ + public void setCM_TemplateTable_ID (int CM_TemplateTable_ID); + + /** Get Template Table. + * CM Template Table Link + */ + public int getCM_TemplateTable_ID(); + + public I_CM_TemplateTable getI_CM_TemplateTable() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OtherClause */ + public static final String COLUMNNAME_OtherClause = "OtherClause"; + + /** Set Other SQL Clause. + * Other SQL Clause + */ + public void setOtherClause (String OtherClause); + + /** Get Other SQL Clause. + * Other SQL Clause + */ + public String getOtherClause(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_CM_CStage_Element.java b/base/src/org/compiere/model/I_CM_CStage_Element.java new file mode 100644 index 0000000000..f717013611 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_CStage_Element.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_CStage_Element + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.25 + */ + public interface I_CM_CStage_Element +{ + + /** TableName=CM_CStage_Element */ + public static final String Table_Name = "CM_CStage_Element"; + + /** AD_Table_ID=867 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_CStage_Element_ID */ + public static final String COLUMNNAME_CM_CStage_Element_ID = "CM_CStage_Element_ID"; + + /** Set Container Stage Element. + * Container element i.e. Headline, Content, Footer etc. + */ + public void setCM_CStage_Element_ID (int CM_CStage_Element_ID); + + /** Get Container Stage Element. + * Container element i.e. Headline, Content, Footer etc. + */ + public int getCM_CStage_Element_ID(); + + /** Column name CM_CStage_ID */ + public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; + + /** Set Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID); + + /** Get Web Container Stage. + * Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID(); + + public I_CM_CStage getI_CM_CStage() throws Exception; + + /** Column name ContentHTML */ + public static final String COLUMNNAME_ContentHTML = "ContentHTML"; + + /** Set Content HTML. + * Contains the content itself + */ + public void setContentHTML (String ContentHTML); + + /** Get Content HTML. + * Contains the content itself + */ + public String getContentHTML(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_Chat.java b/base/src/org/compiere/model/I_CM_Chat.java new file mode 100644 index 0000000000..1cdfaed848 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Chat.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Chat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.265 + */ + public interface I_CM_Chat +{ + + /** TableName=CM_Chat */ + public static final String Table_Name = "CM_Chat"; + + /** AD_Table_ID=876 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name CM_ChatType_ID */ + public static final String COLUMNNAME_CM_ChatType_ID = "CM_ChatType_ID"; + + /** Set Chat Type. + * Type of discussion / chat + */ + public void setCM_ChatType_ID (int CM_ChatType_ID); + + /** Get Chat Type. + * Type of discussion / chat + */ + public int getCM_ChatType_ID(); + + public I_CM_ChatType getI_CM_ChatType() throws Exception; + + /** Column name CM_Chat_ID */ + public static final String COLUMNNAME_CM_Chat_ID = "CM_Chat_ID"; + + /** Set Chat. + * Chat or discussion thread + */ + public void setCM_Chat_ID (int CM_Chat_ID); + + /** Get Chat. + * Chat or discussion thread + */ + public int getCM_Chat_ID(); + + /** Column name ConfidentialType */ + public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + + /** Set Confidentiality. + * Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType); + + /** Get Confidentiality. + * Type of Confidentiality + */ + public String getConfidentialType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ModerationType */ + public static final String COLUMNNAME_ModerationType = "ModerationType"; + + /** Set Moderation Type. + * Type of moderation + */ + public void setModerationType (String ModerationType); + + /** Get Moderation Type. + * Type of moderation + */ + public String getModerationType(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); +} diff --git a/base/src/org/compiere/model/I_CM_ChatEntry.java b/base/src/org/compiere/model/I_CM_ChatEntry.java new file mode 100644 index 0000000000..3b568bb929 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_ChatEntry.java @@ -0,0 +1,194 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_ChatEntry + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.312 + */ + public interface I_CM_ChatEntry +{ + + /** TableName=CM_ChatEntry */ + public static final String Table_Name = "CM_ChatEntry"; + + /** AD_Table_ID=877 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name CM_ChatEntryGrandParent_ID */ + public static final String COLUMNNAME_CM_ChatEntryGrandParent_ID = "CM_ChatEntryGrandParent_ID"; + + /** Set Chat Entry Grandparent. + * Link to Grand Parent (root level) + */ + public void setCM_ChatEntryGrandParent_ID (int CM_ChatEntryGrandParent_ID); + + /** Get Chat Entry Grandparent. + * Link to Grand Parent (root level) + */ + public int getCM_ChatEntryGrandParent_ID(); + + /** Column name CM_ChatEntryParent_ID */ + public static final String COLUMNNAME_CM_ChatEntryParent_ID = "CM_ChatEntryParent_ID"; + + /** Set Chat Entry Parent. + * Link to direct Parent + */ + public void setCM_ChatEntryParent_ID (int CM_ChatEntryParent_ID); + + /** Get Chat Entry Parent. + * Link to direct Parent + */ + public int getCM_ChatEntryParent_ID(); + + /** Column name CM_ChatEntry_ID */ + public static final String COLUMNNAME_CM_ChatEntry_ID = "CM_ChatEntry_ID"; + + /** Set Chat Entry. + * Individual Chat / Discussion Entry + */ + public void setCM_ChatEntry_ID (int CM_ChatEntry_ID); + + /** Get Chat Entry. + * Individual Chat / Discussion Entry + */ + public int getCM_ChatEntry_ID(); + + /** Column name CM_Chat_ID */ + public static final String COLUMNNAME_CM_Chat_ID = "CM_Chat_ID"; + + /** Set Chat. + * Chat or discussion thread + */ + public void setCM_Chat_ID (int CM_Chat_ID); + + /** Get Chat. + * Chat or discussion thread + */ + public int getCM_Chat_ID(); + + public I_CM_Chat getI_CM_Chat() throws Exception; + + /** Column name CharacterData */ + public static final String COLUMNNAME_CharacterData = "CharacterData"; + + /** Set Character Data. + * Long Character Field + */ + public void setCharacterData (String CharacterData); + + /** Get Character Data. + * Long Character Field + */ + public String getCharacterData(); + + /** Column name ChatEntryType */ + public static final String COLUMNNAME_ChatEntryType = "ChatEntryType"; + + /** Set Chat Entry Type. + * Type of Chat/Forum Entry + */ + public void setChatEntryType (String ChatEntryType); + + /** Get Chat Entry Type. + * Type of Chat/Forum Entry + */ + public String getChatEntryType(); + + /** Column name ConfidentialType */ + public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + + /** Set Confidentiality. + * Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType); + + /** Get Confidentiality. + * Type of Confidentiality + */ + public String getConfidentialType(); + + /** Column name ModeratorStatus */ + public static final String COLUMNNAME_ModeratorStatus = "ModeratorStatus"; + + /** Set Moderation Status. + * Status of Moderation + */ + public void setModeratorStatus (String ModeratorStatus); + + /** Get Moderation Status. + * Status of Moderation + */ + public String getModeratorStatus(); + + /** Column name Subject */ + public static final String COLUMNNAME_Subject = "Subject"; + + /** Set Subject. + * Email Message Subject + */ + public void setSubject (String Subject); + + /** Get Subject. + * Email Message Subject + */ + public String getSubject(); +} diff --git a/base/src/org/compiere/model/I_CM_ChatType.java b/base/src/org/compiere/model/I_CM_ChatType.java new file mode 100644 index 0000000000..84e7e125d7 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_ChatType.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_ChatType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.375 + */ + public interface I_CM_ChatType +{ + + /** TableName=CM_ChatType */ + public static final String Table_Name = "CM_ChatType"; + + /** AD_Table_ID=874 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name CM_ChatType_ID */ + public static final String COLUMNNAME_CM_ChatType_ID = "CM_ChatType_ID"; + + /** Set Chat Type. + * Type of discussion / chat + */ + public void setCM_ChatType_ID (int CM_ChatType_ID); + + /** Get Chat Type. + * Type of discussion / chat + */ + public int getCM_ChatType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ModerationType */ + public static final String COLUMNNAME_ModerationType = "ModerationType"; + + /** Set Moderation Type. + * Type of moderation + */ + public void setModerationType (String ModerationType); + + /** Get Moderation Type. + * Type of moderation + */ + public String getModerationType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_ChatTypeUpdate.java b/base/src/org/compiere/model/I_CM_ChatTypeUpdate.java new file mode 100644 index 0000000000..5224c519ef --- /dev/null +++ b/base/src/org/compiere/model/I_CM_ChatTypeUpdate.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_ChatTypeUpdate + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.421 + */ + public interface I_CM_ChatTypeUpdate +{ + + /** TableName=CM_ChatTypeUpdate */ + public static final String Table_Name = "CM_ChatTypeUpdate"; + + /** AD_Table_ID=875 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name CM_ChatType_ID */ + public static final String COLUMNNAME_CM_ChatType_ID = "CM_ChatType_ID"; + + /** Set Chat Type. + * Type of discussion / chat + */ + public void setCM_ChatType_ID (int CM_ChatType_ID); + + /** Get Chat Type. + * Type of discussion / chat + */ + public int getCM_ChatType_ID(); + + public I_CM_ChatType getI_CM_ChatType() throws Exception; + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); +} diff --git a/base/src/org/compiere/model/I_CM_ChatUpdate.java b/base/src/org/compiere/model/I_CM_ChatUpdate.java new file mode 100644 index 0000000000..d97cd8e328 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_ChatUpdate.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_ChatUpdate + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.5 + */ + public interface I_CM_ChatUpdate +{ + + /** TableName=CM_ChatUpdate */ + public static final String Table_Name = "CM_ChatUpdate"; + + /** AD_Table_ID=878 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name CM_Chat_ID */ + public static final String COLUMNNAME_CM_Chat_ID = "CM_Chat_ID"; + + /** Set Chat. + * Chat or discussion thread + */ + public void setCM_Chat_ID (int CM_Chat_ID); + + /** Get Chat. + * Chat or discussion thread + */ + public int getCM_Chat_ID(); + + public I_CM_Chat getI_CM_Chat() throws Exception; + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); +} diff --git a/base/src/org/compiere/model/I_CM_Container.java b/base/src/org/compiere/model/I_CM_Container.java new file mode 100644 index 0000000000..5d3b098968 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Container.java @@ -0,0 +1,417 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Container + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.562 + */ + public interface I_CM_Container +{ + + /** TableName=CM_Container */ + public static final String Table_Name = "CM_Container"; + + /** AD_Table_ID=855 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_ContainerLink_ID */ + public static final String COLUMNNAME_CM_ContainerLink_ID = "CM_ContainerLink_ID"; + + /** Set Container Link. + * Link to another Container in the Web Project + */ + public void setCM_ContainerLink_ID (int CM_ContainerLink_ID); + + /** Get Container Link. + * Link to another Container in the Web Project + */ + public int getCM_ContainerLink_ID(); + + /** Column name CM_Container_ID */ + public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; + + /** Set Web Container. + * Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID); + + /** Get Web Container. + * Web Container contains content like images, text etc. + */ + public int getCM_Container_ID(); + + /** Column name CM_Template_ID */ + public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; + + /** Set Template. + * Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID); + + /** Get Template. + * Template defines how content is displayed + */ + public int getCM_Template_ID(); + + public I_CM_Template getI_CM_Template() throws Exception; + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name ContainerLinkURL */ + public static final String COLUMNNAME_ContainerLinkURL = "ContainerLinkURL"; + + /** Set External Link (URL). + * External Link (IRL) for the Container + */ + public void setContainerLinkURL (String ContainerLinkURL); + + /** Get External Link (URL). + * External Link (IRL) for the Container + */ + public String getContainerLinkURL(); + + /** Column name ContainerType */ + public static final String COLUMNNAME_ContainerType = "ContainerType"; + + /** Set Web Container Type. + * Web Container Type + */ + public void setContainerType (String ContainerType); + + /** Get Web Container Type. + * Web Container Type + */ + public String getContainerType(); + + /** Column name ContainerXML */ + public static final String COLUMNNAME_ContainerXML = "ContainerXML"; + + /** Set ContainerXML. + * Autogenerated Containerdefinition as XML Code + */ + public void setContainerXML (String ContainerXML); + + /** Get ContainerXML. + * Autogenerated Containerdefinition as XML Code + */ + public String getContainerXML(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsIndexed */ + public static final String COLUMNNAME_IsIndexed = "IsIndexed"; + + /** Set Indexed. + * Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed); + + /** Get Indexed. + * Index the document for the internal search engine + */ + public boolean isIndexed(); + + /** Column name IsSecure */ + public static final String COLUMNNAME_IsSecure = "IsSecure"; + + /** Set Secure content. + * Defines whether content needs to get encrypted + */ + public void setIsSecure (boolean IsSecure); + + /** Get Secure content. + * Defines whether content needs to get encrypted + */ + public boolean isSecure(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Meta_Author */ + public static final String COLUMNNAME_Meta_Author = "Meta_Author"; + + /** Set Meta Author. + * Author of the content + */ + public void setMeta_Author (String Meta_Author); + + /** Get Meta Author. + * Author of the content + */ + public String getMeta_Author(); + + /** Column name Meta_Content */ + public static final String COLUMNNAME_Meta_Content = "Meta_Content"; + + /** Set Meta Content Type. + * Defines the type of content i.e. "text/html; + charset=UTF-8" + */ + public void setMeta_Content (String Meta_Content); + + /** Get Meta Content Type. + * Defines the type of content i.e. "text/html; + charset=UTF-8" + */ + public String getMeta_Content(); + + /** Column name Meta_Copyright */ + public static final String COLUMNNAME_Meta_Copyright = "Meta_Copyright"; + + /** Set Meta Copyright. + * Contains Copyright information for the content + */ + public void setMeta_Copyright (String Meta_Copyright); + + /** Get Meta Copyright. + * Contains Copyright information for the content + */ + public String getMeta_Copyright(); + + /** Column name Meta_Description */ + public static final String COLUMNNAME_Meta_Description = "Meta_Description"; + + /** Set Meta Description. + * Meta info describing the contents of the page + */ + public void setMeta_Description (String Meta_Description); + + /** Get Meta Description. + * Meta info describing the contents of the page + */ + public String getMeta_Description(); + + /** Column name Meta_Keywords */ + public static final String COLUMNNAME_Meta_Keywords = "Meta_Keywords"; + + /** Set Meta Keywords. + * Contains the keywords for the content + */ + public void setMeta_Keywords (String Meta_Keywords); + + /** Get Meta Keywords. + * Contains the keywords for the content + */ + public String getMeta_Keywords(); + + /** Column name Meta_Language */ + public static final String COLUMNNAME_Meta_Language = "Meta_Language"; + + /** Set Meta Language. + * Language HTML Meta Tag + */ + public void setMeta_Language (String Meta_Language); + + /** Get Meta Language. + * Language HTML Meta Tag + */ + public String getMeta_Language(); + + /** Column name Meta_Publisher */ + public static final String COLUMNNAME_Meta_Publisher = "Meta_Publisher"; + + /** Set Meta Publisher. + * Meta Publisher defines the publisher of the content + */ + public void setMeta_Publisher (String Meta_Publisher); + + /** Get Meta Publisher. + * Meta Publisher defines the publisher of the content + */ + public String getMeta_Publisher(); + + /** Column name Meta_RobotsTag */ + public static final String COLUMNNAME_Meta_RobotsTag = "Meta_RobotsTag"; + + /** Set Meta RobotsTag. + * RobotsTag defines how search robots should handle this content + */ + public void setMeta_RobotsTag (String Meta_RobotsTag); + + /** Get Meta RobotsTag. + * RobotsTag defines how search robots should handle this content + */ + public String getMeta_RobotsTag(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Notice */ + public static final String COLUMNNAME_Notice = "Notice"; + + /** Set Notice. + * Contains last write notice + */ + public void setNotice (String Notice); + + /** Get Notice. + * Contains last write notice + */ + public String getNotice(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name RelativeURL */ + public static final String COLUMNNAME_RelativeURL = "RelativeURL"; + + /** Set Relative URL. + * Contains the relative URL for the container + */ + public void setRelativeURL (String RelativeURL); + + /** Get Relative URL. + * Contains the relative URL for the container + */ + public String getRelativeURL(); + + /** Column name StructureXML */ + public static final String COLUMNNAME_StructureXML = "StructureXML"; + + /** Set StructureXML. + * Autogenerated Containerdefinition as XML Code + */ + public void setStructureXML (String StructureXML); + + /** Get StructureXML. + * Autogenerated Containerdefinition as XML Code + */ + public String getStructureXML(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); +} diff --git a/base/src/org/compiere/model/I_CM_ContainerTTable.java b/base/src/org/compiere/model/I_CM_ContainerTTable.java new file mode 100644 index 0000000000..ac3a41a607 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_ContainerTTable.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_ContainerTTable + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.64 + */ + public interface I_CM_ContainerTTable +{ + + /** TableName=CM_ContainerTTable */ + public static final String Table_Name = "CM_ContainerTTable"; + + /** AD_Table_ID=880 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_ContainerTTable_ID */ + public static final String COLUMNNAME_CM_ContainerTTable_ID = "CM_ContainerTTable_ID"; + + /** Set Container T.Table. + * Container Template Table + */ + public void setCM_ContainerTTable_ID (int CM_ContainerTTable_ID); + + /** Get Container T.Table. + * Container Template Table + */ + public int getCM_ContainerTTable_ID(); + + /** Column name CM_Container_ID */ + public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; + + /** Set Web Container. + * Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID); + + /** Get Web Container. + * Web Container contains content like images, text etc. + */ + public int getCM_Container_ID(); + + public I_CM_Container getI_CM_Container() throws Exception; + + /** Column name CM_TemplateTable_ID */ + public static final String COLUMNNAME_CM_TemplateTable_ID = "CM_TemplateTable_ID"; + + /** Set Template Table. + * CM Template Table Link + */ + public void setCM_TemplateTable_ID (int CM_TemplateTable_ID); + + /** Get Template Table. + * CM Template Table Link + */ + public int getCM_TemplateTable_ID(); + + public I_CM_TemplateTable getI_CM_TemplateTable() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OtherClause */ + public static final String COLUMNNAME_OtherClause = "OtherClause"; + + /** Set Other SQL Clause. + * Other SQL Clause + */ + public void setOtherClause (String OtherClause); + + /** Get Other SQL Clause. + * Other SQL Clause + */ + public String getOtherClause(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_CM_Container_Element.java b/base/src/org/compiere/model/I_CM_Container_Element.java new file mode 100644 index 0000000000..82f147418f --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Container_Element.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Container_Element + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.796 + */ + public interface I_CM_Container_Element +{ + + /** TableName=CM_Container_Element */ + public static final String Table_Name = "CM_Container_Element"; + + /** AD_Table_ID=860 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Container_Element_ID */ + public static final String COLUMNNAME_CM_Container_Element_ID = "CM_Container_Element_ID"; + + /** Set Container Element. + * Container element i.e. Headline, Content, Footer etc. + */ + public void setCM_Container_Element_ID (int CM_Container_Element_ID); + + /** Get Container Element. + * Container element i.e. Headline, Content, Footer etc. + */ + public int getCM_Container_Element_ID(); + + /** Column name CM_Container_ID */ + public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; + + /** Set Web Container. + * Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID); + + /** Get Web Container. + * Web Container contains content like images, text etc. + */ + public int getCM_Container_ID(); + + public I_CM_Container getI_CM_Container() throws Exception; + + /** Column name ContentHTML */ + public static final String COLUMNNAME_ContentHTML = "ContentHTML"; + + /** Set Content HTML. + * Contains the content itself + */ + public void setContentHTML (String ContentHTML); + + /** Get Content HTML. + * Contains the content itself + */ + public String getContentHTML(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_Container_URL.java b/base/src/org/compiere/model/I_CM_Container_URL.java new file mode 100644 index 0000000000..6a513a78f0 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Container_URL.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Container_URL + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.828 + */ + public interface I_CM_Container_URL +{ + + /** TableName=CM_Container_URL */ + public static final String Table_Name = "CM_Container_URL"; + + /** AD_Table_ID=865 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Container_ID */ + public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; + + /** Set Web Container. + * Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID); + + /** Get Web Container. + * Web Container contains content like images, text etc. + */ + public int getCM_Container_ID(); + + public I_CM_Container getI_CM_Container() throws Exception; + + /** Column name CM_Container_URL_ID */ + public static final String COLUMNNAME_CM_Container_URL_ID = "CM_Container_URL_ID"; + + /** Set Container URL. + * Contains info on used URLs + */ + public void setCM_Container_URL_ID (int CM_Container_URL_ID); + + /** Get Container URL. + * Contains info on used URLs + */ + public int getCM_Container_URL_ID(); + + /** Column name Checked */ + public static final String COLUMNNAME_Checked = "Checked"; + + /** Set Last Checked. + * Info when we did the last check + */ + public void setChecked (Timestamp Checked); + + /** Get Last Checked. + * Info when we did the last check + */ + public Timestamp getChecked(); + + /** Column name Last_Result */ + public static final String COLUMNNAME_Last_Result = "Last_Result"; + + /** Set Last Result. + * Contains data on the last check result + */ + public void setLast_Result (String Last_Result); + + /** Get Last Result. + * Contains data on the last check result + */ + public String getLast_Result(); + + /** Column name Status */ + public static final String COLUMNNAME_Status = "Status"; + + /** Set Status. + * Status of the currently running check + */ + public void setStatus (String Status); + + /** Get Status. + * Status of the currently running check + */ + public String getStatus(); +} diff --git a/base/src/org/compiere/model/I_CM_Media.java b/base/src/org/compiere/model/I_CM_Media.java new file mode 100644 index 0000000000..e80a91cace --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Media.java @@ -0,0 +1,184 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Media + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.875 + */ + public interface I_CM_Media +{ + + /** TableName=CM_Media */ + public static final String Table_Name = "CM_Media"; + + /** AD_Table_ID=857 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + /** Column name CM_Media_ID */ + public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; + + /** Set Media Item. + * Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID); + + /** Get Media Item. + * Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name ContentText */ + public static final String COLUMNNAME_ContentText = "ContentText"; + + /** Set Content */ + public void setContentText (String ContentText); + + /** Get Content */ + public String getContentText(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DirectDeploy */ + public static final String COLUMNNAME_DirectDeploy = "DirectDeploy"; + + /** Set Direct Deploy */ + public void setDirectDeploy (String DirectDeploy); + + /** Get Direct Deploy */ + public String getDirectDeploy(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name MediaType */ + public static final String COLUMNNAME_MediaType = "MediaType"; + + /** Set Media Type. + * Defines the media type for the browser + */ + public void setMediaType (String MediaType); + + /** Get Media Type. + * Defines the media type for the browser + */ + public String getMediaType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_MediaDeploy.java b/base/src/org/compiere/model/I_CM_MediaDeploy.java new file mode 100644 index 0000000000..e5e03aafaf --- /dev/null +++ b/base/src/org/compiere/model/I_CM_MediaDeploy.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_MediaDeploy + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:34.984 + */ + public interface I_CM_MediaDeploy +{ + + /** TableName=CM_MediaDeploy */ + public static final String Table_Name = "CM_MediaDeploy"; + + /** AD_Table_ID=892 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_MediaDeploy_ID */ + public static final String COLUMNNAME_CM_MediaDeploy_ID = "CM_MediaDeploy_ID"; + + /** Set Media Deploy. + * Media Deployment Log + */ + public void setCM_MediaDeploy_ID (int CM_MediaDeploy_ID); + + /** Get Media Deploy. + * Media Deployment Log + */ + public int getCM_MediaDeploy_ID(); + + /** Column name CM_Media_ID */ + public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; + + /** Set Media Item. + * Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID); + + /** Get Media Item. + * Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID(); + + public I_CM_Media getI_CM_Media() throws Exception; + + /** Column name CM_Media_Server_ID */ + public static final String COLUMNNAME_CM_Media_Server_ID = "CM_Media_Server_ID"; + + /** Set Media Server. + * Media Server list to which content should get transfered + */ + public void setCM_Media_Server_ID (int CM_Media_Server_ID); + + /** Get Media Server. + * Media Server list to which content should get transfered + */ + public int getCM_Media_Server_ID(); + + public I_CM_Media_Server getI_CM_Media_Server() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDeployed */ + public static final String COLUMNNAME_IsDeployed = "IsDeployed"; + + /** Set Deployed. + * Entity is deployed + */ + public void setIsDeployed (boolean IsDeployed); + + /** Get Deployed. + * Entity is deployed + */ + public boolean isDeployed(); + + /** Column name LastSynchronized */ + public static final String COLUMNNAME_LastSynchronized = "LastSynchronized"; + + /** Set Last Synchronized. + * Date when last synchronized + */ + public void setLastSynchronized (Timestamp LastSynchronized); + + /** Get Last Synchronized. + * Date when last synchronized + */ + public Timestamp getLastSynchronized(); +} diff --git a/base/src/org/compiere/model/I_CM_Media_Server.java b/base/src/org/compiere/model/I_CM_Media_Server.java new file mode 100644 index 0000000000..7da550fef9 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Media_Server.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Media_Server + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.015 + */ + public interface I_CM_Media_Server +{ + + /** TableName=CM_Media_Server */ + public static final String Table_Name = "CM_Media_Server"; + + /** AD_Table_ID=859 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Media_Server_ID */ + public static final String COLUMNNAME_CM_Media_Server_ID = "CM_Media_Server_ID"; + + /** Set Media Server. + * Media Server list to which content should get transfered + */ + public void setCM_Media_Server_ID (int CM_Media_Server_ID); + + /** Get Media Server. + * Media Server list to which content should get transfered + */ + public int getCM_Media_Server_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Folder */ + public static final String COLUMNNAME_Folder = "Folder"; + + /** Set Folder. + * A folder on a local or remote system to store data into + */ + public void setFolder (String Folder); + + /** Get Folder. + * A folder on a local or remote system to store data into + */ + public String getFolder(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IP_Address */ + public static final String COLUMNNAME_IP_Address = "IP_Address"; + + /** Set IP Address. + * Defines the IP address to transfer data to + */ + public void setIP_Address (String IP_Address); + + /** Get IP Address. + * Defines the IP address to transfer data to + */ + public String getIP_Address(); + + /** Column name IsPassive */ + public static final String COLUMNNAME_IsPassive = "IsPassive"; + + /** Set Transfer passive. + * FTP passive transfer + */ + public void setIsPassive (boolean IsPassive); + + /** Get Transfer passive. + * FTP passive transfer + */ + public boolean isPassive(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Password */ + public static final String COLUMNNAME_Password = "Password"; + + /** Set Password. + * Password of any length (case sensitive) + */ + public void setPassword (String Password); + + /** Get Password. + * Password of any length (case sensitive) + */ + public String getPassword(); + + /** Column name URL */ + public static final String COLUMNNAME_URL = "URL"; + + /** Set URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL); + + /** Get URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public String getURL(); + + /** Column name UserName */ + public static final String COLUMNNAME_UserName = "UserName"; + + /** Set Registered EMail. + * Email of the responsible for the System + */ + public void setUserName (String UserName); + + /** Get Registered EMail. + * Email of the responsible for the System + */ + public String getUserName(); +} diff --git a/base/src/org/compiere/model/I_CM_NewsChannel.java b/base/src/org/compiere/model/I_CM_NewsChannel.java new file mode 100644 index 0000000000..12d90a2495 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_NewsChannel.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_NewsChannel + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.093 + */ + public interface I_CM_NewsChannel +{ + + /** TableName=CM_NewsChannel */ + public static final String Table_Name = "CM_NewsChannel"; + + /** AD_Table_ID=870 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name CM_NewsChannel_ID */ + public static final String COLUMNNAME_CM_NewsChannel_ID = "CM_NewsChannel_ID"; + + /** Set News Channel. + * News channel for rss feed + */ + public void setCM_NewsChannel_ID (int CM_NewsChannel_ID); + + /** Get News Channel. + * News channel for rss feed + */ + public int getCM_NewsChannel_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Link */ + public static final String COLUMNNAME_Link = "Link"; + + /** Set Link. + * Contains URL to a target + */ + public void setLink (String Link); + + /** Get Link. + * Contains URL to a target + */ + public String getLink(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_NewsItem.java b/base/src/org/compiere/model/I_CM_NewsItem.java new file mode 100644 index 0000000000..8ca5a93b7b --- /dev/null +++ b/base/src/org/compiere/model/I_CM_NewsItem.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_NewsItem + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.14 + */ + public interface I_CM_NewsItem +{ + + /** TableName=CM_NewsItem */ + public static final String Table_Name = "CM_NewsItem"; + + /** AD_Table_ID=871 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Author */ + public static final String COLUMNNAME_Author = "Author"; + + /** Set Author. + * Author/Creator of the Entity + */ + public void setAuthor (String Author); + + /** Get Author. + * Author/Creator of the Entity + */ + public String getAuthor(); + + /** Column name CM_NewsChannel_ID */ + public static final String COLUMNNAME_CM_NewsChannel_ID = "CM_NewsChannel_ID"; + + /** Set News Channel. + * News channel for rss feed + */ + public void setCM_NewsChannel_ID (int CM_NewsChannel_ID); + + /** Get News Channel. + * News channel for rss feed + */ + public int getCM_NewsChannel_ID(); + + public I_CM_NewsChannel getI_CM_NewsChannel() throws Exception; + + /** Column name CM_NewsItem_ID */ + public static final String COLUMNNAME_CM_NewsItem_ID = "CM_NewsItem_ID"; + + /** Set News Item / Article. + * News item or article defines base content + */ + public void setCM_NewsItem_ID (int CM_NewsItem_ID); + + /** Get News Item / Article. + * News item or article defines base content + */ + public int getCM_NewsItem_ID(); + + /** Column name ContentHTML */ + public static final String COLUMNNAME_ContentHTML = "ContentHTML"; + + /** Set Content HTML. + * Contains the content itself + */ + public void setContentHTML (String ContentHTML); + + /** Get Content HTML. + * Contains the content itself + */ + public String getContentHTML(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name LinkURL */ + public static final String COLUMNNAME_LinkURL = "LinkURL"; + + /** Set LinkURL. + * Contains URL to a target + */ + public void setLinkURL (String LinkURL); + + /** Get LinkURL. + * Contains URL to a target + */ + public String getLinkURL(); + + /** Column name PubDate */ + public static final String COLUMNNAME_PubDate = "PubDate"; + + /** Set Publication Date. + * Date on which this article will / should get published + */ + public void setPubDate (Timestamp PubDate); + + /** Get Publication Date. + * Date on which this article will / should get published + */ + public Timestamp getPubDate(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); +} diff --git a/base/src/org/compiere/model/I_CM_Template.java b/base/src/org/compiere/model/I_CM_Template.java new file mode 100644 index 0000000000..41e04fb6c8 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Template.java @@ -0,0 +1,240 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Template + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.203 + */ + public interface I_CM_Template +{ + + /** TableName=CM_Template */ + public static final String Table_Name = "CM_Template"; + + /** AD_Table_ID=854 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Template_ID */ + public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; + + /** Set Template. + * Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID); + + /** Get Template. + * Template defines how content is displayed + */ + public int getCM_Template_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Elements */ + public static final String COLUMNNAME_Elements = "Elements"; + + /** Set Elements. + * Contains list of elements seperated by CR + */ + public void setElements (String Elements); + + /** Get Elements. + * Contains list of elements seperated by CR + */ + public String getElements(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsInclude */ + public static final String COLUMNNAME_IsInclude = "IsInclude"; + + /** Set Included. + * Defines whether this content / template is included into another one + */ + public void setIsInclude (boolean IsInclude); + + /** Get Included. + * Defines whether this content / template is included into another one + */ + public boolean isInclude(); + + /** Column name IsNews */ + public static final String COLUMNNAME_IsNews = "IsNews"; + + /** Set Uses News. + * Template or container uses news channels + */ + public void setIsNews (boolean IsNews); + + /** Get Uses News. + * Template or container uses news channels + */ + public boolean isNews(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsUseAd */ + public static final String COLUMNNAME_IsUseAd = "IsUseAd"; + + /** Set Use Ad. + * Whether or not this templates uses Ad's + */ + public void setIsUseAd (boolean IsUseAd); + + /** Get Use Ad. + * Whether or not this templates uses Ad's + */ + public boolean isUseAd(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TemplateXST */ + public static final String COLUMNNAME_TemplateXST = "TemplateXST"; + + /** Set TemplateXST. + * Contains the template code itself + */ + public void setTemplateXST (String TemplateXST); + + /** Get TemplateXST. + * Contains the template code itself + */ + public String getTemplateXST(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_CM_TemplateTable.java b/base/src/org/compiere/model/I_CM_TemplateTable.java new file mode 100644 index 0000000000..f08d193d51 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_TemplateTable.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_TemplateTable + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.296 + */ + public interface I_CM_TemplateTable +{ + + /** TableName=CM_TemplateTable */ + public static final String Table_Name = "CM_TemplateTable"; + + /** AD_Table_ID=879 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name CM_TemplateTable_ID */ + public static final String COLUMNNAME_CM_TemplateTable_ID = "CM_TemplateTable_ID"; + + /** Set Template Table. + * CM Template Table Link + */ + public void setCM_TemplateTable_ID (int CM_TemplateTable_ID); + + /** Get Template Table. + * CM Template Table Link + */ + public int getCM_TemplateTable_ID(); + + /** Column name CM_Template_ID */ + public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; + + /** Set Template. + * Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID); + + /** Get Template. + * Template defines how content is displayed + */ + public int getCM_Template_ID(); + + public I_CM_Template getI_CM_Template() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OtherClause */ + public static final String COLUMNNAME_OtherClause = "OtherClause"; + + /** Set Other SQL Clause. + * Other SQL Clause + */ + public void setOtherClause (String OtherClause); + + /** Get Other SQL Clause. + * Other SQL Clause + */ + public String getOtherClause(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_CM_Template_Ad_Cat.java b/base/src/org/compiere/model/I_CM_Template_Ad_Cat.java new file mode 100644 index 0000000000..05dce07dc5 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_Template_Ad_Cat.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_Template_Ad_Cat + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.343 + */ + public interface I_CM_Template_Ad_Cat +{ + + /** TableName=CM_Template_Ad_Cat */ + public static final String Table_Name = "CM_Template_Ad_Cat"; + + /** AD_Table_ID=872 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Ad_Cat_ID */ + public static final String COLUMNNAME_CM_Ad_Cat_ID = "CM_Ad_Cat_ID"; + + /** Set Advertisement Category. + * Advertisement Category like Banner Homepage + */ + public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID); + + /** Get Advertisement Category. + * Advertisement Category like Banner Homepage + */ + public int getCM_Ad_Cat_ID(); + + public I_CM_Ad_Cat getI_CM_Ad_Cat() throws Exception; + + /** Column name CM_Template_ID */ + public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; + + /** Set Template. + * Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID); + + /** Get Template. + * Template defines how content is displayed + */ + public int getCM_Template_ID(); + + public I_CM_Template getI_CM_Template() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_WebAccessLog.java b/base/src/org/compiere/model/I_CM_WebAccessLog.java new file mode 100644 index 0000000000..b034fcbe0a --- /dev/null +++ b/base/src/org/compiere/model/I_CM_WebAccessLog.java @@ -0,0 +1,299 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_WebAccessLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.406 + */ + public interface I_CM_WebAccessLog +{ + + /** TableName=CM_WebAccessLog */ + public static final String Table_Name = "CM_WebAccessLog"; + + /** AD_Table_ID=894 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name AcceptLanguage */ + public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage"; + + /** Set Accept Language. + * Language accepted based on browser information + */ + public void setAcceptLanguage (String AcceptLanguage); + + /** Get Accept Language. + * Language accepted based on browser information + */ + public String getAcceptLanguage(); + + /** Column name CM_BroadcastServer_ID */ + public static final String COLUMNNAME_CM_BroadcastServer_ID = "CM_BroadcastServer_ID"; + + /** Set Broadcast Server. + * Web Broadcast Server + */ + public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID); + + /** Get Broadcast Server. + * Web Broadcast Server + */ + public int getCM_BroadcastServer_ID(); + + public I_CM_BroadcastServer getI_CM_BroadcastServer() throws Exception; + + /** Column name CM_Media_ID */ + public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; + + /** Set Media Item. + * Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID); + + /** Get Media Item. + * Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID(); + + public I_CM_Media getI_CM_Media() throws Exception; + + /** Column name CM_WebAccessLog_ID */ + public static final String COLUMNNAME_CM_WebAccessLog_ID = "CM_WebAccessLog_ID"; + + /** Set Web Access Log. + * Web Access Log Information + */ + public void setCM_WebAccessLog_ID (int CM_WebAccessLog_ID); + + /** Get Web Access Log. + * Web Access Log Information + */ + public int getCM_WebAccessLog_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name FileSize */ + public static final String COLUMNNAME_FileSize = "FileSize"; + + /** Set File Size. + * Size of the File in bytes + */ + public void setFileSize (BigDecimal FileSize); + + /** Get File Size. + * Size of the File in bytes + */ + public BigDecimal getFileSize(); + + /** Column name Hyphen */ + public static final String COLUMNNAME_Hyphen = "Hyphen"; + + /** Set Hyphen */ + public void setHyphen (String Hyphen); + + /** Get Hyphen */ + public String getHyphen(); + + /** Column name IP_Address */ + public static final String COLUMNNAME_IP_Address = "IP_Address"; + + /** Set IP Address. + * Defines the IP address to transfer data to + */ + public void setIP_Address (String IP_Address); + + /** Get IP Address. + * Defines the IP address to transfer data to + */ + public String getIP_Address(); + + /** Column name LogType */ + public static final String COLUMNNAME_LogType = "LogType"; + + /** Set Log Type. + * Web Log Type + */ + public void setLogType (String LogType); + + /** Get Log Type. + * Web Log Type + */ + public String getLogType(); + + /** Column name PageURL */ + public static final String COLUMNNAME_PageURL = "PageURL"; + + /** Set Page URL */ + public void setPageURL (String PageURL); + + /** Get Page URL */ + public String getPageURL(); + + /** Column name Protocol */ + public static final String COLUMNNAME_Protocol = "Protocol"; + + /** Set Protocol. + * Protocol + */ + public void setProtocol (String Protocol); + + /** Get Protocol. + * Protocol + */ + public String getProtocol(); + + /** Column name Referrer */ + public static final String COLUMNNAME_Referrer = "Referrer"; + + /** Set Referrer. + * Referring web address + */ + public void setReferrer (String Referrer); + + /** Get Referrer. + * Referring web address + */ + public String getReferrer(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name RequestType */ + public static final String COLUMNNAME_RequestType = "RequestType"; + + /** Set Request Type */ + public void setRequestType (String RequestType); + + /** Get Request Type */ + public String getRequestType(); + + /** Column name StatusCode */ + public static final String COLUMNNAME_StatusCode = "StatusCode"; + + /** Set Status Code */ + public void setStatusCode (int StatusCode); + + /** Get Status Code */ + public int getStatusCode(); + + /** Column name UserAgent */ + public static final String COLUMNNAME_UserAgent = "UserAgent"; + + /** Set User Agent. + * Browser Used + */ + public void setUserAgent (String UserAgent); + + /** Get User Agent. + * Browser Used + */ + public String getUserAgent(); + + /** Column name WebSession */ + public static final String COLUMNNAME_WebSession = "WebSession"; + + /** Set Web Session. + * Web Session ID + */ + public void setWebSession (String WebSession); + + /** Get Web Session. + * Web Session ID + */ + public String getWebSession(); +} diff --git a/base/src/org/compiere/model/I_CM_WebProject.java b/base/src/org/compiere/model/I_CM_WebProject.java new file mode 100644 index 0000000000..339f2b20b8 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_WebProject.java @@ -0,0 +1,231 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_WebProject + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.593 + */ + public interface I_CM_WebProject +{ + + /** TableName=CM_WebProject */ + public static final String Table_Name = "CM_WebProject"; + + /** AD_Table_ID=853 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_TreeCMC_ID */ + public static final String COLUMNNAME_AD_TreeCMC_ID = "AD_TreeCMC_ID"; + + /** Set Container Tree. + * Container Tree + */ + public void setAD_TreeCMC_ID (int AD_TreeCMC_ID); + + /** Get Container Tree. + * Container Tree + */ + public int getAD_TreeCMC_ID(); + + /** Column name AD_TreeCMM_ID */ + public static final String COLUMNNAME_AD_TreeCMM_ID = "AD_TreeCMM_ID"; + + /** Set Media Tree. + * Media Tree + */ + public void setAD_TreeCMM_ID (int AD_TreeCMM_ID); + + /** Get Media Tree. + * Media Tree + */ + public int getAD_TreeCMM_ID(); + + /** Column name AD_TreeCMS_ID */ + public static final String COLUMNNAME_AD_TreeCMS_ID = "AD_TreeCMS_ID"; + + /** Set Stage Tree. + * Stage Tree + */ + public void setAD_TreeCMS_ID (int AD_TreeCMS_ID); + + /** Get Stage Tree. + * Stage Tree + */ + public int getAD_TreeCMS_ID(); + + /** Column name AD_TreeCMT_ID */ + public static final String COLUMNNAME_AD_TreeCMT_ID = "AD_TreeCMT_ID"; + + /** Set Template Tree. + * Template Tree + */ + public void setAD_TreeCMT_ID (int AD_TreeCMT_ID); + + /** Get Template Tree. + * Template Tree + */ + public int getAD_TreeCMT_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Meta_Author */ + public static final String COLUMNNAME_Meta_Author = "Meta_Author"; + + /** Set Meta Author. + * Author of the content + */ + public void setMeta_Author (String Meta_Author); + + /** Get Meta Author. + * Author of the content + */ + public String getMeta_Author(); + + /** Column name Meta_Content */ + public static final String COLUMNNAME_Meta_Content = "Meta_Content"; + + /** Set Meta Content Type. + * Defines the type of content i.e. "text/html; + charset=UTF-8" + */ + public void setMeta_Content (String Meta_Content); + + /** Get Meta Content Type. + * Defines the type of content i.e. "text/html; + charset=UTF-8" + */ + public String getMeta_Content(); + + /** Column name Meta_Copyright */ + public static final String COLUMNNAME_Meta_Copyright = "Meta_Copyright"; + + /** Set Meta Copyright. + * Contains Copyright information for the content + */ + public void setMeta_Copyright (String Meta_Copyright); + + /** Get Meta Copyright. + * Contains Copyright information for the content + */ + public String getMeta_Copyright(); + + /** Column name Meta_Publisher */ + public static final String COLUMNNAME_Meta_Publisher = "Meta_Publisher"; + + /** Set Meta Publisher. + * Meta Publisher defines the publisher of the content + */ + public void setMeta_Publisher (String Meta_Publisher); + + /** Get Meta Publisher. + * Meta Publisher defines the publisher of the content + */ + public String getMeta_Publisher(); + + /** Column name Meta_RobotsTag */ + public static final String COLUMNNAME_Meta_RobotsTag = "Meta_RobotsTag"; + + /** Set Meta RobotsTag. + * RobotsTag defines how search robots should handle this content + */ + public void setMeta_RobotsTag (String Meta_RobotsTag); + + /** Get Meta RobotsTag. + * RobotsTag defines how search robots should handle this content + */ + public String getMeta_RobotsTag(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_WebProject_Domain.java b/base/src/org/compiere/model/I_CM_WebProject_Domain.java new file mode 100644 index 0000000000..0af21d0273 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_WebProject_Domain.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_WebProject_Domain + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.609 + */ + public interface I_CM_WebProject_Domain +{ + + /** TableName=CM_WebProject_Domain */ + public static final String Table_Name = "CM_WebProject_Domain"; + + /** AD_Table_ID=873 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_Container_ID */ + public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; + + /** Set Web Container. + * Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID); + + /** Get Web Container. + * Web Container contains content like images, text etc. + */ + public int getCM_Container_ID(); + + public I_CM_Container getI_CM_Container() throws Exception; + + /** Column name CM_WebProject_Domain_ID */ + public static final String COLUMNNAME_CM_WebProject_Domain_ID = "CM_WebProject_Domain_ID"; + + /** Set WebProject Domain. + * Definition of Domainhandling + */ + public void setCM_WebProject_Domain_ID (int CM_WebProject_Domain_ID); + + /** Get WebProject Domain. + * Definition of Domainhandling + */ + public int getCM_WebProject_Domain_ID(); + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FQDN */ + public static final String COLUMNNAME_FQDN = "FQDN"; + + /** Set Fully Qualified Domain Name. + * Fully Qualified Domain Name i.e. www.comdivision.com + */ + public void setFQDN (String FQDN); + + /** Get Fully Qualified Domain Name. + * Fully Qualified Domain Name i.e. www.comdivision.com + */ + public String getFQDN(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_CM_WikiToken.java b/base/src/org/compiere/model/I_CM_WikiToken.java new file mode 100644 index 0000000000..76e464ee36 --- /dev/null +++ b/base/src/org/compiere/model/I_CM_WikiToken.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for CM_WikiToken + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.64 + */ + public interface I_CM_WikiToken +{ + + /** TableName=CM_WikiToken */ + public static final String Table_Name = "CM_WikiToken"; + + /** AD_Table_ID=905 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name CM_WikiToken_ID */ + public static final String COLUMNNAME_CM_WikiToken_ID = "CM_WikiToken_ID"; + + /** Set Wiki Token. + * Wiki Token + */ + public void setCM_WikiToken_ID (int CM_WikiToken_ID); + + /** Get Wiki Token. + * Wiki Token + */ + public int getCM_WikiToken_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Macro */ + public static final String COLUMNNAME_Macro = "Macro"; + + /** Set Macro. + * Macro + */ + public void setMacro (String Macro); + + /** Get Macro. + * Macro + */ + public String getMacro(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SelectClause */ + public static final String COLUMNNAME_SelectClause = "SelectClause"; + + /** Set Sql SELECT. + * SQL SELECT clause + */ + public void setSelectClause (String SelectClause); + + /** Get Sql SELECT. + * SQL SELECT clause + */ + public String getSelectClause(); + + /** Column name TokenType */ + public static final String COLUMNNAME_TokenType = "TokenType"; + + /** Set TokenType. + * Wiki Token Type + */ + public void setTokenType (String TokenType); + + /** Get TokenType. + * Wiki Token Type + */ + public String getTokenType(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_C_AcctProcessor.java b/base/src/org/compiere/model/I_C_AcctProcessor.java new file mode 100644 index 0000000000..4086b37841 --- /dev/null +++ b/base/src/org/compiere/model/I_C_AcctProcessor.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AcctProcessor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:35.703 + */ + public interface I_C_AcctProcessor +{ + + /** TableName=C_AcctProcessor */ + public static final String Table_Name = "C_AcctProcessor"; + + /** AD_Table_ID=695 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name C_AcctProcessor_ID */ + public static final String COLUMNNAME_C_AcctProcessor_ID = "C_AcctProcessor_ID"; + + /** Set Accounting Processor. + * Accounting Processor/Server Parameters + */ + public void setC_AcctProcessor_ID (int C_AcctProcessor_ID); + + /** Get Accounting Processor. + * Accounting Processor/Server Parameters + */ + public int getC_AcctProcessor_ID(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); +} diff --git a/base/src/org/compiere/model/I_C_AcctProcessorLog.java b/base/src/org/compiere/model/I_C_AcctProcessorLog.java new file mode 100644 index 0000000000..cfa993193d --- /dev/null +++ b/base/src/org/compiere/model/I_C_AcctProcessorLog.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AcctProcessorLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.39 + */ + public interface I_C_AcctProcessorLog +{ + + /** TableName=C_AcctProcessorLog */ + public static final String Table_Name = "C_AcctProcessorLog"; + + /** AD_Table_ID=694 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name C_AcctProcessorLog_ID */ + public static final String COLUMNNAME_C_AcctProcessorLog_ID = "C_AcctProcessorLog_ID"; + + /** Set Accounting Processor Log. + * Result of the execution of the Accounting Processor + */ + public void setC_AcctProcessorLog_ID (int C_AcctProcessorLog_ID); + + /** Get Accounting Processor Log. + * Result of the execution of the Accounting Processor + */ + public int getC_AcctProcessorLog_ID(); + + /** Column name C_AcctProcessor_ID */ + public static final String COLUMNNAME_C_AcctProcessor_ID = "C_AcctProcessor_ID"; + + /** Set Accounting Processor. + * Accounting Processor/Server Parameters + */ + public void setC_AcctProcessor_ID (int C_AcctProcessor_ID); + + /** Get Accounting Processor. + * Accounting Processor/Server Parameters + */ + public int getC_AcctProcessor_ID(); + + public I_C_AcctProcessor getI_C_AcctProcessor() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_C_AcctSchema.java b/base/src/org/compiere/model/I_C_AcctSchema.java new file mode 100644 index 0000000000..6313e9a707 --- /dev/null +++ b/base/src/org/compiere/model/I_C_AcctSchema.java @@ -0,0 +1,400 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AcctSchema + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.406 + */ + public interface I_C_AcctSchema +{ + + /** TableName=C_AcctSchema */ + public static final String Table_Name = "C_AcctSchema"; + + /** AD_Table_ID=265 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgOnly_ID */ + public static final String COLUMNNAME_AD_OrgOnly_ID = "AD_OrgOnly_ID"; + + /** Set Only Organization. + * Create posting entries only for this organization + */ + public void setAD_OrgOnly_ID (int AD_OrgOnly_ID); + + /** Get Only Organization. + * Create posting entries only for this organization + */ + public int getAD_OrgOnly_ID(); + + /** Column name AutoPeriodControl */ + public static final String COLUMNNAME_AutoPeriodControl = "AutoPeriodControl"; + + /** Set Automatic Period Control. + * If selected, the periods are automatically opened and closed + */ + public void setAutoPeriodControl (boolean AutoPeriodControl); + + /** Get Automatic Period Control. + * If selected, the periods are automatically opened and closed + */ + public boolean isAutoPeriodControl(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getI_C_Period() throws Exception; + + /** Column name CommitmentType */ + public static final String COLUMNNAME_CommitmentType = "CommitmentType"; + + /** Set Commitment Type. + * Create Commitment and/or Reservations for Budget Control + */ + public void setCommitmentType (String CommitmentType); + + /** Get Commitment Type. + * Create Commitment and/or Reservations for Budget Control + */ + public String getCommitmentType(); + + /** Column name CostingLevel */ + public static final String COLUMNNAME_CostingLevel = "CostingLevel"; + + /** Set Costing Level. + * The lowest level to accumulate Costing Information + */ + public void setCostingLevel (String CostingLevel); + + /** Get Costing Level. + * The lowest level to accumulate Costing Information + */ + public String getCostingLevel(); + + /** Column name CostingMethod */ + public static final String COLUMNNAME_CostingMethod = "CostingMethod"; + + /** Set Costing Method. + * Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod); + + /** Get Costing Method. + * Indicates how Costs will be calculated + */ + public String getCostingMethod(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GAAP */ + public static final String COLUMNNAME_GAAP = "GAAP"; + + /** Set GAAP. + * Generally Accepted Accounting Principles + */ + public void setGAAP (String GAAP); + + /** Get GAAP. + * Generally Accepted Accounting Principles + */ + public String getGAAP(); + + /** Column name HasAlias */ + public static final String COLUMNNAME_HasAlias = "HasAlias"; + + /** Set Use Account Alias. + * Ability to select (partial) account combinations by an Alias + */ + public void setHasAlias (boolean HasAlias); + + /** Get Use Account Alias. + * Ability to select (partial) account combinations by an Alias + */ + public boolean isHasAlias(); + + /** Column name HasCombination */ + public static final String COLUMNNAME_HasCombination = "HasCombination"; + + /** Set Use Account Combination Control. + * Combination of account elements are checked + */ + public void setHasCombination (boolean HasCombination); + + /** Get Use Account Combination Control. + * Combination of account elements are checked + */ + public boolean isHasCombination(); + + /** Column name IsAccrual */ + public static final String COLUMNNAME_IsAccrual = "IsAccrual"; + + /** Set Accrual. + * Indicates if Accrual or Cash Based accounting will be used + */ + public void setIsAccrual (boolean IsAccrual); + + /** Get Accrual. + * Indicates if Accrual or Cash Based accounting will be used + */ + public boolean isAccrual(); + + /** Column name IsAdjustCOGS */ + public static final String COLUMNNAME_IsAdjustCOGS = "IsAdjustCOGS"; + + /** Set Adjust COGS. + * Adjust Cost of Good Sold + */ + public void setIsAdjustCOGS (boolean IsAdjustCOGS); + + /** Get Adjust COGS. + * Adjust Cost of Good Sold + */ + public boolean isAdjustCOGS(); + + /** Column name IsAllowNegativePosting */ + public static final String COLUMNNAME_IsAllowNegativePosting = "IsAllowNegativePosting"; + + /** Set Allow Negative Posting. + * Allow to post negative accounting values + */ + public void setIsAllowNegativePosting (boolean IsAllowNegativePosting); + + /** Get Allow Negative Posting. + * Allow to post negative accounting values + */ + public boolean isAllowNegativePosting(); + + /** Column name IsDiscountCorrectsTax */ + public static final String COLUMNNAME_IsDiscountCorrectsTax = "IsDiscountCorrectsTax"; + + /** Set Correct tax for Discounts/Charges. + * Correct the tax for payment discount and charges + */ + public void setIsDiscountCorrectsTax (boolean IsDiscountCorrectsTax); + + /** Get Correct tax for Discounts/Charges. + * Correct the tax for payment discount and charges + */ + public boolean isDiscountCorrectsTax(); + + /** Column name IsExplicitCostAdjustment */ + public static final String COLUMNNAME_IsExplicitCostAdjustment = "IsExplicitCostAdjustment"; + + /** Set Explicit Cost Adjustment. + * Post the cost adjustment explicitly + */ + public void setIsExplicitCostAdjustment (boolean IsExplicitCostAdjustment); + + /** Get Explicit Cost Adjustment. + * Post the cost adjustment explicitly + */ + public boolean isExplicitCostAdjustment(); + + /** Column name IsPostServices */ + public static final String COLUMNNAME_IsPostServices = "IsPostServices"; + + /** Set Post Services Separately. + * Differentiate between Services and Product Receivable/Payables + */ + public void setIsPostServices (boolean IsPostServices); + + /** Get Post Services Separately. + * Differentiate between Services and Product Receivable/Payables + */ + public boolean isPostServices(); + + /** Column name IsTradeDiscountPosted */ + public static final String COLUMNNAME_IsTradeDiscountPosted = "IsTradeDiscountPosted"; + + /** Set Post Trade Discount. + * Generate postings for trade discounts + */ + public void setIsTradeDiscountPosted (boolean IsTradeDiscountPosted); + + /** Get Post Trade Discount. + * Generate postings for trade discounts + */ + public boolean isTradeDiscountPosted(); + + /** Column name M_CostType_ID */ + public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; + + /** Set Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID); + + /** Get Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID(); + + public I_M_CostType getI_M_CostType() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Period_OpenFuture */ + public static final String COLUMNNAME_Period_OpenFuture = "Period_OpenFuture"; + + /** Set Future Days. + * Number of days to be able to post to a future date (based on system date) + */ + public void setPeriod_OpenFuture (int Period_OpenFuture); + + /** Get Future Days. + * Number of days to be able to post to a future date (based on system date) + */ + public int getPeriod_OpenFuture(); + + /** Column name Period_OpenHistory */ + public static final String COLUMNNAME_Period_OpenHistory = "Period_OpenHistory"; + + /** Set History Days. + * Number of days to be able to post in the past (based on system date) + */ + public void setPeriod_OpenHistory (int Period_OpenHistory); + + /** Get History Days. + * Number of days to be able to post in the past (based on system date) + */ + public int getPeriod_OpenHistory(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Separator */ + public static final String COLUMNNAME_Separator = "Separator"; + + /** Set Element Separator. + * Element Separator + */ + public void setSeparator (String Separator); + + /** Get Element Separator. + * Element Separator + */ + public String getSeparator(); + + /** Column name TaxCorrectionType */ + public static final String COLUMNNAME_TaxCorrectionType = "TaxCorrectionType"; + + /** Set Tax Correction. + * Type of Tax Correction + */ + public void setTaxCorrectionType (String TaxCorrectionType); + + /** Get Tax Correction. + * Type of Tax Correction + */ + public String getTaxCorrectionType(); +} diff --git a/base/src/org/compiere/model/I_C_AcctSchema_Default.java b/base/src/org/compiere/model/I_C_AcctSchema_Default.java new file mode 100644 index 0000000000..edd48a95b0 --- /dev/null +++ b/base/src/org/compiere/model/I_C_AcctSchema_Default.java @@ -0,0 +1,864 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AcctSchema_Default + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.468 + */ + public interface I_C_AcctSchema_Default +{ + + /** TableName=C_AcctSchema_Default */ + public static final String Table_Name = "C_AcctSchema_Default"; + + /** AD_Table_ID=315 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name B_Asset_Acct */ + public static final String COLUMNNAME_B_Asset_Acct = "B_Asset_Acct"; + + /** Set Bank Asset. + * Bank Asset Account + */ + public void setB_Asset_Acct (int B_Asset_Acct); + + /** Get Bank Asset. + * Bank Asset Account + */ + public int getB_Asset_Acct(); + + /** Column name B_Expense_Acct */ + public static final String COLUMNNAME_B_Expense_Acct = "B_Expense_Acct"; + + /** Set Bank Expense. + * Bank Expense Account + */ + public void setB_Expense_Acct (int B_Expense_Acct); + + /** Get Bank Expense. + * Bank Expense Account + */ + public int getB_Expense_Acct(); + + /** Column name B_InTransit_Acct */ + public static final String COLUMNNAME_B_InTransit_Acct = "B_InTransit_Acct"; + + /** Set Bank In Transit. + * Bank In Transit Account + */ + public void setB_InTransit_Acct (int B_InTransit_Acct); + + /** Get Bank In Transit. + * Bank In Transit Account + */ + public int getB_InTransit_Acct(); + + /** Column name B_InterestExp_Acct */ + public static final String COLUMNNAME_B_InterestExp_Acct = "B_InterestExp_Acct"; + + /** Set Bank Interest Expense. + * Bank Interest Expense Account + */ + public void setB_InterestExp_Acct (int B_InterestExp_Acct); + + /** Get Bank Interest Expense. + * Bank Interest Expense Account + */ + public int getB_InterestExp_Acct(); + + /** Column name B_InterestRev_Acct */ + public static final String COLUMNNAME_B_InterestRev_Acct = "B_InterestRev_Acct"; + + /** Set Bank Interest Revenue. + * Bank Interest Revenue Account + */ + public void setB_InterestRev_Acct (int B_InterestRev_Acct); + + /** Get Bank Interest Revenue. + * Bank Interest Revenue Account + */ + public int getB_InterestRev_Acct(); + + /** Column name B_PaymentSelect_Acct */ + public static final String COLUMNNAME_B_PaymentSelect_Acct = "B_PaymentSelect_Acct"; + + /** Set Payment Selection. + * AP Payment Selection Clearing Account + */ + public void setB_PaymentSelect_Acct (int B_PaymentSelect_Acct); + + /** Get Payment Selection. + * AP Payment Selection Clearing Account + */ + public int getB_PaymentSelect_Acct(); + + /** Column name B_RevaluationGain_Acct */ + public static final String COLUMNNAME_B_RevaluationGain_Acct = "B_RevaluationGain_Acct"; + + /** Set Bank Revaluation Gain. + * Bank Revaluation Gain Account + */ + public void setB_RevaluationGain_Acct (int B_RevaluationGain_Acct); + + /** Get Bank Revaluation Gain. + * Bank Revaluation Gain Account + */ + public int getB_RevaluationGain_Acct(); + + /** Column name B_RevaluationLoss_Acct */ + public static final String COLUMNNAME_B_RevaluationLoss_Acct = "B_RevaluationLoss_Acct"; + + /** Set Bank Revaluation Loss. + * Bank Revaluation Loss Account + */ + public void setB_RevaluationLoss_Acct (int B_RevaluationLoss_Acct); + + /** Get Bank Revaluation Loss. + * Bank Revaluation Loss Account + */ + public int getB_RevaluationLoss_Acct(); + + /** Column name B_SettlementGain_Acct */ + public static final String COLUMNNAME_B_SettlementGain_Acct = "B_SettlementGain_Acct"; + + /** Set Bank Settlement Gain. + * Bank Settlement Gain Account + */ + public void setB_SettlementGain_Acct (int B_SettlementGain_Acct); + + /** Get Bank Settlement Gain. + * Bank Settlement Gain Account + */ + public int getB_SettlementGain_Acct(); + + /** Column name B_SettlementLoss_Acct */ + public static final String COLUMNNAME_B_SettlementLoss_Acct = "B_SettlementLoss_Acct"; + + /** Set Bank Settlement Loss. + * Bank Settlement Loss Account + */ + public void setB_SettlementLoss_Acct (int B_SettlementLoss_Acct); + + /** Get Bank Settlement Loss. + * Bank Settlement Loss Account + */ + public int getB_SettlementLoss_Acct(); + + /** Column name B_UnallocatedCash_Acct */ + public static final String COLUMNNAME_B_UnallocatedCash_Acct = "B_UnallocatedCash_Acct"; + + /** Set Unallocated Cash. + * Unallocated Cash Clearing Account + */ + public void setB_UnallocatedCash_Acct (int B_UnallocatedCash_Acct); + + /** Get Unallocated Cash. + * Unallocated Cash Clearing Account + */ + public int getB_UnallocatedCash_Acct(); + + /** Column name B_Unidentified_Acct */ + public static final String COLUMNNAME_B_Unidentified_Acct = "B_Unidentified_Acct"; + + /** Set Bank Unidentified Receipts. + * Bank Unidentified Receipts Account + */ + public void setB_Unidentified_Acct (int B_Unidentified_Acct); + + /** Get Bank Unidentified Receipts. + * Bank Unidentified Receipts Account + */ + public int getB_Unidentified_Acct(); + + /** Column name CB_Asset_Acct */ + public static final String COLUMNNAME_CB_Asset_Acct = "CB_Asset_Acct"; + + /** Set Cash Book Asset. + * Cash Book Asset Account + */ + public void setCB_Asset_Acct (int CB_Asset_Acct); + + /** Get Cash Book Asset. + * Cash Book Asset Account + */ + public int getCB_Asset_Acct(); + + /** Column name CB_CashTransfer_Acct */ + public static final String COLUMNNAME_CB_CashTransfer_Acct = "CB_CashTransfer_Acct"; + + /** Set Cash Transfer. + * Cash Transfer Clearing Account + */ + public void setCB_CashTransfer_Acct (int CB_CashTransfer_Acct); + + /** Get Cash Transfer. + * Cash Transfer Clearing Account + */ + public int getCB_CashTransfer_Acct(); + + /** Column name CB_Differences_Acct */ + public static final String COLUMNNAME_CB_Differences_Acct = "CB_Differences_Acct"; + + /** Set Cash Book Differences. + * Cash Book Differences Account + */ + public void setCB_Differences_Acct (int CB_Differences_Acct); + + /** Get Cash Book Differences. + * Cash Book Differences Account + */ + public int getCB_Differences_Acct(); + + /** Column name CB_Expense_Acct */ + public static final String COLUMNNAME_CB_Expense_Acct = "CB_Expense_Acct"; + + /** Set Cash Book Expense. + * Cash Book Expense Account + */ + public void setCB_Expense_Acct (int CB_Expense_Acct); + + /** Get Cash Book Expense. + * Cash Book Expense Account + */ + public int getCB_Expense_Acct(); + + /** Column name CB_Receipt_Acct */ + public static final String COLUMNNAME_CB_Receipt_Acct = "CB_Receipt_Acct"; + + /** Set Cash Book Receipt. + * Cash Book Receipts Account + */ + public void setCB_Receipt_Acct (int CB_Receipt_Acct); + + /** Get Cash Book Receipt. + * Cash Book Receipts Account + */ + public int getCB_Receipt_Acct(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Prepayment_Acct */ + public static final String COLUMNNAME_C_Prepayment_Acct = "C_Prepayment_Acct"; + + /** Set Customer Prepayment. + * Account for customer prepayments + */ + public void setC_Prepayment_Acct (int C_Prepayment_Acct); + + /** Get Customer Prepayment. + * Account for customer prepayments + */ + public int getC_Prepayment_Acct(); + + /** Column name C_Receivable_Acct */ + public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; + + /** Set Customer Receivables. + * Account for Customer Receivables + */ + public void setC_Receivable_Acct (int C_Receivable_Acct); + + /** Get Customer Receivables. + * Account for Customer Receivables + */ + public int getC_Receivable_Acct(); + + /** Column name C_Receivable_Services_Acct */ + public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; + + /** Set Receivable Services. + * Customer Accounts Receivables Services Account + */ + public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct); + + /** Get Receivable Services. + * Customer Accounts Receivables Services Account + */ + public int getC_Receivable_Services_Acct(); + + /** Column name Ch_Expense_Acct */ + public static final String COLUMNNAME_Ch_Expense_Acct = "Ch_Expense_Acct"; + + /** Set Charge Expense. + * Charge Expense Account + */ + public void setCh_Expense_Acct (int Ch_Expense_Acct); + + /** Get Charge Expense. + * Charge Expense Account + */ + public int getCh_Expense_Acct(); + + /** Column name Ch_Revenue_Acct */ + public static final String COLUMNNAME_Ch_Revenue_Acct = "Ch_Revenue_Acct"; + + /** Set Charge Revenue. + * Charge Revenue Account + */ + public void setCh_Revenue_Acct (int Ch_Revenue_Acct); + + /** Get Charge Revenue. + * Charge Revenue Account + */ + public int getCh_Revenue_Acct(); + + /** Column name E_Expense_Acct */ + public static final String COLUMNNAME_E_Expense_Acct = "E_Expense_Acct"; + + /** Set Employee Expense. + * Account for Employee Expenses + */ + public void setE_Expense_Acct (int E_Expense_Acct); + + /** Get Employee Expense. + * Account for Employee Expenses + */ + public int getE_Expense_Acct(); + + /** Column name E_Prepayment_Acct */ + public static final String COLUMNNAME_E_Prepayment_Acct = "E_Prepayment_Acct"; + + /** Set Employee Prepayment. + * Account for Employee Expense Prepayments + */ + public void setE_Prepayment_Acct (int E_Prepayment_Acct); + + /** Get Employee Prepayment. + * Account for Employee Expense Prepayments + */ + public int getE_Prepayment_Acct(); + + /** Column name NotInvoicedReceipts_Acct */ + public static final String COLUMNNAME_NotInvoicedReceipts_Acct = "NotInvoicedReceipts_Acct"; + + /** Set Not-invoiced Receipts. + * Account for not-invoiced Material Receipts + */ + public void setNotInvoicedReceipts_Acct (int NotInvoicedReceipts_Acct); + + /** Get Not-invoiced Receipts. + * Account for not-invoiced Material Receipts + */ + public int getNotInvoicedReceipts_Acct(); + + /** Column name NotInvoicedReceivables_Acct */ + public static final String COLUMNNAME_NotInvoicedReceivables_Acct = "NotInvoicedReceivables_Acct"; + + /** Set Not-invoiced Receivables. + * Account for not invoiced Receivables + */ + public void setNotInvoicedReceivables_Acct (int NotInvoicedReceivables_Acct); + + /** Get Not-invoiced Receivables. + * Account for not invoiced Receivables + */ + public int getNotInvoicedReceivables_Acct(); + + /** Column name NotInvoicedRevenue_Acct */ + public static final String COLUMNNAME_NotInvoicedRevenue_Acct = "NotInvoicedRevenue_Acct"; + + /** Set Not-invoiced Revenue. + * Account for not invoiced Revenue + */ + public void setNotInvoicedRevenue_Acct (int NotInvoicedRevenue_Acct); + + /** Get Not-invoiced Revenue. + * Account for not invoiced Revenue + */ + public int getNotInvoicedRevenue_Acct(); + + /** Column name PJ_Asset_Acct */ + public static final String COLUMNNAME_PJ_Asset_Acct = "PJ_Asset_Acct"; + + /** Set Project Asset. + * Project Asset Account + */ + public void setPJ_Asset_Acct (int PJ_Asset_Acct); + + /** Get Project Asset. + * Project Asset Account + */ + public int getPJ_Asset_Acct(); + + /** Column name PJ_WIP_Acct */ + public static final String COLUMNNAME_PJ_WIP_Acct = "PJ_WIP_Acct"; + + /** Set Work In Progress. + * Account for Work in Progress + */ + public void setPJ_WIP_Acct (int PJ_WIP_Acct); + + /** Get Work In Progress. + * Account for Work in Progress + */ + public int getPJ_WIP_Acct(); + + /** Column name P_Asset_Acct */ + public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; + + /** Set Product Asset. + * Account for Product Asset (Inventory) + */ + public void setP_Asset_Acct (int P_Asset_Acct); + + /** Get Product Asset. + * Account for Product Asset (Inventory) + */ + public int getP_Asset_Acct(); + + /** Column name P_COGS_Acct */ + public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; + + /** Set Product COGS. + * Account for Cost of Goods Sold + */ + public void setP_COGS_Acct (int P_COGS_Acct); + + /** Get Product COGS. + * Account for Cost of Goods Sold + */ + public int getP_COGS_Acct(); + + /** Column name P_CostAdjustment_Acct */ + public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; + + /** Set Cost Adjustment. + * Product Cost Adjustment Account + */ + public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct); + + /** Get Cost Adjustment. + * Product Cost Adjustment Account + */ + public int getP_CostAdjustment_Acct(); + + /** Column name P_Expense_Acct */ + public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; + + /** Set Product Expense. + * Account for Product Expense + */ + public void setP_Expense_Acct (int P_Expense_Acct); + + /** Get Product Expense. + * Account for Product Expense + */ + public int getP_Expense_Acct(); + + /** Column name P_InventoryClearing_Acct */ + public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; + + /** Set Inventory Clearing. + * Product Inventory Clearing Account + */ + public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct); + + /** Get Inventory Clearing. + * Product Inventory Clearing Account + */ + public int getP_InventoryClearing_Acct(); + + /** Column name P_InvoicePriceVariance_Acct */ + public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; + + /** Set Invoice Price Variance. + * Difference between Costs and Invoice Price (IPV) + */ + public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct); + + /** Get Invoice Price Variance. + * Difference between Costs and Invoice Price (IPV) + */ + public int getP_InvoicePriceVariance_Acct(); + + /** Column name P_PurchasePriceVariance_Acct */ + public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; + + /** Set Purchase Price Variance. + * Difference between Standard Cost and Purchase Price (PPV) + */ + public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct); + + /** Get Purchase Price Variance. + * Difference between Standard Cost and Purchase Price (PPV) + */ + public int getP_PurchasePriceVariance_Acct(); + + /** Column name P_Revenue_Acct */ + public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; + + /** Set Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct); + + /** Get Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct(); + + /** Column name P_TradeDiscountGrant_Acct */ + public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; + + /** Set Trade Discount Granted. + * Trade Discount Granted Account + */ + public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct); + + /** Get Trade Discount Granted. + * Trade Discount Granted Account + */ + public int getP_TradeDiscountGrant_Acct(); + + /** Column name P_TradeDiscountRec_Acct */ + public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; + + /** Set Trade Discount Received. + * Trade Discount Receivable Account + */ + public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct); + + /** Get Trade Discount Received. + * Trade Discount Receivable Account + */ + public int getP_TradeDiscountRec_Acct(); + + /** Column name PayDiscount_Exp_Acct */ + public static final String COLUMNNAME_PayDiscount_Exp_Acct = "PayDiscount_Exp_Acct"; + + /** Set Payment Discount Expense. + * Payment Discount Expense Account + */ + public void setPayDiscount_Exp_Acct (int PayDiscount_Exp_Acct); + + /** Get Payment Discount Expense. + * Payment Discount Expense Account + */ + public int getPayDiscount_Exp_Acct(); + + /** Column name PayDiscount_Rev_Acct */ + public static final String COLUMNNAME_PayDiscount_Rev_Acct = "PayDiscount_Rev_Acct"; + + /** Set Payment Discount Revenue. + * Payment Discount Revenue Account + */ + public void setPayDiscount_Rev_Acct (int PayDiscount_Rev_Acct); + + /** Get Payment Discount Revenue. + * Payment Discount Revenue Account + */ + public int getPayDiscount_Rev_Acct(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name RealizedGain_Acct */ + public static final String COLUMNNAME_RealizedGain_Acct = "RealizedGain_Acct"; + + /** Set Realized Gain Acct. + * Realized Gain Account + */ + public void setRealizedGain_Acct (int RealizedGain_Acct); + + /** Get Realized Gain Acct. + * Realized Gain Account + */ + public int getRealizedGain_Acct(); + + /** Column name RealizedLoss_Acct */ + public static final String COLUMNNAME_RealizedLoss_Acct = "RealizedLoss_Acct"; + + /** Set Realized Loss Acct. + * Realized Loss Account + */ + public void setRealizedLoss_Acct (int RealizedLoss_Acct); + + /** Get Realized Loss Acct. + * Realized Loss Account + */ + public int getRealizedLoss_Acct(); + + /** Column name T_Credit_Acct */ + public static final String COLUMNNAME_T_Credit_Acct = "T_Credit_Acct"; + + /** Set Tax Credit. + * Account for Tax you can reclaim + */ + public void setT_Credit_Acct (int T_Credit_Acct); + + /** Get Tax Credit. + * Account for Tax you can reclaim + */ + public int getT_Credit_Acct(); + + /** Column name T_Due_Acct */ + public static final String COLUMNNAME_T_Due_Acct = "T_Due_Acct"; + + /** Set Tax Due. + * Account for Tax you have to pay + */ + public void setT_Due_Acct (int T_Due_Acct); + + /** Get Tax Due. + * Account for Tax you have to pay + */ + public int getT_Due_Acct(); + + /** Column name T_Expense_Acct */ + public static final String COLUMNNAME_T_Expense_Acct = "T_Expense_Acct"; + + /** Set Tax Expense. + * Account for paid tax you cannot reclaim + */ + public void setT_Expense_Acct (int T_Expense_Acct); + + /** Get Tax Expense. + * Account for paid tax you cannot reclaim + */ + public int getT_Expense_Acct(); + + /** Column name T_Liability_Acct */ + public static final String COLUMNNAME_T_Liability_Acct = "T_Liability_Acct"; + + /** Set Tax Liability. + * Account for Tax declaration liability + */ + public void setT_Liability_Acct (int T_Liability_Acct); + + /** Get Tax Liability. + * Account for Tax declaration liability + */ + public int getT_Liability_Acct(); + + /** Column name T_Receivables_Acct */ + public static final String COLUMNNAME_T_Receivables_Acct = "T_Receivables_Acct"; + + /** Set Tax Receivables. + * Account for Tax credit after tax declaration + */ + public void setT_Receivables_Acct (int T_Receivables_Acct); + + /** Get Tax Receivables. + * Account for Tax credit after tax declaration + */ + public int getT_Receivables_Acct(); + + /** Column name UnEarnedRevenue_Acct */ + public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; + + /** Set Unearned Revenue. + * Account for unearned revenue + */ + public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct); + + /** Get Unearned Revenue. + * Account for unearned revenue + */ + public int getUnEarnedRevenue_Acct(); + + /** Column name UnrealizedGain_Acct */ + public static final String COLUMNNAME_UnrealizedGain_Acct = "UnrealizedGain_Acct"; + + /** Set Unrealized Gain Acct. + * Unrealized Gain Account for currency revaluation + */ + public void setUnrealizedGain_Acct (int UnrealizedGain_Acct); + + /** Get Unrealized Gain Acct. + * Unrealized Gain Account for currency revaluation + */ + public int getUnrealizedGain_Acct(); + + /** Column name UnrealizedLoss_Acct */ + public static final String COLUMNNAME_UnrealizedLoss_Acct = "UnrealizedLoss_Acct"; + + /** Set Unrealized Loss Acct. + * Unrealized Loss Account for currency revaluation + */ + public void setUnrealizedLoss_Acct (int UnrealizedLoss_Acct); + + /** Get Unrealized Loss Acct. + * Unrealized Loss Account for currency revaluation + */ + public int getUnrealizedLoss_Acct(); + + /** Column name V_Liability_Acct */ + public static final String COLUMNNAME_V_Liability_Acct = "V_Liability_Acct"; + + /** Set Vendor Liability. + * Account for Vendor Liability + */ + public void setV_Liability_Acct (int V_Liability_Acct); + + /** Get Vendor Liability. + * Account for Vendor Liability + */ + public int getV_Liability_Acct(); + + /** Column name V_Liability_Services_Acct */ + public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; + + /** Set Vendor Service Liability. + * Account for Vender Service Liability + */ + public void setV_Liability_Services_Acct (int V_Liability_Services_Acct); + + /** Get Vendor Service Liability. + * Account for Vender Service Liability + */ + public int getV_Liability_Services_Acct(); + + /** Column name V_Prepayment_Acct */ + public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; + + /** Set Vendor Prepayment. + * Account for Vendor Prepayments + */ + public void setV_Prepayment_Acct (int V_Prepayment_Acct); + + /** Get Vendor Prepayment. + * Account for Vendor Prepayments + */ + public int getV_Prepayment_Acct(); + + /** Column name W_Differences_Acct */ + public static final String COLUMNNAME_W_Differences_Acct = "W_Differences_Acct"; + + /** Set Warehouse Differences. + * Warehouse Differences Account + */ + public void setW_Differences_Acct (int W_Differences_Acct); + + /** Get Warehouse Differences. + * Warehouse Differences Account + */ + public int getW_Differences_Acct(); + + /** Column name W_InvActualAdjust_Acct */ + public static final String COLUMNNAME_W_InvActualAdjust_Acct = "W_InvActualAdjust_Acct"; + + /** Set Inventory Adjustment. + * Account for Inventory value adjustments for Actual Costing + */ + public void setW_InvActualAdjust_Acct (int W_InvActualAdjust_Acct); + + /** Get Inventory Adjustment. + * Account for Inventory value adjustments for Actual Costing + */ + public int getW_InvActualAdjust_Acct(); + + /** Column name W_Inventory_Acct */ + public static final String COLUMNNAME_W_Inventory_Acct = "W_Inventory_Acct"; + + /** Set (Not Used). + * Warehouse Inventory Asset Account - Currently not used + */ + public void setW_Inventory_Acct (int W_Inventory_Acct); + + /** Get (Not Used). + * Warehouse Inventory Asset Account - Currently not used + */ + public int getW_Inventory_Acct(); + + /** Column name W_Revaluation_Acct */ + public static final String COLUMNNAME_W_Revaluation_Acct = "W_Revaluation_Acct"; + + /** Set Inventory Revaluation. + * Account for Inventory Revaluation + */ + public void setW_Revaluation_Acct (int W_Revaluation_Acct); + + /** Get Inventory Revaluation. + * Account for Inventory Revaluation + */ + public int getW_Revaluation_Acct(); + + /** Column name Withholding_Acct */ + public static final String COLUMNNAME_Withholding_Acct = "Withholding_Acct"; + + /** Set Withholding. + * Account for Withholdings + */ + public void setWithholding_Acct (int Withholding_Acct); + + /** Get Withholding. + * Account for Withholdings + */ + public int getWithholding_Acct(); + + /** Column name WriteOff_Acct */ + public static final String COLUMNNAME_WriteOff_Acct = "WriteOff_Acct"; + + /** Set Write-off. + * Account for Receivables write-off + */ + public void setWriteOff_Acct (int WriteOff_Acct); + + /** Get Write-off. + * Account for Receivables write-off + */ + public int getWriteOff_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_AcctSchema_Element.java b/base/src/org/compiere/model/I_C_AcctSchema_Element.java new file mode 100644 index 0000000000..b1d2bf3acb --- /dev/null +++ b/base/src/org/compiere/model/I_C_AcctSchema_Element.java @@ -0,0 +1,300 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AcctSchema_Element + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.562 + */ + public interface I_C_AcctSchema_Element +{ + + /** TableName=C_AcctSchema_Element */ + public static final String Table_Name = "C_AcctSchema_Element"; + + /** AD_Table_ID=279 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getI_AD_Column() throws Exception; + + /** Column name C_AcctSchema_Element_ID */ + public static final String COLUMNNAME_C_AcctSchema_Element_ID = "C_AcctSchema_Element_ID"; + + /** Set Acct.Schema Element */ + public void setC_AcctSchema_Element_ID (int C_AcctSchema_Element_ID); + + /** Get Acct.Schema Element */ + public int getC_AcctSchema_Element_ID(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + /** Column name C_Element_ID */ + public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; + + /** Set Element. + * Accounting Element + */ + public void setC_Element_ID (int C_Element_ID); + + /** Get Element. + * Accounting Element + */ + public int getC_Element_ID(); + + public I_C_Element getI_C_Element() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name ElementType */ + public static final String COLUMNNAME_ElementType = "ElementType"; + + /** Set Type. + * Element Type (account or user defined) + */ + public void setElementType (String ElementType); + + /** Get Type. + * Element Type (account or user defined) + */ + public String getElementType(); + + /** Column name IsBalanced */ + public static final String COLUMNNAME_IsBalanced = "IsBalanced"; + + /** Set Balanced */ + public void setIsBalanced (boolean IsBalanced); + + /** Get Balanced */ + public boolean isBalanced(); + + /** Column name IsMandatory */ + public static final String COLUMNNAME_IsMandatory = "IsMandatory"; + + /** Set Mandatory. + * Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory); + + /** Get Mandatory. + * Data entry is required in this column + */ + public boolean isMandatory(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_C_AcctSchema_GL.java b/base/src/org/compiere/model/I_C_AcctSchema_GL.java new file mode 100644 index 0000000000..8618035184 --- /dev/null +++ b/base/src/org/compiere/model/I_C_AcctSchema_GL.java @@ -0,0 +1,207 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AcctSchema_GL + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.64 + */ + public interface I_C_AcctSchema_GL +{ + + /** TableName=C_AcctSchema_GL */ + public static final String Table_Name = "C_AcctSchema_GL"; + + /** AD_Table_ID=266 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name CommitmentOffset_Acct */ + public static final String COLUMNNAME_CommitmentOffset_Acct = "CommitmentOffset_Acct"; + + /** Set Commitment Offset. + * Budgetary Commitment Offset Account + */ + public void setCommitmentOffset_Acct (int CommitmentOffset_Acct); + + /** Get Commitment Offset. + * Budgetary Commitment Offset Account + */ + public int getCommitmentOffset_Acct(); + + /** Column name CurrencyBalancing_Acct */ + public static final String COLUMNNAME_CurrencyBalancing_Acct = "CurrencyBalancing_Acct"; + + /** Set Currency Balancing Acct. + * Account used when a currency is out of balance + */ + public void setCurrencyBalancing_Acct (int CurrencyBalancing_Acct); + + /** Get Currency Balancing Acct. + * Account used when a currency is out of balance + */ + public int getCurrencyBalancing_Acct(); + + /** Column name IncomeSummary_Acct */ + public static final String COLUMNNAME_IncomeSummary_Acct = "IncomeSummary_Acct"; + + /** Set Income Summary Acct. + * Income Summary Account + */ + public void setIncomeSummary_Acct (int IncomeSummary_Acct); + + /** Get Income Summary Acct. + * Income Summary Account + */ + public int getIncomeSummary_Acct(); + + /** Column name IntercompanyDueFrom_Acct */ + public static final String COLUMNNAME_IntercompanyDueFrom_Acct = "IntercompanyDueFrom_Acct"; + + /** Set Intercompany Due From Acct. + * Intercompany Due From / Receivables Account + */ + public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct); + + /** Get Intercompany Due From Acct. + * Intercompany Due From / Receivables Account + */ + public int getIntercompanyDueFrom_Acct(); + + /** Column name IntercompanyDueTo_Acct */ + public static final String COLUMNNAME_IntercompanyDueTo_Acct = "IntercompanyDueTo_Acct"; + + /** Set Intercompany Due To Acct. + * Intercompany Due To / Payable Account + */ + public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct); + + /** Get Intercompany Due To Acct. + * Intercompany Due To / Payable Account + */ + public int getIntercompanyDueTo_Acct(); + + /** Column name PPVOffset_Acct */ + public static final String COLUMNNAME_PPVOffset_Acct = "PPVOffset_Acct"; + + /** Set PPV Offset. + * Purchase Price Variance Offset Account + */ + public void setPPVOffset_Acct (int PPVOffset_Acct); + + /** Get PPV Offset. + * Purchase Price Variance Offset Account + */ + public int getPPVOffset_Acct(); + + /** Column name RetainedEarning_Acct */ + public static final String COLUMNNAME_RetainedEarning_Acct = "RetainedEarning_Acct"; + + /** Set Retained Earning Acct */ + public void setRetainedEarning_Acct (int RetainedEarning_Acct); + + /** Get Retained Earning Acct */ + public int getRetainedEarning_Acct(); + + /** Column name SuspenseBalancing_Acct */ + public static final String COLUMNNAME_SuspenseBalancing_Acct = "SuspenseBalancing_Acct"; + + /** Set Suspense Balancing Acct */ + public void setSuspenseBalancing_Acct (int SuspenseBalancing_Acct); + + /** Get Suspense Balancing Acct */ + public int getSuspenseBalancing_Acct(); + + /** Column name SuspenseError_Acct */ + public static final String COLUMNNAME_SuspenseError_Acct = "SuspenseError_Acct"; + + /** Set Suspense Error Acct */ + public void setSuspenseError_Acct (int SuspenseError_Acct); + + /** Get Suspense Error Acct */ + public int getSuspenseError_Acct(); + + /** Column name UseCurrencyBalancing */ + public static final String COLUMNNAME_UseCurrencyBalancing = "UseCurrencyBalancing"; + + /** Set Use Currency Balancing */ + public void setUseCurrencyBalancing (boolean UseCurrencyBalancing); + + /** Get Use Currency Balancing */ + public boolean isUseCurrencyBalancing(); + + /** Column name UseSuspenseBalancing */ + public static final String COLUMNNAME_UseSuspenseBalancing = "UseSuspenseBalancing"; + + /** Set Use Suspense Balancing */ + public void setUseSuspenseBalancing (boolean UseSuspenseBalancing); + + /** Get Use Suspense Balancing */ + public boolean isUseSuspenseBalancing(); + + /** Column name UseSuspenseError */ + public static final String COLUMNNAME_UseSuspenseError = "UseSuspenseError"; + + /** Set Use Suspense Error */ + public void setUseSuspenseError (boolean UseSuspenseError); + + /** Get Use Suspense Error */ + public boolean isUseSuspenseError(); +} diff --git a/base/src/org/compiere/model/I_C_Activity.java b/base/src/org/compiere/model/I_C_Activity.java new file mode 100644 index 0000000000..3ddeb9a356 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Activity.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Activity + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.718 + */ + public interface I_C_Activity +{ + + /** TableName=C_Activity */ + public static final String Table_Name = "C_Activity"; + + /** AD_Table_ID=316 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_AllocationHdr.java b/base/src/org/compiere/model/I_C_AllocationHdr.java new file mode 100644 index 0000000000..fdd3531290 --- /dev/null +++ b/base/src/org/compiere/model/I_C_AllocationHdr.java @@ -0,0 +1,240 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AllocationHdr + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.765 + */ + public interface I_C_AllocationHdr +{ + + /** TableName=C_AllocationHdr */ + public static final String Table_Name = "C_AllocationHdr"; + + /** AD_Table_ID=735 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_AllocationHdr_ID */ + public static final String COLUMNNAME_C_AllocationHdr_ID = "C_AllocationHdr_ID"; + + /** Set Allocation. + * Payment allocation + */ + public void setC_AllocationHdr_ID (int C_AllocationHdr_ID); + + /** Get Allocation. + * Payment allocation + */ + public int getC_AllocationHdr_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_AllocationLine.java b/base/src/org/compiere/model/I_C_AllocationLine.java new file mode 100644 index 0000000000..e3f286946c --- /dev/null +++ b/base/src/org/compiere/model/I_C_AllocationLine.java @@ -0,0 +1,231 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_AllocationLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.796 + */ + public interface I_C_AllocationLine +{ + + /** TableName=C_AllocationLine */ + public static final String Table_Name = "C_AllocationLine"; + + /** AD_Table_ID=390 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name Amount */ + public static final String COLUMNNAME_Amount = "Amount"; + + /** Set Amount. + * Amount in a defined currency + */ + public void setAmount (BigDecimal Amount); + + /** Get Amount. + * Amount in a defined currency + */ + public BigDecimal getAmount(); + + /** Column name C_AllocationHdr_ID */ + public static final String COLUMNNAME_C_AllocationHdr_ID = "C_AllocationHdr_ID"; + + /** Set Allocation. + * Payment allocation + */ + public void setC_AllocationHdr_ID (int C_AllocationHdr_ID); + + /** Get Allocation. + * Payment allocation + */ + public int getC_AllocationHdr_ID(); + + public I_C_AllocationHdr getI_C_AllocationHdr() throws Exception; + + /** Column name C_AllocationLine_ID */ + public static final String COLUMNNAME_C_AllocationLine_ID = "C_AllocationLine_ID"; + + /** Set Allocation Line. + * Allocation Line + */ + public void setC_AllocationLine_ID (int C_AllocationLine_ID); + + /** Get Allocation Line. + * Allocation Line + */ + public int getC_AllocationLine_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name OverUnderAmt */ + public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_C_BP_BankAccount.java b/base/src/org/compiere/model/I_C_BP_BankAccount.java new file mode 100644 index 0000000000..5dadbd2064 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_BankAccount.java @@ -0,0 +1,387 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_BankAccount + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:36.89 + */ + public interface I_C_BP_BankAccount +{ + + /** TableName=C_BP_BankAccount */ + public static final String Table_Name = "C_BP_BankAccount"; + + /** AD_Table_ID=298 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name A_City */ + public static final String COLUMNNAME_A_City = "A_City"; + + /** Set Account City. + * City or the Credit Card or Account Holder + */ + public void setA_City (String A_City); + + /** Get Account City. + * City or the Credit Card or Account Holder + */ + public String getA_City(); + + /** Column name A_Country */ + public static final String COLUMNNAME_A_Country = "A_Country"; + + /** Set Account Country. + * Country + */ + public void setA_Country (String A_Country); + + /** Get Account Country. + * Country + */ + public String getA_Country(); + + /** Column name A_EMail */ + public static final String COLUMNNAME_A_EMail = "A_EMail"; + + /** Set Account EMail. + * Email Address + */ + public void setA_EMail (String A_EMail); + + /** Get Account EMail. + * Email Address + */ + public String getA_EMail(); + + /** Column name A_Ident_DL */ + public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; + + /** Set Driver License. + * Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL); + + /** Get Driver License. + * Payment Identification - Driver License + */ + public String getA_Ident_DL(); + + /** Column name A_Ident_SSN */ + public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; + + /** Set Social Security No. + * Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN); + + /** Get Social Security No. + * Payment Identification - Social Security No + */ + public String getA_Ident_SSN(); + + /** Column name A_Name */ + public static final String COLUMNNAME_A_Name = "A_Name"; + + /** Set Account Name. + * Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name); + + /** Get Account Name. + * Name on Credit Card or Account holder + */ + public String getA_Name(); + + /** Column name A_State */ + public static final String COLUMNNAME_A_State = "A_State"; + + /** Set Account State. + * State of the Credit Card or Account holder + */ + public void setA_State (String A_State); + + /** Get Account State. + * State of the Credit Card or Account holder + */ + public String getA_State(); + + /** Column name A_Street */ + public static final String COLUMNNAME_A_Street = "A_Street"; + + /** Set Account Street. + * Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street); + + /** Get Account Street. + * Street address of the Credit Card or Account holder + */ + public String getA_Street(); + + /** Column name A_Zip */ + public static final String COLUMNNAME_A_Zip = "A_Zip"; + + /** Set Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip); + + /** Get Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip(); + + /** Column name AccountNo */ + public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** Set Account No. + * Account Number + */ + public void setAccountNo (String AccountNo); + + /** Get Account No. + * Account Number + */ + public String getAccountNo(); + + /** Column name BPBankAcctUse */ + public static final String COLUMNNAME_BPBankAcctUse = "BPBankAcctUse"; + + /** Set Account Usage. + * Business Partner Bank Account usage + */ + public void setBPBankAcctUse (String BPBankAcctUse); + + /** Get Account Usage. + * Business Partner Bank Account usage + */ + public String getBPBankAcctUse(); + + /** Column name BankAccountType */ + public static final String COLUMNNAME_BankAccountType = "BankAccountType"; + + /** Set Bank Account Type. + * Bank Account Type + */ + public void setBankAccountType (String BankAccountType); + + /** Get Bank Account Type. + * Bank Account Type + */ + public String getBankAccountType(); + + /** Column name C_BP_BankAccount_ID */ + public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; + + /** Set Partner Bank Account. + * Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID); + + /** Get Partner Bank Account. + * Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Bank_ID */ + public static final String COLUMNNAME_C_Bank_ID = "C_Bank_ID"; + + /** Set Bank. + * Bank + */ + public void setC_Bank_ID (int C_Bank_ID); + + /** Get Bank. + * Bank + */ + public int getC_Bank_ID(); + + /** Column name CreditCardExpMM */ + public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; + + /** Set Exp. Month. + * Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM); + + /** Get Exp. Month. + * Expiry Month + */ + public int getCreditCardExpMM(); + + /** Column name CreditCardExpYY */ + public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; + + /** Set Exp. Year. + * Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY); + + /** Get Exp. Year. + * Expiry Year + */ + public int getCreditCardExpYY(); + + /** Column name CreditCardNumber */ + public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + + /** Set Number. + * Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber); + + /** Get Number. + * Credit Card Number + */ + public String getCreditCardNumber(); + + /** Column name CreditCardType */ + public static final String COLUMNNAME_CreditCardType = "CreditCardType"; + + /** Set Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType); + + /** Get Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType(); + + /** Column name CreditCardVV */ + public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; + + /** Set Verification Code. + * Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV); + + /** Get Verification Code. + * Credit Card Verification code on credit card + */ + public String getCreditCardVV(); + + /** Column name IsACH */ + public static final String COLUMNNAME_IsACH = "IsACH"; + + /** Set ACH. + * Automatic Clearing House + */ + public void setIsACH (boolean IsACH); + + /** Get ACH. + * Automatic Clearing House + */ + public boolean isACH(); + + /** Column name R_AvsAddr */ + public static final String COLUMNNAME_R_AvsAddr = "R_AvsAddr"; + + /** Set Address verified. + * This address has been verified + */ + public void setR_AvsAddr (String R_AvsAddr); + + /** Get Address verified. + * This address has been verified + */ + public String getR_AvsAddr(); + + /** Column name R_AvsZip */ + public static final String COLUMNNAME_R_AvsZip = "R_AvsZip"; + + /** Set Zip verified. + * The Zip Code has been verified + */ + public void setR_AvsZip (String R_AvsZip); + + /** Get Zip verified. + * The Zip Code has been verified + */ + public String getR_AvsZip(); + + /** Column name RoutingNo */ + public static final String COLUMNNAME_RoutingNo = "RoutingNo"; + + /** Set Routing No. + * Bank Routing Number + */ + public void setRoutingNo (String RoutingNo); + + /** Get Routing No. + * Bank Routing Number + */ + public String getRoutingNo(); +} 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 new file mode 100644 index 0000000000..6f53fd7922 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Customer_Acct.java @@ -0,0 +1,129 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Customer_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.0 + */ + public interface I_C_BP_Customer_Acct +{ + + /** TableName=C_BP_Customer_Acct */ + public static final String Table_Name = "C_BP_Customer_Acct"; + + /** AD_Table_ID=183 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + public I_C_BPartner getI_C_BPartner() throws Exception; + + /** Column name C_Prepayment_Acct */ + public static final String COLUMNNAME_C_Prepayment_Acct = "C_Prepayment_Acct"; + + /** Set Customer Prepayment. + * Account for customer prepayments + */ + public void setC_Prepayment_Acct (int C_Prepayment_Acct); + + /** Get Customer Prepayment. + * Account for customer prepayments + */ + public int getC_Prepayment_Acct(); + + /** Column name C_Receivable_Acct */ + public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; + + /** Set Customer Receivables. + * Account for Customer Receivables + */ + public void setC_Receivable_Acct (int C_Receivable_Acct); + + /** Get Customer Receivables. + * Account for Customer Receivables + */ + public int getC_Receivable_Acct(); + + /** Column name C_Receivable_Services_Acct */ + public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; + + /** Set Receivable Services. + * Customer Accounts Receivables Services Account + */ + public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct); + + /** Get Receivable Services. + * Customer Accounts Receivables Services Account + */ + public int getC_Receivable_Services_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_BP_EDI.java b/base/src/org/compiere/model/I_C_BP_EDI.java new file mode 100644 index 0000000000..51e50cee79 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_EDI.java @@ -0,0 +1,306 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_EDI + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.031 + */ + public interface I_C_BP_EDI +{ + + /** TableName=C_BP_EDI */ + public static final String Table_Name = "C_BP_EDI"; + + /** AD_Table_ID=366 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Sequence_ID */ + public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; + + /** Set Sequence. + * Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID); + + /** Get Sequence. + * Document Sequence + */ + public int getAD_Sequence_ID(); + + /** Column name C_BP_EDI_ID */ + public static final String COLUMNNAME_C_BP_EDI_ID = "C_BP_EDI_ID"; + + /** Set EDI Definition. + * Electronic Data Interchange + */ + public void setC_BP_EDI_ID (int C_BP_EDI_ID); + + /** Get EDI Definition. + * Electronic Data Interchange + */ + public int getC_BP_EDI_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name CustomerNo */ + public static final String COLUMNNAME_CustomerNo = "CustomerNo"; + + /** Set Customer No. + * EDI Identification Number + */ + public void setCustomerNo (String CustomerNo); + + /** Get Customer No. + * EDI Identification Number + */ + public String getCustomerNo(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EDIType */ + public static final String COLUMNNAME_EDIType = "EDIType"; + + /** Set EDI Type */ + public void setEDIType (String EDIType); + + /** Get EDI Type */ + public String getEDIType(); + + /** Column name EMail_Error_To */ + public static final String COLUMNNAME_EMail_Error_To = "EMail_Error_To"; + + /** Set Error EMail. + * Email address to send error messages to + */ + public void setEMail_Error_To (String EMail_Error_To); + + /** Get Error EMail. + * Email address to send error messages to + */ + public String getEMail_Error_To(); + + /** Column name EMail_From */ + public static final String COLUMNNAME_EMail_From = "EMail_From"; + + /** Set From EMail. + * Full EMail address used to send requests - e.g. edi@organization.com + */ + public void setEMail_From (String EMail_From); + + /** Get From EMail. + * Full EMail address used to send requests - e.g. edi@organization.com + */ + public String getEMail_From(); + + /** Column name EMail_From_Pwd */ + public static final String COLUMNNAME_EMail_From_Pwd = "EMail_From_Pwd"; + + /** Set From EMail Password. + * Password of the sending EMail address + */ + public void setEMail_From_Pwd (String EMail_From_Pwd); + + /** Get From EMail Password. + * Password of the sending EMail address + */ + public String getEMail_From_Pwd(); + + /** Column name EMail_From_Uid */ + public static final String COLUMNNAME_EMail_From_Uid = "EMail_From_Uid"; + + /** Set From EMail User ID. + * User ID of the sending EMail address (on default SMTP Host) - e.g. edi + */ + public void setEMail_From_Uid (String EMail_From_Uid); + + /** Get From EMail User ID. + * User ID of the sending EMail address (on default SMTP Host) - e.g. edi + */ + public String getEMail_From_Uid(); + + /** Column name EMail_Info_To */ + public static final String COLUMNNAME_EMail_Info_To = "EMail_Info_To"; + + /** Set Info EMail. + * EMail address to send informational messages and copies + */ + public void setEMail_Info_To (String EMail_Info_To); + + /** Get Info EMail. + * EMail address to send informational messages and copies + */ + public String getEMail_Info_To(); + + /** Column name EMail_To */ + public static final String COLUMNNAME_EMail_To = "EMail_To"; + + /** Set To EMail. + * EMail address to send requests to - e.g. edi@manufacturer.com + */ + public void setEMail_To (String EMail_To); + + /** Get To EMail. + * EMail address to send requests to - e.g. edi@manufacturer.com + */ + public String getEMail_To(); + + /** Column name IsAudited */ + public static final String COLUMNNAME_IsAudited = "IsAudited"; + + /** Set Activate Audit. + * Activate Audit Trail of what numbers are generated + */ + public void setIsAudited (boolean IsAudited); + + /** Get Activate Audit. + * Activate Audit Trail of what numbers are generated + */ + public boolean isAudited(); + + /** Column name IsInfoSent */ + public static final String COLUMNNAME_IsInfoSent = "IsInfoSent"; + + /** Set Send Info. + * Send informational messages and copies + */ + public void setIsInfoSent (boolean IsInfoSent); + + /** Get Send Info. + * Send informational messages and copies + */ + public boolean isInfoSent(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ReceiveInquiryReply */ + public static final String COLUMNNAME_ReceiveInquiryReply = "ReceiveInquiryReply"; + + /** Set Received Inquiry Reply */ + public void setReceiveInquiryReply (boolean ReceiveInquiryReply); + + /** Get Received Inquiry Reply */ + public boolean isReceiveInquiryReply(); + + /** Column name ReceiveOrderReply */ + public static final String COLUMNNAME_ReceiveOrderReply = "ReceiveOrderReply"; + + /** Set Receive Order Reply */ + public void setReceiveOrderReply (boolean ReceiveOrderReply); + + /** Get Receive Order Reply */ + public boolean isReceiveOrderReply(); + + /** Column name SendInquiry */ + public static final String COLUMNNAME_SendInquiry = "SendInquiry"; + + /** Set Send Inquiry. + * Quantity Availability Inquiry + */ + public void setSendInquiry (boolean SendInquiry); + + /** Get Send Inquiry. + * Quantity Availability Inquiry + */ + public boolean isSendInquiry(); + + /** Column name SendOrder */ + public static final String COLUMNNAME_SendOrder = "SendOrder"; + + /** Set Send Order */ + public void setSendOrder (boolean SendOrder); + + /** Get Send Order */ + public boolean isSendOrder(); +} 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 new file mode 100644 index 0000000000..eb7ab5b53a --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Employee_Acct.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Employee_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.062 + */ + public interface I_C_BP_Employee_Acct +{ + + /** TableName=C_BP_Employee_Acct */ + public static final String Table_Name = "C_BP_Employee_Acct"; + + /** AD_Table_ID=184 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + public I_C_BPartner getI_C_BPartner() throws Exception; + + /** Column name E_Expense_Acct */ + public static final String COLUMNNAME_E_Expense_Acct = "E_Expense_Acct"; + + /** Set Employee Expense. + * Account for Employee Expenses + */ + public void setE_Expense_Acct (int E_Expense_Acct); + + /** Get Employee Expense. + * Account for Employee Expenses + */ + public int getE_Expense_Acct(); + + /** Column name E_Prepayment_Acct */ + public static final String COLUMNNAME_E_Prepayment_Acct = "E_Prepayment_Acct"; + + /** Set Employee Prepayment. + * Account for Employee Expense Prepayments + */ + public void setE_Prepayment_Acct (int E_Prepayment_Acct); + + /** Get Employee Prepayment. + * Account for Employee Expense Prepayments + */ + public int getE_Prepayment_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_BP_Group.java b/base/src/org/compiere/model/I_C_BP_Group.java new file mode 100644 index 0000000000..f90a304925 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Group.java @@ -0,0 +1,261 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Group + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.093 + */ + public interface I_C_BP_Group +{ + + /** TableName=C_BP_Group */ + public static final String Table_Name = "C_BP_Group"; + + /** AD_Table_ID=394 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + /** Column name C_Dunning_ID */ + public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; + + /** Set Dunning. + * Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID); + + /** Get Dunning. + * Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID(); + + public I_C_Dunning getI_C_Dunning() throws Exception; + + /** Column name CreditWatchPercent */ + public static final String COLUMNNAME_CreditWatchPercent = "CreditWatchPercent"; + + /** Set Credit Watch %. + * Credit Watch - Percent of Credit Limit when OK switches to Watch + */ + public void setCreditWatchPercent (BigDecimal CreditWatchPercent); + + /** Get Credit Watch %. + * Credit Watch - Percent of Credit Limit when OK switches to Watch + */ + public BigDecimal getCreditWatchPercent(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsConfidentialInfo */ + public static final String COLUMNNAME_IsConfidentialInfo = "IsConfidentialInfo"; + + /** Set Confidential Info. + * Can enter confidential information + */ + public void setIsConfidentialInfo (boolean IsConfidentialInfo); + + /** Get Confidential Info. + * Can enter confidential information + */ + public boolean isConfidentialInfo(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PO_DiscountSchema_ID */ + public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + + /** Set PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID); + + /** Get PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID(); + + /** Column name PO_PriceList_ID */ + public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; + + /** Set Purchase Pricelist. + * Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID); + + /** Get Purchase Pricelist. + * Price List used by this Business Partner + */ + public int getPO_PriceList_ID(); + + /** Column name PriceMatchTolerance */ + public static final String COLUMNNAME_PriceMatchTolerance = "PriceMatchTolerance"; + + /** Set Price Match Tolerance. + * PO-Invoice Match Price Tolerance in percent of the purchase price + */ + public void setPriceMatchTolerance (BigDecimal PriceMatchTolerance); + + /** Get Price Match Tolerance. + * PO-Invoice Match Price Tolerance in percent of the purchase price + */ + public BigDecimal getPriceMatchTolerance(); + + /** Column name PriorityBase */ + public static final String COLUMNNAME_PriorityBase = "PriorityBase"; + + /** Set Priority Base. + * Base of Priority + */ + public void setPriorityBase (String PriorityBase); + + /** Get Priority Base. + * Base of Priority + */ + public String getPriorityBase(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} 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 new file mode 100644 index 0000000000..04aff99abc --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Group_Acct.java @@ -0,0 +1,268 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Group_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.125 + */ + public interface I_C_BP_Group_Acct +{ + + /** TableName=C_BP_Group_Acct */ + public static final String Table_Name = "C_BP_Group_Acct"; + + /** AD_Table_ID=395 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_Prepayment_Acct */ + public static final String COLUMNNAME_C_Prepayment_Acct = "C_Prepayment_Acct"; + + /** Set Customer Prepayment. + * Account for customer prepayments + */ + public void setC_Prepayment_Acct (int C_Prepayment_Acct); + + /** Get Customer Prepayment. + * Account for customer prepayments + */ + public int getC_Prepayment_Acct(); + + /** Column name C_Receivable_Acct */ + public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; + + /** Set Customer Receivables. + * Account for Customer Receivables + */ + public void setC_Receivable_Acct (int C_Receivable_Acct); + + /** Get Customer Receivables. + * Account for Customer Receivables + */ + public int getC_Receivable_Acct(); + + /** Column name C_Receivable_Services_Acct */ + public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; + + /** Set Receivable Services. + * Customer Accounts Receivables Services Account + */ + public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct); + + /** Get Receivable Services. + * Customer Accounts Receivables Services Account + */ + public int getC_Receivable_Services_Acct(); + + /** Column name NotInvoicedReceipts_Acct */ + public static final String COLUMNNAME_NotInvoicedReceipts_Acct = "NotInvoicedReceipts_Acct"; + + /** Set Not-invoiced Receipts. + * Account for not-invoiced Material Receipts + */ + public void setNotInvoicedReceipts_Acct (int NotInvoicedReceipts_Acct); + + /** Get Not-invoiced Receipts. + * Account for not-invoiced Material Receipts + */ + public int getNotInvoicedReceipts_Acct(); + + /** Column name NotInvoicedReceivables_Acct */ + public static final String COLUMNNAME_NotInvoicedReceivables_Acct = "NotInvoicedReceivables_Acct"; + + /** Set Not-invoiced Receivables. + * Account for not invoiced Receivables + */ + public void setNotInvoicedReceivables_Acct (int NotInvoicedReceivables_Acct); + + /** Get Not-invoiced Receivables. + * Account for not invoiced Receivables + */ + public int getNotInvoicedReceivables_Acct(); + + /** Column name NotInvoicedRevenue_Acct */ + public static final String COLUMNNAME_NotInvoicedRevenue_Acct = "NotInvoicedRevenue_Acct"; + + /** Set Not-invoiced Revenue. + * Account for not invoiced Revenue + */ + public void setNotInvoicedRevenue_Acct (int NotInvoicedRevenue_Acct); + + /** Get Not-invoiced Revenue. + * Account for not invoiced Revenue + */ + public int getNotInvoicedRevenue_Acct(); + + /** Column name PayDiscount_Exp_Acct */ + public static final String COLUMNNAME_PayDiscount_Exp_Acct = "PayDiscount_Exp_Acct"; + + /** Set Payment Discount Expense. + * Payment Discount Expense Account + */ + public void setPayDiscount_Exp_Acct (int PayDiscount_Exp_Acct); + + /** Get Payment Discount Expense. + * Payment Discount Expense Account + */ + public int getPayDiscount_Exp_Acct(); + + /** Column name PayDiscount_Rev_Acct */ + public static final String COLUMNNAME_PayDiscount_Rev_Acct = "PayDiscount_Rev_Acct"; + + /** Set Payment Discount Revenue. + * Payment Discount Revenue Account + */ + public void setPayDiscount_Rev_Acct (int PayDiscount_Rev_Acct); + + /** Get Payment Discount Revenue. + * Payment Discount Revenue Account + */ + public int getPayDiscount_Rev_Acct(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name UnEarnedRevenue_Acct */ + public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; + + /** Set Unearned Revenue. + * Account for unearned revenue + */ + public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct); + + /** Get Unearned Revenue. + * Account for unearned revenue + */ + public int getUnEarnedRevenue_Acct(); + + /** Column name V_Liability_Acct */ + public static final String COLUMNNAME_V_Liability_Acct = "V_Liability_Acct"; + + /** Set Vendor Liability. + * Account for Vendor Liability + */ + public void setV_Liability_Acct (int V_Liability_Acct); + + /** Get Vendor Liability. + * Account for Vendor Liability + */ + public int getV_Liability_Acct(); + + /** Column name V_Liability_Services_Acct */ + public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; + + /** Set Vendor Service Liability. + * Account for Vender Service Liability + */ + public void setV_Liability_Services_Acct (int V_Liability_Services_Acct); + + /** Get Vendor Service Liability. + * Account for Vender Service Liability + */ + public int getV_Liability_Services_Acct(); + + /** Column name V_Prepayment_Acct */ + public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; + + /** Set Vendor Prepayment. + * Account for Vendor Prepayments + */ + public void setV_Prepayment_Acct (int V_Prepayment_Acct); + + /** Get Vendor Prepayment. + * Account for Vendor Prepayments + */ + public int getV_Prepayment_Acct(); + + /** Column name WriteOff_Acct */ + public static final String COLUMNNAME_WriteOff_Acct = "WriteOff_Acct"; + + /** Set Write-off. + * Account for Receivables write-off + */ + public void setWriteOff_Acct (int WriteOff_Acct); + + /** Get Write-off. + * Account for Receivables write-off + */ + public int getWriteOff_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_BP_Relation.java b/base/src/org/compiere/model/I_C_BP_Relation.java new file mode 100644 index 0000000000..2644ecbee7 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Relation.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Relation + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.156 + */ + public interface I_C_BP_Relation +{ + + /** TableName=C_BP_Relation */ + public static final String Table_Name = "C_BP_Relation"; + + /** AD_Table_ID=678 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_BP_Relation_ID */ + public static final String COLUMNNAME_C_BP_Relation_ID = "C_BP_Relation_ID"; + + /** Set Partner Relation. + * Business Partner Relation + */ + public void setC_BP_Relation_ID (int C_BP_Relation_ID); + + /** Get Partner Relation. + * Business Partner Relation + */ + public int getC_BP_Relation_ID(); + + /** Column name C_BPartnerRelation_ID */ + public static final String COLUMNNAME_C_BPartnerRelation_ID = "C_BPartnerRelation_ID"; + + /** Set Related Partner. + * Related Business Partner + */ + public void setC_BPartnerRelation_ID (int C_BPartnerRelation_ID); + + /** Get Related Partner. + * Related Business Partner + */ + public int getC_BPartnerRelation_ID(); + + /** Column name C_BPartnerRelation_Location_ID */ + public static final String COLUMNNAME_C_BPartnerRelation_Location_ID = "C_BPartnerRelation_Location_ID"; + + /** Set Related Partner Location. + * Location of the related Business Partner + */ + public void setC_BPartnerRelation_Location_ID (int C_BPartnerRelation_Location_ID); + + /** Get Related Partner Location. + * Location of the related Business Partner + */ + public int getC_BPartnerRelation_Location_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsBillTo */ + public static final String COLUMNNAME_IsBillTo = "IsBillTo"; + + /** Set Invoice Address. + * Business Partner Invoice/Bill Address + */ + public void setIsBillTo (boolean IsBillTo); + + /** Get Invoice Address. + * Business Partner Invoice/Bill Address + */ + public boolean isBillTo(); + + /** Column name IsPayFrom */ + public static final String COLUMNNAME_IsPayFrom = "IsPayFrom"; + + /** Set Pay-From Address. + * Business Partner pays from that address and we'll send dunning letters there + */ + public void setIsPayFrom (boolean IsPayFrom); + + /** Get Pay-From Address. + * Business Partner pays from that address and we'll send dunning letters there + */ + public boolean isPayFrom(); + + /** Column name IsRemitTo */ + public static final String COLUMNNAME_IsRemitTo = "IsRemitTo"; + + /** Set Remit-To Address. + * Business Partner payment address + */ + public void setIsRemitTo (boolean IsRemitTo); + + /** Get Remit-To Address. + * Business Partner payment address + */ + public boolean isRemitTo(); + + /** Column name IsShipTo */ + public static final String COLUMNNAME_IsShipTo = "IsShipTo"; + + /** Set Ship Address. + * Business Partner Shipment Address + */ + public void setIsShipTo (boolean IsShipTo); + + /** Get Ship Address. + * Business Partner Shipment Address + */ + public boolean isShipTo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} 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 new file mode 100644 index 0000000000..bd2763ffbf --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Vendor_Acct.java @@ -0,0 +1,129 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Vendor_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.171 + */ + public interface I_C_BP_Vendor_Acct +{ + + /** TableName=C_BP_Vendor_Acct */ + public static final String Table_Name = "C_BP_Vendor_Acct"; + + /** AD_Table_ID=185 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + public I_C_BPartner getI_C_BPartner() throws Exception; + + /** Column name V_Liability_Acct */ + public static final String COLUMNNAME_V_Liability_Acct = "V_Liability_Acct"; + + /** Set Vendor Liability. + * Account for Vendor Liability + */ + public void setV_Liability_Acct (int V_Liability_Acct); + + /** Get Vendor Liability. + * Account for Vendor Liability + */ + public int getV_Liability_Acct(); + + /** Column name V_Liability_Services_Acct */ + public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; + + /** Set Vendor Service Liability. + * Account for Vender Service Liability + */ + public void setV_Liability_Services_Acct (int V_Liability_Services_Acct); + + /** Get Vendor Service Liability. + * Account for Vender Service Liability + */ + public int getV_Liability_Services_Acct(); + + /** Column name V_Prepayment_Acct */ + public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; + + /** Set Vendor Prepayment. + * Account for Vendor Prepayments + */ + public void setV_Prepayment_Acct (int V_Prepayment_Acct); + + /** Get Vendor Prepayment. + * Account for Vendor Prepayments + */ + public int getV_Prepayment_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_BP_Withholding.java b/base/src/org/compiere/model/I_C_BP_Withholding.java new file mode 100644 index 0000000000..e14e2730aa --- /dev/null +++ b/base/src/org/compiere/model/I_C_BP_Withholding.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BP_Withholding + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.218 + */ + public interface I_C_BP_Withholding +{ + + /** TableName=C_BP_Withholding */ + public static final String Table_Name = "C_BP_Withholding"; + + /** AD_Table_ID=299 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Withholding_ID */ + public static final String COLUMNNAME_C_Withholding_ID = "C_Withholding_ID"; + + /** Set Withholding. + * Withholding type defined + */ + public void setC_Withholding_ID (int C_Withholding_ID); + + /** Get Withholding. + * Withholding type defined + */ + public int getC_Withholding_ID(); + + public I_C_Withholding getI_C_Withholding() throws Exception; + + /** Column name ExemptReason */ + public static final String COLUMNNAME_ExemptReason = "ExemptReason"; + + /** Set Exempt reason. + * Reason for not withholding + */ + public void setExemptReason (String ExemptReason); + + /** Get Exempt reason. + * Reason for not withholding + */ + public String getExemptReason(); + + /** Column name IsMandatoryWithholding */ + public static final String COLUMNNAME_IsMandatoryWithholding = "IsMandatoryWithholding"; + + /** Set Mandatory Withholding. + * Monies must be withheld + */ + public void setIsMandatoryWithholding (boolean IsMandatoryWithholding); + + /** Get Mandatory Withholding. + * Monies must be withheld + */ + public boolean isMandatoryWithholding(); + + /** Column name IsTemporaryExempt */ + public static final String COLUMNNAME_IsTemporaryExempt = "IsTemporaryExempt"; + + /** Set Temporary exempt. + * Temporarily do not withhold taxes + */ + public void setIsTemporaryExempt (boolean IsTemporaryExempt); + + /** Get Temporary exempt. + * Temporarily do not withhold taxes + */ + public boolean isTemporaryExempt(); +} diff --git a/base/src/org/compiere/model/I_C_BPartner.java b/base/src/org/compiere/model/I_C_BPartner.java new file mode 100644 index 0000000000..0cfb86d715 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BPartner.java @@ -0,0 +1,822 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BPartner + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.265 + */ + public interface I_C_BPartner +{ + + /** TableName=C_BPartner */ + public static final String Table_Name = "C_BPartner"; + + /** AD_Table_ID=291 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AD_OrgBP_ID */ + public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; + + /** Set Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (String AD_OrgBP_ID); + + /** Get Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public String getAD_OrgBP_ID(); + + /** Column name AcqusitionCost */ + public static final String COLUMNNAME_AcqusitionCost = "AcqusitionCost"; + + /** Set Acquisition Cost. + * The cost of gaining the prospect as a customer + */ + public void setAcqusitionCost (BigDecimal AcqusitionCost); + + /** Get Acquisition Cost. + * The cost of gaining the prospect as a customer + */ + public BigDecimal getAcqusitionCost(); + + /** Column name ActualLifeTimeValue */ + public static final String COLUMNNAME_ActualLifeTimeValue = "ActualLifeTimeValue"; + + /** Set Actual Life Time Value. + * Actual Life Time Revenue + */ + public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue); + + /** Get Actual Life Time Value. + * Actual Life Time Revenue + */ + public BigDecimal getActualLifeTimeValue(); + + /** Column name BPartner_Parent_ID */ + public static final String COLUMNNAME_BPartner_Parent_ID = "BPartner_Parent_ID"; + + /** Set Partner Parent. + * Business Partner Parent + */ + public void setBPartner_Parent_ID (int BPartner_Parent_ID); + + /** Get Partner Parent. + * Business Partner Parent + */ + public int getBPartner_Parent_ID(); + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Dunning_ID */ + public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; + + /** Set Dunning. + * Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID); + + /** Get Dunning. + * Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID(); + + public I_C_Dunning getI_C_Dunning() throws Exception; + + /** Column name C_Greeting_ID */ + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + + /** Set Greeting. + * Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID); + + /** Get Greeting. + * Greeting to print on correspondence + */ + public int getC_Greeting_ID(); + + public I_C_Greeting getI_C_Greeting() throws Exception; + + /** Column name C_InvoiceSchedule_ID */ + public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; + + /** Set Invoice Schedule. + * Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID); + + /** Get Invoice Schedule. + * Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID(); + + public I_C_InvoiceSchedule getI_C_InvoiceSchedule() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name DUNS */ + public static final String COLUMNNAME_DUNS = "DUNS"; + + /** Set D-U-N-S. + * Dun & Bradstreet Number + */ + public void setDUNS (String DUNS); + + /** Get D-U-N-S. + * Dun & Bradstreet Number + */ + public String getDUNS(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentCopies */ + public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; + + /** Set Document Copies. + * Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies); + + /** Get Document Copies. + * Number of copies to be printed + */ + public int getDocumentCopies(); + + /** Column name FirstSale */ + public static final String COLUMNNAME_FirstSale = "FirstSale"; + + /** Set First Sale. + * Date of First Sale + */ + public void setFirstSale (Timestamp FirstSale); + + /** Get First Sale. + * Date of First Sale + */ + public Timestamp getFirstSale(); + + /** Column name FlatDiscount */ + public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; + + /** Set Flat Discount %. + * Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount); + + /** Get Flat Discount %. + * Flat discount percentage + */ + public BigDecimal getFlatDiscount(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name InvoiceRule */ + public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + + /** Set Invoice Rule. + * Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule); + + /** Get Invoice Rule. + * Frequency and method of invoicing + */ + public String getInvoiceRule(); + + /** Column name Invoice_PrintFormat_ID */ + public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; + + /** Set Invoice Print Format. + * Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID); + + /** Get Invoice Print Format. + * Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID(); + + /** Column name IsCustomer */ + public static final String COLUMNNAME_IsCustomer = "IsCustomer"; + + /** Set Customer. + * Indicates if this Business Partner is a Customer + */ + public void setIsCustomer (boolean IsCustomer); + + /** Get Customer. + * Indicates if this Business Partner is a Customer + */ + public boolean isCustomer(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsEmployee */ + public static final String COLUMNNAME_IsEmployee = "IsEmployee"; + + /** Set Employee. + * Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee); + + /** Get Employee. + * Indicates if this Business Partner is an employee + */ + public boolean isEmployee(); + + /** Column name IsOneTime */ + public static final String COLUMNNAME_IsOneTime = "IsOneTime"; + + /** Set One time transaction */ + public void setIsOneTime (boolean IsOneTime); + + /** Get One time transaction */ + public boolean isOneTime(); + + /** Column name IsProspect */ + public static final String COLUMNNAME_IsProspect = "IsProspect"; + + /** Set Prospect. + * Indicates this is a Prospect + */ + public void setIsProspect (boolean IsProspect); + + /** Get Prospect. + * Indicates this is a Prospect + */ + public boolean isProspect(); + + /** Column name IsSalesRep */ + public static final String COLUMNNAME_IsSalesRep = "IsSalesRep"; + + /** Set Sales Representative. + * Indicates if the business partner is a sales representative or company agent + */ + public void setIsSalesRep (boolean IsSalesRep); + + /** Get Sales Representative. + * Indicates if the business partner is a sales representative or company agent + */ + public boolean isSalesRep(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsTaxExempt */ + public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; + + /** Set Tax exempt. + * Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt); + + /** Get Tax exempt. + * Business partner is exempt from tax + */ + public boolean isTaxExempt(); + + /** Column name IsVendor */ + public static final String COLUMNNAME_IsVendor = "IsVendor"; + + /** Set Vendor. + * Indicates if this Business Partner is a Vendor + */ + public void setIsVendor (boolean IsVendor); + + /** Get Vendor. + * Indicates if this Business Partner is a Vendor + */ + public boolean isVendor(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name NAICS */ + public static final String COLUMNNAME_NAICS = "NAICS"; + + /** Set NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS); + + /** Get NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Name2 */ + public static final String COLUMNNAME_Name2 = "Name2"; + + /** Set Name 2. + * Additional Name + */ + public void setName2 (String Name2); + + /** Get Name 2. + * Additional Name + */ + public String getName2(); + + /** Column name NumberEmployees */ + public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; + + /** Set Employees. + * Number of employees + */ + public void setNumberEmployees (int NumberEmployees); + + /** Get Employees. + * Number of employees + */ + public int getNumberEmployees(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PO_DiscountSchema_ID */ + public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + + /** Set PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID); + + /** Get PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID(); + + /** Column name PO_PaymentTerm_ID */ + public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; + + /** Set PO Payment Term. + * Payment rules for a purchase order + */ + public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID); + + /** Get PO Payment Term. + * Payment rules for a purchase order + */ + public int getPO_PaymentTerm_ID(); + + /** Column name PO_PriceList_ID */ + public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; + + /** Set Purchase Pricelist. + * Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID); + + /** Get Purchase Pricelist. + * Price List used by this Business Partner + */ + public int getPO_PriceList_ID(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name PaymentRulePO */ + public static final String COLUMNNAME_PaymentRulePO = "PaymentRulePO"; + + /** Set Payment Rule. + * Purchase payment option + */ + public void setPaymentRulePO (String PaymentRulePO); + + /** Get Payment Rule. + * Purchase payment option + */ + public String getPaymentRulePO(); + + /** Column name PotentialLifeTimeValue */ + public static final String COLUMNNAME_PotentialLifeTimeValue = "PotentialLifeTimeValue"; + + /** Set Potential Life Time Value. + * Total Revenue expected + */ + public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue); + + /** Get Potential Life Time Value. + * Total Revenue expected + */ + public BigDecimal getPotentialLifeTimeValue(); + + /** Column name Rating */ + public static final String COLUMNNAME_Rating = "Rating"; + + /** Set Rating. + * Classification or Importance + */ + public void setRating (String Rating); + + /** Get Rating. + * Classification or Importance + */ + public String getRating(); + + /** Column name ReferenceNo */ + public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; + + /** Set Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo); + + /** Get Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo(); + + /** Column name SOCreditStatus */ + public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; + + /** Set Credit Status. + * Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus); + + /** Get Credit Status. + * Business Partner Credit Status + */ + public String getSOCreditStatus(); + + /** Column name SO_CreditLimit */ + public static final String COLUMNNAME_SO_CreditLimit = "SO_CreditLimit"; + + /** Set Credit Limit. + * Total outstanding invoice amounts allowed + */ + public void setSO_CreditLimit (BigDecimal SO_CreditLimit); + + /** Get Credit Limit. + * Total outstanding invoice amounts allowed + */ + public BigDecimal getSO_CreditLimit(); + + /** Column name SO_CreditUsed */ + public static final String COLUMNNAME_SO_CreditUsed = "SO_CreditUsed"; + + /** Set Credit Used. + * Current open balance + */ + public void setSO_CreditUsed (BigDecimal SO_CreditUsed); + + /** Get Credit Used. + * Current open balance + */ + public BigDecimal getSO_CreditUsed(); + + /** Column name SO_Description */ + public static final String COLUMNNAME_SO_Description = "SO_Description"; + + /** Set Order Description. + * Description to be used on orders + */ + public void setSO_Description (String SO_Description); + + /** Get Order Description. + * Description to be used on orders + */ + public String getSO_Description(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name SalesVolume */ + public static final String COLUMNNAME_SalesVolume = "SalesVolume"; + + /** Set Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (int SalesVolume); + + /** Get Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public int getSalesVolume(); + + /** Column name SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name ShareOfCustomer */ + public static final String COLUMNNAME_ShareOfCustomer = "ShareOfCustomer"; + + /** Set Share. + * Share of Customer's business as a percentage + */ + public void setShareOfCustomer (int ShareOfCustomer); + + /** Get Share. + * Share of Customer's business as a percentage + */ + public int getShareOfCustomer(); + + /** Column name ShelfLifeMinPct */ + public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; + + /** Set Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct); + + /** Get Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct(); + + /** Column name TaxID */ + public static final String COLUMNNAME_TaxID = "TaxID"; + + /** Set Tax ID. + * Tax Identification + */ + public void setTaxID (String TaxID); + + /** Get Tax ID. + * Tax Identification + */ + public String getTaxID(); + + /** Column name TotalOpenBalance */ + public static final String COLUMNNAME_TotalOpenBalance = "TotalOpenBalance"; + + /** Set Open Balance. + * Total Open Balance Amount in primary Accounting Currency + */ + public void setTotalOpenBalance (BigDecimal TotalOpenBalance); + + /** Get Open Balance. + * Total Open Balance Amount in primary Accounting Currency + */ + public BigDecimal getTotalOpenBalance(); + + /** Column name URL */ + public static final String COLUMNNAME_URL = "URL"; + + /** Set URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL); + + /** Get URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public String getURL(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_BPartner_Location.java b/base/src/org/compiere/model/I_C_BPartner_Location.java new file mode 100644 index 0000000000..778a8ee543 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BPartner_Location.java @@ -0,0 +1,231 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BPartner_Location + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.39 + */ + public interface I_C_BPartner_Location +{ + + /** TableName=C_BPartner_Location */ + public static final String Table_Name = "C_BPartner_Location"; + + /** AD_Table_ID=293 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name Fax */ + public static final String COLUMNNAME_Fax = "Fax"; + + /** Set Fax. + * Facsimile number + */ + public void setFax (String Fax); + + /** Get Fax. + * Facsimile number + */ + public String getFax(); + + /** Column name ISDN */ + public static final String COLUMNNAME_ISDN = "ISDN"; + + /** Set ISDN. + * ISDN or modem line + */ + public void setISDN (String ISDN); + + /** Get ISDN. + * ISDN or modem line + */ + public String getISDN(); + + /** Column name IsBillTo */ + public static final String COLUMNNAME_IsBillTo = "IsBillTo"; + + /** Set Invoice Address. + * Business Partner Invoice/Bill Address + */ + public void setIsBillTo (boolean IsBillTo); + + /** Get Invoice Address. + * Business Partner Invoice/Bill Address + */ + public boolean isBillTo(); + + /** Column name IsPayFrom */ + public static final String COLUMNNAME_IsPayFrom = "IsPayFrom"; + + /** Set Pay-From Address. + * Business Partner pays from that address and we'll send dunning letters there + */ + public void setIsPayFrom (boolean IsPayFrom); + + /** Get Pay-From Address. + * Business Partner pays from that address and we'll send dunning letters there + */ + public boolean isPayFrom(); + + /** Column name IsRemitTo */ + public static final String COLUMNNAME_IsRemitTo = "IsRemitTo"; + + /** Set Remit-To Address. + * Business Partner payment address + */ + public void setIsRemitTo (boolean IsRemitTo); + + /** Get Remit-To Address. + * Business Partner payment address + */ + public boolean isRemitTo(); + + /** Column name IsShipTo */ + public static final String COLUMNNAME_IsShipTo = "IsShipTo"; + + /** Set Ship Address. + * Business Partner Shipment Address + */ + public void setIsShipTo (boolean IsShipTo); + + /** Get Ship Address. + * Business Partner Shipment Address + */ + public boolean isShipTo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Phone */ + public static final String COLUMNNAME_Phone = "Phone"; + + /** Set Phone. + * Identifies a telephone number + */ + public void setPhone (String Phone); + + /** Get Phone. + * Identifies a telephone number + */ + public String getPhone(); + + /** Column name Phone2 */ + public static final String COLUMNNAME_Phone2 = "Phone2"; + + /** Set 2nd Phone. + * Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2); + + /** Get 2nd Phone. + * Identifies an alternate telephone number. + */ + public String getPhone2(); +} diff --git a/base/src/org/compiere/model/I_C_BPartner_Product.java b/base/src/org/compiere/model/I_C_BPartner_Product.java new file mode 100644 index 0000000000..84f0fc997b --- /dev/null +++ b/base/src/org/compiere/model/I_C_BPartner_Product.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BPartner_Product + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.406 + */ + public interface I_C_BPartner_Product +{ + + /** TableName=C_BPartner_Product */ + public static final String Table_Name = "C_BPartner_Product"; + + /** AD_Table_ID=632 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Manufacturer */ + public static final String COLUMNNAME_Manufacturer = "Manufacturer"; + + /** Set Manufacturer. + * Manufacturer of the Product + */ + public void setManufacturer (String Manufacturer); + + /** Get Manufacturer. + * Manufacturer of the Product + */ + public String getManufacturer(); + + /** Column name QualityRating */ + public static final String COLUMNNAME_QualityRating = "QualityRating"; + + /** Set Quality Rating. + * Method for rating vendors + */ + public void setQualityRating (BigDecimal QualityRating); + + /** Get Quality Rating. + * Method for rating vendors + */ + public BigDecimal getQualityRating(); + + /** Column name ShelfLifeMinDays */ + public static final String COLUMNNAME_ShelfLifeMinDays = "ShelfLifeMinDays"; + + /** Set Min Shelf Life Days. + * Minimum Shelf Life in days based on Product Instance Guarantee Date + */ + public void setShelfLifeMinDays (int ShelfLifeMinDays); + + /** Get Min Shelf Life Days. + * Minimum Shelf Life in days based on Product Instance Guarantee Date + */ + public int getShelfLifeMinDays(); + + /** Column name ShelfLifeMinPct */ + public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; + + /** Set Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct); + + /** Get Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct(); + + /** Column name VendorCategory */ + public static final String COLUMNNAME_VendorCategory = "VendorCategory"; + + /** Set Partner Category. + * Product Category of the Business Partner + */ + public void setVendorCategory (String VendorCategory); + + /** Get Partner Category. + * Product Category of the Business Partner + */ + public String getVendorCategory(); + + /** Column name VendorProductNo */ + public static final String COLUMNNAME_VendorProductNo = "VendorProductNo"; + + /** Set Partner Product Key. + * Product Key of the Business Partner + */ + public void setVendorProductNo (String VendorProductNo); + + /** Get Partner Product Key. + * Product Key of the Business Partner + */ + public String getVendorProductNo(); +} diff --git a/base/src/org/compiere/model/I_C_Bank.java b/base/src/org/compiere/model/I_C_Bank.java new file mode 100644 index 0000000000..1ebf53a820 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Bank.java @@ -0,0 +1,151 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Bank + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.468 + */ + public interface I_C_Bank +{ + + /** TableName=C_Bank */ + public static final String Table_Name = "C_Bank"; + + /** AD_Table_ID=296 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Bank_ID */ + public static final String COLUMNNAME_C_Bank_ID = "C_Bank_ID"; + + /** Set Bank. + * Bank + */ + public void setC_Bank_ID (int C_Bank_ID); + + /** Get Bank. + * Bank + */ + public int getC_Bank_ID(); + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsOwnBank */ + public static final String COLUMNNAME_IsOwnBank = "IsOwnBank"; + + /** Set Own Bank. + * Bank for this Organization + */ + public void setIsOwnBank (boolean IsOwnBank); + + /** Get Own Bank. + * Bank for this Organization + */ + public boolean isOwnBank(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name RoutingNo */ + public static final String COLUMNNAME_RoutingNo = "RoutingNo"; + + /** Set Routing No. + * Bank Routing Number + */ + public void setRoutingNo (String RoutingNo); + + /** Get Routing No. + * Bank Routing Number + */ + public String getRoutingNo(); + + /** Column name SwiftCode */ + public static final String COLUMNNAME_SwiftCode = "SwiftCode"; + + /** Set Swift code. + * Swift Code or BIC + */ + public void setSwiftCode (String SwiftCode); + + /** Get Swift code. + * Swift Code or BIC + */ + public String getSwiftCode(); +} diff --git a/base/src/org/compiere/model/I_C_BankAccount.java b/base/src/org/compiere/model/I_C_BankAccount.java new file mode 100644 index 0000000000..3328c86fd8 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankAccount.java @@ -0,0 +1,207 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankAccount + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.484 + */ + public interface I_C_BankAccount +{ + + /** TableName=C_BankAccount */ + public static final String Table_Name = "C_BankAccount"; + + /** AD_Table_ID=297 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AccountNo */ + public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** Set Account No. + * Account Number + */ + public void setAccountNo (String AccountNo); + + /** Get Account No. + * Account Number + */ + public String getAccountNo(); + + /** Column name BBAN */ + public static final String COLUMNNAME_BBAN = "BBAN"; + + /** Set BBAN. + * Basic Bank Account Number + */ + public void setBBAN (String BBAN); + + /** Get BBAN. + * Basic Bank Account Number + */ + public String getBBAN(); + + /** Column name BankAccountType */ + public static final String COLUMNNAME_BankAccountType = "BankAccountType"; + + /** Set Bank Account Type. + * Bank Account Type + */ + public void setBankAccountType (String BankAccountType); + + /** Get Bank Account Type. + * Bank Account Type + */ + public String getBankAccountType(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + /** Column name C_Bank_ID */ + public static final String COLUMNNAME_C_Bank_ID = "C_Bank_ID"; + + /** Set Bank. + * Bank + */ + public void setC_Bank_ID (int C_Bank_ID); + + /** Get Bank. + * Bank + */ + public int getC_Bank_ID(); + + public I_C_Bank getI_C_Bank() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name CreditLimit */ + public static final String COLUMNNAME_CreditLimit = "CreditLimit"; + + /** Set Credit limit. + * Amount of Credit allowed + */ + public void setCreditLimit (BigDecimal CreditLimit); + + /** Get Credit limit. + * Amount of Credit allowed + */ + public BigDecimal getCreditLimit(); + + /** Column name CurrentBalance */ + public static final String COLUMNNAME_CurrentBalance = "CurrentBalance"; + + /** Set Current balance. + * Current Balance + */ + public void setCurrentBalance (BigDecimal CurrentBalance); + + /** Get Current balance. + * Current Balance + */ + public BigDecimal getCurrentBalance(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IBAN */ + public static final String COLUMNNAME_IBAN = "IBAN"; + + /** Set IBAN. + * International Bank Account Number + */ + public void setIBAN (String IBAN); + + /** Get IBAN. + * International Bank Account Number + */ + public String getIBAN(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); +} diff --git a/base/src/org/compiere/model/I_C_BankAccountDoc.java b/base/src/org/compiere/model/I_C_BankAccountDoc.java new file mode 100644 index 0000000000..88b8c48ece --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankAccountDoc.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankAccountDoc + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.531 + */ + public interface I_C_BankAccountDoc +{ + + /** TableName=C_BankAccountDoc */ + public static final String Table_Name = "C_BankAccountDoc"; + + /** AD_Table_ID=455 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BankAccountDoc_ID */ + public static final String COLUMNNAME_C_BankAccountDoc_ID = "C_BankAccountDoc_ID"; + + /** Set Bank Account Document. + * Checks, Transfers, etc. + */ + public void setC_BankAccountDoc_ID (int C_BankAccountDoc_ID); + + /** Get Bank Account Document. + * Checks, Transfers, etc. + */ + public int getC_BankAccountDoc_ID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name Check_PrintFormat_ID */ + public static final String COLUMNNAME_Check_PrintFormat_ID = "Check_PrintFormat_ID"; + + /** Set Check Print Format. + * Print Format for printing Checks + */ + public void setCheck_PrintFormat_ID (int Check_PrintFormat_ID); + + /** Get Check Print Format. + * Print Format for printing Checks + */ + public int getCheck_PrintFormat_ID(); + + /** Column name CurrentNext */ + public static final String COLUMNNAME_CurrentNext = "CurrentNext"; + + /** Set Current Next. + * The next number to be used + */ + public void setCurrentNext (int CurrentNext); + + /** Get Current Next. + * The next number to be used + */ + public int getCurrentNext(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); +} diff --git a/base/src/org/compiere/model/I_C_BankAccount_Acct.java b/base/src/org/compiere/model/I_C_BankAccount_Acct.java new file mode 100644 index 0000000000..6a79e86389 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankAccount_Acct.java @@ -0,0 +1,246 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankAccount_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.609 + */ + public interface I_C_BankAccount_Acct +{ + + /** TableName=C_BankAccount_Acct */ + public static final String Table_Name = "C_BankAccount_Acct"; + + /** AD_Table_ID=391 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name B_Asset_Acct */ + public static final String COLUMNNAME_B_Asset_Acct = "B_Asset_Acct"; + + /** Set Bank Asset. + * Bank Asset Account + */ + public void setB_Asset_Acct (int B_Asset_Acct); + + /** Get Bank Asset. + * Bank Asset Account + */ + public int getB_Asset_Acct(); + + /** Column name B_Expense_Acct */ + public static final String COLUMNNAME_B_Expense_Acct = "B_Expense_Acct"; + + /** Set Bank Expense. + * Bank Expense Account + */ + public void setB_Expense_Acct (int B_Expense_Acct); + + /** Get Bank Expense. + * Bank Expense Account + */ + public int getB_Expense_Acct(); + + /** Column name B_InTransit_Acct */ + public static final String COLUMNNAME_B_InTransit_Acct = "B_InTransit_Acct"; + + /** Set Bank In Transit. + * Bank In Transit Account + */ + public void setB_InTransit_Acct (int B_InTransit_Acct); + + /** Get Bank In Transit. + * Bank In Transit Account + */ + public int getB_InTransit_Acct(); + + /** Column name B_InterestExp_Acct */ + public static final String COLUMNNAME_B_InterestExp_Acct = "B_InterestExp_Acct"; + + /** Set Bank Interest Expense. + * Bank Interest Expense Account + */ + public void setB_InterestExp_Acct (int B_InterestExp_Acct); + + /** Get Bank Interest Expense. + * Bank Interest Expense Account + */ + public int getB_InterestExp_Acct(); + + /** Column name B_InterestRev_Acct */ + public static final String COLUMNNAME_B_InterestRev_Acct = "B_InterestRev_Acct"; + + /** Set Bank Interest Revenue. + * Bank Interest Revenue Account + */ + public void setB_InterestRev_Acct (int B_InterestRev_Acct); + + /** Get Bank Interest Revenue. + * Bank Interest Revenue Account + */ + public int getB_InterestRev_Acct(); + + /** Column name B_PaymentSelect_Acct */ + public static final String COLUMNNAME_B_PaymentSelect_Acct = "B_PaymentSelect_Acct"; + + /** Set Payment Selection. + * AP Payment Selection Clearing Account + */ + public void setB_PaymentSelect_Acct (int B_PaymentSelect_Acct); + + /** Get Payment Selection. + * AP Payment Selection Clearing Account + */ + public int getB_PaymentSelect_Acct(); + + /** Column name B_RevaluationGain_Acct */ + public static final String COLUMNNAME_B_RevaluationGain_Acct = "B_RevaluationGain_Acct"; + + /** Set Bank Revaluation Gain. + * Bank Revaluation Gain Account + */ + public void setB_RevaluationGain_Acct (int B_RevaluationGain_Acct); + + /** Get Bank Revaluation Gain. + * Bank Revaluation Gain Account + */ + public int getB_RevaluationGain_Acct(); + + /** Column name B_RevaluationLoss_Acct */ + public static final String COLUMNNAME_B_RevaluationLoss_Acct = "B_RevaluationLoss_Acct"; + + /** Set Bank Revaluation Loss. + * Bank Revaluation Loss Account + */ + public void setB_RevaluationLoss_Acct (int B_RevaluationLoss_Acct); + + /** Get Bank Revaluation Loss. + * Bank Revaluation Loss Account + */ + public int getB_RevaluationLoss_Acct(); + + /** Column name B_SettlementGain_Acct */ + public static final String COLUMNNAME_B_SettlementGain_Acct = "B_SettlementGain_Acct"; + + /** Set Bank Settlement Gain. + * Bank Settlement Gain Account + */ + public void setB_SettlementGain_Acct (int B_SettlementGain_Acct); + + /** Get Bank Settlement Gain. + * Bank Settlement Gain Account + */ + public int getB_SettlementGain_Acct(); + + /** Column name B_SettlementLoss_Acct */ + public static final String COLUMNNAME_B_SettlementLoss_Acct = "B_SettlementLoss_Acct"; + + /** Set Bank Settlement Loss. + * Bank Settlement Loss Account + */ + public void setB_SettlementLoss_Acct (int B_SettlementLoss_Acct); + + /** Get Bank Settlement Loss. + * Bank Settlement Loss Account + */ + public int getB_SettlementLoss_Acct(); + + /** Column name B_UnallocatedCash_Acct */ + public static final String COLUMNNAME_B_UnallocatedCash_Acct = "B_UnallocatedCash_Acct"; + + /** Set Unallocated Cash. + * Unallocated Cash Clearing Account + */ + public void setB_UnallocatedCash_Acct (int B_UnallocatedCash_Acct); + + /** Get Unallocated Cash. + * Unallocated Cash Clearing Account + */ + public int getB_UnallocatedCash_Acct(); + + /** Column name B_Unidentified_Acct */ + public static final String COLUMNNAME_B_Unidentified_Acct = "B_Unidentified_Acct"; + + /** Set Bank Unidentified Receipts. + * Bank Unidentified Receipts Account + */ + public void setB_Unidentified_Acct (int B_Unidentified_Acct); + + /** Get Bank Unidentified Receipts. + * Bank Unidentified Receipts Account + */ + public int getB_Unidentified_Acct(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; +} diff --git a/base/src/org/compiere/model/I_C_BankStatement.java b/base/src/org/compiere/model/I_C_BankStatement.java new file mode 100644 index 0000000000..20d2e29324 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankStatement.java @@ -0,0 +1,301 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankStatement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:37.64 + */ + public interface I_C_BankStatement +{ + + /** TableName=C_BankStatement */ + public static final String Table_Name = "C_BankStatement"; + + /** AD_Table_ID=392 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BeginningBalance */ + public static final String COLUMNNAME_BeginningBalance = "BeginningBalance"; + + /** Set Beginning Balance. + * Balance prior to any transactions + */ + public void setBeginningBalance (BigDecimal BeginningBalance); + + /** Get Beginning Balance. + * Balance prior to any transactions + */ + public BigDecimal getBeginningBalance(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_BankStatement_ID */ + public static final String COLUMNNAME_C_BankStatement_ID = "C_BankStatement_ID"; + + /** Set Bank Statement. + * Bank Statement of account + */ + public void setC_BankStatement_ID (int C_BankStatement_ID); + + /** Get Bank Statement. + * Bank Statement of account + */ + public int getC_BankStatement_ID(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name EftStatementDate */ + public static final String COLUMNNAME_EftStatementDate = "EftStatementDate"; + + /** Set EFT Statement Date. + * Electronic Funds Transfer Statement Date + */ + public void setEftStatementDate (Timestamp EftStatementDate); + + /** Get EFT Statement Date. + * Electronic Funds Transfer Statement Date + */ + public Timestamp getEftStatementDate(); + + /** Column name EftStatementReference */ + public static final String COLUMNNAME_EftStatementReference = "EftStatementReference"; + + /** Set EFT Statement Reference. + * Electronic Funds Transfer Statement Reference + */ + public void setEftStatementReference (String EftStatementReference); + + /** Get EFT Statement Reference. + * Electronic Funds Transfer Statement Reference + */ + public String getEftStatementReference(); + + /** Column name EndingBalance */ + public static final String COLUMNNAME_EndingBalance = "EndingBalance"; + + /** Set Ending balance. + * Ending or closing balance + */ + public void setEndingBalance (BigDecimal EndingBalance); + + /** Get Ending balance. + * Ending or closing balance + */ + public BigDecimal getEndingBalance(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name MatchStatement */ + public static final String COLUMNNAME_MatchStatement = "MatchStatement"; + + /** Set Match Statement */ + public void setMatchStatement (String MatchStatement); + + /** Get Match Statement */ + public String getMatchStatement(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name StatementDate */ + public static final String COLUMNNAME_StatementDate = "StatementDate"; + + /** Set Statement date. + * Date of the statement + */ + public void setStatementDate (Timestamp StatementDate); + + /** Get Statement date. + * Date of the statement + */ + public Timestamp getStatementDate(); + + /** Column name StatementDifference */ + public static final String COLUMNNAME_StatementDifference = "StatementDifference"; + + /** Set Statement difference. + * Difference between statement ending balance and actual ending balance + */ + public void setStatementDifference (BigDecimal StatementDifference); + + /** Get Statement difference. + * Difference between statement ending balance and actual ending balance + */ + public BigDecimal getStatementDifference(); +} diff --git a/base/src/org/compiere/model/I_C_BankStatementLine.java b/base/src/org/compiere/model/I_C_BankStatementLine.java new file mode 100644 index 0000000000..1f844db1f8 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankStatementLine.java @@ -0,0 +1,500 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankStatementLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.078 + */ + public interface I_C_BankStatementLine +{ + + /** TableName=C_BankStatementLine */ + public static final String Table_Name = "C_BankStatementLine"; + + /** AD_Table_ID=393 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BankStatementLine_ID */ + public static final String COLUMNNAME_C_BankStatementLine_ID = "C_BankStatementLine_ID"; + + /** Set Bank statement line. + * Line on a statement from this Bank + */ + public void setC_BankStatementLine_ID (int C_BankStatementLine_ID); + + /** Get Bank statement line. + * Line on a statement from this Bank + */ + public int getC_BankStatementLine_ID(); + + /** Column name C_BankStatement_ID */ + public static final String COLUMNNAME_C_BankStatement_ID = "C_BankStatement_ID"; + + /** Set Bank Statement. + * Bank Statement of account + */ + public void setC_BankStatement_ID (int C_BankStatement_ID); + + /** Get Bank Statement. + * Bank Statement of account + */ + public int getC_BankStatement_ID(); + + public I_C_BankStatement getI_C_BankStatement() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CreatePayment */ + public static final String COLUMNNAME_CreatePayment = "CreatePayment"; + + /** Set Create Payment */ + public void setCreatePayment (String CreatePayment); + + /** Get Create Payment */ + public String getCreatePayment(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EftAmt */ + public static final String COLUMNNAME_EftAmt = "EftAmt"; + + /** Set EFT Amount. + * Electronic Funds Transfer Amount + */ + public void setEftAmt (BigDecimal EftAmt); + + /** Get EFT Amount. + * Electronic Funds Transfer Amount + */ + public BigDecimal getEftAmt(); + + /** Column name EftCheckNo */ + public static final String COLUMNNAME_EftCheckNo = "EftCheckNo"; + + /** Set EFT Check No. + * Electronic Funds Transfer Check No + */ + public void setEftCheckNo (String EftCheckNo); + + /** Get EFT Check No. + * Electronic Funds Transfer Check No + */ + public String getEftCheckNo(); + + /** Column name EftCurrency */ + public static final String COLUMNNAME_EftCurrency = "EftCurrency"; + + /** Set EFT Currency. + * Electronic Funds Transfer Currency + */ + public void setEftCurrency (String EftCurrency); + + /** Get EFT Currency. + * Electronic Funds Transfer Currency + */ + public String getEftCurrency(); + + /** Column name EftMemo */ + public static final String COLUMNNAME_EftMemo = "EftMemo"; + + /** Set EFT Memo. + * Electronic Funds Transfer Memo + */ + public void setEftMemo (String EftMemo); + + /** Get EFT Memo. + * Electronic Funds Transfer Memo + */ + public String getEftMemo(); + + /** Column name EftPayee */ + public static final String COLUMNNAME_EftPayee = "EftPayee"; + + /** Set EFT Payee. + * Electronic Funds Transfer Payee information + */ + public void setEftPayee (String EftPayee); + + /** Get EFT Payee. + * Electronic Funds Transfer Payee information + */ + public String getEftPayee(); + + /** Column name EftPayeeAccount */ + public static final String COLUMNNAME_EftPayeeAccount = "EftPayeeAccount"; + + /** Set EFT Payee Account. + * Electronic Funds Transfer Payyee Account Information + */ + public void setEftPayeeAccount (String EftPayeeAccount); + + /** Get EFT Payee Account. + * Electronic Funds Transfer Payyee Account Information + */ + public String getEftPayeeAccount(); + + /** Column name EftReference */ + public static final String COLUMNNAME_EftReference = "EftReference"; + + /** Set EFT Reference. + * Electronic Funds Transfer Reference + */ + public void setEftReference (String EftReference); + + /** Get EFT Reference. + * Electronic Funds Transfer Reference + */ + public String getEftReference(); + + /** Column name EftStatementLineDate */ + public static final String COLUMNNAME_EftStatementLineDate = "EftStatementLineDate"; + + /** Set EFT Statement Line Date. + * Electronic Funds Transfer Statement Line Date + */ + public void setEftStatementLineDate (Timestamp EftStatementLineDate); + + /** Get EFT Statement Line Date. + * Electronic Funds Transfer Statement Line Date + */ + public Timestamp getEftStatementLineDate(); + + /** Column name EftTrxID */ + public static final String COLUMNNAME_EftTrxID = "EftTrxID"; + + /** Set EFT Trx ID. + * Electronic Funds Transfer Transaction ID + */ + public void setEftTrxID (String EftTrxID); + + /** Get EFT Trx ID. + * Electronic Funds Transfer Transaction ID + */ + public String getEftTrxID(); + + /** Column name EftTrxType */ + public static final String COLUMNNAME_EftTrxType = "EftTrxType"; + + /** Set EFT Trx Type. + * Electronic Funds Transfer Transaction Type + */ + public void setEftTrxType (String EftTrxType); + + /** Get EFT Trx Type. + * Electronic Funds Transfer Transaction Type + */ + public String getEftTrxType(); + + /** Column name EftValutaDate */ + public static final String COLUMNNAME_EftValutaDate = "EftValutaDate"; + + /** Set EFT Effective Date. + * Electronic Funds Transfer Valuta (effective) Date + */ + public void setEftValutaDate (Timestamp EftValutaDate); + + /** Get EFT Effective Date. + * Electronic Funds Transfer Valuta (effective) Date + */ + public Timestamp getEftValutaDate(); + + /** Column name InterestAmt */ + public static final String COLUMNNAME_InterestAmt = "InterestAmt"; + + /** Set Interest Amount. + * Interest Amount + */ + public void setInterestAmt (BigDecimal InterestAmt); + + /** Get Interest Amount. + * Interest Amount + */ + public BigDecimal getInterestAmt(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name IsReversal */ + public static final String COLUMNNAME_IsReversal = "IsReversal"; + + /** Set Reversal. + * This is a reversing transaction + */ + public void setIsReversal (boolean IsReversal); + + /** Get Reversal. + * This is a reversing transaction + */ + public boolean isReversal(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name MatchStatement */ + public static final String COLUMNNAME_MatchStatement = "MatchStatement"; + + /** Set Match Statement */ + public void setMatchStatement (String MatchStatement); + + /** Get Match Statement */ + public String getMatchStatement(); + + /** Column name Memo */ + public static final String COLUMNNAME_Memo = "Memo"; + + /** Set Memo. + * Memo Text + */ + public void setMemo (String Memo); + + /** Get Memo. + * Memo Text + */ + public String getMemo(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ReferenceNo */ + public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; + + /** Set Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo); + + /** Get Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo(); + + /** Column name StatementLineDate */ + public static final String COLUMNNAME_StatementLineDate = "StatementLineDate"; + + /** Set Statement Line Date. + * Date of the Statement Line + */ + public void setStatementLineDate (Timestamp StatementLineDate); + + /** Get Statement Line Date. + * Date of the Statement Line + */ + public Timestamp getStatementLineDate(); + + /** Column name StmtAmt */ + public static final String COLUMNNAME_StmtAmt = "StmtAmt"; + + /** Set Statement amount. + * Statement Amount + */ + public void setStmtAmt (BigDecimal StmtAmt); + + /** Get Statement amount. + * Statement Amount + */ + public BigDecimal getStmtAmt(); + + /** Column name TrxAmt */ + public static final String COLUMNNAME_TrxAmt = "TrxAmt"; + + /** Set Transaction Amount. + * Amount of a transaction + */ + public void setTrxAmt (BigDecimal TrxAmt); + + /** Get Transaction Amount. + * Amount of a transaction + */ + public BigDecimal getTrxAmt(); + + /** Column name ValutaDate */ + public static final String COLUMNNAME_ValutaDate = "ValutaDate"; + + /** Set Effective date. + * Date when money is available + */ + public void setValutaDate (Timestamp ValutaDate); + + /** Get Effective date. + * Date when money is available + */ + public Timestamp getValutaDate(); +} diff --git a/base/src/org/compiere/model/I_C_BankStatementLoader.java b/base/src/org/compiere/model/I_C_BankStatementLoader.java new file mode 100644 index 0000000000..153ad54a5a --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankStatementLoader.java @@ -0,0 +1,322 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankStatementLoader + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.125 + */ + public interface I_C_BankStatementLoader +{ + + /** TableName=C_BankStatementLoader */ + public static final String Table_Name = "C_BankStatementLoader"; + + /** AD_Table_ID=640 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AccountNo */ + public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** Set Account No. + * Account Number + */ + public void setAccountNo (String AccountNo); + + /** Get Account No. + * Account Number + */ + public String getAccountNo(); + + /** Column name BranchID */ + public static final String COLUMNNAME_BranchID = "BranchID"; + + /** Set Branch ID. + * Bank Branch ID + */ + public void setBranchID (String BranchID); + + /** Get Branch ID. + * Bank Branch ID + */ + public String getBranchID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_BankStatementLoader_ID */ + public static final String COLUMNNAME_C_BankStatementLoader_ID = "C_BankStatementLoader_ID"; + + /** Set Bank Statement Loader. + * Definition of Bank Statement Loader (SWIFT, OFX) + */ + public void setC_BankStatementLoader_ID (int C_BankStatementLoader_ID); + + /** Get Bank Statement Loader. + * Definition of Bank Statement Loader (SWIFT, OFX) + */ + public int getC_BankStatementLoader_ID(); + + /** Column name DateFormat */ + public static final String COLUMNNAME_DateFormat = "DateFormat"; + + /** Set Date Format. + * Date format used in the imput format + */ + public void setDateFormat (String DateFormat); + + /** Get Date Format. + * Date format used in the imput format + */ + public String getDateFormat(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FileName */ + public static final String COLUMNNAME_FileName = "FileName"; + + /** Set File Name. + * Name of the local file or URL + */ + public void setFileName (String FileName); + + /** Get File Name. + * Name of the local file or URL + */ + public String getFileName(); + + /** Column name FinancialInstitutionID */ + public static final String COLUMNNAME_FinancialInstitutionID = "FinancialInstitutionID"; + + /** Set Financial Institution ID. + * The ID of the Financial Institution / Bank + */ + public void setFinancialInstitutionID (String FinancialInstitutionID); + + /** Get Financial Institution ID. + * The ID of the Financial Institution / Bank + */ + public String getFinancialInstitutionID(); + + /** Column name HostAddress */ + public static final String COLUMNNAME_HostAddress = "HostAddress"; + + /** Set Host Address. + * Host Address URL or DNS + */ + public void setHostAddress (String HostAddress); + + /** Get Host Address. + * Host Address URL or DNS + */ + public String getHostAddress(); + + /** Column name HostPort */ + public static final String COLUMNNAME_HostPort = "HostPort"; + + /** Set Host port. + * Host Communication Port + */ + public void setHostPort (int HostPort); + + /** Get Host port. + * Host Communication Port + */ + public int getHostPort(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PIN */ + public static final String COLUMNNAME_PIN = "PIN"; + + /** Set PIN. + * Personal Identification Number + */ + public void setPIN (String PIN); + + /** Get PIN. + * Personal Identification Number + */ + public String getPIN(); + + /** Column name Password */ + public static final String COLUMNNAME_Password = "Password"; + + /** Set Password. + * Password of any length (case sensitive) + */ + public void setPassword (String Password); + + /** Get Password. + * Password of any length (case sensitive) + */ + public String getPassword(); + + /** Column name ProxyAddress */ + public static final String COLUMNNAME_ProxyAddress = "ProxyAddress"; + + /** Set Proxy address. + * Address of your proxy server + */ + public void setProxyAddress (String ProxyAddress); + + /** Get Proxy address. + * Address of your proxy server + */ + public String getProxyAddress(); + + /** Column name ProxyLogon */ + public static final String COLUMNNAME_ProxyLogon = "ProxyLogon"; + + /** Set Proxy logon. + * Logon of your proxy server + */ + public void setProxyLogon (String ProxyLogon); + + /** Get Proxy logon. + * Logon of your proxy server + */ + public String getProxyLogon(); + + /** Column name ProxyPassword */ + public static final String COLUMNNAME_ProxyPassword = "ProxyPassword"; + + /** Set Proxy password. + * Password of your proxy server + */ + public void setProxyPassword (String ProxyPassword); + + /** Get Proxy password. + * Password of your proxy server + */ + public String getProxyPassword(); + + /** Column name ProxyPort */ + public static final String COLUMNNAME_ProxyPort = "ProxyPort"; + + /** Set Proxy port. + * Port of your proxy server + */ + public void setProxyPort (int ProxyPort); + + /** Get Proxy port. + * Port of your proxy server + */ + public int getProxyPort(); + + /** Column name StmtLoaderClass */ + public static final String COLUMNNAME_StmtLoaderClass = "StmtLoaderClass"; + + /** Set Statement Loader Class. + * Class name of the bank statement loader + */ + public void setStmtLoaderClass (String StmtLoaderClass); + + /** Get Statement Loader Class. + * Class name of the bank statement loader + */ + public String getStmtLoaderClass(); + + /** Column name UserID */ + public static final String COLUMNNAME_UserID = "UserID"; + + /** Set User ID. + * User ID or account number + */ + public void setUserID (String UserID); + + /** Get User ID. + * User ID or account number + */ + public String getUserID(); +} diff --git a/base/src/org/compiere/model/I_C_BankStatementMatcher.java b/base/src/org/compiere/model/I_C_BankStatementMatcher.java new file mode 100644 index 0000000000..34c0f5c7e5 --- /dev/null +++ b/base/src/org/compiere/model/I_C_BankStatementMatcher.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_BankStatementMatcher + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.25 + */ + public interface I_C_BankStatementMatcher +{ + + /** TableName=C_BankStatementMatcher */ + public static final String Table_Name = "C_BankStatementMatcher"; + + /** AD_Table_ID=658 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_BankStatementMatcher_ID */ + public static final String COLUMNNAME_C_BankStatementMatcher_ID = "C_BankStatementMatcher_ID"; + + /** Set Bank Statement Matcher. + * Algorithm to match Bank Statement Info to Business Partners, Invoices and Payments + */ + public void setC_BankStatementMatcher_ID (int C_BankStatementMatcher_ID); + + /** Get Bank Statement Matcher. + * Algorithm to match Bank Statement Info to Business Partners, Invoices and Payments + */ + public int getC_BankStatementMatcher_ID(); + + /** Column name Classname */ + public static final String COLUMNNAME_Classname = "Classname"; + + /** Set Classname. + * Java Classname + */ + public void setClassname (String Classname); + + /** Get Classname. + * Java Classname + */ + public String getClassname(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_C_Calendar.java b/base/src/org/compiere/model/I_C_Calendar.java new file mode 100644 index 0000000000..dfb1627f3f --- /dev/null +++ b/base/src/org/compiere/model/I_C_Calendar.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Calendar + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.265 + */ + public interface I_C_Calendar +{ + + /** TableName=C_Calendar */ + public static final String Table_Name = "C_Calendar"; + + /** AD_Table_ID=139 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_Campaign.java b/base/src/org/compiere/model/I_C_Campaign.java new file mode 100644 index 0000000000..eb58cb4002 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Campaign.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Campaign + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.328 + */ + public interface I_C_Campaign +{ + + /** TableName=C_Campaign */ + public static final String Table_Name = "C_Campaign"; + + /** AD_Table_ID=274 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + /** Column name C_Channel_ID */ + public static final String COLUMNNAME_C_Channel_ID = "C_Channel_ID"; + + /** Set Channel. + * Sales Channel + */ + public void setC_Channel_ID (int C_Channel_ID); + + /** Get Channel. + * Sales Channel + */ + public int getC_Channel_ID(); + + public I_C_Channel getI_C_Channel() throws Exception; + + /** Column name Costs */ + public static final String COLUMNNAME_Costs = "Costs"; + + /** Set Costs. + * Costs in accounting currency + */ + public void setCosts (BigDecimal Costs); + + /** Get Costs. + * Costs in accounting currency + */ + public BigDecimal getCosts(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EndDate */ + public static final String COLUMNNAME_EndDate = "EndDate"; + + /** Set End Date. + * Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate); + + /** Get End Date. + * Last effective date (inclusive) + */ + public Timestamp getEndDate(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_Cash.java b/base/src/org/compiere/model/I_C_Cash.java new file mode 100644 index 0000000000..3e57ee5bd1 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Cash.java @@ -0,0 +1,337 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Cash + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.375 + */ + public interface I_C_Cash +{ + + /** TableName=C_Cash */ + public static final String Table_Name = "C_Cash"; + + /** AD_Table_ID=407 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name BeginningBalance */ + public static final String COLUMNNAME_BeginningBalance = "BeginningBalance"; + + /** Set Beginning Balance. + * Balance prior to any transactions + */ + public void setBeginningBalance (BigDecimal BeginningBalance); + + /** Get Beginning Balance. + * Balance prior to any transactions + */ + public BigDecimal getBeginningBalance(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_CashBook_ID */ + public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; + + /** Set Cash Book. + * Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID); + + /** Get Cash Book. + * Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID(); + + public I_C_CashBook getI_C_CashBook() throws Exception; + + /** Column name C_Cash_ID */ + public static final String COLUMNNAME_C_Cash_ID = "C_Cash_ID"; + + /** Set Cash Journal. + * Cash Journal + */ + public void setC_Cash_ID (int C_Cash_ID); + + /** Get Cash Journal. + * Cash Journal + */ + public int getC_Cash_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name EndingBalance */ + public static final String COLUMNNAME_EndingBalance = "EndingBalance"; + + /** Set Ending balance. + * Ending or closing balance + */ + public void setEndingBalance (BigDecimal EndingBalance); + + /** Get Ending balance. + * Ending or closing balance + */ + public BigDecimal getEndingBalance(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name StatementDate */ + public static final String COLUMNNAME_StatementDate = "StatementDate"; + + /** Set Statement date. + * Date of the statement + */ + public void setStatementDate (Timestamp StatementDate); + + /** Get Statement date. + * Date of the statement + */ + public Timestamp getStatementDate(); + + /** Column name StatementDifference */ + public static final String COLUMNNAME_StatementDifference = "StatementDifference"; + + /** Set Statement difference. + * Difference between statement ending balance and actual ending balance + */ + public void setStatementDifference (BigDecimal StatementDifference); + + /** Get Statement difference. + * Difference between statement ending balance and actual ending balance + */ + public BigDecimal getStatementDifference(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_CashBook.java b/base/src/org/compiere/model/I_C_CashBook.java new file mode 100644 index 0000000000..a25c0c9e84 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CashBook.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CashBook + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.453 + */ + public interface I_C_CashBook +{ + + /** TableName=C_CashBook */ + public static final String Table_Name = "C_CashBook"; + + /** AD_Table_ID=408 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_CashBook_ID */ + public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; + + /** Set Cash Book. + * Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID); + + /** Get Cash Book. + * Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_CashBook_Acct.java b/base/src/org/compiere/model/I_C_CashBook_Acct.java new file mode 100644 index 0000000000..9ffee0110d --- /dev/null +++ b/base/src/org/compiere/model/I_C_CashBook_Acct.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CashBook_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.484 + */ + public interface I_C_CashBook_Acct +{ + + /** TableName=C_CashBook_Acct */ + public static final String Table_Name = "C_CashBook_Acct"; + + /** AD_Table_ID=409 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name CB_Asset_Acct */ + public static final String COLUMNNAME_CB_Asset_Acct = "CB_Asset_Acct"; + + /** Set Cash Book Asset. + * Cash Book Asset Account + */ + public void setCB_Asset_Acct (int CB_Asset_Acct); + + /** Get Cash Book Asset. + * Cash Book Asset Account + */ + public int getCB_Asset_Acct(); + + /** Column name CB_CashTransfer_Acct */ + public static final String COLUMNNAME_CB_CashTransfer_Acct = "CB_CashTransfer_Acct"; + + /** Set Cash Transfer. + * Cash Transfer Clearing Account + */ + public void setCB_CashTransfer_Acct (int CB_CashTransfer_Acct); + + /** Get Cash Transfer. + * Cash Transfer Clearing Account + */ + public int getCB_CashTransfer_Acct(); + + /** Column name CB_Differences_Acct */ + public static final String COLUMNNAME_CB_Differences_Acct = "CB_Differences_Acct"; + + /** Set Cash Book Differences. + * Cash Book Differences Account + */ + public void setCB_Differences_Acct (int CB_Differences_Acct); + + /** Get Cash Book Differences. + * Cash Book Differences Account + */ + public int getCB_Differences_Acct(); + + /** Column name CB_Expense_Acct */ + public static final String COLUMNNAME_CB_Expense_Acct = "CB_Expense_Acct"; + + /** Set Cash Book Expense. + * Cash Book Expense Account + */ + public void setCB_Expense_Acct (int CB_Expense_Acct); + + /** Get Cash Book Expense. + * Cash Book Expense Account + */ + public int getCB_Expense_Acct(); + + /** Column name CB_Receipt_Acct */ + public static final String COLUMNNAME_CB_Receipt_Acct = "CB_Receipt_Acct"; + + /** Set Cash Book Receipt. + * Cash Book Receipts Account + */ + public void setCB_Receipt_Acct (int CB_Receipt_Acct); + + /** Get Cash Book Receipt. + * Cash Book Receipts Account + */ + public int getCB_Receipt_Acct(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_CashBook_ID */ + public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; + + /** Set Cash Book. + * Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID); + + /** Get Cash Book. + * Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID(); + + public I_C_CashBook getI_C_CashBook() throws Exception; +} diff --git a/base/src/org/compiere/model/I_C_CashLine.java b/base/src/org/compiere/model/I_C_CashLine.java new file mode 100644 index 0000000000..f893291032 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CashLine.java @@ -0,0 +1,248 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CashLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.5 + */ + public interface I_C_CashLine +{ + + /** TableName=C_CashLine */ + public static final String Table_Name = "C_CashLine"; + + /** AD_Table_ID=410 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Amount */ + public static final String COLUMNNAME_Amount = "Amount"; + + /** Set Amount. + * Amount in a defined currency + */ + public void setAmount (BigDecimal Amount); + + /** Get Amount. + * Amount in a defined currency + */ + public BigDecimal getAmount(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + /** Column name C_Cash_ID */ + public static final String COLUMNNAME_C_Cash_ID = "C_Cash_ID"; + + /** Set Cash Journal. + * Cash Journal + */ + public void setC_Cash_ID (int C_Cash_ID); + + /** Get Cash Journal. + * Cash Journal + */ + public int getC_Cash_ID(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name CashType */ + public static final String COLUMNNAME_CashType = "CashType"; + + /** Set Cash Type. + * Source of Cash + */ + public void setCashType (String CashType); + + /** Get Cash Type. + * Source of Cash + */ + public String getCashType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name IsGenerated */ + public static final String COLUMNNAME_IsGenerated = "IsGenerated"; + + /** Set Generated. + * This Line is generated + */ + public void setIsGenerated (boolean IsGenerated); + + /** Get Generated. + * This Line is generated + */ + public boolean isGenerated(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_C_Channel.java b/base/src/org/compiere/model/I_C_Channel.java new file mode 100644 index 0000000000..9b89591a2f --- /dev/null +++ b/base/src/org/compiere/model/I_C_Channel.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Channel + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.562 + */ + public interface I_C_Channel +{ + + /** TableName=C_Channel */ + public static final String Table_Name = "C_Channel"; + + /** AD_Table_ID=275 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name C_Channel_ID */ + public static final String COLUMNNAME_C_Channel_ID = "C_Channel_ID"; + + /** Set Channel. + * Sales Channel + */ + public void setC_Channel_ID (int C_Channel_ID); + + /** Get Channel. + * Sales Channel + */ + public int getC_Channel_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_Charge.java b/base/src/org/compiere/model/I_C_Charge.java new file mode 100644 index 0000000000..571c0f59c4 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Charge.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Charge + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.578 + */ + public interface I_C_Charge +{ + + /** TableName=C_Charge */ + public static final String Table_Name = "C_Charge"; + + /** AD_Table_ID=313 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsSameCurrency */ + public static final String COLUMNNAME_IsSameCurrency = "IsSameCurrency"; + + /** Set Same Currency */ + public void setIsSameCurrency (boolean IsSameCurrency); + + /** Get Same Currency */ + public boolean isSameCurrency(); + + /** Column name IsSameTax */ + public static final String COLUMNNAME_IsSameTax = "IsSameTax"; + + /** Set Same Tax. + * Use the same tax as the main transaction + */ + public void setIsSameTax (boolean IsSameTax); + + /** Get Same Tax. + * Use the same tax as the main transaction + */ + public boolean isSameTax(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_Charge_Acct.java b/base/src/org/compiere/model/I_C_Charge_Acct.java new file mode 100644 index 0000000000..0eb945e785 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Charge_Acct.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Charge_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.609 + */ + public interface I_C_Charge_Acct +{ + + /** TableName=C_Charge_Acct */ + public static final String Table_Name = "C_Charge_Acct"; + + /** AD_Table_ID=396 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name Ch_Expense_Acct */ + public static final String COLUMNNAME_Ch_Expense_Acct = "Ch_Expense_Acct"; + + /** Set Charge Expense. + * Charge Expense Account + */ + public void setCh_Expense_Acct (int Ch_Expense_Acct); + + /** Get Charge Expense. + * Charge Expense Account + */ + public int getCh_Expense_Acct(); + + /** Column name Ch_Revenue_Acct */ + public static final String COLUMNNAME_Ch_Revenue_Acct = "Ch_Revenue_Acct"; + + /** Set Charge Revenue. + * Charge Revenue Account + */ + public void setCh_Revenue_Acct (int Ch_Revenue_Acct); + + /** Get Charge Revenue. + * Charge Revenue Account + */ + public int getCh_Revenue_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_City.java b/base/src/org/compiere/model/I_C_City.java new file mode 100644 index 0000000000..f1d0c38727 --- /dev/null +++ b/base/src/org/compiere/model/I_C_City.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_City + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.64 + */ + public interface I_C_City +{ + + /** TableName=C_City */ + public static final String Table_Name = "C_City"; + + /** AD_Table_ID=186 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AreaCode */ + public static final String COLUMNNAME_AreaCode = "AreaCode"; + + /** Set Area Code. + * Phone Area Code + */ + public void setAreaCode (String AreaCode); + + /** Get Area Code. + * Phone Area Code + */ + public String getAreaCode(); + + /** Column name C_City_ID */ + public static final String COLUMNNAME_C_City_ID = "C_City_ID"; + + /** Set City. + * City + */ + public void setC_City_ID (int C_City_ID); + + /** Get City. + * City + */ + public int getC_City_ID(); + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + /** Column name Coordinates */ + public static final String COLUMNNAME_Coordinates = "Coordinates"; + + /** Set Coordinates. + * Location coordinate + */ + public void setCoordinates (String Coordinates); + + /** Get Coordinates. + * Location coordinate + */ + public String getCoordinates(); + + /** Column name Locode */ + public static final String COLUMNNAME_Locode = "Locode"; + + /** Set Locode. + * Location code - UN/LOCODE + */ + public void setLocode (String Locode); + + /** Get Locode. + * Location code - UN/LOCODE + */ + public String getLocode(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); +} diff --git a/base/src/org/compiere/model/I_C_Commission.java b/base/src/org/compiere/model/I_C_Commission.java new file mode 100644 index 0000000000..06a5efdbea --- /dev/null +++ b/base/src/org/compiere/model/I_C_Commission.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Commission + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:38.656 + */ + public interface I_C_Commission +{ + + /** TableName=C_Commission */ + public static final String Table_Name = "C_Commission"; + + /** AD_Table_ID=429 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_Commission_ID */ + public static final String COLUMNNAME_C_Commission_ID = "C_Commission_ID"; + + /** Set Commission. + * Commission + */ + public void setC_Commission_ID (int C_Commission_ID); + + /** Get Commission. + * Commission + */ + public int getC_Commission_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocBasisType */ + public static final String COLUMNNAME_DocBasisType = "DocBasisType"; + + /** Set Calculation Basis. + * Basis for the calculation the commission + */ + public void setDocBasisType (String DocBasisType); + + /** Get Calculation Basis. + * Basis for the calculation the commission + */ + public String getDocBasisType(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name ListDetails */ + public static final String COLUMNNAME_ListDetails = "ListDetails"; + + /** Set List Details. + * List document details + */ + public void setListDetails (boolean ListDetails); + + /** Get List Details. + * List document details + */ + public boolean isListDetails(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_CommissionAmt.java b/base/src/org/compiere/model/I_C_CommissionAmt.java new file mode 100644 index 0000000000..e901fdbd8a --- /dev/null +++ b/base/src/org/compiere/model/I_C_CommissionAmt.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CommissionAmt + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.078 + */ + public interface I_C_CommissionAmt +{ + + /** TableName=C_CommissionAmt */ + public static final String Table_Name = "C_CommissionAmt"; + + /** AD_Table_ID=430 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ActualQty */ + public static final String COLUMNNAME_ActualQty = "ActualQty"; + + /** Set Actual Quantity. + * The actual quantity + */ + public void setActualQty (BigDecimal ActualQty); + + /** Get Actual Quantity. + * The actual quantity + */ + public BigDecimal getActualQty(); + + /** Column name C_CommissionAmt_ID */ + public static final String COLUMNNAME_C_CommissionAmt_ID = "C_CommissionAmt_ID"; + + /** Set Commission Amount. + * Generated Commission Amount + */ + public void setC_CommissionAmt_ID (int C_CommissionAmt_ID); + + /** Get Commission Amount. + * Generated Commission Amount + */ + public int getC_CommissionAmt_ID(); + + /** Column name C_CommissionLine_ID */ + public static final String COLUMNNAME_C_CommissionLine_ID = "C_CommissionLine_ID"; + + /** Set Commission Line. + * Commission Line + */ + public void setC_CommissionLine_ID (int C_CommissionLine_ID); + + /** Get Commission Line. + * Commission Line + */ + public int getC_CommissionLine_ID(); + + public I_C_CommissionLine getI_C_CommissionLine() throws Exception; + + /** Column name C_CommissionRun_ID */ + public static final String COLUMNNAME_C_CommissionRun_ID = "C_CommissionRun_ID"; + + /** Set Commission Run. + * Commission Run or Process + */ + public void setC_CommissionRun_ID (int C_CommissionRun_ID); + + /** Get Commission Run. + * Commission Run or Process + */ + public int getC_CommissionRun_ID(); + + public I_C_CommissionRun getI_C_CommissionRun() throws Exception; + + /** Column name CommissionAmt */ + public static final String COLUMNNAME_CommissionAmt = "CommissionAmt"; + + /** Set Commission Amount. + * Commission Amount + */ + public void setCommissionAmt (BigDecimal CommissionAmt); + + /** Get Commission Amount. + * Commission Amount + */ + public BigDecimal getCommissionAmt(); + + /** Column name ConvertedAmt */ + public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; + + /** Set Converted Amount. + * Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt); + + /** Get Converted Amount. + * Converted Amount + */ + public BigDecimal getConvertedAmt(); +} diff --git a/base/src/org/compiere/model/I_C_CommissionDetail.java b/base/src/org/compiere/model/I_C_CommissionDetail.java new file mode 100644 index 0000000000..e736697112 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CommissionDetail.java @@ -0,0 +1,194 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CommissionDetail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.187 + */ + public interface I_C_CommissionDetail +{ + + /** TableName=C_CommissionDetail */ + public static final String Table_Name = "C_CommissionDetail"; + + /** AD_Table_ID=437 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ActualAmt */ + public static final String COLUMNNAME_ActualAmt = "ActualAmt"; + + /** Set Actual Amount. + * The actual amount + */ + public void setActualAmt (BigDecimal ActualAmt); + + /** Get Actual Amount. + * The actual amount + */ + public BigDecimal getActualAmt(); + + /** Column name ActualQty */ + public static final String COLUMNNAME_ActualQty = "ActualQty"; + + /** Set Actual Quantity. + * The actual quantity + */ + public void setActualQty (BigDecimal ActualQty); + + /** Get Actual Quantity. + * The actual quantity + */ + public BigDecimal getActualQty(); + + /** Column name C_CommissionAmt_ID */ + public static final String COLUMNNAME_C_CommissionAmt_ID = "C_CommissionAmt_ID"; + + /** Set Commission Amount. + * Generated Commission Amount + */ + public void setC_CommissionAmt_ID (int C_CommissionAmt_ID); + + /** Get Commission Amount. + * Generated Commission Amount + */ + public int getC_CommissionAmt_ID(); + + public I_C_CommissionAmt getI_C_CommissionAmt() throws Exception; + + /** Column name C_CommissionDetail_ID */ + public static final String COLUMNNAME_C_CommissionDetail_ID = "C_CommissionDetail_ID"; + + /** Set Commission Detail. + * Supporting information for Commission Amounts + */ + public void setC_CommissionDetail_ID (int C_CommissionDetail_ID); + + /** Get Commission Detail. + * Supporting information for Commission Amounts + */ + public int getC_CommissionDetail_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name ConvertedAmt */ + public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; + + /** Set Converted Amount. + * Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt); + + /** Get Converted Amount. + * Converted Amount + */ + public BigDecimal getConvertedAmt(); + + /** Column name Info */ + public static final String COLUMNNAME_Info = "Info"; + + /** Set Info. + * Information + */ + public void setInfo (String Info); + + /** Get Info. + * Information + */ + public String getInfo(); + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); +} diff --git a/base/src/org/compiere/model/I_C_CommissionLine.java b/base/src/org/compiere/model/I_C_CommissionLine.java new file mode 100644 index 0000000000..f9e40677d7 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CommissionLine.java @@ -0,0 +1,276 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CommissionLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.218 + */ + public interface I_C_CommissionLine +{ + + /** TableName=C_CommissionLine */ + public static final String Table_Name = "C_CommissionLine"; + + /** AD_Table_ID=431 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AmtMultiplier */ + public static final String COLUMNNAME_AmtMultiplier = "AmtMultiplier"; + + /** Set Multiplier Amount. + * Multiplier Amount for generating commissions + */ + public void setAmtMultiplier (BigDecimal AmtMultiplier); + + /** Get Multiplier Amount. + * Multiplier Amount for generating commissions + */ + public BigDecimal getAmtMultiplier(); + + /** Column name AmtSubtract */ + public static final String COLUMNNAME_AmtSubtract = "AmtSubtract"; + + /** Set Subtract Amount. + * Subtract Amount for generating commissions + */ + public void setAmtSubtract (BigDecimal AmtSubtract); + + /** Get Subtract Amount. + * Subtract Amount for generating commissions + */ + public BigDecimal getAmtSubtract(); + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_CommissionLine_ID */ + public static final String COLUMNNAME_C_CommissionLine_ID = "C_CommissionLine_ID"; + + /** Set Commission Line. + * Commission Line + */ + public void setC_CommissionLine_ID (int C_CommissionLine_ID); + + /** Get Commission Line. + * Commission Line + */ + public int getC_CommissionLine_ID(); + + /** Column name C_Commission_ID */ + public static final String COLUMNNAME_C_Commission_ID = "C_Commission_ID"; + + /** Set Commission. + * Commission + */ + public void setC_Commission_ID (int C_Commission_ID); + + /** Get Commission. + * Commission + */ + public int getC_Commission_ID(); + + public I_C_Commission getI_C_Commission() throws Exception; + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name CommissionOrders */ + public static final String COLUMNNAME_CommissionOrders = "CommissionOrders"; + + /** Set Commission only specified Orders. + * Commission only Orders or Invoices, where this Sales Rep is entered + */ + public void setCommissionOrders (boolean CommissionOrders); + + /** Get Commission only specified Orders. + * Commission only Orders or Invoices, where this Sales Rep is entered + */ + public boolean isCommissionOrders(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsPositiveOnly */ + public static final String COLUMNNAME_IsPositiveOnly = "IsPositiveOnly"; + + /** Set Positive only. + * Do not generate negative commissions + */ + public void setIsPositiveOnly (boolean IsPositiveOnly); + + /** Get Positive only. + * Do not generate negative commissions + */ + public boolean isPositiveOnly(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name QtyMultiplier */ + public static final String COLUMNNAME_QtyMultiplier = "QtyMultiplier"; + + /** Set Multiplier Quantity. + * Value to multiply quantities by for generating commissions. + */ + public void setQtyMultiplier (BigDecimal QtyMultiplier); + + /** Get Multiplier Quantity. + * Value to multiply quantities by for generating commissions. + */ + public BigDecimal getQtyMultiplier(); + + /** Column name QtySubtract */ + public static final String COLUMNNAME_QtySubtract = "QtySubtract"; + + /** Set Subtract Quantity. + * Quantity to subtract when generating commissions + */ + public void setQtySubtract (BigDecimal QtySubtract); + + /** Get Subtract Quantity. + * Quantity to subtract when generating commissions + */ + public BigDecimal getQtySubtract(); +} diff --git a/base/src/org/compiere/model/I_C_CommissionRun.java b/base/src/org/compiere/model/I_C_CommissionRun.java new file mode 100644 index 0000000000..c07b65f748 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CommissionRun.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CommissionRun + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.234 + */ + public interface I_C_CommissionRun +{ + + /** TableName=C_CommissionRun */ + public static final String Table_Name = "C_CommissionRun"; + + /** AD_Table_ID=436 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_CommissionRun_ID */ + public static final String COLUMNNAME_C_CommissionRun_ID = "C_CommissionRun_ID"; + + /** Set Commission Run. + * Commission Run or Process + */ + public void setC_CommissionRun_ID (int C_CommissionRun_ID); + + /** Get Commission Run. + * Commission Run or Process + */ + public int getC_CommissionRun_ID(); + + /** Column name C_Commission_ID */ + public static final String COLUMNNAME_C_Commission_ID = "C_Commission_ID"; + + /** Set Commission. + * Commission + */ + public void setC_Commission_ID (int C_Commission_ID); + + /** Get Commission. + * Commission + */ + public int getC_Commission_ID(); + + public I_C_Commission getI_C_Commission() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name GrandTotal */ + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + + /** Set Grand Total. + * Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal); + + /** Get Grand Total. + * Total amount of document + */ + public BigDecimal getGrandTotal(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); +} diff --git a/base/src/org/compiere/model/I_C_ConversionType.java b/base/src/org/compiere/model/I_C_ConversionType.java new file mode 100644 index 0000000000..c9a757ccdd --- /dev/null +++ b/base/src/org/compiere/model/I_C_ConversionType.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ConversionType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.281 + */ + public interface I_C_ConversionType +{ + + /** TableName=C_ConversionType */ + public static final String Table_Name = "C_ConversionType"; + + /** AD_Table_ID=637 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_Conversion_Rate.java b/base/src/org/compiere/model/I_C_Conversion_Rate.java new file mode 100644 index 0000000000..ffb00434fb --- /dev/null +++ b/base/src/org/compiere/model/I_C_Conversion_Rate.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Conversion_Rate + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.296 + */ + public interface I_C_Conversion_Rate +{ + + /** TableName=C_Conversion_Rate */ + public static final String Table_Name = "C_Conversion_Rate"; + + /** AD_Table_ID=140 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Conversion_Rate_ID */ + public static final String COLUMNNAME_C_Conversion_Rate_ID = "C_Conversion_Rate_ID"; + + /** Set Conversion Rate. + * Rate used for converting currencies + */ + public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID); + + /** Get Conversion Rate. + * Rate used for converting currencies + */ + public int getC_Conversion_Rate_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + /** Column name C_Currency_ID_To */ + public static final String COLUMNNAME_C_Currency_ID_To = "C_Currency_ID_To"; + + /** Set Currency To. + * Target currency + */ + public void setC_Currency_ID_To (int C_Currency_ID_To); + + /** Get Currency To. + * Target currency + */ + public int getC_Currency_ID_To(); + + /** Column name DivideRate */ + public static final String COLUMNNAME_DivideRate = "DivideRate"; + + /** Set Divide Rate. + * To convert Source number to Target number, the Source is divided + */ + public void setDivideRate (BigDecimal DivideRate); + + /** Get Divide Rate. + * To convert Source number to Target number, the Source is divided + */ + public BigDecimal getDivideRate(); + + /** Column name MultiplyRate */ + public static final String COLUMNNAME_MultiplyRate = "MultiplyRate"; + + /** Set Multiply Rate. + * Rate to multiple the source by to calculate the target. + */ + public void setMultiplyRate (BigDecimal MultiplyRate); + + /** Get Multiply Rate. + * Rate to multiple the source by to calculate the target. + */ + public BigDecimal getMultiplyRate(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_C_Country.java b/base/src/org/compiere/model/I_C_Country.java new file mode 100644 index 0000000000..52b94d1e56 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Country.java @@ -0,0 +1,380 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Country + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.343 + */ + public interface I_C_Country +{ + + /** TableName=C_Country */ + public static final String Table_Name = "C_Country"; + + /** AD_Table_ID=170 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name CountryCode */ + public static final String COLUMNNAME_CountryCode = "CountryCode"; + + /** Set ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode); + + /** Get ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DisplaySequence */ + public static final String COLUMNNAME_DisplaySequence = "DisplaySequence"; + + /** Set Address Print Format. + * Format for printing this Address + */ + public void setDisplaySequence (String DisplaySequence); + + /** Get Address Print Format. + * Format for printing this Address + */ + public String getDisplaySequence(); + + /** Column name DisplaySequenceLocal */ + public static final String COLUMNNAME_DisplaySequenceLocal = "DisplaySequenceLocal"; + + /** Set Local Address Format. + * Format for printing this Address locally + */ + public void setDisplaySequenceLocal (String DisplaySequenceLocal); + + /** Get Local Address Format. + * Format for printing this Address locally + */ + public String getDisplaySequenceLocal(); + + /** Column name ExpressionBankAccountNo */ + public static final String COLUMNNAME_ExpressionBankAccountNo = "ExpressionBankAccountNo"; + + /** Set Bank Account No Format. + * Format of the Bank Account + */ + public void setExpressionBankAccountNo (String ExpressionBankAccountNo); + + /** Get Bank Account No Format. + * Format of the Bank Account + */ + public String getExpressionBankAccountNo(); + + /** Column name ExpressionBankRoutingNo */ + public static final String COLUMNNAME_ExpressionBankRoutingNo = "ExpressionBankRoutingNo"; + + /** Set Bank Routing No Format. + * Format of the Bank Routing Number + */ + public void setExpressionBankRoutingNo (String ExpressionBankRoutingNo); + + /** Get Bank Routing No Format. + * Format of the Bank Routing Number + */ + public String getExpressionBankRoutingNo(); + + /** Column name ExpressionPhone */ + public static final String COLUMNNAME_ExpressionPhone = "ExpressionPhone"; + + /** Set Phone Format. + * Format of the phone; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setExpressionPhone (String ExpressionPhone); + + /** Get Phone Format. + * Format of the phone; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getExpressionPhone(); + + /** Column name ExpressionPostal */ + public static final String COLUMNNAME_ExpressionPostal = "ExpressionPostal"; + + /** Set Postal Code Format. + * Format of the postal code; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setExpressionPostal (String ExpressionPostal); + + /** Get Postal Code Format. + * Format of the postal code; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getExpressionPostal(); + + /** Column name ExpressionPostal_Add */ + public static final String COLUMNNAME_ExpressionPostal_Add = "ExpressionPostal_Add"; + + /** Set Additional Postal Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setExpressionPostal_Add (String ExpressionPostal_Add); + + /** Get Additional Postal Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getExpressionPostal_Add(); + + /** Column name HasPostal_Add */ + public static final String COLUMNNAME_HasPostal_Add = "HasPostal_Add"; + + /** Set Additional Postal code. + * Has Additional Postal Code + */ + public void setHasPostal_Add (boolean HasPostal_Add); + + /** Get Additional Postal code. + * Has Additional Postal Code + */ + public boolean isHasPostal_Add(); + + /** Column name HasRegion */ + public static final String COLUMNNAME_HasRegion = "HasRegion"; + + /** Set Country has Region. + * Country contains Regions + */ + public void setHasRegion (boolean HasRegion); + + /** Get Country has Region. + * Country contains Regions + */ + public boolean isHasRegion(); + + /** Column name IsAddressLinesLocalReverse */ + public static final String COLUMNNAME_IsAddressLinesLocalReverse = "IsAddressLinesLocalReverse"; + + /** Set Reverse Local Address Lines. + * Print Local Address in reverse Order + */ + public void setIsAddressLinesLocalReverse (boolean IsAddressLinesLocalReverse); + + /** Get Reverse Local Address Lines. + * Print Local Address in reverse Order + */ + public boolean isAddressLinesLocalReverse(); + + /** Column name IsAddressLinesReverse */ + public static final String COLUMNNAME_IsAddressLinesReverse = "IsAddressLinesReverse"; + + /** Set Reverse Address Lines. + * Print Address in reverse Order + */ + public void setIsAddressLinesReverse (boolean IsAddressLinesReverse); + + /** Get Reverse Address Lines. + * Print Address in reverse Order + */ + public boolean isAddressLinesReverse(); + + /** Column name IsPostcodeLookup */ + public static final String COLUMNNAME_IsPostcodeLookup = "IsPostcodeLookup"; + + /** Set IsPostcodeLookup. + * Does this country have a post code web service + */ + public void setIsPostcodeLookup (boolean IsPostcodeLookup); + + /** Get IsPostcodeLookup. + * Does this country have a post code web service + */ + public boolean isPostcodeLookup(); + + /** Column name LookupClassName */ + public static final String COLUMNNAME_LookupClassName = "LookupClassName"; + + /** Set LookupClassName. + * The class name of the postcode lookup plugin + */ + public void setLookupClassName (String LookupClassName); + + /** Get LookupClassName. + * The class name of the postcode lookup plugin + */ + public String getLookupClassName(); + + /** Column name LookupClientID */ + public static final String COLUMNNAME_LookupClientID = "LookupClientID"; + + /** Set LookupClientID. + * The ClientID or Login submitted to the Lookup URL + */ + public void setLookupClientID (String LookupClientID); + + /** Get LookupClientID. + * The ClientID or Login submitted to the Lookup URL + */ + public String getLookupClientID(); + + /** Column name LookupPassword */ + public static final String COLUMNNAME_LookupPassword = "LookupPassword"; + + /** Set LookupPassword. + * The password submitted to the Lookup URL + */ + public void setLookupPassword (String LookupPassword); + + /** Get LookupPassword. + * The password submitted to the Lookup URL + */ + public String getLookupPassword(); + + /** Column name LookupUrl */ + public static final String COLUMNNAME_LookupUrl = "LookupUrl"; + + /** Set LookupUrl. + * The URL of the web service that the plugin connects to in order to retrieve postcode data + */ + public void setLookupUrl (String LookupUrl); + + /** Get LookupUrl. + * The URL of the web service that the plugin connects to in order to retrieve postcode data + */ + public String getLookupUrl(); + + /** Column name MediaSize */ + public static final String COLUMNNAME_MediaSize = "MediaSize"; + + /** Set Media Size. + * Java Media Size + */ + public void setMediaSize (String MediaSize); + + /** Get Media Size. + * Java Media Size + */ + public String getMediaSize(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name RegionName */ + public static final String COLUMNNAME_RegionName = "RegionName"; + + /** Set Region. + * Name of the Region + */ + public void setRegionName (String RegionName); + + /** Get Region. + * Name of the Region + */ + public String getRegionName(); +} diff --git a/base/src/org/compiere/model/I_C_Currency.java b/base/src/org/compiere/model/I_C_Currency.java new file mode 100644 index 0000000000..76a0bcd1b0 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Currency.java @@ -0,0 +1,190 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Currency + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.375 + */ + public interface I_C_Currency +{ + + /** TableName=C_Currency */ + public static final String Table_Name = "C_Currency"; + + /** AD_Table_ID=141 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + /** Column name CostingPrecision */ + public static final String COLUMNNAME_CostingPrecision = "CostingPrecision"; + + /** Set Costing Precision. + * Rounding used costing calculations + */ + public void setCostingPrecision (int CostingPrecision); + + /** Get Costing Precision. + * Rounding used costing calculations + */ + public int getCostingPrecision(); + + /** Column name CurSymbol */ + public static final String COLUMNNAME_CurSymbol = "CurSymbol"; + + /** Set Symbol. + * Symbol of the currency (opt used for printing only) + */ + public void setCurSymbol (String CurSymbol); + + /** Get Symbol. + * Symbol of the currency (opt used for printing only) + */ + public String getCurSymbol(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMUEntryDate */ + public static final String COLUMNNAME_EMUEntryDate = "EMUEntryDate"; + + /** Set EMU Entry Date. + * Date when the currency joined / will join the EMU + */ + public void setEMUEntryDate (Timestamp EMUEntryDate); + + /** Get EMU Entry Date. + * Date when the currency joined / will join the EMU + */ + public Timestamp getEMUEntryDate(); + + /** Column name EMURate */ + public static final String COLUMNNAME_EMURate = "EMURate"; + + /** Set EMU Rate. + * Official rate to the Euro + */ + public void setEMURate (BigDecimal EMURate); + + /** Get EMU Rate. + * Official rate to the Euro + */ + public BigDecimal getEMURate(); + + /** Column name ISO_Code */ + public static final String COLUMNNAME_ISO_Code = "ISO_Code"; + + /** Set ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code); + + /** Get ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code(); + + /** Column name IsEMUMember */ + public static final String COLUMNNAME_IsEMUMember = "IsEMUMember"; + + /** Set EMU Member. + * This currency is member if the European Monetary Union + */ + public void setIsEMUMember (boolean IsEMUMember); + + /** Get EMU Member. + * This currency is member if the European Monetary Union + */ + public boolean isEMUMember(); + + /** Column name IsEuro */ + public static final String COLUMNNAME_IsEuro = "IsEuro"; + + /** Set The Euro Currency. + * This currency is the Euro + */ + public void setIsEuro (boolean IsEuro); + + /** Get The Euro Currency. + * This currency is the Euro + */ + public boolean isEuro(); + + /** Column name StdPrecision */ + public static final String COLUMNNAME_StdPrecision = "StdPrecision"; + + /** Set Standard Precision. + * Rule for rounding calculated amounts + */ + public void setStdPrecision (int StdPrecision); + + /** Get Standard Precision. + * Rule for rounding calculated amounts + */ + public int getStdPrecision(); +} diff --git a/base/src/org/compiere/model/I_C_Currency_Acct.java b/base/src/org/compiere/model/I_C_Currency_Acct.java new file mode 100644 index 0000000000..7174366990 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Currency_Acct.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Currency_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.39 + */ + public interface I_C_Currency_Acct +{ + + /** TableName=C_Currency_Acct */ + public static final String Table_Name = "C_Currency_Acct"; + + /** AD_Table_ID=638 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name RealizedGain_Acct */ + public static final String COLUMNNAME_RealizedGain_Acct = "RealizedGain_Acct"; + + /** Set Realized Gain Acct. + * Realized Gain Account + */ + public void setRealizedGain_Acct (int RealizedGain_Acct); + + /** Get Realized Gain Acct. + * Realized Gain Account + */ + public int getRealizedGain_Acct(); + + /** Column name RealizedLoss_Acct */ + public static final String COLUMNNAME_RealizedLoss_Acct = "RealizedLoss_Acct"; + + /** Set Realized Loss Acct. + * Realized Loss Account + */ + public void setRealizedLoss_Acct (int RealizedLoss_Acct); + + /** Get Realized Loss Acct. + * Realized Loss Account + */ + public int getRealizedLoss_Acct(); + + /** Column name UnrealizedGain_Acct */ + public static final String COLUMNNAME_UnrealizedGain_Acct = "UnrealizedGain_Acct"; + + /** Set Unrealized Gain Acct. + * Unrealized Gain Account for currency revaluation + */ + public void setUnrealizedGain_Acct (int UnrealizedGain_Acct); + + /** Get Unrealized Gain Acct. + * Unrealized Gain Account for currency revaluation + */ + public int getUnrealizedGain_Acct(); + + /** Column name UnrealizedLoss_Acct */ + public static final String COLUMNNAME_UnrealizedLoss_Acct = "UnrealizedLoss_Acct"; + + /** Set Unrealized Loss Acct. + * Unrealized Loss Account for currency revaluation + */ + public void setUnrealizedLoss_Acct (int UnrealizedLoss_Acct); + + /** Get Unrealized Loss Acct. + * Unrealized Loss Account for currency revaluation + */ + public int getUnrealizedLoss_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_Cycle.java b/base/src/org/compiere/model/I_C_Cycle.java new file mode 100644 index 0000000000..af6cce0e5d --- /dev/null +++ b/base/src/org/compiere/model/I_C_Cycle.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Cycle + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.406 + */ + public interface I_C_Cycle +{ + + /** TableName=C_Cycle */ + public static final String Table_Name = "C_Cycle"; + + /** AD_Table_ID=432 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Cycle_ID */ + public static final String COLUMNNAME_C_Cycle_ID = "C_Cycle_ID"; + + /** Set Project Cycle. + * Identifier for this Project Reporting Cycle + */ + public void setC_Cycle_ID (int C_Cycle_ID); + + /** Get Project Cycle. + * Identifier for this Project Reporting Cycle + */ + public int getC_Cycle_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_CyclePhase.java b/base/src/org/compiere/model/I_C_CyclePhase.java new file mode 100644 index 0000000000..5ded1e00a6 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CyclePhase.java @@ -0,0 +1,90 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CyclePhase + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.453 + */ + public interface I_C_CyclePhase +{ + + /** TableName=C_CyclePhase */ + public static final String Table_Name = "C_CyclePhase"; + + /** AD_Table_ID=433 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_CycleStep_ID */ + public static final String COLUMNNAME_C_CycleStep_ID = "C_CycleStep_ID"; + + /** Set Cycle Step. + * The step for this Cycle + */ + public void setC_CycleStep_ID (int C_CycleStep_ID); + + /** Get Cycle Step. + * The step for this Cycle + */ + public int getC_CycleStep_ID(); + + public I_C_CycleStep getI_C_CycleStep() throws Exception; + + /** Column name C_Phase_ID */ + public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; + + /** Set Standard Phase. + * Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID); + + /** Get Standard Phase. + * Standard Phase of the Project Type + */ + public int getC_Phase_ID(); + + public I_C_Phase getI_C_Phase() throws Exception; +} diff --git a/base/src/org/compiere/model/I_C_CycleStep.java b/base/src/org/compiere/model/I_C_CycleStep.java new file mode 100644 index 0000000000..7346255db6 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CycleStep.java @@ -0,0 +1,129 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_CycleStep + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.562 + */ + public interface I_C_CycleStep +{ + + /** TableName=C_CycleStep */ + public static final String Table_Name = "C_CycleStep"; + + /** AD_Table_ID=590 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_CycleStep_ID */ + public static final String COLUMNNAME_C_CycleStep_ID = "C_CycleStep_ID"; + + /** Set Cycle Step. + * The step for this Cycle + */ + public void setC_CycleStep_ID (int C_CycleStep_ID); + + /** Get Cycle Step. + * The step for this Cycle + */ + public int getC_CycleStep_ID(); + + /** Column name C_Cycle_ID */ + public static final String COLUMNNAME_C_Cycle_ID = "C_Cycle_ID"; + + /** Set Project Cycle. + * Identifier for this Project Reporting Cycle + */ + public void setC_Cycle_ID (int C_Cycle_ID); + + /** Get Project Cycle. + * Identifier for this Project Reporting Cycle + */ + public int getC_Cycle_ID(); + + public I_C_Cycle getI_C_Cycle() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name RelativeWeight */ + public static final String COLUMNNAME_RelativeWeight = "RelativeWeight"; + + /** Set Relative Weight. + * Relative weight of this step (0 = ignored) + */ + public void setRelativeWeight (BigDecimal RelativeWeight); + + /** Get Relative Weight. + * Relative weight of this step (0 = ignored) + */ + public BigDecimal getRelativeWeight(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_C_DocType.java b/base/src/org/compiere/model/I_C_DocType.java new file mode 100644 index 0000000000..b2fb7dce98 --- /dev/null +++ b/base/src/org/compiere/model/I_C_DocType.java @@ -0,0 +1,415 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_DocType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.578 + */ + public interface I_C_DocType +{ + + /** TableName=C_DocType */ + public static final String Table_Name = "C_DocType"; + + /** AD_Table_ID=217 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name C_DocTypeDifference_ID */ + public static final String COLUMNNAME_C_DocTypeDifference_ID = "C_DocTypeDifference_ID"; + + /** Set Difference Document. + * Document type for generating in dispute Shipments + */ + public void setC_DocTypeDifference_ID (int C_DocTypeDifference_ID); + + /** Get Difference Document. + * Document type for generating in dispute Shipments + */ + public int getC_DocTypeDifference_ID(); + + /** Column name C_DocTypeInvoice_ID */ + public static final String COLUMNNAME_C_DocTypeInvoice_ID = "C_DocTypeInvoice_ID"; + + /** Set Document Type for Invoice. + * Document type used for invoices generated from this sales document + */ + public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID); + + /** Get Document Type for Invoice. + * Document type used for invoices generated from this sales document + */ + public int getC_DocTypeInvoice_ID(); + + /** Column name C_DocTypeProforma_ID */ + public static final String COLUMNNAME_C_DocTypeProforma_ID = "C_DocTypeProforma_ID"; + + /** Set Document Type for ProForma. + * Document type used for pro forma invoices generated from this sales document + */ + public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID); + + /** Get Document Type for ProForma. + * Document type used for pro forma invoices generated from this sales document + */ + public int getC_DocTypeProforma_ID(); + + /** Column name C_DocTypeShipment_ID */ + public static final String COLUMNNAME_C_DocTypeShipment_ID = "C_DocTypeShipment_ID"; + + /** Set Document Type for Shipment. + * Document type used for shipments generated from this sales document + */ + public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID); + + /** Get Document Type for Shipment. + * Document type used for shipments generated from this sales document + */ + public int getC_DocTypeShipment_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocBaseType */ + public static final String COLUMNNAME_DocBaseType = "DocBaseType"; + + /** Set Document BaseType. + * Logical type of document + */ + public void setDocBaseType (String DocBaseType); + + /** Get Document BaseType. + * Logical type of document + */ + public String getDocBaseType(); + + /** Column name DocNoSequence_ID */ + public static final String COLUMNNAME_DocNoSequence_ID = "DocNoSequence_ID"; + + /** Set Document Sequence. + * Document sequence determines the numbering of documents + */ + public void setDocNoSequence_ID (int DocNoSequence_ID); + + /** Get Document Sequence. + * Document sequence determines the numbering of documents + */ + public int getDocNoSequence_ID(); + + /** Column name DocSubTypeSO */ + public static final String COLUMNNAME_DocSubTypeSO = "DocSubTypeSO"; + + /** Set SO Sub Type. + * Sales Order Sub Type + */ + public void setDocSubTypeSO (String DocSubTypeSO); + + /** Get SO Sub Type. + * Sales Order Sub Type + */ + public String getDocSubTypeSO(); + + /** Column name DocumentCopies */ + public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; + + /** Set Document Copies. + * Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies); + + /** Get Document Copies. + * Number of copies to be printed + */ + public int getDocumentCopies(); + + /** Column name DocumentNote */ + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + + /** Set Document Note. + * Additional information for a Document + */ + public void setDocumentNote (String DocumentNote); + + /** Get Document Note. + * Additional information for a Document + */ + public String getDocumentNote(); + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getI_GL_Category() throws Exception; + + /** Column name HasCharges */ + public static final String COLUMNNAME_HasCharges = "HasCharges"; + + /** Set Charges. + * Charges can be added to the document + */ + public void setHasCharges (boolean HasCharges); + + /** Get Charges. + * Charges can be added to the document + */ + public boolean isHasCharges(); + + /** Column name HasProforma */ + public static final String COLUMNNAME_HasProforma = "HasProforma"; + + /** Set Pro forma Invoice. + * Indicates if Pro Forma Invoices can be generated from this document + */ + public void setHasProforma (boolean HasProforma); + + /** Get Pro forma Invoice. + * Indicates if Pro Forma Invoices can be generated from this document + */ + public boolean isHasProforma(); + + /** Column name IsCreateCounter */ + public static final String COLUMNNAME_IsCreateCounter = "IsCreateCounter"; + + /** Set Create Counter Document. + * Create Counter Document + */ + public void setIsCreateCounter (boolean IsCreateCounter); + + /** Get Create Counter Document. + * Create Counter Document + */ + public boolean isCreateCounter(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsDefaultCounterDoc */ + public static final String COLUMNNAME_IsDefaultCounterDoc = "IsDefaultCounterDoc"; + + /** Set Default Counter Document. + * The document type is the default counter document type + */ + public void setIsDefaultCounterDoc (boolean IsDefaultCounterDoc); + + /** Get Default Counter Document. + * The document type is the default counter document type + */ + public boolean isDefaultCounterDoc(); + + /** Column name IsDocNoControlled */ + public static final String COLUMNNAME_IsDocNoControlled = "IsDocNoControlled"; + + /** Set Document is Number Controlled. + * The document has a document sequence + */ + public void setIsDocNoControlled (boolean IsDocNoControlled); + + /** Get Document is Number Controlled. + * The document has a document sequence + */ + public boolean isDocNoControlled(); + + /** Column name IsInTransit */ + public static final String COLUMNNAME_IsInTransit = "IsInTransit"; + + /** Set In Transit. + * Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit); + + /** Get In Transit. + * Movement is in transit + */ + public boolean isInTransit(); + + /** Column name IsIndexed */ + public static final String COLUMNNAME_IsIndexed = "IsIndexed"; + + /** Set Indexed. + * Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed); + + /** Get Indexed. + * Index the document for the internal search engine + */ + public boolean isIndexed(); + + /** Column name IsPickQAConfirm */ + public static final String COLUMNNAME_IsPickQAConfirm = "IsPickQAConfirm"; + + /** Set Pick/QA Confirmation. + * Require Pick or QA Confirmation before processing + */ + public void setIsPickQAConfirm (boolean IsPickQAConfirm); + + /** Get Pick/QA Confirmation. + * Require Pick or QA Confirmation before processing + */ + public boolean isPickQAConfirm(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name IsShipConfirm */ + public static final String COLUMNNAME_IsShipConfirm = "IsShipConfirm"; + + /** Set Ship/Receipt Confirmation. + * Require Ship or Receipt Confirmation before processing + */ + public void setIsShipConfirm (boolean IsShipConfirm); + + /** Get Ship/Receipt Confirmation. + * Require Ship or Receipt Confirmation before processing + */ + public boolean isShipConfirm(); + + /** Column name IsSplitWhenDifference */ + public static final String COLUMNNAME_IsSplitWhenDifference = "IsSplitWhenDifference"; + + /** Set Split when Difference. + * Split document when there is a difference + */ + public void setIsSplitWhenDifference (boolean IsSplitWhenDifference); + + /** Get Split when Difference. + * Split document when there is a difference + */ + public boolean isSplitWhenDifference(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrintName */ + public static final String COLUMNNAME_PrintName = "PrintName"; + + /** Set Print Text. + * The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName); + + /** Get Print Text. + * The label text to be printed on a document or correspondence. + */ + public String getPrintName(); +} diff --git a/base/src/org/compiere/model/I_C_DocTypeCounter.java b/base/src/org/compiere/model/I_C_DocTypeCounter.java new file mode 100644 index 0000000000..08806eade8 --- /dev/null +++ b/base/src/org/compiere/model/I_C_DocTypeCounter.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_DocTypeCounter + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:39.671 + */ + public interface I_C_DocTypeCounter +{ + + /** TableName=C_DocTypeCounter */ + public static final String Table_Name = "C_DocTypeCounter"; + + /** AD_Table_ID=718 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_DocTypeCounter_ID */ + public static final String COLUMNNAME_C_DocTypeCounter_ID = "C_DocTypeCounter_ID"; + + /** Set Counter Document. + * Counter Document Relationship + */ + public void setC_DocTypeCounter_ID (int C_DocTypeCounter_ID); + + /** Get Counter Document. + * Counter Document Relationship + */ + public int getC_DocTypeCounter_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name Counter_C_DocType_ID */ + public static final String COLUMNNAME_Counter_C_DocType_ID = "Counter_C_DocType_ID"; + + /** Set Counter Document Type. + * Generated Counter Document Type (To) + */ + public void setCounter_C_DocType_ID (int Counter_C_DocType_ID); + + /** Get Counter Document Type. + * Generated Counter Document Type (To) + */ + public int getCounter_C_DocType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name IsCreateCounter */ + public static final String COLUMNNAME_IsCreateCounter = "IsCreateCounter"; + + /** Set Create Counter Document. + * Create Counter Document + */ + public void setIsCreateCounter (boolean IsCreateCounter); + + /** Get Create Counter Document. + * Create Counter Document + */ + public boolean isCreateCounter(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_Dunning.java b/base/src/org/compiere/model/I_C_Dunning.java new file mode 100644 index 0000000000..fe72beaa16 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Dunning.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Dunning + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.046 + */ + public interface I_C_Dunning +{ + + /** TableName=C_Dunning */ + public static final String Table_Name = "C_Dunning"; + + /** AD_Table_ID=301 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Dunning_ID */ + public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; + + /** Set Dunning. + * Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID); + + /** Get Dunning. + * Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID(); + + /** Column name CreateLevelsSequentially */ + public static final String COLUMNNAME_CreateLevelsSequentially = "CreateLevelsSequentially"; + + /** Set Create levels sequentially. + * Create Dunning Letter by level sequentially + */ + public void setCreateLevelsSequentially (boolean CreateLevelsSequentially); + + /** Get Create levels sequentially. + * Create Dunning Letter by level sequentially + */ + public boolean isCreateLevelsSequentially(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SendDunningLetter */ + public static final String COLUMNNAME_SendDunningLetter = "SendDunningLetter"; + + /** Set Send dunning letters. + * Indicates if dunning letters will be sent + */ + public void setSendDunningLetter (boolean SendDunningLetter); + + /** Get Send dunning letters. + * Indicates if dunning letters will be sent + */ + public boolean isSendDunningLetter(); +} diff --git a/base/src/org/compiere/model/I_C_DunningLevel.java b/base/src/org/compiere/model/I_C_DunningLevel.java new file mode 100644 index 0000000000..5e48ecabf7 --- /dev/null +++ b/base/src/org/compiere/model/I_C_DunningLevel.java @@ -0,0 +1,294 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_DunningLevel + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.062 + */ + public interface I_C_DunningLevel +{ + + /** TableName=C_DunningLevel */ + public static final String Table_Name = "C_DunningLevel"; + + /** AD_Table_ID=331 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_DunningLevel_ID */ + public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID"; + + /** Set Dunning Level */ + public void setC_DunningLevel_ID (int C_DunningLevel_ID); + + /** Get Dunning Level */ + public int getC_DunningLevel_ID(); + + /** Column name C_Dunning_ID */ + public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; + + /** Set Dunning. + * Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID); + + /** Get Dunning. + * Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID(); + + public I_C_Dunning getI_C_Dunning() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name ChargeFee */ + public static final String COLUMNNAME_ChargeFee = "ChargeFee"; + + /** Set Charge fee. + * Indicates if fees will be charged for overdue invoices + */ + public void setChargeFee (boolean ChargeFee); + + /** Get Charge fee. + * Indicates if fees will be charged for overdue invoices + */ + public boolean isChargeFee(); + + /** Column name ChargeInterest */ + public static final String COLUMNNAME_ChargeInterest = "ChargeInterest"; + + /** Set Charge Interest. + * Indicates if interest will be charged on overdue invoices + */ + public void setChargeInterest (boolean ChargeInterest); + + /** Get Charge Interest. + * Indicates if interest will be charged on overdue invoices + */ + public boolean isChargeInterest(); + + /** Column name DaysAfterDue */ + public static final String COLUMNNAME_DaysAfterDue = "DaysAfterDue"; + + /** Set Days after due date. + * Days after due date to dun (if negative days until due) + */ + public void setDaysAfterDue (BigDecimal DaysAfterDue); + + /** Get Days after due date. + * Days after due date to dun (if negative days until due) + */ + public BigDecimal getDaysAfterDue(); + + /** Column name DaysBetweenDunning */ + public static final String COLUMNNAME_DaysBetweenDunning = "DaysBetweenDunning"; + + /** Set Days between dunning. + * Days between sending dunning notices + */ + public void setDaysBetweenDunning (int DaysBetweenDunning); + + /** Get Days between dunning. + * Days between sending dunning notices + */ + public int getDaysBetweenDunning(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Dunning_PrintFormat_ID */ + public static final String COLUMNNAME_Dunning_PrintFormat_ID = "Dunning_PrintFormat_ID"; + + /** Set Dunning Print Format. + * Print Format for printing Dunning Letters + */ + public void setDunning_PrintFormat_ID (int Dunning_PrintFormat_ID); + + /** Get Dunning Print Format. + * Print Format for printing Dunning Letters + */ + public int getDunning_PrintFormat_ID(); + + /** Column name FeeAmt */ + public static final String COLUMNNAME_FeeAmt = "FeeAmt"; + + /** Set Fee Amount. + * Fee amount in invoice currency + */ + public void setFeeAmt (BigDecimal FeeAmt); + + /** Get Fee Amount. + * Fee amount in invoice currency + */ + public BigDecimal getFeeAmt(); + + /** Column name InterestPercent */ + public static final String COLUMNNAME_InterestPercent = "InterestPercent"; + + /** Set Interest in percent. + * Percentage interest to charge on overdue invoices + */ + public void setInterestPercent (BigDecimal InterestPercent); + + /** Get Interest in percent. + * Percentage interest to charge on overdue invoices + */ + public BigDecimal getInterestPercent(); + + /** Column name IsSetCreditStop */ + public static final String COLUMNNAME_IsSetCreditStop = "IsSetCreditStop"; + + /** Set Credit Stop. + * Set the business partner to credit stop + */ + public void setIsSetCreditStop (boolean IsSetCreditStop); + + /** Get Credit Stop. + * Set the business partner to credit stop + */ + public boolean isSetCreditStop(); + + /** Column name IsSetPaymentTerm */ + public static final String COLUMNNAME_IsSetPaymentTerm = "IsSetPaymentTerm"; + + /** Set Set Payment Term. + * Set the payment term of the Business Partner + */ + public void setIsSetPaymentTerm (boolean IsSetPaymentTerm); + + /** Get Set Payment Term. + * Set the payment term of the Business Partner + */ + public boolean isSetPaymentTerm(); + + /** Column name IsShowAllDue */ + public static final String COLUMNNAME_IsShowAllDue = "IsShowAllDue"; + + /** Set Show All Due. + * Show/print all due invoices + */ + public void setIsShowAllDue (boolean IsShowAllDue); + + /** Get Show All Due. + * Show/print all due invoices + */ + public boolean isShowAllDue(); + + /** Column name IsShowNotDue */ + public static final String COLUMNNAME_IsShowNotDue = "IsShowNotDue"; + + /** Set Show Not Due. + * Show/print all invoices which are not due (yet). + */ + public void setIsShowNotDue (boolean IsShowNotDue); + + /** Get Show Not Due. + * Show/print all invoices which are not due (yet). + */ + public boolean isShowNotDue(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name PrintName */ + public static final String COLUMNNAME_PrintName = "PrintName"; + + /** Set Print Text. + * The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName); + + /** Get Print Text. + * The label text to be printed on a document or correspondence. + */ + public String getPrintName(); +} diff --git a/base/src/org/compiere/model/I_C_DunningRun.java b/base/src/org/compiere/model/I_C_DunningRun.java new file mode 100644 index 0000000000..3c1909f599 --- /dev/null +++ b/base/src/org/compiere/model/I_C_DunningRun.java @@ -0,0 +1,141 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_DunningRun + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.125 + */ + public interface I_C_DunningRun +{ + + /** TableName=C_DunningRun */ + public static final String Table_Name = "C_DunningRun"; + + /** AD_Table_ID=526 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_DunningLevel_ID */ + public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID"; + + /** Set Dunning Level */ + public void setC_DunningLevel_ID (int C_DunningLevel_ID); + + /** Get Dunning Level */ + public int getC_DunningLevel_ID(); + + public I_C_DunningLevel getI_C_DunningLevel() throws Exception; + + /** Column name C_DunningRun_ID */ + public static final String COLUMNNAME_C_DunningRun_ID = "C_DunningRun_ID"; + + /** Set Dunning Run. + * Dunning Run + */ + public void setC_DunningRun_ID (int C_DunningRun_ID); + + /** Get Dunning Run. + * Dunning Run + */ + public int getC_DunningRun_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DunningDate */ + public static final String COLUMNNAME_DunningDate = "DunningDate"; + + /** Set Dunning Date. + * Date of Dunning + */ + public void setDunningDate (Timestamp DunningDate); + + /** Get Dunning Date. + * Date of Dunning + */ + public Timestamp getDunningDate(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name SendIt */ + public static final String COLUMNNAME_SendIt = "SendIt"; + + /** Set Send */ + public void setSendIt (String SendIt); + + /** Get Send */ + public String getSendIt(); +} diff --git a/base/src/org/compiere/model/I_C_DunningRunEntry.java b/base/src/org/compiere/model/I_C_DunningRunEntry.java new file mode 100644 index 0000000000..eb60b99880 --- /dev/null +++ b/base/src/org/compiere/model/I_C_DunningRunEntry.java @@ -0,0 +1,209 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_DunningRunEntry + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.14 + */ + public interface I_C_DunningRunEntry +{ + + /** TableName=C_DunningRunEntry */ + public static final String Table_Name = "C_DunningRunEntry"; + + /** AD_Table_ID=527 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + /** Column name C_DunningRunEntry_ID */ + public static final String COLUMNNAME_C_DunningRunEntry_ID = "C_DunningRunEntry_ID"; + + /** Set Dunning Run Entry. + * Dunning Run Entry + */ + public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID); + + /** Get Dunning Run Entry. + * Dunning Run Entry + */ + public int getC_DunningRunEntry_ID(); + + /** Column name C_DunningRun_ID */ + public static final String COLUMNNAME_C_DunningRun_ID = "C_DunningRun_ID"; + + /** Set Dunning Run. + * Dunning Run + */ + public void setC_DunningRun_ID (int C_DunningRun_ID); + + /** Get Dunning Run. + * Dunning Run + */ + public int getC_DunningRun_ID(); + + public I_C_DunningRun getI_C_DunningRun() throws Exception; + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); +} diff --git a/base/src/org/compiere/model/I_C_DunningRunLine.java b/base/src/org/compiere/model/I_C_DunningRunLine.java new file mode 100644 index 0000000000..7e6b8f9ac9 --- /dev/null +++ b/base/src/org/compiere/model/I_C_DunningRunLine.java @@ -0,0 +1,244 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_DunningRunLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.156 + */ + public interface I_C_DunningRunLine +{ + + /** TableName=C_DunningRunLine */ + public static final String Table_Name = "C_DunningRunLine"; + + /** AD_Table_ID=524 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_DunningRunEntry_ID */ + public static final String COLUMNNAME_C_DunningRunEntry_ID = "C_DunningRunEntry_ID"; + + /** Set Dunning Run Entry. + * Dunning Run Entry + */ + public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID); + + /** Get Dunning Run Entry. + * Dunning Run Entry + */ + public int getC_DunningRunEntry_ID(); + + public I_C_DunningRunEntry getI_C_DunningRunEntry() throws Exception; + + /** Column name C_DunningRunLine_ID */ + public static final String COLUMNNAME_C_DunningRunLine_ID = "C_DunningRunLine_ID"; + + /** Set Dunning Run Line. + * Dunning Run Line + */ + public void setC_DunningRunLine_ID (int C_DunningRunLine_ID); + + /** Get Dunning Run Line. + * Dunning Run Line + */ + public int getC_DunningRunLine_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name ConvertedAmt */ + public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; + + /** Set Converted Amount. + * Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt); + + /** Get Converted Amount. + * Converted Amount + */ + public BigDecimal getConvertedAmt(); + + /** Column name DaysDue */ + public static final String COLUMNNAME_DaysDue = "DaysDue"; + + /** Set Days due. + * Number of days due (negative: due in number of days) + */ + public void setDaysDue (int DaysDue); + + /** Get Days due. + * Number of days due (negative: due in number of days) + */ + public int getDaysDue(); + + /** Column name FeeAmt */ + public static final String COLUMNNAME_FeeAmt = "FeeAmt"; + + /** Set Fee Amount. + * Fee amount in invoice currency + */ + public void setFeeAmt (BigDecimal FeeAmt); + + /** Get Fee Amount. + * Fee amount in invoice currency + */ + public BigDecimal getFeeAmt(); + + /** Column name InterestAmt */ + public static final String COLUMNNAME_InterestAmt = "InterestAmt"; + + /** Set Interest Amount. + * Interest Amount + */ + public void setInterestAmt (BigDecimal InterestAmt); + + /** Get Interest Amount. + * Interest Amount + */ + public BigDecimal getInterestAmt(); + + /** Column name IsInDispute */ + public static final String COLUMNNAME_IsInDispute = "IsInDispute"; + + /** Set In Dispute. + * Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute); + + /** Get In Dispute. + * Document is in dispute + */ + public boolean isInDispute(); + + /** Column name OpenAmt */ + public static final String COLUMNNAME_OpenAmt = "OpenAmt"; + + /** Set Open Amount. + * Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt); + + /** Get Open Amount. + * Open item amount + */ + public BigDecimal getOpenAmt(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name TimesDunned */ + public static final String COLUMNNAME_TimesDunned = "TimesDunned"; + + /** Set Times Dunned. + * Number of times dunned previously + */ + public void setTimesDunned (int TimesDunned); + + /** Get Times Dunned. + * Number of times dunned previously + */ + public int getTimesDunned(); + + /** Column name TotalAmt */ + public static final String COLUMNNAME_TotalAmt = "TotalAmt"; + + /** Set Total Amount. + * Total Amount + */ + public void setTotalAmt (BigDecimal TotalAmt); + + /** Get Total Amount. + * Total Amount + */ + public BigDecimal getTotalAmt(); +} diff --git a/base/src/org/compiere/model/I_C_Element.java b/base/src/org/compiere/model/I_C_Element.java new file mode 100644 index 0000000000..bd5d6bbeab --- /dev/null +++ b/base/src/org/compiere/model/I_C_Element.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Element + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.218 + */ + public interface I_C_Element +{ + + /** TableName=C_Element */ + public static final String Table_Name = "C_Element"; + + /** AD_Table_ID=142 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Tree_ID */ + public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; + + /** Set Tree. + * Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID); + + /** Get Tree. + * Identifies a Tree + */ + public int getAD_Tree_ID(); + + public I_AD_Tree getI_AD_Tree() throws Exception; + + /** Column name C_Element_ID */ + public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; + + /** Set Element. + * Accounting Element + */ + public void setC_Element_ID (int C_Element_ID); + + /** Get Element. + * Accounting Element + */ + public int getC_Element_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ElementType */ + public static final String COLUMNNAME_ElementType = "ElementType"; + + /** Set Type. + * Element Type (account or user defined) + */ + public void setElementType (String ElementType); + + /** Get Type. + * Element Type (account or user defined) + */ + public String getElementType(); + + /** Column name IsBalancing */ + public static final String COLUMNNAME_IsBalancing = "IsBalancing"; + + /** Set Balancing. + * All transactions within an element value must balance (e.g. cost centers) + */ + public void setIsBalancing (boolean IsBalancing); + + /** Get Balancing. + * All transactions within an element value must balance (e.g. cost centers) + */ + public boolean isBalancing(); + + /** Column name IsNaturalAccount */ + public static final String COLUMNNAME_IsNaturalAccount = "IsNaturalAccount"; + + /** Set Natural Account. + * The primary natural account + */ + public void setIsNaturalAccount (boolean IsNaturalAccount); + + /** Get Natural Account. + * The primary natural account + */ + public boolean isNaturalAccount(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name VFormat */ + public static final String COLUMNNAME_VFormat = "VFormat"; + + /** Set Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat); + + /** Get Value Format. + * Format of the value; + Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat(); +} diff --git a/base/src/org/compiere/model/I_C_ElementValue.java b/base/src/org/compiere/model/I_C_ElementValue.java new file mode 100644 index 0000000000..a310ba9222 --- /dev/null +++ b/base/src/org/compiere/model/I_C_ElementValue.java @@ -0,0 +1,313 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ElementValue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.265 + */ + public interface I_C_ElementValue +{ + + /** TableName=C_ElementValue */ + public static final String Table_Name = "C_ElementValue"; + + /** AD_Table_ID=188 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AccountSign */ + public static final String COLUMNNAME_AccountSign = "AccountSign"; + + /** Set Account Sign. + * Indicates the Natural Sign of the Account as a Debit or Credit + */ + public void setAccountSign (String AccountSign); + + /** Get Account Sign. + * Indicates the Natural Sign of the Account as a Debit or Credit + */ + public String getAccountSign(); + + /** Column name AccountType */ + public static final String COLUMNNAME_AccountType = "AccountType"; + + /** Set Account Type. + * Indicates the type of account + */ + public void setAccountType (String AccountType); + + /** Get Account Type. + * Indicates the type of account + */ + public String getAccountType(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + /** Column name C_Element_ID */ + public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; + + /** Set Element. + * Accounting Element + */ + public void setC_Element_ID (int C_Element_ID); + + /** Get Element. + * Accounting Element + */ + public int getC_Element_ID(); + + public I_C_Element getI_C_Element() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsBankAccount */ + public static final String COLUMNNAME_IsBankAccount = "IsBankAccount"; + + /** Set Bank Account. + * Indicates if this is the Bank Account + */ + public void setIsBankAccount (boolean IsBankAccount); + + /** Get Bank Account. + * Indicates if this is the Bank Account + */ + public boolean isBankAccount(); + + /** Column name IsDocControlled */ + public static final String COLUMNNAME_IsDocControlled = "IsDocControlled"; + + /** Set Document Controlled. + * Control account - If an account is controlled by a document, you cannot post manually to it + */ + public void setIsDocControlled (boolean IsDocControlled); + + /** Get Document Controlled. + * Control account - If an account is controlled by a document, you cannot post manually to it + */ + public boolean isDocControlled(); + + /** Column name IsForeignCurrency */ + public static final String COLUMNNAME_IsForeignCurrency = "IsForeignCurrency"; + + /** Set Foreign Currency Account. + * Balances in foreign currency accounts are held in the nominated currency + */ + public void setIsForeignCurrency (boolean IsForeignCurrency); + + /** Get Foreign Currency Account. + * Balances in foreign currency accounts are held in the nominated currency + */ + public boolean isForeignCurrency(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PostActual */ + public static final String COLUMNNAME_PostActual = "PostActual"; + + /** Set Post Actual. + * Actual Values can be posted + */ + public void setPostActual (boolean PostActual); + + /** Get Post Actual. + * Actual Values can be posted + */ + public boolean isPostActual(); + + /** Column name PostBudget */ + public static final String COLUMNNAME_PostBudget = "PostBudget"; + + /** Set Post Budget. + * Budget values can be posted + */ + public void setPostBudget (boolean PostBudget); + + /** Get Post Budget. + * Budget values can be posted + */ + public boolean isPostBudget(); + + /** Column name PostEncumbrance */ + public static final String COLUMNNAME_PostEncumbrance = "PostEncumbrance"; + + /** Set Post Encumbrance. + * Post commitments to this account + */ + public void setPostEncumbrance (boolean PostEncumbrance); + + /** Get Post Encumbrance. + * Post commitments to this account + */ + public boolean isPostEncumbrance(); + + /** Column name PostStatistical */ + public static final String COLUMNNAME_PostStatistical = "PostStatistical"; + + /** Set Post Statistical. + * Post statistical quantities to this account? + */ + public void setPostStatistical (boolean PostStatistical); + + /** Get Post Statistical. + * Post statistical quantities to this account? + */ + public boolean isPostStatistical(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_Greeting.java b/base/src/org/compiere/model/I_C_Greeting.java new file mode 100644 index 0000000000..56cc543fbe --- /dev/null +++ b/base/src/org/compiere/model/I_C_Greeting.java @@ -0,0 +1,143 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Greeting + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.328 + */ + public interface I_C_Greeting +{ + + /** TableName=C_Greeting */ + public static final String Table_Name = "C_Greeting"; + + /** AD_Table_ID=346 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Greeting_ID */ + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + + /** Set Greeting. + * Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID); + + /** Get Greeting. + * Greeting to print on correspondence + */ + public int getC_Greeting_ID(); + + /** Column name Greeting */ + public static final String COLUMNNAME_Greeting = "Greeting"; + + /** Set Greeting. + * For letters, e.g. "Dear +{ +0} +" or "Dear Mr. +{ +0} +" - At runtime, " +{ +0} +" is replaced by the name + */ + public void setGreeting (String Greeting); + + /** Get Greeting. + * For letters, e.g. "Dear +{ +0} +" or "Dear Mr. +{ +0} +" - At runtime, " +{ +0} +" is replaced by the name + */ + public String getGreeting(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsFirstNameOnly */ + public static final String COLUMNNAME_IsFirstNameOnly = "IsFirstNameOnly"; + + /** Set First name only. + * Print only the first name in greetings + */ + public void setIsFirstNameOnly (boolean IsFirstNameOnly); + + /** Get First name only. + * Print only the first name in greetings + */ + public boolean isFirstNameOnly(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_InterOrg_Acct.java b/base/src/org/compiere/model/I_C_InterOrg_Acct.java new file mode 100644 index 0000000000..0a0a59e650 --- /dev/null +++ b/base/src/org/compiere/model/I_C_InterOrg_Acct.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InterOrg_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.343 + */ + public interface I_C_InterOrg_Acct +{ + + /** TableName=C_InterOrg_Acct */ + public static final String Table_Name = "C_InterOrg_Acct"; + + /** AD_Table_ID=397 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_OrgTo_ID */ + public static final String COLUMNNAME_AD_OrgTo_ID = "AD_OrgTo_ID"; + + /** Set Inter-Organization. + * Organization valid for intercompany documents + */ + public void setAD_OrgTo_ID (int AD_OrgTo_ID); + + /** Get Inter-Organization. + * Organization valid for intercompany documents + */ + public int getAD_OrgTo_ID(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name IntercompanyDueFrom_Acct */ + public static final String COLUMNNAME_IntercompanyDueFrom_Acct = "IntercompanyDueFrom_Acct"; + + /** Set Intercompany Due From Acct. + * Intercompany Due From / Receivables Account + */ + public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct); + + /** Get Intercompany Due From Acct. + * Intercompany Due From / Receivables Account + */ + public int getIntercompanyDueFrom_Acct(); + + /** Column name IntercompanyDueTo_Acct */ + public static final String COLUMNNAME_IntercompanyDueTo_Acct = "IntercompanyDueTo_Acct"; + + /** Set Intercompany Due To Acct. + * Intercompany Due To / Payable Account + */ + public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct); + + /** Get Intercompany Due To Acct. + * Intercompany Due To / Payable Account + */ + public int getIntercompanyDueTo_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_Invoice.java b/base/src/org/compiere/model/I_C_Invoice.java new file mode 100644 index 0000000000..bd96bae2c5 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Invoice.java @@ -0,0 +1,776 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Invoice + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.375 + */ + public interface I_C_Invoice +{ + + /** TableName=C_Invoice */ + public static final String Table_Name = "C_Invoice"; + + /** AD_Table_ID=318 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocTypeTarget_ID */ + public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + + /** Set Target Document Type. + * Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); + + /** Get Target Document Type. + * Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateInvoiced */ + public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; + + /** Set Date Invoiced. + * Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced); + + /** Get Date Invoiced. + * Date printed on Invoice + */ + public Timestamp getDateInvoiced(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePrinted */ + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + + /** Set Date printed. + * Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted); + + /** Get Date printed. + * Date the document was printed. + */ + public Timestamp getDatePrinted(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name GenerateTo */ + public static final String COLUMNNAME_GenerateTo = "GenerateTo"; + + /** Set Generate To. + * Generate To + */ + public void setGenerateTo (String GenerateTo); + + /** Get Generate To. + * Generate To + */ + public String getGenerateTo(); + + /** Column name GrandTotal */ + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + + /** Set Grand Total. + * Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal); + + /** Get Grand Total. + * Total amount of document + */ + public BigDecimal getGrandTotal(); + + /** Column name InvoiceCollectionType */ + public static final String COLUMNNAME_InvoiceCollectionType = "InvoiceCollectionType"; + + /** Set Collection Status. + * Invoice Collection Status + */ + public void setInvoiceCollectionType (String InvoiceCollectionType); + + /** Get Collection Status. + * Invoice Collection Status + */ + public String getInvoiceCollectionType(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsInDispute */ + public static final String COLUMNNAME_IsInDispute = "IsInDispute"; + + /** Set In Dispute. + * Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute); + + /** Get In Dispute. + * Document is in dispute + */ + public boolean isInDispute(); + + /** Column name IsPaid */ + public static final String COLUMNNAME_IsPaid = "IsPaid"; + + /** Set Paid. + * The document is paid + */ + public void setIsPaid (boolean IsPaid); + + /** Get Paid. + * The document is paid + */ + public boolean isPaid(); + + /** Column name IsPayScheduleValid */ + public static final String COLUMNNAME_IsPayScheduleValid = "IsPayScheduleValid"; + + /** Set Pay Schedule valid. + * Is the Payment Schedule is valid + */ + public void setIsPayScheduleValid (boolean IsPayScheduleValid); + + /** Get Pay Schedule valid. + * Is the Payment Schedule is valid + */ + public boolean isPayScheduleValid(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name IsTransferred */ + public static final String COLUMNNAME_IsTransferred = "IsTransferred"; + + /** Set Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred); + + /** Get Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + public I_M_RMA getI_M_RMA() throws Exception; + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ref_Invoice_ID */ + public static final String COLUMNNAME_Ref_Invoice_ID = "Ref_Invoice_ID"; + + /** Set Referenced Invoice */ + public void setRef_Invoice_ID (int Ref_Invoice_ID); + + /** Get Referenced Invoice */ + public int getRef_Invoice_ID(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name TotalLines */ + public static final String COLUMNNAME_TotalLines = "TotalLines"; + + /** Set Total Lines. + * Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines); + + /** Get Total Lines. + * Total of all document lines + */ + public BigDecimal getTotalLines(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_InvoiceBatch.java b/base/src/org/compiere/model/I_C_InvoiceBatch.java new file mode 100644 index 0000000000..81346b5667 --- /dev/null +++ b/base/src/org/compiere/model/I_C_InvoiceBatch.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InvoiceBatch + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.515 + */ + public interface I_C_InvoiceBatch +{ + + /** TableName=C_InvoiceBatch */ + public static final String Table_Name = "C_InvoiceBatch"; + + /** AD_Table_ID=767 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_InvoiceBatch_ID */ + public static final String COLUMNNAME_C_InvoiceBatch_ID = "C_InvoiceBatch_ID"; + + /** Set Invoice Batch. + * Expense Invoice Batch Header + */ + public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID); + + /** Get Invoice Batch. + * Expense Invoice Batch Header + */ + public int getC_InvoiceBatch_ID(); + + /** Column name ControlAmt */ + public static final String COLUMNNAME_ControlAmt = "ControlAmt"; + + /** Set Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt); + + /** Get Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt(); + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentAmt */ + public static final String COLUMNNAME_DocumentAmt = "DocumentAmt"; + + /** Set Document Amt. + * Document Amount + */ + public void setDocumentAmt (BigDecimal DocumentAmt); + + /** Get Document Amt. + * Document Amount + */ + public BigDecimal getDocumentAmt(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); +} diff --git a/base/src/org/compiere/model/I_C_InvoiceBatchLine.java b/base/src/org/compiere/model/I_C_InvoiceBatchLine.java new file mode 100644 index 0000000000..4d0006c8c8 --- /dev/null +++ b/base/src/org/compiere/model/I_C_InvoiceBatchLine.java @@ -0,0 +1,423 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InvoiceBatchLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.609 + */ + public interface I_C_InvoiceBatchLine +{ + + /** TableName=C_InvoiceBatchLine */ + public static final String Table_Name = "C_InvoiceBatchLine"; + + /** AD_Table_ID=768 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_InvoiceBatchLine_ID */ + public static final String COLUMNNAME_C_InvoiceBatchLine_ID = "C_InvoiceBatchLine_ID"; + + /** Set Invoice Batch Line. + * Expense Invoice Batch Line + */ + public void setC_InvoiceBatchLine_ID (int C_InvoiceBatchLine_ID); + + /** Get Invoice Batch Line. + * Expense Invoice Batch Line + */ + public int getC_InvoiceBatchLine_ID(); + + /** Column name C_InvoiceBatch_ID */ + public static final String COLUMNNAME_C_InvoiceBatch_ID = "C_InvoiceBatch_ID"; + + /** Set Invoice Batch. + * Expense Invoice Batch Header + */ + public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID); + + /** Get Invoice Batch. + * Expense Invoice Batch Header + */ + public int getC_InvoiceBatch_ID(); + + public I_C_InvoiceBatch getI_C_InvoiceBatch() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateInvoiced */ + public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; + + /** Set Date Invoiced. + * Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced); + + /** Get Date Invoiced. + * Date printed on Invoice + */ + public Timestamp getDateInvoiced(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineNetAmt */ + public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; + + /** Set Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt); + + /** Get Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt(); + + /** Column name LineTotalAmt */ + public static final String COLUMNNAME_LineTotalAmt = "LineTotalAmt"; + + /** Set Line Total. + * Total line amount incl. Tax + */ + public void setLineTotalAmt (BigDecimal LineTotalAmt); + + /** Get Line Total. + * Total line amount incl. Tax + */ + public BigDecimal getLineTotalAmt(); + + /** Column name PriceEntered */ + public static final String COLUMNNAME_PriceEntered = "PriceEntered"; + + /** Set Price. + * Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered); + + /** Get Price. + * Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyEntered */ + public static final String COLUMNNAME_QtyEntered = "QtyEntered"; + + /** Set Quantity. + * The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered); + + /** Get Quantity. + * The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_InvoiceLine.java b/base/src/org/compiere/model/I_C_InvoiceLine.java new file mode 100644 index 0000000000..6a59a3b1e9 --- /dev/null +++ b/base/src/org/compiere/model/I_C_InvoiceLine.java @@ -0,0 +1,557 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InvoiceLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:40.656 + */ + public interface I_C_InvoiceLine +{ + + /** TableName=C_InvoiceLine */ + public static final String Table_Name = "C_InvoiceLine"; + + /** AD_Table_ID=333 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + public I_A_Asset getI_A_Asset() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDescription */ + public static final String COLUMNNAME_IsDescription = "IsDescription"; + + /** Set Description Only. + * if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription); + + /** Get Description Only. + * if true, the line is just description and no transaction + */ + public boolean isDescription(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineNetAmt */ + public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; + + /** Set Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt); + + /** Get Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt(); + + /** Column name LineTotalAmt */ + public static final String COLUMNNAME_LineTotalAmt = "LineTotalAmt"; + + /** Set Line Total. + * Total line amount incl. Tax + */ + public void setLineTotalAmt (BigDecimal LineTotalAmt); + + /** Get Line Total. + * Total line amount incl. Tax + */ + public BigDecimal getLineTotalAmt(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_RMALine_ID */ + public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; + + /** Set RMA Line. + * Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID); + + /** Get RMA Line. + * Return Material Authorization Line + */ + public int getM_RMALine_ID(); + + public I_M_RMALine getI_M_RMALine() throws Exception; + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name PriceEntered */ + public static final String COLUMNNAME_PriceEntered = "PriceEntered"; + + /** Set Price. + * Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered); + + /** Get Price. + * Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered(); + + /** Column name PriceLimit */ + public static final String COLUMNNAME_PriceLimit = "PriceLimit"; + + /** Set Limit Price. + * Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit); + + /** Get Limit Price. + * Lowest price for a product + */ + public BigDecimal getPriceLimit(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyEntered */ + public static final String COLUMNNAME_QtyEntered = "QtyEntered"; + + /** Set Quantity. + * The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered); + + /** Get Quantity. + * The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name RRAmt */ + public static final String COLUMNNAME_RRAmt = "RRAmt"; + + /** Set Revenue Recognition Amt. + * Revenue Recognition Amount + */ + public void setRRAmt (BigDecimal RRAmt); + + /** Get Revenue Recognition Amt. + * Revenue Recognition Amount + */ + public BigDecimal getRRAmt(); + + /** Column name RRStartDate */ + public static final String COLUMNNAME_RRStartDate = "RRStartDate"; + + /** Set Revenue Recognition Start. + * Revenue Recognition Start Date + */ + public void setRRStartDate (Timestamp RRStartDate); + + /** Get Revenue Recognition Start. + * Revenue Recognition Start Date + */ + public Timestamp getRRStartDate(); + + /** Column name Ref_InvoiceLine_ID */ + public static final String COLUMNNAME_Ref_InvoiceLine_ID = "Ref_InvoiceLine_ID"; + + /** Set Referenced Invoice Line */ + public void setRef_InvoiceLine_ID (int Ref_InvoiceLine_ID); + + /** Get Referenced Invoice Line */ + public int getRef_InvoiceLine_ID(); + + /** Column name S_ResourceAssignment_ID */ + public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; + + /** Set Resource Assignment. + * Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID); + + /** Get Resource Assignment. + * Resource Assignment + */ + public int getS_ResourceAssignment_ID(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_InvoicePaySchedule.java b/base/src/org/compiere/model/I_C_InvoicePaySchedule.java new file mode 100644 index 0000000000..a42d27979b --- /dev/null +++ b/base/src/org/compiere/model/I_C_InvoicePaySchedule.java @@ -0,0 +1,188 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InvoicePaySchedule + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.14 + */ + public interface I_C_InvoicePaySchedule +{ + + /** TableName=C_InvoicePaySchedule */ + public static final String Table_Name = "C_InvoicePaySchedule"; + + /** AD_Table_ID=551 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_InvoicePaySchedule_ID */ + public static final String COLUMNNAME_C_InvoicePaySchedule_ID = "C_InvoicePaySchedule_ID"; + + /** Set Invoice Payment Schedule. + * Invoice Payment Schedule + */ + public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID); + + /** Get Invoice Payment Schedule. + * Invoice Payment Schedule + */ + public int getC_InvoicePaySchedule_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_PaySchedule_ID */ + public static final String COLUMNNAME_C_PaySchedule_ID = "C_PaySchedule_ID"; + + /** Set Payment Schedule. + * Payment Schedule Template + */ + public void setC_PaySchedule_ID (int C_PaySchedule_ID); + + /** Get Payment Schedule. + * Payment Schedule Template + */ + public int getC_PaySchedule_ID(); + + public I_C_PaySchedule getI_C_PaySchedule() throws Exception; + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name DiscountDate */ + public static final String COLUMNNAME_DiscountDate = "DiscountDate"; + + /** Set Discount Date. + * Last Date for payments with discount + */ + public void setDiscountDate (Timestamp DiscountDate); + + /** Get Discount Date. + * Last Date for payments with discount + */ + public Timestamp getDiscountDate(); + + /** Column name DueAmt */ + public static final String COLUMNNAME_DueAmt = "DueAmt"; + + /** Set Amount due. + * Amount of the payment due + */ + public void setDueAmt (BigDecimal DueAmt); + + /** Get Amount due. + * Amount of the payment due + */ + public BigDecimal getDueAmt(); + + /** Column name DueDate */ + public static final String COLUMNNAME_DueDate = "DueDate"; + + /** Set Due Date. + * Date when the payment is due + */ + public void setDueDate (Timestamp DueDate); + + /** Get Due Date. + * Date when the payment is due + */ + public Timestamp getDueDate(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_InvoiceSchedule.java b/base/src/org/compiere/model/I_C_InvoiceSchedule.java new file mode 100644 index 0000000000..e21e2c3940 --- /dev/null +++ b/base/src/org/compiere/model/I_C_InvoiceSchedule.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InvoiceSchedule + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.156 + */ + public interface I_C_InvoiceSchedule +{ + + /** TableName=C_InvoiceSchedule */ + public static final String Table_Name = "C_InvoiceSchedule"; + + /** AD_Table_ID=257 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_InvoiceSchedule_ID */ + public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; + + /** Set Invoice Schedule. + * Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID); + + /** Get Invoice Schedule. + * Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EvenInvoiceWeek */ + public static final String COLUMNNAME_EvenInvoiceWeek = "EvenInvoiceWeek"; + + /** Set Invoice on even weeks. + * Send invoices on even weeks + */ + public void setEvenInvoiceWeek (boolean EvenInvoiceWeek); + + /** Get Invoice on even weeks. + * Send invoices on even weeks + */ + public boolean isEvenInvoiceWeek(); + + /** Column name InvoiceDay */ + public static final String COLUMNNAME_InvoiceDay = "InvoiceDay"; + + /** Set Invoice Day. + * Day of Invoice Generation + */ + public void setInvoiceDay (int InvoiceDay); + + /** Get Invoice Day. + * Day of Invoice Generation + */ + public int getInvoiceDay(); + + /** Column name InvoiceDayCutoff */ + public static final String COLUMNNAME_InvoiceDayCutoff = "InvoiceDayCutoff"; + + /** Set Invoice day cut-off. + * Last day for including shipments + */ + public void setInvoiceDayCutoff (int InvoiceDayCutoff); + + /** Get Invoice day cut-off. + * Last day for including shipments + */ + public int getInvoiceDayCutoff(); + + /** Column name InvoiceFrequency */ + public static final String COLUMNNAME_InvoiceFrequency = "InvoiceFrequency"; + + /** Set Invoice Frequency. + * How often invoices will be generated + */ + public void setInvoiceFrequency (String InvoiceFrequency); + + /** Get Invoice Frequency. + * How often invoices will be generated + */ + public String getInvoiceFrequency(); + + /** Column name InvoiceWeekDay */ + public static final String COLUMNNAME_InvoiceWeekDay = "InvoiceWeekDay"; + + /** Set Invoice Week Day. + * Day to generate invoices + */ + public void setInvoiceWeekDay (String InvoiceWeekDay); + + /** Get Invoice Week Day. + * Day to generate invoices + */ + public String getInvoiceWeekDay(); + + /** Column name InvoiceWeekDayCutoff */ + public static final String COLUMNNAME_InvoiceWeekDayCutoff = "InvoiceWeekDayCutoff"; + + /** Set Invoice weekday cutoff. + * Last day in the week for shipments to be included + */ + public void setInvoiceWeekDayCutoff (String InvoiceWeekDayCutoff); + + /** Get Invoice weekday cutoff. + * Last day in the week for shipments to be included + */ + public String getInvoiceWeekDayCutoff(); + + /** Column name IsAmount */ + public static final String COLUMNNAME_IsAmount = "IsAmount"; + + /** Set Amount Limit. + * Send invoices only if the amount exceeds the limit + */ + public void setIsAmount (boolean IsAmount); + + /** Get Amount Limit. + * Send invoices only if the amount exceeds the limit + */ + public boolean isAmount(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_InvoiceTax.java b/base/src/org/compiere/model/I_C_InvoiceTax.java new file mode 100644 index 0000000000..16c07bc24a --- /dev/null +++ b/base/src/org/compiere/model/I_C_InvoiceTax.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_InvoiceTax + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.203 + */ + public interface I_C_InvoiceTax +{ + + /** TableName=C_InvoiceTax */ + public static final String Table_Name = "C_InvoiceTax"; + + /** AD_Table_ID=334 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TaxBaseAmt */ + public static final String COLUMNNAME_TaxBaseAmt = "TaxBaseAmt"; + + /** Set Tax base Amount. + * Base for calculating the tax amount + */ + public void setTaxBaseAmt (BigDecimal TaxBaseAmt); + + /** Get Tax base Amount. + * Base for calculating the tax amount + */ + public BigDecimal getTaxBaseAmt(); +} diff --git a/base/src/org/compiere/model/I_C_Job.java b/base/src/org/compiere/model/I_C_Job.java new file mode 100644 index 0000000000..11179b2e9c --- /dev/null +++ b/base/src/org/compiere/model/I_C_Job.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Job + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.218 + */ + public interface I_C_Job +{ + + /** TableName=C_Job */ + public static final String Table_Name = "C_Job"; + + /** AD_Table_ID=789 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_JobCategory_ID */ + public static final String COLUMNNAME_C_JobCategory_ID = "C_JobCategory_ID"; + + /** Set Position Category. + * Job Position Category + */ + public void setC_JobCategory_ID (int C_JobCategory_ID); + + /** Get Position Category. + * Job Position Category + */ + public int getC_JobCategory_ID(); + + public I_C_JobCategory getI_C_JobCategory() throws Exception; + + /** Column name C_Job_ID */ + public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; + + /** Set Position. + * Job Position + */ + public void setC_Job_ID (int C_Job_ID); + + /** Get Position. + * Job Position + */ + public int getC_Job_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsEmployee */ + public static final String COLUMNNAME_IsEmployee = "IsEmployee"; + + /** Set Employee. + * Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee); + + /** Get Employee. + * Indicates if this Business Partner is an employee + */ + public boolean isEmployee(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_JobAssignment.java b/base/src/org/compiere/model/I_C_JobAssignment.java new file mode 100644 index 0000000000..7eb8111904 --- /dev/null +++ b/base/src/org/compiere/model/I_C_JobAssignment.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_JobAssignment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.281 + */ + public interface I_C_JobAssignment +{ + + /** TableName=C_JobAssignment */ + public static final String Table_Name = "C_JobAssignment"; + + /** AD_Table_ID=791 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name C_JobAssignment_ID */ + public static final String COLUMNNAME_C_JobAssignment_ID = "C_JobAssignment_ID"; + + /** Set Position Assignment. + * Assignemt of Employee (User) to Job Position + */ + public void setC_JobAssignment_ID (int C_JobAssignment_ID); + + /** Get Position Assignment. + * Assignemt of Employee (User) to Job Position + */ + public int getC_JobAssignment_ID(); + + /** Column name C_Job_ID */ + public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; + + /** Set Position. + * Job Position + */ + public void setC_Job_ID (int C_Job_ID); + + /** Get Position. + * Job Position + */ + public int getC_Job_ID(); + + public I_C_Job getI_C_Job() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_C_JobCategory.java b/base/src/org/compiere/model/I_C_JobCategory.java new file mode 100644 index 0000000000..86898033cd --- /dev/null +++ b/base/src/org/compiere/model/I_C_JobCategory.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_JobCategory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.296 + */ + public interface I_C_JobCategory +{ + + /** TableName=C_JobCategory */ + public static final String Table_Name = "C_JobCategory"; + + /** AD_Table_ID=790 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_JobCategory_ID */ + public static final String COLUMNNAME_C_JobCategory_ID = "C_JobCategory_ID"; + + /** Set Position Category. + * Job Position Category + */ + public void setC_JobCategory_ID (int C_JobCategory_ID); + + /** Get Position Category. + * Job Position Category + */ + public int getC_JobCategory_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_JobRemuneration.java b/base/src/org/compiere/model/I_C_JobRemuneration.java new file mode 100644 index 0000000000..0efea1901d --- /dev/null +++ b/base/src/org/compiere/model/I_C_JobRemuneration.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_JobRemuneration + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.328 + */ + public interface I_C_JobRemuneration +{ + + /** TableName=C_JobRemuneration */ + public static final String Table_Name = "C_JobRemuneration"; + + /** AD_Table_ID=793 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_JobRemuneration_ID */ + public static final String COLUMNNAME_C_JobRemuneration_ID = "C_JobRemuneration_ID"; + + /** Set Position Remuneration. + * Remuneration for the Position + */ + public void setC_JobRemuneration_ID (int C_JobRemuneration_ID); + + /** Get Position Remuneration. + * Remuneration for the Position + */ + public int getC_JobRemuneration_ID(); + + /** Column name C_Job_ID */ + public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; + + /** Set Position. + * Job Position + */ + public void setC_Job_ID (int C_Job_ID); + + /** Get Position. + * Job Position + */ + public int getC_Job_ID(); + + public I_C_Job getI_C_Job() throws Exception; + + /** Column name C_Remuneration_ID */ + public static final String COLUMNNAME_C_Remuneration_ID = "C_Remuneration_ID"; + + /** Set Remuneration. + * Wage or Salary + */ + public void setC_Remuneration_ID (int C_Remuneration_ID); + + /** Get Remuneration. + * Wage or Salary + */ + public int getC_Remuneration_ID(); + + public I_C_Remuneration getI_C_Remuneration() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_C_LandedCost.java b/base/src/org/compiere/model/I_C_LandedCost.java new file mode 100644 index 0000000000..231c3345cb --- /dev/null +++ b/base/src/org/compiere/model/I_C_LandedCost.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_LandedCost + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.375 + */ + public interface I_C_LandedCost +{ + + /** TableName=C_LandedCost */ + public static final String Table_Name = "C_LandedCost"; + + /** AD_Table_ID=759 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_LandedCost_ID */ + public static final String COLUMNNAME_C_LandedCost_ID = "C_LandedCost_ID"; + + /** Set Landed Cost. + * Landed cost to be allocated to material receipts + */ + public void setC_LandedCost_ID (int C_LandedCost_ID); + + /** Get Landed Cost. + * Landed cost to be allocated to material receipts + */ + public int getC_LandedCost_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name LandedCostDistribution */ + public static final String COLUMNNAME_LandedCostDistribution = "LandedCostDistribution"; + + /** Set Cost Distribution. + * Landed Cost Distribution + */ + public void setLandedCostDistribution (String LandedCostDistribution); + + /** Get Cost Distribution. + * Landed Cost Distribution + */ + public String getLandedCostDistribution(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + public I_M_CostElement getI_M_CostElement() throws Exception; + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + public I_M_InOutLine getI_M_InOutLine() throws Exception; + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_LandedCostAllocation.java b/base/src/org/compiere/model/I_C_LandedCostAllocation.java new file mode 100644 index 0000000000..36a97f9d19 --- /dev/null +++ b/base/src/org/compiere/model/I_C_LandedCostAllocation.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_LandedCostAllocation + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.421 + */ + public interface I_C_LandedCostAllocation +{ + + /** TableName=C_LandedCostAllocation */ + public static final String Table_Name = "C_LandedCostAllocation"; + + /** AD_Table_ID=760 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name Base */ + public static final String COLUMNNAME_Base = "Base"; + + /** Set Base. + * Calculation Base + */ + public void setBase (BigDecimal Base); + + /** Get Base. + * Calculation Base + */ + public BigDecimal getBase(); + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_LandedCostAllocation_ID */ + public static final String COLUMNNAME_C_LandedCostAllocation_ID = "C_LandedCostAllocation_ID"; + + /** Set Landed Cost Allocation. + * Allocation for Land Costs + */ + public void setC_LandedCostAllocation_ID (int C_LandedCostAllocation_ID); + + /** Get Landed Cost Allocation. + * Allocation for Land Costs + */ + public int getC_LandedCostAllocation_ID(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + public I_M_CostElement getI_M_CostElement() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_C_Location.java b/base/src/org/compiere/model/I_C_Location.java new file mode 100644 index 0000000000..fdd2c2c008 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Location.java @@ -0,0 +1,220 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Location + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.437 + */ + public interface I_C_Location +{ + + /** TableName=C_Location */ + public static final String Table_Name = "C_Location"; + + /** AD_Table_ID=162 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name Address1 */ + public static final String COLUMNNAME_Address1 = "Address1"; + + /** Set Address 1. + * Address line 1 for this location + */ + public void setAddress1 (String Address1); + + /** Get Address 1. + * Address line 1 for this location + */ + public String getAddress1(); + + /** Column name Address2 */ + public static final String COLUMNNAME_Address2 = "Address2"; + + /** Set Address 2. + * Address line 2 for this location + */ + public void setAddress2 (String Address2); + + /** Get Address 2. + * Address line 2 for this location + */ + public String getAddress2(); + + /** Column name Address3 */ + public static final String COLUMNNAME_Address3 = "Address3"; + + /** Set Address 3. + * Address Line 3 for the location + */ + public void setAddress3 (String Address3); + + /** Get Address 3. + * Address Line 3 for the location + */ + public String getAddress3(); + + /** Column name Address4 */ + public static final String COLUMNNAME_Address4 = "Address4"; + + /** Set Address 4. + * Address Line 4 for the location + */ + public void setAddress4 (String Address4); + + /** Get Address 4. + * Address Line 4 for the location + */ + public String getAddress4(); + + /** Column name C_City_ID */ + public static final String COLUMNNAME_C_City_ID = "C_City_ID"; + + /** Set City. + * City + */ + public void setC_City_ID (int C_City_ID); + + /** Get City. + * City + */ + public int getC_City_ID(); + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + public I_C_Region getI_C_Region() throws Exception; + + /** Column name City */ + public static final String COLUMNNAME_City = "City"; + + /** Set City. + * Identifies a City + */ + public void setCity (String City); + + /** Get City. + * Identifies a City + */ + public String getCity(); + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); + + /** Column name Postal_Add */ + public static final String COLUMNNAME_Postal_Add = "Postal_Add"; + + /** Set -. + * Additional ZIP or Postal code + */ + public void setPostal_Add (String Postal_Add); + + /** Get -. + * Additional ZIP or Postal code + */ + public String getPostal_Add(); + + /** Column name RegionName */ + public static final String COLUMNNAME_RegionName = "RegionName"; + + /** Set Region. + * Name of the Region + */ + public void setRegionName (String RegionName); + + /** Get Region. + * Name of the Region + */ + public String getRegionName(); +} diff --git a/base/src/org/compiere/model/I_C_NonBusinessDay.java b/base/src/org/compiere/model/I_C_NonBusinessDay.java new file mode 100644 index 0000000000..e6425649dc --- /dev/null +++ b/base/src/org/compiere/model/I_C_NonBusinessDay.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_NonBusinessDay + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.453 + */ + public interface I_C_NonBusinessDay +{ + + /** TableName=C_NonBusinessDay */ + public static final String Table_Name = "C_NonBusinessDay"; + + /** AD_Table_ID=163 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getI_C_Calendar() throws Exception; + + /** Column name C_NonBusinessDay_ID */ + public static final String COLUMNNAME_C_NonBusinessDay_ID = "C_NonBusinessDay_ID"; + + /** Set Non Business Day. + * Day on which business is not transacted + */ + public void setC_NonBusinessDay_ID (int C_NonBusinessDay_ID); + + /** Get Non Business Day. + * Day on which business is not transacted + */ + public int getC_NonBusinessDay_ID(); + + /** Column name Date1 */ + public static final String COLUMNNAME_Date1 = "Date1"; + + /** Set Date. + * Date when business is not conducted + */ + public void setDate1 (Timestamp Date1); + + /** Get Date. + * Date when business is not conducted + */ + public Timestamp getDate1(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_Order.java b/base/src/org/compiere/model/I_C_Order.java new file mode 100644 index 0000000000..aa4e73fbc6 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Order.java @@ -0,0 +1,930 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Order + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:41.468 + */ + public interface I_C_Order +{ + + /** TableName=C_Order */ + public static final String Table_Name = "C_Order"; + + /** AD_Table_ID=259 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Bill_BPartner_ID */ + public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID"; + + /** Set Invoice Partner. + * Business Partner to be invoiced + */ + public void setBill_BPartner_ID (int Bill_BPartner_ID); + + /** Get Invoice Partner. + * Business Partner to be invoiced + */ + public int getBill_BPartner_ID(); + + /** Column name Bill_Location_ID */ + public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID"; + + /** Set Invoice Location. + * Business Partner Location for invoicing + */ + public void setBill_Location_ID (int Bill_Location_ID); + + /** Get Invoice Location. + * Business Partner Location for invoicing + */ + public int getBill_Location_ID(); + + /** Column name Bill_User_ID */ + public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID"; + + /** Set Invoice Contact. + * Business Partner Contact for invoicing + */ + public void setBill_User_ID (int Bill_User_ID); + + /** Get Invoice Contact. + * Business Partner Contact for invoicing + */ + public int getBill_User_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocTypeTarget_ID */ + public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + + /** Set Target Document Type. + * Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); + + /** Get Target Document Type. + * Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePrinted */ + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + + /** Set Date printed. + * Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted); + + /** Get Date printed. + * Date the document was printed. + */ + public Timestamp getDatePrinted(); + + /** Column name DatePromised */ + public static final String COLUMNNAME_DatePromised = "DatePromised"; + + /** Set Date Promised. + * Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised); + + /** Get Date Promised. + * Date Order was promised + */ + public Timestamp getDatePromised(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name GrandTotal */ + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + + /** Set Grand Total. + * Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal); + + /** Get Grand Total. + * Total amount of document + */ + public BigDecimal getGrandTotal(); + + /** Column name InvoiceRule */ + public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + + /** Set Invoice Rule. + * Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule); + + /** Get Invoice Rule. + * Frequency and method of invoicing + */ + public String getInvoiceRule(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsCreditApproved */ + public static final String COLUMNNAME_IsCreditApproved = "IsCreditApproved"; + + /** Set Credit Approved. + * Credit has been approved + */ + public void setIsCreditApproved (boolean IsCreditApproved); + + /** Get Credit Approved. + * Credit has been approved + */ + public boolean isCreditApproved(); + + /** Column name IsDelivered */ + public static final String COLUMNNAME_IsDelivered = "IsDelivered"; + + /** Set Delivered */ + public void setIsDelivered (boolean IsDelivered); + + /** Get Delivered */ + public boolean isDelivered(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsDropShip */ + public static final String COLUMNNAME_IsDropShip = "IsDropShip"; + + /** Set Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip); + + /** Get Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name IsSelected */ + public static final String COLUMNNAME_IsSelected = "IsSelected"; + + /** Set Selected */ + public void setIsSelected (boolean IsSelected); + + /** Get Selected */ + public boolean isSelected(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name IsTransferred */ + public static final String COLUMNNAME_IsTransferred = "IsTransferred"; + + /** Set Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred); + + /** Get Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getI_M_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name Pay_BPartner_ID */ + public static final String COLUMNNAME_Pay_BPartner_ID = "Pay_BPartner_ID"; + + /** Set Payment BPartner. + * Business Partner responsible for the payment + */ + public void setPay_BPartner_ID (int Pay_BPartner_ID); + + /** Get Payment BPartner. + * Business Partner responsible for the payment + */ + public int getPay_BPartner_ID(); + + /** Column name Pay_Location_ID */ + public static final String COLUMNNAME_Pay_Location_ID = "Pay_Location_ID"; + + /** Set Payment Location. + * Location of the Business Partner responsible for the payment + */ + public void setPay_Location_ID (int Pay_Location_ID); + + /** Get Payment Location. + * Location of the Business Partner responsible for the payment + */ + public int getPay_Location_ID(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriorityRule */ + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + + /** Set Priority. + * Priority of a document + */ + public void setPriorityRule (String PriorityRule); + + /** Get Priority. + * Priority of a document + */ + public String getPriorityRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ref_Order_ID */ + public static final String COLUMNNAME_Ref_Order_ID = "Ref_Order_ID"; + + /** Set Referenced Order. + * Reference to corresponding Sales/Purchase Order + */ + public void setRef_Order_ID (int Ref_Order_ID); + + /** Get Referenced Order. + * Reference to corresponding Sales/Purchase Order + */ + public int getRef_Order_ID(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name TotalLines */ + public static final String COLUMNNAME_TotalLines = "TotalLines"; + + /** Set Total Lines. + * Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines); + + /** Get Total Lines. + * Total of all document lines + */ + public BigDecimal getTotalLines(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (BigDecimal Volume); + + /** Get Volume. + * Volume of a product + */ + public BigDecimal getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (BigDecimal Weight); + + /** Get Weight. + * Weight of a product + */ + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_C_OrderLine.java b/base/src/org/compiere/model/I_C_OrderLine.java new file mode 100644 index 0000000000..95f5d73cf9 --- /dev/null +++ b/base/src/org/compiere/model/I_C_OrderLine.java @@ -0,0 +1,680 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_OrderLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.234 + */ + public interface I_C_OrderLine +{ + + /** TableName=C_OrderLine */ + public static final String Table_Name = "C_OrderLine"; + + /** AD_Table_ID=260 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name DateDelivered */ + public static final String COLUMNNAME_DateDelivered = "DateDelivered"; + + /** Set Date Delivered. + * Date when the product was delivered + */ + public void setDateDelivered (Timestamp DateDelivered); + + /** Get Date Delivered. + * Date when the product was delivered + */ + public Timestamp getDateDelivered(); + + /** Column name DateInvoiced */ + public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; + + /** Set Date Invoiced. + * Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced); + + /** Get Date Invoiced. + * Date printed on Invoice + */ + public Timestamp getDateInvoiced(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePromised */ + public static final String COLUMNNAME_DatePromised = "DatePromised"; + + /** Set Date Promised. + * Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised); + + /** Get Date Promised. + * Date Order was promised + */ + public Timestamp getDatePromised(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Discount */ + public static final String COLUMNNAME_Discount = "Discount"; + + /** Set Discount %. + * Discount in percent + */ + public void setDiscount (BigDecimal Discount); + + /** Get Discount %. + * Discount in percent + */ + public BigDecimal getDiscount(); + + /** Column name FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name IsDescription */ + public static final String COLUMNNAME_IsDescription = "IsDescription"; + + /** Set Description Only. + * if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription); + + /** Get Description Only. + * if true, the line is just description and no transaction + */ + public boolean isDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineNetAmt */ + public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; + + /** Set Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt); + + /** Get Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getI_M_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name PriceCost */ + public static final String COLUMNNAME_PriceCost = "PriceCost"; + + /** Set Cost Price. + * Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public void setPriceCost (BigDecimal PriceCost); + + /** Get Cost Price. + * Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public BigDecimal getPriceCost(); + + /** Column name PriceEntered */ + public static final String COLUMNNAME_PriceEntered = "PriceEntered"; + + /** Set Price. + * Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered); + + /** Get Price. + * Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered(); + + /** Column name PriceLimit */ + public static final String COLUMNNAME_PriceLimit = "PriceLimit"; + + /** Set Limit Price. + * Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit); + + /** Get Limit Price. + * Lowest price for a product + */ + public BigDecimal getPriceLimit(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyDelivered */ + public static final String COLUMNNAME_QtyDelivered = "QtyDelivered"; + + /** Set Delivered Quantity. + * Delivered Quantity + */ + public void setQtyDelivered (BigDecimal QtyDelivered); + + /** Get Delivered Quantity. + * Delivered Quantity + */ + public BigDecimal getQtyDelivered(); + + /** Column name QtyEntered */ + public static final String COLUMNNAME_QtyEntered = "QtyEntered"; + + /** Set Quantity. + * The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered); + + /** Get Quantity. + * The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name QtyLostSales */ + public static final String COLUMNNAME_QtyLostSales = "QtyLostSales"; + + /** Set Lost Sales Qty. + * Quantity of potential sales + */ + public void setQtyLostSales (BigDecimal QtyLostSales); + + /** Get Lost Sales Qty. + * Quantity of potential sales + */ + public BigDecimal getQtyLostSales(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name QtyReserved */ + public static final String COLUMNNAME_QtyReserved = "QtyReserved"; + + /** Set Reserved Quantity. + * Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved); + + /** Get Reserved Quantity. + * Reserved Quantity + */ + public BigDecimal getQtyReserved(); + + /** Column name RRAmt */ + public static final String COLUMNNAME_RRAmt = "RRAmt"; + + /** Set Revenue Recognition Amt. + * Revenue Recognition Amount + */ + public void setRRAmt (BigDecimal RRAmt); + + /** Get Revenue Recognition Amt. + * Revenue Recognition Amount + */ + public BigDecimal getRRAmt(); + + /** Column name RRStartDate */ + public static final String COLUMNNAME_RRStartDate = "RRStartDate"; + + /** Set Revenue Recognition Start. + * Revenue Recognition Start Date + */ + public void setRRStartDate (Timestamp RRStartDate); + + /** Get Revenue Recognition Start. + * Revenue Recognition Start Date + */ + public Timestamp getRRStartDate(); + + /** Column name Ref_OrderLine_ID */ + public static final String COLUMNNAME_Ref_OrderLine_ID = "Ref_OrderLine_ID"; + + /** Set Referenced Order Line. + * Reference to corresponding Sales/Purchase Order + */ + public void setRef_OrderLine_ID (int Ref_OrderLine_ID); + + /** Get Referenced Order Line. + * Reference to corresponding Sales/Purchase Order + */ + public int getRef_OrderLine_ID(); + + /** Column name S_ResourceAssignment_ID */ + public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; + + /** Set Resource Assignment. + * Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID); + + /** Get Resource Assignment. + * Resource Assignment + */ + public int getS_ResourceAssignment_ID(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_OrderTax.java b/base/src/org/compiere/model/I_C_OrderTax.java new file mode 100644 index 0000000000..5728515858 --- /dev/null +++ b/base/src/org/compiere/model/I_C_OrderTax.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_OrderTax + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.343 + */ + public interface I_C_OrderTax +{ + + /** TableName=C_OrderTax */ + public static final String Table_Name = "C_OrderTax"; + + /** AD_Table_ID=314 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TaxBaseAmt */ + public static final String COLUMNNAME_TaxBaseAmt = "TaxBaseAmt"; + + /** Set Tax base Amount. + * Base for calculating the tax amount + */ + public void setTaxBaseAmt (BigDecimal TaxBaseAmt); + + /** Get Tax base Amount. + * Base for calculating the tax amount + */ + public BigDecimal getTaxBaseAmt(); +} diff --git a/base/src/org/compiere/model/I_C_OrgAssignment.java b/base/src/org/compiere/model/I_C_OrgAssignment.java new file mode 100644 index 0000000000..d638a10ddd --- /dev/null +++ b/base/src/org/compiere/model/I_C_OrgAssignment.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_OrgAssignment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.39 + */ + public interface I_C_OrgAssignment +{ + + /** TableName=C_OrgAssignment */ + public static final String Table_Name = "C_OrgAssignment"; + + /** AD_Table_ID=585 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name C_OrgAssignment_ID */ + public static final String COLUMNNAME_C_OrgAssignment_ID = "C_OrgAssignment_ID"; + + /** Set Org Assignment. + * Assigment to (transaction) Organization + */ + public void setC_OrgAssignment_ID (int C_OrgAssignment_ID); + + /** Get Org Assignment. + * Assigment to (transaction) Organization + */ + public int getC_OrgAssignment_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_C_POS.java b/base/src/org/compiere/model/I_C_POS.java new file mode 100644 index 0000000000..431c9478e4 --- /dev/null +++ b/base/src/org/compiere/model/I_C_POS.java @@ -0,0 +1,239 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_POS + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.406 + */ + public interface I_C_POS +{ + + /** TableName=C_POS */ + public static final String Table_Name = "C_POS"; + + /** AD_Table_ID=748 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_BPartnerCashTrx_ID */ + public static final String COLUMNNAME_C_BPartnerCashTrx_ID = "C_BPartnerCashTrx_ID"; + + /** Set Template B.Partner. + * Business Partner used for creating new Business Partners on the fly + */ + public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID); + + /** Get Template B.Partner. + * Business Partner used for creating new Business Partners on the fly + */ + public int getC_BPartnerCashTrx_ID(); + + /** Column name C_CashBook_ID */ + public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; + + /** Set Cash Book. + * Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID); + + /** Get Cash Book. + * Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID(); + + public I_C_CashBook getI_C_CashBook() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_POSKeyLayout_ID */ + public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; + + /** Set POS Key Layout. + * POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID); + + /** Get POS Key Layout. + * POS Function Key Layout + */ + public int getC_POSKeyLayout_ID(); + + public I_C_POSKeyLayout getI_C_POSKeyLayout() throws Exception; + + /** Column name C_POS_ID */ + public static final String COLUMNNAME_C_POS_ID = "C_POS_ID"; + + /** Set POS Terminal. + * Point of Sales Terminal + */ + public void setC_POS_ID (int C_POS_ID); + + /** Get POS Terminal. + * Point of Sales Terminal + */ + public int getC_POS_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsModifyPrice */ + public static final String COLUMNNAME_IsModifyPrice = "IsModifyPrice"; + + /** Set Modify Price. + * Allow modifying the price + */ + public void setIsModifyPrice (boolean IsModifyPrice); + + /** Get Modify Price. + * Allow modifying the price + */ + public boolean isModifyPrice(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PrinterName */ + public static final String COLUMNNAME_PrinterName = "PrinterName"; + + /** Set Printer Name. + * Name of the Printer + */ + public void setPrinterName (String PrinterName); + + /** Get Printer Name. + * Name of the Printer + */ + public String getPrinterName(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); +} diff --git a/base/src/org/compiere/model/I_C_POSKey.java b/base/src/org/compiere/model/I_C_POSKey.java new file mode 100644 index 0000000000..df6d503a34 --- /dev/null +++ b/base/src/org/compiere/model/I_C_POSKey.java @@ -0,0 +1,170 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_POSKey + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.468 + */ + public interface I_C_POSKey +{ + + /** TableName=C_POSKey */ + public static final String Table_Name = "C_POSKey"; + + /** AD_Table_ID=750 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name C_POSKeyLayout_ID */ + public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; + + /** Set POS Key Layout. + * POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID); + + /** Get POS Key Layout. + * POS Function Key Layout + */ + public int getC_POSKeyLayout_ID(); + + public I_C_POSKeyLayout getI_C_POSKeyLayout() throws Exception; + + /** Column name C_POSKey_ID */ + public static final String COLUMNNAME_C_POSKey_ID = "C_POSKey_ID"; + + /** Set POS Key. + * POS Function Key + */ + public void setC_POSKey_ID (int C_POSKey_ID); + + /** Get POS Key. + * POS Function Key + */ + public int getC_POSKey_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_C_POSKeyLayout.java b/base/src/org/compiere/model/I_C_POSKeyLayout.java new file mode 100644 index 0000000000..31d09c9322 --- /dev/null +++ b/base/src/org/compiere/model/I_C_POSKeyLayout.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_POSKeyLayout + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.515 + */ + public interface I_C_POSKeyLayout +{ + + /** TableName=C_POSKeyLayout */ + public static final String Table_Name = "C_POSKeyLayout"; + + /** AD_Table_ID=749 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_POSKeyLayout_ID */ + public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; + + /** Set POS Key Layout. + * POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID); + + /** Get POS Key Layout. + * POS Function Key Layout + */ + public int getC_POSKeyLayout_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_PaySchedule.java b/base/src/org/compiere/model/I_C_PaySchedule.java new file mode 100644 index 0000000000..a99993da65 --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaySchedule.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaySchedule + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.531 + */ + public interface I_C_PaySchedule +{ + + /** TableName=C_PaySchedule */ + public static final String Table_Name = "C_PaySchedule"; + + /** AD_Table_ID=548 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_PaySchedule_ID */ + public static final String COLUMNNAME_C_PaySchedule_ID = "C_PaySchedule_ID"; + + /** Set Payment Schedule. + * Payment Schedule Template + */ + public void setC_PaySchedule_ID (int C_PaySchedule_ID); + + /** Get Payment Schedule. + * Payment Schedule Template + */ + public int getC_PaySchedule_ID(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name Discount */ + public static final String COLUMNNAME_Discount = "Discount"; + + /** Set Discount %. + * Discount in percent + */ + public void setDiscount (BigDecimal Discount); + + /** Get Discount %. + * Discount in percent + */ + public BigDecimal getDiscount(); + + /** Column name DiscountDays */ + public static final String COLUMNNAME_DiscountDays = "DiscountDays"; + + /** Set Discount Days. + * Number of days from invoice date to be eligible for discount + */ + public void setDiscountDays (int DiscountDays); + + /** Get Discount Days. + * Number of days from invoice date to be eligible for discount + */ + public int getDiscountDays(); + + /** Column name GraceDays */ + public static final String COLUMNNAME_GraceDays = "GraceDays"; + + /** Set Grace Days. + * Days after due date to send first dunning letter + */ + public void setGraceDays (int GraceDays); + + /** Get Grace Days. + * Days after due date to send first dunning letter + */ + public int getGraceDays(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name NetDay */ + public static final String COLUMNNAME_NetDay = "NetDay"; + + /** Set Net Day. + * Day when payment is due net + */ + public void setNetDay (String NetDay); + + /** Get Net Day. + * Day when payment is due net + */ + public String getNetDay(); + + /** Column name NetDays */ + public static final String COLUMNNAME_NetDays = "NetDays"; + + /** Set Net Days. + * Net Days in which payment is due + */ + public void setNetDays (int NetDays); + + /** Get Net Days. + * Net Days in which payment is due + */ + public int getNetDays(); + + /** Column name Percentage */ + public static final String COLUMNNAME_Percentage = "Percentage"; + + /** Set Percentage. + * Percent of the entire amount + */ + public void setPercentage (BigDecimal Percentage); + + /** Get Percentage. + * Percent of the entire amount + */ + public BigDecimal getPercentage(); +} diff --git a/base/src/org/compiere/model/I_C_PaySelection.java b/base/src/org/compiere/model/I_C_PaySelection.java new file mode 100644 index 0000000000..af6b16a1fe --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaySelection.java @@ -0,0 +1,188 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaySelection + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.578 + */ + public interface I_C_PaySelection +{ + + /** TableName=C_PaySelection */ + public static final String Table_Name = "C_PaySelection"; + + /** AD_Table_ID=426 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_PaySelection_ID */ + public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; + + /** Set Payment Selection. + * Payment Selection + */ + public void setC_PaySelection_ID (int C_PaySelection_ID); + + /** Get Payment Selection. + * Payment Selection + */ + public int getC_PaySelection_ID(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PayDate */ + public static final String COLUMNNAME_PayDate = "PayDate"; + + /** Set Payment date. + * Date Payment made + */ + public void setPayDate (Timestamp PayDate); + + /** Get Payment date. + * Date Payment made + */ + public Timestamp getPayDate(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TotalAmt */ + public static final String COLUMNNAME_TotalAmt = "TotalAmt"; + + /** Set Total Amount. + * Total Amount + */ + public void setTotalAmt (BigDecimal TotalAmt); + + /** Get Total Amount. + * Total Amount + */ + public BigDecimal getTotalAmt(); +} diff --git a/base/src/org/compiere/model/I_C_PaySelectionCheck.java b/base/src/org/compiere/model/I_C_PaySelectionCheck.java new file mode 100644 index 0000000000..fc1f3b149e --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaySelectionCheck.java @@ -0,0 +1,233 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaySelectionCheck + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.593 + */ + public interface I_C_PaySelectionCheck +{ + + /** TableName=C_PaySelectionCheck */ + public static final String Table_Name = "C_PaySelectionCheck"; + + /** AD_Table_ID=525 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_BP_BankAccount_ID */ + public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; + + /** Set Partner Bank Account. + * Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID); + + /** Get Partner Bank Account. + * Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID(); + + public I_C_BP_BankAccount getI_C_BP_BankAccount() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_PaySelectionCheck_ID */ + public static final String COLUMNNAME_C_PaySelectionCheck_ID = "C_PaySelectionCheck_ID"; + + /** Set Pay Selection Check. + * Payment Selection Check + */ + public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID); + + /** Get Pay Selection Check. + * Payment Selection Check + */ + public int getC_PaySelectionCheck_ID(); + + /** Column name C_PaySelection_ID */ + public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; + + /** Set Payment Selection. + * Payment Selection + */ + public void setC_PaySelection_ID (int C_PaySelection_ID); + + /** Get Payment Selection. + * Payment Selection + */ + public int getC_PaySelection_ID(); + + public I_C_PaySelection getI_C_PaySelection() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsReceipt */ + public static final String COLUMNNAME_IsReceipt = "IsReceipt"; + + /** Set Receipt. + * This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt); + + /** Get Receipt. + * This is a sales transaction (receipt) + */ + public boolean isReceipt(); + + /** Column name PayAmt */ + public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** Set Payment amount. + * Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt); + + /** Get Payment amount. + * Amount being paid + */ + public BigDecimal getPayAmt(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (int Qty); + + /** Get Quantity. + * Quantity + */ + public int getQty(); +} diff --git a/base/src/org/compiere/model/I_C_PaySelectionLine.java b/base/src/org/compiere/model/I_C_PaySelectionLine.java new file mode 100644 index 0000000000..6607e34e9d --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaySelectionLine.java @@ -0,0 +1,246 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaySelectionLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.625 + */ + public interface I_C_PaySelectionLine +{ + + /** TableName=C_PaySelectionLine */ + public static final String Table_Name = "C_PaySelectionLine"; + + /** AD_Table_ID=427 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_PaySelectionCheck_ID */ + public static final String COLUMNNAME_C_PaySelectionCheck_ID = "C_PaySelectionCheck_ID"; + + /** Set Pay Selection Check. + * Payment Selection Check + */ + public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID); + + /** Get Pay Selection Check. + * Payment Selection Check + */ + public int getC_PaySelectionCheck_ID(); + + public I_C_PaySelectionCheck getI_C_PaySelectionCheck() throws Exception; + + /** Column name C_PaySelectionLine_ID */ + public static final String COLUMNNAME_C_PaySelectionLine_ID = "C_PaySelectionLine_ID"; + + /** Set Payment Selection Line. + * Payment Selection Line + */ + public void setC_PaySelectionLine_ID (int C_PaySelectionLine_ID); + + /** Get Payment Selection Line. + * Payment Selection Line + */ + public int getC_PaySelectionLine_ID(); + + /** Column name C_PaySelection_ID */ + public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; + + /** Set Payment Selection. + * Payment Selection + */ + public void setC_PaySelection_ID (int C_PaySelection_ID); + + /** Get Payment Selection. + * Payment Selection + */ + public int getC_PaySelection_ID(); + + public I_C_PaySelection getI_C_PaySelection() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DifferenceAmt */ + public static final String COLUMNNAME_DifferenceAmt = "DifferenceAmt"; + + /** Set Difference. + * Difference Amount + */ + public void setDifferenceAmt (BigDecimal DifferenceAmt); + + /** Get Difference. + * Difference Amount + */ + public BigDecimal getDifferenceAmt(); + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name OpenAmt */ + public static final String COLUMNNAME_OpenAmt = "OpenAmt"; + + /** Set Open Amount. + * Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt); + + /** Get Open Amount. + * Open item amount + */ + public BigDecimal getOpenAmt(); + + /** Column name PayAmt */ + public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** Set Payment amount. + * Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt); + + /** Get Payment amount. + * Amount being paid + */ + public BigDecimal getPayAmt(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); +} diff --git a/base/src/org/compiere/model/I_C_Payment.java b/base/src/org/compiere/model/I_C_Payment.java new file mode 100644 index 0000000000..5e21b37116 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Payment.java @@ -0,0 +1,1073 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Payment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:42.687 + */ + public interface I_C_Payment +{ + + /** TableName=C_Payment */ + public static final String Table_Name = "C_Payment"; + + /** AD_Table_ID=335 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name A_City */ + public static final String COLUMNNAME_A_City = "A_City"; + + /** Set Account City. + * City or the Credit Card or Account Holder + */ + public void setA_City (String A_City); + + /** Get Account City. + * City or the Credit Card or Account Holder + */ + public String getA_City(); + + /** Column name A_Country */ + public static final String COLUMNNAME_A_Country = "A_Country"; + + /** Set Account Country. + * Country + */ + public void setA_Country (String A_Country); + + /** Get Account Country. + * Country + */ + public String getA_Country(); + + /** Column name A_EMail */ + public static final String COLUMNNAME_A_EMail = "A_EMail"; + + /** Set Account EMail. + * Email Address + */ + public void setA_EMail (String A_EMail); + + /** Get Account EMail. + * Email Address + */ + public String getA_EMail(); + + /** Column name A_Ident_DL */ + public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; + + /** Set Driver License. + * Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL); + + /** Get Driver License. + * Payment Identification - Driver License + */ + public String getA_Ident_DL(); + + /** Column name A_Ident_SSN */ + public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; + + /** Set Social Security No. + * Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN); + + /** Get Social Security No. + * Payment Identification - Social Security No + */ + public String getA_Ident_SSN(); + + /** Column name A_Name */ + public static final String COLUMNNAME_A_Name = "A_Name"; + + /** Set Account Name. + * Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name); + + /** Get Account Name. + * Name on Credit Card or Account holder + */ + public String getA_Name(); + + /** Column name A_State */ + public static final String COLUMNNAME_A_State = "A_State"; + + /** Set Account State. + * State of the Credit Card or Account holder + */ + public void setA_State (String A_State); + + /** Get Account State. + * State of the Credit Card or Account holder + */ + public String getA_State(); + + /** Column name A_Street */ + public static final String COLUMNNAME_A_Street = "A_Street"; + + /** Set Account Street. + * Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street); + + /** Get Account Street. + * Street address of the Credit Card or Account holder + */ + public String getA_Street(); + + /** Column name A_Zip */ + public static final String COLUMNNAME_A_Zip = "A_Zip"; + + /** Set Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip); + + /** Get Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip(); + + /** Column name AccountNo */ + public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** Set Account No. + * Account Number + */ + public void setAccountNo (String AccountNo); + + /** Get Account No. + * Account Number + */ + public String getAccountNo(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BP_BankAccount_ID */ + public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; + + /** Set Partner Bank Account. + * Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID); + + /** Get Partner Bank Account. + * Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID(); + + public I_C_BP_BankAccount getI_C_BP_BankAccount() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_PaymentBatch_ID */ + public static final String COLUMNNAME_C_PaymentBatch_ID = "C_PaymentBatch_ID"; + + /** Set Payment Batch. + * Payment batch for EFT + */ + public void setC_PaymentBatch_ID (int C_PaymentBatch_ID); + + /** Get Payment Batch. + * Payment batch for EFT + */ + public int getC_PaymentBatch_ID(); + + public I_C_PaymentBatch getI_C_PaymentBatch() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CheckNo */ + public static final String COLUMNNAME_CheckNo = "CheckNo"; + + /** Set Check No. + * Check Number + */ + public void setCheckNo (String CheckNo); + + /** Get Check No. + * Check Number + */ + public String getCheckNo(); + + /** Column name CreditCardExpMM */ + public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; + + /** Set Exp. Month. + * Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM); + + /** Get Exp. Month. + * Expiry Month + */ + public int getCreditCardExpMM(); + + /** Column name CreditCardExpYY */ + public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; + + /** Set Exp. Year. + * Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY); + + /** Get Exp. Year. + * Expiry Year + */ + public int getCreditCardExpYY(); + + /** Column name CreditCardNumber */ + public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + + /** Set Number. + * Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber); + + /** Get Number. + * Credit Card Number + */ + public String getCreditCardNumber(); + + /** Column name CreditCardType */ + public static final String COLUMNNAME_CreditCardType = "CreditCardType"; + + /** Set Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType); + + /** Get Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType(); + + /** Column name CreditCardVV */ + public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; + + /** Set Verification Code. + * Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV); + + /** Get Verification Code. + * Credit Card Verification code on credit card + */ + public String getCreditCardVV(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsAllocated */ + public static final String COLUMNNAME_IsAllocated = "IsAllocated"; + + /** Set Allocated. + * Indicates if the payment has been allocated + */ + public void setIsAllocated (boolean IsAllocated); + + /** Get Allocated. + * Indicates if the payment has been allocated + */ + public boolean isAllocated(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsDelayedCapture */ + public static final String COLUMNNAME_IsDelayedCapture = "IsDelayedCapture"; + + /** Set Delayed Capture. + * Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture); + + /** Get Delayed Capture. + * Charge after Shipment + */ + public boolean isDelayedCapture(); + + /** Column name IsOnline */ + public static final String COLUMNNAME_IsOnline = "IsOnline"; + + /** Set Online Access. + * Can be accessed online + */ + public void setIsOnline (boolean IsOnline); + + /** Get Online Access. + * Can be accessed online + */ + public boolean isOnline(); + + /** Column name IsOverUnderPayment */ + public static final String COLUMNNAME_IsOverUnderPayment = "IsOverUnderPayment"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment(); + + /** Column name IsPrepayment */ + public static final String COLUMNNAME_IsPrepayment = "IsPrepayment"; + + /** Set Prepayment. + * The Payment/Receipt is a Prepayment + */ + public void setIsPrepayment (boolean IsPrepayment); + + /** Get Prepayment. + * The Payment/Receipt is a Prepayment + */ + public boolean isPrepayment(); + + /** Column name IsReceipt */ + public static final String COLUMNNAME_IsReceipt = "IsReceipt"; + + /** Set Receipt. + * This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt); + + /** Get Receipt. + * This is a sales transaction (receipt) + */ + public boolean isReceipt(); + + /** Column name IsReconciled */ + public static final String COLUMNNAME_IsReconciled = "IsReconciled"; + + /** Set Reconciled. + * Payment is reconciled with bank statement + */ + public void setIsReconciled (boolean IsReconciled); + + /** Get Reconciled. + * Payment is reconciled with bank statement + */ + public boolean isReconciled(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Micr */ + public static final String COLUMNNAME_Micr = "Micr"; + + /** Set Micr. + * Combination of routing no, account and check no + */ + public void setMicr (String Micr); + + /** Get Micr. + * Combination of routing no, account and check no + */ + public String getMicr(); + + /** Column name OProcessing */ + public static final String COLUMNNAME_OProcessing = "OProcessing"; + + /** Set Online Processing. + * This payment can be processed online + */ + public void setOProcessing (String OProcessing); + + /** Get Online Processing. + * This payment can be processed online + */ + public String getOProcessing(); + + /** Column name Orig_TrxID */ + public static final String COLUMNNAME_Orig_TrxID = "Orig_TrxID"; + + /** Set Original Transaction ID. + * Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID); + + /** Get Original Transaction ID. + * Original Transaction ID + */ + public String getOrig_TrxID(); + + /** Column name OverUnderAmt */ + public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt(); + + /** Column name PONum */ + public static final String COLUMNNAME_PONum = "PONum"; + + /** Set PO Number. + * Purchase Order Number + */ + public void setPONum (String PONum); + + /** Get PO Number. + * Purchase Order Number + */ + public String getPONum(); + + /** Column name PayAmt */ + public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** Set Payment amount. + * Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt); + + /** Get Payment amount. + * Amount being paid + */ + public BigDecimal getPayAmt(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name R_AuthCode */ + public static final String COLUMNNAME_R_AuthCode = "R_AuthCode"; + + /** Set Authorization Code. + * Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode); + + /** Get Authorization Code. + * Authorization Code returned + */ + public String getR_AuthCode(); + + /** Column name R_AuthCode_DC */ + public static final String COLUMNNAME_R_AuthCode_DC = "R_AuthCode_DC"; + + /** Set Authorization Code (DC). + * Authorization Code Delayed Capture returned + */ + public void setR_AuthCode_DC (String R_AuthCode_DC); + + /** Get Authorization Code (DC). + * Authorization Code Delayed Capture returned + */ + public String getR_AuthCode_DC(); + + /** Column name R_AvsAddr */ + public static final String COLUMNNAME_R_AvsAddr = "R_AvsAddr"; + + /** Set Address verified. + * This address has been verified + */ + public void setR_AvsAddr (String R_AvsAddr); + + /** Get Address verified. + * This address has been verified + */ + public String getR_AvsAddr(); + + /** Column name R_AvsZip */ + public static final String COLUMNNAME_R_AvsZip = "R_AvsZip"; + + /** Set Zip verified. + * The Zip Code has been verified + */ + public void setR_AvsZip (String R_AvsZip); + + /** Get Zip verified. + * The Zip Code has been verified + */ + public String getR_AvsZip(); + + /** Column name R_CVV2Match */ + public static final String COLUMNNAME_R_CVV2Match = "R_CVV2Match"; + + /** Set CVV Match. + * Credit Card Verification Code Match + */ + public void setR_CVV2Match (boolean R_CVV2Match); + + /** Get CVV Match. + * Credit Card Verification Code Match + */ + public boolean isR_CVV2Match(); + + /** Column name R_Info */ + public static final String COLUMNNAME_R_Info = "R_Info"; + + /** Set Info. + * Response info + */ + public void setR_Info (String R_Info); + + /** Get Info. + * Response info + */ + public String getR_Info(); + + /** Column name R_PnRef */ + public static final String COLUMNNAME_R_PnRef = "R_PnRef"; + + /** Set Reference. + * Payment reference + */ + public void setR_PnRef (String R_PnRef); + + /** Get Reference. + * Payment reference + */ + public String getR_PnRef(); + + /** Column name R_PnRef_DC */ + public static final String COLUMNNAME_R_PnRef_DC = "R_PnRef_DC"; + + /** Set Reference (DC). + * Payment Reference Delayed Capture + */ + public void setR_PnRef_DC (String R_PnRef_DC); + + /** Get Reference (DC). + * Payment Reference Delayed Capture + */ + public String getR_PnRef_DC(); + + /** Column name R_RespMsg */ + public static final String COLUMNNAME_R_RespMsg = "R_RespMsg"; + + /** Set Response Message. + * Response message + */ + public void setR_RespMsg (String R_RespMsg); + + /** Get Response Message. + * Response message + */ + public String getR_RespMsg(); + + /** Column name R_Result */ + public static final String COLUMNNAME_R_Result = "R_Result"; + + /** Set Result. + * Result of transmission + */ + public void setR_Result (String R_Result); + + /** Get Result. + * Result of transmission + */ + public String getR_Result(); + + /** Column name Ref_Payment_ID */ + public static final String COLUMNNAME_Ref_Payment_ID = "Ref_Payment_ID"; + + /** Set Referenced Payment */ + public void setRef_Payment_ID (int Ref_Payment_ID); + + /** Get Referenced Payment */ + public int getRef_Payment_ID(); + + /** Column name RoutingNo */ + public static final String COLUMNNAME_RoutingNo = "RoutingNo"; + + /** Set Routing No. + * Bank Routing Number + */ + public void setRoutingNo (String RoutingNo); + + /** Get Routing No. + * Bank Routing Number + */ + public String getRoutingNo(); + + /** Column name Swipe */ + public static final String COLUMNNAME_Swipe = "Swipe"; + + /** Set Swipe. + * Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe); + + /** Get Swipe. + * Track 1 and 2 of the Credit Card + */ + public String getSwipe(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TenderType */ + public static final String COLUMNNAME_TenderType = "TenderType"; + + /** Set Tender type. + * Method of Payment + */ + public void setTenderType (String TenderType); + + /** Get Tender type. + * Method of Payment + */ + public String getTenderType(); + + /** Column name TrxType */ + public static final String COLUMNNAME_TrxType = "TrxType"; + + /** Set Transaction Type. + * Type of credit card transaction + */ + public void setTrxType (String TrxType); + + /** Get Transaction Type. + * Type of credit card transaction + */ + public String getTrxType(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name VoiceAuthCode */ + public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode"; + + /** Set Voice authorization code. + * Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode); + + /** Get Voice authorization code. + * Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_C_PaymentAllocate.java b/base/src/org/compiere/model/I_C_PaymentAllocate.java new file mode 100644 index 0000000000..47f17e8b91 --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaymentAllocate.java @@ -0,0 +1,190 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaymentAllocate + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.062 + */ + public interface I_C_PaymentAllocate +{ + + /** TableName=C_PaymentAllocate */ + public static final String Table_Name = "C_PaymentAllocate"; + + /** AD_Table_ID=812 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name Amount */ + public static final String COLUMNNAME_Amount = "Amount"; + + /** Set Amount. + * Amount in a defined currency + */ + public void setAmount (BigDecimal Amount); + + /** Get Amount. + * Amount in a defined currency + */ + public BigDecimal getAmount(); + + /** Column name C_AllocationLine_ID */ + public static final String COLUMNNAME_C_AllocationLine_ID = "C_AllocationLine_ID"; + + /** Set Allocation Line. + * Allocation Line + */ + public void setC_AllocationLine_ID (int C_AllocationLine_ID); + + /** Get Allocation Line. + * Allocation Line + */ + public int getC_AllocationLine_ID(); + + public I_C_AllocationLine getI_C_AllocationLine() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_PaymentAllocate_ID */ + public static final String COLUMNNAME_C_PaymentAllocate_ID = "C_PaymentAllocate_ID"; + + /** Set Allocate Payment. + * Allocate Payment to Invoices + */ + public void setC_PaymentAllocate_ID (int C_PaymentAllocate_ID); + + /** Get Allocate Payment. + * Allocate Payment to Invoices + */ + public int getC_PaymentAllocate_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + public I_C_Payment getI_C_Payment() throws Exception; + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name InvoiceAmt */ + public static final String COLUMNNAME_InvoiceAmt = "InvoiceAmt"; + + /** Set Invoice Amt */ + public void setInvoiceAmt (BigDecimal InvoiceAmt); + + /** Get Invoice Amt */ + public BigDecimal getInvoiceAmt(); + + /** Column name OverUnderAmt */ + public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt(); + + /** Column name RemainingAmt */ + public static final String COLUMNNAME_RemainingAmt = "RemainingAmt"; + + /** Set Remaining Amt. + * Remaining Amount + */ + public void setRemainingAmt (BigDecimal RemainingAmt); + + /** Get Remaining Amt. + * Remaining Amount + */ + public BigDecimal getRemainingAmt(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_C_PaymentBatch.java b/base/src/org/compiere/model/I_C_PaymentBatch.java new file mode 100644 index 0000000000..46d2297898 --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaymentBatch.java @@ -0,0 +1,145 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaymentBatch + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.078 + */ + public interface I_C_PaymentBatch +{ + + /** TableName=C_PaymentBatch */ + public static final String Table_Name = "C_PaymentBatch"; + + /** AD_Table_ID=411 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_PaymentBatch_ID */ + public static final String COLUMNNAME_C_PaymentBatch_ID = "C_PaymentBatch_ID"; + + /** Set Payment Batch. + * Payment batch for EFT + */ + public void setC_PaymentBatch_ID (int C_PaymentBatch_ID); + + /** Get Payment Batch. + * Payment batch for EFT + */ + public int getC_PaymentBatch_ID(); + + /** Column name C_PaymentProcessor_ID */ + public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID"; + + /** Set Payment Processor. + * Payment processor for electronic payments + */ + public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID); + + /** Get Payment Processor. + * Payment processor for electronic payments + */ + public int getC_PaymentProcessor_ID(); + + public I_C_PaymentProcessor getI_C_PaymentProcessor() throws Exception; + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProcessingDate */ + public static final String COLUMNNAME_ProcessingDate = "ProcessingDate"; + + /** Set Processing date */ + public void setProcessingDate (Timestamp ProcessingDate); + + /** Get Processing date */ + public Timestamp getProcessingDate(); +} diff --git a/base/src/org/compiere/model/I_C_PaymentProcessor.java b/base/src/org/compiere/model/I_C_PaymentProcessor.java new file mode 100644 index 0000000000..9d8c3d60c7 --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaymentProcessor.java @@ -0,0 +1,467 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaymentProcessor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.125 + */ + public interface I_C_PaymentProcessor +{ + + /** TableName=C_PaymentProcessor */ + public static final String Table_Name = "C_PaymentProcessor"; + + /** AD_Table_ID=398 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Sequence_ID */ + public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; + + /** Set Sequence. + * Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID); + + /** Get Sequence. + * Document Sequence + */ + public int getAD_Sequence_ID(); + + /** Column name AcceptAMEX */ + public static final String COLUMNNAME_AcceptAMEX = "AcceptAMEX"; + + /** Set Accept AMEX. + * Accept American Express Card + */ + public void setAcceptAMEX (boolean AcceptAMEX); + + /** Get Accept AMEX. + * Accept American Express Card + */ + public boolean isAcceptAMEX(); + + /** Column name AcceptATM */ + public static final String COLUMNNAME_AcceptATM = "AcceptATM"; + + /** Set Accept ATM. + * Accept Bank ATM Card + */ + public void setAcceptATM (boolean AcceptATM); + + /** Get Accept ATM. + * Accept Bank ATM Card + */ + public boolean isAcceptATM(); + + /** Column name AcceptCheck */ + public static final String COLUMNNAME_AcceptCheck = "AcceptCheck"; + + /** Set Accept Electronic Check. + * Accept ECheck (Electronic Checks) + */ + public void setAcceptCheck (boolean AcceptCheck); + + /** Get Accept Electronic Check. + * Accept ECheck (Electronic Checks) + */ + public boolean isAcceptCheck(); + + /** Column name AcceptCorporate */ + public static final String COLUMNNAME_AcceptCorporate = "AcceptCorporate"; + + /** Set Accept Corporate. + * Accept Corporate Purchase Cards + */ + public void setAcceptCorporate (boolean AcceptCorporate); + + /** Get Accept Corporate. + * Accept Corporate Purchase Cards + */ + public boolean isAcceptCorporate(); + + /** Column name AcceptDiners */ + public static final String COLUMNNAME_AcceptDiners = "AcceptDiners"; + + /** Set Accept Diners. + * Accept Diner's Club + */ + public void setAcceptDiners (boolean AcceptDiners); + + /** Get Accept Diners. + * Accept Diner's Club + */ + public boolean isAcceptDiners(); + + /** Column name AcceptDirectDebit */ + public static final String COLUMNNAME_AcceptDirectDebit = "AcceptDirectDebit"; + + /** Set Accept Direct Debit. + * Accept Direct Debits (vendor initiated) + */ + public void setAcceptDirectDebit (boolean AcceptDirectDebit); + + /** Get Accept Direct Debit. + * Accept Direct Debits (vendor initiated) + */ + public boolean isAcceptDirectDebit(); + + /** Column name AcceptDirectDeposit */ + public static final String COLUMNNAME_AcceptDirectDeposit = "AcceptDirectDeposit"; + + /** Set Accept Direct Deposit. + * Accept Direct Deposit (payee initiated) + */ + public void setAcceptDirectDeposit (boolean AcceptDirectDeposit); + + /** Get Accept Direct Deposit. + * Accept Direct Deposit (payee initiated) + */ + public boolean isAcceptDirectDeposit(); + + /** Column name AcceptDiscover */ + public static final String COLUMNNAME_AcceptDiscover = "AcceptDiscover"; + + /** Set Accept Discover. + * Accept Discover Card + */ + public void setAcceptDiscover (boolean AcceptDiscover); + + /** Get Accept Discover. + * Accept Discover Card + */ + public boolean isAcceptDiscover(); + + /** Column name AcceptMC */ + public static final String COLUMNNAME_AcceptMC = "AcceptMC"; + + /** Set Accept MasterCard. + * Accept Master Card + */ + public void setAcceptMC (boolean AcceptMC); + + /** Get Accept MasterCard. + * Accept Master Card + */ + public boolean isAcceptMC(); + + /** Column name AcceptVisa */ + public static final String COLUMNNAME_AcceptVisa = "AcceptVisa"; + + /** Set Accept Visa. + * Accept Visa Cards + */ + public void setAcceptVisa (boolean AcceptVisa); + + /** Get Accept Visa. + * Accept Visa Cards + */ + public boolean isAcceptVisa(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_PaymentProcessor_ID */ + public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID"; + + /** Set Payment Processor. + * Payment processor for electronic payments + */ + public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID); + + /** Get Payment Processor. + * Payment processor for electronic payments + */ + public int getC_PaymentProcessor_ID(); + + /** Column name Commission */ + public static final String COLUMNNAME_Commission = "Commission"; + + /** Set Commission %. + * Commission stated as a percentage + */ + public void setCommission (BigDecimal Commission); + + /** Get Commission %. + * Commission stated as a percentage + */ + public BigDecimal getCommission(); + + /** Column name CostPerTrx */ + public static final String COLUMNNAME_CostPerTrx = "CostPerTrx"; + + /** Set Cost per transaction. + * Fixed cost per transaction + */ + public void setCostPerTrx (BigDecimal CostPerTrx); + + /** Get Cost per transaction. + * Fixed cost per transaction + */ + public BigDecimal getCostPerTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name HostAddress */ + public static final String COLUMNNAME_HostAddress = "HostAddress"; + + /** Set Host Address. + * Host Address URL or DNS + */ + public void setHostAddress (String HostAddress); + + /** Get Host Address. + * Host Address URL or DNS + */ + public String getHostAddress(); + + /** Column name HostPort */ + public static final String COLUMNNAME_HostPort = "HostPort"; + + /** Set Host port. + * Host Communication Port + */ + public void setHostPort (int HostPort); + + /** Get Host port. + * Host Communication Port + */ + public int getHostPort(); + + /** Column name MinimumAmt */ + public static final String COLUMNNAME_MinimumAmt = "MinimumAmt"; + + /** Set Minimum Amt. + * Minumum Amout in Document Currency + */ + public void setMinimumAmt (BigDecimal MinimumAmt); + + /** Get Minimum Amt. + * Minumum Amout in Document Currency + */ + public BigDecimal getMinimumAmt(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PartnerID */ + public static final String COLUMNNAME_PartnerID = "PartnerID"; + + /** Set Partner ID. + * Partner ID or Account for the Payment Processor + */ + public void setPartnerID (String PartnerID); + + /** Get Partner ID. + * Partner ID or Account for the Payment Processor + */ + public String getPartnerID(); + + /** Column name Password */ + public static final String COLUMNNAME_Password = "Password"; + + /** Set Password. + * Password of any length (case sensitive) + */ + public void setPassword (String Password); + + /** Get Password. + * Password of any length (case sensitive) + */ + public String getPassword(); + + /** Column name PayProcessorClass */ + public static final String COLUMNNAME_PayProcessorClass = "PayProcessorClass"; + + /** Set Payment Processor Class. + * Payment Processor Java Class + */ + public void setPayProcessorClass (String PayProcessorClass); + + /** Get Payment Processor Class. + * Payment Processor Java Class + */ + public String getPayProcessorClass(); + + /** Column name ProxyAddress */ + public static final String COLUMNNAME_ProxyAddress = "ProxyAddress"; + + /** Set Proxy address. + * Address of your proxy server + */ + public void setProxyAddress (String ProxyAddress); + + /** Get Proxy address. + * Address of your proxy server + */ + public String getProxyAddress(); + + /** Column name ProxyLogon */ + public static final String COLUMNNAME_ProxyLogon = "ProxyLogon"; + + /** Set Proxy logon. + * Logon of your proxy server + */ + public void setProxyLogon (String ProxyLogon); + + /** Get Proxy logon. + * Logon of your proxy server + */ + public String getProxyLogon(); + + /** Column name ProxyPassword */ + public static final String COLUMNNAME_ProxyPassword = "ProxyPassword"; + + /** Set Proxy password. + * Password of your proxy server + */ + public void setProxyPassword (String ProxyPassword); + + /** Get Proxy password. + * Password of your proxy server + */ + public String getProxyPassword(); + + /** Column name ProxyPort */ + public static final String COLUMNNAME_ProxyPort = "ProxyPort"; + + /** Set Proxy port. + * Port of your proxy server + */ + public void setProxyPort (int ProxyPort); + + /** Get Proxy port. + * Port of your proxy server + */ + public int getProxyPort(); + + /** Column name RequireVV */ + public static final String COLUMNNAME_RequireVV = "RequireVV"; + + /** Set Require CreditCard Verification Code. + * Require 3/4 digit Credit Verification Code + */ + public void setRequireVV (boolean RequireVV); + + /** Get Require CreditCard Verification Code. + * Require 3/4 digit Credit Verification Code + */ + public boolean isRequireVV(); + + /** Column name UserID */ + public static final String COLUMNNAME_UserID = "UserID"; + + /** Set User ID. + * User ID or account number + */ + public void setUserID (String UserID); + + /** Get User ID. + * User ID or account number + */ + public String getUserID(); + + /** Column name VendorID */ + public static final String COLUMNNAME_VendorID = "VendorID"; + + /** Set Vendor ID. + * Vendor ID for the Payment Processor + */ + public void setVendorID (String VendorID); + + /** Get Vendor ID. + * Vendor ID for the Payment Processor + */ + public String getVendorID(); +} diff --git a/base/src/org/compiere/model/I_C_PaymentTerm.java b/base/src/org/compiere/model/I_C_PaymentTerm.java new file mode 100644 index 0000000000..441677e1f0 --- /dev/null +++ b/base/src/org/compiere/model/I_C_PaymentTerm.java @@ -0,0 +1,329 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PaymentTerm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.171 + */ + public interface I_C_PaymentTerm +{ + + /** TableName=C_PaymentTerm */ + public static final String Table_Name = "C_PaymentTerm"; + + /** AD_Table_ID=113 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AfterDelivery */ + public static final String COLUMNNAME_AfterDelivery = "AfterDelivery"; + + /** Set After Delivery. + * Due after delivery rather than after invoicing + */ + public void setAfterDelivery (boolean AfterDelivery); + + /** Get After Delivery. + * Due after delivery rather than after invoicing + */ + public boolean isAfterDelivery(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Discount */ + public static final String COLUMNNAME_Discount = "Discount"; + + /** Set Discount %. + * Discount in percent + */ + public void setDiscount (BigDecimal Discount); + + /** Get Discount %. + * Discount in percent + */ + public BigDecimal getDiscount(); + + /** Column name Discount2 */ + public static final String COLUMNNAME_Discount2 = "Discount2"; + + /** Set Discount 2 %. + * Discount in percent + */ + public void setDiscount2 (BigDecimal Discount2); + + /** Get Discount 2 %. + * Discount in percent + */ + public BigDecimal getDiscount2(); + + /** Column name DiscountDays */ + public static final String COLUMNNAME_DiscountDays = "DiscountDays"; + + /** Set Discount Days. + * Number of days from invoice date to be eligible for discount + */ + public void setDiscountDays (int DiscountDays); + + /** Get Discount Days. + * Number of days from invoice date to be eligible for discount + */ + public int getDiscountDays(); + + /** Column name DiscountDays2 */ + public static final String COLUMNNAME_DiscountDays2 = "DiscountDays2"; + + /** Set Discount Days 2. + * Number of days from invoice date to be eligible for discount + */ + public void setDiscountDays2 (int DiscountDays2); + + /** Get Discount Days 2. + * Number of days from invoice date to be eligible for discount + */ + public int getDiscountDays2(); + + /** Column name DocumentNote */ + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + + /** Set Document Note. + * Additional information for a Document + */ + public void setDocumentNote (String DocumentNote); + + /** Get Document Note. + * Additional information for a Document + */ + public String getDocumentNote(); + + /** Column name FixMonthCutoff */ + public static final String COLUMNNAME_FixMonthCutoff = "FixMonthCutoff"; + + /** Set Fix month cutoff. + * Last day to include for next due date + */ + public void setFixMonthCutoff (int FixMonthCutoff); + + /** Get Fix month cutoff. + * Last day to include for next due date + */ + public int getFixMonthCutoff(); + + /** Column name FixMonthDay */ + public static final String COLUMNNAME_FixMonthDay = "FixMonthDay"; + + /** Set Fix month day. + * Day of the month of the due date + */ + public void setFixMonthDay (int FixMonthDay); + + /** Get Fix month day. + * Day of the month of the due date + */ + public int getFixMonthDay(); + + /** Column name FixMonthOffset */ + public static final String COLUMNNAME_FixMonthOffset = "FixMonthOffset"; + + /** Set Fix month offset. + * Number of months (0=same, 1=following) + */ + public void setFixMonthOffset (int FixMonthOffset); + + /** Get Fix month offset. + * Number of months (0=same, 1=following) + */ + public int getFixMonthOffset(); + + /** Column name GraceDays */ + public static final String COLUMNNAME_GraceDays = "GraceDays"; + + /** Set Grace Days. + * Days after due date to send first dunning letter + */ + public void setGraceDays (int GraceDays); + + /** Get Grace Days. + * Days after due date to send first dunning letter + */ + public int getGraceDays(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsDueFixed */ + public static final String COLUMNNAME_IsDueFixed = "IsDueFixed"; + + /** Set Fixed due date. + * Payment is due on a fixed date + */ + public void setIsDueFixed (boolean IsDueFixed); + + /** Get Fixed due date. + * Payment is due on a fixed date + */ + public boolean isDueFixed(); + + /** Column name IsNextBusinessDay */ + public static final String COLUMNNAME_IsNextBusinessDay = "IsNextBusinessDay"; + + /** Set Next Business Day. + * Payment due on the next business day + */ + public void setIsNextBusinessDay (boolean IsNextBusinessDay); + + /** Get Next Business Day. + * Payment due on the next business day + */ + public boolean isNextBusinessDay(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name NetDay */ + public static final String COLUMNNAME_NetDay = "NetDay"; + + /** Set Net Day. + * Day when payment is due net + */ + public void setNetDay (String NetDay); + + /** Get Net Day. + * Day when payment is due net + */ + public String getNetDay(); + + /** Column name NetDays */ + public static final String COLUMNNAME_NetDays = "NetDays"; + + /** Set Net Days. + * Net Days in which payment is due + */ + public void setNetDays (int NetDays); + + /** Get Net Days. + * Net Days in which payment is due + */ + public int getNetDays(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_Period.java b/base/src/org/compiere/model/I_C_Period.java new file mode 100644 index 0000000000..87cc9155f4 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Period.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Period + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.203 + */ + public interface I_C_Period +{ + + /** TableName=C_Period */ + public static final String Table_Name = "C_Period"; + + /** AD_Table_ID=145 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + /** Column name C_Year_ID */ + public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; + + /** Set Year. + * Calendar Year + */ + public void setC_Year_ID (int C_Year_ID); + + /** Get Year. + * Calendar Year + */ + public int getC_Year_ID(); + + public I_C_Year getI_C_Year() throws Exception; + + /** Column name EndDate */ + public static final String COLUMNNAME_EndDate = "EndDate"; + + /** Set End Date. + * Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate); + + /** Get End Date. + * Last effective date (inclusive) + */ + public Timestamp getEndDate(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PeriodNo */ + public static final String COLUMNNAME_PeriodNo = "PeriodNo"; + + /** Set Period No. + * Unique Period Number + */ + public void setPeriodNo (int PeriodNo); + + /** Get Period No. + * Unique Period Number + */ + public int getPeriodNo(); + + /** Column name PeriodType */ + public static final String COLUMNNAME_PeriodType = "PeriodType"; + + /** Set Period Type. + * Period Type + */ + public void setPeriodType (String PeriodType); + + /** Get Period Type. + * Period Type + */ + public String getPeriodType(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); +} diff --git a/base/src/org/compiere/model/I_C_PeriodControl.java b/base/src/org/compiere/model/I_C_PeriodControl.java new file mode 100644 index 0000000000..e2859007a3 --- /dev/null +++ b/base/src/org/compiere/model/I_C_PeriodControl.java @@ -0,0 +1,132 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_PeriodControl + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.281 + */ + public interface I_C_PeriodControl +{ + + /** TableName=C_PeriodControl */ + public static final String Table_Name = "C_PeriodControl"; + + /** AD_Table_ID=229 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_PeriodControl_ID */ + public static final String COLUMNNAME_C_PeriodControl_ID = "C_PeriodControl_ID"; + + /** Set Period Control */ + public void setC_PeriodControl_ID (int C_PeriodControl_ID); + + /** Get Period Control */ + public int getC_PeriodControl_ID(); + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getI_C_Period() throws Exception; + + /** Column name DocBaseType */ + public static final String COLUMNNAME_DocBaseType = "DocBaseType"; + + /** Set Document BaseType. + * Logical type of document + */ + public void setDocBaseType (String DocBaseType); + + /** Get Document BaseType. + * Logical type of document + */ + public String getDocBaseType(); + + /** Column name PeriodAction */ + public static final String COLUMNNAME_PeriodAction = "PeriodAction"; + + /** Set Period Action. + * Action taken for this period + */ + public void setPeriodAction (String PeriodAction); + + /** Get Period Action. + * Action taken for this period + */ + public String getPeriodAction(); + + /** Column name PeriodStatus */ + public static final String COLUMNNAME_PeriodStatus = "PeriodStatus"; + + /** Set Period Status. + * Current state of this period + */ + public void setPeriodStatus (String PeriodStatus); + + /** Get Period Status. + * Current state of this period + */ + public String getPeriodStatus(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_Phase.java b/base/src/org/compiere/model/I_C_Phase.java new file mode 100644 index 0000000000..921594420d --- /dev/null +++ b/base/src/org/compiere/model/I_C_Phase.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Phase + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.312 + */ + public interface I_C_Phase +{ + + /** TableName=C_Phase */ + public static final String Table_Name = "C_Phase"; + + /** AD_Table_ID=577 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Phase_ID */ + public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; + + /** Set Standard Phase. + * Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID); + + /** Get Standard Phase. + * Standard Phase of the Project Type + */ + public int getC_Phase_ID(); + + /** Column name C_ProjectType_ID */ + public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; + + /** Set Project Type. + * Type of the project + */ + public void setC_ProjectType_ID (int C_ProjectType_ID); + + /** Get Project Type. + * Type of the project + */ + public int getC_ProjectType_ID(); + + public I_C_ProjectType getI_C_ProjectType() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name StandardQty */ + public static final String COLUMNNAME_StandardQty = "StandardQty"; + + /** Set Standard Quantity. + * Standard Quantity + */ + public void setStandardQty (BigDecimal StandardQty); + + /** Get Standard Quantity. + * Standard Quantity + */ + public BigDecimal getStandardQty(); +} diff --git a/base/src/org/compiere/model/I_C_Project.java b/base/src/org/compiere/model/I_C_Project.java new file mode 100644 index 0000000000..da29b56ef2 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Project.java @@ -0,0 +1,566 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Project + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.328 + */ + public interface I_C_Project +{ + + /** TableName=C_Project */ + public static final String Table_Name = "C_Project"; + + /** AD_Table_ID=203 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_BPartnerSR_ID */ + public static final String COLUMNNAME_C_BPartnerSR_ID = "C_BPartnerSR_ID"; + + /** Set BPartner (Agent). + * Business Partner (Agent or Sales Rep) + */ + public void setC_BPartnerSR_ID (int C_BPartnerSR_ID); + + /** Get BPartner (Agent). + * Business Partner (Agent or Sales Rep) + */ + public int getC_BPartnerSR_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Phase_ID */ + public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; + + /** Set Standard Phase. + * Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID); + + /** Get Standard Phase. + * Standard Phase of the Project Type + */ + public int getC_Phase_ID(); + + public I_C_Phase getI_C_Phase() throws Exception; + + /** Column name C_ProjectType_ID */ + public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; + + /** Set Project Type. + * Type of the project + */ + public void setC_ProjectType_ID (String C_ProjectType_ID); + + /** Get Project Type. + * Type of the project + */ + public String getC_ProjectType_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name CommittedAmt */ + public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; + + /** Set Committed Amount. + * The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt); + + /** Get Committed Amount. + * The (legal) commitment amount + */ + public BigDecimal getCommittedAmt(); + + /** Column name CommittedQty */ + public static final String COLUMNNAME_CommittedQty = "CommittedQty"; + + /** Set Committed Quantity. + * The (legal) commitment Quantity + */ + public void setCommittedQty (BigDecimal CommittedQty); + + /** Get Committed Quantity. + * The (legal) commitment Quantity + */ + public BigDecimal getCommittedQty(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name DateContract */ + public static final String COLUMNNAME_DateContract = "DateContract"; + + /** Set Contract Date. + * The (planned) effective date of this document. + */ + public void setDateContract (Timestamp DateContract); + + /** Get Contract Date. + * The (planned) effective date of this document. + */ + public Timestamp getDateContract(); + + /** Column name DateFinish */ + public static final String COLUMNNAME_DateFinish = "DateFinish"; + + /** Set Finish Date. + * Finish or (planned) completion date + */ + public void setDateFinish (Timestamp DateFinish); + + /** Get Finish Date. + * Finish or (planned) completion date + */ + public Timestamp getDateFinish(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GenerateTo */ + public static final String COLUMNNAME_GenerateTo = "GenerateTo"; + + /** Set Generate To. + * Generate To + */ + public void setGenerateTo (String GenerateTo); + + /** Get Generate To. + * Generate To + */ + public String getGenerateTo(); + + /** Column name InvoicedAmt */ + public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; + + /** Set Invoiced Amount. + * The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt); + + /** Get Invoiced Amount. + * The amount invoiced + */ + public BigDecimal getInvoicedAmt(); + + /** Column name InvoicedQty */ + public static final String COLUMNNAME_InvoicedQty = "InvoicedQty"; + + /** Set Quantity Invoiced . + * The quantity invoiced + */ + public void setInvoicedQty (BigDecimal InvoicedQty); + + /** Get Quantity Invoiced . + * The quantity invoiced + */ + public BigDecimal getInvoicedQty(); + + /** Column name IsCommitCeiling */ + public static final String COLUMNNAME_IsCommitCeiling = "IsCommitCeiling"; + + /** Set Commitment is Ceiling. + * The commitment amount/quantity is the chargeable ceiling + */ + public void setIsCommitCeiling (boolean IsCommitCeiling); + + /** Get Commitment is Ceiling. + * The commitment amount/quantity is the chargeable ceiling + */ + public boolean isCommitCeiling(); + + /** Column name IsCommitment */ + public static final String COLUMNNAME_IsCommitment = "IsCommitment"; + + /** Set Commitment. + * Is this document a (legal) commitment? + */ + public void setIsCommitment (boolean IsCommitment); + + /** Get Commitment. + * Is this document a (legal) commitment? + */ + public boolean isCommitment(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name M_PriceList_Version_ID */ + public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; + + /** Set Price List Version. + * Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID); + + /** Get Price List Version. + * Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID(); + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PlannedAmt */ + public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; + + /** Set Planned Amount. + * Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt); + + /** Get Planned Amount. + * Planned amount for this project + */ + public BigDecimal getPlannedAmt(); + + /** Column name PlannedMarginAmt */ + public static final String COLUMNNAME_PlannedMarginAmt = "PlannedMarginAmt"; + + /** Set Planned Margin. + * Project's planned margin amount + */ + public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt); + + /** Get Planned Margin. + * Project's planned margin amount + */ + public BigDecimal getPlannedMarginAmt(); + + /** Column name PlannedQty */ + public static final String COLUMNNAME_PlannedQty = "PlannedQty"; + + /** Set Planned Quantity. + * Planned quantity for this project + */ + public void setPlannedQty (BigDecimal PlannedQty); + + /** Get Planned Quantity. + * Planned quantity for this project + */ + public BigDecimal getPlannedQty(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProjInvoiceRule */ + public static final String COLUMNNAME_ProjInvoiceRule = "ProjInvoiceRule"; + + /** Set Invoice Rule. + * Invoice Rule for the project + */ + public void setProjInvoiceRule (String ProjInvoiceRule); + + /** Get Invoice Rule. + * Invoice Rule for the project + */ + public String getProjInvoiceRule(); + + /** Column name ProjectBalanceAmt */ + public static final String COLUMNNAME_ProjectBalanceAmt = "ProjectBalanceAmt"; + + /** Set Project Balance. + * Total Project Balance + */ + public void setProjectBalanceAmt (BigDecimal ProjectBalanceAmt); + + /** Get Project Balance. + * Total Project Balance + */ + public BigDecimal getProjectBalanceAmt(); + + /** Column name ProjectCategory */ + public static final String COLUMNNAME_ProjectCategory = "ProjectCategory"; + + /** Set Project Category. + * Project Category + */ + public void setProjectCategory (String ProjectCategory); + + /** Get Project Category. + * Project Category + */ + public String getProjectCategory(); + + /** Column name ProjectLineLevel */ + public static final String COLUMNNAME_ProjectLineLevel = "ProjectLineLevel"; + + /** Set Line Level. + * Project Line Level + */ + public void setProjectLineLevel (String ProjectLineLevel); + + /** Get Line Level. + * Project Line Level + */ + public String getProjectLineLevel(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_ProjectIssue.java b/base/src/org/compiere/model/I_C_ProjectIssue.java new file mode 100644 index 0000000000..1f564203ef --- /dev/null +++ b/base/src/org/compiere/model/I_C_ProjectIssue.java @@ -0,0 +1,240 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ProjectIssue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.453 + */ + public interface I_C_ProjectIssue +{ + + /** TableName=C_ProjectIssue */ + public static final String Table_Name = "C_ProjectIssue"; + + /** AD_Table_ID=623 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name S_TimeExpenseLine_ID */ + public static final String COLUMNNAME_S_TimeExpenseLine_ID = "S_TimeExpenseLine_ID"; + + /** Set Expense Line. + * Time and Expense Report Line + */ + public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID); + + /** Get Expense Line. + * Time and Expense Report Line + */ + public int getS_TimeExpenseLine_ID(); +} diff --git a/base/src/org/compiere/model/I_C_ProjectIssueMA.java b/base/src/org/compiere/model/I_C_ProjectIssueMA.java new file mode 100644 index 0000000000..c689ff4dea --- /dev/null +++ b/base/src/org/compiere/model/I_C_ProjectIssueMA.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ProjectIssueMA + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.468 + */ + public interface I_C_ProjectIssueMA +{ + + /** TableName=C_ProjectIssueMA */ + public static final String Table_Name = "C_ProjectIssueMA"; + + /** AD_Table_ID=761 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + public I_C_ProjectIssue getI_C_ProjectIssue() throws Exception; + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); +} diff --git a/base/src/org/compiere/model/I_C_ProjectLine.java b/base/src/org/compiere/model/I_C_ProjectLine.java new file mode 100644 index 0000000000..0668d9a10f --- /dev/null +++ b/base/src/org/compiere/model/I_C_ProjectLine.java @@ -0,0 +1,352 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ProjectLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.5 + */ + public interface I_C_ProjectLine +{ + + /** TableName=C_ProjectLine */ + public static final String Table_Name = "C_ProjectLine"; + + /** AD_Table_ID=434 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_OrderPO_ID */ + public static final String COLUMNNAME_C_OrderPO_ID = "C_OrderPO_ID"; + + /** Set Purchase Order. + * Purchase Order + */ + public void setC_OrderPO_ID (int C_OrderPO_ID); + + /** Get Purchase Order. + * Purchase Order + */ + public int getC_OrderPO_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + public I_C_ProjectIssue getI_C_ProjectIssue() throws Exception; + + /** Column name C_ProjectLine_ID */ + public static final String COLUMNNAME_C_ProjectLine_ID = "C_ProjectLine_ID"; + + /** Set Project Line. + * Task or step in a project + */ + public void setC_ProjectLine_ID (int C_ProjectLine_ID); + + /** Get Project Line. + * Task or step in a project + */ + public int getC_ProjectLine_ID(); + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name CommittedAmt */ + public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; + + /** Set Committed Amount. + * The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt); + + /** Get Committed Amount. + * The (legal) commitment amount + */ + public BigDecimal getCommittedAmt(); + + /** Column name CommittedQty */ + public static final String COLUMNNAME_CommittedQty = "CommittedQty"; + + /** Set Committed Quantity. + * The (legal) commitment Quantity + */ + public void setCommittedQty (BigDecimal CommittedQty); + + /** Get Committed Quantity. + * The (legal) commitment Quantity + */ + public BigDecimal getCommittedQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DoPricing */ + public static final String COLUMNNAME_DoPricing = "DoPricing"; + + /** Set Pricing */ + public void setDoPricing (String DoPricing); + + /** Get Pricing */ + public String getDoPricing(); + + /** Column name InvoicedAmt */ + public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; + + /** Set Invoiced Amount. + * The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt); + + /** Get Invoiced Amount. + * The amount invoiced + */ + public BigDecimal getInvoicedAmt(); + + /** Column name InvoicedQty */ + public static final String COLUMNNAME_InvoicedQty = "InvoicedQty"; + + /** Set Quantity Invoiced . + * The quantity invoiced + */ + public void setInvoicedQty (BigDecimal InvoicedQty); + + /** Get Quantity Invoiced . + * The quantity invoiced + */ + public BigDecimal getInvoicedQty(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name PlannedAmt */ + public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; + + /** Set Planned Amount. + * Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt); + + /** Get Planned Amount. + * Planned amount for this project + */ + public BigDecimal getPlannedAmt(); + + /** Column name PlannedMarginAmt */ + public static final String COLUMNNAME_PlannedMarginAmt = "PlannedMarginAmt"; + + /** Set Planned Margin. + * Project's planned margin amount + */ + public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt); + + /** Get Planned Margin. + * Project's planned margin amount + */ + public BigDecimal getPlannedMarginAmt(); + + /** Column name PlannedPrice */ + public static final String COLUMNNAME_PlannedPrice = "PlannedPrice"; + + /** Set Planned Price. + * Planned price for this project line + */ + public void setPlannedPrice (BigDecimal PlannedPrice); + + /** Get Planned Price. + * Planned price for this project line + */ + public BigDecimal getPlannedPrice(); + + /** Column name PlannedQty */ + public static final String COLUMNNAME_PlannedQty = "PlannedQty"; + + /** Set Planned Quantity. + * Planned quantity for this project + */ + public void setPlannedQty (BigDecimal PlannedQty); + + /** Get Planned Quantity. + * Planned quantity for this project + */ + public BigDecimal getPlannedQty(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); +} diff --git a/base/src/org/compiere/model/I_C_ProjectPhase.java b/base/src/org/compiere/model/I_C_ProjectPhase.java new file mode 100644 index 0000000000..22ef4b8be3 --- /dev/null +++ b/base/src/org/compiere/model/I_C_ProjectPhase.java @@ -0,0 +1,313 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ProjectPhase + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.593 + */ + public interface I_C_ProjectPhase +{ + + /** TableName=C_ProjectPhase */ + public static final String Table_Name = "C_ProjectPhase"; + + /** AD_Table_ID=576 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Phase_ID */ + public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; + + /** Set Standard Phase. + * Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID); + + /** Get Standard Phase. + * Standard Phase of the Project Type + */ + public int getC_Phase_ID(); + + public I_C_Phase getI_C_Phase() throws Exception; + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name CommittedAmt */ + public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; + + /** Set Committed Amount. + * The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt); + + /** Get Committed Amount. + * The (legal) commitment amount + */ + public BigDecimal getCommittedAmt(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EndDate */ + public static final String COLUMNNAME_EndDate = "EndDate"; + + /** Set End Date. + * Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate); + + /** Get End Date. + * Last effective date (inclusive) + */ + public Timestamp getEndDate(); + + /** Column name GenerateOrder */ + public static final String COLUMNNAME_GenerateOrder = "GenerateOrder"; + + /** Set Generate Order. + * Generate Order + */ + public void setGenerateOrder (String GenerateOrder); + + /** Get Generate Order. + * Generate Order + */ + public String getGenerateOrder(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsCommitCeiling */ + public static final String COLUMNNAME_IsCommitCeiling = "IsCommitCeiling"; + + /** Set Commitment is Ceiling. + * The commitment amount/quantity is the chargeable ceiling + */ + public void setIsCommitCeiling (boolean IsCommitCeiling); + + /** Get Commitment is Ceiling. + * The commitment amount/quantity is the chargeable ceiling + */ + public boolean isCommitCeiling(); + + /** Column name IsComplete */ + public static final String COLUMNNAME_IsComplete = "IsComplete"; + + /** Set Complete. + * It is complete + */ + public void setIsComplete (boolean IsComplete); + + /** Get Complete. + * It is complete + */ + public boolean isComplete(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PlannedAmt */ + public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; + + /** Set Planned Amount. + * Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt); + + /** Get Planned Amount. + * Planned amount for this project + */ + public BigDecimal getPlannedAmt(); + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name ProjInvoiceRule */ + public static final String COLUMNNAME_ProjInvoiceRule = "ProjInvoiceRule"; + + /** Set Invoice Rule. + * Invoice Rule for the project + */ + public void setProjInvoiceRule (String ProjInvoiceRule); + + /** Get Invoice Rule. + * Invoice Rule for the project + */ + public String getProjInvoiceRule(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); +} diff --git a/base/src/org/compiere/model/I_C_ProjectTask.java b/base/src/org/compiere/model/I_C_ProjectTask.java new file mode 100644 index 0000000000..4607b3725f --- /dev/null +++ b/base/src/org/compiere/model/I_C_ProjectTask.java @@ -0,0 +1,222 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ProjectTask + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.656 + */ + public interface I_C_ProjectTask +{ + + /** TableName=C_ProjectTask */ + public static final String Table_Name = "C_ProjectTask"; + + /** AD_Table_ID=584 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + /** Column name C_Task_ID */ + public static final String COLUMNNAME_C_Task_ID = "C_Task_ID"; + + /** Set Standard Task. + * Standard Project Type Task + */ + public void setC_Task_ID (int C_Task_ID); + + /** Get Standard Task. + * Standard Project Type Task + */ + public int getC_Task_ID(); + + public I_C_Task getI_C_Task() throws Exception; + + /** Column name CommittedAmt */ + public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; + + /** Set Committed Amount. + * The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt); + + /** Get Committed Amount. + * The (legal) commitment amount + */ + public BigDecimal getCommittedAmt(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PlannedAmt */ + public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; + + /** Set Planned Amount. + * Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt); + + /** Get Planned Amount. + * Planned amount for this project + */ + public BigDecimal getPlannedAmt(); + + /** Column name ProjInvoiceRule */ + public static final String COLUMNNAME_ProjInvoiceRule = "ProjInvoiceRule"; + + /** Set Invoice Rule. + * Invoice Rule for the project + */ + public void setProjInvoiceRule (String ProjInvoiceRule); + + /** Get Invoice Rule. + * Invoice Rule for the project + */ + public String getProjInvoiceRule(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_C_ProjectType.java b/base/src/org/compiere/model/I_C_ProjectType.java new file mode 100644 index 0000000000..1c8415c6a4 --- /dev/null +++ b/base/src/org/compiere/model/I_C_ProjectType.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ProjectType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.765 + */ + public interface I_C_ProjectType +{ + + /** TableName=C_ProjectType */ + public static final String Table_Name = "C_ProjectType"; + + /** AD_Table_ID=575 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_ProjectType_ID */ + public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; + + /** Set Project Type. + * Type of the project + */ + public void setC_ProjectType_ID (int C_ProjectType_ID); + + /** Get Project Type. + * Type of the project + */ + public int getC_ProjectType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ProjectCategory */ + public static final String COLUMNNAME_ProjectCategory = "ProjectCategory"; + + /** Set Project Category. + * Project Category + */ + public void setProjectCategory (String ProjectCategory); + + /** Get Project Category. + * Project Category + */ + public String getProjectCategory(); +} diff --git a/base/src/org/compiere/model/I_C_Project_Acct.java b/base/src/org/compiere/model/I_C_Project_Acct.java new file mode 100644 index 0000000000..f6cb63882b --- /dev/null +++ b/base/src/org/compiere/model/I_C_Project_Acct.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Project_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.796 + */ + public interface I_C_Project_Acct +{ + + /** TableName=C_Project_Acct */ + public static final String Table_Name = "C_Project_Acct"; + + /** AD_Table_ID=204 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name PJ_Asset_Acct */ + public static final String COLUMNNAME_PJ_Asset_Acct = "PJ_Asset_Acct"; + + /** Set Project Asset. + * Project Asset Account + */ + public void setPJ_Asset_Acct (int PJ_Asset_Acct); + + /** Get Project Asset. + * Project Asset Account + */ + public int getPJ_Asset_Acct(); + + /** Column name PJ_WIP_Acct */ + public static final String COLUMNNAME_PJ_WIP_Acct = "PJ_WIP_Acct"; + + /** Set Work In Progress. + * Account for Work in Progress + */ + public void setPJ_WIP_Acct (int PJ_WIP_Acct); + + /** Get Work In Progress. + * Account for Work in Progress + */ + public int getPJ_WIP_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_Recurring.java b/base/src/org/compiere/model/I_C_Recurring.java new file mode 100644 index 0000000000..0fd7da813e --- /dev/null +++ b/base/src/org/compiere/model/I_C_Recurring.java @@ -0,0 +1,277 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Recurring + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.875 + */ + public interface I_C_Recurring +{ + + /** TableName=C_Recurring */ + public static final String Table_Name = "C_Recurring"; + + /** AD_Table_ID=574 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_Recurring_ID */ + public static final String COLUMNNAME_C_Recurring_ID = "C_Recurring_ID"; + + /** Set Recurring. + * Recurring Document + */ + public void setC_Recurring_ID (int C_Recurring_ID); + + /** Get Recurring. + * Recurring Document + */ + public int getC_Recurring_ID(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name RecurringType */ + public static final String COLUMNNAME_RecurringType = "RecurringType"; + + /** Set Recurring Type. + * Type of Recurring Document + */ + public void setRecurringType (String RecurringType); + + /** Get Recurring Type. + * Type of Recurring Document + */ + public String getRecurringType(); + + /** Column name RunsMax */ + public static final String COLUMNNAME_RunsMax = "RunsMax"; + + /** Set Maximum Runs. + * Number of recurring runs + */ + public void setRunsMax (int RunsMax); + + /** Get Maximum Runs. + * Number of recurring runs + */ + public int getRunsMax(); + + /** Column name RunsRemaining */ + public static final String COLUMNNAME_RunsRemaining = "RunsRemaining"; + + /** Set Remaining Runs. + * Number of recurring runs remaining + */ + public void setRunsRemaining (int RunsRemaining); + + /** Get Remaining Runs. + * Number of recurring runs remaining + */ + public int getRunsRemaining(); +} diff --git a/base/src/org/compiere/model/I_C_Recurring_Run.java b/base/src/org/compiere/model/I_C_Recurring_Run.java new file mode 100644 index 0000000000..d894ff8476 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Recurring_Run.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Recurring_Run + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.89 + */ + public interface I_C_Recurring_Run +{ + + /** TableName=C_Recurring_Run */ + public static final String Table_Name = "C_Recurring_Run"; + + /** AD_Table_ID=573 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_Recurring_ID */ + public static final String COLUMNNAME_C_Recurring_ID = "C_Recurring_ID"; + + /** Set Recurring. + * Recurring Document + */ + public void setC_Recurring_ID (int C_Recurring_ID); + + /** Get Recurring. + * Recurring Document + */ + public int getC_Recurring_ID(); + + public I_C_Recurring getI_C_Recurring() throws Exception; + + /** Column name C_Recurring_Run_ID */ + public static final String COLUMNNAME_C_Recurring_Run_ID = "C_Recurring_Run_ID"; + + /** Set Recurring Run. + * Recurring Document Run + */ + public void setC_Recurring_Run_ID (int C_Recurring_Run_ID); + + /** Get Recurring Run. + * Recurring Document Run + */ + public int getC_Recurring_Run_ID(); + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); +} diff --git a/base/src/org/compiere/model/I_C_Region.java b/base/src/org/compiere/model/I_C_Region.java new file mode 100644 index 0000000000..1417b3c1fe --- /dev/null +++ b/base/src/org/compiere/model/I_C_Region.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Region + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:43.984 + */ + public interface I_C_Region +{ + + /** TableName=C_Region */ + public static final String Table_Name = "C_Region"; + + /** AD_Table_ID=164 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_Remuneration.java b/base/src/org/compiere/model/I_C_Remuneration.java new file mode 100644 index 0000000000..21c79d4667 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Remuneration.java @@ -0,0 +1,190 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Remuneration + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.093 + */ + public interface I_C_Remuneration +{ + + /** TableName=C_Remuneration */ + public static final String Table_Name = "C_Remuneration"; + + /** AD_Table_ID=792 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Remuneration_ID */ + public static final String COLUMNNAME_C_Remuneration_ID = "C_Remuneration_ID"; + + /** Set Remuneration. + * Wage or Salary + */ + public void setC_Remuneration_ID (int C_Remuneration_ID); + + /** Get Remuneration. + * Wage or Salary + */ + public int getC_Remuneration_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GrossRAmt */ + public static final String COLUMNNAME_GrossRAmt = "GrossRAmt"; + + /** Set Gross Amount. + * Gross Remuneration Amount + */ + public void setGrossRAmt (BigDecimal GrossRAmt); + + /** Get Gross Amount. + * Gross Remuneration Amount + */ + public BigDecimal getGrossRAmt(); + + /** Column name GrossRCost */ + public static final String COLUMNNAME_GrossRCost = "GrossRCost"; + + /** Set Gross Cost. + * Gross Remuneration Costs + */ + public void setGrossRCost (BigDecimal GrossRCost); + + /** Get Gross Cost. + * Gross Remuneration Costs + */ + public BigDecimal getGrossRCost(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OvertimeAmt */ + public static final String COLUMNNAME_OvertimeAmt = "OvertimeAmt"; + + /** Set Overtime Amount. + * Hourly Overtime Rate + */ + public void setOvertimeAmt (BigDecimal OvertimeAmt); + + /** Get Overtime Amount. + * Hourly Overtime Rate + */ + public BigDecimal getOvertimeAmt(); + + /** Column name OvertimeCost */ + public static final String COLUMNNAME_OvertimeCost = "OvertimeCost"; + + /** Set Overtime Cost. + * Hourly Overtime Cost + */ + public void setOvertimeCost (BigDecimal OvertimeCost); + + /** Get Overtime Cost. + * Hourly Overtime Cost + */ + public BigDecimal getOvertimeCost(); + + /** Column name RemunerationType */ + public static final String COLUMNNAME_RemunerationType = "RemunerationType"; + + /** Set Remuneration Type. + * Type of Remuneration + */ + public void setRemunerationType (String RemunerationType); + + /** Get Remuneration Type. + * Type of Remuneration + */ + public String getRemunerationType(); + + /** Column name StandardHours */ + public static final String COLUMNNAME_StandardHours = "StandardHours"; + + /** Set Standard Hours. + * Standard Work Hours based on Remuneration Type + */ + public void setStandardHours (int StandardHours); + + /** Get Standard Hours. + * Standard Work Hours based on Remuneration Type + */ + public int getStandardHours(); +} diff --git a/base/src/org/compiere/model/I_C_RevenueRecognition.java b/base/src/org/compiere/model/I_C_RevenueRecognition.java new file mode 100644 index 0000000000..6ab66f5b82 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RevenueRecognition.java @@ -0,0 +1,130 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RevenueRecognition + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.125 + */ + public interface I_C_RevenueRecognition +{ + + /** TableName=C_RevenueRecognition */ + public static final String Table_Name = "C_RevenueRecognition"; + + /** AD_Table_ID=336 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_RevenueRecognition_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; + + /** Set Revenue Recognition. + * Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID); + + /** Get Revenue Recognition. + * Method for recording revenue + */ + public int getC_RevenueRecognition_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsTimeBased */ + public static final String COLUMNNAME_IsTimeBased = "IsTimeBased"; + + /** Set Time based. + * Time based Revenue Recognition rather than Service Level based + */ + public void setIsTimeBased (boolean IsTimeBased); + + /** Get Time based. + * Time based Revenue Recognition rather than Service Level based + */ + public boolean isTimeBased(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name NoMonths */ + public static final String COLUMNNAME_NoMonths = "NoMonths"; + + /** Set Number of Months */ + public void setNoMonths (int NoMonths); + + /** Get Number of Months */ + public int getNoMonths(); + + /** Column name RecognitionFrequency */ + public static final String COLUMNNAME_RecognitionFrequency = "RecognitionFrequency"; + + /** Set Recognition frequency */ + public void setRecognitionFrequency (String RecognitionFrequency); + + /** Get Recognition frequency */ + public String getRecognitionFrequency(); +} diff --git a/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java b/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java new file mode 100644 index 0000000000..c261070a36 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RevenueRecognition_Plan.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RevenueRecognition_Plan + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.14 + */ + public interface I_C_RevenueRecognition_Plan +{ + + /** TableName=C_RevenueRecognition_Plan */ + public static final String Table_Name = "C_RevenueRecognition_Plan"; + + /** AD_Table_ID=443 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_RevenueRecognition_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; + + /** Set Revenue Recognition. + * Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID); + + /** Get Revenue Recognition. + * Method for recording revenue + */ + public int getC_RevenueRecognition_ID(); + + public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception; + + /** Column name C_RevenueRecognition_Plan_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_Plan_ID = "C_RevenueRecognition_Plan_ID"; + + /** Set Revenue Recognition Plan. + * Plan for recognizing or recording revenue + */ + public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID); + + /** Get Revenue Recognition Plan. + * Plan for recognizing or recording revenue + */ + public int getC_RevenueRecognition_Plan_ID(); + + /** Column name P_Revenue_Acct */ + public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; + + /** Set Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct); + + /** Get Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct(); + + /** Column name RecognizedAmt */ + public static final String COLUMNNAME_RecognizedAmt = "RecognizedAmt"; + + /** Set Recognized Amount */ + public void setRecognizedAmt (BigDecimal RecognizedAmt); + + /** Get Recognized Amount */ + public BigDecimal getRecognizedAmt(); + + /** Column name TotalAmt */ + public static final String COLUMNNAME_TotalAmt = "TotalAmt"; + + /** Set Total Amount. + * Total Amount + */ + public void setTotalAmt (BigDecimal TotalAmt); + + /** Get Total Amount. + * Total Amount + */ + public BigDecimal getTotalAmt(); + + /** Column name UnEarnedRevenue_Acct */ + public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; + + /** Set Unearned Revenue. + * Account for unearned revenue + */ + public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct); + + /** Get Unearned Revenue. + * Account for unearned revenue + */ + public int getUnEarnedRevenue_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_RevenueRecognition_Run.java b/base/src/org/compiere/model/I_C_RevenueRecognition_Run.java new file mode 100644 index 0000000000..6990381004 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RevenueRecognition_Run.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RevenueRecognition_Run + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.171 + */ + public interface I_C_RevenueRecognition_Run +{ + + /** TableName=C_RevenueRecognition_Run */ + public static final String Table_Name = "C_RevenueRecognition_Run"; + + /** AD_Table_ID=444 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_RevenueRecognition_Plan_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_Plan_ID = "C_RevenueRecognition_Plan_ID"; + + /** Set Revenue Recognition Plan. + * Plan for recognizing or recording revenue + */ + public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID); + + /** Get Revenue Recognition Plan. + * Plan for recognizing or recording revenue + */ + public int getC_RevenueRecognition_Plan_ID(); + + public I_C_RevenueRecognition_Plan getI_C_RevenueRecognition_Plan() throws Exception; + + /** Column name C_RevenueRecognition_Run_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_Run_ID = "C_RevenueRecognition_Run_ID"; + + /** Set Revenue Recognition Run. + * Revenue Recognition Run or Process + */ + public void setC_RevenueRecognition_Run_ID (int C_RevenueRecognition_Run_ID); + + /** Get Revenue Recognition Run. + * Revenue Recognition Run or Process + */ + public int getC_RevenueRecognition_Run_ID(); + + /** Column name GL_Journal_ID */ + public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; + + /** Set Journal. + * General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID); + + /** Get Journal. + * General Ledger Journal + */ + public int getGL_Journal_ID(); + + public I_GL_Journal getI_GL_Journal() throws Exception; + + /** Column name RecognizedAmt */ + public static final String COLUMNNAME_RecognizedAmt = "RecognizedAmt"; + + /** Set Recognized Amount */ + public void setRecognizedAmt (BigDecimal RecognizedAmt); + + /** Get Recognized Amount */ + public BigDecimal getRecognizedAmt(); +} diff --git a/base/src/org/compiere/model/I_C_RfQ.java b/base/src/org/compiere/model/I_C_RfQ.java new file mode 100644 index 0000000000..1aa80aa5f3 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQ.java @@ -0,0 +1,438 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQ + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.187 + */ + public interface I_C_RfQ +{ + + /** TableName=C_RfQ */ + public static final String Table_Name = "C_RfQ"; + + /** AD_Table_ID=677 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_RfQ_ID */ + public static final String COLUMNNAME_C_RfQ_ID = "C_RfQ_ID"; + + /** Set RfQ. + * Request for Quotation + */ + public void setC_RfQ_ID (int C_RfQ_ID); + + /** Get RfQ. + * Request for Quotation + */ + public int getC_RfQ_ID(); + + /** Column name C_RfQ_Topic_ID */ + public static final String COLUMNNAME_C_RfQ_Topic_ID = "C_RfQ_Topic_ID"; + + /** Set RfQ Topic. + * Topic for Request for Quotations + */ + public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID); + + /** Get RfQ Topic. + * Topic for Request for Quotations + */ + public int getC_RfQ_Topic_ID(); + + public I_C_RfQ_Topic getI_C_RfQ_Topic() throws Exception; + + /** Column name CopyLines */ + public static final String COLUMNNAME_CopyLines = "CopyLines"; + + /** Set Copy Lines */ + public void setCopyLines (String CopyLines); + + /** Get Copy Lines */ + public String getCopyLines(); + + /** Column name CreatePO */ + public static final String COLUMNNAME_CreatePO = "CreatePO"; + + /** Set Create PO. + * Create Purchase Order + */ + public void setCreatePO (String CreatePO); + + /** Get Create PO. + * Create Purchase Order + */ + public String getCreatePO(); + + /** Column name CreateSO */ + public static final String COLUMNNAME_CreateSO = "CreateSO"; + + /** Set Create SO */ + public void setCreateSO (String CreateSO); + + /** Get Create SO */ + public String getCreateSO(); + + /** Column name DateResponse */ + public static final String COLUMNNAME_DateResponse = "DateResponse"; + + /** Set Response Date. + * Date of the Response + */ + public void setDateResponse (Timestamp DateResponse); + + /** Get Response Date. + * Date of the Response + */ + public Timestamp getDateResponse(); + + /** Column name DateWorkComplete */ + public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; + + /** Set Work Complete. + * Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete); + + /** Get Work Complete. + * Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete(); + + /** Column name DateWorkStart */ + public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; + + /** Set Work Start. + * Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart); + + /** Get Work Start. + * Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart(); + + /** Column name DeliveryDays */ + public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; + + /** Set Delivery Days. + * Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays); + + /** Get Delivery Days. + * Number of Days (planned) until Delivery + */ + public int getDeliveryDays(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsInvitedVendorsOnly */ + public static final String COLUMNNAME_IsInvitedVendorsOnly = "IsInvitedVendorsOnly"; + + /** Set Invited Vendors Only. + * Only invited vendors can respond to an RfQ + */ + public void setIsInvitedVendorsOnly (boolean IsInvitedVendorsOnly); + + /** Get Invited Vendors Only. + * Only invited vendors can respond to an RfQ + */ + public boolean isInvitedVendorsOnly(); + + /** Column name IsQuoteAllQty */ + public static final String COLUMNNAME_IsQuoteAllQty = "IsQuoteAllQty"; + + /** Set Quote All Quantities. + * Suppliers are requested to provide responses for all quantities + */ + public void setIsQuoteAllQty (boolean IsQuoteAllQty); + + /** Get Quote All Quantities. + * Suppliers are requested to provide responses for all quantities + */ + public boolean isQuoteAllQty(); + + /** Column name IsQuoteTotalAmt */ + public static final String COLUMNNAME_IsQuoteTotalAmt = "IsQuoteTotalAmt"; + + /** Set Quote Total Amt. + * The respnse can have just the total amount for the RfQ + */ + public void setIsQuoteTotalAmt (boolean IsQuoteTotalAmt); + + /** Get Quote Total Amt. + * The respnse can have just the total amount for the RfQ + */ + public boolean isQuoteTotalAmt(); + + /** Column name IsRfQResponseAccepted */ + public static final String COLUMNNAME_IsRfQResponseAccepted = "IsRfQResponseAccepted"; + + /** Set Responses Accepted. + * Are Resonses to the Request for Quotation accepted + */ + public void setIsRfQResponseAccepted (boolean IsRfQResponseAccepted); + + /** Get Responses Accepted. + * Are Resonses to the Request for Quotation accepted + */ + public boolean isRfQResponseAccepted(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Margin */ + public static final String COLUMNNAME_Margin = "Margin"; + + /** Set Margin %. + * Margin for a product as a percentage + */ + public void setMargin (BigDecimal Margin); + + /** Get Margin %. + * Margin for a product as a percentage + */ + public BigDecimal getMargin(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name PublishRfQ */ + public static final String COLUMNNAME_PublishRfQ = "PublishRfQ"; + + /** Set Publish RfQ */ + public void setPublishRfQ (String PublishRfQ); + + /** Get Publish RfQ */ + public String getPublishRfQ(); + + /** Column name QuoteType */ + public static final String COLUMNNAME_QuoteType = "QuoteType"; + + /** Set RfQ Type. + * Request for Quotation Type + */ + public void setQuoteType (String QuoteType); + + /** Get RfQ Type. + * Request for Quotation Type + */ + public String getQuoteType(); + + /** Column name RankRfQ */ + public static final String COLUMNNAME_RankRfQ = "RankRfQ"; + + /** Set Rank RfQ */ + public void setRankRfQ (String RankRfQ); + + /** Get Rank RfQ */ + public String getRankRfQ(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); +} diff --git a/base/src/org/compiere/model/I_C_RfQLine.java b/base/src/org/compiere/model/I_C_RfQLine.java new file mode 100644 index 0000000000..3938f28122 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQLine.java @@ -0,0 +1,192 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.296 + */ + public interface I_C_RfQLine +{ + + /** TableName=C_RfQLine */ + public static final String Table_Name = "C_RfQLine"; + + /** AD_Table_ID=676 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_RfQLine_ID */ + public static final String COLUMNNAME_C_RfQLine_ID = "C_RfQLine_ID"; + + /** Set RfQ Line. + * Request for Quotation Line + */ + public void setC_RfQLine_ID (int C_RfQLine_ID); + + /** Get RfQ Line. + * Request for Quotation Line + */ + public int getC_RfQLine_ID(); + + /** Column name C_RfQ_ID */ + public static final String COLUMNNAME_C_RfQ_ID = "C_RfQ_ID"; + + /** Set RfQ. + * Request for Quotation + */ + public void setC_RfQ_ID (int C_RfQ_ID); + + /** Get RfQ. + * Request for Quotation + */ + public int getC_RfQ_ID(); + + public I_C_RfQ getI_C_RfQ() throws Exception; + + /** Column name DateWorkComplete */ + public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; + + /** Set Work Complete. + * Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete); + + /** Get Work Complete. + * Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete(); + + /** Column name DateWorkStart */ + public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; + + /** Set Work Start. + * Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart); + + /** Get Work Start. + * Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart(); + + /** Column name DeliveryDays */ + public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; + + /** Set Delivery Days. + * Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays); + + /** Get Delivery Days. + * Number of Days (planned) until Delivery + */ + public int getDeliveryDays(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); +} diff --git a/base/src/org/compiere/model/I_C_RfQLineQty.java b/base/src/org/compiere/model/I_C_RfQLineQty.java new file mode 100644 index 0000000000..a58477f83c --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQLineQty.java @@ -0,0 +1,207 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQLineQty + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.406 + */ + public interface I_C_RfQLineQty +{ + + /** TableName=C_RfQLineQty */ + public static final String Table_Name = "C_RfQLineQty"; + + /** AD_Table_ID=675 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name BenchmarkPrice */ + public static final String COLUMNNAME_BenchmarkPrice = "BenchmarkPrice"; + + /** Set Benchmark Price. + * Price to compare responses to + */ + public void setBenchmarkPrice (BigDecimal BenchmarkPrice); + + /** Get Benchmark Price. + * Price to compare responses to + */ + public BigDecimal getBenchmarkPrice(); + + /** Column name BestResponseAmt */ + public static final String COLUMNNAME_BestResponseAmt = "BestResponseAmt"; + + /** Set Best Response Amount. + * Best Response Amount + */ + public void setBestResponseAmt (BigDecimal BestResponseAmt); + + /** Get Best Response Amount. + * Best Response Amount + */ + public BigDecimal getBestResponseAmt(); + + /** Column name C_RfQLineQty_ID */ + public static final String COLUMNNAME_C_RfQLineQty_ID = "C_RfQLineQty_ID"; + + /** Set RfQ Line Quantity. + * Request for Quotation Line Quantity + */ + public void setC_RfQLineQty_ID (int C_RfQLineQty_ID); + + /** Get RfQ Line Quantity. + * Request for Quotation Line Quantity + */ + public int getC_RfQLineQty_ID(); + + /** Column name C_RfQLine_ID */ + public static final String COLUMNNAME_C_RfQLine_ID = "C_RfQLine_ID"; + + /** Set RfQ Line. + * Request for Quotation Line + */ + public void setC_RfQLine_ID (int C_RfQLine_ID); + + /** Get RfQ Line. + * Request for Quotation Line + */ + public int getC_RfQLine_ID(); + + public I_C_RfQLine getI_C_RfQLine() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name IsOfferQty */ + public static final String COLUMNNAME_IsOfferQty = "IsOfferQty"; + + /** Set Offer Quantity. + * This quantity is used in the Offer to the Customer + */ + public void setIsOfferQty (boolean IsOfferQty); + + /** Get Offer Quantity. + * This quantity is used in the Offer to the Customer + */ + public boolean isOfferQty(); + + /** Column name IsPurchaseQty */ + public static final String COLUMNNAME_IsPurchaseQty = "IsPurchaseQty"; + + /** Set Purchase Quantity. + * This quantity is used in the Purchase Order to the Supplier + */ + public void setIsPurchaseQty (boolean IsPurchaseQty); + + /** Get Purchase Quantity. + * This quantity is used in the Purchase Order to the Supplier + */ + public boolean isPurchaseQty(); + + /** Column name IsRfQQty */ + public static final String COLUMNNAME_IsRfQQty = "IsRfQQty"; + + /** Set RfQ Quantity. + * The quantity is used when generating RfQ Responses + */ + public void setIsRfQQty (boolean IsRfQQty); + + /** Get RfQ Quantity. + * The quantity is used when generating RfQ Responses + */ + public boolean isRfQQty(); + + /** Column name Margin */ + public static final String COLUMNNAME_Margin = "Margin"; + + /** Set Margin %. + * Margin for a product as a percentage + */ + public void setMargin (BigDecimal Margin); + + /** Get Margin %. + * Margin for a product as a percentage + */ + public BigDecimal getMargin(); + + /** Column name OfferAmt */ + public static final String COLUMNNAME_OfferAmt = "OfferAmt"; + + /** Set Offer Amount. + * Amount of the Offer + */ + public void setOfferAmt (BigDecimal OfferAmt); + + /** Get Offer Amount. + * Amount of the Offer + */ + public BigDecimal getOfferAmt(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_C_RfQResponse.java b/base/src/org/compiere/model/I_C_RfQResponse.java new file mode 100644 index 0000000000..5597f52c64 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQResponse.java @@ -0,0 +1,361 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQResponse + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.421 + */ + public interface I_C_RfQResponse +{ + + /** TableName=C_RfQResponse */ + public static final String Table_Name = "C_RfQResponse"; + + /** AD_Table_ID=674 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + public I_C_Order getI_C_Order() throws Exception; + + /** Column name C_RfQResponse_ID */ + public static final String COLUMNNAME_C_RfQResponse_ID = "C_RfQResponse_ID"; + + /** Set RfQ Response. + * Request for Quotation Response from a potential Vendor + */ + public void setC_RfQResponse_ID (int C_RfQResponse_ID); + + /** Get RfQ Response. + * Request for Quotation Response from a potential Vendor + */ + public int getC_RfQResponse_ID(); + + /** Column name C_RfQ_ID */ + public static final String COLUMNNAME_C_RfQ_ID = "C_RfQ_ID"; + + /** Set RfQ. + * Request for Quotation + */ + public void setC_RfQ_ID (int C_RfQ_ID); + + /** Get RfQ. + * Request for Quotation + */ + public int getC_RfQ_ID(); + + public I_C_RfQ getI_C_RfQ() throws Exception; + + /** Column name CheckComplete */ + public static final String COLUMNNAME_CheckComplete = "CheckComplete"; + + /** Set Check Complete */ + public void setCheckComplete (String CheckComplete); + + /** Get Check Complete */ + public String getCheckComplete(); + + /** Column name DateInvited */ + public static final String COLUMNNAME_DateInvited = "DateInvited"; + + /** Set Invited. + * Date when (last) invitation was sent + */ + public void setDateInvited (Timestamp DateInvited); + + /** Get Invited. + * Date when (last) invitation was sent + */ + public Timestamp getDateInvited(); + + /** Column name DateResponse */ + public static final String COLUMNNAME_DateResponse = "DateResponse"; + + /** Set Response Date. + * Date of the Response + */ + public void setDateResponse (Timestamp DateResponse); + + /** Get Response Date. + * Date of the Response + */ + public Timestamp getDateResponse(); + + /** Column name DateWorkComplete */ + public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; + + /** Set Work Complete. + * Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete); + + /** Get Work Complete. + * Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete(); + + /** Column name DateWorkStart */ + public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; + + /** Set Work Start. + * Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart); + + /** Get Work Start. + * Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart(); + + /** Column name DeliveryDays */ + public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; + + /** Set Delivery Days. + * Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays); + + /** Get Delivery Days. + * Number of Days (planned) until Delivery + */ + public int getDeliveryDays(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsComplete */ + public static final String COLUMNNAME_IsComplete = "IsComplete"; + + /** Set Complete. + * It is complete + */ + public void setIsComplete (boolean IsComplete); + + /** Get Complete. + * It is complete + */ + public boolean isComplete(); + + /** Column name IsSelectedWinner */ + public static final String COLUMNNAME_IsSelectedWinner = "IsSelectedWinner"; + + /** Set Selected Winner. + * The resonse is the selected winner + */ + public void setIsSelectedWinner (boolean IsSelectedWinner); + + /** Get Selected Winner. + * The resonse is the selected winner + */ + public boolean isSelectedWinner(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Price */ + public static final String COLUMNNAME_Price = "Price"; + + /** Set Price. + * Price + */ + public void setPrice (BigDecimal Price); + + /** Get Price. + * Price + */ + public BigDecimal getPrice(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ranking */ + public static final String COLUMNNAME_Ranking = "Ranking"; + + /** Set Ranking. + * Relative Rank Number + */ + public void setRanking (int Ranking); + + /** Get Ranking. + * Relative Rank Number + */ + public int getRanking(); +} diff --git a/base/src/org/compiere/model/I_C_RfQResponseLine.java b/base/src/org/compiere/model/I_C_RfQResponseLine.java new file mode 100644 index 0000000000..267ea5b13d --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQResponseLine.java @@ -0,0 +1,194 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQResponseLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:44.656 + */ + public interface I_C_RfQResponseLine +{ + + /** TableName=C_RfQResponseLine */ + public static final String Table_Name = "C_RfQResponseLine"; + + /** AD_Table_ID=673 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_RfQLine_ID */ + public static final String COLUMNNAME_C_RfQLine_ID = "C_RfQLine_ID"; + + /** Set RfQ Line. + * Request for Quotation Line + */ + public void setC_RfQLine_ID (int C_RfQLine_ID); + + /** Get RfQ Line. + * Request for Quotation Line + */ + public int getC_RfQLine_ID(); + + public I_C_RfQLine getI_C_RfQLine() throws Exception; + + /** Column name C_RfQResponseLine_ID */ + public static final String COLUMNNAME_C_RfQResponseLine_ID = "C_RfQResponseLine_ID"; + + /** Set RfQ Response Line. + * Request for Quotation Response Line + */ + public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID); + + /** Get RfQ Response Line. + * Request for Quotation Response Line + */ + public int getC_RfQResponseLine_ID(); + + /** Column name C_RfQResponse_ID */ + public static final String COLUMNNAME_C_RfQResponse_ID = "C_RfQResponse_ID"; + + /** Set RfQ Response. + * Request for Quotation Response from a potential Vendor + */ + public void setC_RfQResponse_ID (int C_RfQResponse_ID); + + /** Get RfQ Response. + * Request for Quotation Response from a potential Vendor + */ + public int getC_RfQResponse_ID(); + + public I_C_RfQResponse getI_C_RfQResponse() throws Exception; + + /** Column name DateWorkComplete */ + public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; + + /** Set Work Complete. + * Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete); + + /** Get Work Complete. + * Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete(); + + /** Column name DateWorkStart */ + public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; + + /** Set Work Start. + * Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart); + + /** Get Work Start. + * Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart(); + + /** Column name DeliveryDays */ + public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; + + /** Set Delivery Days. + * Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays); + + /** Get Delivery Days. + * Number of Days (planned) until Delivery + */ + public int getDeliveryDays(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsSelectedWinner */ + public static final String COLUMNNAME_IsSelectedWinner = "IsSelectedWinner"; + + /** Set Selected Winner. + * The resonse is the selected winner + */ + public void setIsSelectedWinner (boolean IsSelectedWinner); + + /** Get Selected Winner. + * The resonse is the selected winner + */ + public boolean isSelectedWinner(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); +} diff --git a/base/src/org/compiere/model/I_C_RfQResponseLineQty.java b/base/src/org/compiere/model/I_C_RfQResponseLineQty.java new file mode 100644 index 0000000000..16c8f6901a --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQResponseLineQty.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQResponseLineQty + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.0 + */ + public interface I_C_RfQResponseLineQty +{ + + /** TableName=C_RfQResponseLineQty */ + public static final String Table_Name = "C_RfQResponseLineQty"; + + /** AD_Table_ID=672 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_RfQLineQty_ID */ + public static final String COLUMNNAME_C_RfQLineQty_ID = "C_RfQLineQty_ID"; + + /** Set RfQ Line Quantity. + * Request for Quotation Line Quantity + */ + public void setC_RfQLineQty_ID (int C_RfQLineQty_ID); + + /** Get RfQ Line Quantity. + * Request for Quotation Line Quantity + */ + public int getC_RfQLineQty_ID(); + + public I_C_RfQLineQty getI_C_RfQLineQty() throws Exception; + + /** Column name C_RfQResponseLineQty_ID */ + public static final String COLUMNNAME_C_RfQResponseLineQty_ID = "C_RfQResponseLineQty_ID"; + + /** Set RfQ Response Line Qty. + * Request for Quotation Response Line Quantity + */ + public void setC_RfQResponseLineQty_ID (int C_RfQResponseLineQty_ID); + + /** Get RfQ Response Line Qty. + * Request for Quotation Response Line Quantity + */ + public int getC_RfQResponseLineQty_ID(); + + /** Column name C_RfQResponseLine_ID */ + public static final String COLUMNNAME_C_RfQResponseLine_ID = "C_RfQResponseLine_ID"; + + /** Set RfQ Response Line. + * Request for Quotation Response Line + */ + public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID); + + /** Get RfQ Response Line. + * Request for Quotation Response Line + */ + public int getC_RfQResponseLine_ID(); + + public I_C_RfQResponseLine getI_C_RfQResponseLine() throws Exception; + + /** Column name Discount */ + public static final String COLUMNNAME_Discount = "Discount"; + + /** Set Discount %. + * Discount in percent + */ + public void setDiscount (BigDecimal Discount); + + /** Get Discount %. + * Discount in percent + */ + public BigDecimal getDiscount(); + + /** Column name Price */ + public static final String COLUMNNAME_Price = "Price"; + + /** Set Price. + * Price + */ + public void setPrice (BigDecimal Price); + + /** Get Price. + * Price + */ + public BigDecimal getPrice(); + + /** Column name Ranking */ + public static final String COLUMNNAME_Ranking = "Ranking"; + + /** Set Ranking. + * Relative Rank Number + */ + public void setRanking (int Ranking); + + /** Get Ranking. + * Relative Rank Number + */ + public int getRanking(); +} diff --git a/base/src/org/compiere/model/I_C_RfQ_Topic.java b/base/src/org/compiere/model/I_C_RfQ_Topic.java new file mode 100644 index 0000000000..146d0a4d59 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQ_Topic.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQ_Topic + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.015 + */ + public interface I_C_RfQ_Topic +{ + + /** TableName=C_RfQ_Topic */ + public static final String Table_Name = "C_RfQ_Topic"; + + /** AD_Table_ID=671 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name C_RfQ_Topic_ID */ + public static final String COLUMNNAME_C_RfQ_Topic_ID = "C_RfQ_Topic_ID"; + + /** Set RfQ Topic. + * Topic for Request for Quotations + */ + public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID); + + /** Get RfQ Topic. + * Topic for Request for Quotations + */ + public int getC_RfQ_Topic_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_RfQ_TopicSubscriber.java b/base/src/org/compiere/model/I_C_RfQ_TopicSubscriber.java new file mode 100644 index 0000000000..9ce887f7f0 --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQ_TopicSubscriber.java @@ -0,0 +1,157 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQ_TopicSubscriber + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.109 + */ + public interface I_C_RfQ_TopicSubscriber +{ + + /** TableName=C_RfQ_TopicSubscriber */ + public static final String Table_Name = "C_RfQ_TopicSubscriber"; + + /** AD_Table_ID=670 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_RfQ_TopicSubscriber_ID */ + public static final String COLUMNNAME_C_RfQ_TopicSubscriber_ID = "C_RfQ_TopicSubscriber_ID"; + + /** Set RfQ Subscriber. + * Request for Quotation Topic Subscriber + */ + public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID); + + /** Get RfQ Subscriber. + * Request for Quotation Topic Subscriber + */ + public int getC_RfQ_TopicSubscriber_ID(); + + /** Column name C_RfQ_Topic_ID */ + public static final String COLUMNNAME_C_RfQ_Topic_ID = "C_RfQ_Topic_ID"; + + /** Set RfQ Topic. + * Topic for Request for Quotations + */ + public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID); + + /** Get RfQ Topic. + * Topic for Request for Quotations + */ + public int getC_RfQ_Topic_ID(); + + public I_C_RfQ_Topic getI_C_RfQ_Topic() throws Exception; + + /** Column name OptOutDate */ + public static final String COLUMNNAME_OptOutDate = "OptOutDate"; + + /** Set Opt-out Date. + * Date the contact opted out + */ + public void setOptOutDate (Timestamp OptOutDate); + + /** Get Opt-out Date. + * Date the contact opted out + */ + public Timestamp getOptOutDate(); + + /** Column name SubscribeDate */ + public static final String COLUMNNAME_SubscribeDate = "SubscribeDate"; + + /** Set Subscribe Date. + * Date the contact actively subscribed + */ + public void setSubscribeDate (Timestamp SubscribeDate); + + /** Get Subscribe Date. + * Date the contact actively subscribed + */ + public Timestamp getSubscribeDate(); +} diff --git a/base/src/org/compiere/model/I_C_RfQ_TopicSubscriberOnly.java b/base/src/org/compiere/model/I_C_RfQ_TopicSubscriberOnly.java new file mode 100644 index 0000000000..654a1053ff --- /dev/null +++ b/base/src/org/compiere/model/I_C_RfQ_TopicSubscriberOnly.java @@ -0,0 +1,129 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_RfQ_TopicSubscriberOnly + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.218 + */ + public interface I_C_RfQ_TopicSubscriberOnly +{ + + /** TableName=C_RfQ_TopicSubscriberOnly */ + public static final String Table_Name = "C_RfQ_TopicSubscriberOnly"; + + /** AD_Table_ID=747 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_RfQ_TopicSubscriberOnly_ID */ + public static final String COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID = "C_RfQ_TopicSubscriberOnly_ID"; + + /** Set RfQ Topic Subscriber Restriction. + * Include Subscriber only for certain products or product categories + */ + public void setC_RfQ_TopicSubscriberOnly_ID (int C_RfQ_TopicSubscriberOnly_ID); + + /** Get RfQ Topic Subscriber Restriction. + * Include Subscriber only for certain products or product categories + */ + public int getC_RfQ_TopicSubscriberOnly_ID(); + + /** Column name C_RfQ_TopicSubscriber_ID */ + public static final String COLUMNNAME_C_RfQ_TopicSubscriber_ID = "C_RfQ_TopicSubscriber_ID"; + + /** Set RfQ Subscriber. + * Request for Quotation Topic Subscriber + */ + public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID); + + /** Get RfQ Subscriber. + * Request for Quotation Topic Subscriber + */ + public int getC_RfQ_TopicSubscriber_ID(); + + public I_C_RfQ_TopicSubscriber getI_C_RfQ_TopicSubscriber() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); +} diff --git a/base/src/org/compiere/model/I_C_SalesRegion.java b/base/src/org/compiere/model/I_C_SalesRegion.java new file mode 100644 index 0000000000..bfecc9e6da --- /dev/null +++ b/base/src/org/compiere/model/I_C_SalesRegion.java @@ -0,0 +1,151 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_SalesRegion + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.234 + */ + public interface I_C_SalesRegion +{ + + /** TableName=C_SalesRegion */ + public static final String Table_Name = "C_SalesRegion"; + + /** AD_Table_ID=230 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_ServiceLevel.java b/base/src/org/compiere/model/I_C_ServiceLevel.java new file mode 100644 index 0000000000..5c74782722 --- /dev/null +++ b/base/src/org/compiere/model/I_C_ServiceLevel.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ServiceLevel + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.25 + */ + public interface I_C_ServiceLevel +{ + + /** TableName=C_ServiceLevel */ + public static final String Table_Name = "C_ServiceLevel"; + + /** AD_Table_ID=337 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_RevenueRecognition_Plan_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_Plan_ID = "C_RevenueRecognition_Plan_ID"; + + /** Set Revenue Recognition Plan. + * Plan for recognizing or recording revenue + */ + public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID); + + /** Get Revenue Recognition Plan. + * Plan for recognizing or recording revenue + */ + public int getC_RevenueRecognition_Plan_ID(); + + public I_C_RevenueRecognition_Plan getI_C_RevenueRecognition_Plan() throws Exception; + + /** Column name C_ServiceLevel_ID */ + public static final String COLUMNNAME_C_ServiceLevel_ID = "C_ServiceLevel_ID"; + + /** Set Service Level. + * Product Revenue Recognition Service Level + */ + public void setC_ServiceLevel_ID (int C_ServiceLevel_ID); + + /** Get Service Level. + * Product Revenue Recognition Service Level + */ + public int getC_ServiceLevel_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ServiceLevelInvoiced */ + public static final String COLUMNNAME_ServiceLevelInvoiced = "ServiceLevelInvoiced"; + + /** Set Quantity Invoiced. + * Quantity of product or service invoiced + */ + public void setServiceLevelInvoiced (BigDecimal ServiceLevelInvoiced); + + /** Get Quantity Invoiced. + * Quantity of product or service invoiced + */ + public BigDecimal getServiceLevelInvoiced(); + + /** Column name ServiceLevelProvided */ + public static final String COLUMNNAME_ServiceLevelProvided = "ServiceLevelProvided"; + + /** Set Quantity Provided. + * Quantity of service or product provided + */ + public void setServiceLevelProvided (BigDecimal ServiceLevelProvided); + + /** Get Quantity Provided. + * Quantity of service or product provided + */ + public BigDecimal getServiceLevelProvided(); +} diff --git a/base/src/org/compiere/model/I_C_ServiceLevelLine.java b/base/src/org/compiere/model/I_C_ServiceLevelLine.java new file mode 100644 index 0000000000..da51573a8f --- /dev/null +++ b/base/src/org/compiere/model/I_C_ServiceLevelLine.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ServiceLevelLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.328 + */ + public interface I_C_ServiceLevelLine +{ + + /** TableName=C_ServiceLevelLine */ + public static final String Table_Name = "C_ServiceLevelLine"; + + /** AD_Table_ID=338 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_ServiceLevelLine_ID */ + public static final String COLUMNNAME_C_ServiceLevelLine_ID = "C_ServiceLevelLine_ID"; + + /** Set Service Level Line. + * Product Revenue Recognition Service Level Line + */ + public void setC_ServiceLevelLine_ID (int C_ServiceLevelLine_ID); + + /** Get Service Level Line. + * Product Revenue Recognition Service Level Line + */ + public int getC_ServiceLevelLine_ID(); + + /** Column name C_ServiceLevel_ID */ + public static final String COLUMNNAME_C_ServiceLevel_ID = "C_ServiceLevel_ID"; + + /** Set Service Level. + * Product Revenue Recognition Service Level + */ + public void setC_ServiceLevel_ID (int C_ServiceLevel_ID); + + /** Get Service Level. + * Product Revenue Recognition Service Level + */ + public int getC_ServiceLevel_ID(); + + public I_C_ServiceLevel getI_C_ServiceLevel() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ServiceDate */ + public static final String COLUMNNAME_ServiceDate = "ServiceDate"; + + /** Set Service date. + * Date service was provided + */ + public void setServiceDate (Timestamp ServiceDate); + + /** Get Service date. + * Date service was provided + */ + public Timestamp getServiceDate(); + + /** Column name ServiceLevelProvided */ + public static final String COLUMNNAME_ServiceLevelProvided = "ServiceLevelProvided"; + + /** Set Quantity Provided. + * Quantity of service or product provided + */ + public void setServiceLevelProvided (BigDecimal ServiceLevelProvided); + + /** Get Quantity Provided. + * Quantity of service or product provided + */ + public BigDecimal getServiceLevelProvided(); +} diff --git a/base/src/org/compiere/model/I_C_SubAcct.java b/base/src/org/compiere/model/I_C_SubAcct.java new file mode 100644 index 0000000000..391f1b98e5 --- /dev/null +++ b/base/src/org/compiere/model/I_C_SubAcct.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_SubAcct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.5 + */ + public interface I_C_SubAcct +{ + + /** TableName=C_SubAcct */ + public static final String Table_Name = "C_SubAcct"; + + /** AD_Table_ID=825 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + public I_C_ElementValue getI_C_ElementValue() throws Exception; + + /** Column name C_SubAcct_ID */ + public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; + + /** Set Sub Account. + * Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID); + + /** Get Sub Account. + * Sub account for Element Value + */ + public int getC_SubAcct_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_C_Subscription.java b/base/src/org/compiere/model/I_C_Subscription.java new file mode 100644 index 0000000000..17c8d41ae8 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Subscription.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Subscription + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.515 + */ + public interface I_C_Subscription +{ + + /** TableName=C_Subscription */ + public static final String Table_Name = "C_Subscription"; + + /** AD_Table_ID=669 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_SubscriptionType_ID */ + public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; + + /** Set Subscription Type. + * Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID); + + /** Get Subscription Type. + * Type of subscription + */ + public int getC_SubscriptionType_ID(); + + public I_C_SubscriptionType getI_C_SubscriptionType() throws Exception; + + /** Column name C_Subscription_ID */ + public static final String COLUMNNAME_C_Subscription_ID = "C_Subscription_ID"; + + /** Set Subscription. + * Subscription of a Business Partner of a Product to renew + */ + public void setC_Subscription_ID (int C_Subscription_ID); + + /** Get Subscription. + * Subscription of a Business Partner of a Product to renew + */ + public int getC_Subscription_ID(); + + /** Column name IsDue */ + public static final String COLUMNNAME_IsDue = "IsDue"; + + /** Set Due. + * Subscription Renewal is Due + */ + public void setIsDue (boolean IsDue); + + /** Get Due. + * Subscription Renewal is Due + */ + public boolean isDue(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PaidUntilDate */ + public static final String COLUMNNAME_PaidUntilDate = "PaidUntilDate"; + + /** Set Paid Until. + * Subscription is paid/valid until this date + */ + public void setPaidUntilDate (Timestamp PaidUntilDate); + + /** Get Paid Until. + * Subscription is paid/valid until this date + */ + public Timestamp getPaidUntilDate(); + + /** Column name RenewalDate */ + public static final String COLUMNNAME_RenewalDate = "RenewalDate"; + + /** Set Renewal Date */ + public void setRenewalDate (Timestamp RenewalDate); + + /** Get Renewal Date */ + public Timestamp getRenewalDate(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); +} diff --git a/base/src/org/compiere/model/I_C_SubscriptionType.java b/base/src/org/compiere/model/I_C_SubscriptionType.java new file mode 100644 index 0000000000..1964391f7c --- /dev/null +++ b/base/src/org/compiere/model/I_C_SubscriptionType.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_SubscriptionType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.546 + */ + public interface I_C_SubscriptionType +{ + + /** TableName=C_SubscriptionType */ + public static final String Table_Name = "C_SubscriptionType"; + + /** AD_Table_ID=668 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_SubscriptionType_ID */ + public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; + + /** Set Subscription Type. + * Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID); + + /** Get Subscription Type. + * Type of subscription + */ + public int getC_SubscriptionType_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_Subscription_Delivery.java b/base/src/org/compiere/model/I_C_Subscription_Delivery.java new file mode 100644 index 0000000000..f70804e623 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Subscription_Delivery.java @@ -0,0 +1,88 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Subscription_Delivery + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.593 + */ + public interface I_C_Subscription_Delivery +{ + + /** TableName=C_Subscription_Delivery */ + public static final String Table_Name = "C_Subscription_Delivery"; + + /** AD_Table_ID=667 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Subscription_Delivery_ID */ + public static final String COLUMNNAME_C_Subscription_Delivery_ID = "C_Subscription_Delivery_ID"; + + /** Set Subscription Delivery. + * Optional Delivery Record for a Subscription + */ + public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID); + + /** Get Subscription Delivery. + * Optional Delivery Record for a Subscription + */ + public int getC_Subscription_Delivery_ID(); + + /** Column name C_Subscription_ID */ + public static final String COLUMNNAME_C_Subscription_ID = "C_Subscription_ID"; + + /** Set Subscription. + * Subscription of a Business Partner of a Product to renew + */ + public void setC_Subscription_ID (int C_Subscription_ID); + + /** Get Subscription. + * Subscription of a Business Partner of a Product to renew + */ + public int getC_Subscription_ID(); + + public I_C_Subscription getI_C_Subscription() throws Exception; +} diff --git a/base/src/org/compiere/model/I_C_Task.java b/base/src/org/compiere/model/I_C_Task.java new file mode 100644 index 0000000000..1050a42857 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Task.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Task + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.609 + */ + public interface I_C_Task +{ + + /** TableName=C_Task */ + public static final String Table_Name = "C_Task"; + + /** AD_Table_ID=583 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Phase_ID */ + public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; + + /** Set Standard Phase. + * Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID); + + /** Get Standard Phase. + * Standard Phase of the Project Type + */ + public int getC_Phase_ID(); + + public I_C_Phase getI_C_Phase() throws Exception; + + /** Column name C_Task_ID */ + public static final String COLUMNNAME_C_Task_ID = "C_Task_ID"; + + /** Set Standard Task. + * Standard Project Type Task + */ + public void setC_Task_ID (int C_Task_ID); + + /** Get Standard Task. + * Standard Project Type Task + */ + public int getC_Task_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name StandardQty */ + public static final String COLUMNNAME_StandardQty = "StandardQty"; + + /** Set Standard Quantity. + * Standard Quantity + */ + public void setStandardQty (BigDecimal StandardQty); + + /** Get Standard Quantity. + * Standard Quantity + */ + public BigDecimal getStandardQty(); +} diff --git a/base/src/org/compiere/model/I_C_Tax.java b/base/src/org/compiere/model/I_C_Tax.java new file mode 100644 index 0000000000..ce8ae4408b --- /dev/null +++ b/base/src/org/compiere/model/I_C_Tax.java @@ -0,0 +1,309 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Tax + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.625 + */ + public interface I_C_Tax +{ + + /** TableName=C_Tax */ + public static final String Table_Name = "C_Tax"; + + /** AD_Table_ID=261 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsDocumentLevel */ + public static final String COLUMNNAME_IsDocumentLevel = "IsDocumentLevel"; + + /** Set Document Level. + * Tax is calculated on document level (rather than line by line) + */ + public void setIsDocumentLevel (boolean IsDocumentLevel); + + /** Get Document Level. + * Tax is calculated on document level (rather than line by line) + */ + public boolean isDocumentLevel(); + + /** Column name IsSalesTax */ + public static final String COLUMNNAME_IsSalesTax = "IsSalesTax"; + + /** Set Sales Tax. + * This is a sales tax (i.e. not a value added tax) + */ + public void setIsSalesTax (boolean IsSalesTax); + + /** Get Sales Tax. + * This is a sales tax (i.e. not a value added tax) + */ + public boolean isSalesTax(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsTaxExempt */ + public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; + + /** Set Tax exempt. + * Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt); + + /** Get Tax exempt. + * Business partner is exempt from tax + */ + public boolean isTaxExempt(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Parent_Tax_ID */ + public static final String COLUMNNAME_Parent_Tax_ID = "Parent_Tax_ID"; + + /** Set Parent Tax. + * Parent Tax indicates a tax that is made up of multiple taxes + */ + public void setParent_Tax_ID (int Parent_Tax_ID); + + /** Get Parent Tax. + * Parent Tax indicates a tax that is made up of multiple taxes + */ + public int getParent_Tax_ID(); + + /** Column name Rate */ + public static final String COLUMNNAME_Rate = "Rate"; + + /** Set Rate. + * Rate or Tax or Exchange + */ + public void setRate (BigDecimal Rate); + + /** Get Rate. + * Rate or Tax or Exchange + */ + public BigDecimal getRate(); + + /** Column name RequiresTaxCertificate */ + public static final String COLUMNNAME_RequiresTaxCertificate = "RequiresTaxCertificate"; + + /** Set Requires Tax Certificate. + * This tax rate requires the Business Partner to be tax exempt + */ + public void setRequiresTaxCertificate (boolean RequiresTaxCertificate); + + /** Get Requires Tax Certificate. + * This tax rate requires the Business Partner to be tax exempt + */ + public boolean isRequiresTaxCertificate(); + + /** Column name SOPOType */ + public static final String COLUMNNAME_SOPOType = "SOPOType"; + + /** Set SO/PO Type. + * Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public void setSOPOType (String SOPOType); + + /** Get SO/PO Type. + * Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public String getSOPOType(); + + /** Column name TaxIndicator */ + public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; + + /** Set Tax Indicator. + * Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator); + + /** Get Tax Indicator. + * Short form for Tax to be printed on documents + */ + public String getTaxIndicator(); + + /** Column name To_Country_ID */ + public static final String COLUMNNAME_To_Country_ID = "To_Country_ID"; + + /** Set To. + * Receiving Country + */ + public void setTo_Country_ID (int To_Country_ID); + + /** Get To. + * Receiving Country + */ + public int getTo_Country_ID(); + + /** Column name To_Region_ID */ + public static final String COLUMNNAME_To_Region_ID = "To_Region_ID"; + + /** Set To. + * Receiving Region + */ + public void setTo_Region_ID (int To_Region_ID); + + /** Get To. + * Receiving Region + */ + public int getTo_Region_ID(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); +} diff --git a/base/src/org/compiere/model/I_C_TaxCategory.java b/base/src/org/compiere/model/I_C_TaxCategory.java new file mode 100644 index 0000000000..f98e442f79 --- /dev/null +++ b/base/src/org/compiere/model/I_C_TaxCategory.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_TaxCategory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:45.843 + */ + public interface I_C_TaxCategory +{ + + /** TableName=C_TaxCategory */ + public static final String Table_Name = "C_TaxCategory"; + + /** AD_Table_ID=252 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + /** Column name CommodityCode */ + public static final String COLUMNNAME_CommodityCode = "CommodityCode"; + + /** Set Commodity Code. + * Commodity code used for tax calculation + */ + public void setCommodityCode (String CommodityCode); + + /** Get Commodity Code. + * Commodity code used for tax calculation + */ + public String getCommodityCode(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_C_TaxDeclaration.java b/base/src/org/compiere/model/I_C_TaxDeclaration.java new file mode 100644 index 0000000000..c63444a4d4 --- /dev/null +++ b/base/src/org/compiere/model/I_C_TaxDeclaration.java @@ -0,0 +1,160 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_TaxDeclaration + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.031 + */ + public interface I_C_TaxDeclaration +{ + + /** TableName=C_TaxDeclaration */ + public static final String Table_Name = "C_TaxDeclaration"; + + /** AD_Table_ID=818 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_TaxDeclaration_ID */ + public static final String COLUMNNAME_C_TaxDeclaration_ID = "C_TaxDeclaration_ID"; + + /** Set Tax Declaration. + * Define the declaration to the tax authorities + */ + public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID); + + /** Get Tax Declaration. + * Define the declaration to the tax authorities + */ + public int getC_TaxDeclaration_ID(); + + /** Column name DateFrom */ + public static final String COLUMNNAME_DateFrom = "DateFrom"; + + /** Set Date From. + * Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom); + + /** Get Date From. + * Starting date for a range + */ + public Timestamp getDateFrom(); + + /** Column name DateTo */ + public static final String COLUMNNAME_DateTo = "DateTo"; + + /** Set Date To. + * End date of a date range + */ + public void setDateTo (Timestamp DateTo); + + /** Get Date To. + * End date of a date range + */ + public Timestamp getDateTo(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java b/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java new file mode 100644 index 0000000000..0118a2528c --- /dev/null +++ b/base/src/org/compiere/model/I_C_TaxDeclarationAcct.java @@ -0,0 +1,255 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_TaxDeclarationAcct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.046 + */ + public interface I_C_TaxDeclarationAcct +{ + + /** TableName=C_TaxDeclarationAcct */ + public static final String Table_Name = "C_TaxDeclarationAcct"; + + /** AD_Table_ID=820 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name AmtAcctCr */ + public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; + + /** Set Accounted Credit. + * Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr); + + /** Get Accounted Credit. + * Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr(); + + /** Column name AmtAcctDr */ + public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; + + /** Set Accounted Debit. + * Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr); + + /** Get Accounted Debit. + * Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr(); + + /** Column name AmtSourceCr */ + public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; + + /** Set Source Credit. + * Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr); + + /** Get Source Credit. + * Source Credit Amount + */ + public BigDecimal getAmtSourceCr(); + + /** Column name AmtSourceDr */ + public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; + + /** Set Source Debit. + * Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr); + + /** Get Source Debit. + * Source Debit Amount + */ + public BigDecimal getAmtSourceDr(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + /** Column name C_TaxDeclarationAcct_ID */ + public static final String COLUMNNAME_C_TaxDeclarationAcct_ID = "C_TaxDeclarationAcct_ID"; + + /** Set Tax Declaration Accounting. + * Tax Accounting Reconciliation + */ + public void setC_TaxDeclarationAcct_ID (int C_TaxDeclarationAcct_ID); + + /** Get Tax Declaration Accounting. + * Tax Accounting Reconciliation + */ + public int getC_TaxDeclarationAcct_ID(); + + /** Column name C_TaxDeclaration_ID */ + public static final String COLUMNNAME_C_TaxDeclaration_ID = "C_TaxDeclaration_ID"; + + /** Set Tax Declaration. + * Define the declaration to the tax authorities + */ + public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID); + + /** Get Tax Declaration. + * Define the declaration to the tax authorities + */ + public int getC_TaxDeclaration_ID(); + + public I_C_TaxDeclaration getI_C_TaxDeclaration() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Fact_Acct_ID */ + public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; + + /** Set Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID); + + /** Get Accounting Fact */ + public int getFact_Acct_ID(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); +} diff --git a/base/src/org/compiere/model/I_C_TaxDeclarationLine.java b/base/src/org/compiere/model/I_C_TaxDeclarationLine.java new file mode 100644 index 0000000000..d11d695e39 --- /dev/null +++ b/base/src/org/compiere/model/I_C_TaxDeclarationLine.java @@ -0,0 +1,248 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_TaxDeclarationLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.062 + */ + public interface I_C_TaxDeclarationLine +{ + + /** TableName=C_TaxDeclarationLine */ + public static final String Table_Name = "C_TaxDeclarationLine"; + + /** AD_Table_ID=819 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AllocationLine_ID */ + public static final String COLUMNNAME_C_AllocationLine_ID = "C_AllocationLine_ID"; + + /** Set Allocation Line. + * Allocation Line + */ + public void setC_AllocationLine_ID (int C_AllocationLine_ID); + + /** Get Allocation Line. + * Allocation Line + */ + public int getC_AllocationLine_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_TaxDeclarationLine_ID */ + public static final String COLUMNNAME_C_TaxDeclarationLine_ID = "C_TaxDeclarationLine_ID"; + + /** Set Tax Declaration Line. + * Tax Declaration Document Information + */ + public void setC_TaxDeclarationLine_ID (int C_TaxDeclarationLine_ID); + + /** Get Tax Declaration Line. + * Tax Declaration Document Information + */ + public int getC_TaxDeclarationLine_ID(); + + /** Column name C_TaxDeclaration_ID */ + public static final String COLUMNNAME_C_TaxDeclaration_ID = "C_TaxDeclaration_ID"; + + /** Set Tax Declaration. + * Define the declaration to the tax authorities + */ + public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID); + + /** Get Tax Declaration. + * Define the declaration to the tax authorities + */ + public int getC_TaxDeclaration_ID(); + + public I_C_TaxDeclaration getI_C_TaxDeclaration() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TaxBaseAmt */ + public static final String COLUMNNAME_TaxBaseAmt = "TaxBaseAmt"; + + /** Set Tax base Amount. + * Base for calculating the tax amount + */ + public void setTaxBaseAmt (BigDecimal TaxBaseAmt); + + /** Get Tax base Amount. + * Base for calculating the tax amount + */ + public BigDecimal getTaxBaseAmt(); +} diff --git a/base/src/org/compiere/model/I_C_TaxPostal.java b/base/src/org/compiere/model/I_C_TaxPostal.java new file mode 100644 index 0000000000..78703aa689 --- /dev/null +++ b/base/src/org/compiere/model/I_C_TaxPostal.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_TaxPostal + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.187 + */ + public interface I_C_TaxPostal +{ + + /** TableName=C_TaxPostal */ + public static final String Table_Name = "C_TaxPostal"; + + /** AD_Table_ID=701 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_TaxPostal_ID */ + public static final String COLUMNNAME_C_TaxPostal_ID = "C_TaxPostal_ID"; + + /** Set Tax ZIP. + * Tax Postal/ZIP + */ + public void setC_TaxPostal_ID (int C_TaxPostal_ID); + + /** Get Tax ZIP. + * Tax Postal/ZIP + */ + public int getC_TaxPostal_ID(); + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); + + /** Column name Postal_To */ + public static final String COLUMNNAME_Postal_To = "Postal_To"; + + /** Set ZIP To. + * Postal code to + */ + public void setPostal_To (String Postal_To); + + /** Get ZIP To. + * Postal code to + */ + public String getPostal_To(); +} diff --git a/base/src/org/compiere/model/I_C_Tax_Acct.java b/base/src/org/compiere/model/I_C_Tax_Acct.java new file mode 100644 index 0000000000..57b8f1083c --- /dev/null +++ b/base/src/org/compiere/model/I_C_Tax_Acct.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Tax_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.265 + */ + public interface I_C_Tax_Acct +{ + + /** TableName=C_Tax_Acct */ + public static final String Table_Name = "C_Tax_Acct"; + + /** AD_Table_ID=399 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name T_Credit_Acct */ + public static final String COLUMNNAME_T_Credit_Acct = "T_Credit_Acct"; + + /** Set Tax Credit. + * Account for Tax you can reclaim + */ + public void setT_Credit_Acct (int T_Credit_Acct); + + /** Get Tax Credit. + * Account for Tax you can reclaim + */ + public int getT_Credit_Acct(); + + /** Column name T_Due_Acct */ + public static final String COLUMNNAME_T_Due_Acct = "T_Due_Acct"; + + /** Set Tax Due. + * Account for Tax you have to pay + */ + public void setT_Due_Acct (int T_Due_Acct); + + /** Get Tax Due. + * Account for Tax you have to pay + */ + public int getT_Due_Acct(); + + /** Column name T_Expense_Acct */ + public static final String COLUMNNAME_T_Expense_Acct = "T_Expense_Acct"; + + /** Set Tax Expense. + * Account for paid tax you cannot reclaim + */ + public void setT_Expense_Acct (int T_Expense_Acct); + + /** Get Tax Expense. + * Account for paid tax you cannot reclaim + */ + public int getT_Expense_Acct(); + + /** Column name T_Liability_Acct */ + public static final String COLUMNNAME_T_Liability_Acct = "T_Liability_Acct"; + + /** Set Tax Liability. + * Account for Tax declaration liability + */ + public void setT_Liability_Acct (int T_Liability_Acct); + + /** Get Tax Liability. + * Account for Tax declaration liability + */ + public int getT_Liability_Acct(); + + /** Column name T_Receivables_Acct */ + public static final String COLUMNNAME_T_Receivables_Acct = "T_Receivables_Acct"; + + /** Set Tax Receivables. + * Account for Tax credit after tax declaration + */ + public void setT_Receivables_Acct (int T_Receivables_Acct); + + /** Get Tax Receivables. + * Account for Tax credit after tax declaration + */ + public int getT_Receivables_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_UOM.java b/base/src/org/compiere/model/I_C_UOM.java new file mode 100644 index 0000000000..5ca77ca089 --- /dev/null +++ b/base/src/org/compiere/model/I_C_UOM.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_UOM + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.296 + */ + public interface I_C_UOM +{ + + /** TableName=C_UOM */ + public static final String Table_Name = "C_UOM"; + + /** AD_Table_ID=146 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + /** Column name CostingPrecision */ + public static final String COLUMNNAME_CostingPrecision = "CostingPrecision"; + + /** Set Costing Precision. + * Rounding used costing calculations + */ + public void setCostingPrecision (int CostingPrecision); + + /** Get Costing Precision. + * Rounding used costing calculations + */ + public int getCostingPrecision(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name StdPrecision */ + public static final String COLUMNNAME_StdPrecision = "StdPrecision"; + + /** Set Standard Precision. + * Rule for rounding calculated amounts + */ + public void setStdPrecision (int StdPrecision); + + /** Get Standard Precision. + * Rule for rounding calculated amounts + */ + public int getStdPrecision(); + + /** Column name UOMSymbol */ + public static final String COLUMNNAME_UOMSymbol = "UOMSymbol"; + + /** Set Symbol. + * Symbol for a Unit of Measure + */ + public void setUOMSymbol (String UOMSymbol); + + /** Get Symbol. + * Symbol for a Unit of Measure + */ + public String getUOMSymbol(); + + /** Column name X12DE355 */ + public static final String COLUMNNAME_X12DE355 = "X12DE355"; + + /** Set UOM Code. + * UOM EDI X12 Code + */ + public void setX12DE355 (String X12DE355); + + /** Get UOM Code. + * UOM EDI X12 Code + */ + public String getX12DE355(); +} diff --git a/base/src/org/compiere/model/I_C_UOM_Conversion.java b/base/src/org/compiere/model/I_C_UOM_Conversion.java new file mode 100644 index 0000000000..de83809cab --- /dev/null +++ b/base/src/org/compiere/model/I_C_UOM_Conversion.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_UOM_Conversion + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.312 + */ + public interface I_C_UOM_Conversion +{ + + /** TableName=C_UOM_Conversion */ + public static final String Table_Name = "C_UOM_Conversion"; + + /** AD_Table_ID=175 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_UOM_Conversion_ID */ + public static final String COLUMNNAME_C_UOM_Conversion_ID = "C_UOM_Conversion_ID"; + + /** Set UOM Conversion. + * Unit of Measure Conversion + */ + public void setC_UOM_Conversion_ID (int C_UOM_Conversion_ID); + + /** Get UOM Conversion. + * Unit of Measure Conversion + */ + public int getC_UOM_Conversion_ID(); + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name C_UOM_To_ID */ + public static final String COLUMNNAME_C_UOM_To_ID = "C_UOM_To_ID"; + + /** Set UoM To. + * Target or destination Unit of Measure + */ + public void setC_UOM_To_ID (int C_UOM_To_ID); + + /** Get UoM To. + * Target or destination Unit of Measure + */ + public int getC_UOM_To_ID(); + + /** Column name DivideRate */ + public static final String COLUMNNAME_DivideRate = "DivideRate"; + + /** Set Divide Rate. + * To convert Source number to Target number, the Source is divided + */ + public void setDivideRate (BigDecimal DivideRate); + + /** Get Divide Rate. + * To convert Source number to Target number, the Source is divided + */ + public BigDecimal getDivideRate(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name MultiplyRate */ + public static final String COLUMNNAME_MultiplyRate = "MultiplyRate"; + + /** Set Multiply Rate. + * Rate to multiple the source by to calculate the target. + */ + public void setMultiplyRate (BigDecimal MultiplyRate); + + /** Get Multiply Rate. + * Rate to multiple the source by to calculate the target. + */ + public BigDecimal getMultiplyRate(); +} diff --git a/base/src/org/compiere/model/I_C_UserRemuneration.java b/base/src/org/compiere/model/I_C_UserRemuneration.java new file mode 100644 index 0000000000..5a5b72f582 --- /dev/null +++ b/base/src/org/compiere/model/I_C_UserRemuneration.java @@ -0,0 +1,192 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_UserRemuneration + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.453 + */ + public interface I_C_UserRemuneration +{ + + /** TableName=C_UserRemuneration */ + public static final String Table_Name = "C_UserRemuneration"; + + /** AD_Table_ID=794 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name C_Remuneration_ID */ + public static final String COLUMNNAME_C_Remuneration_ID = "C_Remuneration_ID"; + + /** Set Remuneration. + * Wage or Salary + */ + public void setC_Remuneration_ID (int C_Remuneration_ID); + + /** Get Remuneration. + * Wage or Salary + */ + public int getC_Remuneration_ID(); + + public I_C_Remuneration getI_C_Remuneration() throws Exception; + + /** Column name C_UserRemuneration_ID */ + public static final String COLUMNNAME_C_UserRemuneration_ID = "C_UserRemuneration_ID"; + + /** Set Employee Remuneration. + * Employee Wage or Salary Overwrite + */ + public void setC_UserRemuneration_ID (int C_UserRemuneration_ID); + + /** Get Employee Remuneration. + * Employee Wage or Salary Overwrite + */ + public int getC_UserRemuneration_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GrossRAmt */ + public static final String COLUMNNAME_GrossRAmt = "GrossRAmt"; + + /** Set Gross Amount. + * Gross Remuneration Amount + */ + public void setGrossRAmt (BigDecimal GrossRAmt); + + /** Get Gross Amount. + * Gross Remuneration Amount + */ + public BigDecimal getGrossRAmt(); + + /** Column name GrossRCost */ + public static final String COLUMNNAME_GrossRCost = "GrossRCost"; + + /** Set Gross Cost. + * Gross Remuneration Costs + */ + public void setGrossRCost (BigDecimal GrossRCost); + + /** Get Gross Cost. + * Gross Remuneration Costs + */ + public BigDecimal getGrossRCost(); + + /** Column name OvertimeAmt */ + public static final String COLUMNNAME_OvertimeAmt = "OvertimeAmt"; + + /** Set Overtime Amount. + * Hourly Overtime Rate + */ + public void setOvertimeAmt (BigDecimal OvertimeAmt); + + /** Get Overtime Amount. + * Hourly Overtime Rate + */ + public BigDecimal getOvertimeAmt(); + + /** Column name OvertimeCost */ + public static final String COLUMNNAME_OvertimeCost = "OvertimeCost"; + + /** Set Overtime Cost. + * Hourly Overtime Cost + */ + public void setOvertimeCost (BigDecimal OvertimeCost); + + /** Get Overtime Cost. + * Hourly Overtime Cost + */ + public BigDecimal getOvertimeCost(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_C_ValidCombination.java b/base/src/org/compiere/model/I_C_ValidCombination.java new file mode 100644 index 0000000000..60f472295e --- /dev/null +++ b/base/src/org/compiere/model/I_C_ValidCombination.java @@ -0,0 +1,337 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_ValidCombination + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.468 + */ + public interface I_C_ValidCombination +{ + + /** TableName=C_ValidCombination */ + public static final String Table_Name = "C_ValidCombination"; + + /** AD_Table_ID=176 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name Alias */ + public static final String COLUMNNAME_Alias = "Alias"; + + /** Set Alias. + * Defines an alternate method of indicating an account combination. + */ + public void setAlias (String Alias); + + /** Get Alias. + * Defines an alternate method of indicating an account combination. + */ + public String getAlias(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + /** Column name C_LocFrom_ID */ + public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + + /** Set Location From. + * Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID); + + /** Get Location From. + * Location that inventory was moved from + */ + public int getC_LocFrom_ID(); + + /** Column name C_LocTo_ID */ + public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + + /** Set Location To. + * Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID); + + /** Get Location To. + * Location that inventory was moved to + */ + public int getC_LocTo_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + /** Column name C_SubAcct_ID */ + public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; + + /** Set Sub Account. + * Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID); + + /** Get Sub Account. + * Sub account for Element Value + */ + public int getC_SubAcct_ID(); + + public I_C_SubAcct getI_C_SubAcct() throws Exception; + + /** Column name C_ValidCombination_ID */ + public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; + + /** Set Combination. + * Valid Account Combination + */ + public void setC_ValidCombination_ID (int C_ValidCombination_ID); + + /** Get Combination. + * Valid Account Combination + */ + public int getC_ValidCombination_ID(); + + /** Column name Combination */ + public static final String COLUMNNAME_Combination = "Combination"; + + /** Set Combination. + * Unique combination of account elements + */ + public void setCombination (String Combination); + + /** Get Combination. + * Unique combination of account elements + */ + public String getCombination(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsFullyQualified */ + public static final String COLUMNNAME_IsFullyQualified = "IsFullyQualified"; + + /** Set Fully Qualified. + * This account is fully qualified + */ + public void setIsFullyQualified (boolean IsFullyQualified); + + /** Get Fully Qualified. + * This account is fully qualified + */ + public boolean isFullyQualified(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name UserElement1_ID */ + public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; + + /** Set User Element 1. + * User defined accounting Element + */ + public void setUserElement1_ID (int UserElement1_ID); + + /** Get User Element 1. + * User defined accounting Element + */ + public int getUserElement1_ID(); + + /** Column name UserElement2_ID */ + public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID"; + + /** Set User Element 2. + * User defined accounting Element + */ + public void setUserElement2_ID (int UserElement2_ID); + + /** Get User Element 2. + * User defined accounting Element + */ + public int getUserElement2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_Withholding.java b/base/src/org/compiere/model/I_C_Withholding.java new file mode 100644 index 0000000000..cadf49e084 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Withholding.java @@ -0,0 +1,257 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Withholding + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.609 + */ + public interface I_C_Withholding +{ + + /** TableName=C_Withholding */ + public static final String Table_Name = "C_Withholding"; + + /** AD_Table_ID=304 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Beneficiary */ + public static final String COLUMNNAME_Beneficiary = "Beneficiary"; + + /** Set Beneficiary. + * Business Partner to whom payment is made + */ + public void setBeneficiary (int Beneficiary); + + /** Get Beneficiary. + * Business Partner to whom payment is made + */ + public int getBeneficiary(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Withholding_ID */ + public static final String COLUMNNAME_C_Withholding_ID = "C_Withholding_ID"; + + /** Set Withholding. + * Withholding type defined + */ + public void setC_Withholding_ID (int C_Withholding_ID); + + /** Get Withholding. + * Withholding type defined + */ + public int getC_Withholding_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FixAmt */ + public static final String COLUMNNAME_FixAmt = "FixAmt"; + + /** Set Fix amount. + * Fix amounted amount to be levied or paid + */ + public void setFixAmt (BigDecimal FixAmt); + + /** Get Fix amount. + * Fix amounted amount to be levied or paid + */ + public BigDecimal getFixAmt(); + + /** Column name IsPaidTo3Party */ + public static final String COLUMNNAME_IsPaidTo3Party = "IsPaidTo3Party"; + + /** Set Paid to third party. + * Amount paid to someone other than the Business Partner + */ + public void setIsPaidTo3Party (boolean IsPaidTo3Party); + + /** Get Paid to third party. + * Amount paid to someone other than the Business Partner + */ + public boolean isPaidTo3Party(); + + /** Column name IsPercentWithholding */ + public static final String COLUMNNAME_IsPercentWithholding = "IsPercentWithholding"; + + /** Set Percent withholding. + * Withholding amount is a percentage of the invoice amount + */ + public void setIsPercentWithholding (boolean IsPercentWithholding); + + /** Get Percent withholding. + * Withholding amount is a percentage of the invoice amount + */ + public boolean isPercentWithholding(); + + /** Column name IsTaxProrated */ + public static final String COLUMNNAME_IsTaxProrated = "IsTaxProrated"; + + /** Set Prorate tax. + * Tax is Prorated + */ + public void setIsTaxProrated (boolean IsTaxProrated); + + /** Get Prorate tax. + * Tax is Prorated + */ + public boolean isTaxProrated(); + + /** Column name IsTaxWithholding */ + public static final String COLUMNNAME_IsTaxWithholding = "IsTaxWithholding"; + + /** Set Tax withholding. + * This is a tax related withholding + */ + public void setIsTaxWithholding (boolean IsTaxWithholding); + + /** Get Tax withholding. + * This is a tax related withholding + */ + public boolean isTaxWithholding(); + + /** Column name MaxAmt */ + public static final String COLUMNNAME_MaxAmt = "MaxAmt"; + + /** Set Max Amount. + * Maximum Amount in invoice currency + */ + public void setMaxAmt (BigDecimal MaxAmt); + + /** Get Max Amount. + * Maximum Amount in invoice currency + */ + public BigDecimal getMaxAmt(); + + /** Column name MinAmt */ + public static final String COLUMNNAME_MinAmt = "MinAmt"; + + /** Set Min Amount. + * Minimum Amount in invoice currency + */ + public void setMinAmt (BigDecimal MinAmt); + + /** Get Min Amount. + * Minimum Amount in invoice currency + */ + public BigDecimal getMinAmt(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Percent */ + public static final String COLUMNNAME_Percent = "Percent"; + + /** Set Percent. + * Percentage + */ + public void setPercent (BigDecimal Percent); + + /** Get Percent. + * Percentage + */ + public BigDecimal getPercent(); + + /** Column name ThresholdMax */ + public static final String COLUMNNAME_ThresholdMax = "ThresholdMax"; + + /** Set Threshold max. + * Maximum gross amount for withholding calculation (0=no limit) + */ + public void setThresholdMax (BigDecimal ThresholdMax); + + /** Get Threshold max. + * Maximum gross amount for withholding calculation (0=no limit) + */ + public BigDecimal getThresholdMax(); + + /** Column name Thresholdmin */ + public static final String COLUMNNAME_Thresholdmin = "Thresholdmin"; + + /** Set Threshold min. + * Minimum gross amount for withholding calculation + */ + public void setThresholdmin (BigDecimal Thresholdmin); + + /** Get Threshold min. + * Minimum gross amount for withholding calculation + */ + public BigDecimal getThresholdmin(); +} diff --git a/base/src/org/compiere/model/I_C_Withholding_Acct.java b/base/src/org/compiere/model/I_C_Withholding_Acct.java new file mode 100644 index 0000000000..4b2dac5444 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Withholding_Acct.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Withholding_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.64 + */ + public interface I_C_Withholding_Acct +{ + + /** TableName=C_Withholding_Acct */ + public static final String Table_Name = "C_Withholding_Acct"; + + /** AD_Table_ID=400 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Withholding_ID */ + public static final String COLUMNNAME_C_Withholding_ID = "C_Withholding_ID"; + + /** Set Withholding. + * Withholding type defined + */ + public void setC_Withholding_ID (int C_Withholding_ID); + + /** Get Withholding. + * Withholding type defined + */ + public int getC_Withholding_ID(); + + public I_C_Withholding getI_C_Withholding() throws Exception; + + /** Column name Withholding_Acct */ + public static final String COLUMNNAME_Withholding_Acct = "Withholding_Acct"; + + /** Set Withholding. + * Account for Withholdings + */ + public void setWithholding_Acct (int Withholding_Acct); + + /** Get Withholding. + * Account for Withholdings + */ + public int getWithholding_Acct(); +} diff --git a/base/src/org/compiere/model/I_C_Year.java b/base/src/org/compiere/model/I_C_Year.java new file mode 100644 index 0000000000..7907412bae --- /dev/null +++ b/base/src/org/compiere/model/I_C_Year.java @@ -0,0 +1,123 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for C_Year + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.968 + */ + public interface I_C_Year +{ + + /** TableName=C_Year */ + public static final String Table_Name = "C_Year"; + + /** AD_Table_ID=177 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getI_C_Calendar() throws Exception; + + /** Column name C_Year_ID */ + public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; + + /** Set Year. + * Calendar Year + */ + public void setC_Year_ID (int C_Year_ID); + + /** Get Year. + * Calendar Year + */ + public int getC_Year_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FiscalYear */ + public static final String COLUMNNAME_FiscalYear = "FiscalYear"; + + /** Set Year. + * The Fiscal Year + */ + public void setFiscalYear (String FiscalYear); + + /** Get Year. + * The Fiscal Year + */ + public String getFiscalYear(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_Fact_Acct.java b/base/src/org/compiere/model/I_Fact_Acct.java new file mode 100644 index 0000000000..3aa6401e0d --- /dev/null +++ b/base/src/org/compiere/model/I_Fact_Acct.java @@ -0,0 +1,595 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for Fact_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:46.984 + */ + public interface I_Fact_Acct +{ + + /** TableName=Fact_Acct */ + public static final String Table_Name = "Fact_Acct"; + + /** AD_Table_ID=270 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name AmtAcctCr */ + public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; + + /** Set Accounted Credit. + * Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr); + + /** Get Accounted Credit. + * Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr(); + + /** Column name AmtAcctDr */ + public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; + + /** Set Accounted Debit. + * Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr); + + /** Get Accounted Debit. + * Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr(); + + /** Column name AmtSourceCr */ + public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; + + /** Set Source Credit. + * Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr); + + /** Get Source Credit. + * Source Credit Amount + */ + public BigDecimal getAmtSourceCr(); + + /** Column name AmtSourceDr */ + public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; + + /** Set Source Debit. + * Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr); + + /** Get Source Debit. + * Source Debit Amount + */ + public BigDecimal getAmtSourceDr(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_LocFrom_ID */ + public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + + /** Set Location From. + * Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID); + + /** Get Location From. + * Location that inventory was moved from + */ + public int getC_LocFrom_ID(); + + /** Column name C_LocTo_ID */ + public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + + /** Set Location To. + * Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID); + + /** Get Location To. + * Location that inventory was moved to + */ + public int getC_LocTo_ID(); + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getI_C_Period() throws Exception; + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name C_SubAcct_ID */ + public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; + + /** Set Sub Account. + * Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID); + + /** Get Sub Account. + * Sub account for Element Value + */ + public int getC_SubAcct_ID(); + + public I_C_SubAcct getI_C_SubAcct() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Fact_Acct_ID */ + public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; + + /** Set Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID); + + /** Get Accounting Fact */ + public int getFact_Acct_ID(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getI_GL_Category() throws Exception; + + /** Column name Line_ID */ + public static final String COLUMNNAME_Line_ID = "Line_ID"; + + /** Set Line ID. + * Transaction line ID (internal) + */ + public void setLine_ID (int Line_ID); + + /** Get Line ID. + * Transaction line ID (internal) + */ + public int getLine_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + public I_M_Locator getI_M_Locator() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name UserElement1_ID */ + public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; + + /** Set User Element 1. + * User defined accounting Element + */ + public void setUserElement1_ID (int UserElement1_ID); + + /** Get User Element 1. + * User defined accounting Element + */ + public int getUserElement1_ID(); + + /** Column name UserElement2_ID */ + public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID"; + + /** Set User Element 2. + * User defined accounting Element + */ + public void setUserElement2_ID (int UserElement2_ID); + + /** Get User Element 2. + * User defined accounting Element + */ + public int getUserElement2_ID(); +} diff --git a/base/src/org/compiere/model/I_Fact_Acct_Balance.java b/base/src/org/compiere/model/I_Fact_Acct_Balance.java new file mode 100644 index 0000000000..c1b04e7311 --- /dev/null +++ b/base/src/org/compiere/model/I_Fact_Acct_Balance.java @@ -0,0 +1,390 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for Fact_Acct_Balance + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.109 + */ + public interface I_Fact_Acct_Balance +{ + + /** TableName=Fact_Acct_Balance */ + public static final String Table_Name = "Fact_Acct_Balance"; + + /** AD_Table_ID=547 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name AmtAcctCr */ + public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; + + /** Set Accounted Credit. + * Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr); + + /** Get Accounted Credit. + * Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr(); + + /** Column name AmtAcctDr */ + public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; + + /** Set Accounted Debit. + * Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr); + + /** Get Accounted Debit. + * Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_LocFrom_ID */ + public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + + /** Set Location From. + * Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID); + + /** Get Location From. + * Location that inventory was moved from + */ + public int getC_LocFrom_ID(); + + /** Column name C_LocTo_ID */ + public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + + /** Set Location To. + * Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID); + + /** Get Location To. + * Location that inventory was moved to + */ + public int getC_LocTo_ID(); + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name C_SubAcct_ID */ + public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; + + /** Set Sub Account. + * Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID); + + /** Get Sub Account. + * Sub account for Element Value + */ + public int getC_SubAcct_ID(); + + public I_C_SubAcct getI_C_SubAcct() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name UserElement1_ID */ + public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; + + /** Set User Element 1. + * User defined accounting Element + */ + public void setUserElement1_ID (int UserElement1_ID); + + /** Get User Element 1. + * User defined accounting Element + */ + public int getUserElement1_ID(); + + /** Column name UserElement2_ID */ + public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID"; + + /** Set User Element 2. + * User defined accounting Element + */ + public void setUserElement2_ID (int UserElement2_ID); + + /** Get User Element 2. + * User defined accounting Element + */ + public int getUserElement2_ID(); +} diff --git a/base/src/org/compiere/model/I_GL_Budget.java b/base/src/org/compiere/model/I_GL_Budget.java new file mode 100644 index 0000000000..871ee81513 --- /dev/null +++ b/base/src/org/compiere/model/I_GL_Budget.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_Budget + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.156 + */ + public interface I_GL_Budget +{ + + /** TableName=GL_Budget */ + public static final String Table_Name = "GL_Budget"; + + /** AD_Table_ID=271 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BudgetStatus */ + public static final String COLUMNNAME_BudgetStatus = "BudgetStatus"; + + /** Set Budget Status. + * Indicates the current status of this budget + */ + public void setBudgetStatus (String BudgetStatus); + + /** Get Budget Status. + * Indicates the current status of this budget + */ + public String getBudgetStatus(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + /** Column name IsPrimary */ + public static final String COLUMNNAME_IsPrimary = "IsPrimary"; + + /** Set Primary. + * Indicates if this is the primary budget + */ + public void setIsPrimary (boolean IsPrimary); + + /** Get Primary. + * Indicates if this is the primary budget + */ + public boolean isPrimary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_GL_BudgetControl.java b/base/src/org/compiere/model/I_GL_BudgetControl.java new file mode 100644 index 0000000000..8b6062a353 --- /dev/null +++ b/base/src/org/compiere/model/I_GL_BudgetControl.java @@ -0,0 +1,181 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_BudgetControl + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.187 + */ + public interface I_GL_BudgetControl +{ + + /** TableName=GL_BudgetControl */ + public static final String Table_Name = "GL_BudgetControl"; + + /** AD_Table_ID=822 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name BudgetControlScope */ + public static final String COLUMNNAME_BudgetControlScope = "BudgetControlScope"; + + /** Set Control Scope. + * Scope of the Budget Control + */ + public void setBudgetControlScope (String BudgetControlScope); + + /** Get Control Scope. + * Scope of the Budget Control + */ + public String getBudgetControlScope(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name CommitmentType */ + public static final String COLUMNNAME_CommitmentType = "CommitmentType"; + + /** Set Commitment Type. + * Create Commitment and/or Reservations for Budget Control + */ + public void setCommitmentType (String CommitmentType); + + /** Get Commitment Type. + * Create Commitment and/or Reservations for Budget Control + */ + public String getCommitmentType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_BudgetControl_ID */ + public static final String COLUMNNAME_GL_BudgetControl_ID = "GL_BudgetControl_ID"; + + /** Set Budget Control. + * Budget Control + */ + public void setGL_BudgetControl_ID (int GL_BudgetControl_ID); + + /** Get Budget Control. + * Budget Control + */ + public int getGL_BudgetControl_ID(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsBeforeApproval */ + public static final String COLUMNNAME_IsBeforeApproval = "IsBeforeApproval"; + + /** Set Before Approval. + * The Check is before the (manual) approval + */ + public void setIsBeforeApproval (boolean IsBeforeApproval); + + /** Get Before Approval. + * The Check is before the (manual) approval + */ + public boolean isBeforeApproval(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_GL_Category.java b/base/src/org/compiere/model/I_GL_Category.java new file mode 100644 index 0000000000..c43a813801 --- /dev/null +++ b/base/src/org/compiere/model/I_GL_Category.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_Category + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.25 + */ + public interface I_GL_Category +{ + + /** TableName=GL_Category */ + public static final String Table_Name = "GL_Category"; + + /** AD_Table_ID=218 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name CategoryType */ + public static final String COLUMNNAME_CategoryType = "CategoryType"; + + /** Set Category Type. + * Source of the Journal with this category + */ + public void setCategoryType (String CategoryType); + + /** Get Category Type. + * Source of the Journal with this category + */ + public String getCategoryType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocBaseType */ + public static final String COLUMNNAME_DocBaseType = "DocBaseType"; + + /** Set Document BaseType. + * Logical type of document + */ + public void setDocBaseType (String DocBaseType); + + /** Get Document BaseType. + * Logical type of document + */ + public String getDocBaseType(); + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_GL_Distribution.java b/base/src/org/compiere/model/I_GL_Distribution.java new file mode 100644 index 0000000000..c6463dc0f2 --- /dev/null +++ b/base/src/org/compiere/model/I_GL_Distribution.java @@ -0,0 +1,534 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_Distribution + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.281 + */ + public interface I_GL_Distribution +{ + + /** TableName=GL_Distribution */ + public static final String Table_Name = "GL_Distribution"; + + /** AD_Table_ID=708 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name AnyAcct */ + public static final String COLUMNNAME_AnyAcct = "AnyAcct"; + + /** Set Any Account. + * Match any value of the Account segment + */ + public void setAnyAcct (boolean AnyAcct); + + /** Get Any Account. + * Match any value of the Account segment + */ + public boolean isAnyAcct(); + + /** Column name AnyActivity */ + public static final String COLUMNNAME_AnyActivity = "AnyActivity"; + + /** Set Any Activity. + * Match any value of the Activity segment + */ + public void setAnyActivity (boolean AnyActivity); + + /** Get Any Activity. + * Match any value of the Activity segment + */ + public boolean isAnyActivity(); + + /** Column name AnyBPartner */ + public static final String COLUMNNAME_AnyBPartner = "AnyBPartner"; + + /** Set Any Bus.Partner. + * Match any value of the Business Partner segment + */ + public void setAnyBPartner (boolean AnyBPartner); + + /** Get Any Bus.Partner. + * Match any value of the Business Partner segment + */ + public boolean isAnyBPartner(); + + /** Column name AnyCampaign */ + public static final String COLUMNNAME_AnyCampaign = "AnyCampaign"; + + /** Set Any Campaign. + * Match any value of the Campaign segment + */ + public void setAnyCampaign (boolean AnyCampaign); + + /** Get Any Campaign. + * Match any value of the Campaign segment + */ + public boolean isAnyCampaign(); + + /** Column name AnyLocFrom */ + public static final String COLUMNNAME_AnyLocFrom = "AnyLocFrom"; + + /** Set Any Location From. + * Match any value of the Location From segment + */ + public void setAnyLocFrom (boolean AnyLocFrom); + + /** Get Any Location From. + * Match any value of the Location From segment + */ + public boolean isAnyLocFrom(); + + /** Column name AnyLocTo */ + public static final String COLUMNNAME_AnyLocTo = "AnyLocTo"; + + /** Set Any Location To. + * Match any value of the Location To segment + */ + public void setAnyLocTo (boolean AnyLocTo); + + /** Get Any Location To. + * Match any value of the Location To segment + */ + public boolean isAnyLocTo(); + + /** Column name AnyOrg */ + public static final String COLUMNNAME_AnyOrg = "AnyOrg"; + + /** Set Any Organization. + * Match any value of the Organization segment + */ + public void setAnyOrg (boolean AnyOrg); + + /** Get Any Organization. + * Match any value of the Organization segment + */ + public boolean isAnyOrg(); + + /** Column name AnyOrgTrx */ + public static final String COLUMNNAME_AnyOrgTrx = "AnyOrgTrx"; + + /** Set Any Trx Organization. + * Match any value of the Transaction Organization segment + */ + public void setAnyOrgTrx (boolean AnyOrgTrx); + + /** Get Any Trx Organization. + * Match any value of the Transaction Organization segment + */ + public boolean isAnyOrgTrx(); + + /** Column name AnyProduct */ + public static final String COLUMNNAME_AnyProduct = "AnyProduct"; + + /** Set Any Product. + * Match any value of the Product segment + */ + public void setAnyProduct (boolean AnyProduct); + + /** Get Any Product. + * Match any value of the Product segment + */ + public boolean isAnyProduct(); + + /** Column name AnyProject */ + public static final String COLUMNNAME_AnyProject = "AnyProject"; + + /** Set Any Project. + * Match any value of the Project segment + */ + public void setAnyProject (boolean AnyProject); + + /** Get Any Project. + * Match any value of the Project segment + */ + public boolean isAnyProject(); + + /** Column name AnySalesRegion */ + public static final String COLUMNNAME_AnySalesRegion = "AnySalesRegion"; + + /** Set Any Sales Region. + * Match any value of the Sales Region segment + */ + public void setAnySalesRegion (boolean AnySalesRegion); + + /** Get Any Sales Region. + * Match any value of the Sales Region segment + */ + public boolean isAnySalesRegion(); + + /** Column name AnyUser1 */ + public static final String COLUMNNAME_AnyUser1 = "AnyUser1"; + + /** Set Any User 1. + * Match any value of the User 1 segment + */ + public void setAnyUser1 (boolean AnyUser1); + + /** Get Any User 1. + * Match any value of the User 1 segment + */ + public boolean isAnyUser1(); + + /** Column name AnyUser2 */ + public static final String COLUMNNAME_AnyUser2 = "AnyUser2"; + + /** Set Any User 2. + * Match any value of the User 2 segment + */ + public void setAnyUser2 (boolean AnyUser2); + + /** Get Any User 2. + * Match any value of the User 2 segment + */ + public boolean isAnyUser2(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_LocFrom_ID */ + public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + + /** Set Location From. + * Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID); + + /** Get Location From. + * Location that inventory was moved from + */ + public int getC_LocFrom_ID(); + + /** Column name C_LocTo_ID */ + public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + + /** Set Location To. + * Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID); + + /** Get Location To. + * Location that inventory was moved to + */ + public int getC_LocTo_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_Distribution_ID */ + public static final String COLUMNNAME_GL_Distribution_ID = "GL_Distribution_ID"; + + /** Set GL Distribution. + * General Ledger Distribution + */ + public void setGL_Distribution_ID (int GL_Distribution_ID); + + /** Get GL Distribution. + * General Ledger Distribution + */ + public int getGL_Distribution_ID(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name PercentTotal */ + public static final String COLUMNNAME_PercentTotal = "PercentTotal"; + + /** Set Total Percent. + * Sum of the Percent details + */ + public void setPercentTotal (BigDecimal PercentTotal); + + /** Get Total Percent. + * Sum of the Percent details + */ + public BigDecimal getPercentTotal(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_GL_DistributionLine.java b/base/src/org/compiere/model/I_GL_DistributionLine.java new file mode 100644 index 0000000000..6b21454f3b --- /dev/null +++ b/base/src/org/compiere/model/I_GL_DistributionLine.java @@ -0,0 +1,473 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_DistributionLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.359 + */ + public interface I_GL_DistributionLine +{ + + /** TableName=GL_DistributionLine */ + public static final String Table_Name = "GL_DistributionLine"; + + /** AD_Table_ID=707 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_LocFrom_ID */ + public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + + /** Set Location From. + * Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID); + + /** Get Location From. + * Location that inventory was moved from + */ + public int getC_LocFrom_ID(); + + /** Column name C_LocTo_ID */ + public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + + /** Set Location To. + * Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID); + + /** Get Location To. + * Location that inventory was moved to + */ + public int getC_LocTo_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_DistributionLine_ID */ + public static final String COLUMNNAME_GL_DistributionLine_ID = "GL_DistributionLine_ID"; + + /** Set GL Distribution Line. + * General Ledger Distribution Line + */ + public void setGL_DistributionLine_ID (int GL_DistributionLine_ID); + + /** Get GL Distribution Line. + * General Ledger Distribution Line + */ + public int getGL_DistributionLine_ID(); + + /** Column name GL_Distribution_ID */ + public static final String COLUMNNAME_GL_Distribution_ID = "GL_Distribution_ID"; + + /** Set GL Distribution. + * General Ledger Distribution + */ + public void setGL_Distribution_ID (int GL_Distribution_ID); + + /** Get GL Distribution. + * General Ledger Distribution + */ + public int getGL_Distribution_ID(); + + public I_GL_Distribution getI_GL_Distribution() throws Exception; + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name OverwriteAcct */ + public static final String COLUMNNAME_OverwriteAcct = "OverwriteAcct"; + + /** Set Overwrite Account. + * Overwrite the account segment Account with the value specified + */ + public void setOverwriteAcct (boolean OverwriteAcct); + + /** Get Overwrite Account. + * Overwrite the account segment Account with the value specified + */ + public boolean isOverwriteAcct(); + + /** Column name OverwriteActivity */ + public static final String COLUMNNAME_OverwriteActivity = "OverwriteActivity"; + + /** Set Overwrite Activity. + * Overwrite the account segment Activity with the value specified + */ + public void setOverwriteActivity (boolean OverwriteActivity); + + /** Get Overwrite Activity. + * Overwrite the account segment Activity with the value specified + */ + public boolean isOverwriteActivity(); + + /** Column name OverwriteBPartner */ + public static final String COLUMNNAME_OverwriteBPartner = "OverwriteBPartner"; + + /** Set Overwrite Bus.Partner. + * Overwrite the account segment Business Partner with the value specified + */ + public void setOverwriteBPartner (boolean OverwriteBPartner); + + /** Get Overwrite Bus.Partner. + * Overwrite the account segment Business Partner with the value specified + */ + public boolean isOverwriteBPartner(); + + /** Column name OverwriteCampaign */ + public static final String COLUMNNAME_OverwriteCampaign = "OverwriteCampaign"; + + /** Set Overwrite Campaign. + * Overwrite the account segment Campaign with the value specified + */ + public void setOverwriteCampaign (boolean OverwriteCampaign); + + /** Get Overwrite Campaign. + * Overwrite the account segment Campaign with the value specified + */ + public boolean isOverwriteCampaign(); + + /** Column name OverwriteLocFrom */ + public static final String COLUMNNAME_OverwriteLocFrom = "OverwriteLocFrom"; + + /** Set Overwrite Location From. + * Overwrite the account segment Location From with the value specified + */ + public void setOverwriteLocFrom (boolean OverwriteLocFrom); + + /** Get Overwrite Location From. + * Overwrite the account segment Location From with the value specified + */ + public boolean isOverwriteLocFrom(); + + /** Column name OverwriteLocTo */ + public static final String COLUMNNAME_OverwriteLocTo = "OverwriteLocTo"; + + /** Set Overwrite Location To. + * Overwrite the account segment Location From with the value specified + */ + public void setOverwriteLocTo (boolean OverwriteLocTo); + + /** Get Overwrite Location To. + * Overwrite the account segment Location From with the value specified + */ + public boolean isOverwriteLocTo(); + + /** Column name OverwriteOrg */ + public static final String COLUMNNAME_OverwriteOrg = "OverwriteOrg"; + + /** Set Overwrite Organization. + * Overwrite the account segment Organization with the value specified + */ + public void setOverwriteOrg (boolean OverwriteOrg); + + /** Get Overwrite Organization. + * Overwrite the account segment Organization with the value specified + */ + public boolean isOverwriteOrg(); + + /** Column name OverwriteOrgTrx */ + public static final String COLUMNNAME_OverwriteOrgTrx = "OverwriteOrgTrx"; + + /** Set Overwrite Trx Organuzation. + * Overwrite the account segment Transaction Organization with the value specified + */ + public void setOverwriteOrgTrx (boolean OverwriteOrgTrx); + + /** Get Overwrite Trx Organuzation. + * Overwrite the account segment Transaction Organization with the value specified + */ + public boolean isOverwriteOrgTrx(); + + /** Column name OverwriteProduct */ + public static final String COLUMNNAME_OverwriteProduct = "OverwriteProduct"; + + /** Set Overwrite Product. + * Overwrite the account segment Product with the value specified + */ + public void setOverwriteProduct (boolean OverwriteProduct); + + /** Get Overwrite Product. + * Overwrite the account segment Product with the value specified + */ + public boolean isOverwriteProduct(); + + /** Column name OverwriteProject */ + public static final String COLUMNNAME_OverwriteProject = "OverwriteProject"; + + /** Set Overwrite Project. + * Overwrite the account segment Project with the value specified + */ + public void setOverwriteProject (boolean OverwriteProject); + + /** Get Overwrite Project. + * Overwrite the account segment Project with the value specified + */ + public boolean isOverwriteProject(); + + /** Column name OverwriteSalesRegion */ + public static final String COLUMNNAME_OverwriteSalesRegion = "OverwriteSalesRegion"; + + /** Set Overwrite Sales Region. + * Overwrite the account segment Sales Region with the value specified + */ + public void setOverwriteSalesRegion (boolean OverwriteSalesRegion); + + /** Get Overwrite Sales Region. + * Overwrite the account segment Sales Region with the value specified + */ + public boolean isOverwriteSalesRegion(); + + /** Column name OverwriteUser1 */ + public static final String COLUMNNAME_OverwriteUser1 = "OverwriteUser1"; + + /** Set Overwrite User1. + * Overwrite the account segment User 1 with the value specified + */ + public void setOverwriteUser1 (boolean OverwriteUser1); + + /** Get Overwrite User1. + * Overwrite the account segment User 1 with the value specified + */ + public boolean isOverwriteUser1(); + + /** Column name OverwriteUser2 */ + public static final String COLUMNNAME_OverwriteUser2 = "OverwriteUser2"; + + /** Set Overwrite User2. + * Overwrite the account segment User 2 with the value specified + */ + public void setOverwriteUser2 (boolean OverwriteUser2); + + /** Get Overwrite User2. + * Overwrite the account segment User 2 with the value specified + */ + public boolean isOverwriteUser2(); + + /** Column name Percent */ + public static final String COLUMNNAME_Percent = "Percent"; + + /** Set Percent. + * Percentage + */ + public void setPercent (BigDecimal Percent); + + /** Get Percent. + * Percentage + */ + public BigDecimal getPercent(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_GL_Fund.java b/base/src/org/compiere/model/I_GL_Fund.java new file mode 100644 index 0000000000..28c96f176e --- /dev/null +++ b/base/src/org/compiere/model/I_GL_Fund.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_Fund + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.421 + */ + public interface I_GL_Fund +{ + + /** TableName=GL_Fund */ + public static final String Table_Name = "GL_Fund"; + + /** AD_Table_ID=823 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name DateFrom */ + public static final String COLUMNNAME_DateFrom = "DateFrom"; + + /** Set Date From. + * Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom); + + /** Get Date From. + * Starting date for a range + */ + public Timestamp getDateFrom(); + + /** Column name DateTo */ + public static final String COLUMNNAME_DateTo = "DateTo"; + + /** Set Date To. + * End date of a date range + */ + public void setDateTo (Timestamp DateTo); + + /** Get Date To. + * End date of a date range + */ + public Timestamp getDateTo(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_Fund_ID */ + public static final String COLUMNNAME_GL_Fund_ID = "GL_Fund_ID"; + + /** Set GL Fund. + * General Ledger Funds Control + */ + public void setGL_Fund_ID (int GL_Fund_ID); + + /** Get GL Fund. + * General Ledger Funds Control + */ + public int getGL_Fund_ID(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_GL_FundRestriction.java b/base/src/org/compiere/model/I_GL_FundRestriction.java new file mode 100644 index 0000000000..4dcabf4223 --- /dev/null +++ b/base/src/org/compiere/model/I_GL_FundRestriction.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_FundRestriction + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.437 + */ + public interface I_GL_FundRestriction +{ + + /** TableName=GL_FundRestriction */ + public static final String Table_Name = "GL_FundRestriction"; + + /** AD_Table_ID=824 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_FundRestriction_ID */ + public static final String COLUMNNAME_GL_FundRestriction_ID = "GL_FundRestriction_ID"; + + /** Set Fund Restriction. + * Restriction of Funds + */ + public void setGL_FundRestriction_ID (int GL_FundRestriction_ID); + + /** Get Fund Restriction. + * Restriction of Funds + */ + public int getGL_FundRestriction_ID(); + + /** Column name GL_Fund_ID */ + public static final String COLUMNNAME_GL_Fund_ID = "GL_Fund_ID"; + + /** Set GL Fund. + * General Ledger Funds Control + */ + public void setGL_Fund_ID (int GL_Fund_ID); + + /** Get GL Fund. + * General Ledger Funds Control + */ + public int getGL_Fund_ID(); + + public I_GL_Fund getI_GL_Fund() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_GL_Journal.java b/base/src/org/compiere/model/I_GL_Journal.java new file mode 100644 index 0000000000..be26c3b17b --- /dev/null +++ b/base/src/org/compiere/model/I_GL_Journal.java @@ -0,0 +1,395 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_Journal + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.468 + */ + public interface I_GL_Journal +{ + + /** TableName=GL_Journal */ + public static final String Table_Name = "GL_Journal"; + + /** AD_Table_ID=224 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + /** Column name ControlAmt */ + public static final String COLUMNNAME_ControlAmt = "ControlAmt"; + + /** Set Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt); + + /** Get Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt(); + + /** Column name CurrencyRate */ + public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; + + /** Set Rate. + * Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate); + + /** Get Rate. + * Currency Conversion Rate + */ + public BigDecimal getCurrencyRate(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getI_GL_Category() throws Exception; + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); + + public I_GL_JournalBatch getI_GL_JournalBatch() throws Exception; + + /** Column name GL_Journal_ID */ + public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; + + /** Set Journal. + * General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID); + + /** Get Journal. + * General Ledger Journal + */ + public int getGL_Journal_ID(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TotalCr */ + public static final String COLUMNNAME_TotalCr = "TotalCr"; + + /** Set Total Credit. + * Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr); + + /** Get Total Credit. + * Total Credit in document currency + */ + public BigDecimal getTotalCr(); + + /** Column name TotalDr */ + public static final String COLUMNNAME_TotalDr = "TotalDr"; + + /** Set Total Debit. + * Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr); + + /** Get Total Debit. + * Total debit in document currency + */ + public BigDecimal getTotalDr(); +} diff --git a/base/src/org/compiere/model/I_GL_JournalBatch.java b/base/src/org/compiere/model/I_GL_JournalBatch.java new file mode 100644 index 0000000000..5d1bfb7e4f --- /dev/null +++ b/base/src/org/compiere/model/I_GL_JournalBatch.java @@ -0,0 +1,309 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_JournalBatch + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.531 + */ + public interface I_GL_JournalBatch +{ + + /** TableName=GL_JournalBatch */ + public static final String Table_Name = "GL_JournalBatch"; + + /** AD_Table_ID=225 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + /** Column name ControlAmt */ + public static final String COLUMNNAME_ControlAmt = "ControlAmt"; + + /** Set Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt); + + /** Get Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getI_GL_Category() throws Exception; + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TotalCr */ + public static final String COLUMNNAME_TotalCr = "TotalCr"; + + /** Set Total Credit. + * Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr); + + /** Get Total Credit. + * Total Credit in document currency + */ + public BigDecimal getTotalCr(); + + /** Column name TotalDr */ + public static final String COLUMNNAME_TotalDr = "TotalDr"; + + /** Set Total Debit. + * Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr); + + /** Get Total Debit. + * Total debit in document currency + */ + public BigDecimal getTotalDr(); +} diff --git a/base/src/org/compiere/model/I_GL_JournalLine.java b/base/src/org/compiere/model/I_GL_JournalLine.java new file mode 100644 index 0000000000..187d8f18af --- /dev/null +++ b/base/src/org/compiere/model/I_GL_JournalLine.java @@ -0,0 +1,289 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for GL_JournalLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.578 + */ + public interface I_GL_JournalLine +{ + + /** TableName=GL_JournalLine */ + public static final String Table_Name = "GL_JournalLine"; + + /** AD_Table_ID=226 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AmtAcctCr */ + public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; + + /** Set Accounted Credit. + * Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr); + + /** Get Accounted Credit. + * Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr(); + + /** Column name AmtAcctDr */ + public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; + + /** Set Accounted Debit. + * Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr); + + /** Get Accounted Debit. + * Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr(); + + /** Column name AmtSourceCr */ + public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; + + /** Set Source Credit. + * Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr); + + /** Get Source Credit. + * Source Credit Amount + */ + public BigDecimal getAmtSourceCr(); + + /** Column name AmtSourceDr */ + public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; + + /** Set Source Debit. + * Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr); + + /** Get Source Debit. + * Source Debit Amount + */ + public BigDecimal getAmtSourceDr(); + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name C_ValidCombination_ID */ + public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; + + /** Set Combination. + * Valid Account Combination + */ + public void setC_ValidCombination_ID (int C_ValidCombination_ID); + + /** Get Combination. + * Valid Account Combination + */ + public int getC_ValidCombination_ID(); + + /** Column name CurrencyRate */ + public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; + + /** Set Rate. + * Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate); + + /** Get Rate. + * Currency Conversion Rate + */ + public BigDecimal getCurrencyRate(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_JournalLine_ID */ + public static final String COLUMNNAME_GL_JournalLine_ID = "GL_JournalLine_ID"; + + /** Set Journal Line. + * General Ledger Journal Line + */ + public void setGL_JournalLine_ID (int GL_JournalLine_ID); + + /** Get Journal Line. + * General Ledger Journal Line + */ + public int getGL_JournalLine_ID(); + + /** Column name GL_Journal_ID */ + public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; + + /** Set Journal. + * General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID); + + /** Get Journal. + * General Ledger Journal + */ + public int getGL_Journal_ID(); + + public I_GL_Journal getI_GL_Journal() throws Exception; + + /** Column name IsGenerated */ + public static final String COLUMNNAME_IsGenerated = "IsGenerated"; + + /** Set Generated. + * This Line is generated + */ + public void setIsGenerated (boolean IsGenerated); + + /** Get Generated. + * This Line is generated + */ + public boolean isGenerated(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_I_BPartner.java b/base/src/org/compiere/model/I_I_BPartner.java new file mode 100644 index 0000000000..8a310d04e9 --- /dev/null +++ b/base/src/org/compiere/model/I_I_BPartner.java @@ -0,0 +1,586 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_BPartner + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.593 + */ + public interface I_I_BPartner +{ + + /** TableName=I_BPartner */ + public static final String Table_Name = "I_BPartner"; + + /** AD_Table_ID=533 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Address1 */ + public static final String COLUMNNAME_Address1 = "Address1"; + + /** Set Address 1. + * Address line 1 for this location + */ + public void setAddress1 (String Address1); + + /** Get Address 1. + * Address line 1 for this location + */ + public String getAddress1(); + + /** Column name Address2 */ + public static final String COLUMNNAME_Address2 = "Address2"; + + /** Set Address 2. + * Address line 2 for this location + */ + public void setAddress2 (String Address2); + + /** Get Address 2. + * Address line 2 for this location + */ + public String getAddress2(); + + /** Column name BPContactGreeting */ + public static final String COLUMNNAME_BPContactGreeting = "BPContactGreeting"; + + /** Set BP Contact Greeting. + * Greeting for Business Partner Contact + */ + public void setBPContactGreeting (String BPContactGreeting); + + /** Get BP Contact Greeting. + * Greeting for Business Partner Contact + */ + public String getBPContactGreeting(); + + /** Column name Birthday */ + public static final String COLUMNNAME_Birthday = "Birthday"; + + /** Set Birthday. + * Birthday or Anniversary day + */ + public void setBirthday (Timestamp Birthday); + + /** Get Birthday. + * Birthday or Anniversary day + */ + public Timestamp getBirthday(); + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Greeting_ID */ + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + + /** Set Greeting. + * Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID); + + /** Get Greeting. + * Greeting to print on correspondence + */ + public int getC_Greeting_ID(); + + public I_C_Greeting getI_C_Greeting() throws Exception; + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + public I_C_Region getI_C_Region() throws Exception; + + /** Column name City */ + public static final String COLUMNNAME_City = "City"; + + /** Set City. + * Identifies a City + */ + public void setCity (String City); + + /** Get City. + * Identifies a City + */ + public String getCity(); + + /** Column name Comments */ + public static final String COLUMNNAME_Comments = "Comments"; + + /** Set Comments. + * Comments or additional information + */ + public void setComments (String Comments); + + /** Get Comments. + * Comments or additional information + */ + public String getComments(); + + /** Column name ContactDescription */ + public static final String COLUMNNAME_ContactDescription = "ContactDescription"; + + /** Set Contact Description. + * Description of Contact + */ + public void setContactDescription (String ContactDescription); + + /** Get Contact Description. + * Description of Contact + */ + public String getContactDescription(); + + /** Column name ContactName */ + public static final String COLUMNNAME_ContactName = "ContactName"; + + /** Set Contact Name. + * Business Partner Contact Name + */ + public void setContactName (String ContactName); + + /** Get Contact Name. + * Business Partner Contact Name + */ + public String getContactName(); + + /** Column name CountryCode */ + public static final String COLUMNNAME_CountryCode = "CountryCode"; + + /** Set ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode); + + /** Get ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode(); + + /** Column name DUNS */ + public static final String COLUMNNAME_DUNS = "DUNS"; + + /** Set D-U-N-S. + * Dun & Bradstreet Number + */ + public void setDUNS (String DUNS); + + /** Get D-U-N-S. + * Dun & Bradstreet Number + */ + public String getDUNS(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name Fax */ + public static final String COLUMNNAME_Fax = "Fax"; + + /** Set Fax. + * Facsimile number + */ + public void setFax (String Fax); + + /** Get Fax. + * Facsimile number + */ + public String getFax(); + + /** Column name GroupValue */ + public static final String COLUMNNAME_GroupValue = "GroupValue"; + + /** Set Group Key. + * Business Partner Group Key + */ + public void setGroupValue (String GroupValue); + + /** Get Group Key. + * Business Partner Group Key + */ + public String getGroupValue(); + + /** Column name I_BPartner_ID */ + public static final String COLUMNNAME_I_BPartner_ID = "I_BPartner_ID"; + + /** Set Import Business Partner */ + public void setI_BPartner_ID (int I_BPartner_ID); + + /** Get Import Business Partner */ + public int getI_BPartner_ID(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name InterestAreaName */ + public static final String COLUMNNAME_InterestAreaName = "InterestAreaName"; + + /** Set Interest Area. + * Name of the Interest Area + */ + public void setInterestAreaName (String InterestAreaName); + + /** Get Interest Area. + * Name of the Interest Area + */ + public String getInterestAreaName(); + + /** Column name NAICS */ + public static final String COLUMNNAME_NAICS = "NAICS"; + + /** Set NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS); + + /** Get NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Name2 */ + public static final String COLUMNNAME_Name2 = "Name2"; + + /** Set Name 2. + * Additional Name + */ + public void setName2 (String Name2); + + /** Get Name 2. + * Additional Name + */ + public String getName2(); + + /** Column name Password */ + public static final String COLUMNNAME_Password = "Password"; + + /** Set Password. + * Password of any length (case sensitive) + */ + public void setPassword (String Password); + + /** Get Password. + * Password of any length (case sensitive) + */ + public String getPassword(); + + /** Column name Phone */ + public static final String COLUMNNAME_Phone = "Phone"; + + /** Set Phone. + * Identifies a telephone number + */ + public void setPhone (String Phone); + + /** Get Phone. + * Identifies a telephone number + */ + public String getPhone(); + + /** Column name Phone2 */ + public static final String COLUMNNAME_Phone2 = "Phone2"; + + /** Set 2nd Phone. + * Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2); + + /** Get 2nd Phone. + * Identifies an alternate telephone number. + */ + public String getPhone2(); + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); + + /** Column name Postal_Add */ + public static final String COLUMNNAME_Postal_Add = "Postal_Add"; + + /** Set -. + * Additional ZIP or Postal code + */ + public void setPostal_Add (String Postal_Add); + + /** Get -. + * Additional ZIP or Postal code + */ + public String getPostal_Add(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name R_InterestArea_ID */ + public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; + + /** Set Interest Area. + * Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID); + + /** Get Interest Area. + * Interest Area or Topic + */ + public int getR_InterestArea_ID(); + + public I_R_InterestArea getI_R_InterestArea() throws Exception; + + /** Column name RegionName */ + public static final String COLUMNNAME_RegionName = "RegionName"; + + /** Set Region. + * Name of the Region + */ + public void setRegionName (String RegionName); + + /** Get Region. + * Name of the Region + */ + public String getRegionName(); + + /** Column name TaxID */ + public static final String COLUMNNAME_TaxID = "TaxID"; + + /** Set Tax ID. + * Tax Identification + */ + public void setTaxID (String TaxID); + + /** Get Tax ID. + * Tax Identification + */ + public String getTaxID(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_I_BankStatement.java b/base/src/org/compiere/model/I_I_BankStatement.java new file mode 100644 index 0000000000..9e56068c34 --- /dev/null +++ b/base/src/org/compiere/model/I_I_BankStatement.java @@ -0,0 +1,717 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_BankStatement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.64 + */ + public interface I_I_BankStatement +{ + + /** TableName=I_BankStatement */ + public static final String Table_Name = "I_BankStatement"; + + /** AD_Table_ID=600 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name BPartnerValue */ + public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; + + /** Set Business Partner Key. + * Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue); + + /** Get Business Partner Key. + * Key of the Business Partner + */ + public String getBPartnerValue(); + + /** Column name BankAccountNo */ + public static final String COLUMNNAME_BankAccountNo = "BankAccountNo"; + + /** Set Bank Account No. + * Bank Account Number + */ + public void setBankAccountNo (String BankAccountNo); + + /** Get Bank Account No. + * Bank Account Number + */ + public String getBankAccountNo(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_BankStatementLine_ID */ + public static final String COLUMNNAME_C_BankStatementLine_ID = "C_BankStatementLine_ID"; + + /** Set Bank statement line. + * Line on a statement from this Bank + */ + public void setC_BankStatementLine_ID (int C_BankStatementLine_ID); + + /** Get Bank statement line. + * Line on a statement from this Bank + */ + public int getC_BankStatementLine_ID(); + + /** Column name C_BankStatement_ID */ + public static final String COLUMNNAME_C_BankStatement_ID = "C_BankStatement_ID"; + + /** Set Bank Statement. + * Bank Statement of account + */ + public void setC_BankStatement_ID (int C_BankStatement_ID); + + /** Get Bank Statement. + * Bank Statement of account + */ + public int getC_BankStatement_ID(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name ChargeName */ + public static final String COLUMNNAME_ChargeName = "ChargeName"; + + /** Set Charge Name. + * Name of the Charge + */ + public void setChargeName (String ChargeName); + + /** Get Charge Name. + * Name of the Charge + */ + public String getChargeName(); + + /** Column name CreatePayment */ + public static final String COLUMNNAME_CreatePayment = "CreatePayment"; + + /** Set Create Payment */ + public void setCreatePayment (String CreatePayment); + + /** Get Create Payment */ + public String getCreatePayment(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EftAmt */ + public static final String COLUMNNAME_EftAmt = "EftAmt"; + + /** Set EFT Amount. + * Electronic Funds Transfer Amount + */ + public void setEftAmt (BigDecimal EftAmt); + + /** Get EFT Amount. + * Electronic Funds Transfer Amount + */ + public BigDecimal getEftAmt(); + + /** Column name EftCheckNo */ + public static final String COLUMNNAME_EftCheckNo = "EftCheckNo"; + + /** Set EFT Check No. + * Electronic Funds Transfer Check No + */ + public void setEftCheckNo (String EftCheckNo); + + /** Get EFT Check No. + * Electronic Funds Transfer Check No + */ + public String getEftCheckNo(); + + /** Column name EftCurrency */ + public static final String COLUMNNAME_EftCurrency = "EftCurrency"; + + /** Set EFT Currency. + * Electronic Funds Transfer Currency + */ + public void setEftCurrency (String EftCurrency); + + /** Get EFT Currency. + * Electronic Funds Transfer Currency + */ + public String getEftCurrency(); + + /** Column name EftMemo */ + public static final String COLUMNNAME_EftMemo = "EftMemo"; + + /** Set EFT Memo. + * Electronic Funds Transfer Memo + */ + public void setEftMemo (String EftMemo); + + /** Get EFT Memo. + * Electronic Funds Transfer Memo + */ + public String getEftMemo(); + + /** Column name EftPayee */ + public static final String COLUMNNAME_EftPayee = "EftPayee"; + + /** Set EFT Payee. + * Electronic Funds Transfer Payee information + */ + public void setEftPayee (String EftPayee); + + /** Get EFT Payee. + * Electronic Funds Transfer Payee information + */ + public String getEftPayee(); + + /** Column name EftPayeeAccount */ + public static final String COLUMNNAME_EftPayeeAccount = "EftPayeeAccount"; + + /** Set EFT Payee Account. + * Electronic Funds Transfer Payyee Account Information + */ + public void setEftPayeeAccount (String EftPayeeAccount); + + /** Get EFT Payee Account. + * Electronic Funds Transfer Payyee Account Information + */ + public String getEftPayeeAccount(); + + /** Column name EftReference */ + public static final String COLUMNNAME_EftReference = "EftReference"; + + /** Set EFT Reference. + * Electronic Funds Transfer Reference + */ + public void setEftReference (String EftReference); + + /** Get EFT Reference. + * Electronic Funds Transfer Reference + */ + public String getEftReference(); + + /** Column name EftStatementDate */ + public static final String COLUMNNAME_EftStatementDate = "EftStatementDate"; + + /** Set EFT Statement Date. + * Electronic Funds Transfer Statement Date + */ + public void setEftStatementDate (Timestamp EftStatementDate); + + /** Get EFT Statement Date. + * Electronic Funds Transfer Statement Date + */ + public Timestamp getEftStatementDate(); + + /** Column name EftStatementLineDate */ + public static final String COLUMNNAME_EftStatementLineDate = "EftStatementLineDate"; + + /** Set EFT Statement Line Date. + * Electronic Funds Transfer Statement Line Date + */ + public void setEftStatementLineDate (Timestamp EftStatementLineDate); + + /** Get EFT Statement Line Date. + * Electronic Funds Transfer Statement Line Date + */ + public Timestamp getEftStatementLineDate(); + + /** Column name EftStatementReference */ + public static final String COLUMNNAME_EftStatementReference = "EftStatementReference"; + + /** Set EFT Statement Reference. + * Electronic Funds Transfer Statement Reference + */ + public void setEftStatementReference (String EftStatementReference); + + /** Get EFT Statement Reference. + * Electronic Funds Transfer Statement Reference + */ + public String getEftStatementReference(); + + /** Column name EftTrxID */ + public static final String COLUMNNAME_EftTrxID = "EftTrxID"; + + /** Set EFT Trx ID. + * Electronic Funds Transfer Transaction ID + */ + public void setEftTrxID (String EftTrxID); + + /** Get EFT Trx ID. + * Electronic Funds Transfer Transaction ID + */ + public String getEftTrxID(); + + /** Column name EftTrxType */ + public static final String COLUMNNAME_EftTrxType = "EftTrxType"; + + /** Set EFT Trx Type. + * Electronic Funds Transfer Transaction Type + */ + public void setEftTrxType (String EftTrxType); + + /** Get EFT Trx Type. + * Electronic Funds Transfer Transaction Type + */ + public String getEftTrxType(); + + /** Column name EftValutaDate */ + public static final String COLUMNNAME_EftValutaDate = "EftValutaDate"; + + /** Set EFT Effective Date. + * Electronic Funds Transfer Valuta (effective) Date + */ + public void setEftValutaDate (Timestamp EftValutaDate); + + /** Get EFT Effective Date. + * Electronic Funds Transfer Valuta (effective) Date + */ + public Timestamp getEftValutaDate(); + + /** Column name ISO_Code */ + public static final String COLUMNNAME_ISO_Code = "ISO_Code"; + + /** Set ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code); + + /** Get ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code(); + + /** Column name I_BankStatement_ID */ + public static final String COLUMNNAME_I_BankStatement_ID = "I_BankStatement_ID"; + + /** Set Import Bank Statement. + * Import of the Bank Statement + */ + public void setI_BankStatement_ID (int I_BankStatement_ID); + + /** Get Import Bank Statement. + * Import of the Bank Statement + */ + public int getI_BankStatement_ID(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name InterestAmt */ + public static final String COLUMNNAME_InterestAmt = "InterestAmt"; + + /** Set Interest Amount. + * Interest Amount + */ + public void setInterestAmt (BigDecimal InterestAmt); + + /** Get Interest Amount. + * Interest Amount + */ + public BigDecimal getInterestAmt(); + + /** Column name InvoiceDocumentNo */ + public static final String COLUMNNAME_InvoiceDocumentNo = "InvoiceDocumentNo"; + + /** Set Invoice Document No. + * Document Number of the Invoice + */ + public void setInvoiceDocumentNo (String InvoiceDocumentNo); + + /** Get Invoice Document No. + * Document Number of the Invoice + */ + public String getInvoiceDocumentNo(); + + /** Column name IsReversal */ + public static final String COLUMNNAME_IsReversal = "IsReversal"; + + /** Set Reversal. + * This is a reversing transaction + */ + public void setIsReversal (boolean IsReversal); + + /** Get Reversal. + * This is a reversing transaction + */ + public boolean isReversal(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineDescription */ + public static final String COLUMNNAME_LineDescription = "LineDescription"; + + /** Set Line Description. + * Description of the Line + */ + public void setLineDescription (String LineDescription); + + /** Get Line Description. + * Description of the Line + */ + public String getLineDescription(); + + /** Column name MatchStatement */ + public static final String COLUMNNAME_MatchStatement = "MatchStatement"; + + /** Set Match Statement */ + public void setMatchStatement (String MatchStatement); + + /** Get Match Statement */ + public String getMatchStatement(); + + /** Column name Memo */ + public static final String COLUMNNAME_Memo = "Memo"; + + /** Set Memo. + * Memo Text + */ + public void setMemo (String Memo); + + /** Get Memo. + * Memo Text + */ + public String getMemo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PaymentDocumentNo */ + public static final String COLUMNNAME_PaymentDocumentNo = "PaymentDocumentNo"; + + /** Set Payment Document No. + * Document number of the Payment + */ + public void setPaymentDocumentNo (String PaymentDocumentNo); + + /** Get Payment Document No. + * Document number of the Payment + */ + public String getPaymentDocumentNo(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReferenceNo */ + public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; + + /** Set Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo); + + /** Get Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo(); + + /** Column name RoutingNo */ + public static final String COLUMNNAME_RoutingNo = "RoutingNo"; + + /** Set Routing No. + * Bank Routing Number + */ + public void setRoutingNo (String RoutingNo); + + /** Get Routing No. + * Bank Routing Number + */ + public String getRoutingNo(); + + /** Column name StatementDate */ + public static final String COLUMNNAME_StatementDate = "StatementDate"; + + /** Set Statement date. + * Date of the statement + */ + public void setStatementDate (Timestamp StatementDate); + + /** Get Statement date. + * Date of the statement + */ + public Timestamp getStatementDate(); + + /** Column name StatementLineDate */ + public static final String COLUMNNAME_StatementLineDate = "StatementLineDate"; + + /** Set Statement Line Date. + * Date of the Statement Line + */ + public void setStatementLineDate (Timestamp StatementLineDate); + + /** Get Statement Line Date. + * Date of the Statement Line + */ + public Timestamp getStatementLineDate(); + + /** Column name StmtAmt */ + public static final String COLUMNNAME_StmtAmt = "StmtAmt"; + + /** Set Statement amount. + * Statement Amount + */ + public void setStmtAmt (BigDecimal StmtAmt); + + /** Get Statement amount. + * Statement Amount + */ + public BigDecimal getStmtAmt(); + + /** Column name TrxAmt */ + public static final String COLUMNNAME_TrxAmt = "TrxAmt"; + + /** Set Transaction Amount. + * Amount of a transaction + */ + public void setTrxAmt (BigDecimal TrxAmt); + + /** Get Transaction Amount. + * Amount of a transaction + */ + public BigDecimal getTrxAmt(); + + /** Column name TrxType */ + public static final String COLUMNNAME_TrxType = "TrxType"; + + /** Set Transaction Type. + * Type of credit card transaction + */ + public void setTrxType (String TrxType); + + /** Get Transaction Type. + * Type of credit card transaction + */ + public String getTrxType(); + + /** Column name ValutaDate */ + public static final String COLUMNNAME_ValutaDate = "ValutaDate"; + + /** Set Effective date. + * Date when money is available + */ + public void setValutaDate (Timestamp ValutaDate); + + /** Get Effective date. + * Date when money is available + */ + public Timestamp getValutaDate(); +} diff --git a/base/src/org/compiere/model/I_I_Conversion_Rate.java b/base/src/org/compiere/model/I_I_Conversion_Rate.java new file mode 100644 index 0000000000..321f8e32db --- /dev/null +++ b/base/src/org/compiere/model/I_I_Conversion_Rate.java @@ -0,0 +1,283 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_Conversion_Rate + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.703 + */ + public interface I_I_Conversion_Rate +{ + + /** TableName=I_Conversion_Rate */ + public static final String Table_Name = "I_Conversion_Rate"; + + /** AD_Table_ID=641 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Conversion_Rate_ID */ + public static final String COLUMNNAME_C_Conversion_Rate_ID = "C_Conversion_Rate_ID"; + + /** Set Conversion Rate. + * Rate used for converting currencies + */ + public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID); + + /** Get Conversion Rate. + * Rate used for converting currencies + */ + public int getC_Conversion_Rate_ID(); + + public I_C_Conversion_Rate getI_C_Conversion_Rate() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Currency_ID_To */ + public static final String COLUMNNAME_C_Currency_ID_To = "C_Currency_ID_To"; + + /** Set Currency To. + * Target currency + */ + public void setC_Currency_ID_To (int C_Currency_ID_To); + + /** Get Currency To. + * Target currency + */ + public int getC_Currency_ID_To(); + + /** Column name ConversionTypeValue */ + public static final String COLUMNNAME_ConversionTypeValue = "ConversionTypeValue"; + + /** Set Currency Type Key. + * Key value for the Currency Conversion Rate Type + */ + public void setConversionTypeValue (String ConversionTypeValue); + + /** Get Currency Type Key. + * Key value for the Currency Conversion Rate Type + */ + public String getConversionTypeValue(); + + /** Column name CreateReciprocalRate */ + public static final String COLUMNNAME_CreateReciprocalRate = "CreateReciprocalRate"; + + /** Set Create Reciprocal Rate. + * Create Reciprocal Rate from current information + */ + public void setCreateReciprocalRate (boolean CreateReciprocalRate); + + /** Get Create Reciprocal Rate. + * Create Reciprocal Rate from current information + */ + public boolean isCreateReciprocalRate(); + + /** Column name DivideRate */ + public static final String COLUMNNAME_DivideRate = "DivideRate"; + + /** Set Divide Rate. + * To convert Source number to Target number, the Source is divided + */ + public void setDivideRate (BigDecimal DivideRate); + + /** Get Divide Rate. + * To convert Source number to Target number, the Source is divided + */ + public BigDecimal getDivideRate(); + + /** Column name ISO_Code */ + public static final String COLUMNNAME_ISO_Code = "ISO_Code"; + + /** Set ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code); + + /** Get ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code(); + + /** Column name ISO_Code_To */ + public static final String COLUMNNAME_ISO_Code_To = "ISO_Code_To"; + + /** Set ISO Currency To Code. + * Three letter ISO 4217 Code of the To Currency + */ + public void setISO_Code_To (String ISO_Code_To); + + /** Get ISO Currency To Code. + * Three letter ISO 4217 Code of the To Currency + */ + public String getISO_Code_To(); + + /** Column name I_Conversion_Rate_ID */ + public static final String COLUMNNAME_I_Conversion_Rate_ID = "I_Conversion_Rate_ID"; + + /** Set Import Conversion Rate. + * Import Currency Conversion Rate + */ + public void setI_Conversion_Rate_ID (int I_Conversion_Rate_ID); + + /** Get Import Conversion Rate. + * Import Currency Conversion Rate + */ + public int getI_Conversion_Rate_ID(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name MultiplyRate */ + public static final String COLUMNNAME_MultiplyRate = "MultiplyRate"; + + /** Set Multiply Rate. + * Rate to multiple the source by to calculate the target. + */ + public void setMultiplyRate (BigDecimal MultiplyRate); + + /** Get Multiply Rate. + * Rate to multiple the source by to calculate the target. + */ + public BigDecimal getMultiplyRate(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_I_ElementValue.java b/base/src/org/compiere/model/I_I_ElementValue.java new file mode 100644 index 0000000000..b587060b33 --- /dev/null +++ b/base/src/org/compiere/model/I_I_ElementValue.java @@ -0,0 +1,359 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_ElementValue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.796 + */ + public interface I_I_ElementValue +{ + + /** TableName=I_ElementValue */ + public static final String Table_Name = "I_ElementValue"; + + /** AD_Table_ID=534 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + /** Column name AccountSign */ + public static final String COLUMNNAME_AccountSign = "AccountSign"; + + /** Set Account Sign. + * Indicates the Natural Sign of the Account as a Debit or Credit + */ + public void setAccountSign (String AccountSign); + + /** Get Account Sign. + * Indicates the Natural Sign of the Account as a Debit or Credit + */ + public String getAccountSign(); + + /** Column name AccountType */ + public static final String COLUMNNAME_AccountType = "AccountType"; + + /** Set Account Type. + * Indicates the type of account + */ + public void setAccountType (String AccountType); + + /** Get Account Type. + * Indicates the type of account + */ + public String getAccountType(); + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + public I_C_ElementValue getI_C_ElementValue() throws Exception; + + /** Column name C_Element_ID */ + public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; + + /** Set Element. + * Accounting Element + */ + public void setC_Element_ID (int C_Element_ID); + + /** Get Element. + * Accounting Element + */ + public int getC_Element_ID(); + + public I_C_Element getI_C_Element() throws Exception; + + /** Column name Default_Account */ + public static final String COLUMNNAME_Default_Account = "Default_Account"; + + /** Set Default Account. + * Name of the Default Account Column + */ + public void setDefault_Account (String Default_Account); + + /** Get Default Account. + * Name of the Default Account Column + */ + public String getDefault_Account(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ElementName */ + public static final String COLUMNNAME_ElementName = "ElementName"; + + /** Set Element Name. + * Name of the Element + */ + public void setElementName (String ElementName); + + /** Get Element Name. + * Name of the Element + */ + public String getElementName(); + + /** Column name I_ElementValue_ID */ + public static final String COLUMNNAME_I_ElementValue_ID = "I_ElementValue_ID"; + + /** Set Import Account. + * Import Account Value + */ + public void setI_ElementValue_ID (int I_ElementValue_ID); + + /** Get Import Account. + * Import Account Value + */ + public int getI_ElementValue_ID(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name IsDocControlled */ + public static final String COLUMNNAME_IsDocControlled = "IsDocControlled"; + + /** Set Document Controlled. + * Control account - If an account is controlled by a document, you cannot post manually to it + */ + public void setIsDocControlled (boolean IsDocControlled); + + /** Get Document Controlled. + * Control account - If an account is controlled by a document, you cannot post manually to it + */ + public boolean isDocControlled(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ParentElementValue_ID */ + public static final String COLUMNNAME_ParentElementValue_ID = "ParentElementValue_ID"; + + /** Set Parent Account. + * The parent (summary) account + */ + public void setParentElementValue_ID (int ParentElementValue_ID); + + /** Get Parent Account. + * The parent (summary) account + */ + public int getParentElementValue_ID(); + + /** Column name ParentValue */ + public static final String COLUMNNAME_ParentValue = "ParentValue"; + + /** Set Parent Key. + * Key if the Parent + */ + public void setParentValue (String ParentValue); + + /** Get Parent Key. + * Key if the Parent + */ + public String getParentValue(); + + /** Column name PostActual */ + public static final String COLUMNNAME_PostActual = "PostActual"; + + /** Set Post Actual. + * Actual Values can be posted + */ + public void setPostActual (boolean PostActual); + + /** Get Post Actual. + * Actual Values can be posted + */ + public boolean isPostActual(); + + /** Column name PostBudget */ + public static final String COLUMNNAME_PostBudget = "PostBudget"; + + /** Set Post Budget. + * Budget values can be posted + */ + public void setPostBudget (boolean PostBudget); + + /** Get Post Budget. + * Budget values can be posted + */ + public boolean isPostBudget(); + + /** Column name PostEncumbrance */ + public static final String COLUMNNAME_PostEncumbrance = "PostEncumbrance"; + + /** Set Post Encumbrance. + * Post commitments to this account + */ + public void setPostEncumbrance (boolean PostEncumbrance); + + /** Get Post Encumbrance. + * Post commitments to this account + */ + public boolean isPostEncumbrance(); + + /** Column name PostStatistical */ + public static final String COLUMNNAME_PostStatistical = "PostStatistical"; + + /** Set Post Statistical. + * Post statistical quantities to this account? + */ + public void setPostStatistical (boolean PostStatistical); + + /** Get Post Statistical. + * Post statistical quantities to this account? + */ + public boolean isPostStatistical(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_I_GLJournal.java b/base/src/org/compiere/model/I_I_GLJournal.java new file mode 100644 index 0000000000..5d91febebc --- /dev/null +++ b/base/src/org/compiere/model/I_I_GLJournal.java @@ -0,0 +1,845 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_GLJournal + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.828 + */ + public interface I_I_GLJournal +{ + + /** TableName=I_GLJournal */ + public static final String Table_Name = "I_GLJournal"; + + /** AD_Table_ID=599 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgDoc_ID */ + public static final String COLUMNNAME_AD_OrgDoc_ID = "AD_OrgDoc_ID"; + + /** Set Document Org. + * Document Organization (independent from account organization) + */ + public void setAD_OrgDoc_ID (int AD_OrgDoc_ID); + + /** Get Document Org. + * Document Organization (independent from account organization) + */ + public int getAD_OrgDoc_ID(); + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AccountValue */ + public static final String COLUMNNAME_AccountValue = "AccountValue"; + + /** Set Account Key. + * Key of Account Element + */ + public void setAccountValue (String AccountValue); + + /** Get Account Key. + * Key of Account Element + */ + public String getAccountValue(); + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name AcctSchemaName */ + public static final String COLUMNNAME_AcctSchemaName = "AcctSchemaName"; + + /** Set Account Schema Name. + * Name of the Accounting Schema + */ + public void setAcctSchemaName (String AcctSchemaName); + + /** Get Account Schema Name. + * Name of the Accounting Schema + */ + public String getAcctSchemaName(); + + /** Column name AmtAcctCr */ + public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; + + /** Set Accounted Credit. + * Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr); + + /** Get Accounted Credit. + * Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr(); + + /** Column name AmtAcctDr */ + public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; + + /** Set Accounted Debit. + * Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr); + + /** Get Accounted Debit. + * Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr(); + + /** Column name AmtSourceCr */ + public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; + + /** Set Source Credit. + * Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr); + + /** Get Source Credit. + * Source Credit Amount + */ + public BigDecimal getAmtSourceCr(); + + /** Column name AmtSourceDr */ + public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; + + /** Set Source Debit. + * Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr); + + /** Get Source Debit. + * Source Debit Amount + */ + public BigDecimal getAmtSourceDr(); + + /** Column name BPartnerValue */ + public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; + + /** Set Business Partner Key. + * Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue); + + /** Get Business Partner Key. + * Key of the Business Partner + */ + public String getBPartnerValue(); + + /** Column name BatchDescription */ + public static final String COLUMNNAME_BatchDescription = "BatchDescription"; + + /** Set Batch Description. + * Description of the Batch + */ + public void setBatchDescription (String BatchDescription); + + /** Get Batch Description. + * Description of the Batch + */ + public String getBatchDescription(); + + /** Column name BatchDocumentNo */ + public static final String COLUMNNAME_BatchDocumentNo = "BatchDocumentNo"; + + /** Set Batch Document No. + * Document Number of the Batch + */ + public void setBatchDocumentNo (String BatchDocumentNo); + + /** Get Batch Document No. + * Document Number of the Batch + */ + public String getBatchDocumentNo(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_LocFrom_ID */ + public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + + /** Set Location From. + * Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID); + + /** Get Location From. + * Location that inventory was moved from + */ + public int getC_LocFrom_ID(); + + /** Column name C_LocTo_ID */ + public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + + /** Set Location To. + * Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID); + + /** Get Location To. + * Location that inventory was moved to + */ + public int getC_LocTo_ID(); + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getI_C_Period() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name C_ValidCombination_ID */ + public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; + + /** Set Combination. + * Valid Account Combination + */ + public void setC_ValidCombination_ID (int C_ValidCombination_ID); + + /** Get Combination. + * Valid Account Combination + */ + public int getC_ValidCombination_ID(); + + /** Column name CategoryName */ + public static final String COLUMNNAME_CategoryName = "CategoryName"; + + /** Set Category Name. + * Name of the Category + */ + public void setCategoryName (String CategoryName); + + /** Get Category Name. + * Name of the Category + */ + public String getCategoryName(); + + /** Column name ClientValue */ + public static final String COLUMNNAME_ClientValue = "ClientValue"; + + /** Set Client Key. + * Key of the Client + */ + public void setClientValue (String ClientValue); + + /** Get Client Key. + * Key of the Client + */ + public String getClientValue(); + + /** Column name ConversionTypeValue */ + public static final String COLUMNNAME_ConversionTypeValue = "ConversionTypeValue"; + + /** Set Currency Type Key. + * Key value for the Currency Conversion Rate Type + */ + public void setConversionTypeValue (String ConversionTypeValue); + + /** Get Currency Type Key. + * Key value for the Currency Conversion Rate Type + */ + public String getConversionTypeValue(); + + /** Column name CurrencyRate */ + public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; + + /** Set Rate. + * Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate); + + /** Get Rate. + * Currency Conversion Rate + */ + public BigDecimal getCurrencyRate(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocTypeName */ + public static final String COLUMNNAME_DocTypeName = "DocTypeName"; + + /** Set Document Type Name. + * Name of the Document Type + */ + public void setDocTypeName (String DocTypeName); + + /** Get Document Type Name. + * Name of the Document Type + */ + public String getDocTypeName(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getI_GL_Category() throws Exception; + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); + + /** Column name GL_JournalLine_ID */ + public static final String COLUMNNAME_GL_JournalLine_ID = "GL_JournalLine_ID"; + + /** Set Journal Line. + * General Ledger Journal Line + */ + public void setGL_JournalLine_ID (int GL_JournalLine_ID); + + /** Get Journal Line. + * General Ledger Journal Line + */ + public int getGL_JournalLine_ID(); + + /** Column name GL_Journal_ID */ + public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; + + /** Set Journal. + * General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID); + + /** Get Journal. + * General Ledger Journal + */ + public int getGL_Journal_ID(); + + /** Column name ISO_Code */ + public static final String COLUMNNAME_ISO_Code = "ISO_Code"; + + /** Set ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code); + + /** Get ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_GLJournal_ID */ + public static final String COLUMNNAME_I_GLJournal_ID = "I_GLJournal_ID"; + + /** Set Import GL Journal. + * Import General Ledger Journal + */ + public void setI_GLJournal_ID (int I_GLJournal_ID); + + /** Get Import GL Journal. + * Import General Ledger Journal + */ + public int getI_GLJournal_ID(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name IsCreateNewBatch */ + public static final String COLUMNNAME_IsCreateNewBatch = "IsCreateNewBatch"; + + /** Set Create New Batch. + * If selected a new batch is created + */ + public void setIsCreateNewBatch (boolean IsCreateNewBatch); + + /** Get Create New Batch. + * If selected a new batch is created + */ + public boolean isCreateNewBatch(); + + /** Column name IsCreateNewJournal */ + public static final String COLUMNNAME_IsCreateNewJournal = "IsCreateNewJournal"; + + /** Set Create New Journal. + * If selected a new journal within the batch is created + */ + public void setIsCreateNewJournal (boolean IsCreateNewJournal); + + /** Get Create New Journal. + * If selected a new journal within the batch is created + */ + public boolean isCreateNewJournal(); + + /** Column name JournalDocumentNo */ + public static final String COLUMNNAME_JournalDocumentNo = "JournalDocumentNo"; + + /** Set Journal Document No. + * Document number of the Journal + */ + public void setJournalDocumentNo (String JournalDocumentNo); + + /** Get Journal Document No. + * Document number of the Journal + */ + public String getJournalDocumentNo(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name OrgTrxValue */ + public static final String COLUMNNAME_OrgTrxValue = "OrgTrxValue"; + + /** Set Trx Org Key. + * Key of the Transaction Organization + */ + public void setOrgTrxValue (String OrgTrxValue); + + /** Get Trx Org Key. + * Key of the Transaction Organization + */ + public String getOrgTrxValue(); + + /** Column name OrgValue */ + public static final String COLUMNNAME_OrgValue = "OrgValue"; + + /** Set Org Key. + * Key of the Organization + */ + public void setOrgValue (String OrgValue); + + /** Get Org Key. + * Key of the Organization + */ + public String getOrgValue(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProductValue */ + public static final String COLUMNNAME_ProductValue = "ProductValue"; + + /** Set Product Key. + * Key of the Product + */ + public void setProductValue (String ProductValue); + + /** Get Product Key. + * Key of the Product + */ + public String getProductValue(); + + /** Column name ProjectValue */ + public static final String COLUMNNAME_ProjectValue = "ProjectValue"; + + /** Set Project Key. + * Key of the Project + */ + public void setProjectValue (String ProjectValue); + + /** Get Project Key. + * Key of the Project + */ + public String getProjectValue(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_I_InOutLineConfirm.java b/base/src/org/compiere/model/I_I_InOutLineConfirm.java new file mode 100644 index 0000000000..c9937f0254 --- /dev/null +++ b/base/src/org/compiere/model/I_I_InOutLineConfirm.java @@ -0,0 +1,199 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_InOutLineConfirm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:47.968 + */ + public interface I_I_InOutLineConfirm +{ + + /** TableName=I_InOutLineConfirm */ + public static final String Table_Name = "I_InOutLineConfirm"; + + /** AD_Table_ID=740 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name ConfirmationNo */ + public static final String COLUMNNAME_ConfirmationNo = "ConfirmationNo"; + + /** Set Confirmation No. + * Confirmation Number + */ + public void setConfirmationNo (String ConfirmationNo); + + /** Get Confirmation No. + * Confirmation Number + */ + public String getConfirmationNo(); + + /** Column name ConfirmedQty */ + public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; + + /** Set Confirmed Quantity. + * Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty); + + /** Get Confirmed Quantity. + * Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DifferenceQty */ + public static final String COLUMNNAME_DifferenceQty = "DifferenceQty"; + + /** Set Difference. + * Difference Quantity + */ + public void setDifferenceQty (BigDecimal DifferenceQty); + + /** Get Difference. + * Difference Quantity + */ + public BigDecimal getDifferenceQty(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_InOutLineConfirm_ID */ + public static final String COLUMNNAME_I_InOutLineConfirm_ID = "I_InOutLineConfirm_ID"; + + /** Set Ship/Receipt Confirmation Import Line. + * Material Shipment or Receipt Confirmation Import Line + */ + public void setI_InOutLineConfirm_ID (int I_InOutLineConfirm_ID); + + /** Get Ship/Receipt Confirmation Import Line. + * Material Shipment or Receipt Confirmation Import Line + */ + public int getI_InOutLineConfirm_ID(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name M_InOutLineConfirm_ID */ + public static final String COLUMNNAME_M_InOutLineConfirm_ID = "M_InOutLineConfirm_ID"; + + /** Set Ship/Receipt Confirmation Line. + * Material Shipment or Receipt Confirmation Line + */ + public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID); + + /** Get Ship/Receipt Confirmation Line. + * Material Shipment or Receipt Confirmation Line + */ + public int getM_InOutLineConfirm_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ScrappedQty */ + public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; + + /** Set Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty); + + /** Get Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty(); +} diff --git a/base/src/org/compiere/model/I_I_Inventory.java b/base/src/org/compiere/model/I_I_Inventory.java new file mode 100644 index 0000000000..f09668fc6b --- /dev/null +++ b/base/src/org/compiere/model/I_I_Inventory.java @@ -0,0 +1,359 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_Inventory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.015 + */ + public interface I_I_Inventory +{ + + /** TableName=I_Inventory */ + public static final String Table_Name = "I_Inventory"; + + /** AD_Table_ID=572 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_Inventory_ID */ + public static final String COLUMNNAME_I_Inventory_ID = "I_Inventory_ID"; + + /** Set Import Inventory. + * Import Inventory Transactions + */ + public void setI_Inventory_ID (int I_Inventory_ID); + + /** Get Import Inventory. + * Import Inventory Transactions + */ + public int getI_Inventory_ID(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name LocatorValue */ + public static final String COLUMNNAME_LocatorValue = "LocatorValue"; + + /** Set Locator Key. + * Key of the Warehouse Locator + */ + public void setLocatorValue (String LocatorValue); + + /** Get Locator Key. + * Key of the Warehouse Locator + */ + public String getLocatorValue(); + + /** Column name Lot */ + public static final String COLUMNNAME_Lot = "Lot"; + + /** Set Lot No. + * Lot number (alphanumeric) + */ + public void setLot (String Lot); + + /** Get Lot No. + * Lot number (alphanumeric) + */ + public String getLot(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + public I_M_Locator getI_M_Locator() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name QtyBook */ + public static final String COLUMNNAME_QtyBook = "QtyBook"; + + /** Set Quantity book. + * Book Quantity + */ + public void setQtyBook (BigDecimal QtyBook); + + /** Get Quantity book. + * Book Quantity + */ + public BigDecimal getQtyBook(); + + /** Column name QtyCount */ + public static final String COLUMNNAME_QtyCount = "QtyCount"; + + /** Set Quantity count. + * Counted Quantity + */ + public void setQtyCount (BigDecimal QtyCount); + + /** Get Quantity count. + * Counted Quantity + */ + public BigDecimal getQtyCount(); + + /** Column name SerNo */ + public static final String COLUMNNAME_SerNo = "SerNo"; + + /** Set Serial No. + * Product Serial Number + */ + public void setSerNo (String SerNo); + + /** Get Serial No. + * Product Serial Number + */ + public String getSerNo(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name WarehouseValue */ + public static final String COLUMNNAME_WarehouseValue = "WarehouseValue"; + + /** Set Warehouse Key. + * Key of the Warehouse + */ + public void setWarehouseValue (String WarehouseValue); + + /** Get Warehouse Key. + * Key of the Warehouse + */ + public String getWarehouseValue(); + + /** Column name X */ + public static final String COLUMNNAME_X = "X"; + + /** Set Aisle (X). + * X dimension, e.g., Aisle + */ + public void setX (String X); + + /** Get Aisle (X). + * X dimension, e.g., Aisle + */ + public String getX(); + + /** Column name Y */ + public static final String COLUMNNAME_Y = "Y"; + + /** Set Bin (Y). + * Y dimension, e.g., Bin + */ + public void setY (String Y); + + /** Get Bin (Y). + * Y dimension, e.g., Bin + */ + public String getY(); + + /** Column name Z */ + public static final String COLUMNNAME_Z = "Z"; + + /** Set Level (Z). + * Z dimension, e.g., Level + */ + public void setZ (String Z); + + /** Get Level (Z). + * Z dimension, e.g., Level + */ + public String getZ(); +} diff --git a/base/src/org/compiere/model/I_I_Invoice.java b/base/src/org/compiere/model/I_I_Invoice.java new file mode 100644 index 0000000000..99dd9c6aa4 --- /dev/null +++ b/base/src/org/compiere/model/I_I_Invoice.java @@ -0,0 +1,728 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_Invoice + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.046 + */ + public interface I_I_Invoice +{ + + /** TableName=I_Invoice */ + public static final String Table_Name = "I_Invoice"; + + /** AD_Table_ID=598 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Address1 */ + public static final String COLUMNNAME_Address1 = "Address1"; + + /** Set Address 1. + * Address line 1 for this location + */ + public void setAddress1 (String Address1); + + /** Get Address 1. + * Address line 1 for this location + */ + public String getAddress1(); + + /** Column name Address2 */ + public static final String COLUMNNAME_Address2 = "Address2"; + + /** Set Address 2. + * Address line 2 for this location + */ + public void setAddress2 (String Address2); + + /** Get Address 2. + * Address line 2 for this location + */ + public String getAddress2(); + + /** Column name BPartnerValue */ + public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; + + /** Set Business Partner Key. + * Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue); + + /** Get Business Partner Key. + * Key of the Business Partner + */ + public String getBPartnerValue(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + public I_C_Region getI_C_Region() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name City */ + public static final String COLUMNNAME_City = "City"; + + /** Set City. + * Identifies a City + */ + public void setCity (String City); + + /** Get City. + * Identifies a City + */ + public String getCity(); + + /** Column name ContactName */ + public static final String COLUMNNAME_ContactName = "ContactName"; + + /** Set Contact Name. + * Business Partner Contact Name + */ + public void setContactName (String ContactName); + + /** Get Contact Name. + * Business Partner Contact Name + */ + public String getContactName(); + + /** Column name CountryCode */ + public static final String COLUMNNAME_CountryCode = "CountryCode"; + + /** Set ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (boolean CountryCode); + + /** Get ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public boolean isCountryCode(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateInvoiced */ + public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; + + /** Set Date Invoiced. + * Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced); + + /** Get Date Invoiced. + * Date printed on Invoice + */ + public Timestamp getDateInvoiced(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocTypeName */ + public static final String COLUMNNAME_DocTypeName = "DocTypeName"; + + /** Set Document Type Name. + * Name of the Document Type + */ + public void setDocTypeName (String DocTypeName); + + /** Get Document Type Name. + * Name of the Document Type + */ + public String getDocTypeName(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_Invoice_ID */ + public static final String COLUMNNAME_I_Invoice_ID = "I_Invoice_ID"; + + /** Set Import Invoice. + * Import Invoice + */ + public void setI_Invoice_ID (int I_Invoice_ID); + + /** Get Import Invoice. + * Import Invoice + */ + public int getI_Invoice_ID(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name LineDescription */ + public static final String COLUMNNAME_LineDescription = "LineDescription"; + + /** Set Line Description. + * Description of the Line + */ + public void setLineDescription (String LineDescription); + + /** Get Line Description. + * Description of the Line + */ + public String getLineDescription(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PaymentTermValue */ + public static final String COLUMNNAME_PaymentTermValue = "PaymentTermValue"; + + /** Set Payment Term Key. + * Key of the Payment Term + */ + public void setPaymentTermValue (String PaymentTermValue); + + /** Get Payment Term Key. + * Key of the Payment Term + */ + public String getPaymentTermValue(); + + /** Column name Phone */ + public static final String COLUMNNAME_Phone = "Phone"; + + /** Set Phone. + * Identifies a telephone number + */ + public void setPhone (String Phone); + + /** Get Phone. + * Identifies a telephone number + */ + public String getPhone(); + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProductValue */ + public static final String COLUMNNAME_ProductValue = "ProductValue"; + + /** Set Product Key. + * Key of the Product + */ + public void setProductValue (String ProductValue); + + /** Get Product Key. + * Key of the Product + */ + public String getProductValue(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name RegionName */ + public static final String COLUMNNAME_RegionName = "RegionName"; + + /** Set Region. + * Name of the Region + */ + public void setRegionName (String RegionName); + + /** Get Region. + * Name of the Region + */ + public String getRegionName(); + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TaxIndicator */ + public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; + + /** Set Tax Indicator. + * Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator); + + /** Get Tax Indicator. + * Short form for Tax to be printed on documents + */ + public String getTaxIndicator(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); +} diff --git a/base/src/org/compiere/model/I_I_Order.java b/base/src/org/compiere/model/I_I_Order.java new file mode 100644 index 0000000000..0812ebe447 --- /dev/null +++ b/base/src/org/compiere/model/I_I_Order.java @@ -0,0 +1,799 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_Order + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.109 + */ + public interface I_I_Order +{ + + /** TableName=I_Order */ + public static final String Table_Name = "I_Order"; + + /** AD_Table_ID=591 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Address1 */ + public static final String COLUMNNAME_Address1 = "Address1"; + + /** Set Address 1. + * Address line 1 for this location + */ + public void setAddress1 (String Address1); + + /** Get Address 1. + * Address line 1 for this location + */ + public String getAddress1(); + + /** Column name Address2 */ + public static final String COLUMNNAME_Address2 = "Address2"; + + /** Set Address 2. + * Address line 2 for this location + */ + public void setAddress2 (String Address2); + + /** Get Address 2. + * Address line 2 for this location + */ + public String getAddress2(); + + /** Column name BPartnerValue */ + public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; + + /** Set Business Partner Key. + * Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue); + + /** Get Business Partner Key. + * Key of the Business Partner + */ + public String getBPartnerValue(); + + /** Column name BillTo_ID */ + public static final String COLUMNNAME_BillTo_ID = "BillTo_ID"; + + /** Set Invoice To. + * Bill to Address + */ + public void setBillTo_ID (int BillTo_ID); + + /** Get Invoice To. + * Bill to Address + */ + public int getBillTo_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + public I_C_Region getI_C_Region() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getI_C_Tax() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name City */ + public static final String COLUMNNAME_City = "City"; + + /** Set City. + * Identifies a City + */ + public void setCity (String City); + + /** Get City. + * Identifies a City + */ + public String getCity(); + + /** Column name ContactName */ + public static final String COLUMNNAME_ContactName = "ContactName"; + + /** Set Contact Name. + * Business Partner Contact Name + */ + public void setContactName (String ContactName); + + /** Get Contact Name. + * Business Partner Contact Name + */ + public String getContactName(); + + /** Column name CountryCode */ + public static final String COLUMNNAME_CountryCode = "CountryCode"; + + /** Set ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode); + + /** Get ISO Country Code. + * Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocTypeName */ + public static final String COLUMNNAME_DocTypeName = "DocTypeName"; + + /** Set Document Type Name. + * Name of the Document Type + */ + public void setDocTypeName (String DocTypeName); + + /** Get Document Type Name. + * Name of the Document Type + */ + public String getDocTypeName(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name I_Order_ID */ + public static final String COLUMNNAME_I_Order_ID = "I_Order_ID"; + + /** Set Import Order. + * Import Orders + */ + public void setI_Order_ID (int I_Order_ID); + + /** Get Import Order. + * Import Orders + */ + public int getI_Order_ID(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name LineDescription */ + public static final String COLUMNNAME_LineDescription = "LineDescription"; + + /** Set Line Description. + * Description of the Line + */ + public void setLineDescription (String LineDescription); + + /** Get Line Description. + * Description of the Line + */ + public String getLineDescription(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getI_M_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PaymentTermValue */ + public static final String COLUMNNAME_PaymentTermValue = "PaymentTermValue"; + + /** Set Payment Term Key. + * Key of the Payment Term + */ + public void setPaymentTermValue (String PaymentTermValue); + + /** Get Payment Term Key. + * Key of the Payment Term + */ + public String getPaymentTermValue(); + + /** Column name Phone */ + public static final String COLUMNNAME_Phone = "Phone"; + + /** Set Phone. + * Identifies a telephone number + */ + public void setPhone (String Phone); + + /** Get Phone. + * Identifies a telephone number + */ + public String getPhone(); + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProductValue */ + public static final String COLUMNNAME_ProductValue = "ProductValue"; + + /** Set Product Key. + * Key of the Product + */ + public void setProductValue (String ProductValue); + + /** Get Product Key. + * Key of the Product + */ + public String getProductValue(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name RegionName */ + public static final String COLUMNNAME_RegionName = "RegionName"; + + /** Set Region. + * Name of the Region + */ + public void setRegionName (String RegionName); + + /** Get Region. + * Name of the Region + */ + public String getRegionName(); + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TaxIndicator */ + public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; + + /** Set Tax Indicator. + * Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator); + + /** Get Tax Indicator. + * Short form for Tax to be printed on documents + */ + public String getTaxIndicator(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); +} diff --git a/base/src/org/compiere/model/I_I_Payment.java b/base/src/org/compiere/model/I_I_Payment.java new file mode 100644 index 0000000000..4262da4066 --- /dev/null +++ b/base/src/org/compiere/model/I_I_Payment.java @@ -0,0 +1,857 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_Payment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.218 + */ + public interface I_I_Payment +{ + + /** TableName=I_Payment */ + public static final String Table_Name = "I_Payment"; + + /** AD_Table_ID=597 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name A_City */ + public static final String COLUMNNAME_A_City = "A_City"; + + /** Set Account City. + * City or the Credit Card or Account Holder + */ + public void setA_City (String A_City); + + /** Get Account City. + * City or the Credit Card or Account Holder + */ + public String getA_City(); + + /** Column name A_Country */ + public static final String COLUMNNAME_A_Country = "A_Country"; + + /** Set Account Country. + * Country + */ + public void setA_Country (String A_Country); + + /** Get Account Country. + * Country + */ + public String getA_Country(); + + /** Column name A_EMail */ + public static final String COLUMNNAME_A_EMail = "A_EMail"; + + /** Set Account EMail. + * Email Address + */ + public void setA_EMail (String A_EMail); + + /** Get Account EMail. + * Email Address + */ + public String getA_EMail(); + + /** Column name A_Ident_DL */ + public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; + + /** Set Driver License. + * Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL); + + /** Get Driver License. + * Payment Identification - Driver License + */ + public String getA_Ident_DL(); + + /** Column name A_Ident_SSN */ + public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; + + /** Set Social Security No. + * Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN); + + /** Get Social Security No. + * Payment Identification - Social Security No + */ + public String getA_Ident_SSN(); + + /** Column name A_Name */ + public static final String COLUMNNAME_A_Name = "A_Name"; + + /** Set Account Name. + * Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name); + + /** Get Account Name. + * Name on Credit Card or Account holder + */ + public String getA_Name(); + + /** Column name A_State */ + public static final String COLUMNNAME_A_State = "A_State"; + + /** Set Account State. + * State of the Credit Card or Account holder + */ + public void setA_State (String A_State); + + /** Get Account State. + * State of the Credit Card or Account holder + */ + public String getA_State(); + + /** Column name A_Street */ + public static final String COLUMNNAME_A_Street = "A_Street"; + + /** Set Account Street. + * Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street); + + /** Get Account Street. + * Street address of the Credit Card or Account holder + */ + public String getA_Street(); + + /** Column name A_Zip */ + public static final String COLUMNNAME_A_Zip = "A_Zip"; + + /** Set Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip); + + /** Get Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip(); + + /** Column name AccountNo */ + public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** Set Account No. + * Account Number + */ + public void setAccountNo (String AccountNo); + + /** Get Account No. + * Account Number + */ + public String getAccountNo(); + + /** Column name BPartnerValue */ + public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; + + /** Set Business Partner Key. + * Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue); + + /** Get Business Partner Key. + * Key of the Business Partner + */ + public String getBPartnerValue(); + + /** Column name BankAccountNo */ + public static final String COLUMNNAME_BankAccountNo = "BankAccountNo"; + + /** Set Bank Account No. + * Bank Account Number + */ + public void setBankAccountNo (String BankAccountNo); + + /** Get Bank Account No. + * Bank Account Number + */ + public String getBankAccountNo(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getI_C_BankAccount() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name ChargeName */ + public static final String COLUMNNAME_ChargeName = "ChargeName"; + + /** Set Charge Name. + * Name of the Charge + */ + public void setChargeName (String ChargeName); + + /** Get Charge Name. + * Name of the Charge + */ + public String getChargeName(); + + /** Column name CheckNo */ + public static final String COLUMNNAME_CheckNo = "CheckNo"; + + /** Set Check No. + * Check Number + */ + public void setCheckNo (String CheckNo); + + /** Get Check No. + * Check Number + */ + public String getCheckNo(); + + /** Column name CreditCardExpMM */ + public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; + + /** Set Exp. Month. + * Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM); + + /** Get Exp. Month. + * Expiry Month + */ + public int getCreditCardExpMM(); + + /** Column name CreditCardExpYY */ + public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; + + /** Set Exp. Year. + * Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY); + + /** Get Exp. Year. + * Expiry Year + */ + public int getCreditCardExpYY(); + + /** Column name CreditCardNumber */ + public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + + /** Set Number. + * Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber); + + /** Get Number. + * Credit Card Number + */ + public String getCreditCardNumber(); + + /** Column name CreditCardType */ + public static final String COLUMNNAME_CreditCardType = "CreditCardType"; + + /** Set Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType); + + /** Get Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType(); + + /** Column name CreditCardVV */ + public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; + + /** Set Verification Code. + * Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV); + + /** Get Verification Code. + * Credit Card Verification code on credit card + */ + public String getCreditCardVV(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name DocTypeName */ + public static final String COLUMNNAME_DocTypeName = "DocTypeName"; + + /** Set Document Type Name. + * Name of the Document Type + */ + public void setDocTypeName (String DocTypeName); + + /** Get Document Type Name. + * Name of the Document Type + */ + public String getDocTypeName(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name ISO_Code */ + public static final String COLUMNNAME_ISO_Code = "ISO_Code"; + + /** Set ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code); + + /** Get ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name I_Payment_ID */ + public static final String COLUMNNAME_I_Payment_ID = "I_Payment_ID"; + + /** Set Import Payment. + * Import Payment + */ + public void setI_Payment_ID (int I_Payment_ID); + + /** Get Import Payment. + * Import Payment + */ + public int getI_Payment_ID(); + + /** Column name InvoiceDocumentNo */ + public static final String COLUMNNAME_InvoiceDocumentNo = "InvoiceDocumentNo"; + + /** Set Invoice Document No. + * Document Number of the Invoice + */ + public void setInvoiceDocumentNo (String InvoiceDocumentNo); + + /** Get Invoice Document No. + * Document Number of the Invoice + */ + public String getInvoiceDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsDelayedCapture */ + public static final String COLUMNNAME_IsDelayedCapture = "IsDelayedCapture"; + + /** Set Delayed Capture. + * Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture); + + /** Get Delayed Capture. + * Charge after Shipment + */ + public boolean isDelayedCapture(); + + /** Column name IsOverUnderPayment */ + public static final String COLUMNNAME_IsOverUnderPayment = "IsOverUnderPayment"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment(); + + /** Column name IsReceipt */ + public static final String COLUMNNAME_IsReceipt = "IsReceipt"; + + /** Set Receipt. + * This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt); + + /** Get Receipt. + * This is a sales transaction (receipt) + */ + public boolean isReceipt(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Micr */ + public static final String COLUMNNAME_Micr = "Micr"; + + /** Set Micr. + * Combination of routing no, account and check no + */ + public void setMicr (String Micr); + + /** Get Micr. + * Combination of routing no, account and check no + */ + public String getMicr(); + + /** Column name Orig_TrxID */ + public static final String COLUMNNAME_Orig_TrxID = "Orig_TrxID"; + + /** Set Original Transaction ID. + * Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID); + + /** Get Original Transaction ID. + * Original Transaction ID + */ + public String getOrig_TrxID(); + + /** Column name OverUnderAmt */ + public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt(); + + /** Column name PONum */ + public static final String COLUMNNAME_PONum = "PONum"; + + /** Set PO Number. + * Purchase Order Number + */ + public void setPONum (String PONum); + + /** Get PO Number. + * Purchase Order Number + */ + public String getPONum(); + + /** Column name PayAmt */ + public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** Set Payment amount. + * Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt); + + /** Get Payment amount. + * Amount being paid + */ + public BigDecimal getPayAmt(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name R_AuthCode */ + public static final String COLUMNNAME_R_AuthCode = "R_AuthCode"; + + /** Set Authorization Code. + * Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode); + + /** Get Authorization Code. + * Authorization Code returned + */ + public String getR_AuthCode(); + + /** Column name R_Info */ + public static final String COLUMNNAME_R_Info = "R_Info"; + + /** Set Info. + * Response info + */ + public void setR_Info (String R_Info); + + /** Get Info. + * Response info + */ + public String getR_Info(); + + /** Column name R_PnRef */ + public static final String COLUMNNAME_R_PnRef = "R_PnRef"; + + /** Set Reference. + * Payment reference + */ + public void setR_PnRef (String R_PnRef); + + /** Get Reference. + * Payment reference + */ + public String getR_PnRef(); + + /** Column name R_RespMsg */ + public static final String COLUMNNAME_R_RespMsg = "R_RespMsg"; + + /** Set Response Message. + * Response message + */ + public void setR_RespMsg (String R_RespMsg); + + /** Get Response Message. + * Response message + */ + public String getR_RespMsg(); + + /** Column name R_Result */ + public static final String COLUMNNAME_R_Result = "R_Result"; + + /** Set Result. + * Result of transmission + */ + public void setR_Result (String R_Result); + + /** Get Result. + * Result of transmission + */ + public String getR_Result(); + + /** Column name RoutingNo */ + public static final String COLUMNNAME_RoutingNo = "RoutingNo"; + + /** Set Routing No. + * Bank Routing Number + */ + public void setRoutingNo (String RoutingNo); + + /** Get Routing No. + * Bank Routing Number + */ + public String getRoutingNo(); + + /** Column name Swipe */ + public static final String COLUMNNAME_Swipe = "Swipe"; + + /** Set Swipe. + * Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe); + + /** Get Swipe. + * Track 1 and 2 of the Credit Card + */ + public String getSwipe(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TenderType */ + public static final String COLUMNNAME_TenderType = "TenderType"; + + /** Set Tender type. + * Method of Payment + */ + public void setTenderType (String TenderType); + + /** Get Tender type. + * Method of Payment + */ + public String getTenderType(); + + /** Column name TrxType */ + public static final String COLUMNNAME_TrxType = "TrxType"; + + /** Set Transaction Type. + * Type of credit card transaction + */ + public void setTrxType (String TrxType); + + /** Get Transaction Type. + * Type of credit card transaction + */ + public String getTrxType(); + + /** Column name VoiceAuthCode */ + public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode"; + + /** Set Voice authorization code. + * Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode); + + /** Get Voice authorization code. + * Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_I_Product.java b/base/src/org/compiere/model/I_I_Product.java new file mode 100644 index 0000000000..0edfefcc45 --- /dev/null +++ b/base/src/org/compiere/model/I_I_Product.java @@ -0,0 +1,658 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_Product + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.312 + */ + public interface I_I_Product +{ + + /** TableName=I_Product */ + public static final String Table_Name = "I_Product"; + + /** AD_Table_ID=532 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name BPartner_Value */ + public static final String COLUMNNAME_BPartner_Value = "BPartner_Value"; + + /** Set Business Partner Key. + * The Key of the Business Partner + */ + public void setBPartner_Value (String BPartner_Value); + + /** Get Business Partner Key. + * The Key of the Business Partner + */ + public String getBPartner_Value(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name Classification */ + public static final String COLUMNNAME_Classification = "Classification"; + + /** Set Classification. + * Classification for grouping + */ + public void setClassification (String Classification); + + /** Get Classification. + * Classification for grouping + */ + public String getClassification(); + + /** Column name CostPerOrder */ + public static final String COLUMNNAME_CostPerOrder = "CostPerOrder"; + + /** Set Cost per Order. + * Fixed Cost Per Order + */ + public void setCostPerOrder (BigDecimal CostPerOrder); + + /** Get Cost per Order. + * Fixed Cost Per Order + */ + public BigDecimal getCostPerOrder(); + + /** Column name DeliveryTime_Promised */ + public static final String COLUMNNAME_DeliveryTime_Promised = "DeliveryTime_Promised"; + + /** Set Promised Delivery Time. + * Promised days between order and delivery + */ + public void setDeliveryTime_Promised (int DeliveryTime_Promised); + + /** Get Promised Delivery Time. + * Promised days between order and delivery + */ + public int getDeliveryTime_Promised(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DescriptionURL */ + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + + /** Set Description URL. + * URL for the description + */ + public void setDescriptionURL (String DescriptionURL); + + /** Get Description URL. + * URL for the description + */ + public String getDescriptionURL(); + + /** Column name Discontinued */ + public static final String COLUMNNAME_Discontinued = "Discontinued"; + + /** Set Discontinued. + * This product is no longer available + */ + public void setDiscontinued (boolean Discontinued); + + /** Get Discontinued. + * This product is no longer available + */ + public boolean isDiscontinued(); + + /** Column name DiscontinuedBy */ + public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; + + /** Set Discontinued by. + * Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy); + + /** Get Discontinued by. + * Discontinued By + */ + public Timestamp getDiscontinuedBy(); + + /** Column name DocumentNote */ + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + + /** Set Document Note. + * Additional information for a Document + */ + public void setDocumentNote (String DocumentNote); + + /** Get Document Note. + * Additional information for a Document + */ + public String getDocumentNote(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ISO_Code */ + public static final String COLUMNNAME_ISO_Code = "ISO_Code"; + + /** Set ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code); + + /** Get ISO Currency Code. + * Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name I_Product_ID */ + public static final String COLUMNNAME_I_Product_ID = "I_Product_ID"; + + /** Set Import Product. + * Import Item or Service + */ + public void setI_Product_ID (int I_Product_ID); + + /** Get Import Product. + * Import Item or Service + */ + public int getI_Product_ID(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + public I_M_Product getI_M_Product() throws Exception; + + /** Column name Manufacturer */ + public static final String COLUMNNAME_Manufacturer = "Manufacturer"; + + /** Set Manufacturer. + * Manufacturer of the Product + */ + public void setManufacturer (String Manufacturer); + + /** Get Manufacturer. + * Manufacturer of the Product + */ + public String getManufacturer(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Order_Min */ + public static final String COLUMNNAME_Order_Min = "Order_Min"; + + /** Set Minimum Order Qty. + * Minimum order quantity in UOM + */ + public void setOrder_Min (int Order_Min); + + /** Get Minimum Order Qty. + * Minimum order quantity in UOM + */ + public int getOrder_Min(); + + /** Column name Order_Pack */ + public static final String COLUMNNAME_Order_Pack = "Order_Pack"; + + /** Set Order Pack Qty. + * Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (int Order_Pack); + + /** Get Order Pack Qty. + * Package order size in UOM (e.g. order set of 5 units) + */ + public int getOrder_Pack(); + + /** Column name PriceEffective */ + public static final String COLUMNNAME_PriceEffective = "PriceEffective"; + + /** Set Price effective. + * Effective Date of Price + */ + public void setPriceEffective (Timestamp PriceEffective); + + /** Get Price effective. + * Effective Date of Price + */ + public Timestamp getPriceEffective(); + + /** Column name PriceLimit */ + public static final String COLUMNNAME_PriceLimit = "PriceLimit"; + + /** Set Limit Price. + * Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit); + + /** Get Limit Price. + * Lowest price for a product + */ + public BigDecimal getPriceLimit(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name PricePO */ + public static final String COLUMNNAME_PricePO = "PricePO"; + + /** Set PO Price. + * Price based on a purchase order + */ + public void setPricePO (BigDecimal PricePO); + + /** Get PO Price. + * Price based on a purchase order + */ + public BigDecimal getPricePO(); + + /** Column name PriceStd */ + public static final String COLUMNNAME_PriceStd = "PriceStd"; + + /** Set Standard Price. + * Standard Price + */ + public void setPriceStd (BigDecimal PriceStd); + + /** Get Standard Price. + * Standard Price + */ + public BigDecimal getPriceStd(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProductCategory_Value */ + public static final String COLUMNNAME_ProductCategory_Value = "ProductCategory_Value"; + + /** Set Product Category Key */ + public void setProductCategory_Value (String ProductCategory_Value); + + /** Get Product Category Key */ + public String getProductCategory_Value(); + + /** Column name ProductType */ + public static final String COLUMNNAME_ProductType = "ProductType"; + + /** Set Product Type. + * Type of product + */ + public void setProductType (String ProductType); + + /** Get Product Type. + * Type of product + */ + public String getProductType(); + + /** Column name RoyaltyAmt */ + public static final String COLUMNNAME_RoyaltyAmt = "RoyaltyAmt"; + + /** Set Royalty Amount. + * (Included) Amount for copyright, etc. + */ + public void setRoyaltyAmt (BigDecimal RoyaltyAmt); + + /** Get Royalty Amount. + * (Included) Amount for copyright, etc. + */ + public BigDecimal getRoyaltyAmt(); + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name ShelfDepth */ + public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; + + /** Set Shelf Depth. + * Shelf depth required + */ + public void setShelfDepth (int ShelfDepth); + + /** Get Shelf Depth. + * Shelf depth required + */ + public int getShelfDepth(); + + /** Column name ShelfHeight */ + public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; + + /** Set Shelf Height. + * Shelf height required + */ + public void setShelfHeight (int ShelfHeight); + + /** Get Shelf Height. + * Shelf height required + */ + public int getShelfHeight(); + + /** Column name ShelfWidth */ + public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; + + /** Set Shelf Width. + * Shelf width required + */ + public void setShelfWidth (int ShelfWidth); + + /** Get Shelf Width. + * Shelf width required + */ + public int getShelfWidth(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name UnitsPerPallet */ + public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; + + /** Set Units Per Pallet. + * Units Per Pallet + */ + public void setUnitsPerPallet (int UnitsPerPallet); + + /** Get Units Per Pallet. + * Units Per Pallet + */ + public int getUnitsPerPallet(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name VendorCategory */ + public static final String COLUMNNAME_VendorCategory = "VendorCategory"; + + /** Set Partner Category. + * Product Category of the Business Partner + */ + public void setVendorCategory (String VendorCategory); + + /** Get Partner Category. + * Product Category of the Business Partner + */ + public String getVendorCategory(); + + /** Column name VendorProductNo */ + public static final String COLUMNNAME_VendorProductNo = "VendorProductNo"; + + /** Set Partner Product Key. + * Product Key of the Business Partner + */ + public void setVendorProductNo (String VendorProductNo); + + /** Get Partner Product Key. + * Product Key of the Business Partner + */ + public String getVendorProductNo(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (int Volume); + + /** Get Volume. + * Volume of a product + */ + public int getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (int Weight); + + /** Get Weight. + * Weight of a product + */ + public int getWeight(); + + /** Column name X12DE355 */ + public static final String COLUMNNAME_X12DE355 = "X12DE355"; + + /** Set UOM Code. + * UOM EDI X12 Code + */ + public void setX12DE355 (String X12DE355); + + /** Get UOM Code. + * UOM EDI X12 Code + */ + public String getX12DE355(); +} diff --git a/base/src/org/compiere/model/I_I_ReportLine.java b/base/src/org/compiere/model/I_I_ReportLine.java new file mode 100644 index 0000000000..c09a2ec7e3 --- /dev/null +++ b/base/src/org/compiere/model/I_I_ReportLine.java @@ -0,0 +1,310 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for I_ReportLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.375 + */ + public interface I_I_ReportLine +{ + + /** TableName=I_ReportLine */ + public static final String Table_Name = "I_ReportLine"; + + /** AD_Table_ID=535 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AmountType */ + public static final String COLUMNNAME_AmountType = "AmountType"; + + /** Set Amount Type. + * Type of amount to report + */ + public void setAmountType (String AmountType); + + /** Get Amount Type. + * Type of amount to report + */ + public String getAmountType(); + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + public I_C_ElementValue getI_C_ElementValue() throws Exception; + + /** Column name CalculationType */ + public static final String COLUMNNAME_CalculationType = "CalculationType"; + + /** Set Calculation */ + public void setCalculationType (String CalculationType); + + /** Get Calculation */ + public String getCalculationType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ElementValue */ + public static final String COLUMNNAME_ElementValue = "ElementValue"; + + /** Set Element Key. + * Key of the element + */ + public void setElementValue (String ElementValue); + + /** Get Element Key. + * Key of the element + */ + public String getElementValue(); + + /** Column name I_ErrorMsg */ + public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; + + /** Set Import Error Message. + * Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg); + + /** Get Import Error Message. + * Messages generated from import process + */ + public String getI_ErrorMsg(); + + /** Column name I_IsImported */ + public static final String COLUMNNAME_I_IsImported = "I_IsImported"; + + /** Set Imported. + * Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported); + + /** Get Imported. + * Has this import been processed + */ + public boolean isI_IsImported(); + + /** Column name I_ReportLine_ID */ + public static final String COLUMNNAME_I_ReportLine_ID = "I_ReportLine_ID"; + + /** Set Import Report Line Set. + * Import Report Line Set values + */ + public void setI_ReportLine_ID (int I_ReportLine_ID); + + /** Get Import Report Line Set. + * Import Report Line Set values + */ + public int getI_ReportLine_ID(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name LineType */ + public static final String COLUMNNAME_LineType = "LineType"; + + /** Set Line Type */ + public void setLineType (String LineType); + + /** Get Line Type */ + public String getLineType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_ReportLineSet_ID */ + public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; + + /** Set Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID); + + /** Get Report Line Set */ + public int getPA_ReportLineSet_ID(); + + public I_PA_ReportLineSet getI_PA_ReportLineSet() throws Exception; + + /** Column name PA_ReportLine_ID */ + public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; + + /** Set Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID); + + /** Get Report Line */ + public int getPA_ReportLine_ID(); + + public I_PA_ReportLine getI_PA_ReportLine() throws Exception; + + /** Column name PA_ReportSource_ID */ + public static final String COLUMNNAME_PA_ReportSource_ID = "PA_ReportSource_ID"; + + /** Set Report Source. + * Restriction of what will be shown in Report Line + */ + public void setPA_ReportSource_ID (int PA_ReportSource_ID); + + /** Get Report Source. + * Restriction of what will be shown in Report Line + */ + public int getPA_ReportSource_ID(); + + public I_PA_ReportSource getI_PA_ReportSource() throws Exception; + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ReportLineSetName */ + public static final String COLUMNNAME_ReportLineSetName = "ReportLineSetName"; + + /** Set Report Line Set Name. + * Name of the Report Line Set + */ + public void setReportLineSetName (String ReportLineSetName); + + /** Get Report Line Set Name. + * Name of the Report Line Set + */ + public String getReportLineSetName(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_K_Category.java b/base/src/org/compiere/model/I_K_Category.java new file mode 100644 index 0000000000..8be1d39685 --- /dev/null +++ b/base/src/org/compiere/model/I_K_Category.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Category + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.437 + */ + public interface I_K_Category +{ + + /** TableName=K_Category */ + public static final String Table_Name = "K_Category"; + + /** AD_Table_ID=615 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name K_Category_ID */ + public static final String COLUMNNAME_K_Category_ID = "K_Category_ID"; + + /** Set Knowledge Category. + * Knowledge Category + */ + public void setK_Category_ID (int K_Category_ID); + + /** Get Knowledge Category. + * Knowledge Category + */ + public int getK_Category_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_K_CategoryValue.java b/base/src/org/compiere/model/I_K_CategoryValue.java new file mode 100644 index 0000000000..0b71d78f72 --- /dev/null +++ b/base/src/org/compiere/model/I_K_CategoryValue.java @@ -0,0 +1,114 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_CategoryValue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.609 + */ + public interface I_K_CategoryValue +{ + + /** TableName=K_CategoryValue */ + public static final String Table_Name = "K_CategoryValue"; + + /** AD_Table_ID=614 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name K_CategoryValue_ID */ + public static final String COLUMNNAME_K_CategoryValue_ID = "K_CategoryValue_ID"; + + /** Set Category Value. + * The value of the category + */ + public void setK_CategoryValue_ID (int K_CategoryValue_ID); + + /** Get Category Value. + * The value of the category + */ + public int getK_CategoryValue_ID(); + + /** Column name K_Category_ID */ + public static final String COLUMNNAME_K_Category_ID = "K_Category_ID"; + + /** Set Knowledge Category. + * Knowledge Category + */ + public void setK_Category_ID (int K_Category_ID); + + /** Get Knowledge Category. + * Knowledge Category + */ + public int getK_Category_ID(); + + public I_K_Category getI_K_Category() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_K_Comment.java b/base/src/org/compiere/model/I_K_Comment.java new file mode 100644 index 0000000000..15c23ba9c2 --- /dev/null +++ b/base/src/org/compiere/model/I_K_Comment.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Comment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.625 + */ + public interface I_K_Comment +{ + + /** TableName=K_Comment */ + public static final String Table_Name = "K_Comment"; + + /** AD_Table_ID=613 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Session_ID */ + public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; + + /** Set Session. + * User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID); + + /** Get Session. + * User Session Online or Web + */ + public int getAD_Session_ID(); + + public I_AD_Session getI_AD_Session() throws Exception; + + /** Column name IsPublic */ + public static final String COLUMNNAME_IsPublic = "IsPublic"; + + /** Set Public. + * Public can read entry + */ + public void setIsPublic (boolean IsPublic); + + /** Get Public. + * Public can read entry + */ + public boolean isPublic(); + + /** Column name K_Comment_ID */ + public static final String COLUMNNAME_K_Comment_ID = "K_Comment_ID"; + + /** Set Entry Comment. + * Knowledge Entry Comment + */ + public void setK_Comment_ID (int K_Comment_ID); + + /** Get Entry Comment. + * Knowledge Entry Comment + */ + public int getK_Comment_ID(); + + /** Column name K_Entry_ID */ + public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; + + /** Set Entry. + * Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID); + + /** Get Entry. + * Knowledge Entry + */ + public int getK_Entry_ID(); + + /** Column name Rating */ + public static final String COLUMNNAME_Rating = "Rating"; + + /** Set Rating. + * Classification or Importance + */ + public void setRating (int Rating); + + /** Get Rating. + * Classification or Importance + */ + public int getRating(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_K_Entry.java b/base/src/org/compiere/model/I_K_Entry.java new file mode 100644 index 0000000000..1598e3b557 --- /dev/null +++ b/base/src/org/compiere/model/I_K_Entry.java @@ -0,0 +1,209 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Entry + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.703 + */ + public interface I_K_Entry +{ + + /** TableName=K_Entry */ + public static final String Table_Name = "K_Entry"; + + /** AD_Table_ID=612 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Session_ID */ + public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; + + /** Set Session. + * User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID); + + /** Get Session. + * User Session Online or Web + */ + public int getAD_Session_ID(); + + public I_AD_Session getI_AD_Session() throws Exception; + + /** Column name DescriptionURL */ + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + + /** Set Description URL. + * URL for the description + */ + public void setDescriptionURL (String DescriptionURL); + + /** Get Description URL. + * URL for the description + */ + public String getDescriptionURL(); + + /** Column name IsPublic */ + public static final String COLUMNNAME_IsPublic = "IsPublic"; + + /** Set Public. + * Public can read entry + */ + public void setIsPublic (boolean IsPublic); + + /** Get Public. + * Public can read entry + */ + public boolean isPublic(); + + /** Column name K_Entry_ID */ + public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; + + /** Set Entry. + * Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID); + + /** Get Entry. + * Knowledge Entry + */ + public int getK_Entry_ID(); + + /** Column name K_Source_ID */ + public static final String COLUMNNAME_K_Source_ID = "K_Source_ID"; + + /** Set Knowledge Source. + * Source of a Knowledge Entry + */ + public void setK_Source_ID (int K_Source_ID); + + /** Get Knowledge Source. + * Source of a Knowledge Entry + */ + public int getK_Source_ID(); + + public I_K_Source getI_K_Source() throws Exception; + + /** Column name K_Topic_ID */ + public static final String COLUMNNAME_K_Topic_ID = "K_Topic_ID"; + + /** Set Knowledge Topic. + * Knowledge Topic + */ + public void setK_Topic_ID (int K_Topic_ID); + + /** Get Knowledge Topic. + * Knowledge Topic + */ + public int getK_Topic_ID(); + + public I_K_Topic getI_K_Topic() throws Exception; + + /** Column name Keywords */ + public static final String COLUMNNAME_Keywords = "Keywords"; + + /** Set Keywords. + * List of Keywords - separated by space, comma or semicolon + */ + public void setKeywords (String Keywords); + + /** Get Keywords. + * List of Keywords - separated by space, comma or semicolon + */ + public String getKeywords(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Rating */ + public static final String COLUMNNAME_Rating = "Rating"; + + /** Set Rating. + * Classification or Importance + */ + public void setRating (int Rating); + + /** Get Rating. + * Classification or Importance + */ + public int getRating(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_K_EntryCategory.java b/base/src/org/compiere/model/I_K_EntryCategory.java new file mode 100644 index 0000000000..77a59bab06 --- /dev/null +++ b/base/src/org/compiere/model/I_K_EntryCategory.java @@ -0,0 +1,103 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_EntryCategory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.734 + */ + public interface I_K_EntryCategory +{ + + /** TableName=K_EntryCategory */ + public static final String Table_Name = "K_EntryCategory"; + + /** AD_Table_ID=611 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name K_CategoryValue_ID */ + public static final String COLUMNNAME_K_CategoryValue_ID = "K_CategoryValue_ID"; + + /** Set Category Value. + * The value of the category + */ + public void setK_CategoryValue_ID (int K_CategoryValue_ID); + + /** Get Category Value. + * The value of the category + */ + public int getK_CategoryValue_ID(); + + public I_K_CategoryValue getI_K_CategoryValue() throws Exception; + + /** Column name K_Category_ID */ + public static final String COLUMNNAME_K_Category_ID = "K_Category_ID"; + + /** Set Knowledge Category. + * Knowledge Category + */ + public void setK_Category_ID (int K_Category_ID); + + /** Get Knowledge Category. + * Knowledge Category + */ + public int getK_Category_ID(); + + public I_K_Category getI_K_Category() throws Exception; + + /** Column name K_Entry_ID */ + public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; + + /** Set Entry. + * Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID); + + /** Get Entry. + * Knowledge Entry + */ + public int getK_Entry_ID(); +} diff --git a/base/src/org/compiere/model/I_K_EntryRelated.java b/base/src/org/compiere/model/I_K_EntryRelated.java new file mode 100644 index 0000000000..33c1cb70e8 --- /dev/null +++ b/base/src/org/compiere/model/I_K_EntryRelated.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_EntryRelated + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.875 + */ + public interface I_K_EntryRelated +{ + + /** TableName=K_EntryRelated */ + public static final String Table_Name = "K_EntryRelated"; + + /** AD_Table_ID=610 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name K_EntryRelated_ID */ + public static final String COLUMNNAME_K_EntryRelated_ID = "K_EntryRelated_ID"; + + /** Set Related Entry. + * Related Entry for this Enntry + */ + public void setK_EntryRelated_ID (int K_EntryRelated_ID); + + /** Get Related Entry. + * Related Entry for this Enntry + */ + public int getK_EntryRelated_ID(); + + /** Column name K_Entry_ID */ + public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; + + /** Set Entry. + * Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID); + + /** Get Entry. + * Knowledge Entry + */ + public int getK_Entry_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_K_Index.java b/base/src/org/compiere/model/I_K_Index.java new file mode 100644 index 0000000000..6e8eccdda9 --- /dev/null +++ b/base/src/org/compiere/model/I_K_Index.java @@ -0,0 +1,185 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Index + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.89 + */ + public interface I_K_Index +{ + + /** TableName=K_Index */ + public static final String Table_Name = "K_Index"; + + /** AD_Table_ID=900 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name Excerpt */ + public static final String COLUMNNAME_Excerpt = "Excerpt"; + + /** Set Excerpt. + * Surrounding text of the keyword + */ + public void setExcerpt (String Excerpt); + + /** Get Excerpt. + * Surrounding text of the keyword + */ + public String getExcerpt(); + + /** Column name K_INDEX_ID */ + public static final String COLUMNNAME_K_INDEX_ID = "K_INDEX_ID"; + + /** Set Index. + * Text Search Index + */ + public void setK_INDEX_ID (int K_INDEX_ID); + + /** Get Index. + * Text Search Index + */ + public int getK_INDEX_ID(); + + /** Column name Keyword */ + public static final String COLUMNNAME_Keyword = "Keyword"; + + /** Set Keyword. + * Case insensitive keyword + */ + public void setKeyword (String Keyword); + + /** Get Keyword. + * Case insensitive keyword + */ + public String getKeyword(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name SourceUpdated */ + public static final String COLUMNNAME_SourceUpdated = "SourceUpdated"; + + /** Set Source Updated. + * Date the source document was updated + */ + public void setSourceUpdated (Timestamp SourceUpdated); + + /** Get Source Updated. + * Date the source document was updated + */ + public Timestamp getSourceUpdated(); +} diff --git a/base/src/org/compiere/model/I_K_IndexLog.java b/base/src/org/compiere/model/I_K_IndexLog.java new file mode 100644 index 0000000000..790cb572aa --- /dev/null +++ b/base/src/org/compiere/model/I_K_IndexLog.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_IndexLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.906 + */ + public interface I_K_IndexLog +{ + + /** TableName=K_IndexLog */ + public static final String Table_Name = "K_IndexLog"; + + /** AD_Table_ID=899 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name IndexQuery */ + public static final String COLUMNNAME_IndexQuery = "IndexQuery"; + + /** Set Index Query. + * Text Search Query + */ + public void setIndexQuery (String IndexQuery); + + /** Get Index Query. + * Text Search Query + */ + public String getIndexQuery(); + + /** Column name IndexQueryResult */ + public static final String COLUMNNAME_IndexQueryResult = "IndexQueryResult"; + + /** Set Query Result. + * Result of the text query + */ + public void setIndexQueryResult (int IndexQueryResult); + + /** Get Query Result. + * Result of the text query + */ + public int getIndexQueryResult(); + + /** Column name K_IndexLog_ID */ + public static final String COLUMNNAME_K_IndexLog_ID = "K_IndexLog_ID"; + + /** Set Index Log. + * Text search log + */ + public void setK_IndexLog_ID (int K_IndexLog_ID); + + /** Get Index Log. + * Text search log + */ + public int getK_IndexLog_ID(); + + /** Column name QuerySource */ + public static final String COLUMNNAME_QuerySource = "QuerySource"; + + /** Set Query Source. + * Source of the Query + */ + public void setQuerySource (String QuerySource); + + /** Get Query Source. + * Source of the Query + */ + public String getQuerySource(); +} diff --git a/base/src/org/compiere/model/I_K_IndexStop.java b/base/src/org/compiere/model/I_K_IndexStop.java new file mode 100644 index 0000000000..840caaa318 --- /dev/null +++ b/base/src/org/compiere/model/I_K_IndexStop.java @@ -0,0 +1,144 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_IndexStop + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.921 + */ + public interface I_K_IndexStop +{ + + /** TableName=K_IndexStop */ + public static final String Table_Name = "K_IndexStop"; + + /** AD_Table_ID=901 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name CM_WebProject_ID */ + public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; + + /** Set Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID); + + /** Get Web Project. + * A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID(); + + public I_CM_WebProject getI_CM_WebProject() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name K_IndexStop_ID */ + public static final String COLUMNNAME_K_IndexStop_ID = "K_IndexStop_ID"; + + /** Set Index Stop. + * Keyword not to be indexed + */ + public void setK_IndexStop_ID (int K_IndexStop_ID); + + /** Get Index Stop. + * Keyword not to be indexed + */ + public int getK_IndexStop_ID(); + + /** Column name Keyword */ + public static final String COLUMNNAME_Keyword = "Keyword"; + + /** Set Keyword. + * Case insensitive keyword + */ + public void setKeyword (String Keyword); + + /** Get Keyword. + * Case insensitive keyword + */ + public String getKeyword(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; +} diff --git a/base/src/org/compiere/model/I_K_Source.java b/base/src/org/compiere/model/I_K_Source.java new file mode 100644 index 0000000000..06d378807a --- /dev/null +++ b/base/src/org/compiere/model/I_K_Source.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Source + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.953 + */ + public interface I_K_Source +{ + + /** TableName=K_Source */ + public static final String Table_Name = "K_Source"; + + /** AD_Table_ID=609 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name DescriptionURL */ + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + + /** Set Description URL. + * URL for the description + */ + public void setDescriptionURL (String DescriptionURL); + + /** Get Description URL. + * URL for the description + */ + public String getDescriptionURL(); + + /** Column name K_Source_ID */ + public static final String COLUMNNAME_K_Source_ID = "K_Source_ID"; + + /** Set Knowledge Source. + * Source of a Knowledge Entry + */ + public void setK_Source_ID (int K_Source_ID); + + /** Get Knowledge Source. + * Source of a Knowledge Entry + */ + public int getK_Source_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_K_Synonym.java b/base/src/org/compiere/model/I_K_Synonym.java new file mode 100644 index 0000000000..25dbb2d429 --- /dev/null +++ b/base/src/org/compiere/model/I_K_Synonym.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Synonym + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.953 + */ + public interface I_K_Synonym +{ + + /** TableName=K_Synonym */ + public static final String Table_Name = "K_Synonym"; + + /** AD_Table_ID=608 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name K_Synonym_ID */ + public static final String COLUMNNAME_K_Synonym_ID = "K_Synonym_ID"; + + /** Set Knowledge Synonym. + * Knowlege Keyword Synonym + */ + public void setK_Synonym_ID (int K_Synonym_ID); + + /** Get Knowledge Synonym. + * Knowlege Keyword Synonym + */ + public int getK_Synonym_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SynonymName */ + public static final String COLUMNNAME_SynonymName = "SynonymName"; + + /** Set Synonym Name. + * The synonym for the name + */ + public void setSynonymName (String SynonymName); + + /** Get Synonym Name. + * The synonym for the name + */ + public String getSynonymName(); +} diff --git a/base/src/org/compiere/model/I_K_Topic.java b/base/src/org/compiere/model/I_K_Topic.java new file mode 100644 index 0000000000..f56f3c0b72 --- /dev/null +++ b/base/src/org/compiere/model/I_K_Topic.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Topic + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.968 + */ + public interface I_K_Topic +{ + + /** TableName=K_Topic */ + public static final String Table_Name = "K_Topic"; + + /** AD_Table_ID=607 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsPublic */ + public static final String COLUMNNAME_IsPublic = "IsPublic"; + + /** Set Public. + * Public can read entry + */ + public void setIsPublic (boolean IsPublic); + + /** Get Public. + * Public can read entry + */ + public boolean isPublic(); + + /** Column name IsPublicWrite */ + public static final String COLUMNNAME_IsPublicWrite = "IsPublicWrite"; + + /** Set Public Write. + * Public can write entries + */ + public void setIsPublicWrite (boolean IsPublicWrite); + + /** Get Public Write. + * Public can write entries + */ + public boolean isPublicWrite(); + + /** Column name K_Topic_ID */ + public static final String COLUMNNAME_K_Topic_ID = "K_Topic_ID"; + + /** Set Knowledge Topic. + * Knowledge Topic + */ + public void setK_Topic_ID (int K_Topic_ID); + + /** Get Knowledge Topic. + * Knowledge Topic + */ + public int getK_Topic_ID(); + + /** Column name K_Type_ID */ + public static final String COLUMNNAME_K_Type_ID = "K_Type_ID"; + + /** Set Knowldge Type. + * Knowledge Type + */ + public void setK_Type_ID (int K_Type_ID); + + /** Get Knowldge Type. + * Knowledge Type + */ + public int getK_Type_ID(); + + public I_K_Type getI_K_Type() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_K_Type.java b/base/src/org/compiere/model/I_K_Type.java new file mode 100644 index 0000000000..1d93cca47d --- /dev/null +++ b/base/src/org/compiere/model/I_K_Type.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for K_Type + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:48.984 + */ + public interface I_K_Type +{ + + /** TableName=K_Type */ + public static final String Table_Name = "K_Type"; + + /** AD_Table_ID=606 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsPublic */ + public static final String COLUMNNAME_IsPublic = "IsPublic"; + + /** Set Public. + * Public can read entry + */ + public void setIsPublic (boolean IsPublic); + + /** Get Public. + * Public can read entry + */ + public boolean isPublic(); + + /** Column name IsPublicWrite */ + public static final String COLUMNNAME_IsPublicWrite = "IsPublicWrite"; + + /** Set Public Write. + * Public can write entries + */ + public void setIsPublicWrite (boolean IsPublicWrite); + + /** Get Public Write. + * Public can write entries + */ + public boolean isPublicWrite(); + + /** Column name K_Type_ID */ + public static final String COLUMNNAME_K_Type_ID = "K_Type_ID"; + + /** Set Knowldge Type. + * Knowledge Type + */ + public void setK_Type_ID (int K_Type_ID); + + /** Get Knowldge Type. + * Knowledge Type + */ + public int getK_Type_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_Attribute.java b/base/src/org/compiere/model/I_M_Attribute.java new file mode 100644 index 0000000000..f9661b5c44 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Attribute.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Attribute + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.015 + */ + public interface I_M_Attribute +{ + + /** TableName=M_Attribute */ + public static final String Table_Name = "M_Attribute"; + + /** AD_Table_ID=562 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AttributeValueType */ + public static final String COLUMNNAME_AttributeValueType = "AttributeValueType"; + + /** Set Attribute Value Type. + * Type of Attribute Value + */ + public void setAttributeValueType (String AttributeValueType); + + /** Get Attribute Value Type. + * Type of Attribute Value + */ + public String getAttributeValueType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsInstanceAttribute */ + public static final String COLUMNNAME_IsInstanceAttribute = "IsInstanceAttribute"; + + /** Set Instance Attribute. + * The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public void setIsInstanceAttribute (boolean IsInstanceAttribute); + + /** Get Instance Attribute. + * The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public boolean isInstanceAttribute(); + + /** Column name IsMandatory */ + public static final String COLUMNNAME_IsMandatory = "IsMandatory"; + + /** Set Mandatory. + * Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory); + + /** Get Mandatory. + * Data entry is required in this column + */ + public boolean isMandatory(); + + /** Column name M_AttributeSearch_ID */ + public static final String COLUMNNAME_M_AttributeSearch_ID = "M_AttributeSearch_ID"; + + /** Set Attribute Search. + * Common Search Attribute + */ + public void setM_AttributeSearch_ID (int M_AttributeSearch_ID); + + /** Get Attribute Search. + * Common Search Attribute + */ + public int getM_AttributeSearch_ID(); + + public I_M_AttributeSearch getI_M_AttributeSearch() throws Exception; + + /** Column name M_Attribute_ID */ + public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; + + /** Set Attribute. + * Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID); + + /** Get Attribute. + * Product Attribute + */ + public int getM_Attribute_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_AttributeInstance.java b/base/src/org/compiere/model/I_M_AttributeInstance.java new file mode 100644 index 0000000000..978627d997 --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeInstance.java @@ -0,0 +1,129 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeInstance + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.031 + */ + public interface I_M_AttributeInstance +{ + + /** TableName=M_AttributeInstance */ + public static final String Table_Name = "M_AttributeInstance"; + + /** AD_Table_ID=561 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_AttributeValue_ID */ + public static final String COLUMNNAME_M_AttributeValue_ID = "M_AttributeValue_ID"; + + /** Set Attribute Value. + * Product Attribute Value + */ + public void setM_AttributeValue_ID (int M_AttributeValue_ID); + + /** Get Attribute Value. + * Product Attribute Value + */ + public int getM_AttributeValue_ID(); + + public I_M_AttributeValue getI_M_AttributeValue() throws Exception; + + /** Column name M_Attribute_ID */ + public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; + + /** Set Attribute. + * Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID); + + /** Get Attribute. + * Product Attribute + */ + public int getM_Attribute_ID(); + + public I_M_Attribute getI_M_Attribute() throws Exception; + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name ValueNumber */ + public static final String COLUMNNAME_ValueNumber = "ValueNumber"; + + /** Set Value. + * Numeric Value + */ + public void setValueNumber (BigDecimal ValueNumber); + + /** Get Value. + * Numeric Value + */ + public BigDecimal getValueNumber(); +} diff --git a/base/src/org/compiere/model/I_M_AttributeSearch.java b/base/src/org/compiere/model/I_M_AttributeSearch.java new file mode 100644 index 0000000000..0d3cc45642 --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeSearch.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeSearch + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.046 + */ + public interface I_M_AttributeSearch +{ + + /** TableName=M_AttributeSearch */ + public static final String Table_Name = "M_AttributeSearch"; + + /** AD_Table_ID=564 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_AttributeSearch_ID */ + public static final String COLUMNNAME_M_AttributeSearch_ID = "M_AttributeSearch_ID"; + + /** Set Attribute Search. + * Common Search Attribute + */ + public void setM_AttributeSearch_ID (int M_AttributeSearch_ID); + + /** Get Attribute Search. + * Common Search Attribute + */ + public int getM_AttributeSearch_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_AttributeSet.java b/base/src/org/compiere/model/I_M_AttributeSet.java new file mode 100644 index 0000000000..26aa129c92 --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeSet.java @@ -0,0 +1,298 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeSet + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.062 + */ + public interface I_M_AttributeSet +{ + + /** TableName=M_AttributeSet */ + public static final String Table_Name = "M_AttributeSet"; + + /** AD_Table_ID=560 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GuaranteeDays */ + public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; + + /** Set Guarantee Days. + * Number of days the product is guaranteed or available + */ + public void setGuaranteeDays (int GuaranteeDays); + + /** Get Guarantee Days. + * Number of days the product is guaranteed or available + */ + public int getGuaranteeDays(); + + /** Column name IsGuaranteeDate */ + public static final String COLUMNNAME_IsGuaranteeDate = "IsGuaranteeDate"; + + /** Set Guarantee Date. + * Product has Guarantee or Expiry Date + */ + public void setIsGuaranteeDate (boolean IsGuaranteeDate); + + /** Get Guarantee Date. + * Product has Guarantee or Expiry Date + */ + public boolean isGuaranteeDate(); + + /** Column name IsGuaranteeDateMandatory */ + public static final String COLUMNNAME_IsGuaranteeDateMandatory = "IsGuaranteeDateMandatory"; + + /** Set Mandatory Guarantee Date. + * The entry of a Guarantee Date is mandatory when creating a Product Instance + */ + public void setIsGuaranteeDateMandatory (boolean IsGuaranteeDateMandatory); + + /** Get Mandatory Guarantee Date. + * The entry of a Guarantee Date is mandatory when creating a Product Instance + */ + public boolean isGuaranteeDateMandatory(); + + /** Column name IsInstanceAttribute */ + public static final String COLUMNNAME_IsInstanceAttribute = "IsInstanceAttribute"; + + /** Set Instance Attribute. + * The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public void setIsInstanceAttribute (boolean IsInstanceAttribute); + + /** Get Instance Attribute. + * The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public boolean isInstanceAttribute(); + + /** Column name IsLot */ + public static final String COLUMNNAME_IsLot = "IsLot"; + + /** Set Lot. + * The product instances have a Lot Number + */ + public void setIsLot (boolean IsLot); + + /** Get Lot. + * The product instances have a Lot Number + */ + public boolean isLot(); + + /** Column name IsLotMandatory */ + public static final String COLUMNNAME_IsLotMandatory = "IsLotMandatory"; + + /** Set Mandatory Lot. + * The entry of Lot info is mandatory when creating a Product Instance + */ + public void setIsLotMandatory (boolean IsLotMandatory); + + /** Get Mandatory Lot. + * The entry of Lot info is mandatory when creating a Product Instance + */ + public boolean isLotMandatory(); + + /** Column name IsSerNo */ + public static final String COLUMNNAME_IsSerNo = "IsSerNo"; + + /** Set Serial No. + * The product instances have Serial Numbers + */ + public void setIsSerNo (boolean IsSerNo); + + /** Get Serial No. + * The product instances have Serial Numbers + */ + public boolean isSerNo(); + + /** Column name IsSerNoMandatory */ + public static final String COLUMNNAME_IsSerNoMandatory = "IsSerNoMandatory"; + + /** Set Mandatory Serial No. + * The entry of a Serial No is mandatory when creating a Product Instance + */ + public void setIsSerNoMandatory (boolean IsSerNoMandatory); + + /** Get Mandatory Serial No. + * The entry of a Serial No is mandatory when creating a Product Instance + */ + public boolean isSerNoMandatory(); + + /** Column name LotCharEOverwrite */ + public static final String COLUMNNAME_LotCharEOverwrite = "LotCharEOverwrite"; + + /** Set Lot Char End Overwrite. + * Lot/Batch End Indicator overwrite - default » + */ + public void setLotCharEOverwrite (String LotCharEOverwrite); + + /** Get Lot Char End Overwrite. + * Lot/Batch End Indicator overwrite - default » + */ + public String getLotCharEOverwrite(); + + /** Column name LotCharSOverwrite */ + public static final String COLUMNNAME_LotCharSOverwrite = "LotCharSOverwrite"; + + /** Set Lot Char Start Overwrite. + * Lot/Batch Start Indicator overwrite - default « + */ + public void setLotCharSOverwrite (String LotCharSOverwrite); + + /** Get Lot Char Start Overwrite. + * Lot/Batch Start Indicator overwrite - default « + */ + public String getLotCharSOverwrite(); + + /** Column name M_AttributeSet_ID */ + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + + /** Set Attribute Set. + * Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID); + + /** Get Attribute Set. + * Product Attribute Set + */ + public int getM_AttributeSet_ID(); + + /** Column name M_LotCtl_ID */ + public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; + + /** Set Lot Control. + * Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID); + + /** Get Lot Control. + * Product Lot Control + */ + public int getM_LotCtl_ID(); + + public I_M_LotCtl getI_M_LotCtl() throws Exception; + + /** Column name M_SerNoCtl_ID */ + public static final String COLUMNNAME_M_SerNoCtl_ID = "M_SerNoCtl_ID"; + + /** Set Serial No Control. + * Product Serial Number Control + */ + public void setM_SerNoCtl_ID (int M_SerNoCtl_ID); + + /** Get Serial No Control. + * Product Serial Number Control + */ + public int getM_SerNoCtl_ID(); + + public I_M_SerNoCtl getI_M_SerNoCtl() throws Exception; + + /** Column name MandatoryType */ + public static final String COLUMNNAME_MandatoryType = "MandatoryType"; + + /** Set Mandatory Type. + * The specification of a Product Attribute Instance is mandatory + */ + public void setMandatoryType (String MandatoryType); + + /** Get Mandatory Type. + * The specification of a Product Attribute Instance is mandatory + */ + public String getMandatoryType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SerNoCharEOverwrite */ + public static final String COLUMNNAME_SerNoCharEOverwrite = "SerNoCharEOverwrite"; + + /** Set SerNo Char End Overwrite. + * Serial Number End Indicator overwrite - default empty + */ + public void setSerNoCharEOverwrite (String SerNoCharEOverwrite); + + /** Get SerNo Char End Overwrite. + * Serial Number End Indicator overwrite - default empty + */ + public String getSerNoCharEOverwrite(); + + /** Column name SerNoCharSOverwrite */ + public static final String COLUMNNAME_SerNoCharSOverwrite = "SerNoCharSOverwrite"; + + /** Set SerNo Char Start Overwrite. + * Serial Number Start Indicator overwrite - default # + */ + public void setSerNoCharSOverwrite (String SerNoCharSOverwrite); + + /** Get SerNo Char Start Overwrite. + * Serial Number Start Indicator overwrite - default # + */ + public String getSerNoCharSOverwrite(); +} diff --git a/base/src/org/compiere/model/I_M_AttributeSetExclude.java b/base/src/org/compiere/model/I_M_AttributeSetExclude.java new file mode 100644 index 0000000000..a97b9e21ce --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeSetExclude.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeSetExclude + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.125 + */ + public interface I_M_AttributeSetExclude +{ + + /** TableName=M_AttributeSetExclude */ + public static final String Table_Name = "M_AttributeSetExclude"; + + /** AD_Table_ID=809 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_AttributeSetExclude_ID */ + public static final String COLUMNNAME_M_AttributeSetExclude_ID = "M_AttributeSetExclude_ID"; + + /** Set Exclude Attribute Set. + * Exclude the ability to enter Attribute Sets + */ + public void setM_AttributeSetExclude_ID (int M_AttributeSetExclude_ID); + + /** Get Exclude Attribute Set. + * Exclude the ability to enter Attribute Sets + */ + public int getM_AttributeSetExclude_ID(); + + /** Column name M_AttributeSet_ID */ + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + + /** Set Attribute Set. + * Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID); + + /** Get Attribute Set. + * Product Attribute Set + */ + public int getM_AttributeSet_ID(); + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception; +} diff --git a/base/src/org/compiere/model/I_M_AttributeSetInstance.java b/base/src/org/compiere/model/I_M_AttributeSetInstance.java new file mode 100644 index 0000000000..9bdd3ce350 --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeSetInstance.java @@ -0,0 +1,153 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeSetInstance + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.14 + */ + public interface I_M_AttributeSetInstance +{ + + /** TableName=M_AttributeSetInstance */ + public static final String Table_Name = "M_AttributeSetInstance"; + + /** AD_Table_ID=559 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GuaranteeDate */ + public static final String COLUMNNAME_GuaranteeDate = "GuaranteeDate"; + + /** Set Guarantee Date. + * Date when guarantee expires + */ + public void setGuaranteeDate (Timestamp GuaranteeDate); + + /** Get Guarantee Date. + * Date when guarantee expires + */ + public Timestamp getGuaranteeDate(); + + /** Column name Lot */ + public static final String COLUMNNAME_Lot = "Lot"; + + /** Set Lot No. + * Lot number (alphanumeric) + */ + public void setLot (String Lot); + + /** Get Lot No. + * Lot number (alphanumeric) + */ + public String getLot(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_AttributeSet_ID */ + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + + /** Set Attribute Set. + * Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID); + + /** Get Attribute Set. + * Product Attribute Set + */ + public int getM_AttributeSet_ID(); + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception; + + /** Column name M_Lot_ID */ + public static final String COLUMNNAME_M_Lot_ID = "M_Lot_ID"; + + /** Set Lot. + * Product Lot Definition + */ + public void setM_Lot_ID (int M_Lot_ID); + + /** Get Lot. + * Product Lot Definition + */ + public int getM_Lot_ID(); + + /** Column name SerNo */ + public static final String COLUMNNAME_SerNo = "SerNo"; + + /** Set Serial No. + * Product Serial Number + */ + public void setSerNo (String SerNo); + + /** Get Serial No. + * Product Serial Number + */ + public String getSerNo(); +} diff --git a/base/src/org/compiere/model/I_M_AttributeUse.java b/base/src/org/compiere/model/I_M_AttributeUse.java new file mode 100644 index 0000000000..8d734477f4 --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeUse.java @@ -0,0 +1,105 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeUse + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.218 + */ + public interface I_M_AttributeUse +{ + + /** TableName=M_AttributeUse */ + public static final String Table_Name = "M_AttributeUse"; + + /** AD_Table_ID=563 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name M_AttributeSet_ID */ + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + + /** Set Attribute Set. + * Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID); + + /** Get Attribute Set. + * Product Attribute Set + */ + public int getM_AttributeSet_ID(); + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception; + + /** Column name M_Attribute_ID */ + public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; + + /** Set Attribute. + * Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID); + + /** Get Attribute. + * Product Attribute + */ + public int getM_Attribute_ID(); + + public I_M_Attribute getI_M_Attribute() throws Exception; + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_M_AttributeValue.java b/base/src/org/compiere/model/I_M_AttributeValue.java new file mode 100644 index 0000000000..bc875145c6 --- /dev/null +++ b/base/src/org/compiere/model/I_M_AttributeValue.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_AttributeValue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.281 + */ + public interface I_M_AttributeValue +{ + + /** TableName=M_AttributeValue */ + public static final String Table_Name = "M_AttributeValue"; + + /** AD_Table_ID=558 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_AttributeValue_ID */ + public static final String COLUMNNAME_M_AttributeValue_ID = "M_AttributeValue_ID"; + + /** Set Attribute Value. + * Product Attribute Value + */ + public void setM_AttributeValue_ID (int M_AttributeValue_ID); + + /** Get Attribute Value. + * Product Attribute Value + */ + public int getM_AttributeValue_ID(); + + /** Column name M_Attribute_ID */ + public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; + + /** Set Attribute. + * Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID); + + /** Get Attribute. + * Product Attribute + */ + public int getM_Attribute_ID(); + + public I_M_Attribute getI_M_Attribute() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_M_BOM.java b/base/src/org/compiere/model/I_M_BOM.java new file mode 100644 index 0000000000..c6ae621002 --- /dev/null +++ b/base/src/org/compiere/model/I_M_BOM.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_BOM + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.296 + */ + public interface I_M_BOM +{ + + /** TableName=M_BOM */ + public static final String Table_Name = "M_BOM"; + + /** AD_Table_ID=798 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BOMType */ + public static final String COLUMNNAME_BOMType = "BOMType"; + + /** Set BOM Type. + * Type of BOM + */ + public void setBOMType (String BOMType); + + /** Get BOM Type. + * Type of BOM + */ + public String getBOMType(); + + /** Column name BOMUse */ + public static final String COLUMNNAME_BOMUse = "BOMUse"; + + /** Set BOM Use. + * The use of the Bill of Material + */ + public void setBOMUse (String BOMUse); + + /** Get BOM Use. + * The use of the Bill of Material + */ + public String getBOMUse(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_BOM_ID */ + public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; + + /** Set BOM. + * Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID); + + /** Get BOM. + * Bill of Material + */ + public int getM_BOM_ID(); + + /** Column name M_ChangeNotice_ID */ + public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; + + /** Set Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID); + + /** Get Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID(); + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_BOMAlternative.java b/base/src/org/compiere/model/I_M_BOMAlternative.java new file mode 100644 index 0000000000..98938b2563 --- /dev/null +++ b/base/src/org/compiere/model/I_M_BOMAlternative.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_BOMAlternative + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.328 + */ + public interface I_M_BOMAlternative +{ + + /** TableName=M_BOMAlternative */ + public static final String Table_Name = "M_BOMAlternative"; + + /** AD_Table_ID=795 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_BOMAlternative_ID */ + public static final String COLUMNNAME_M_BOMAlternative_ID = "M_BOMAlternative_ID"; + + /** Set Alternative Group. + * Product BOM Alternative Group + */ + public void setM_BOMAlternative_ID (int M_BOMAlternative_ID); + + /** Get Alternative Group. + * Product BOM Alternative Group + */ + public int getM_BOMAlternative_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_BOMProduct.java b/base/src/org/compiere/model/I_M_BOMProduct.java new file mode 100644 index 0000000000..408c319e0d --- /dev/null +++ b/base/src/org/compiere/model/I_M_BOMProduct.java @@ -0,0 +1,265 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_BOMProduct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.343 + */ + public interface I_M_BOMProduct +{ + + /** TableName=M_BOMProduct */ + public static final String Table_Name = "M_BOMProduct"; + + /** AD_Table_ID=801 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BOMProductType */ + public static final String COLUMNNAME_BOMProductType = "BOMProductType"; + + /** Set Component Type. + * BOM Product Type + */ + public void setBOMProductType (String BOMProductType); + + /** Get Component Type. + * BOM Product Type + */ + public String getBOMProductType(); + + /** Column name BOMQty */ + public static final String COLUMNNAME_BOMQty = "BOMQty"; + + /** Set BOM Quantity. + * Bill of Materials Quantity + */ + public void setBOMQty (BigDecimal BOMQty); + + /** Get BOM Quantity. + * Bill of Materials Quantity + */ + public BigDecimal getBOMQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsPhantom */ + public static final String COLUMNNAME_IsPhantom = "IsPhantom"; + + /** Set Phantom. + * Phantom Component + */ + public void setIsPhantom (boolean IsPhantom); + + /** Get Phantom. + * Phantom Component + */ + public boolean isPhantom(); + + /** Column name LeadTimeOffset */ + public static final String COLUMNNAME_LeadTimeOffset = "LeadTimeOffset"; + + /** Set Lead Time Offset. + * Optional Lead Time offest before starting production + */ + public void setLeadTimeOffset (int LeadTimeOffset); + + /** Get Lead Time Offset. + * Optional Lead Time offest before starting production + */ + public int getLeadTimeOffset(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_BOMAlternative_ID */ + public static final String COLUMNNAME_M_BOMAlternative_ID = "M_BOMAlternative_ID"; + + /** Set Alternative Group. + * Product BOM Alternative Group + */ + public void setM_BOMAlternative_ID (int M_BOMAlternative_ID); + + /** Get Alternative Group. + * Product BOM Alternative Group + */ + public int getM_BOMAlternative_ID(); + + public I_M_BOMAlternative getI_M_BOMAlternative() throws Exception; + + /** Column name M_BOMProduct_ID */ + public static final String COLUMNNAME_M_BOMProduct_ID = "M_BOMProduct_ID"; + + /** Set BOM Component. + * Bill of Material Component (Product) + */ + public void setM_BOMProduct_ID (int M_BOMProduct_ID); + + /** Get BOM Component. + * Bill of Material Component (Product) + */ + public int getM_BOMProduct_ID(); + + /** Column name M_BOM_ID */ + public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; + + /** Set BOM. + * Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID); + + /** Get BOM. + * Bill of Material + */ + public int getM_BOM_ID(); + + public I_M_BOM getI_M_BOM() throws Exception; + + /** Column name M_ChangeNotice_ID */ + public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; + + /** Set Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID); + + /** Get Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID(); + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception; + + /** Column name M_ProductBOM_ID */ + public static final String COLUMNNAME_M_ProductBOM_ID = "M_ProductBOM_ID"; + + /** Set BOM Product. + * Bill of Material Component Product + */ + public void setM_ProductBOM_ID (int M_ProductBOM_ID); + + /** Get BOM Product. + * Bill of Material Component Product + */ + public int getM_ProductBOM_ID(); + + /** Column name M_ProductOperation_ID */ + public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; + + /** Set Product Operation. + * Product Manufacturing Operation + */ + public void setM_ProductOperation_ID (int M_ProductOperation_ID); + + /** Get Product Operation. + * Product Manufacturing Operation + */ + public int getM_ProductOperation_ID(); + + public I_M_ProductOperation getI_M_ProductOperation() throws Exception; + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_M_ChangeNotice.java b/base/src/org/compiere/model/I_M_ChangeNotice.java new file mode 100644 index 0000000000..cb419be833 --- /dev/null +++ b/base/src/org/compiere/model/I_M_ChangeNotice.java @@ -0,0 +1,160 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ChangeNotice + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.375 + */ + public interface I_M_ChangeNotice +{ + + /** TableName=M_ChangeNotice */ + public static final String Table_Name = "M_ChangeNotice"; + + /** AD_Table_ID=799 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DetailInfo */ + public static final String COLUMNNAME_DetailInfo = "DetailInfo"; + + /** Set Detail Information. + * Additional Detail Information + */ + public void setDetailInfo (String DetailInfo); + + /** Get Detail Information. + * Additional Detail Information + */ + public String getDetailInfo(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_ChangeNotice_ID */ + public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; + + /** Set Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID); + + /** Get Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_ChangeRequest.java b/base/src/org/compiere/model/I_M_ChangeRequest.java new file mode 100644 index 0000000000..f0d29693db --- /dev/null +++ b/base/src/org/compiere/model/I_M_ChangeRequest.java @@ -0,0 +1,207 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ChangeRequest + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.39 + */ + public interface I_M_ChangeRequest +{ + + /** TableName=M_ChangeRequest */ + public static final String Table_Name = "M_ChangeRequest"; + + /** AD_Table_ID=800 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DetailInfo */ + public static final String COLUMNNAME_DetailInfo = "DetailInfo"; + + /** Set Detail Information. + * Additional Detail Information + */ + public void setDetailInfo (String DetailInfo); + + /** Get Detail Information. + * Additional Detail Information + */ + public String getDetailInfo(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_BOM_ID */ + public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; + + /** Set BOM. + * Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID); + + /** Get BOM. + * Bill of Material + */ + public int getM_BOM_ID(); + + public I_M_BOM getI_M_BOM() throws Exception; + + /** Column name M_ChangeNotice_ID */ + public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; + + /** Set Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID); + + /** Get Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID(); + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception; + + /** Column name M_ChangeRequest_ID */ + public static final String COLUMNNAME_M_ChangeRequest_ID = "M_ChangeRequest_ID"; + + /** Set Change Request. + * BOM (Engineering) Change Request + */ + public void setM_ChangeRequest_ID (int M_ChangeRequest_ID); + + /** Get Change Request. + * BOM (Engineering) Change Request + */ + public int getM_ChangeRequest_ID(); + + /** Column name M_FixChangeNotice_ID */ + public static final String COLUMNNAME_M_FixChangeNotice_ID = "M_FixChangeNotice_ID"; + + /** Set Fixed in. + * Fixed in Change Notice + */ + public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID); + + /** Get Fixed in. + * Fixed in Change Notice + */ + public int getM_FixChangeNotice_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); +} diff --git a/base/src/org/compiere/model/I_M_Cost.java b/base/src/org/compiere/model/I_M_Cost.java new file mode 100644 index 0000000000..8134c65c2c --- /dev/null +++ b/base/src/org/compiere/model/I_M_Cost.java @@ -0,0 +1,244 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Cost + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.5 + */ + public interface I_M_Cost +{ + + /** TableName=M_Cost */ + public static final String Table_Name = "M_Cost"; + + /** AD_Table_ID=771 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name CostingMethod */ + public static final String COLUMNNAME_CostingMethod = "CostingMethod"; + + /** Set Costing Method. + * Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod); + + /** Get Costing Method. + * Indicates how Costs will be calculated + */ + public String getCostingMethod(); + + /** Column name CumulatedAmt */ + public static final String COLUMNNAME_CumulatedAmt = "CumulatedAmt"; + + /** Set Accumulated Amt. + * Total Amount + */ + public void setCumulatedAmt (BigDecimal CumulatedAmt); + + /** Get Accumulated Amt. + * Total Amount + */ + public BigDecimal getCumulatedAmt(); + + /** Column name CumulatedQty */ + public static final String COLUMNNAME_CumulatedQty = "CumulatedQty"; + + /** Set Accumulated Qty. + * Total Quantity + */ + public void setCumulatedQty (BigDecimal CumulatedQty); + + /** Get Accumulated Qty. + * Total Quantity + */ + public BigDecimal getCumulatedQty(); + + /** Column name CurrentCostPrice */ + public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; + + /** Set Current Cost Price. + * The currently used cost price + */ + public void setCurrentCostPrice (BigDecimal CurrentCostPrice); + + /** Get Current Cost Price. + * The currently used cost price + */ + public BigDecimal getCurrentCostPrice(); + + /** Column name CurrentQty */ + public static final String COLUMNNAME_CurrentQty = "CurrentQty"; + + /** Set Current Quantity. + * Current Quantity + */ + public void setCurrentQty (BigDecimal CurrentQty); + + /** Get Current Quantity. + * Current Quantity + */ + public BigDecimal getCurrentQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name FutureCostPrice */ + public static final String COLUMNNAME_FutureCostPrice = "FutureCostPrice"; + + /** Set Future Cost Price */ + public void setFutureCostPrice (BigDecimal FutureCostPrice); + + /** Get Future Cost Price */ + public BigDecimal getFutureCostPrice(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + public I_M_CostElement getI_M_CostElement() throws Exception; + + /** Column name M_CostType_ID */ + public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; + + /** Set Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID); + + /** Get Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID(); + + public I_M_CostType getI_M_CostType() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Percent */ + public static final String COLUMNNAME_Percent = "Percent"; + + /** Set Percent. + * Percentage + */ + public void setPercent (int Percent); + + /** Get Percent. + * Percentage + */ + public int getPercent(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); +} diff --git a/base/src/org/compiere/model/I_M_CostDetail.java b/base/src/org/compiere/model/I_M_CostDetail.java new file mode 100644 index 0000000000..f0d681d6ed --- /dev/null +++ b/base/src/org/compiere/model/I_M_CostDetail.java @@ -0,0 +1,324 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_CostDetail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.515 + */ + public interface I_M_CostDetail +{ + + /** TableName=M_CostDetail */ + public static final String Table_Name = "M_CostDetail"; + + /** AD_Table_ID=808 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + /** Column name DeltaAmt */ + public static final String COLUMNNAME_DeltaAmt = "DeltaAmt"; + + /** Set Delta Amount. + * Difference Amount + */ + public void setDeltaAmt (BigDecimal DeltaAmt); + + /** Get Delta Amount. + * Difference Amount + */ + public BigDecimal getDeltaAmt(); + + /** Column name DeltaQty */ + public static final String COLUMNNAME_DeltaQty = "DeltaQty"; + + /** Set Delta Quantity. + * Quantity Difference + */ + public void setDeltaQty (BigDecimal DeltaQty); + + /** Get Delta Quantity. + * Quantity Difference + */ + public BigDecimal getDeltaQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_CostDetail_ID */ + public static final String COLUMNNAME_M_CostDetail_ID = "M_CostDetail_ID"; + + /** Set Cost Detail. + * Cost Detail Information + */ + public void setM_CostDetail_ID (int M_CostDetail_ID); + + /** Get Cost Detail. + * Cost Detail Information + */ + public int getM_CostDetail_ID(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + public I_M_CostElement getI_M_CostElement() throws Exception; + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + /** Column name Price */ + public static final String COLUMNNAME_Price = "Price"; + + /** Set Price. + * Price + */ + public void setPrice (BigDecimal Price); + + /** Get Price. + * Price + */ + public BigDecimal getPrice(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_M_CostElement.java b/base/src/org/compiere/model/I_M_CostElement.java new file mode 100644 index 0000000000..cabaea8752 --- /dev/null +++ b/base/src/org/compiere/model/I_M_CostElement.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_CostElement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.546 + */ + public interface I_M_CostElement +{ + + /** TableName=M_CostElement */ + public static final String Table_Name = "M_CostElement"; + + /** AD_Table_ID=770 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name CostElementType */ + public static final String COLUMNNAME_CostElementType = "CostElementType"; + + /** Set Cost Element Type. + * Type of Cost Element + */ + public void setCostElementType (String CostElementType); + + /** Get Cost Element Type. + * Type of Cost Element + */ + public String getCostElementType(); + + /** Column name CostingMethod */ + public static final String COLUMNNAME_CostingMethod = "CostingMethod"; + + /** Set Costing Method. + * Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod); + + /** Get Costing Method. + * Indicates how Costs will be calculated + */ + public String getCostingMethod(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsCalculated */ + public static final String COLUMNNAME_IsCalculated = "IsCalculated"; + + /** Set Calculated. + * The value is calculated by the system + */ + public void setIsCalculated (boolean IsCalculated); + + /** Get Calculated. + * The value is calculated by the system + */ + public boolean isCalculated(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_CostQueue.java b/base/src/org/compiere/model/I_M_CostQueue.java new file mode 100644 index 0000000000..a805b2a0f5 --- /dev/null +++ b/base/src/org/compiere/model/I_M_CostQueue.java @@ -0,0 +1,170 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_CostQueue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.562 + */ + public interface I_M_CostQueue +{ + + /** TableName=M_CostQueue */ + public static final String Table_Name = "M_CostQueue"; + + /** AD_Table_ID=817 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name CurrentCostPrice */ + public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; + + /** Set Current Cost Price. + * The currently used cost price + */ + public void setCurrentCostPrice (BigDecimal CurrentCostPrice); + + /** Get Current Cost Price. + * The currently used cost price + */ + public BigDecimal getCurrentCostPrice(); + + /** Column name CurrentQty */ + public static final String COLUMNNAME_CurrentQty = "CurrentQty"; + + /** Set Current Quantity. + * Current Quantity + */ + public void setCurrentQty (BigDecimal CurrentQty); + + /** Get Current Quantity. + * Current Quantity + */ + public BigDecimal getCurrentQty(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + public I_M_CostElement getI_M_CostElement() throws Exception; + + /** Column name M_CostQueue_ID */ + public static final String COLUMNNAME_M_CostQueue_ID = "M_CostQueue_ID"; + + /** Set Cost Queue. + * FiFo/LiFo Cost Queue + */ + public void setM_CostQueue_ID (int M_CostQueue_ID); + + /** Get Cost Queue. + * FiFo/LiFo Cost Queue + */ + public int getM_CostQueue_ID(); + + /** Column name M_CostType_ID */ + public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; + + /** Set Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID); + + /** Get Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID(); + + public I_M_CostType getI_M_CostType() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); +} diff --git a/base/src/org/compiere/model/I_M_CostType.java b/base/src/org/compiere/model/I_M_CostType.java new file mode 100644 index 0000000000..a7c53acdd9 --- /dev/null +++ b/base/src/org/compiere/model/I_M_CostType.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_CostType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.593 + */ + public interface I_M_CostType +{ + + /** TableName=M_CostType */ + public static final String Table_Name = "M_CostType"; + + /** AD_Table_ID=586 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_CostType_ID */ + public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; + + /** Set Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID); + + /** Get Cost Type. + * Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_Demand.java b/base/src/org/compiere/model/I_M_Demand.java new file mode 100644 index 0000000000..83dc28b5b1 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Demand.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Demand + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.593 + */ + public interface I_M_Demand +{ + + /** TableName=M_Demand */ + public static final String Table_Name = "M_Demand"; + + /** AD_Table_ID=723 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getI_C_Calendar() throws Exception; + + /** Column name C_Year_ID */ + public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; + + /** Set Year. + * Calendar Year + */ + public void setC_Year_ID (int C_Year_ID); + + /** Get Year. + * Calendar Year + */ + public int getC_Year_ID(); + + public I_C_Year getI_C_Year() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name M_Demand_ID */ + public static final String COLUMNNAME_M_Demand_ID = "M_Demand_ID"; + + /** Set Demand. + * Material Demand + */ + public void setM_Demand_ID (int M_Demand_ID); + + /** Get Demand. + * Material Demand + */ + public int getM_Demand_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_DemandDetail.java b/base/src/org/compiere/model/I_M_DemandDetail.java new file mode 100644 index 0000000000..457f1144b3 --- /dev/null +++ b/base/src/org/compiere/model/I_M_DemandDetail.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DemandDetail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.64 + */ + public interface I_M_DemandDetail +{ + + /** TableName=M_DemandDetail */ + public static final String Table_Name = "M_DemandDetail"; + + /** AD_Table_ID=721 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name M_DemandDetail_ID */ + public static final String COLUMNNAME_M_DemandDetail_ID = "M_DemandDetail_ID"; + + /** Set Demand Detail. + * Material Demand Line Source Detail + */ + public void setM_DemandDetail_ID (int M_DemandDetail_ID); + + /** Get Demand Detail. + * Material Demand Line Source Detail + */ + public int getM_DemandDetail_ID(); + + /** Column name M_DemandLine_ID */ + public static final String COLUMNNAME_M_DemandLine_ID = "M_DemandLine_ID"; + + /** Set Demand Line. + * Material Demand Line + */ + public void setM_DemandLine_ID (int M_DemandLine_ID); + + /** Get Demand Line. + * Material Demand Line + */ + public int getM_DemandLine_ID(); + + public I_M_DemandLine getI_M_DemandLine() throws Exception; + + /** Column name M_ForecastLine_ID */ + public static final String COLUMNNAME_M_ForecastLine_ID = "M_ForecastLine_ID"; + + /** Set Forecast Line. + * Forecast Line + */ + public void setM_ForecastLine_ID (int M_ForecastLine_ID); + + /** Get Forecast Line. + * Forecast Line + */ + public int getM_ForecastLine_ID(); + + /** Column name M_RequisitionLine_ID */ + public static final String COLUMNNAME_M_RequisitionLine_ID = "M_RequisitionLine_ID"; + + /** Set Requisition Line. + * Material Requisition Line + */ + public void setM_RequisitionLine_ID (int M_RequisitionLine_ID); + + /** Get Requisition Line. + * Material Requisition Line + */ + public int getM_RequisitionLine_ID(); +} diff --git a/base/src/org/compiere/model/I_M_DemandLine.java b/base/src/org/compiere/model/I_M_DemandLine.java new file mode 100644 index 0000000000..d301575102 --- /dev/null +++ b/base/src/org/compiere/model/I_M_DemandLine.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DemandLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.703 + */ + public interface I_M_DemandLine +{ + + /** TableName=M_DemandLine */ + public static final String Table_Name = "M_DemandLine"; + + /** AD_Table_ID=719 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getI_C_Period() throws Exception; + + /** Column name M_DemandLine_ID */ + public static final String COLUMNNAME_M_DemandLine_ID = "M_DemandLine_ID"; + + /** Set Demand Line. + * Material Demand Line + */ + public void setM_DemandLine_ID (int M_DemandLine_ID); + + /** Get Demand Line. + * Material Demand Line + */ + public int getM_DemandLine_ID(); + + /** Column name M_Demand_ID */ + public static final String COLUMNNAME_M_Demand_ID = "M_Demand_ID"; + + /** Set Demand. + * Material Demand + */ + public void setM_Demand_ID (int M_Demand_ID); + + /** Get Demand. + * Material Demand + */ + public int getM_Demand_ID(); + + public I_M_Demand getI_M_Demand() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name QtyCalculated */ + public static final String COLUMNNAME_QtyCalculated = "QtyCalculated"; + + /** Set Calculated Quantity. + * Calculated Quantity + */ + public void setQtyCalculated (BigDecimal QtyCalculated); + + /** Get Calculated Quantity. + * Calculated Quantity + */ + public BigDecimal getQtyCalculated(); +} diff --git a/base/src/org/compiere/model/I_M_DiscountSchema.java b/base/src/org/compiere/model/I_M_DiscountSchema.java new file mode 100644 index 0000000000..acfbfcce62 --- /dev/null +++ b/base/src/org/compiere/model/I_M_DiscountSchema.java @@ -0,0 +1,199 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DiscountSchema + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.718 + */ + public interface I_M_DiscountSchema +{ + + /** TableName=M_DiscountSchema */ + public static final String Table_Name = "M_DiscountSchema"; + + /** AD_Table_ID=475 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name CumulativeLevel */ + public static final String COLUMNNAME_CumulativeLevel = "CumulativeLevel"; + + /** Set Accumulation Level. + * Level for accumulative calculations + */ + public void setCumulativeLevel (String CumulativeLevel); + + /** Get Accumulation Level. + * Level for accumulative calculations + */ + public String getCumulativeLevel(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DiscountType */ + public static final String COLUMNNAME_DiscountType = "DiscountType"; + + /** Set Discount Type. + * Type of trade discount calculation + */ + public void setDiscountType (String DiscountType); + + /** Get Discount Type. + * Type of trade discount calculation + */ + public String getDiscountType(); + + /** Column name FlatDiscount */ + public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; + + /** Set Flat Discount %. + * Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount); + + /** Get Flat Discount %. + * Flat discount percentage + */ + public BigDecimal getFlatDiscount(); + + /** Column name IsBPartnerFlatDiscount */ + public static final String COLUMNNAME_IsBPartnerFlatDiscount = "IsBPartnerFlatDiscount"; + + /** Set B.Partner Flat Discount. + * Use flat discount defined on Business Partner Level + */ + public void setIsBPartnerFlatDiscount (boolean IsBPartnerFlatDiscount); + + /** Get B.Partner Flat Discount. + * Use flat discount defined on Business Partner Level + */ + public boolean isBPartnerFlatDiscount(); + + /** Column name IsQuantityBased */ + public static final String COLUMNNAME_IsQuantityBased = "IsQuantityBased"; + + /** Set Quantity based. + * Trade discount break level based on Quantity (not value) + */ + public void setIsQuantityBased (boolean IsQuantityBased); + + /** Get Quantity based. + * Trade discount break level based on Quantity (not value) + */ + public boolean isQuantityBased(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Script */ + public static final String COLUMNNAME_Script = "Script"; + + /** Set Script. + * Dynamic Java Language Script to calculate result + */ + public void setScript (String Script); + + /** Get Script. + * Dynamic Java Language Script to calculate result + */ + public String getScript(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); +} diff --git a/base/src/org/compiere/model/I_M_DiscountSchemaBreak.java b/base/src/org/compiere/model/I_M_DiscountSchemaBreak.java new file mode 100644 index 0000000000..11157837ca --- /dev/null +++ b/base/src/org/compiere/model/I_M_DiscountSchemaBreak.java @@ -0,0 +1,170 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DiscountSchemaBreak + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.734 + */ + public interface I_M_DiscountSchemaBreak +{ + + /** TableName=M_DiscountSchemaBreak */ + public static final String Table_Name = "M_DiscountSchemaBreak"; + + /** AD_Table_ID=476 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BreakDiscount */ + public static final String COLUMNNAME_BreakDiscount = "BreakDiscount"; + + /** Set Break Discount %. + * Trade Discount in Percent for the break level + */ + public void setBreakDiscount (BigDecimal BreakDiscount); + + /** Get Break Discount %. + * Trade Discount in Percent for the break level + */ + public BigDecimal getBreakDiscount(); + + /** Column name BreakValue */ + public static final String COLUMNNAME_BreakValue = "BreakValue"; + + /** Set Break Value. + * Low Value of trade discount break level + */ + public void setBreakValue (BigDecimal BreakValue); + + /** Get Break Value. + * Low Value of trade discount break level + */ + public BigDecimal getBreakValue(); + + /** Column name IsBPartnerFlatDiscount */ + public static final String COLUMNNAME_IsBPartnerFlatDiscount = "IsBPartnerFlatDiscount"; + + /** Set B.Partner Flat Discount. + * Use flat discount defined on Business Partner Level + */ + public void setIsBPartnerFlatDiscount (boolean IsBPartnerFlatDiscount); + + /** Get B.Partner Flat Discount. + * Use flat discount defined on Business Partner Level + */ + public boolean isBPartnerFlatDiscount(); + + /** Column name M_DiscountSchemaBreak_ID */ + public static final String COLUMNNAME_M_DiscountSchemaBreak_ID = "M_DiscountSchemaBreak_ID"; + + /** Set Discount Schema Break. + * Trade Discount Break + */ + public void setM_DiscountSchemaBreak_ID (int M_DiscountSchemaBreak_ID); + + /** Get Discount Schema Break. + * Trade Discount Break + */ + public int getM_DiscountSchemaBreak_ID(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception; + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_M_DiscountSchemaLine.java b/base/src/org/compiere/model/I_M_DiscountSchemaLine.java new file mode 100644 index 0000000000..384bf1b8bc --- /dev/null +++ b/base/src/org/compiere/model/I_M_DiscountSchemaLine.java @@ -0,0 +1,449 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DiscountSchemaLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.75 + */ + public interface I_M_DiscountSchemaLine +{ + + /** TableName=M_DiscountSchemaLine */ + public static final String Table_Name = "M_DiscountSchemaLine"; + + /** AD_Table_ID=477 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getI_C_ConversionType() throws Exception; + + /** Column name ConversionDate */ + public static final String COLUMNNAME_ConversionDate = "ConversionDate"; + + /** Set Conversion Date. + * Date for selecting conversion rate + */ + public void setConversionDate (Timestamp ConversionDate); + + /** Get Conversion Date. + * Date for selecting conversion rate + */ + public Timestamp getConversionDate(); + + /** Column name Limit_AddAmt */ + public static final String COLUMNNAME_Limit_AddAmt = "Limit_AddAmt"; + + /** Set Limit price Surcharge Amount. + * Amount added to the converted/copied price before multiplying + */ + public void setLimit_AddAmt (BigDecimal Limit_AddAmt); + + /** Get Limit price Surcharge Amount. + * Amount added to the converted/copied price before multiplying + */ + public BigDecimal getLimit_AddAmt(); + + /** Column name Limit_Base */ + public static final String COLUMNNAME_Limit_Base = "Limit_Base"; + + /** Set Limit price Base. + * Base price for calculation of the new price + */ + public void setLimit_Base (String Limit_Base); + + /** Get Limit price Base. + * Base price for calculation of the new price + */ + public String getLimit_Base(); + + /** Column name Limit_Discount */ + public static final String COLUMNNAME_Limit_Discount = "Limit_Discount"; + + /** Set Limit price Discount %. + * Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public void setLimit_Discount (BigDecimal Limit_Discount); + + /** Get Limit price Discount %. + * Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public BigDecimal getLimit_Discount(); + + /** Column name Limit_Fixed */ + public static final String COLUMNNAME_Limit_Fixed = "Limit_Fixed"; + + /** Set Fixed Limit Price. + * Fixed Limit Price (not calculated) + */ + public void setLimit_Fixed (BigDecimal Limit_Fixed); + + /** Get Fixed Limit Price. + * Fixed Limit Price (not calculated) + */ + public BigDecimal getLimit_Fixed(); + + /** Column name Limit_MaxAmt */ + public static final String COLUMNNAME_Limit_MaxAmt = "Limit_MaxAmt"; + + /** Set Limit price max Margin. + * Maximum difference to original limit price; + ignored if zero + */ + public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt); + + /** Get Limit price max Margin. + * Maximum difference to original limit price; + ignored if zero + */ + public BigDecimal getLimit_MaxAmt(); + + /** Column name Limit_MinAmt */ + public static final String COLUMNNAME_Limit_MinAmt = "Limit_MinAmt"; + + /** Set Limit price min Margin. + * Minimum difference to original limit price; + ignored if zero + */ + public void setLimit_MinAmt (BigDecimal Limit_MinAmt); + + /** Get Limit price min Margin. + * Minimum difference to original limit price; + ignored if zero + */ + public BigDecimal getLimit_MinAmt(); + + /** Column name Limit_Rounding */ + public static final String COLUMNNAME_Limit_Rounding = "Limit_Rounding"; + + /** Set Limit price Rounding. + * Rounding of the final result + */ + public void setLimit_Rounding (String Limit_Rounding); + + /** Get Limit price Rounding. + * Rounding of the final result + */ + public String getLimit_Rounding(); + + /** Column name List_AddAmt */ + public static final String COLUMNNAME_List_AddAmt = "List_AddAmt"; + + /** Set List price Surcharge Amount. + * List Price Surcharge Amount + */ + public void setList_AddAmt (BigDecimal List_AddAmt); + + /** Get List price Surcharge Amount. + * List Price Surcharge Amount + */ + public BigDecimal getList_AddAmt(); + + /** Column name List_Base */ + public static final String COLUMNNAME_List_Base = "List_Base"; + + /** Set List price Base. + * Price used as the basis for price list calculations + */ + public void setList_Base (String List_Base); + + /** Get List price Base. + * Price used as the basis for price list calculations + */ + public String getList_Base(); + + /** Column name List_Discount */ + public static final String COLUMNNAME_List_Discount = "List_Discount"; + + /** Set List price Discount %. + * Discount from list price as a percentage + */ + public void setList_Discount (BigDecimal List_Discount); + + /** Get List price Discount %. + * Discount from list price as a percentage + */ + public BigDecimal getList_Discount(); + + /** Column name List_Fixed */ + public static final String COLUMNNAME_List_Fixed = "List_Fixed"; + + /** Set Fixed List Price. + * Fixes List Price (not calculated) + */ + public void setList_Fixed (BigDecimal List_Fixed); + + /** Get Fixed List Price. + * Fixes List Price (not calculated) + */ + public BigDecimal getList_Fixed(); + + /** Column name List_MaxAmt */ + public static final String COLUMNNAME_List_MaxAmt = "List_MaxAmt"; + + /** Set List price max Margin. + * Maximum margin for a product + */ + public void setList_MaxAmt (BigDecimal List_MaxAmt); + + /** Get List price max Margin. + * Maximum margin for a product + */ + public BigDecimal getList_MaxAmt(); + + /** Column name List_MinAmt */ + public static final String COLUMNNAME_List_MinAmt = "List_MinAmt"; + + /** Set List price min Margin. + * Minimum margin for a product + */ + public void setList_MinAmt (BigDecimal List_MinAmt); + + /** Get List price min Margin. + * Minimum margin for a product + */ + public BigDecimal getList_MinAmt(); + + /** Column name List_Rounding */ + public static final String COLUMNNAME_List_Rounding = "List_Rounding"; + + /** Set List price Rounding. + * Rounding rule for final list price + */ + public void setList_Rounding (String List_Rounding); + + /** Get List price Rounding. + * Rounding rule for final list price + */ + public String getList_Rounding(); + + /** Column name M_DiscountSchemaLine_ID */ + public static final String COLUMNNAME_M_DiscountSchemaLine_ID = "M_DiscountSchemaLine_ID"; + + /** Set Discount Pricelist. + * Line of the pricelist trade discount schema + */ + public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID); + + /** Get Discount Pricelist. + * Line of the pricelist trade discount schema + */ + public int getM_DiscountSchemaLine_ID(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception; + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name Std_AddAmt */ + public static final String COLUMNNAME_Std_AddAmt = "Std_AddAmt"; + + /** Set Standard price Surcharge Amount. + * Amount added to a price as a surcharge + */ + public void setStd_AddAmt (BigDecimal Std_AddAmt); + + /** Get Standard price Surcharge Amount. + * Amount added to a price as a surcharge + */ + public BigDecimal getStd_AddAmt(); + + /** Column name Std_Base */ + public static final String COLUMNNAME_Std_Base = "Std_Base"; + + /** Set Standard price Base. + * Base price for calculating new standard price + */ + public void setStd_Base (String Std_Base); + + /** Get Standard price Base. + * Base price for calculating new standard price + */ + public String getStd_Base(); + + /** Column name Std_Discount */ + public static final String COLUMNNAME_Std_Discount = "Std_Discount"; + + /** Set Standard price Discount %. + * Discount percentage to subtract from base price + */ + public void setStd_Discount (BigDecimal Std_Discount); + + /** Get Standard price Discount %. + * Discount percentage to subtract from base price + */ + public BigDecimal getStd_Discount(); + + /** Column name Std_Fixed */ + public static final String COLUMNNAME_Std_Fixed = "Std_Fixed"; + + /** Set Fixed Standard Price. + * Fixed Standard Price (not calculated) + */ + public void setStd_Fixed (BigDecimal Std_Fixed); + + /** Get Fixed Standard Price. + * Fixed Standard Price (not calculated) + */ + public BigDecimal getStd_Fixed(); + + /** Column name Std_MaxAmt */ + public static final String COLUMNNAME_Std_MaxAmt = "Std_MaxAmt"; + + /** Set Standard max Margin. + * Maximum margin allowed for a product + */ + public void setStd_MaxAmt (BigDecimal Std_MaxAmt); + + /** Get Standard max Margin. + * Maximum margin allowed for a product + */ + public BigDecimal getStd_MaxAmt(); + + /** Column name Std_MinAmt */ + public static final String COLUMNNAME_Std_MinAmt = "Std_MinAmt"; + + /** Set Standard price min Margin. + * Minimum margin allowed for a product + */ + public void setStd_MinAmt (BigDecimal Std_MinAmt); + + /** Get Standard price min Margin. + * Minimum margin allowed for a product + */ + public BigDecimal getStd_MinAmt(); + + /** Column name Std_Rounding */ + public static final String COLUMNNAME_Std_Rounding = "Std_Rounding"; + + /** Set Standard price Rounding. + * Rounding rule for calculated price + */ + public void setStd_Rounding (String Std_Rounding); + + /** Get Standard price Rounding. + * Rounding rule for calculated price + */ + public String getStd_Rounding(); +} diff --git a/base/src/org/compiere/model/I_M_DistributionList.java b/base/src/org/compiere/model/I_M_DistributionList.java new file mode 100644 index 0000000000..56548e1474 --- /dev/null +++ b/base/src/org/compiere/model/I_M_DistributionList.java @@ -0,0 +1,134 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DistributionList + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.812 + */ + public interface I_M_DistributionList +{ + + /** TableName=M_DistributionList */ + public static final String Table_Name = "M_DistributionList"; + + /** AD_Table_ID=666 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_DistributionList_ID */ + public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; + + /** Set Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID); + + /** Get Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name RatioTotal */ + public static final String COLUMNNAME_RatioTotal = "RatioTotal"; + + /** Set Total Ratio. + * Total of relative weight in a distribution + */ + public void setRatioTotal (BigDecimal RatioTotal); + + /** Get Total Ratio. + * Total of relative weight in a distribution + */ + public BigDecimal getRatioTotal(); +} diff --git a/base/src/org/compiere/model/I_M_DistributionListLine.java b/base/src/org/compiere/model/I_M_DistributionListLine.java new file mode 100644 index 0000000000..53c9989db1 --- /dev/null +++ b/base/src/org/compiere/model/I_M_DistributionListLine.java @@ -0,0 +1,155 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DistributionListLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.828 + */ + public interface I_M_DistributionListLine +{ + + /** TableName=M_DistributionListLine */ + public static final String Table_Name = "M_DistributionListLine"; + + /** AD_Table_ID=665 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_DistributionListLine_ID */ + public static final String COLUMNNAME_M_DistributionListLine_ID = "M_DistributionListLine_ID"; + + /** Set Distribution List Line. + * Distribution List Line with Business Partner and Quantity/Percentage + */ + public void setM_DistributionListLine_ID (int M_DistributionListLine_ID); + + /** Get Distribution List Line. + * Distribution List Line with Business Partner and Quantity/Percentage + */ + public int getM_DistributionListLine_ID(); + + /** Column name M_DistributionList_ID */ + public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; + + /** Set Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID); + + /** Get Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID(); + + public I_M_DistributionList getI_M_DistributionList() throws Exception; + + /** Column name MinQty */ + public static final String COLUMNNAME_MinQty = "MinQty"; + + /** Set Minimum Quantity. + * Minimum quantity for the business partner + */ + public void setMinQty (BigDecimal MinQty); + + /** Get Minimum Quantity. + * Minimum quantity for the business partner + */ + public BigDecimal getMinQty(); + + /** Column name Ratio */ + public static final String COLUMNNAME_Ratio = "Ratio"; + + /** Set Ratio. + * Relative Ratio for Distributions + */ + public void setRatio (BigDecimal Ratio); + + /** Get Ratio. + * Relative Ratio for Distributions + */ + public BigDecimal getRatio(); +} diff --git a/base/src/org/compiere/model/I_M_DistributionRun.java b/base/src/org/compiere/model/I_M_DistributionRun.java new file mode 100644 index 0000000000..f8e3baa4ec --- /dev/null +++ b/base/src/org/compiere/model/I_M_DistributionRun.java @@ -0,0 +1,149 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DistributionRun + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.843 + */ + public interface I_M_DistributionRun +{ + + /** TableName=M_DistributionRun */ + public static final String Table_Name = "M_DistributionRun"; + + /** AD_Table_ID=712 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsCreateSingleOrder */ + public static final String COLUMNNAME_IsCreateSingleOrder = "IsCreateSingleOrder"; + + /** Set Create Single Order. + * For all shipments create one Order + */ + public void setIsCreateSingleOrder (boolean IsCreateSingleOrder); + + /** Get Create Single Order. + * For all shipments create one Order + */ + public boolean isCreateSingleOrder(); + + /** Column name M_DistributionRun_ID */ + public static final String COLUMNNAME_M_DistributionRun_ID = "M_DistributionRun_ID"; + + /** Set Distribution Run. + * Distribution Run create Orders to distribute products to a selected list of partners + */ + public void setM_DistributionRun_ID (int M_DistributionRun_ID); + + /** Get Distribution Run. + * Distribution Run create Orders to distribute products to a selected list of partners + */ + public int getM_DistributionRun_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_DistributionRunLine.java b/base/src/org/compiere/model/I_M_DistributionRunLine.java new file mode 100644 index 0000000000..321cd02c4b --- /dev/null +++ b/base/src/org/compiere/model/I_M_DistributionRunLine.java @@ -0,0 +1,168 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_DistributionRunLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.859 + */ + public interface I_M_DistributionRunLine +{ + + /** TableName=M_DistributionRunLine */ + public static final String Table_Name = "M_DistributionRunLine"; + + /** AD_Table_ID=713 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_DistributionList_ID */ + public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; + + /** Set Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID); + + /** Get Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID(); + + public I_M_DistributionList getI_M_DistributionList() throws Exception; + + /** Column name M_DistributionRunLine_ID */ + public static final String COLUMNNAME_M_DistributionRunLine_ID = "M_DistributionRunLine_ID"; + + /** Set Distribution Run Line. + * Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID); + + /** Get Distribution Run Line. + * Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public int getM_DistributionRunLine_ID(); + + /** Column name M_DistributionRun_ID */ + public static final String COLUMNNAME_M_DistributionRun_ID = "M_DistributionRun_ID"; + + /** Set Distribution Run. + * Distribution Run create Orders to distribute products to a selected list of partners + */ + public void setM_DistributionRun_ID (int M_DistributionRun_ID); + + /** Get Distribution Run. + * Distribution Run create Orders to distribute products to a selected list of partners + */ + public int getM_DistributionRun_ID(); + + public I_M_DistributionRun getI_M_DistributionRun() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name MinQty */ + public static final String COLUMNNAME_MinQty = "MinQty"; + + /** Set Minimum Quantity. + * Minimum quantity for the business partner + */ + public void setMinQty (BigDecimal MinQty); + + /** Get Minimum Quantity. + * Minimum quantity for the business partner + */ + public BigDecimal getMinQty(); + + /** Column name TotalQty */ + public static final String COLUMNNAME_TotalQty = "TotalQty"; + + /** Set Total Quantity. + * Total Quantity + */ + public void setTotalQty (BigDecimal TotalQty); + + /** Get Total Quantity. + * Total Quantity + */ + public BigDecimal getTotalQty(); +} diff --git a/base/src/org/compiere/model/I_M_EDI.java b/base/src/org/compiere/model/I_M_EDI.java new file mode 100644 index 0000000000..d5291a609e --- /dev/null +++ b/base/src/org/compiere/model/I_M_EDI.java @@ -0,0 +1,276 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_EDI + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.89 + */ + public interface I_M_EDI +{ + + /** TableName=M_EDI */ + public static final String Table_Name = "M_EDI"; + + /** AD_Table_ID=367 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BP_EDI_ID */ + public static final String COLUMNNAME_C_BP_EDI_ID = "C_BP_EDI_ID"; + + /** Set EDI Definition. + * Electronic Data Interchange + */ + public void setC_BP_EDI_ID (int C_BP_EDI_ID); + + /** Get EDI Definition. + * Electronic Data Interchange + */ + public int getC_BP_EDI_ID(); + + public I_C_BP_EDI getI_C_BP_EDI() throws Exception; + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name EDIStatus */ + public static final String COLUMNNAME_EDIStatus = "EDIStatus"; + + /** Set EDI Status */ + public void setEDIStatus (String EDIStatus); + + /** Get EDI Status */ + public String getEDIStatus(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_EDI_ID */ + public static final String COLUMNNAME_M_EDI_ID = "M_EDI_ID"; + + /** Set EDI Transaction */ + public void setM_EDI_ID (int M_EDI_ID); + + /** Get EDI Transaction */ + public int getM_EDI_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Reply_Price */ + public static final String COLUMNNAME_Reply_Price = "Reply_Price"; + + /** Set Reply Price. + * Confirmed Price from EDI Partner + */ + public void setReply_Price (BigDecimal Reply_Price); + + /** Get Reply Price. + * Confirmed Price from EDI Partner + */ + public BigDecimal getReply_Price(); + + /** Column name Reply_QtyAvailable */ + public static final String COLUMNNAME_Reply_QtyAvailable = "Reply_QtyAvailable"; + + /** Set Reply Qty Available */ + public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable); + + /** Get Reply Qty Available */ + public BigDecimal getReply_QtyAvailable(); + + /** Column name Reply_QtyConfirmed */ + public static final String COLUMNNAME_Reply_QtyConfirmed = "Reply_QtyConfirmed"; + + /** Set Reply Qty Confirmed */ + public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed); + + /** Get Reply Qty Confirmed */ + public BigDecimal getReply_QtyConfirmed(); + + /** Column name Reply_Received */ + public static final String COLUMNNAME_Reply_Received = "Reply_Received"; + + /** Set Reply Received */ + public void setReply_Received (Timestamp Reply_Received); + + /** Get Reply Received */ + public Timestamp getReply_Received(); + + /** Column name Reply_Remarks */ + public static final String COLUMNNAME_Reply_Remarks = "Reply_Remarks"; + + /** Set Reply Remarks */ + public void setReply_Remarks (String Reply_Remarks); + + /** Get Reply Remarks */ + public String getReply_Remarks(); + + /** Column name Reply_ShipDate */ + public static final String COLUMNNAME_Reply_ShipDate = "Reply_ShipDate"; + + /** Set Reply Ship date */ + public void setReply_ShipDate (Timestamp Reply_ShipDate); + + /** Get Reply Ship date */ + public Timestamp getReply_ShipDate(); + + /** Column name Request_Price */ + public static final String COLUMNNAME_Request_Price = "Request_Price"; + + /** Set Request Price */ + public void setRequest_Price (BigDecimal Request_Price); + + /** Get Request Price */ + public BigDecimal getRequest_Price(); + + /** Column name Request_Qty */ + public static final String COLUMNNAME_Request_Qty = "Request_Qty"; + + /** Set Request Qty */ + public void setRequest_Qty (BigDecimal Request_Qty); + + /** Get Request Qty */ + public BigDecimal getRequest_Qty(); + + /** Column name Request_Shipdate */ + public static final String COLUMNNAME_Request_Shipdate = "Request_Shipdate"; + + /** Set Request Ship date */ + public void setRequest_Shipdate (Timestamp Request_Shipdate); + + /** Get Request Ship date */ + public Timestamp getRequest_Shipdate(); + + /** Column name TrxReceived */ + public static final String COLUMNNAME_TrxReceived = "TrxReceived"; + + /** Set Transaction received */ + public void setTrxReceived (Timestamp TrxReceived); + + /** Get Transaction received */ + public Timestamp getTrxReceived(); + + /** Column name TrxSent */ + public static final String COLUMNNAME_TrxSent = "TrxSent"; + + /** Set Transaction sent */ + public void setTrxSent (Timestamp TrxSent); + + /** Get Transaction sent */ + public Timestamp getTrxSent(); + + /** Column name TrxType */ + public static final String COLUMNNAME_TrxType = "TrxType"; + + /** Set Transaction Type. + * Type of credit card transaction + */ + public void setTrxType (String TrxType); + + /** Get Transaction Type. + * Type of credit card transaction + */ + public String getTrxType(); +} diff --git a/base/src/org/compiere/model/I_M_EDI_Info.java b/base/src/org/compiere/model/I_M_EDI_Info.java new file mode 100644 index 0000000000..37c7b60aaa --- /dev/null +++ b/base/src/org/compiere/model/I_M_EDI_Info.java @@ -0,0 +1,93 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_EDI_Info + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.921 + */ + public interface I_M_EDI_Info +{ + + /** TableName=M_EDI_Info */ + public static final String Table_Name = "M_EDI_Info"; + + /** AD_Table_ID=368 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Info */ + public static final String COLUMNNAME_Info = "Info"; + + /** Set Info. + * Information + */ + public void setInfo (String Info); + + /** Get Info. + * Information + */ + public String getInfo(); + + /** Column name M_EDI_ID */ + public static final String COLUMNNAME_M_EDI_ID = "M_EDI_ID"; + + /** Set EDI Transaction */ + public void setM_EDI_ID (int M_EDI_ID); + + /** Get EDI Transaction */ + public int getM_EDI_ID(); + + public I_M_EDI getI_M_EDI() throws Exception; + + /** Column name M_EDI_Info_ID */ + public static final String COLUMNNAME_M_EDI_Info_ID = "M_EDI_Info_ID"; + + /** Set EDI Log */ + public void setM_EDI_Info_ID (int M_EDI_Info_ID); + + /** Get EDI Log */ + public int getM_EDI_Info_ID(); +} diff --git a/base/src/org/compiere/model/I_M_Forecast.java b/base/src/org/compiere/model/I_M_Forecast.java new file mode 100644 index 0000000000..40825787ed --- /dev/null +++ b/base/src/org/compiere/model/I_M_Forecast.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Forecast + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.921 + */ + public interface I_M_Forecast +{ + + /** TableName=M_Forecast */ + public static final String Table_Name = "M_Forecast"; + + /** AD_Table_ID=720 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getI_C_Calendar() throws Exception; + + /** Column name C_Year_ID */ + public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; + + /** Set Year. + * Calendar Year + */ + public void setC_Year_ID (int C_Year_ID); + + /** Get Year. + * Calendar Year + */ + public int getC_Year_ID(); + + public I_C_Year getI_C_Year() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name M_Forecast_ID */ + public static final String COLUMNNAME_M_Forecast_ID = "M_Forecast_ID"; + + /** Set Forecast. + * Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID); + + /** Get Forecast. + * Material Forecast + */ + public int getM_Forecast_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_ForecastLine.java b/base/src/org/compiere/model/I_M_ForecastLine.java new file mode 100644 index 0000000000..5bf8ff7543 --- /dev/null +++ b/base/src/org/compiere/model/I_M_ForecastLine.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ForecastLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.937 + */ + public interface I_M_ForecastLine +{ + + /** TableName=M_ForecastLine */ + public static final String Table_Name = "M_ForecastLine"; + + /** AD_Table_ID=722 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getI_C_Period() throws Exception; + + /** Column name M_ForecastLine_ID */ + public static final String COLUMNNAME_M_ForecastLine_ID = "M_ForecastLine_ID"; + + /** Set Forecast Line. + * Forecast Line + */ + public void setM_ForecastLine_ID (int M_ForecastLine_ID); + + /** Get Forecast Line. + * Forecast Line + */ + public int getM_ForecastLine_ID(); + + /** Column name M_Forecast_ID */ + public static final String COLUMNNAME_M_Forecast_ID = "M_Forecast_ID"; + + /** Set Forecast. + * Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID); + + /** Get Forecast. + * Material Forecast + */ + public int getM_Forecast_ID(); + + public I_M_Forecast getI_M_Forecast() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name QtyCalculated */ + public static final String COLUMNNAME_QtyCalculated = "QtyCalculated"; + + /** Set Calculated Quantity. + * Calculated Quantity + */ + public void setQtyCalculated (BigDecimal QtyCalculated); + + /** Get Calculated Quantity. + * Calculated Quantity + */ + public BigDecimal getQtyCalculated(); +} diff --git a/base/src/org/compiere/model/I_M_Freight.java b/base/src/org/compiere/model/I_M_Freight.java new file mode 100644 index 0000000000..8819f771ea --- /dev/null +++ b/base/src/org/compiere/model/I_M_Freight.java @@ -0,0 +1,200 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Freight + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:49.984 + */ + public interface I_M_Freight +{ + + /** TableName=M_Freight */ + public static final String Table_Name = "M_Freight"; + + /** AD_Table_ID=596 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + public I_C_Region getI_C_Region() throws Exception; + + /** Column name FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name M_FreightCategory_ID */ + public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; + + /** Set Freight Category. + * Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID); + + /** Get Freight Category. + * Category of the Freight + */ + public int getM_FreightCategory_ID(); + + public I_M_FreightCategory getI_M_FreightCategory() throws Exception; + + /** Column name M_Freight_ID */ + public static final String COLUMNNAME_M_Freight_ID = "M_Freight_ID"; + + /** Set Freight. + * Freight Rate + */ + public void setM_Freight_ID (int M_Freight_ID); + + /** Get Freight. + * Freight Rate + */ + public int getM_Freight_ID(); + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getI_M_Shipper() throws Exception; + + /** Column name To_Country_ID */ + public static final String COLUMNNAME_To_Country_ID = "To_Country_ID"; + + /** Set To. + * Receiving Country + */ + public void setTo_Country_ID (int To_Country_ID); + + /** Get To. + * Receiving Country + */ + public int getTo_Country_ID(); + + /** Column name To_Region_ID */ + public static final String COLUMNNAME_To_Region_ID = "To_Region_ID"; + + /** Set To. + * Receiving Region + */ + public void setTo_Region_ID (int To_Region_ID); + + /** Get To. + * Receiving Region + */ + public int getTo_Region_ID(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); +} diff --git a/base/src/org/compiere/model/I_M_FreightCategory.java b/base/src/org/compiere/model/I_M_FreightCategory.java new file mode 100644 index 0000000000..ba19c70ae3 --- /dev/null +++ b/base/src/org/compiere/model/I_M_FreightCategory.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_FreightCategory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.031 + */ + public interface I_M_FreightCategory +{ + + /** TableName=M_FreightCategory */ + public static final String Table_Name = "M_FreightCategory"; + + /** AD_Table_ID=595 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_FreightCategory_ID */ + public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; + + /** Set Freight Category. + * Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID); + + /** Get Freight Category. + * Category of the Freight + */ + public int getM_FreightCategory_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_M_InOut.java b/base/src/org/compiere/model/I_M_InOut.java new file mode 100644 index 0000000000..5fa2942cce --- /dev/null +++ b/base/src/org/compiere/model/I_M_InOut.java @@ -0,0 +1,775 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InOut + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.046 + */ + public interface I_M_InOut +{ + + /** TableName=M_InOut */ + public static final String Table_Name = "M_InOut"; + + /** AD_Table_ID=319 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CreateConfirm */ + public static final String COLUMNNAME_CreateConfirm = "CreateConfirm"; + + /** Set Create Confirm */ + public void setCreateConfirm (String CreateConfirm); + + /** Get Create Confirm */ + public String getCreateConfirm(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name CreatePackage */ + public static final String COLUMNNAME_CreatePackage = "CreatePackage"; + + /** Set Create Package */ + public void setCreatePackage (String CreatePackage); + + /** Get Create Package */ + public String getCreatePackage(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePrinted */ + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + + /** Set Date printed. + * Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted); + + /** Get Date printed. + * Date the document was printed. + */ + public Timestamp getDatePrinted(); + + /** Column name DateReceived */ + public static final String COLUMNNAME_DateReceived = "DateReceived"; + + /** Set Date received. + * Date a product was received + */ + public void setDateReceived (Timestamp DateReceived); + + /** Get Date received. + * Date a product was received + */ + public Timestamp getDateReceived(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name GenerateTo */ + public static final String COLUMNNAME_GenerateTo = "GenerateTo"; + + /** Set Generate To. + * Generate To + */ + public void setGenerateTo (String GenerateTo); + + /** Get Generate To. + * Generate To + */ + public String getGenerateTo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsInDispute */ + public static final String COLUMNNAME_IsInDispute = "IsInDispute"; + + /** Set In Dispute. + * Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute); + + /** Get In Dispute. + * Document is in dispute + */ + public boolean isInDispute(); + + /** Column name IsInTransit */ + public static final String COLUMNNAME_IsInTransit = "IsInTransit"; + + /** Set In Transit. + * Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit); + + /** Get In Transit. + * Movement is in transit + */ + public boolean isInTransit(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + public I_M_RMA getI_M_RMA() throws Exception; + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getI_M_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name MovementType */ + public static final String COLUMNNAME_MovementType = "MovementType"; + + /** Set Movement Type. + * Method of moving the inventory + */ + public void setMovementType (String MovementType); + + /** Get Movement Type. + * Method of moving the inventory + */ + public String getMovementType(); + + /** Column name NoPackages */ + public static final String COLUMNNAME_NoPackages = "NoPackages"; + + /** Set No Packages. + * Number of packages shipped + */ + public void setNoPackages (int NoPackages); + + /** Get No Packages. + * Number of packages shipped + */ + public int getNoPackages(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PickDate */ + public static final String COLUMNNAME_PickDate = "PickDate"; + + /** Set Pick Date. + * Date/Time when picked for Shipment + */ + public void setPickDate (Timestamp PickDate); + + /** Get Pick Date. + * Date/Time when picked for Shipment + */ + public Timestamp getPickDate(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriorityRule */ + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + + /** Set Priority. + * Priority of a document + */ + public void setPriorityRule (String PriorityRule); + + /** Get Priority. + * Priority of a document + */ + public String getPriorityRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ref_InOut_ID */ + public static final String COLUMNNAME_Ref_InOut_ID = "Ref_InOut_ID"; + + /** Set Referenced Shipment */ + public void setRef_InOut_ID (int Ref_InOut_ID); + + /** Get Referenced Shipment */ + public int getRef_InOut_ID(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name ShipDate */ + public static final String COLUMNNAME_ShipDate = "ShipDate"; + + /** Set Ship Date. + * Shipment Date/Time + */ + public void setShipDate (Timestamp ShipDate); + + /** Get Ship Date. + * Shipment Date/Time + */ + public Timestamp getShipDate(); + + /** Column name TrackingNo */ + public static final String COLUMNNAME_TrackingNo = "TrackingNo"; + + /** Set Tracking No. + * Number to track the shipment + */ + public void setTrackingNo (String TrackingNo); + + /** Get Tracking No. + * Number to track the shipment + */ + public String getTrackingNo(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (BigDecimal Volume); + + /** Get Volume. + * Volume of a product + */ + public BigDecimal getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (BigDecimal Weight); + + /** Get Weight. + * Weight of a product + */ + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_M_InOutConfirm.java b/base/src/org/compiere/model/I_M_InOutConfirm.java new file mode 100644 index 0000000000..f8eae9c69a --- /dev/null +++ b/base/src/org/compiere/model/I_M_InOutConfirm.java @@ -0,0 +1,273 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InOutConfirm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.14 + */ + public interface I_M_InOutConfirm +{ + + /** TableName=M_InOutConfirm */ + public static final String Table_Name = "M_InOutConfirm"; + + /** AD_Table_ID=727 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name ConfirmType */ + public static final String COLUMNNAME_ConfirmType = "ConfirmType"; + + /** Set Confirmation Type. + * Type of confirmation + */ + public void setConfirmType (String ConfirmType); + + /** Get Confirmation Type. + * Type of confirmation + */ + public String getConfirmType(); + + /** Column name ConfirmationNo */ + public static final String COLUMNNAME_ConfirmationNo = "ConfirmationNo"; + + /** Set Confirmation No. + * Confirmation Number + */ + public void setConfirmationNo (String ConfirmationNo); + + /** Get Confirmation No. + * Confirmation Number + */ + public String getConfirmationNo(); + + /** Column name CreatePackage */ + public static final String COLUMNNAME_CreatePackage = "CreatePackage"; + + /** Set Create Package */ + public void setCreatePackage (String CreatePackage); + + /** Get Create Package */ + public String getCreatePackage(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsCancelled */ + public static final String COLUMNNAME_IsCancelled = "IsCancelled"; + + /** Set Cancelled. + * The transaction was cancelled + */ + public void setIsCancelled (boolean IsCancelled); + + /** Get Cancelled. + * The transaction was cancelled + */ + public boolean isCancelled(); + + /** Column name IsInDispute */ + public static final String COLUMNNAME_IsInDispute = "IsInDispute"; + + /** Set In Dispute. + * Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute); + + /** Get In Dispute. + * Document is in dispute + */ + public boolean isInDispute(); + + /** Column name M_InOutConfirm_ID */ + public static final String COLUMNNAME_M_InOutConfirm_ID = "M_InOutConfirm_ID"; + + /** Set Ship/Receipt Confirmation. + * Material Shipment or Receipt Confirmation + */ + public void setM_InOutConfirm_ID (int M_InOutConfirm_ID); + + /** Get Ship/Receipt Confirmation. + * Material Shipment or Receipt Confirmation + */ + public int getM_InOutConfirm_ID(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_InOutLine.java b/base/src/org/compiere/model/I_M_InOutLine.java new file mode 100644 index 0000000000..ff9a93e3d7 --- /dev/null +++ b/base/src/org/compiere/model/I_M_InOutLine.java @@ -0,0 +1,447 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InOutLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.171 + */ + public interface I_M_InOutLine +{ + + /** TableName=M_InOutLine */ + public static final String Table_Name = "M_InOutLine"; + + /** AD_Table_ID=320 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + public I_C_OrderLine getI_C_OrderLine() throws Exception; + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name ConfirmedQty */ + public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; + + /** Set Confirmed Quantity. + * Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty); + + /** Get Confirmed Quantity. + * Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDescription */ + public static final String COLUMNNAME_IsDescription = "IsDescription"; + + /** Set Description Only. + * if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription); + + /** Get Description Only. + * if true, the line is just description and no transaction + */ + public boolean isDescription(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_RMALine_ID */ + public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; + + /** Set RMA Line. + * Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID); + + /** Get RMA Line. + * Return Material Authorization Line + */ + public int getM_RMALine_ID(); + + public I_M_RMALine getI_M_RMALine() throws Exception; + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name PickedQty */ + public static final String COLUMNNAME_PickedQty = "PickedQty"; + + /** Set Picked Quantity */ + public void setPickedQty (BigDecimal PickedQty); + + /** Get Picked Quantity */ + public BigDecimal getPickedQty(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyEntered */ + public static final String COLUMNNAME_QtyEntered = "QtyEntered"; + + /** Set Quantity. + * The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered); + + /** Get Quantity. + * The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered(); + + /** Column name Ref_InOutLine_ID */ + public static final String COLUMNNAME_Ref_InOutLine_ID = "Ref_InOutLine_ID"; + + /** Set Referenced Shipment Line */ + public void setRef_InOutLine_ID (int Ref_InOutLine_ID); + + /** Get Referenced Shipment Line */ + public int getRef_InOutLine_ID(); + + /** Column name ScrappedQty */ + public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; + + /** Set Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty); + + /** Get Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty(); + + /** Column name TargetQty */ + public static final String COLUMNNAME_TargetQty = "TargetQty"; + + /** Set Target Quantity. + * Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty); + + /** Get Target Quantity. + * Target Movement Quantity + */ + public BigDecimal getTargetQty(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_M_InOutLineConfirm.java b/base/src/org/compiere/model/I_M_InOutLineConfirm.java new file mode 100644 index 0000000000..5e8732b2ce --- /dev/null +++ b/base/src/org/compiere/model/I_M_InOutLineConfirm.java @@ -0,0 +1,218 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InOutLineConfirm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.218 + */ + public interface I_M_InOutLineConfirm +{ + + /** TableName=M_InOutLineConfirm */ + public static final String Table_Name = "M_InOutLineConfirm"; + + /** AD_Table_ID=728 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name ConfirmationNo */ + public static final String COLUMNNAME_ConfirmationNo = "ConfirmationNo"; + + /** Set Confirmation No. + * Confirmation Number + */ + public void setConfirmationNo (String ConfirmationNo); + + /** Get Confirmation No. + * Confirmation Number + */ + public String getConfirmationNo(); + + /** Column name ConfirmedQty */ + public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; + + /** Set Confirmed Quantity. + * Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty); + + /** Get Confirmed Quantity. + * Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DifferenceQty */ + public static final String COLUMNNAME_DifferenceQty = "DifferenceQty"; + + /** Set Difference. + * Difference Quantity + */ + public void setDifferenceQty (BigDecimal DifferenceQty); + + /** Get Difference. + * Difference Quantity + */ + public BigDecimal getDifferenceQty(); + + /** Column name M_InOutConfirm_ID */ + public static final String COLUMNNAME_M_InOutConfirm_ID = "M_InOutConfirm_ID"; + + /** Set Ship/Receipt Confirmation. + * Material Shipment or Receipt Confirmation + */ + public void setM_InOutConfirm_ID (int M_InOutConfirm_ID); + + /** Get Ship/Receipt Confirmation. + * Material Shipment or Receipt Confirmation + */ + public int getM_InOutConfirm_ID(); + + public I_M_InOutConfirm getI_M_InOutConfirm() throws Exception; + + /** Column name M_InOutLineConfirm_ID */ + public static final String COLUMNNAME_M_InOutLineConfirm_ID = "M_InOutLineConfirm_ID"; + + /** Set Ship/Receipt Confirmation Line. + * Material Shipment or Receipt Confirmation Line + */ + public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID); + + /** Get Ship/Receipt Confirmation Line. + * Material Shipment or Receipt Confirmation Line + */ + public int getM_InOutLineConfirm_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ScrappedQty */ + public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; + + /** Set Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty); + + /** Get Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty(); + + /** Column name TargetQty */ + public static final String COLUMNNAME_TargetQty = "TargetQty"; + + /** Set Target Quantity. + * Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty); + + /** Get Target Quantity. + * Target Movement Quantity + */ + public BigDecimal getTargetQty(); +} diff --git a/base/src/org/compiere/model/I_M_InOutLineMA.java b/base/src/org/compiere/model/I_M_InOutLineMA.java new file mode 100644 index 0000000000..f835ac84ca --- /dev/null +++ b/base/src/org/compiere/model/I_M_InOutLineMA.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InOutLineMA + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.25 + */ + public interface I_M_InOutLineMA +{ + + /** TableName=M_InOutLineMA */ + public static final String Table_Name = "M_InOutLineMA"; + + /** AD_Table_ID=762 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); +} diff --git a/base/src/org/compiere/model/I_M_Inventory.java b/base/src/org/compiere/model/I_M_Inventory.java new file mode 100644 index 0000000000..9a2e053c19 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Inventory.java @@ -0,0 +1,350 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Inventory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.265 + */ + public interface I_M_Inventory +{ + + /** TableName=M_Inventory */ + public static final String Table_Name = "M_Inventory"; + + /** AD_Table_ID=321 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name GenerateList */ + public static final String COLUMNNAME_GenerateList = "GenerateList"; + + /** Set Generate List. + * Generate List + */ + public void setGenerateList (String GenerateList); + + /** Get Generate List. + * Generate List + */ + public String getGenerateList(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + /** Column name M_PerpetualInv_ID */ + public static final String COLUMNNAME_M_PerpetualInv_ID = "M_PerpetualInv_ID"; + + /** Set Perpetual Inventory. + * Rules for generating physical inventory + */ + public void setM_PerpetualInv_ID (int M_PerpetualInv_ID); + + /** Get Perpetual Inventory. + * Rules for generating physical inventory + */ + public int getM_PerpetualInv_ID(); + + public I_M_PerpetualInv getI_M_PerpetualInv() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name UpdateQty */ + public static final String COLUMNNAME_UpdateQty = "UpdateQty"; + + /** Set Update Quantities */ + public void setUpdateQty (String UpdateQty); + + /** Get Update Quantities */ + public String getUpdateQty(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_M_InventoryLine.java b/base/src/org/compiere/model/I_M_InventoryLine.java new file mode 100644 index 0000000000..f8121adcbf --- /dev/null +++ b/base/src/org/compiere/model/I_M_InventoryLine.java @@ -0,0 +1,259 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InventoryLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.375 + */ + public interface I_M_InventoryLine +{ + + /** TableName=M_InventoryLine */ + public static final String Table_Name = "M_InventoryLine"; + + /** AD_Table_ID=322 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name InventoryType */ + public static final String COLUMNNAME_InventoryType = "InventoryType"; + + /** Set Inventory Type. + * Type of inventory difference + */ + public void setInventoryType (String InventoryType); + + /** Get Inventory Type. + * Type of inventory difference + */ + public String getInventoryType(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + public I_M_Inventory getI_M_Inventory() throws Exception; + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyBook */ + public static final String COLUMNNAME_QtyBook = "QtyBook"; + + /** Set Quantity book. + * Book Quantity + */ + public void setQtyBook (BigDecimal QtyBook); + + /** Get Quantity book. + * Book Quantity + */ + public BigDecimal getQtyBook(); + + /** Column name QtyCount */ + public static final String COLUMNNAME_QtyCount = "QtyCount"; + + /** Set Quantity count. + * Counted Quantity + */ + public void setQtyCount (BigDecimal QtyCount); + + /** Get Quantity count. + * Counted Quantity + */ + public BigDecimal getQtyCount(); + + /** Column name QtyInternalUse */ + public static final String COLUMNNAME_QtyInternalUse = "QtyInternalUse"; + + /** Set Internal Use Qty. + * Internal Use Quantity removed from Inventory + */ + public void setQtyInternalUse (BigDecimal QtyInternalUse); + + /** Get Internal Use Qty. + * Internal Use Quantity removed from Inventory + */ + public BigDecimal getQtyInternalUse(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_M_InventoryLineMA.java b/base/src/org/compiere/model/I_M_InventoryLineMA.java new file mode 100644 index 0000000000..a540660973 --- /dev/null +++ b/base/src/org/compiere/model/I_M_InventoryLineMA.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_InventoryLineMA + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.39 + */ + public interface I_M_InventoryLineMA +{ + + /** TableName=M_InventoryLineMA */ + public static final String Table_Name = "M_InventoryLineMA"; + + /** AD_Table_ID=763 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); +} diff --git a/base/src/org/compiere/model/I_M_Locator.java b/base/src/org/compiere/model/I_M_Locator.java new file mode 100644 index 0000000000..270410f8f0 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Locator.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Locator + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.421 + */ + public interface I_M_Locator +{ + + /** TableName=M_Locator */ + public static final String Table_Name = "M_Locator"; + + /** AD_Table_ID=207 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name PriorityNo */ + public static final String COLUMNNAME_PriorityNo = "PriorityNo"; + + /** Set Relative Priority. + * Where inventory should be picked from first + */ + public void setPriorityNo (int PriorityNo); + + /** Get Relative Priority. + * Where inventory should be picked from first + */ + public int getPriorityNo(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name X */ + public static final String COLUMNNAME_X = "X"; + + /** Set Aisle (X). + * X dimension, e.g., Aisle + */ + public void setX (String X); + + /** Get Aisle (X). + * X dimension, e.g., Aisle + */ + public String getX(); + + /** Column name Y */ + public static final String COLUMNNAME_Y = "Y"; + + /** Set Bin (Y). + * Y dimension, e.g., Bin + */ + public void setY (String Y); + + /** Get Bin (Y). + * Y dimension, e.g., Bin + */ + public String getY(); + + /** Column name Z */ + public static final String COLUMNNAME_Z = "Z"; + + /** Set Level (Z). + * Z dimension, e.g., Level + */ + public void setZ (String Z); + + /** Get Level (Z). + * Z dimension, e.g., Level + */ + public String getZ(); +} diff --git a/base/src/org/compiere/model/I_M_Lot.java b/base/src/org/compiere/model/I_M_Lot.java new file mode 100644 index 0000000000..8e1891cb14 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Lot.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Lot + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.437 + */ + public interface I_M_Lot +{ + + /** TableName=M_Lot */ + public static final String Table_Name = "M_Lot"; + + /** AD_Table_ID=557 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name DateFrom */ + public static final String COLUMNNAME_DateFrom = "DateFrom"; + + /** Set Date From. + * Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom); + + /** Get Date From. + * Starting date for a range + */ + public Timestamp getDateFrom(); + + /** Column name DateTo */ + public static final String COLUMNNAME_DateTo = "DateTo"; + + /** Set Date To. + * End date of a date range + */ + public void setDateTo (Timestamp DateTo); + + /** Get Date To. + * End date of a date range + */ + public Timestamp getDateTo(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_LotCtl_ID */ + public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; + + /** Set Lot Control. + * Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID); + + /** Get Lot Control. + * Product Lot Control + */ + public int getM_LotCtl_ID(); + + public I_M_LotCtl getI_M_LotCtl() throws Exception; + + /** Column name M_Lot_ID */ + public static final String COLUMNNAME_M_Lot_ID = "M_Lot_ID"; + + /** Set Lot. + * Product Lot Definition + */ + public void setM_Lot_ID (int M_Lot_ID); + + /** Get Lot. + * Product Lot Definition + */ + public int getM_Lot_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_LotCtl.java b/base/src/org/compiere/model/I_M_LotCtl.java new file mode 100644 index 0000000000..d85a734ad4 --- /dev/null +++ b/base/src/org/compiere/model/I_M_LotCtl.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_LotCtl + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.453 + */ + public interface I_M_LotCtl +{ + + /** TableName=M_LotCtl */ + public static final String Table_Name = "M_LotCtl"; + + /** AD_Table_ID=556 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name CurrentNext */ + public static final String COLUMNNAME_CurrentNext = "CurrentNext"; + + /** Set Current Next. + * The next number to be used + */ + public void setCurrentNext (int CurrentNext); + + /** Get Current Next. + * The next number to be used + */ + public int getCurrentNext(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IncrementNo */ + public static final String COLUMNNAME_IncrementNo = "IncrementNo"; + + /** Set Increment. + * The number to increment the last document number by + */ + public void setIncrementNo (int IncrementNo); + + /** Get Increment. + * The number to increment the last document number by + */ + public int getIncrementNo(); + + /** Column name M_LotCtl_ID */ + public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; + + /** Set Lot Control. + * Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID); + + /** Get Lot Control. + * Product Lot Control + */ + public int getM_LotCtl_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Prefix */ + public static final String COLUMNNAME_Prefix = "Prefix"; + + /** Set Prefix. + * Prefix before the sequence number + */ + public void setPrefix (String Prefix); + + /** Get Prefix. + * Prefix before the sequence number + */ + public String getPrefix(); + + /** Column name StartNo */ + public static final String COLUMNNAME_StartNo = "StartNo"; + + /** Set Start No. + * Starting number/position + */ + public void setStartNo (int StartNo); + + /** Get Start No. + * Starting number/position + */ + public int getStartNo(); + + /** Column name Suffix */ + public static final String COLUMNNAME_Suffix = "Suffix"; + + /** Set Suffix. + * Suffix after the number + */ + public void setSuffix (String Suffix); + + /** Get Suffix. + * Suffix after the number + */ + public String getSuffix(); +} diff --git a/base/src/org/compiere/model/I_M_LotCtlExclude.java b/base/src/org/compiere/model/I_M_LotCtlExclude.java new file mode 100644 index 0000000000..80a641d81e --- /dev/null +++ b/base/src/org/compiere/model/I_M_LotCtlExclude.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_LotCtlExclude + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.468 + */ + public interface I_M_LotCtlExclude +{ + + /** TableName=M_LotCtlExclude */ + public static final String Table_Name = "M_LotCtlExclude"; + + /** AD_Table_ID=810 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_LotCtlExclude_ID */ + public static final String COLUMNNAME_M_LotCtlExclude_ID = "M_LotCtlExclude_ID"; + + /** Set Exclude Lot. + * Exclude the ability to create Lots in Attribute Sets + */ + public void setM_LotCtlExclude_ID (int M_LotCtlExclude_ID); + + /** Get Exclude Lot. + * Exclude the ability to create Lots in Attribute Sets + */ + public int getM_LotCtlExclude_ID(); + + /** Column name M_LotCtl_ID */ + public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; + + /** Set Lot Control. + * Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID); + + /** Get Lot Control. + * Product Lot Control + */ + public int getM_LotCtl_ID(); + + public I_M_LotCtl getI_M_LotCtl() throws Exception; +} diff --git a/base/src/org/compiere/model/I_M_MatchInv.java b/base/src/org/compiere/model/I_M_MatchInv.java new file mode 100644 index 0000000000..60e99ee7db --- /dev/null +++ b/base/src/org/compiere/model/I_M_MatchInv.java @@ -0,0 +1,225 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_MatchInv + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.5 + */ + public interface I_M_MatchInv +{ + + /** TableName=M_MatchInv */ + public static final String Table_Name = "M_MatchInv"; + + /** AD_Table_ID=472 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_MatchInv_ID */ + public static final String COLUMNNAME_M_MatchInv_ID = "M_MatchInv_ID"; + + /** Set Match Invoice. + * Match Shipment/Receipt to Invoice + */ + public void setM_MatchInv_ID (int M_MatchInv_ID); + + /** Get Match Invoice. + * Match Shipment/Receipt to Invoice + */ + public int getM_MatchInv_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_M_MatchPO.java b/base/src/org/compiere/model/I_M_MatchPO.java new file mode 100644 index 0000000000..e9d83a9722 --- /dev/null +++ b/base/src/org/compiere/model/I_M_MatchPO.java @@ -0,0 +1,264 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_MatchPO + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.531 + */ + public interface I_M_MatchPO +{ + + /** TableName=M_MatchPO */ + public static final String Table_Name = "M_MatchPO"; + + /** AD_Table_ID=473 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_MatchPO_ID */ + public static final String COLUMNNAME_M_MatchPO_ID = "M_MatchPO_ID"; + + /** Set Match PO. + * Match Purchase Order to Shipment/Receipt and Invoice + */ + public void setM_MatchPO_ID (int M_MatchPO_ID); + + /** Get Match PO. + * Match Purchase Order to Shipment/Receipt and Invoice + */ + public int getM_MatchPO_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriceMatchDifference */ + public static final String COLUMNNAME_PriceMatchDifference = "PriceMatchDifference"; + + /** Set Price Match Difference. + * Difference between Purchase and Invoice Price per matched line + */ + public void setPriceMatchDifference (BigDecimal PriceMatchDifference); + + /** Get Price Match Difference. + * Difference between Purchase and Invoice Price per matched line + */ + public BigDecimal getPriceMatchDifference(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_M_Movement.java b/base/src/org/compiere/model/I_M_Movement.java new file mode 100644 index 0000000000..990c499788 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Movement.java @@ -0,0 +1,324 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Movement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.593 + */ + public interface I_M_Movement +{ + + /** TableName=M_Movement */ + public static final String Table_Name = "M_Movement"; + + /** AD_Table_ID=323 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name DateReceived */ + public static final String COLUMNNAME_DateReceived = "DateReceived"; + + /** Set Date received. + * Date a product was received + */ + public void setDateReceived (Timestamp DateReceived); + + /** Get Date received. + * Date a product was received + */ + public Timestamp getDateReceived(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsInTransit */ + public static final String COLUMNNAME_IsInTransit = "IsInTransit"; + + /** Set In Transit. + * Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit); + + /** Get In Transit. + * Movement is in transit + */ + public boolean isInTransit(); + + /** Column name M_Movement_ID */ + public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + + /** Set Inventory Move. + * Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID); + + /** Get Inventory Move. + * Movement of Inventory + */ + public int getM_Movement_ID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_M_MovementConfirm.java b/base/src/org/compiere/model/I_M_MovementConfirm.java new file mode 100644 index 0000000000..1ac5980f5a --- /dev/null +++ b/base/src/org/compiere/model/I_M_MovementConfirm.java @@ -0,0 +1,199 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_MovementConfirm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.625 + */ + public interface I_M_MovementConfirm +{ + + /** TableName=M_MovementConfirm */ + public static final String Table_Name = "M_MovementConfirm"; + + /** AD_Table_ID=738 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + /** Column name M_MovementConfirm_ID */ + public static final String COLUMNNAME_M_MovementConfirm_ID = "M_MovementConfirm_ID"; + + /** Set Move Confirm. + * Inventory Move Confirmation + */ + public void setM_MovementConfirm_ID (int M_MovementConfirm_ID); + + /** Get Move Confirm. + * Inventory Move Confirmation + */ + public int getM_MovementConfirm_ID(); + + /** Column name M_Movement_ID */ + public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + + /** Set Inventory Move. + * Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID); + + /** Get Inventory Move. + * Movement of Inventory + */ + public int getM_Movement_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_MovementLine.java b/base/src/org/compiere/model/I_M_MovementLine.java new file mode 100644 index 0000000000..951a304384 --- /dev/null +++ b/base/src/org/compiere/model/I_M_MovementLine.java @@ -0,0 +1,244 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_MovementLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.656 + */ + public interface I_M_MovementLine +{ + + /** TableName=M_MovementLine */ + public static final String Table_Name = "M_MovementLine"; + + /** AD_Table_ID=324 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ConfirmedQty */ + public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; + + /** Set Confirmed Quantity. + * Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty); + + /** Get Confirmed Quantity. + * Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstanceTo_ID */ + public static final String COLUMNNAME_M_AttributeSetInstanceTo_ID = "M_AttributeSetInstanceTo_ID"; + + /** Set Attribute Set Instance To. + * Target Product Attribute Set Instance + */ + public void setM_AttributeSetInstanceTo_ID (int M_AttributeSetInstanceTo_ID); + + /** Get Attribute Set Instance To. + * Target Product Attribute Set Instance + */ + public int getM_AttributeSetInstanceTo_ID(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_LocatorTo_ID */ + public static final String COLUMNNAME_M_LocatorTo_ID = "M_LocatorTo_ID"; + + /** Set Locator To. + * Location inventory is moved to + */ + public void setM_LocatorTo_ID (int M_LocatorTo_ID); + + /** Get Locator To. + * Location inventory is moved to + */ + public int getM_LocatorTo_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name M_Movement_ID */ + public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + + /** Set Inventory Move. + * Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID); + + /** Get Inventory Move. + * Movement of Inventory + */ + public int getM_Movement_ID(); + + public I_M_Movement getI_M_Movement() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ScrappedQty */ + public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; + + /** Set Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty); + + /** Get Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty(); + + /** Column name TargetQty */ + public static final String COLUMNNAME_TargetQty = "TargetQty"; + + /** Set Target Quantity. + * Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty); + + /** Get Target Quantity. + * Target Movement Quantity + */ + public BigDecimal getTargetQty(); +} diff --git a/base/src/org/compiere/model/I_M_MovementLineConfirm.java b/base/src/org/compiere/model/I_M_MovementLineConfirm.java new file mode 100644 index 0000000000..3eb9686e22 --- /dev/null +++ b/base/src/org/compiere/model/I_M_MovementLineConfirm.java @@ -0,0 +1,192 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_MovementLineConfirm + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.687 + */ + public interface I_M_MovementLineConfirm +{ + + /** TableName=M_MovementLineConfirm */ + public static final String Table_Name = "M_MovementLineConfirm"; + + /** AD_Table_ID=737 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ConfirmedQty */ + public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; + + /** Set Confirmed Quantity. + * Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty); + + /** Get Confirmed Quantity. + * Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DifferenceQty */ + public static final String COLUMNNAME_DifferenceQty = "DifferenceQty"; + + /** Set Difference. + * Difference Quantity + */ + public void setDifferenceQty (BigDecimal DifferenceQty); + + /** Get Difference. + * Difference Quantity + */ + public BigDecimal getDifferenceQty(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_MovementConfirm_ID */ + public static final String COLUMNNAME_M_MovementConfirm_ID = "M_MovementConfirm_ID"; + + /** Set Move Confirm. + * Inventory Move Confirmation + */ + public void setM_MovementConfirm_ID (int M_MovementConfirm_ID); + + /** Get Move Confirm. + * Inventory Move Confirmation + */ + public int getM_MovementConfirm_ID(); + + public I_M_MovementConfirm getI_M_MovementConfirm() throws Exception; + + /** Column name M_MovementLineConfirm_ID */ + public static final String COLUMNNAME_M_MovementLineConfirm_ID = "M_MovementLineConfirm_ID"; + + /** Set Move Line Confirm. + * Inventory Move Line Confirmation + */ + public void setM_MovementLineConfirm_ID (int M_MovementLineConfirm_ID); + + /** Get Move Line Confirm. + * Inventory Move Line Confirmation + */ + public int getM_MovementLineConfirm_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ScrappedQty */ + public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; + + /** Set Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty); + + /** Get Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty(); + + /** Column name TargetQty */ + public static final String COLUMNNAME_TargetQty = "TargetQty"; + + /** Set Target Quantity. + * Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty); + + /** Get Target Quantity. + * Target Movement Quantity + */ + public BigDecimal getTargetQty(); +} diff --git a/base/src/org/compiere/model/I_M_MovementLineMA.java b/base/src/org/compiere/model/I_M_MovementLineMA.java new file mode 100644 index 0000000000..d902720525 --- /dev/null +++ b/base/src/org/compiere/model/I_M_MovementLineMA.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_MovementLineMA + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.703 + */ + public interface I_M_MovementLineMA +{ + + /** TableName=M_MovementLineMA */ + public static final String Table_Name = "M_MovementLineMA"; + + /** AD_Table_ID=764 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); +} diff --git a/base/src/org/compiere/model/I_M_OperationResource.java b/base/src/org/compiere/model/I_M_OperationResource.java new file mode 100644 index 0000000000..0a96ddae88 --- /dev/null +++ b/base/src/org/compiere/model/I_M_OperationResource.java @@ -0,0 +1,196 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_OperationResource + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:50.718 + */ + public interface I_M_OperationResource +{ + + /** TableName=M_OperationResource */ + public static final String Table_Name = "M_OperationResource"; + + /** AD_Table_ID=797 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + public I_A_Asset getI_A_Asset() throws Exception; + + /** Column name C_Job_ID */ + public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; + + /** Set Position. + * Job Position + */ + public void setC_Job_ID (int C_Job_ID); + + /** Get Position. + * Job Position + */ + public int getC_Job_ID(); + + public I_C_Job getI_C_Job() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_OperationResource_ID */ + public static final String COLUMNNAME_M_OperationResource_ID = "M_OperationResource_ID"; + + /** Set Operation Resource. + * Product Operation Resource + */ + public void setM_OperationResource_ID (int M_OperationResource_ID); + + /** Get Operation Resource. + * Product Operation Resource + */ + public int getM_OperationResource_ID(); + + /** Column name M_ProductOperation_ID */ + public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; + + /** Set Product Operation. + * Product Manufacturing Operation + */ + public void setM_ProductOperation_ID (int M_ProductOperation_ID); + + /** Get Product Operation. + * Product Manufacturing Operation + */ + public int getM_ProductOperation_ID(); + + public I_M_ProductOperation getI_M_ProductOperation() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SetupTime */ + public static final String COLUMNNAME_SetupTime = "SetupTime"; + + /** Set Setup Time. + * Setup time before starting Production + */ + public void setSetupTime (BigDecimal SetupTime); + + /** Get Setup Time. + * Setup time before starting Production + */ + public BigDecimal getSetupTime(); + + /** Column name TeardownTime */ + public static final String COLUMNNAME_TeardownTime = "TeardownTime"; + + /** Set Teardown Time. + * Time at the end of the operation + */ + public void setTeardownTime (BigDecimal TeardownTime); + + /** Get Teardown Time. + * Time at the end of the operation + */ + public BigDecimal getTeardownTime(); + + /** Column name UnitRuntime */ + public static final String COLUMNNAME_UnitRuntime = "UnitRuntime"; + + /** Set Runtime per Unit. + * Time to produce one unit + */ + public void setUnitRuntime (BigDecimal UnitRuntime); + + /** Get Runtime per Unit. + * Time to produce one unit + */ + public BigDecimal getUnitRuntime(); +} diff --git a/base/src/org/compiere/model/I_M_Package.java b/base/src/org/compiere/model/I_M_Package.java new file mode 100644 index 0000000000..6ee6c22e4c --- /dev/null +++ b/base/src/org/compiere/model/I_M_Package.java @@ -0,0 +1,177 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Package + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.171 + */ + public interface I_M_Package +{ + + /** TableName=M_Package */ + public static final String Table_Name = "M_Package"; + + /** AD_Table_ID=664 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name DateReceived */ + public static final String COLUMNNAME_DateReceived = "DateReceived"; + + /** Set Date received. + * Date a product was received + */ + public void setDateReceived (Timestamp DateReceived); + + /** Get Date received. + * Date a product was received + */ + public Timestamp getDateReceived(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + public I_M_InOut getI_M_InOut() throws Exception; + + /** Column name M_Package_ID */ + public static final String COLUMNNAME_M_Package_ID = "M_Package_ID"; + + /** Set Package. + * Shipment Package + */ + public void setM_Package_ID (int M_Package_ID); + + /** Get Package. + * Shipment Package + */ + public int getM_Package_ID(); + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getI_M_Shipper() throws Exception; + + /** Column name ReceivedInfo */ + public static final String COLUMNNAME_ReceivedInfo = "ReceivedInfo"; + + /** Set Info Received. + * Information of the receipt of the package (acknowledgement) + */ + public void setReceivedInfo (String ReceivedInfo); + + /** Get Info Received. + * Information of the receipt of the package (acknowledgement) + */ + public String getReceivedInfo(); + + /** Column name ShipDate */ + public static final String COLUMNNAME_ShipDate = "ShipDate"; + + /** Set Ship Date. + * Shipment Date/Time + */ + public void setShipDate (Timestamp ShipDate); + + /** Get Ship Date. + * Shipment Date/Time + */ + public Timestamp getShipDate(); + + /** Column name TrackingInfo */ + public static final String COLUMNNAME_TrackingInfo = "TrackingInfo"; + + /** Set Tracking Info */ + public void setTrackingInfo (String TrackingInfo); + + /** Get Tracking Info */ + public String getTrackingInfo(); +} diff --git a/base/src/org/compiere/model/I_M_PackageLine.java b/base/src/org/compiere/model/I_M_PackageLine.java new file mode 100644 index 0000000000..036737f55c --- /dev/null +++ b/base/src/org/compiere/model/I_M_PackageLine.java @@ -0,0 +1,129 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_PackageLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.187 + */ + public interface I_M_PackageLine +{ + + /** TableName=M_PackageLine */ + public static final String Table_Name = "M_PackageLine"; + + /** AD_Table_ID=663 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + public I_M_InOutLine getI_M_InOutLine() throws Exception; + + /** Column name M_PackageLine_ID */ + public static final String COLUMNNAME_M_PackageLine_ID = "M_PackageLine_ID"; + + /** Set Package Line. + * The detail content of the Package + */ + public void setM_PackageLine_ID (int M_PackageLine_ID); + + /** Get Package Line. + * The detail content of the Package + */ + public int getM_PackageLine_ID(); + + /** Column name M_Package_ID */ + public static final String COLUMNNAME_M_Package_ID = "M_Package_ID"; + + /** Set Package. + * Shipment Package + */ + public void setM_Package_ID (int M_Package_ID); + + /** Get Package. + * Shipment Package + */ + public int getM_Package_ID(); + + public I_M_Package getI_M_Package() throws Exception; + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_M_PerpetualInv.java b/base/src/org/compiere/model/I_M_PerpetualInv.java new file mode 100644 index 0000000000..89769470d4 --- /dev/null +++ b/base/src/org/compiere/model/I_M_PerpetualInv.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_PerpetualInv + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.203 + */ + public interface I_M_PerpetualInv +{ + + /** TableName=M_PerpetualInv */ + public static final String Table_Name = "M_PerpetualInv"; + + /** AD_Table_ID=342 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name CountHighMovement */ + public static final String COLUMNNAME_CountHighMovement = "CountHighMovement"; + + /** Set Count high turnover items. + * Count High Movement products + */ + public void setCountHighMovement (boolean CountHighMovement); + + /** Get Count high turnover items. + * Count High Movement products + */ + public boolean isCountHighMovement(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_PerpetualInv_ID */ + public static final String COLUMNNAME_M_PerpetualInv_ID = "M_PerpetualInv_ID"; + + /** Set Perpetual Inventory. + * Rules for generating physical inventory + */ + public void setM_PerpetualInv_ID (int M_PerpetualInv_ID); + + /** Get Perpetual Inventory. + * Rules for generating physical inventory + */ + public int getM_PerpetualInv_ID(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name NoInventoryCount */ + public static final String COLUMNNAME_NoInventoryCount = "NoInventoryCount"; + + /** Set Number of Inventory counts. + * Frequency of inventory counts per year + */ + public void setNoInventoryCount (int NoInventoryCount); + + /** Get Number of Inventory counts. + * Frequency of inventory counts per year + */ + public int getNoInventoryCount(); + + /** Column name NoProductCount */ + public static final String COLUMNNAME_NoProductCount = "NoProductCount"; + + /** Set Number of Product counts. + * Frequency of product counts per year + */ + public void setNoProductCount (int NoProductCount); + + /** Get Number of Product counts. + * Frequency of product counts per year + */ + public int getNoProductCount(); + + /** Column name NumberOfRuns */ + public static final String COLUMNNAME_NumberOfRuns = "NumberOfRuns"; + + /** Set Number of runs. + * Frequency of processing Perpetual Inventory + */ + public void setNumberOfRuns (int NumberOfRuns); + + /** Get Number of runs. + * Frequency of processing Perpetual Inventory + */ + public int getNumberOfRuns(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_PriceList.java b/base/src/org/compiere/model/I_M_PriceList.java new file mode 100644 index 0000000000..4e5d08b9ae --- /dev/null +++ b/base/src/org/compiere/model/I_M_PriceList.java @@ -0,0 +1,192 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_PriceList + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.265 + */ + public interface I_M_PriceList +{ + + /** TableName=M_PriceList */ + public static final String Table_Name = "M_PriceList"; + + /** AD_Table_ID=255 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BasePriceList_ID */ + public static final String COLUMNNAME_BasePriceList_ID = "BasePriceList_ID"; + + /** Set Base Pricelist. + * Pricelist to be used, if product not found on this pricelist + */ + public void setBasePriceList_ID (int BasePriceList_ID); + + /** Get Base Pricelist. + * Pricelist to be used, if product not found on this pricelist + */ + public int getBasePriceList_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EnforcePriceLimit */ + public static final String COLUMNNAME_EnforcePriceLimit = "EnforcePriceLimit"; + + /** Set Enforce price limit. + * Do not allow prices below the limit price + */ + public void setEnforcePriceLimit (boolean EnforcePriceLimit); + + /** Get Enforce price limit. + * Do not allow prices below the limit price + */ + public boolean isEnforcePriceLimit(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsSOPriceList */ + public static final String COLUMNNAME_IsSOPriceList = "IsSOPriceList"; + + /** Set Sales Price list. + * This is a Sales Price List + */ + public void setIsSOPriceList (boolean IsSOPriceList); + + /** Get Sales Price list. + * This is a Sales Price List + */ + public boolean isSOPriceList(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PricePrecision */ + public static final String COLUMNNAME_PricePrecision = "PricePrecision"; + + /** Set Price Precision. + * Precision (number of decimals) for the Price + */ + public void setPricePrecision (BigDecimal PricePrecision); + + /** Get Price Precision. + * Precision (number of decimals) for the Price + */ + public BigDecimal getPricePrecision(); +} diff --git a/base/src/org/compiere/model/I_M_PriceList_Version.java b/base/src/org/compiere/model/I_M_PriceList_Version.java new file mode 100644 index 0000000000..39e68ac0c2 --- /dev/null +++ b/base/src/org/compiere/model/I_M_PriceList_Version.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_PriceList_Version + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.296 + */ + public interface I_M_PriceList_Version +{ + + /** TableName=M_PriceList_Version */ + public static final String Table_Name = "M_PriceList_Version"; + + /** AD_Table_ID=295 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception; + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_PriceList_Version_ID */ + public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; + + /** Set Price List Version. + * Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID); + + /** Get Price List Version. + * Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID(); + + /** Column name M_Pricelist_Version_Base_ID */ + public static final String COLUMNNAME_M_Pricelist_Version_Base_ID = "M_Pricelist_Version_Base_ID"; + + /** Set Base Price List. + * Source for Price list calculations + */ + public void setM_Pricelist_Version_Base_ID (int M_Pricelist_Version_Base_ID); + + /** Get Base Price List. + * Source for Price list calculations + */ + public int getM_Pricelist_Version_Base_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ProcCreate */ + public static final String COLUMNNAME_ProcCreate = "ProcCreate"; + + /** Set Create */ + public void setProcCreate (String ProcCreate); + + /** Get Create */ + public String getProcCreate(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); +} diff --git a/base/src/org/compiere/model/I_M_Product.java b/base/src/org/compiere/model/I_M_Product.java new file mode 100644 index 0000000000..f04d714930 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product.java @@ -0,0 +1,724 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.312 + */ + public interface I_M_Product +{ + + /** TableName=M_Product */ + public static final String Table_Name = "M_Product"; + + /** AD_Table_ID=208 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_RevenueRecognition_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; + + /** Set Revenue Recognition. + * Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID); + + /** Get Revenue Recognition. + * Method for recording revenue + */ + public int getC_RevenueRecognition_ID(); + + public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception; + + /** Column name C_SubscriptionType_ID */ + public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; + + /** Set Subscription Type. + * Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID); + + /** Get Subscription Type. + * Type of subscription + */ + public int getC_SubscriptionType_ID(); + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name Classification */ + public static final String COLUMNNAME_Classification = "Classification"; + + /** Set Classification. + * Classification for grouping + */ + public void setClassification (String Classification); + + /** Get Classification. + * Classification for grouping + */ + public String getClassification(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DescriptionURL */ + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + + /** Set Description URL. + * URL for the description + */ + public void setDescriptionURL (String DescriptionURL); + + /** Get Description URL. + * URL for the description + */ + public String getDescriptionURL(); + + /** Column name Discontinued */ + public static final String COLUMNNAME_Discontinued = "Discontinued"; + + /** Set Discontinued. + * This product is no longer available + */ + public void setDiscontinued (boolean Discontinued); + + /** Get Discontinued. + * This product is no longer available + */ + public boolean isDiscontinued(); + + /** Column name DiscontinuedBy */ + public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; + + /** Set Discontinued by. + * Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy); + + /** Get Discontinued by. + * Discontinued By + */ + public Timestamp getDiscontinuedBy(); + + /** Column name DocumentNote */ + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + + /** Set Document Note. + * Additional information for a Document + */ + public void setDocumentNote (String DocumentNote); + + /** Get Document Note. + * Additional information for a Document + */ + public String getDocumentNote(); + + /** Column name DownloadURL */ + public static final String COLUMNNAME_DownloadURL = "DownloadURL"; + + /** Set Download URL. + * URL of the Download files + */ + public void setDownloadURL (String DownloadURL); + + /** Get Download URL. + * URL of the Download files + */ + public String getDownloadURL(); + + /** Column name GuaranteeDays */ + public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; + + /** Set Guarantee Days. + * Number of days the product is guaranteed or available + */ + public void setGuaranteeDays (int GuaranteeDays); + + /** Get Guarantee Days. + * Number of days the product is guaranteed or available + */ + public int getGuaranteeDays(); + + /** Column name GuaranteeDaysMin */ + public static final String COLUMNNAME_GuaranteeDaysMin = "GuaranteeDaysMin"; + + /** Set Min Guarantee Days. + * Minumum number of guarantee days + */ + public void setGuaranteeDaysMin (int GuaranteeDaysMin); + + /** Get Min Guarantee Days. + * Minumum number of guarantee days + */ + public int getGuaranteeDaysMin(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name IsBOM */ + public static final String COLUMNNAME_IsBOM = "IsBOM"; + + /** Set Bill of Materials. + * Bill of Materials + */ + public void setIsBOM (boolean IsBOM); + + /** Get Bill of Materials. + * Bill of Materials + */ + public boolean isBOM(); + + /** Column name IsDropShip */ + public static final String COLUMNNAME_IsDropShip = "IsDropShip"; + + /** Set Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip); + + /** Get Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip(); + + /** Column name IsExcludeAutoDelivery */ + public static final String COLUMNNAME_IsExcludeAutoDelivery = "IsExcludeAutoDelivery"; + + /** Set Exclude Auto Delivery. + * Exclude from automatic Delivery + */ + public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery); + + /** Get Exclude Auto Delivery. + * Exclude from automatic Delivery + */ + public boolean isExcludeAutoDelivery(); + + /** Column name IsInvoicePrintDetails */ + public static final String COLUMNNAME_IsInvoicePrintDetails = "IsInvoicePrintDetails"; + + /** Set Print detail records on invoice . + * Print detail BOM elements on the invoice + */ + public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails); + + /** Get Print detail records on invoice . + * Print detail BOM elements on the invoice + */ + public boolean isInvoicePrintDetails(); + + /** Column name IsPickListPrintDetails */ + public static final String COLUMNNAME_IsPickListPrintDetails = "IsPickListPrintDetails"; + + /** Set Print detail records on pick list. + * Print detail BOM elements on the pick list + */ + public void setIsPickListPrintDetails (boolean IsPickListPrintDetails); + + /** Get Print detail records on pick list. + * Print detail BOM elements on the pick list + */ + public boolean isPickListPrintDetails(); + + /** Column name IsPurchased */ + public static final String COLUMNNAME_IsPurchased = "IsPurchased"; + + /** Set Purchased. + * Organization purchases this product + */ + public void setIsPurchased (boolean IsPurchased); + + /** Get Purchased. + * Organization purchases this product + */ + public boolean isPurchased(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name IsSold */ + public static final String COLUMNNAME_IsSold = "IsSold"; + + /** Set Sold. + * Organization sells this product + */ + public void setIsSold (boolean IsSold); + + /** Get Sold. + * Organization sells this product + */ + public boolean isSold(); + + /** Column name IsStocked */ + public static final String COLUMNNAME_IsStocked = "IsStocked"; + + /** Set Stocked. + * Organization stocks this product + */ + public void setIsStocked (boolean IsStocked); + + /** Get Stocked. + * Organization stocks this product + */ + public boolean isStocked(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsVerified */ + public static final String COLUMNNAME_IsVerified = "IsVerified"; + + /** Set Verified. + * The BOM configuration has been verified + */ + public void setIsVerified (boolean IsVerified); + + /** Get Verified. + * The BOM configuration has been verified + */ + public boolean isVerified(); + + /** Column name IsWebStoreFeatured */ + public static final String COLUMNNAME_IsWebStoreFeatured = "IsWebStoreFeatured"; + + /** Set Featured in Web Store. + * If selected, the product is displayed in the inital or any empy search + */ + public void setIsWebStoreFeatured (boolean IsWebStoreFeatured); + + /** Get Featured in Web Store. + * If selected, the product is displayed in the inital or any empy search + */ + public boolean isWebStoreFeatured(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_AttributeSet_ID */ + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + + /** Set Attribute Set. + * Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID); + + /** Get Attribute Set. + * Product Attribute Set + */ + public int getM_AttributeSet_ID(); + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception; + + /** Column name M_FreightCategory_ID */ + public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; + + /** Set Freight Category. + * Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID); + + /** Get Freight Category. + * Category of the Freight + */ + public int getM_FreightCategory_ID(); + + public I_M_FreightCategory getI_M_FreightCategory() throws Exception; + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProductType */ + public static final String COLUMNNAME_ProductType = "ProductType"; + + /** Set Product Type. + * Type of product + */ + public void setProductType (String ProductType); + + /** Get Product Type. + * Type of product + */ + public String getProductType(); + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); + + public I_R_MailText getI_R_MailText() throws Exception; + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name S_ExpenseType_ID */ + public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; + + /** Set Expense Type. + * Expense report type + */ + public void setS_ExpenseType_ID (int S_ExpenseType_ID); + + /** Get Expense Type. + * Expense report type + */ + public int getS_ExpenseType_ID(); + + public I_S_ExpenseType getI_S_ExpenseType() throws Exception; + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getI_S_Resource() throws Exception; + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name ShelfDepth */ + public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; + + /** Set Shelf Depth. + * Shelf depth required + */ + public void setShelfDepth (int ShelfDepth); + + /** Get Shelf Depth. + * Shelf depth required + */ + public int getShelfDepth(); + + /** Column name ShelfHeight */ + public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; + + /** Set Shelf Height. + * Shelf height required + */ + public void setShelfHeight (int ShelfHeight); + + /** Get Shelf Height. + * Shelf height required + */ + public int getShelfHeight(); + + /** Column name ShelfWidth */ + public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; + + /** Set Shelf Width. + * Shelf width required + */ + public void setShelfWidth (int ShelfWidth); + + /** Get Shelf Width. + * Shelf width required + */ + public int getShelfWidth(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name UnitsPerPallet */ + public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; + + /** Set Units Per Pallet. + * Units Per Pallet + */ + public void setUnitsPerPallet (int UnitsPerPallet); + + /** Get Units Per Pallet. + * Units Per Pallet + */ + public int getUnitsPerPallet(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name VersionNo */ + public static final String COLUMNNAME_VersionNo = "VersionNo"; + + /** Set Version No. + * Version Number + */ + public void setVersionNo (String VersionNo); + + /** Get Version No. + * Version Number + */ + public String getVersionNo(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (BigDecimal Volume); + + /** Get Volume. + * Volume of a product + */ + public BigDecimal getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (BigDecimal Weight); + + /** Get Weight. + * Weight of a product + */ + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_M_ProductDownload.java b/base/src/org/compiere/model/I_M_ProductDownload.java new file mode 100644 index 0000000000..a326e3c55f --- /dev/null +++ b/base/src/org/compiere/model/I_M_ProductDownload.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ProductDownload + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.39 + */ + public interface I_M_ProductDownload +{ + + /** TableName=M_ProductDownload */ + public static final String Table_Name = "M_ProductDownload"; + + /** AD_Table_ID=777 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name DownloadURL */ + public static final String COLUMNNAME_DownloadURL = "DownloadURL"; + + /** Set Download URL. + * URL of the Download files + */ + public void setDownloadURL (String DownloadURL); + + /** Get Download URL. + * URL of the Download files + */ + public String getDownloadURL(); + + /** Column name M_ProductDownload_ID */ + public static final String COLUMNNAME_M_ProductDownload_ID = "M_ProductDownload_ID"; + + /** Set Product Download. + * Product downloads + */ + public void setM_ProductDownload_ID (int M_ProductDownload_ID); + + /** Get Product Download. + * Product downloads + */ + public int getM_ProductDownload_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_ProductOperation.java b/base/src/org/compiere/model/I_M_ProductOperation.java new file mode 100644 index 0000000000..02eaee0a5d --- /dev/null +++ b/base/src/org/compiere/model/I_M_ProductOperation.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ProductOperation + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.406 + */ + public interface I_M_ProductOperation +{ + + /** TableName=M_ProductOperation */ + public static final String Table_Name = "M_ProductOperation"; + + /** AD_Table_ID=796 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_ProductOperation_ID */ + public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; + + /** Set Product Operation. + * Product Manufacturing Operation + */ + public void setM_ProductOperation_ID (int M_ProductOperation_ID); + + /** Get Product Operation. + * Product Manufacturing Operation + */ + public int getM_ProductOperation_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SetupTime */ + public static final String COLUMNNAME_SetupTime = "SetupTime"; + + /** Set Setup Time. + * Setup time before starting Production + */ + public void setSetupTime (BigDecimal SetupTime); + + /** Get Setup Time. + * Setup time before starting Production + */ + public BigDecimal getSetupTime(); + + /** Column name TeardownTime */ + public static final String COLUMNNAME_TeardownTime = "TeardownTime"; + + /** Set Teardown Time. + * Time at the end of the operation + */ + public void setTeardownTime (BigDecimal TeardownTime); + + /** Get Teardown Time. + * Time at the end of the operation + */ + public BigDecimal getTeardownTime(); + + /** Column name UnitRuntime */ + public static final String COLUMNNAME_UnitRuntime = "UnitRuntime"; + + /** Set Runtime per Unit. + * Time to produce one unit + */ + public void setUnitRuntime (BigDecimal UnitRuntime); + + /** Get Runtime per Unit. + * Time to produce one unit + */ + public BigDecimal getUnitRuntime(); +} diff --git a/base/src/org/compiere/model/I_M_ProductPrice.java b/base/src/org/compiere/model/I_M_ProductPrice.java new file mode 100644 index 0000000000..413e4c5674 --- /dev/null +++ b/base/src/org/compiere/model/I_M_ProductPrice.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ProductPrice + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.421 + */ + public interface I_M_ProductPrice +{ + + /** TableName=M_ProductPrice */ + public static final String Table_Name = "M_ProductPrice"; + + /** AD_Table_ID=251 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name M_PriceList_Version_ID */ + public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; + + /** Set Price List Version. + * Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID); + + /** Get Price List Version. + * Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID(); + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name PriceLimit */ + public static final String COLUMNNAME_PriceLimit = "PriceLimit"; + + /** Set Limit Price. + * Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit); + + /** Get Limit Price. + * Lowest price for a product + */ + public BigDecimal getPriceLimit(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name PriceStd */ + public static final String COLUMNNAME_PriceStd = "PriceStd"; + + /** Set Standard Price. + * Standard Price + */ + public void setPriceStd (BigDecimal PriceStd); + + /** Get Standard Price. + * Standard Price + */ + public BigDecimal getPriceStd(); +} diff --git a/base/src/org/compiere/model/I_M_Product_Acct.java b/base/src/org/compiere/model/I_M_Product_Acct.java new file mode 100644 index 0000000000..85019cc37f --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product_Acct.java @@ -0,0 +1,220 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.437 + */ + public interface I_M_Product_Acct +{ + + /** TableName=M_Product_Acct */ + public static final String Table_Name = "M_Product_Acct"; + + /** AD_Table_ID=273 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + public I_M_Product getI_M_Product() throws Exception; + + /** Column name P_Asset_Acct */ + public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; + + /** Set Product Asset. + * Account for Product Asset (Inventory) + */ + public void setP_Asset_Acct (int P_Asset_Acct); + + /** Get Product Asset. + * Account for Product Asset (Inventory) + */ + public int getP_Asset_Acct(); + + /** Column name P_COGS_Acct */ + public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; + + /** Set Product COGS. + * Account for Cost of Goods Sold + */ + public void setP_COGS_Acct (int P_COGS_Acct); + + /** Get Product COGS. + * Account for Cost of Goods Sold + */ + public int getP_COGS_Acct(); + + /** Column name P_CostAdjustment_Acct */ + public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; + + /** Set Cost Adjustment. + * Product Cost Adjustment Account + */ + public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct); + + /** Get Cost Adjustment. + * Product Cost Adjustment Account + */ + public int getP_CostAdjustment_Acct(); + + /** Column name P_Expense_Acct */ + public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; + + /** Set Product Expense. + * Account for Product Expense + */ + public void setP_Expense_Acct (int P_Expense_Acct); + + /** Get Product Expense. + * Account for Product Expense + */ + public int getP_Expense_Acct(); + + /** Column name P_InventoryClearing_Acct */ + public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; + + /** Set Inventory Clearing. + * Product Inventory Clearing Account + */ + public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct); + + /** Get Inventory Clearing. + * Product Inventory Clearing Account + */ + public int getP_InventoryClearing_Acct(); + + /** Column name P_InvoicePriceVariance_Acct */ + public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; + + /** Set Invoice Price Variance. + * Difference between Costs and Invoice Price (IPV) + */ + public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct); + + /** Get Invoice Price Variance. + * Difference between Costs and Invoice Price (IPV) + */ + public int getP_InvoicePriceVariance_Acct(); + + /** Column name P_PurchasePriceVariance_Acct */ + public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; + + /** Set Purchase Price Variance. + * Difference between Standard Cost and Purchase Price (PPV) + */ + public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct); + + /** Get Purchase Price Variance. + * Difference between Standard Cost and Purchase Price (PPV) + */ + public int getP_PurchasePriceVariance_Acct(); + + /** Column name P_Revenue_Acct */ + public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; + + /** Set Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct); + + /** Get Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct(); + + /** Column name P_TradeDiscountGrant_Acct */ + public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; + + /** Set Trade Discount Granted. + * Trade Discount Granted Account + */ + public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct); + + /** Get Trade Discount Granted. + * Trade Discount Granted Account + */ + public int getP_TradeDiscountGrant_Acct(); + + /** Column name P_TradeDiscountRec_Acct */ + public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; + + /** Set Trade Discount Received. + * Trade Discount Receivable Account + */ + public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct); + + /** Get Trade Discount Received. + * Trade Discount Receivable Account + */ + public int getP_TradeDiscountRec_Acct(); +} diff --git a/base/src/org/compiere/model/I_M_Product_BOM.java b/base/src/org/compiere/model/I_M_Product_BOM.java new file mode 100644 index 0000000000..5ff6e4d462 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product_BOM.java @@ -0,0 +1,147 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product_BOM + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.453 + */ + public interface I_M_Product_BOM +{ + + /** TableName=M_Product_BOM */ + public static final String Table_Name = "M_Product_BOM"; + + /** AD_Table_ID=383 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name BOMQty */ + public static final String COLUMNNAME_BOMQty = "BOMQty"; + + /** Set BOM Quantity. + * Bill of Materials Quantity + */ + public void setBOMQty (BigDecimal BOMQty); + + /** Get BOM Quantity. + * Bill of Materials Quantity + */ + public BigDecimal getBOMQty(); + + /** Column name BOMType */ + public static final String COLUMNNAME_BOMType = "BOMType"; + + /** Set BOM Type. + * Type of BOM + */ + public void setBOMType (String BOMType); + + /** Get BOM Type. + * Type of BOM + */ + public String getBOMType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_ProductBOM_ID */ + public static final String COLUMNNAME_M_ProductBOM_ID = "M_ProductBOM_ID"; + + /** Set BOM Product. + * Bill of Material Component Product + */ + public void setM_ProductBOM_ID (int M_ProductBOM_ID); + + /** Get BOM Product. + * Bill of Material Component Product + */ + public int getM_ProductBOM_ID(); + + /** Column name M_Product_BOM_ID */ + public static final String COLUMNNAME_M_Product_BOM_ID = "M_Product_BOM_ID"; + + /** Set BOM Line */ + public void setM_Product_BOM_ID (int M_Product_BOM_ID); + + /** Get BOM Line */ + public int getM_Product_BOM_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); +} diff --git a/base/src/org/compiere/model/I_M_Product_Category.java b/base/src/org/compiere/model/I_M_Product_Category.java new file mode 100644 index 0000000000..99aab02410 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product_Category.java @@ -0,0 +1,203 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product_Category + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.468 + */ + public interface I_M_Product_Category +{ + + /** TableName=M_Product_Category */ + public static final String Table_Name = "M_Product_Category"; + + /** AD_Table_ID=209 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PrintColor_ID */ + public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; + + /** Set Print Color. + * Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID); + + /** Get Print Color. + * Color used for printing and display + */ + public int getAD_PrintColor_ID(); + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception; + + /** Column name A_Asset_Group_ID */ + public static final String COLUMNNAME_A_Asset_Group_ID = "A_Asset_Group_ID"; + + /** Set Asset Group. + * Group of Assets + */ + public void setA_Asset_Group_ID (int A_Asset_Group_ID); + + /** Get Asset Group. + * Group of Assets + */ + public int getA_Asset_Group_ID(); + + public I_A_Asset_Group getI_A_Asset_Group() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name MMPolicy */ + public static final String COLUMNNAME_MMPolicy = "MMPolicy"; + + /** Set Material Policy. + * Material Movement Policy + */ + public void setMMPolicy (String MMPolicy); + + /** Get Material Policy. + * Material Movement Policy + */ + public String getMMPolicy(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + /** Column name M_Product_Category_Parent_ID */ + public static final String COLUMNNAME_M_Product_Category_Parent_ID = "M_Product_Category_Parent_ID"; + + /** Set Parent Product Category */ + public void setM_Product_Category_Parent_ID (int M_Product_Category_Parent_ID); + + /** Get Parent Product Category */ + public int getM_Product_Category_Parent_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PlannedMargin */ + public static final String COLUMNNAME_PlannedMargin = "PlannedMargin"; + + /** Set Planned Margin %. + * Project's planned margin as a percentage + */ + public void setPlannedMargin (BigDecimal PlannedMargin); + + /** Get Planned Margin %. + * Project's planned margin as a percentage + */ + public BigDecimal getPlannedMargin(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} 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 new file mode 100644 index 0000000000..2224b54d82 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product_Category_Acct.java @@ -0,0 +1,255 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product_Category_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.484 + */ + public interface I_M_Product_Category_Acct +{ + + /** TableName=M_Product_Category_Acct */ + public static final String Table_Name = "M_Product_Category_Acct"; + + /** AD_Table_ID=401 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name CostingLevel */ + public static final String COLUMNNAME_CostingLevel = "CostingLevel"; + + /** Set Costing Level. + * The lowest level to accumulate Costing Information + */ + public void setCostingLevel (String CostingLevel); + + /** Get Costing Level. + * The lowest level to accumulate Costing Information + */ + public String getCostingLevel(); + + /** Column name CostingMethod */ + public static final String COLUMNNAME_CostingMethod = "CostingMethod"; + + /** Set Costing Method. + * Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod); + + /** Get Costing Method. + * Indicates how Costs will be calculated + */ + public String getCostingMethod(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name P_Asset_Acct */ + public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; + + /** Set Product Asset. + * Account for Product Asset (Inventory) + */ + public void setP_Asset_Acct (int P_Asset_Acct); + + /** Get Product Asset. + * Account for Product Asset (Inventory) + */ + public int getP_Asset_Acct(); + + /** Column name P_COGS_Acct */ + public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; + + /** Set Product COGS. + * Account for Cost of Goods Sold + */ + public void setP_COGS_Acct (int P_COGS_Acct); + + /** Get Product COGS. + * Account for Cost of Goods Sold + */ + public int getP_COGS_Acct(); + + /** Column name P_CostAdjustment_Acct */ + public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; + + /** Set Cost Adjustment. + * Product Cost Adjustment Account + */ + public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct); + + /** Get Cost Adjustment. + * Product Cost Adjustment Account + */ + public int getP_CostAdjustment_Acct(); + + /** Column name P_Expense_Acct */ + public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; + + /** Set Product Expense. + * Account for Product Expense + */ + public void setP_Expense_Acct (int P_Expense_Acct); + + /** Get Product Expense. + * Account for Product Expense + */ + public int getP_Expense_Acct(); + + /** Column name P_InventoryClearing_Acct */ + public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; + + /** Set Inventory Clearing. + * Product Inventory Clearing Account + */ + public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct); + + /** Get Inventory Clearing. + * Product Inventory Clearing Account + */ + public int getP_InventoryClearing_Acct(); + + /** Column name P_InvoicePriceVariance_Acct */ + public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; + + /** Set Invoice Price Variance. + * Difference between Costs and Invoice Price (IPV) + */ + public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct); + + /** Get Invoice Price Variance. + * Difference between Costs and Invoice Price (IPV) + */ + public int getP_InvoicePriceVariance_Acct(); + + /** Column name P_PurchasePriceVariance_Acct */ + public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; + + /** Set Purchase Price Variance. + * Difference between Standard Cost and Purchase Price (PPV) + */ + public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct); + + /** Get Purchase Price Variance. + * Difference between Standard Cost and Purchase Price (PPV) + */ + public int getP_PurchasePriceVariance_Acct(); + + /** Column name P_Revenue_Acct */ + public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; + + /** Set Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct); + + /** Get Product Revenue. + * Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct(); + + /** Column name P_TradeDiscountGrant_Acct */ + public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; + + /** Set Trade Discount Granted. + * Trade Discount Granted Account + */ + public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct); + + /** Get Trade Discount Granted. + * Trade Discount Granted Account + */ + public int getP_TradeDiscountGrant_Acct(); + + /** Column name P_TradeDiscountRec_Acct */ + public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; + + /** Set Trade Discount Received. + * Trade Discount Receivable Account + */ + public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct); + + /** Get Trade Discount Received. + * Trade Discount Receivable Account + */ + public int getP_TradeDiscountRec_Acct(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_Product_Costing.java b/base/src/org/compiere/model/I_M_Product_Costing.java new file mode 100644 index 0000000000..168f3c32bf --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product_Costing.java @@ -0,0 +1,266 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product_Costing + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.515 + */ + public interface I_M_Product_Costing +{ + + /** TableName=M_Product_Costing */ + public static final String Table_Name = "M_Product_Costing"; + + /** AD_Table_ID=327 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name CostAverage */ + public static final String COLUMNNAME_CostAverage = "CostAverage"; + + /** Set Average Cost. + * Weighted average costs + */ + public void setCostAverage (BigDecimal CostAverage); + + /** Get Average Cost. + * Weighted average costs + */ + public BigDecimal getCostAverage(); + + /** Column name CostAverageCumAmt */ + public static final String COLUMNNAME_CostAverageCumAmt = "CostAverageCumAmt"; + + /** Set Average Cost Amount Sum. + * Cumulative average cost amounts (internal) + */ + public void setCostAverageCumAmt (BigDecimal CostAverageCumAmt); + + /** Get Average Cost Amount Sum. + * Cumulative average cost amounts (internal) + */ + public BigDecimal getCostAverageCumAmt(); + + /** Column name CostAverageCumQty */ + public static final String COLUMNNAME_CostAverageCumQty = "CostAverageCumQty"; + + /** Set Average Cost Quantity Sum. + * Cumulative average cost quantities (internal) + */ + public void setCostAverageCumQty (BigDecimal CostAverageCumQty); + + /** Get Average Cost Quantity Sum. + * Cumulative average cost quantities (internal) + */ + public BigDecimal getCostAverageCumQty(); + + /** Column name CostStandard */ + public static final String COLUMNNAME_CostStandard = "CostStandard"; + + /** Set Standard Cost. + * Standard Costs + */ + public void setCostStandard (BigDecimal CostStandard); + + /** Get Standard Cost. + * Standard Costs + */ + public BigDecimal getCostStandard(); + + /** Column name CostStandardCumAmt */ + public static final String COLUMNNAME_CostStandardCumAmt = "CostStandardCumAmt"; + + /** Set Std Cost Amount Sum. + * Standard Cost Invoice Amount Sum (internal) + */ + public void setCostStandardCumAmt (BigDecimal CostStandardCumAmt); + + /** Get Std Cost Amount Sum. + * Standard Cost Invoice Amount Sum (internal) + */ + public BigDecimal getCostStandardCumAmt(); + + /** Column name CostStandardCumQty */ + public static final String COLUMNNAME_CostStandardCumQty = "CostStandardCumQty"; + + /** Set Std Cost Quantity Sum. + * Standard Cost Invoice Quantity Sum (internal) + */ + public void setCostStandardCumQty (BigDecimal CostStandardCumQty); + + /** Get Std Cost Quantity Sum. + * Standard Cost Invoice Quantity Sum (internal) + */ + public BigDecimal getCostStandardCumQty(); + + /** Column name CostStandardPOAmt */ + public static final String COLUMNNAME_CostStandardPOAmt = "CostStandardPOAmt"; + + /** Set Std PO Cost Amount Sum. + * Standard Cost Purchase Order Amount Sum (internal) + */ + public void setCostStandardPOAmt (BigDecimal CostStandardPOAmt); + + /** Get Std PO Cost Amount Sum. + * Standard Cost Purchase Order Amount Sum (internal) + */ + public BigDecimal getCostStandardPOAmt(); + + /** Column name CostStandardPOQty */ + public static final String COLUMNNAME_CostStandardPOQty = "CostStandardPOQty"; + + /** Set Std PO Cost Quantity Sum. + * Standard Cost Purchase Order Quantity Sum (internal) + */ + public void setCostStandardPOQty (BigDecimal CostStandardPOQty); + + /** Get Std PO Cost Quantity Sum. + * Standard Cost Purchase Order Quantity Sum (internal) + */ + public BigDecimal getCostStandardPOQty(); + + /** Column name CurrentCostPrice */ + public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; + + /** Set Current Cost Price. + * The currently used cost price + */ + public void setCurrentCostPrice (BigDecimal CurrentCostPrice); + + /** Get Current Cost Price. + * The currently used cost price + */ + public BigDecimal getCurrentCostPrice(); + + /** Column name FutureCostPrice */ + public static final String COLUMNNAME_FutureCostPrice = "FutureCostPrice"; + + /** Set Future Cost Price */ + public void setFutureCostPrice (BigDecimal FutureCostPrice); + + /** Get Future Cost Price */ + public BigDecimal getFutureCostPrice(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name PriceLastInv */ + public static final String COLUMNNAME_PriceLastInv = "PriceLastInv"; + + /** Set Last Invoice Price. + * Price of the last invoice for the product + */ + public void setPriceLastInv (BigDecimal PriceLastInv); + + /** Get Last Invoice Price. + * Price of the last invoice for the product + */ + public BigDecimal getPriceLastInv(); + + /** Column name PriceLastPO */ + public static final String COLUMNNAME_PriceLastPO = "PriceLastPO"; + + /** Set Last PO Price. + * Price of the last purchase order for the product + */ + public void setPriceLastPO (BigDecimal PriceLastPO); + + /** Get Last PO Price. + * Price of the last purchase order for the product + */ + public BigDecimal getPriceLastPO(); + + /** Column name TotalInvAmt */ + public static final String COLUMNNAME_TotalInvAmt = "TotalInvAmt"; + + /** Set Total Invoice Amount. + * Cumulative total lifetime invoice amount + */ + public void setTotalInvAmt (BigDecimal TotalInvAmt); + + /** Get Total Invoice Amount. + * Cumulative total lifetime invoice amount + */ + public BigDecimal getTotalInvAmt(); + + /** Column name TotalInvQty */ + public static final String COLUMNNAME_TotalInvQty = "TotalInvQty"; + + /** Set Total Invoice Quantity. + * Cumulative total lifetime invoice quantity + */ + public void setTotalInvQty (BigDecimal TotalInvQty); + + /** Get Total Invoice Quantity. + * Cumulative total lifetime invoice quantity + */ + public BigDecimal getTotalInvQty(); +} diff --git a/base/src/org/compiere/model/I_M_Product_PO.java b/base/src/org/compiere/model/I_M_Product_PO.java new file mode 100644 index 0000000000..105cf042b1 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product_PO.java @@ -0,0 +1,363 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Product_PO + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.531 + */ + public interface I_M_Product_PO +{ + + /** TableName=M_Product_PO */ + public static final String Table_Name = "M_Product_PO"; + + /** AD_Table_ID=210 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name CostPerOrder */ + public static final String COLUMNNAME_CostPerOrder = "CostPerOrder"; + + /** Set Cost per Order. + * Fixed Cost Per Order + */ + public void setCostPerOrder (BigDecimal CostPerOrder); + + /** Get Cost per Order. + * Fixed Cost Per Order + */ + public BigDecimal getCostPerOrder(); + + /** Column name DeliveryTime_Actual */ + public static final String COLUMNNAME_DeliveryTime_Actual = "DeliveryTime_Actual"; + + /** Set Actual Delivery Time. + * Actual days between order and delivery + */ + public void setDeliveryTime_Actual (int DeliveryTime_Actual); + + /** Get Actual Delivery Time. + * Actual days between order and delivery + */ + public int getDeliveryTime_Actual(); + + /** Column name DeliveryTime_Promised */ + public static final String COLUMNNAME_DeliveryTime_Promised = "DeliveryTime_Promised"; + + /** Set Promised Delivery Time. + * Promised days between order and delivery + */ + public void setDeliveryTime_Promised (int DeliveryTime_Promised); + + /** Get Promised Delivery Time. + * Promised days between order and delivery + */ + public int getDeliveryTime_Promised(); + + /** Column name Discontinued */ + public static final String COLUMNNAME_Discontinued = "Discontinued"; + + /** Set Discontinued. + * This product is no longer available + */ + public void setDiscontinued (boolean Discontinued); + + /** Get Discontinued. + * This product is no longer available + */ + public boolean isDiscontinued(); + + /** Column name DiscontinuedBy */ + public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; + + /** Set Discontinued by. + * Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy); + + /** Get Discontinued by. + * Discontinued By + */ + public Timestamp getDiscontinuedBy(); + + /** Column name IsCurrentVendor */ + public static final String COLUMNNAME_IsCurrentVendor = "IsCurrentVendor"; + + /** Set Current vendor. + * Use this Vendor for pricing and stock replenishment + */ + public void setIsCurrentVendor (boolean IsCurrentVendor); + + /** Get Current vendor. + * Use this Vendor for pricing and stock replenishment + */ + public boolean isCurrentVendor(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Manufacturer */ + public static final String COLUMNNAME_Manufacturer = "Manufacturer"; + + /** Set Manufacturer. + * Manufacturer of the Product + */ + public void setManufacturer (String Manufacturer); + + /** Get Manufacturer. + * Manufacturer of the Product + */ + public String getManufacturer(); + + /** Column name Order_Min */ + public static final String COLUMNNAME_Order_Min = "Order_Min"; + + /** Set Minimum Order Qty. + * Minimum order quantity in UOM + */ + public void setOrder_Min (BigDecimal Order_Min); + + /** Get Minimum Order Qty. + * Minimum order quantity in UOM + */ + public BigDecimal getOrder_Min(); + + /** Column name Order_Pack */ + public static final String COLUMNNAME_Order_Pack = "Order_Pack"; + + /** Set Order Pack Qty. + * Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (BigDecimal Order_Pack); + + /** Get Order Pack Qty. + * Package order size in UOM (e.g. order set of 5 units) + */ + public BigDecimal getOrder_Pack(); + + /** Column name PriceEffective */ + public static final String COLUMNNAME_PriceEffective = "PriceEffective"; + + /** Set Price effective. + * Effective Date of Price + */ + public void setPriceEffective (Timestamp PriceEffective); + + /** Get Price effective. + * Effective Date of Price + */ + public Timestamp getPriceEffective(); + + /** Column name PriceLastInv */ + public static final String COLUMNNAME_PriceLastInv = "PriceLastInv"; + + /** Set Last Invoice Price. + * Price of the last invoice for the product + */ + public void setPriceLastInv (BigDecimal PriceLastInv); + + /** Get Last Invoice Price. + * Price of the last invoice for the product + */ + public BigDecimal getPriceLastInv(); + + /** Column name PriceLastPO */ + public static final String COLUMNNAME_PriceLastPO = "PriceLastPO"; + + /** Set Last PO Price. + * Price of the last purchase order for the product + */ + public void setPriceLastPO (BigDecimal PriceLastPO); + + /** Get Last PO Price. + * Price of the last purchase order for the product + */ + public BigDecimal getPriceLastPO(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name PricePO */ + public static final String COLUMNNAME_PricePO = "PricePO"; + + /** Set PO Price. + * Price based on a purchase order + */ + public void setPricePO (BigDecimal PricePO); + + /** Get PO Price. + * Price based on a purchase order + */ + public BigDecimal getPricePO(); + + /** Column name QualityRating */ + public static final String COLUMNNAME_QualityRating = "QualityRating"; + + /** Set Quality Rating. + * Method for rating vendors + */ + public void setQualityRating (int QualityRating); + + /** Get Quality Rating. + * Method for rating vendors + */ + public int getQualityRating(); + + /** Column name RoyaltyAmt */ + public static final String COLUMNNAME_RoyaltyAmt = "RoyaltyAmt"; + + /** Set Royalty Amount. + * (Included) Amount for copyright, etc. + */ + public void setRoyaltyAmt (BigDecimal RoyaltyAmt); + + /** Get Royalty Amount. + * (Included) Amount for copyright, etc. + */ + public BigDecimal getRoyaltyAmt(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name VendorCategory */ + public static final String COLUMNNAME_VendorCategory = "VendorCategory"; + + /** Set Partner Category. + * Product Category of the Business Partner + */ + public void setVendorCategory (String VendorCategory); + + /** Get Partner Category. + * Product Category of the Business Partner + */ + public String getVendorCategory(); + + /** Column name VendorProductNo */ + public static final String COLUMNNAME_VendorProductNo = "VendorProductNo"; + + /** Set Partner Product Key. + * Product Key of the Business Partner + */ + public void setVendorProductNo (String VendorProductNo); + + /** Get Partner Product Key. + * Product Key of the Business Partner + */ + public String getVendorProductNo(); +} diff --git a/base/src/org/compiere/model/I_M_Production.java b/base/src/org/compiere/model/I_M_Production.java new file mode 100644 index 0000000000..53c61128cd --- /dev/null +++ b/base/src/org/compiere/model/I_M_Production.java @@ -0,0 +1,240 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Production + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.562 + */ + public interface I_M_Production +{ + + /** TableName=M_Production */ + public static final String Table_Name = "M_Production"; + + /** AD_Table_ID=325 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsCreated */ + public static final String COLUMNNAME_IsCreated = "IsCreated"; + + /** Set Records created */ + public void setIsCreated (boolean IsCreated); + + /** Get Records created */ + public boolean isCreated(); + + /** Column name M_Production_ID */ + public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; + + /** Set Production. + * Plan for producing a product + */ + public void setM_Production_ID (int M_Production_ID); + + /** Get Production. + * Plan for producing a product + */ + public int getM_Production_ID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_M_ProductionLine.java b/base/src/org/compiere/model/I_M_ProductionLine.java new file mode 100644 index 0000000000..53185f5c6d --- /dev/null +++ b/base/src/org/compiere/model/I_M_ProductionLine.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ProductionLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.593 + */ + public interface I_M_ProductionLine +{ + + /** TableName=M_ProductionLine */ + public static final String Table_Name = "M_ProductionLine"; + + /** AD_Table_ID=326 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + /** Column name M_ProductionPlan_ID */ + public static final String COLUMNNAME_M_ProductionPlan_ID = "M_ProductionPlan_ID"; + + /** Set Production Plan. + * Plan for how a product is produced + */ + public void setM_ProductionPlan_ID (int M_ProductionPlan_ID); + + /** Get Production Plan. + * Plan for how a product is produced + */ + public int getM_ProductionPlan_ID(); + + public I_M_ProductionPlan getI_M_ProductionPlan() throws Exception; + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); +} diff --git a/base/src/org/compiere/model/I_M_ProductionLineMA.java b/base/src/org/compiere/model/I_M_ProductionLineMA.java new file mode 100644 index 0000000000..438ec043ad --- /dev/null +++ b/base/src/org/compiere/model/I_M_ProductionLineMA.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ProductionLineMA + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.609 + */ + public interface I_M_ProductionLineMA +{ + + /** TableName=M_ProductionLineMA */ + public static final String Table_Name = "M_ProductionLineMA"; + + /** AD_Table_ID=765 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); +} diff --git a/base/src/org/compiere/model/I_M_ProductionPlan.java b/base/src/org/compiere/model/I_M_ProductionPlan.java new file mode 100644 index 0000000000..3142315094 --- /dev/null +++ b/base/src/org/compiere/model/I_M_ProductionPlan.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_ProductionPlan + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.625 + */ + public interface I_M_ProductionPlan +{ + + /** TableName=M_ProductionPlan */ + public static final String Table_Name = "M_ProductionPlan"; + + /** AD_Table_ID=385 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_ProductionPlan_ID */ + public static final String COLUMNNAME_M_ProductionPlan_ID = "M_ProductionPlan_ID"; + + /** Set Production Plan. + * Plan for how a product is produced + */ + public void setM_ProductionPlan_ID (int M_ProductionPlan_ID); + + /** Get Production Plan. + * Plan for how a product is produced + */ + public int getM_ProductionPlan_ID(); + + /** Column name M_Production_ID */ + public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; + + /** Set Production. + * Plan for producing a product + */ + public void setM_Production_ID (int M_Production_ID); + + /** Get Production. + * Plan for producing a product + */ + public int getM_Production_ID(); + + public I_M_Production getI_M_Production() throws Exception; + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ProductionQty */ + public static final String COLUMNNAME_ProductionQty = "ProductionQty"; + + /** Set Production Quantity. + * Quantity of products to produce + */ + public void setProductionQty (BigDecimal ProductionQty); + + /** Get Production Quantity. + * Quantity of products to produce + */ + public BigDecimal getProductionQty(); +} diff --git a/base/src/org/compiere/model/I_M_RMA.java b/base/src/org/compiere/model/I_M_RMA.java new file mode 100644 index 0000000000..8659658180 --- /dev/null +++ b/base/src/org/compiere/model/I_M_RMA.java @@ -0,0 +1,320 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_RMA + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.64 + */ + public interface I_M_RMA +{ + + /** TableName=M_RMA */ + public static final String Table_Name = "M_RMA"; + + /** AD_Table_ID=661 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name GenerateTo */ + public static final String COLUMNNAME_GenerateTo = "GenerateTo"; + + /** Set Generate To. + * Generate To + */ + public void setGenerateTo (String GenerateTo); + + /** Get Generate To. + * Generate To + */ + public String getGenerateTo(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name InOut_ID */ + public static final String COLUMNNAME_InOut_ID = "InOut_ID"; + + /** Set Shipment/Receipt. + * MaterialShipment Document + */ + public void setInOut_ID (int InOut_ID); + + /** Get Shipment/Receipt. + * MaterialShipment Document + */ + public int getInOut_ID(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_RMAType_ID */ + public static final String COLUMNNAME_M_RMAType_ID = "M_RMAType_ID"; + + /** Set RMA Type. + * Return Material Authorization Type + */ + public void setM_RMAType_ID (int M_RMAType_ID); + + /** Get RMA Type. + * Return Material Authorization Type + */ + public int getM_RMAType_ID(); + + public I_M_RMAType getI_M_RMAType() throws Exception; + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); +} diff --git a/base/src/org/compiere/model/I_M_RMALine.java b/base/src/org/compiere/model/I_M_RMALine.java new file mode 100644 index 0000000000..7e22ea224f --- /dev/null +++ b/base/src/org/compiere/model/I_M_RMALine.java @@ -0,0 +1,209 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_RMALine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.703 + */ + public interface I_M_RMALine +{ + + /** TableName=M_RMALine */ + public static final String Table_Name = "M_RMALine"; + + /** AD_Table_ID=660 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name Amt */ + public static final String COLUMNNAME_Amt = "Amt"; + + /** Set Amount. + * Amount + */ + public void setAmt (BigDecimal Amt); + + /** Get Amount. + * Amount + */ + public BigDecimal getAmt(); + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineNetAmt */ + public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; + + /** Set Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt); + + /** Get Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + public I_M_InOutLine getI_M_InOutLine() throws Exception; + + /** Column name M_RMALine_ID */ + public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; + + /** Set RMA Line. + * Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID); + + /** Get RMA Line. + * Return Material Authorization Line + */ + public int getM_RMALine_ID(); + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + public I_M_RMA getI_M_RMA() throws Exception; + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name QtyDelivered */ + public static final String COLUMNNAME_QtyDelivered = "QtyDelivered"; + + /** Set Delivered Quantity. + * Delivered Quantity + */ + public void setQtyDelivered (BigDecimal QtyDelivered); + + /** Get Delivered Quantity. + * Delivered Quantity + */ + public BigDecimal getQtyDelivered(); +} diff --git a/base/src/org/compiere/model/I_M_RMAType.java b/base/src/org/compiere/model/I_M_RMAType.java new file mode 100644 index 0000000000..e0d28f2e68 --- /dev/null +++ b/base/src/org/compiere/model/I_M_RMAType.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_RMAType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.718 + */ + public interface I_M_RMAType +{ + + /** TableName=M_RMAType */ + public static final String Table_Name = "M_RMAType"; + + /** AD_Table_ID=729 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_RMAType_ID */ + public static final String COLUMNNAME_M_RMAType_ID = "M_RMAType_ID"; + + /** Set RMA Type. + * Return Material Authorization Type + */ + public void setM_RMAType_ID (int M_RMAType_ID); + + /** Get RMA Type. + * Return Material Authorization Type + */ + public int getM_RMAType_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); +} diff --git a/base/src/org/compiere/model/I_M_RelatedProduct.java b/base/src/org/compiere/model/I_M_RelatedProduct.java new file mode 100644 index 0000000000..0331315322 --- /dev/null +++ b/base/src/org/compiere/model/I_M_RelatedProduct.java @@ -0,0 +1,121 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_RelatedProduct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.734 + */ + public interface I_M_RelatedProduct +{ + + /** TableName=M_RelatedProduct */ + public static final String Table_Name = "M_RelatedProduct"; + + /** AD_Table_ID=662 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name RelatedProductType */ + public static final String COLUMNNAME_RelatedProductType = "RelatedProductType"; + + /** Set Related Product Type */ + public void setRelatedProductType (String RelatedProductType); + + /** Get Related Product Type */ + public String getRelatedProductType(); + + /** Column name RelatedProduct_ID */ + public static final String COLUMNNAME_RelatedProduct_ID = "RelatedProduct_ID"; + + /** Set Related Product. + * Related Product + */ + public void setRelatedProduct_ID (int RelatedProduct_ID); + + /** Get Related Product. + * Related Product + */ + public int getRelatedProduct_ID(); +} diff --git a/base/src/org/compiere/model/I_M_Replenish.java b/base/src/org/compiere/model/I_M_Replenish.java new file mode 100644 index 0000000000..f06ec1b1c7 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Replenish.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Replenish + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.75 + */ + public interface I_M_Replenish +{ + + /** TableName=M_Replenish */ + public static final String Table_Name = "M_Replenish"; + + /** AD_Table_ID=249 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Level_Max */ + public static final String COLUMNNAME_Level_Max = "Level_Max"; + + /** Set Maximum Level. + * Maximum Inventory level for this product + */ + public void setLevel_Max (BigDecimal Level_Max); + + /** Get Maximum Level. + * Maximum Inventory level for this product + */ + public BigDecimal getLevel_Max(); + + /** Column name Level_Min */ + public static final String COLUMNNAME_Level_Min = "Level_Min"; + + /** Set Minimum Level. + * Minimum Inventory level for this product + */ + public void setLevel_Min (BigDecimal Level_Min); + + /** Get Minimum Level. + * Minimum Inventory level for this product + */ + public BigDecimal getLevel_Min(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_WarehouseSource_ID */ + public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; + + /** Set Source Warehouse. + * Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID); + + /** Get Source Warehouse. + * Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name ReplenishType */ + public static final String COLUMNNAME_ReplenishType = "ReplenishType"; + + /** Set Replenish Type. + * Method for re-ordering a product + */ + public void setReplenishType (String ReplenishType); + + /** Get Replenish Type. + * Method for re-ordering a product + */ + public String getReplenishType(); +} diff --git a/base/src/org/compiere/model/I_M_Requisition.java b/base/src/org/compiere/model/I_M_Requisition.java new file mode 100644 index 0000000000..ddaa3bf6c2 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Requisition.java @@ -0,0 +1,298 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Requisition + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.765 + */ + public interface I_M_Requisition +{ + + /** TableName=M_Requisition */ + public static final String Table_Name = "M_Requisition"; + + /** AD_Table_ID=702 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** Column name DateRequired */ + public static final String COLUMNNAME_DateRequired = "DateRequired"; + + /** Set Date Required. + * Date when required + */ + public void setDateRequired (Timestamp DateRequired); + + /** Get Date Required. + * Date when required + */ + public Timestamp getDateRequired(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Requisition_ID */ + public static final String COLUMNNAME_M_Requisition_ID = "M_Requisition_ID"; + + /** Set Requisition. + * Material Requisition + */ + public void setM_Requisition_ID (int M_Requisition_ID); + + /** Get Requisition. + * Material Requisition + */ + public int getM_Requisition_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriorityRule */ + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + + /** Set Priority. + * Priority of a document + */ + public void setPriorityRule (String PriorityRule); + + /** Get Priority. + * Priority of a document + */ + public String getPriorityRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name TotalLines */ + public static final String COLUMNNAME_TotalLines = "TotalLines"; + + /** Set Total Lines. + * Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines); + + /** Get Total Lines. + * Total of all document lines + */ + public BigDecimal getTotalLines(); +} diff --git a/base/src/org/compiere/model/I_M_RequisitionLine.java b/base/src/org/compiere/model/I_M_RequisitionLine.java new file mode 100644 index 0000000000..dc5de969c3 --- /dev/null +++ b/base/src/org/compiere/model/I_M_RequisitionLine.java @@ -0,0 +1,207 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_RequisitionLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:51.812 + */ + public interface I_M_RequisitionLine +{ + + /** TableName=M_RequisitionLine */ + public static final String Table_Name = "M_RequisitionLine"; + + /** AD_Table_ID=703 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getI_C_Charge() throws Exception; + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineNetAmt */ + public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; + + /** Set Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt); + + /** Get Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_RequisitionLine_ID */ + public static final String COLUMNNAME_M_RequisitionLine_ID = "M_RequisitionLine_ID"; + + /** Set Requisition Line. + * Material Requisition Line + */ + public void setM_RequisitionLine_ID (int M_RequisitionLine_ID); + + /** Get Requisition Line. + * Material Requisition Line + */ + public int getM_RequisitionLine_ID(); + + /** Column name M_Requisition_ID */ + public static final String COLUMNNAME_M_Requisition_ID = "M_Requisition_ID"; + + /** Set Requisition. + * Material Requisition + */ + public void setM_Requisition_ID (int M_Requisition_ID); + + /** Get Requisition. + * Material Requisition + */ + public int getM_Requisition_ID(); + + public I_M_Requisition getI_M_Requisition() throws Exception; + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_M_SerNoCtl.java b/base/src/org/compiere/model/I_M_SerNoCtl.java new file mode 100644 index 0000000000..482e451545 --- /dev/null +++ b/base/src/org/compiere/model/I_M_SerNoCtl.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_SerNoCtl + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.25 + */ + public interface I_M_SerNoCtl +{ + + /** TableName=M_SerNoCtl */ + public static final String Table_Name = "M_SerNoCtl"; + + /** AD_Table_ID=555 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name CurrentNext */ + public static final String COLUMNNAME_CurrentNext = "CurrentNext"; + + /** Set Current Next. + * The next number to be used + */ + public void setCurrentNext (int CurrentNext); + + /** Get Current Next. + * The next number to be used + */ + public int getCurrentNext(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IncrementNo */ + public static final String COLUMNNAME_IncrementNo = "IncrementNo"; + + /** Set Increment. + * The number to increment the last document number by + */ + public void setIncrementNo (int IncrementNo); + + /** Get Increment. + * The number to increment the last document number by + */ + public int getIncrementNo(); + + /** Column name M_SerNoCtl_ID */ + public static final String COLUMNNAME_M_SerNoCtl_ID = "M_SerNoCtl_ID"; + + /** Set Serial No Control. + * Product Serial Number Control + */ + public void setM_SerNoCtl_ID (int M_SerNoCtl_ID); + + /** Get Serial No Control. + * Product Serial Number Control + */ + public int getM_SerNoCtl_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Prefix */ + public static final String COLUMNNAME_Prefix = "Prefix"; + + /** Set Prefix. + * Prefix before the sequence number + */ + public void setPrefix (String Prefix); + + /** Get Prefix. + * Prefix before the sequence number + */ + public String getPrefix(); + + /** Column name StartNo */ + public static final String COLUMNNAME_StartNo = "StartNo"; + + /** Set Start No. + * Starting number/position + */ + public void setStartNo (int StartNo); + + /** Get Start No. + * Starting number/position + */ + public int getStartNo(); + + /** Column name Suffix */ + public static final String COLUMNNAME_Suffix = "Suffix"; + + /** Set Suffix. + * Suffix after the number + */ + public void setSuffix (String Suffix); + + /** Get Suffix. + * Suffix after the number + */ + public String getSuffix(); +} diff --git a/base/src/org/compiere/model/I_M_SerNoCtlExclude.java b/base/src/org/compiere/model/I_M_SerNoCtlExclude.java new file mode 100644 index 0000000000..839384c799 --- /dev/null +++ b/base/src/org/compiere/model/I_M_SerNoCtlExclude.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_SerNoCtlExclude + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.281 + */ + public interface I_M_SerNoCtlExclude +{ + + /** TableName=M_SerNoCtlExclude */ + public static final String Table_Name = "M_SerNoCtlExclude"; + + /** AD_Table_ID=811 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_SerNoCtlExclude_ID */ + public static final String COLUMNNAME_M_SerNoCtlExclude_ID = "M_SerNoCtlExclude_ID"; + + /** Set Exclude SerNo. + * Exclude the ability to create Serial Numbers in Attribute Sets + */ + public void setM_SerNoCtlExclude_ID (int M_SerNoCtlExclude_ID); + + /** Get Exclude SerNo. + * Exclude the ability to create Serial Numbers in Attribute Sets + */ + public int getM_SerNoCtlExclude_ID(); + + /** Column name M_SerNoCtl_ID */ + public static final String COLUMNNAME_M_SerNoCtl_ID = "M_SerNoCtl_ID"; + + /** Set Serial No Control. + * Product Serial Number Control + */ + public void setM_SerNoCtl_ID (int M_SerNoCtl_ID); + + /** Get Serial No Control. + * Product Serial Number Control + */ + public int getM_SerNoCtl_ID(); + + public I_M_SerNoCtl getI_M_SerNoCtl() throws Exception; +} diff --git a/base/src/org/compiere/model/I_M_Shipper.java b/base/src/org/compiere/model/I_M_Shipper.java new file mode 100644 index 0000000000..d9d0977648 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Shipper.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Shipper + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.296 + */ + public interface I_M_Shipper +{ + + /** TableName=M_Shipper */ + public static final String Table_Name = "M_Shipper"; + + /** AD_Table_ID=253 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name TrackingURL */ + public static final String COLUMNNAME_TrackingURL = "TrackingURL"; + + /** Set Tracking URL. + * URL of the shipper to track shipments + */ + public void setTrackingURL (String TrackingURL); + + /** Get Tracking URL. + * URL of the shipper to track shipments + */ + public String getTrackingURL(); +} diff --git a/base/src/org/compiere/model/I_M_Storage.java b/base/src/org/compiere/model/I_M_Storage.java new file mode 100644 index 0000000000..59bcc7857c --- /dev/null +++ b/base/src/org/compiere/model/I_M_Storage.java @@ -0,0 +1,151 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Storage + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.343 + */ + public interface I_M_Storage +{ + + /** TableName=M_Storage */ + public static final String Table_Name = "M_Storage"; + + /** AD_Table_ID=250 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name DateLastInventory */ + public static final String COLUMNNAME_DateLastInventory = "DateLastInventory"; + + /** Set Date last inventory count. + * Date of Last Inventory Count + */ + public void setDateLastInventory (Timestamp DateLastInventory); + + /** Get Date last inventory count. + * Date of Last Inventory Count + */ + public Timestamp getDateLastInventory(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name QtyOnHand */ + public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; + + /** Set On Hand Quantity. + * On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand); + + /** Get On Hand Quantity. + * On Hand Quantity + */ + public BigDecimal getQtyOnHand(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name QtyReserved */ + public static final String COLUMNNAME_QtyReserved = "QtyReserved"; + + /** Set Reserved Quantity. + * Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved); + + /** Get Reserved Quantity. + * Reserved Quantity + */ + public BigDecimal getQtyReserved(); +} diff --git a/base/src/org/compiere/model/I_M_Substitute.java b/base/src/org/compiere/model/I_M_Substitute.java new file mode 100644 index 0000000000..93f31f09fa --- /dev/null +++ b/base/src/org/compiere/model/I_M_Substitute.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Substitute + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.39 + */ + public interface I_M_Substitute +{ + + /** TableName=M_Substitute */ + public static final String Table_Name = "M_Substitute"; + + /** AD_Table_ID=213 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Substitute_ID */ + public static final String COLUMNNAME_Substitute_ID = "Substitute_ID"; + + /** Set Substitute. + * Entity which can be used in place of this entity + */ + public void setSubstitute_ID (int Substitute_ID); + + /** Get Substitute. + * Entity which can be used in place of this entity + */ + public int getSubstitute_ID(); +} diff --git a/base/src/org/compiere/model/I_M_Transaction.java b/base/src/org/compiere/model/I_M_Transaction.java new file mode 100644 index 0000000000..68083825c3 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Transaction.java @@ -0,0 +1,212 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Transaction + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.406 + */ + public interface I_M_Transaction +{ + + /** TableName=M_Transaction */ + public static final String Table_Name = "M_Transaction"; + + /** AD_Table_ID=329 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + /** Column name M_Transaction_ID */ + public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; + + /** Set Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID); + + /** Get Inventory Transaction */ + public int getM_Transaction_ID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name MovementType */ + public static final String COLUMNNAME_MovementType = "MovementType"; + + /** Set Movement Type. + * Method of moving the inventory + */ + public void setMovementType (String MovementType); + + /** Get Movement Type. + * Method of moving the inventory + */ + public String getMovementType(); +} diff --git a/base/src/org/compiere/model/I_M_TransactionAllocation.java b/base/src/org/compiere/model/I_M_TransactionAllocation.java new file mode 100644 index 0000000000..c2874f2e8e --- /dev/null +++ b/base/src/org/compiere/model/I_M_TransactionAllocation.java @@ -0,0 +1,238 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_TransactionAllocation + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.437 + */ + public interface I_M_TransactionAllocation +{ + + /** TableName=M_TransactionAllocation */ + public static final String Table_Name = "M_TransactionAllocation"; + + /** AD_Table_ID=636 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AllocationStrategyType */ + public static final String COLUMNNAME_AllocationStrategyType = "AllocationStrategyType"; + + /** Set Allocation Strategy. + * Allocation Strategy + */ + public void setAllocationStrategyType (String AllocationStrategyType); + + /** Get Allocation Strategy. + * Allocation Strategy + */ + public String getAllocationStrategyType(); + + /** Column name IsAllocated */ + public static final String COLUMNNAME_IsAllocated = "IsAllocated"; + + /** Set Allocated. + * Indicates if the payment has been allocated + */ + public void setIsAllocated (boolean IsAllocated); + + /** Get Allocated. + * Indicates if the payment has been allocated + */ + public boolean isAllocated(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + /** Column name M_Transaction_ID */ + public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; + + /** Set Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID); + + /** Get Inventory Transaction */ + public int getM_Transaction_ID(); + + /** Column name Out_M_InOutLine_ID */ + public static final String COLUMNNAME_Out_M_InOutLine_ID = "Out_M_InOutLine_ID"; + + /** Set Out Shipment Line. + * Outgoing Shipment/Receipt + */ + public void setOut_M_InOutLine_ID (int Out_M_InOutLine_ID); + + /** Get Out Shipment Line. + * Outgoing Shipment/Receipt + */ + public int getOut_M_InOutLine_ID(); + + /** Column name Out_M_InventoryLine_ID */ + public static final String COLUMNNAME_Out_M_InventoryLine_ID = "Out_M_InventoryLine_ID"; + + /** Set Out Inventory Line. + * Outgoing Inventory Line + */ + public void setOut_M_InventoryLine_ID (int Out_M_InventoryLine_ID); + + /** Get Out Inventory Line. + * Outgoing Inventory Line + */ + public int getOut_M_InventoryLine_ID(); + + /** Column name Out_M_ProductionLine_ID */ + public static final String COLUMNNAME_Out_M_ProductionLine_ID = "Out_M_ProductionLine_ID"; + + /** Set Out Production Line. + * Outgoing Production Line + */ + public void setOut_M_ProductionLine_ID (int Out_M_ProductionLine_ID); + + /** Get Out Production Line. + * Outgoing Production Line + */ + public int getOut_M_ProductionLine_ID(); + + /** Column name Out_M_Transaction_ID */ + public static final String COLUMNNAME_Out_M_Transaction_ID = "Out_M_Transaction_ID"; + + /** Set Out Transaction. + * Outgoing Transaction + */ + public void setOut_M_Transaction_ID (int Out_M_Transaction_ID); + + /** Get Out Transaction. + * Outgoing Transaction + */ + public int getOut_M_Transaction_ID(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_M_Warehouse.java b/base/src/org/compiere/model/I_M_Warehouse.java new file mode 100644 index 0000000000..ca45a02292 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Warehouse.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Warehouse + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.468 + */ + public interface I_M_Warehouse +{ + + /** TableName=M_Warehouse */ + public static final String Table_Name = "M_Warehouse"; + + /** AD_Table_ID=190 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name M_WarehouseSource_ID */ + public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; + + /** Set Source Warehouse. + * Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID); + + /** Get Source Warehouse. + * Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ReplenishmentClass */ + public static final String COLUMNNAME_ReplenishmentClass = "ReplenishmentClass"; + + /** Set Replenishment Class. + * Custom class to calculate Quantity to Order + */ + public void setReplenishmentClass (String ReplenishmentClass); + + /** Get Replenishment Class. + * Custom class to calculate Quantity to Order + */ + public String getReplenishmentClass(); + + /** Column name Separator */ + public static final String COLUMNNAME_Separator = "Separator"; + + /** Set Element Separator. + * Element Separator + */ + public void setSeparator (String Separator); + + /** Get Element Separator. + * Element Separator + */ + public String getSeparator(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_M_Warehouse_Acct.java b/base/src/org/compiere/model/I_M_Warehouse_Acct.java new file mode 100644 index 0000000000..9b1b22b9d8 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Warehouse_Acct.java @@ -0,0 +1,142 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for M_Warehouse_Acct + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.5 + */ + public interface I_M_Warehouse_Acct +{ + + /** TableName=M_Warehouse_Acct */ + public static final String Table_Name = "M_Warehouse_Acct"; + + /** AD_Table_ID=191 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name W_Differences_Acct */ + public static final String COLUMNNAME_W_Differences_Acct = "W_Differences_Acct"; + + /** Set Warehouse Differences. + * Warehouse Differences Account + */ + public void setW_Differences_Acct (int W_Differences_Acct); + + /** Get Warehouse Differences. + * Warehouse Differences Account + */ + public int getW_Differences_Acct(); + + /** Column name W_InvActualAdjust_Acct */ + public static final String COLUMNNAME_W_InvActualAdjust_Acct = "W_InvActualAdjust_Acct"; + + /** Set Inventory Adjustment. + * Account for Inventory value adjustments for Actual Costing + */ + public void setW_InvActualAdjust_Acct (int W_InvActualAdjust_Acct); + + /** Get Inventory Adjustment. + * Account for Inventory value adjustments for Actual Costing + */ + public int getW_InvActualAdjust_Acct(); + + /** Column name W_Inventory_Acct */ + public static final String COLUMNNAME_W_Inventory_Acct = "W_Inventory_Acct"; + + /** Set (Not Used). + * Warehouse Inventory Asset Account - Currently not used + */ + public void setW_Inventory_Acct (int W_Inventory_Acct); + + /** Get (Not Used). + * Warehouse Inventory Asset Account - Currently not used + */ + public int getW_Inventory_Acct(); + + /** Column name W_Revaluation_Acct */ + public static final String COLUMNNAME_W_Revaluation_Acct = "W_Revaluation_Acct"; + + /** Set Inventory Revaluation. + * Account for Inventory Revaluation + */ + public void setW_Revaluation_Acct (int W_Revaluation_Acct); + + /** Get Inventory Revaluation. + * Account for Inventory Revaluation + */ + public int getW_Revaluation_Acct(); +} diff --git a/base/src/org/compiere/model/I_PA_Achievement.java b/base/src/org/compiere/model/I_PA_Achievement.java new file mode 100644 index 0000000000..293d51f75d --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Achievement.java @@ -0,0 +1,181 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Achievement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.531 + */ + public interface I_PA_Achievement +{ + + /** TableName=PA_Achievement */ + public static final String Table_Name = "PA_Achievement"; + + /** AD_Table_ID=438 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsAchieved */ + public static final String COLUMNNAME_IsAchieved = "IsAchieved"; + + /** Set Achieved. + * The goal is achieved + */ + public void setIsAchieved (boolean IsAchieved); + + /** Get Achieved. + * The goal is achieved + */ + public boolean isAchieved(); + + /** Column name ManualActual */ + public static final String COLUMNNAME_ManualActual = "ManualActual"; + + /** Set Manual Actual. + * Manually entered actual value + */ + public void setManualActual (BigDecimal ManualActual); + + /** Get Manual Actual. + * Manually entered actual value + */ + public BigDecimal getManualActual(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name PA_Achievement_ID */ + public static final String COLUMNNAME_PA_Achievement_ID = "PA_Achievement_ID"; + + /** Set Achievement. + * Performance Achievement + */ + public void setPA_Achievement_ID (int PA_Achievement_ID); + + /** Get Achievement. + * Performance Achievement + */ + public int getPA_Achievement_ID(); + + /** Column name PA_Measure_ID */ + public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; + + /** Set Measure. + * Concrete Performance Measurement + */ + public void setPA_Measure_ID (int PA_Measure_ID); + + /** Get Measure. + * Concrete Performance Measurement + */ + public int getPA_Measure_ID(); + + public I_PA_Measure getI_PA_Measure() throws Exception; + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_PA_Benchmark.java b/base/src/org/compiere/model/I_PA_Benchmark.java new file mode 100644 index 0000000000..2715facf4d --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Benchmark.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Benchmark + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.562 + */ + public interface I_PA_Benchmark +{ + + /** TableName=PA_Benchmark */ + public static final String Table_Name = "PA_Benchmark"; + + /** AD_Table_ID=833 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AccumulationType */ + public static final String COLUMNNAME_AccumulationType = "AccumulationType"; + + /** Set Accumulation Type. + * How to accumulate data on time axis + */ + public void setAccumulationType (String AccumulationType); + + /** Get Accumulation Type. + * How to accumulate data on time axis + */ + public String getAccumulationType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_Benchmark_ID */ + public static final String COLUMNNAME_PA_Benchmark_ID = "PA_Benchmark_ID"; + + /** Set Benchmark. + * Performance Benchmark + */ + public void setPA_Benchmark_ID (int PA_Benchmark_ID); + + /** Get Benchmark. + * Performance Benchmark + */ + public int getPA_Benchmark_ID(); +} diff --git a/base/src/org/compiere/model/I_PA_BenchmarkData.java b/base/src/org/compiere/model/I_PA_BenchmarkData.java new file mode 100644 index 0000000000..368d569b04 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_BenchmarkData.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_BenchmarkData + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.578 + */ + public interface I_PA_BenchmarkData +{ + + /** TableName=PA_BenchmarkData */ + public static final String Table_Name = "PA_BenchmarkData"; + + /** AD_Table_ID=834 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name BenchmarkDate */ + public static final String COLUMNNAME_BenchmarkDate = "BenchmarkDate"; + + /** Set Date. + * Benchmark Date + */ + public void setBenchmarkDate (Timestamp BenchmarkDate); + + /** Get Date. + * Benchmark Date + */ + public Timestamp getBenchmarkDate(); + + /** Column name BenchmarkValue */ + public static final String COLUMNNAME_BenchmarkValue = "BenchmarkValue"; + + /** Set Value. + * Benchmark Value + */ + public void setBenchmarkValue (BigDecimal BenchmarkValue); + + /** Get Value. + * Benchmark Value + */ + public BigDecimal getBenchmarkValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_BenchmarkData_ID */ + public static final String COLUMNNAME_PA_BenchmarkData_ID = "PA_BenchmarkData_ID"; + + /** Set Benchmark Data. + * Performance Benchmark Data Point + */ + public void setPA_BenchmarkData_ID (int PA_BenchmarkData_ID); + + /** Get Benchmark Data. + * Performance Benchmark Data Point + */ + public int getPA_BenchmarkData_ID(); + + /** Column name PA_Benchmark_ID */ + public static final String COLUMNNAME_PA_Benchmark_ID = "PA_Benchmark_ID"; + + /** Set Benchmark. + * Performance Benchmark + */ + public void setPA_Benchmark_ID (int PA_Benchmark_ID); + + /** Get Benchmark. + * Performance Benchmark + */ + public int getPA_Benchmark_ID(); + + public I_PA_Benchmark getI_PA_Benchmark() throws Exception; +} diff --git a/base/src/org/compiere/model/I_PA_ColorSchema.java b/base/src/org/compiere/model/I_PA_ColorSchema.java new file mode 100644 index 0000000000..b5f7ae8162 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_ColorSchema.java @@ -0,0 +1,218 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_ColorSchema + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.578 + */ + public interface I_PA_ColorSchema +{ + + /** TableName=PA_ColorSchema */ + public static final String Table_Name = "PA_ColorSchema"; + + /** AD_Table_ID=831 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_PrintColor1_ID */ + public static final String COLUMNNAME_AD_PrintColor1_ID = "AD_PrintColor1_ID"; + + /** Set Color 1. + * First color used + */ + public void setAD_PrintColor1_ID (int AD_PrintColor1_ID); + + /** Get Color 1. + * First color used + */ + public int getAD_PrintColor1_ID(); + + /** Column name AD_PrintColor2_ID */ + public static final String COLUMNNAME_AD_PrintColor2_ID = "AD_PrintColor2_ID"; + + /** Set Color 2. + * Second color used + */ + public void setAD_PrintColor2_ID (int AD_PrintColor2_ID); + + /** Get Color 2. + * Second color used + */ + public int getAD_PrintColor2_ID(); + + /** Column name AD_PrintColor3_ID */ + public static final String COLUMNNAME_AD_PrintColor3_ID = "AD_PrintColor3_ID"; + + /** Set Color 3. + * Third color used + */ + public void setAD_PrintColor3_ID (int AD_PrintColor3_ID); + + /** Get Color 3. + * Third color used + */ + public int getAD_PrintColor3_ID(); + + /** Column name AD_PrintColor4_ID */ + public static final String COLUMNNAME_AD_PrintColor4_ID = "AD_PrintColor4_ID"; + + /** Set Color 4. + * Forth color used + */ + public void setAD_PrintColor4_ID (int AD_PrintColor4_ID); + + /** Get Color 4. + * Forth color used + */ + public int getAD_PrintColor4_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Mark1Percent */ + public static final String COLUMNNAME_Mark1Percent = "Mark1Percent"; + + /** Set Mark 1 Percent. + * Percentage up to this color is used + */ + public void setMark1Percent (int Mark1Percent); + + /** Get Mark 1 Percent. + * Percentage up to this color is used + */ + public int getMark1Percent(); + + /** Column name Mark2Percent */ + public static final String COLUMNNAME_Mark2Percent = "Mark2Percent"; + + /** Set Mark 2 Percent. + * Percentage up to this color is used + */ + public void setMark2Percent (int Mark2Percent); + + /** Get Mark 2 Percent. + * Percentage up to this color is used + */ + public int getMark2Percent(); + + /** Column name Mark3Percent */ + public static final String COLUMNNAME_Mark3Percent = "Mark3Percent"; + + /** Set Mark 3 Percent. + * Percentage up to this color is used + */ + public void setMark3Percent (int Mark3Percent); + + /** Get Mark 3 Percent. + * Percentage up to this color is used + */ + public int getMark3Percent(); + + /** Column name Mark4Percent */ + public static final String COLUMNNAME_Mark4Percent = "Mark4Percent"; + + /** Set Mark 4 Percent. + * Percentage up to this color is used + */ + public void setMark4Percent (int Mark4Percent); + + /** Get Mark 4 Percent. + * Percentage up to this color is used + */ + public int getMark4Percent(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_ColorSchema_ID */ + public static final String COLUMNNAME_PA_ColorSchema_ID = "PA_ColorSchema_ID"; + + /** Set Color Schema. + * Performance Color Schema + */ + public void setPA_ColorSchema_ID (int PA_ColorSchema_ID); + + /** Get Color Schema. + * Performance Color Schema + */ + public int getPA_ColorSchema_ID(); +} diff --git a/base/src/org/compiere/model/I_PA_DashboardContent.java b/base/src/org/compiere/model/I_PA_DashboardContent.java new file mode 100644 index 0000000000..7f2704cc90 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_DashboardContent.java @@ -0,0 +1,147 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_DashboardContent + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.609 + */ + public interface I_PA_DashboardContent +{ + + /** TableName=PA_DashboardContent */ + public static final String Table_Name = "PA_DashboardContent"; + + /** AD_Table_ID=50010 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getI_AD_Window() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name HTML */ + public static final String COLUMNNAME_HTML = "HTML"; + + /** Set HTML */ + public void setHTML (String HTML); + + /** Get HTML */ + public String getHTML(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (BigDecimal Line); + + /** Get Line No. + * Unique line for this document + */ + public BigDecimal getLine(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_DashboardContent_ID */ + public static final String COLUMNNAME_PA_DashboardContent_ID = "PA_DashboardContent_ID"; + + /** Set PA_DashboardContent_ID */ + public void setPA_DashboardContent_ID (int PA_DashboardContent_ID); + + /** Get PA_DashboardContent_ID */ + public int getPA_DashboardContent_ID(); + + /** Column name PA_Goal_ID */ + public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID"; + + /** Set Goal. + * Performance Goal + */ + public void setPA_Goal_ID (int PA_Goal_ID); + + /** Get Goal. + * Performance Goal + */ + public int getPA_Goal_ID(); + + public I_PA_Goal getI_PA_Goal() throws Exception; +} diff --git a/base/src/org/compiere/model/I_PA_Goal.java b/base/src/org/compiere/model/I_PA_Goal.java new file mode 100644 index 0000000000..df0a67c2e0 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Goal.java @@ -0,0 +1,328 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Goal + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.625 + */ + public interface I_PA_Goal +{ + + /** TableName=PA_Goal */ + public static final String Table_Name = "PA_Goal"; + + /** AD_Table_ID=440 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name DateFrom */ + public static final String COLUMNNAME_DateFrom = "DateFrom"; + + /** Set Date From. + * Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom); + + /** Get Date From. + * Starting date for a range + */ + public Timestamp getDateFrom(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateTo */ + public static final String COLUMNNAME_DateTo = "DateTo"; + + /** Set Date To. + * End date of a date range + */ + public void setDateTo (Timestamp DateTo); + + /** Get Date To. + * End date of a date range + */ + public Timestamp getDateTo(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GoalPerformance */ + public static final String COLUMNNAME_GoalPerformance = "GoalPerformance"; + + /** Set Performance Goal. + * Target achievement from 0..1 + */ + public void setGoalPerformance (BigDecimal GoalPerformance); + + /** Get Performance Goal. + * Target achievement from 0..1 + */ + public BigDecimal getGoalPerformance(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name MeasureActual */ + public static final String COLUMNNAME_MeasureActual = "MeasureActual"; + + /** Set Measure Actual. + * Actual value that has been measured. + */ + public void setMeasureActual (BigDecimal MeasureActual); + + /** Get Measure Actual. + * Actual value that has been measured. + */ + public BigDecimal getMeasureActual(); + + /** Column name MeasureDisplay */ + public static final String COLUMNNAME_MeasureDisplay = "MeasureDisplay"; + + /** Set Measure Display. + * Measure Scope initially displayed + */ + public void setMeasureDisplay (String MeasureDisplay); + + /** Get Measure Display. + * Measure Scope initially displayed + */ + public String getMeasureDisplay(); + + /** Column name MeasureScope */ + public static final String COLUMNNAME_MeasureScope = "MeasureScope"; + + /** Set Measure Scope. + * Performance Measure Scope + */ + public void setMeasureScope (String MeasureScope); + + /** Get Measure Scope. + * Performance Measure Scope + */ + public String getMeasureScope(); + + /** Column name MeasureTarget */ + public static final String COLUMNNAME_MeasureTarget = "MeasureTarget"; + + /** Set Measure Target. + * Target value for measure + */ + public void setMeasureTarget (BigDecimal MeasureTarget); + + /** Get Measure Target. + * Target value for measure + */ + public BigDecimal getMeasureTarget(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name PA_ColorSchema_ID */ + public static final String COLUMNNAME_PA_ColorSchema_ID = "PA_ColorSchema_ID"; + + /** Set Color Schema. + * Performance Color Schema + */ + public void setPA_ColorSchema_ID (int PA_ColorSchema_ID); + + /** Get Color Schema. + * Performance Color Schema + */ + public int getPA_ColorSchema_ID(); + + public I_PA_ColorSchema getI_PA_ColorSchema() throws Exception; + + /** Column name PA_GoalParent_ID */ + public static final String COLUMNNAME_PA_GoalParent_ID = "PA_GoalParent_ID"; + + /** Set Parent Goal. + * Parent Goal + */ + public void setPA_GoalParent_ID (int PA_GoalParent_ID); + + /** Get Parent Goal. + * Parent Goal + */ + public int getPA_GoalParent_ID(); + + /** Column name PA_Goal_ID */ + public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID"; + + /** Set Goal. + * Performance Goal + */ + public void setPA_Goal_ID (int PA_Goal_ID); + + /** Get Goal. + * Performance Goal + */ + public int getPA_Goal_ID(); + + /** Column name PA_Measure_ID */ + public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; + + /** Set Measure. + * Concrete Performance Measurement + */ + public void setPA_Measure_ID (int PA_Measure_ID); + + /** Get Measure. + * Concrete Performance Measurement + */ + public int getPA_Measure_ID(); + + public I_PA_Measure getI_PA_Measure() throws Exception; + + /** Column name RelativeWeight */ + public static final String COLUMNNAME_RelativeWeight = "RelativeWeight"; + + /** Set Relative Weight. + * Relative weight of this step (0 = ignored) + */ + public void setRelativeWeight (BigDecimal RelativeWeight); + + /** Get Relative Weight. + * Relative weight of this step (0 = ignored) + */ + public BigDecimal getRelativeWeight(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_PA_GoalRestriction.java b/base/src/org/compiere/model/I_PA_GoalRestriction.java new file mode 100644 index 0000000000..f5994f96a0 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_GoalRestriction.java @@ -0,0 +1,183 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_GoalRestriction + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.687 + */ + public interface I_PA_GoalRestriction +{ + + /** TableName=PA_GoalRestriction */ + public static final String Table_Name = "PA_GoalRestriction"; + + /** AD_Table_ID=832 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name GoalRestrictionType */ + public static final String COLUMNNAME_GoalRestrictionType = "GoalRestrictionType"; + + /** Set Restriction Type. + * Goal Restriction Type + */ + public void setGoalRestrictionType (String GoalRestrictionType); + + /** Get Restriction Type. + * Goal Restriction Type + */ + public String getGoalRestrictionType(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name PA_GoalRestriction_ID */ + public static final String COLUMNNAME_PA_GoalRestriction_ID = "PA_GoalRestriction_ID"; + + /** Set Goal Restriction. + * Performance Goal Restriction + */ + public void setPA_GoalRestriction_ID (int PA_GoalRestriction_ID); + + /** Get Goal Restriction. + * Performance Goal Restriction + */ + public int getPA_GoalRestriction_ID(); + + /** Column name PA_Goal_ID */ + public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID"; + + /** Set Goal. + * Performance Goal + */ + public void setPA_Goal_ID (int PA_Goal_ID); + + /** Get Goal. + * Performance Goal + */ + public int getPA_Goal_ID(); + + public I_PA_Goal getI_PA_Goal() throws Exception; +} diff --git a/base/src/org/compiere/model/I_PA_Hierarchy.java b/base/src/org/compiere/model/I_PA_Hierarchy.java new file mode 100644 index 0000000000..94964184a4 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Hierarchy.java @@ -0,0 +1,216 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Hierarchy + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:52.703 + */ + public interface I_PA_Hierarchy +{ + + /** TableName=PA_Hierarchy */ + public static final String Table_Name = "PA_Hierarchy"; + + /** AD_Table_ID=821 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_Tree_Account_ID */ + public static final String COLUMNNAME_AD_Tree_Account_ID = "AD_Tree_Account_ID"; + + /** Set Account Tree. + * Tree for Natural Account Tree + */ + public void setAD_Tree_Account_ID (int AD_Tree_Account_ID); + + /** Get Account Tree. + * Tree for Natural Account Tree + */ + public int getAD_Tree_Account_ID(); + + /** Column name AD_Tree_Activity_ID */ + public static final String COLUMNNAME_AD_Tree_Activity_ID = "AD_Tree_Activity_ID"; + + /** Set Activity Tree. + * Tree to determine activity hierarchy + */ + public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID); + + /** Get Activity Tree. + * Tree to determine activity hierarchy + */ + public int getAD_Tree_Activity_ID(); + + /** Column name AD_Tree_BPartner_ID */ + public static final String COLUMNNAME_AD_Tree_BPartner_ID = "AD_Tree_BPartner_ID"; + + /** Set BPartner Tree. + * Tree to determine business partner hierarchy + */ + public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID); + + /** Get BPartner Tree. + * Tree to determine business partner hierarchy + */ + public int getAD_Tree_BPartner_ID(); + + /** Column name AD_Tree_Campaign_ID */ + public static final String COLUMNNAME_AD_Tree_Campaign_ID = "AD_Tree_Campaign_ID"; + + /** Set Campaign Tree. + * Tree to determine marketing campaign hierarchy + */ + public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID); + + /** Get Campaign Tree. + * Tree to determine marketing campaign hierarchy + */ + public int getAD_Tree_Campaign_ID(); + + /** Column name AD_Tree_Org_ID */ + public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; + + /** Set Organization Tree. + * Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID); + + /** Get Organization Tree. + * Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID(); + + /** Column name AD_Tree_Product_ID */ + public static final String COLUMNNAME_AD_Tree_Product_ID = "AD_Tree_Product_ID"; + + /** Set Product Tree. + * Tree to determine product hierarchy + */ + public void setAD_Tree_Product_ID (int AD_Tree_Product_ID); + + /** Get Product Tree. + * Tree to determine product hierarchy + */ + public int getAD_Tree_Product_ID(); + + /** Column name AD_Tree_Project_ID */ + public static final String COLUMNNAME_AD_Tree_Project_ID = "AD_Tree_Project_ID"; + + /** Set Project Tree. + * Tree to determine project hierarchy + */ + public void setAD_Tree_Project_ID (int AD_Tree_Project_ID); + + /** Get Project Tree. + * Tree to determine project hierarchy + */ + public int getAD_Tree_Project_ID(); + + /** Column name AD_Tree_SalesRegion_ID */ + public static final String COLUMNNAME_AD_Tree_SalesRegion_ID = "AD_Tree_SalesRegion_ID"; + + /** Set Sales Region Tree. + * Tree to determine sales regional hierarchy + */ + public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID); + + /** Get Sales Region Tree. + * Tree to determine sales regional hierarchy + */ + public int getAD_Tree_SalesRegion_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_Hierarchy_ID */ + public static final String COLUMNNAME_PA_Hierarchy_ID = "PA_Hierarchy_ID"; + + /** Set Reporting Hierarchy. + * Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public void setPA_Hierarchy_ID (int PA_Hierarchy_ID); + + /** Get Reporting Hierarchy. + * Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public int getPA_Hierarchy_ID(); +} diff --git a/base/src/org/compiere/model/I_PA_Measure.java b/base/src/org/compiere/model/I_PA_Measure.java new file mode 100644 index 0000000000..c72a29f6bb --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Measure.java @@ -0,0 +1,254 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Measure + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:53.437 + */ + public interface I_PA_Measure +{ + + /** TableName=PA_Measure */ + public static final String Table_Name = "PA_Measure"; + + /** AD_Table_ID=441 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name C_ProjectType_ID */ + public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; + + /** Set Project Type. + * Type of the project + */ + public void setC_ProjectType_ID (int C_ProjectType_ID); + + /** Get Project Type. + * Type of the project + */ + public int getC_ProjectType_ID(); + + public I_C_ProjectType getI_C_ProjectType() throws Exception; + + /** Column name CalculationClass */ + public static final String COLUMNNAME_CalculationClass = "CalculationClass"; + + /** Set Calculation Class. + * Java Class for calculation, implementing Interface Measure + */ + public void setCalculationClass (String CalculationClass); + + /** Get Calculation Class. + * Java Class for calculation, implementing Interface Measure + */ + public String getCalculationClass(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ManualActual */ + public static final String COLUMNNAME_ManualActual = "ManualActual"; + + /** Set Manual Actual. + * Manually entered actual value + */ + public void setManualActual (BigDecimal ManualActual); + + /** Get Manual Actual. + * Manually entered actual value + */ + public BigDecimal getManualActual(); + + /** Column name ManualNote */ + public static final String COLUMNNAME_ManualNote = "ManualNote"; + + /** Set Note. + * Note for manual entry + */ + public void setManualNote (String ManualNote); + + /** Get Note. + * Note for manual entry + */ + public String getManualNote(); + + /** Column name MeasureDataType */ + public static final String COLUMNNAME_MeasureDataType = "MeasureDataType"; + + /** Set Measure Data Type. + * Type of data - Status or in Time + */ + public void setMeasureDataType (String MeasureDataType); + + /** Get Measure Data Type. + * Type of data - Status or in Time + */ + public String getMeasureDataType(); + + /** Column name MeasureType */ + public static final String COLUMNNAME_MeasureType = "MeasureType"; + + /** Set Measure Type. + * Determines how the actual performance is derived + */ + public void setMeasureType (String MeasureType); + + /** Get Measure Type. + * Determines how the actual performance is derived + */ + public String getMeasureType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_Benchmark_ID */ + public static final String COLUMNNAME_PA_Benchmark_ID = "PA_Benchmark_ID"; + + /** Set Benchmark. + * Performance Benchmark + */ + public void setPA_Benchmark_ID (int PA_Benchmark_ID); + + /** Get Benchmark. + * Performance Benchmark + */ + public int getPA_Benchmark_ID(); + + public I_PA_Benchmark getI_PA_Benchmark() throws Exception; + + /** Column name PA_Hierarchy_ID */ + public static final String COLUMNNAME_PA_Hierarchy_ID = "PA_Hierarchy_ID"; + + /** Set Reporting Hierarchy. + * Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public void setPA_Hierarchy_ID (int PA_Hierarchy_ID); + + /** Get Reporting Hierarchy. + * Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public int getPA_Hierarchy_ID(); + + public I_PA_Hierarchy getI_PA_Hierarchy() throws Exception; + + /** Column name PA_MeasureCalc_ID */ + public static final String COLUMNNAME_PA_MeasureCalc_ID = "PA_MeasureCalc_ID"; + + /** Set Measure Calculation. + * Calculation method for measuring performance + */ + public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID); + + /** Get Measure Calculation. + * Calculation method for measuring performance + */ + public int getPA_MeasureCalc_ID(); + + public I_PA_MeasureCalc getI_PA_MeasureCalc() throws Exception; + + /** Column name PA_Measure_ID */ + public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; + + /** Set Measure. + * Concrete Performance Measurement + */ + public void setPA_Measure_ID (int PA_Measure_ID); + + /** Get Measure. + * Concrete Performance Measurement + */ + public int getPA_Measure_ID(); + + /** Column name PA_Ratio_ID */ + public static final String COLUMNNAME_PA_Ratio_ID = "PA_Ratio_ID"; + + /** Set Ratio. + * Performace Ratio + */ + public void setPA_Ratio_ID (int PA_Ratio_ID); + + /** Get Ratio. + * Performace Ratio + */ + public int getPA_Ratio_ID(); + + public I_PA_Ratio getI_PA_Ratio() throws Exception; + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; +} diff --git a/base/src/org/compiere/model/I_PA_MeasureCalc.java b/base/src/org/compiere/model/I_PA_MeasureCalc.java new file mode 100644 index 0000000000..404d4aec30 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_MeasureCalc.java @@ -0,0 +1,220 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_MeasureCalc + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:53.5 + */ + public interface I_PA_MeasureCalc +{ + + /** TableName=PA_MeasureCalc */ + public static final String Table_Name = "PA_MeasureCalc"; + + /** AD_Table_ID=442 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name BPartnerColumn */ + public static final String COLUMNNAME_BPartnerColumn = "BPartnerColumn"; + + /** Set B.Partner Column. + * Fully qualified Business Partner key column (C_BPartner_ID) + */ + public void setBPartnerColumn (String BPartnerColumn); + + /** Get B.Partner Column. + * Fully qualified Business Partner key column (C_BPartner_ID) + */ + public String getBPartnerColumn(); + + /** Column name DateColumn */ + public static final String COLUMNNAME_DateColumn = "DateColumn"; + + /** Set Date Column. + * Fully qualified date column + */ + public void setDateColumn (String DateColumn); + + /** Get Date Column. + * Fully qualified date column + */ + public String getDateColumn(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name KeyColumn */ + public static final String COLUMNNAME_KeyColumn = "KeyColumn"; + + /** Set Key Column. + * Key Column for Table + */ + public void setKeyColumn (String KeyColumn); + + /** Get Key Column. + * Key Column for Table + */ + public String getKeyColumn(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OrgColumn */ + public static final String COLUMNNAME_OrgColumn = "OrgColumn"; + + /** Set Org Column. + * Fully qualified Organization column (AD_Org_ID) + */ + public void setOrgColumn (String OrgColumn); + + /** Get Org Column. + * Fully qualified Organization column (AD_Org_ID) + */ + public String getOrgColumn(); + + /** Column name PA_MeasureCalc_ID */ + public static final String COLUMNNAME_PA_MeasureCalc_ID = "PA_MeasureCalc_ID"; + + /** Set Measure Calculation. + * Calculation method for measuring performance + */ + public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID); + + /** Get Measure Calculation. + * Calculation method for measuring performance + */ + public int getPA_MeasureCalc_ID(); + + /** Column name ProductColumn */ + public static final String COLUMNNAME_ProductColumn = "ProductColumn"; + + /** Set Product Column. + * Fully qualified Product column (M_Product_ID) + */ + public void setProductColumn (String ProductColumn); + + /** Get Product Column. + * Fully qualified Product column (M_Product_ID) + */ + public String getProductColumn(); + + /** Column name SelectClause */ + public static final String COLUMNNAME_SelectClause = "SelectClause"; + + /** Set Sql SELECT. + * SQL SELECT clause + */ + public void setSelectClause (String SelectClause); + + /** Get Sql SELECT. + * SQL SELECT clause + */ + public String getSelectClause(); + + /** Column name WhereClause */ + public static final String COLUMNNAME_WhereClause = "WhereClause"; + + /** Set Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause); + + /** Get Sql WHERE. + * Fully qualified SQL WHERE clause + */ + public String getWhereClause(); +} diff --git a/base/src/org/compiere/model/I_PA_Ratio.java b/base/src/org/compiere/model/I_PA_Ratio.java new file mode 100644 index 0000000000..bcd7939723 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Ratio.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Ratio + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:53.562 + */ + public interface I_PA_Ratio +{ + + /** TableName=PA_Ratio */ + public static final String Table_Name = "PA_Ratio"; + + /** AD_Table_ID=835 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_Ratio_ID */ + public static final String COLUMNNAME_PA_Ratio_ID = "PA_Ratio_ID"; + + /** Set Ratio. + * Performace Ratio + */ + public void setPA_Ratio_ID (int PA_Ratio_ID); + + /** Get Ratio. + * Performace Ratio + */ + public int getPA_Ratio_ID(); +} diff --git a/base/src/org/compiere/model/I_PA_RatioElement.java b/base/src/org/compiere/model/I_PA_RatioElement.java new file mode 100644 index 0000000000..845cc50a43 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_RatioElement.java @@ -0,0 +1,222 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_RatioElement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:53.578 + */ + public interface I_PA_RatioElement +{ + + /** TableName=PA_RatioElement */ + public static final String Table_Name = "PA_RatioElement"; + + /** AD_Table_ID=836 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Account_ID */ + public static final String COLUMNNAME_Account_ID = "Account_ID"; + + /** Set Account. + * Account used + */ + public void setAccount_ID (int Account_ID); + + /** Get Account. + * Account used + */ + public int getAccount_ID(); + + /** Column name ConstantValue */ + public static final String COLUMNNAME_ConstantValue = "ConstantValue"; + + /** Set Constant Value. + * Constant value + */ + public void setConstantValue (BigDecimal ConstantValue); + + /** Get Constant Value. + * Constant value + */ + public BigDecimal getConstantValue(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_MeasureCalc_ID */ + public static final String COLUMNNAME_PA_MeasureCalc_ID = "PA_MeasureCalc_ID"; + + /** Set Measure Calculation. + * Calculation method for measuring performance + */ + public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID); + + /** Get Measure Calculation. + * Calculation method for measuring performance + */ + public int getPA_MeasureCalc_ID(); + + public I_PA_MeasureCalc getI_PA_MeasureCalc() throws Exception; + + /** Column name PA_RatioElement_ID */ + public static final String COLUMNNAME_PA_RatioElement_ID = "PA_RatioElement_ID"; + + /** Set Ratio Element. + * Performance Ratio Element + */ + public void setPA_RatioElement_ID (int PA_RatioElement_ID); + + /** Get Ratio Element. + * Performance Ratio Element + */ + public int getPA_RatioElement_ID(); + + /** Column name PA_RatioUsed_ID */ + public static final String COLUMNNAME_PA_RatioUsed_ID = "PA_RatioUsed_ID"; + + /** Set Ratio Used. + * Performace Ratio Used + */ + public void setPA_RatioUsed_ID (int PA_RatioUsed_ID); + + /** Get Ratio Used. + * Performace Ratio Used + */ + public int getPA_RatioUsed_ID(); + + /** Column name PA_Ratio_ID */ + public static final String COLUMNNAME_PA_Ratio_ID = "PA_Ratio_ID"; + + /** Set Ratio. + * Performace Ratio + */ + public void setPA_Ratio_ID (int PA_Ratio_ID); + + /** Get Ratio. + * Performace Ratio + */ + public int getPA_Ratio_ID(); + + public I_PA_Ratio getI_PA_Ratio() throws Exception; + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name RatioElementType */ + public static final String COLUMNNAME_RatioElementType = "RatioElementType"; + + /** Set Element Type. + * Ratio Element Type + */ + public void setRatioElementType (String RatioElementType); + + /** Get Element Type. + * Ratio Element Type + */ + public String getRatioElementType(); + + /** Column name RatioOperand */ + public static final String COLUMNNAME_RatioOperand = "RatioOperand"; + + /** Set Operand. + * Ratio Operand + */ + public void setRatioOperand (String RatioOperand); + + /** Get Operand. + * Ratio Operand + */ + public String getRatioOperand(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_PA_Report.java b/base/src/org/compiere/model/I_PA_Report.java new file mode 100644 index 0000000000..dad2231cdb --- /dev/null +++ b/base/src/org/compiere/model/I_PA_Report.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_Report + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:53.609 + */ + public interface I_PA_Report +{ + + /** TableName=PA_Report */ + public static final String Table_Name = "PA_Report"; + + /** AD_Table_ID=445 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception; + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception; + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getI_C_Calendar() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ListSources */ + public static final String COLUMNNAME_ListSources = "ListSources"; + + /** Set List Sources. + * List Report Line Sources + */ + public void setListSources (boolean ListSources); + + /** Get List Sources. + * List Report Line Sources + */ + public boolean isListSources(); + + /** Column name ListTrx */ + public static final String COLUMNNAME_ListTrx = "ListTrx"; + + /** Set List Transactions. + * List the report transactions + */ + public void setListTrx (boolean ListTrx); + + /** Get List Transactions. + * List the report transactions + */ + public boolean isListTrx(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_ReportColumnSet_ID */ + public static final String COLUMNNAME_PA_ReportColumnSet_ID = "PA_ReportColumnSet_ID"; + + /** Set Report Column Set. + * Collection of Columns for Report + */ + public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID); + + /** Get Report Column Set. + * Collection of Columns for Report + */ + public int getPA_ReportColumnSet_ID(); + + public I_PA_ReportColumnSet getI_PA_ReportColumnSet() throws Exception; + + /** Column name PA_ReportLineSet_ID */ + public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; + + /** Set Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID); + + /** Get Report Line Set */ + public int getPA_ReportLineSet_ID(); + + public I_PA_ReportLineSet getI_PA_ReportLineSet() throws Exception; + + /** Column name PA_Report_ID */ + public static final String COLUMNNAME_PA_Report_ID = "PA_Report_ID"; + + /** Set Financial Report. + * Financial Report + */ + public void setPA_Report_ID (int PA_Report_ID); + + /** Get Financial Report. + * Financial Report + */ + public int getPA_Report_ID(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_PA_ReportColumn.java b/base/src/org/compiere/model/I_PA_ReportColumn.java new file mode 100644 index 0000000000..f9f4d37eed --- /dev/null +++ b/base/src/org/compiere/model/I_PA_ReportColumn.java @@ -0,0 +1,421 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_ReportColumn + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:53.625 + */ + public interface I_PA_ReportColumn +{ + + /** TableName=PA_ReportColumn */ + public static final String Table_Name = "PA_ReportColumn"; + + /** AD_Table_ID=446 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AmountType */ + public static final String COLUMNNAME_AmountType = "AmountType"; + + /** Set Amount Type. + * Type of amount to report + */ + public void setAmountType (String AmountType); + + /** Get Amount Type. + * Type of amount to report + */ + public String getAmountType(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + public I_C_BPartner getI_C_BPartner() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + public I_C_ElementValue getI_C_ElementValue() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name CalculationType */ + public static final String COLUMNNAME_CalculationType = "CalculationType"; + + /** Set Calculation */ + public void setCalculationType (String CalculationType); + + /** Get Calculation */ + public String getCalculationType(); + + /** Column name ColumnType */ + public static final String COLUMNNAME_ColumnType = "ColumnType"; + + /** Set Column Type */ + public void setColumnType (String ColumnType); + + /** Get Column Type */ + public String getColumnType(); + + /** Column name CurrencyType */ + public static final String COLUMNNAME_CurrencyType = "CurrencyType"; + + /** Set Currency Type */ + public void setCurrencyType (String CurrencyType); + + /** Get Currency Type */ + public String getCurrencyType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ElementType */ + public static final String COLUMNNAME_ElementType = "ElementType"; + + /** Set Type. + * Element Type (account or user defined) + */ + public void setElementType (String ElementType); + + /** Get Type. + * Element Type (account or user defined) + */ + public String getElementType(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name IsAdhocConversion */ + public static final String COLUMNNAME_IsAdhocConversion = "IsAdhocConversion"; + + /** Set Adhoc Conversion. + * Perform conversion for all amounts to currency + */ + public void setIsAdhocConversion (boolean IsAdhocConversion); + + /** Get Adhoc Conversion. + * Perform conversion for all amounts to currency + */ + public boolean isAdhocConversion(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + public I_M_Product getI_M_Product() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Oper_1_ID */ + public static final String COLUMNNAME_Oper_1_ID = "Oper_1_ID"; + + /** Set Operand 1. + * First operand for calculation + */ + public void setOper_1_ID (int Oper_1_ID); + + /** Get Operand 1. + * First operand for calculation + */ + public int getOper_1_ID(); + + /** Column name Oper_2_ID */ + public static final String COLUMNNAME_Oper_2_ID = "Oper_2_ID"; + + /** Set Operand 2. + * Second operand for calculation + */ + public void setOper_2_ID (int Oper_2_ID); + + /** Get Operand 2. + * Second operand for calculation + */ + public int getOper_2_ID(); + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name PA_ReportColumnSet_ID */ + public static final String COLUMNNAME_PA_ReportColumnSet_ID = "PA_ReportColumnSet_ID"; + + /** Set Report Column Set. + * Collection of Columns for Report + */ + public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID); + + /** Get Report Column Set. + * Collection of Columns for Report + */ + public int getPA_ReportColumnSet_ID(); + + public I_PA_ReportColumnSet getI_PA_ReportColumnSet() throws Exception; + + /** Column name PA_ReportColumn_ID */ + public static final String COLUMNNAME_PA_ReportColumn_ID = "PA_ReportColumn_ID"; + + /** Set Report Column. + * Column in Report + */ + public void setPA_ReportColumn_ID (int PA_ReportColumn_ID); + + /** Get Report Column. + * Column in Report + */ + public int getPA_ReportColumn_ID(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name RelativePeriod */ + public static final String COLUMNNAME_RelativePeriod = "RelativePeriod"; + + /** Set Relative Period. + * Period offset (0 is current) + */ + public void setRelativePeriod (BigDecimal RelativePeriod); + + /** Get Relative Period. + * Period offset (0 is current) + */ + public BigDecimal getRelativePeriod(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_PA_ReportColumnSet.java b/base/src/org/compiere/model/I_PA_ReportColumnSet.java new file mode 100644 index 0000000000..bcead76107 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_ReportColumnSet.java @@ -0,0 +1,108 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_ReportColumnSet + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.125 + */ + public interface I_PA_ReportColumnSet +{ + + /** TableName=PA_ReportColumnSet */ + public static final String Table_Name = "PA_ReportColumnSet"; + + /** AD_Table_ID=447 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_ReportColumnSet_ID */ + public static final String COLUMNNAME_PA_ReportColumnSet_ID = "PA_ReportColumnSet_ID"; + + /** Set Report Column Set. + * Collection of Columns for Report + */ + public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID); + + /** Get Report Column Set. + * Collection of Columns for Report + */ + public int getPA_ReportColumnSet_ID(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_PA_ReportLine.java b/base/src/org/compiere/model/I_PA_ReportLine.java new file mode 100644 index 0000000000..7772b4db78 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_ReportLine.java @@ -0,0 +1,245 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_ReportLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.14 + */ + public interface I_PA_ReportLine +{ + + /** TableName=PA_ReportLine */ + public static final String Table_Name = "PA_ReportLine"; + + /** AD_Table_ID=448 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AmountType */ + public static final String COLUMNNAME_AmountType = "AmountType"; + + /** Set Amount Type. + * Type of amount to report + */ + public void setAmountType (String AmountType); + + /** Get Amount Type. + * Type of amount to report + */ + public String getAmountType(); + + /** Column name CalculationType */ + public static final String COLUMNNAME_CalculationType = "CalculationType"; + + /** Set Calculation */ + public void setCalculationType (String CalculationType); + + /** Get Calculation */ + public String getCalculationType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getI_GL_Budget() throws Exception; + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name LineType */ + public static final String COLUMNNAME_LineType = "LineType"; + + /** Set Line Type */ + public void setLineType (String LineType); + + /** Get Line Type */ + public String getLineType(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Oper_1_ID */ + public static final String COLUMNNAME_Oper_1_ID = "Oper_1_ID"; + + /** Set Operand 1. + * First operand for calculation + */ + public void setOper_1_ID (int Oper_1_ID); + + /** Get Operand 1. + * First operand for calculation + */ + public int getOper_1_ID(); + + /** Column name Oper_2_ID */ + public static final String COLUMNNAME_Oper_2_ID = "Oper_2_ID"; + + /** Set Operand 2. + * Second operand for calculation + */ + public void setOper_2_ID (int Oper_2_ID); + + /** Get Operand 2. + * Second operand for calculation + */ + public int getOper_2_ID(); + + /** Column name PA_ReportLineSet_ID */ + public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; + + /** Set Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID); + + /** Get Report Line Set */ + public int getPA_ReportLineSet_ID(); + + public I_PA_ReportLineSet getI_PA_ReportLineSet() throws Exception; + + /** Column name PA_ReportLine_ID */ + public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; + + /** Set Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID); + + /** Get Report Line */ + public int getPA_ReportLine_ID(); + + /** Column name Parent_ID */ + public static final String COLUMNNAME_Parent_ID = "Parent_ID"; + + /** Set Parent. + * Parent of Entity + */ + public void setParent_ID (int Parent_ID); + + /** Get Parent. + * Parent of Entity + */ + public int getParent_ID(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_PA_ReportLineSet.java b/base/src/org/compiere/model/I_PA_ReportLineSet.java new file mode 100644 index 0000000000..0a4794b75a --- /dev/null +++ b/base/src/org/compiere/model/I_PA_ReportLineSet.java @@ -0,0 +1,104 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_ReportLineSet + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.171 + */ + public interface I_PA_ReportLineSet +{ + + /** TableName=PA_ReportLineSet */ + public static final String Table_Name = "PA_ReportLineSet"; + + /** AD_Table_ID=449 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_ReportLineSet_ID */ + public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; + + /** Set Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID); + + /** Get Report Line Set */ + public int getPA_ReportLineSet_ID(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_PA_ReportSource.java b/base/src/org/compiere/model/I_PA_ReportSource.java new file mode 100644 index 0000000000..0578f04df5 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_ReportSource.java @@ -0,0 +1,239 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_ReportSource + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.171 + */ + public interface I_PA_ReportSource +{ + + /** TableName=PA_ReportSource */ + public static final String Table_Name = "PA_ReportSource"; + + /** AD_Table_ID=450 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + public I_C_BPartner getI_C_BPartner() throws Exception; + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_ElementValue_ID */ + public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + + /** Set Account Element. + * Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID); + + /** Get Account Element. + * Account Element + */ + public int getC_ElementValue_ID(); + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_SalesRegion_ID */ + public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** Set Sales Region. + * Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID); + + /** Get Sales Region. + * Sales coverage region + */ + public int getC_SalesRegion_ID(); + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ElementType */ + public static final String COLUMNNAME_ElementType = "ElementType"; + + /** Set Type. + * Element Type (account or user defined) + */ + public void setElementType (String ElementType); + + /** Get Type. + * Element Type (account or user defined) + */ + public String getElementType(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + public I_M_Product getI_M_Product() throws Exception; + + /** Column name Org_ID */ + public static final String COLUMNNAME_Org_ID = "Org_ID"; + + /** Set Organization. + * Organizational entity within client + */ + public void setOrg_ID (int Org_ID); + + /** Get Organization. + * Organizational entity within client + */ + public int getOrg_ID(); + + /** Column name PA_ReportLine_ID */ + public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; + + /** Set Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID); + + /** Get Report Line */ + public int getPA_ReportLine_ID(); + + public I_PA_ReportLine getI_PA_ReportLine() throws Exception; + + /** Column name PA_ReportSource_ID */ + public static final String COLUMNNAME_PA_ReportSource_ID = "PA_ReportSource_ID"; + + /** Set Report Source. + * Restriction of what will be shown in Report Line + */ + public void setPA_ReportSource_ID (int PA_ReportSource_ID); + + /** Get Report Source. + * Restriction of what will be shown in Report Line + */ + public int getPA_ReportSource_ID(); +} diff --git a/base/src/org/compiere/model/I_PA_SLA_Criteria.java b/base/src/org/compiere/model/I_PA_SLA_Criteria.java new file mode 100644 index 0000000000..477a057fb2 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_SLA_Criteria.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_SLA_Criteria + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.218 + */ + public interface I_PA_SLA_Criteria +{ + + /** TableName=PA_SLA_Criteria */ + public static final String Table_Name = "PA_SLA_Criteria"; + + /** AD_Table_ID=744 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Classname */ + public static final String COLUMNNAME_Classname = "Classname"; + + /** Set Classname. + * Java Classname + */ + public void setClassname (String Classname); + + /** Get Classname. + * Java Classname + */ + public String getClassname(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_SLA_Criteria_ID */ + public static final String COLUMNNAME_PA_SLA_Criteria_ID = "PA_SLA_Criteria_ID"; + + /** Set SLA Criteria. + * Service Level Agreement Criteria + */ + public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID); + + /** Get SLA Criteria. + * Service Level Agreement Criteria + */ + public int getPA_SLA_Criteria_ID(); +} diff --git a/base/src/org/compiere/model/I_PA_SLA_Goal.java b/base/src/org/compiere/model/I_PA_SLA_Goal.java new file mode 100644 index 0000000000..82d95e6d1d --- /dev/null +++ b/base/src/org/compiere/model/I_PA_SLA_Goal.java @@ -0,0 +1,227 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_SLA_Goal + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.265 + */ + public interface I_PA_SLA_Goal +{ + + /** TableName=PA_SLA_Goal */ + public static final String Table_Name = "PA_SLA_Goal"; + + /** AD_Table_ID=745 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name MeasureActual */ + public static final String COLUMNNAME_MeasureActual = "MeasureActual"; + + /** Set Measure Actual. + * Actual value that has been measured. + */ + public void setMeasureActual (BigDecimal MeasureActual); + + /** Get Measure Actual. + * Actual value that has been measured. + */ + public BigDecimal getMeasureActual(); + + /** Column name MeasureTarget */ + public static final String COLUMNNAME_MeasureTarget = "MeasureTarget"; + + /** Set Measure Target. + * Target value for measure + */ + public void setMeasureTarget (BigDecimal MeasureTarget); + + /** Get Measure Target. + * Target value for measure + */ + public BigDecimal getMeasureTarget(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_SLA_Criteria_ID */ + public static final String COLUMNNAME_PA_SLA_Criteria_ID = "PA_SLA_Criteria_ID"; + + /** Set SLA Criteria. + * Service Level Agreement Criteria + */ + public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID); + + /** Get SLA Criteria. + * Service Level Agreement Criteria + */ + public int getPA_SLA_Criteria_ID(); + + public I_PA_SLA_Criteria getI_PA_SLA_Criteria() throws Exception; + + /** Column name PA_SLA_Goal_ID */ + public static final String COLUMNNAME_PA_SLA_Goal_ID = "PA_SLA_Goal_ID"; + + /** Set SLA Goal. + * Service Level Agreement Goal + */ + public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID); + + /** Get SLA Goal. + * Service Level Agreement Goal + */ + public int getPA_SLA_Goal_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); +} diff --git a/base/src/org/compiere/model/I_PA_SLA_Measure.java b/base/src/org/compiere/model/I_PA_SLA_Measure.java new file mode 100644 index 0000000000..9f13c00e15 --- /dev/null +++ b/base/src/org/compiere/model/I_PA_SLA_Measure.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for PA_SLA_Measure + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.281 + */ + public interface I_PA_SLA_Measure +{ + + /** TableName=PA_SLA_Measure */ + public static final String Table_Name = "PA_SLA_Measure"; + + /** AD_Table_ID=743 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name MeasureActual */ + public static final String COLUMNNAME_MeasureActual = "MeasureActual"; + + /** Set Measure Actual. + * Actual value that has been measured. + */ + public void setMeasureActual (BigDecimal MeasureActual); + + /** Get Measure Actual. + * Actual value that has been measured. + */ + public BigDecimal getMeasureActual(); + + /** Column name PA_SLA_Goal_ID */ + public static final String COLUMNNAME_PA_SLA_Goal_ID = "PA_SLA_Goal_ID"; + + /** Set SLA Goal. + * Service Level Agreement Goal + */ + public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID); + + /** Get SLA Goal. + * Service Level Agreement Goal + */ + public int getPA_SLA_Goal_ID(); + + public I_PA_SLA_Goal getI_PA_SLA_Goal() throws Exception; + + /** Column name PA_SLA_Measure_ID */ + public static final String COLUMNNAME_PA_SLA_Measure_ID = "PA_SLA_Measure_ID"; + + /** Set SLA Measure. + * Service Level Agreement Measure + */ + public void setPA_SLA_Measure_ID (int PA_SLA_Measure_ID); + + /** Get SLA Measure. + * Service Level Agreement Measure + */ + public int getPA_SLA_Measure_ID(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); +} diff --git a/base/src/org/compiere/model/I_RV_BPartner.java b/base/src/org/compiere/model/I_RV_BPartner.java new file mode 100644 index 0000000000..80b4d1123a --- /dev/null +++ b/base/src/org/compiere/model/I_RV_BPartner.java @@ -0,0 +1,1233 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for RV_BPartner + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.296 + */ + public interface I_RV_BPartner +{ + + /** TableName=RV_BPartner */ + public static final String Table_Name = "RV_BPartner"; + + /** AD_Table_ID=520 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AD_OrgBP_ID */ + public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; + + /** Set Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (int AD_OrgBP_ID); + + /** Get Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public int getAD_OrgBP_ID(); + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AcqusitionCost */ + public static final String COLUMNNAME_AcqusitionCost = "AcqusitionCost"; + + /** Set Acquisition Cost. + * The cost of gaining the prospect as a customer + */ + public void setAcqusitionCost (BigDecimal AcqusitionCost); + + /** Get Acquisition Cost. + * The cost of gaining the prospect as a customer + */ + public BigDecimal getAcqusitionCost(); + + /** Column name ActualLifeTimeValue */ + public static final String COLUMNNAME_ActualLifeTimeValue = "ActualLifeTimeValue"; + + /** Set Actual Life Time Value. + * Actual Life Time Revenue + */ + public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue); + + /** Get Actual Life Time Value. + * Actual Life Time Revenue + */ + public BigDecimal getActualLifeTimeValue(); + + /** Column name Address1 */ + public static final String COLUMNNAME_Address1 = "Address1"; + + /** Set Address 1. + * Address line 1 for this location + */ + public void setAddress1 (String Address1); + + /** Get Address 1. + * Address line 1 for this location + */ + public String getAddress1(); + + /** Column name Address2 */ + public static final String COLUMNNAME_Address2 = "Address2"; + + /** Set Address 2. + * Address line 2 for this location + */ + public void setAddress2 (String Address2); + + /** Get Address 2. + * Address line 2 for this location + */ + public String getAddress2(); + + /** Column name Address3 */ + public static final String COLUMNNAME_Address3 = "Address3"; + + /** Set Address 3. + * Address Line 3 for the location + */ + public void setAddress3 (String Address3); + + /** Get Address 3. + * Address Line 3 for the location + */ + public String getAddress3(); + + /** Column name BPContactGreeting */ + public static final String COLUMNNAME_BPContactGreeting = "BPContactGreeting"; + + /** Set BP Contact Greeting. + * Greeting for Business Partner Contact + */ + public void setBPContactGreeting (int BPContactGreeting); + + /** Get BP Contact Greeting. + * Greeting for Business Partner Contact + */ + public int getBPContactGreeting(); + + /** Column name BPartner_Parent_ID */ + public static final String COLUMNNAME_BPartner_Parent_ID = "BPartner_Parent_ID"; + + /** Set Partner Parent. + * Business Partner Parent + */ + public void setBPartner_Parent_ID (int BPartner_Parent_ID); + + /** Get Partner Parent. + * Business Partner Parent + */ + public int getBPartner_Parent_ID(); + + /** Column name Birthday */ + public static final String COLUMNNAME_Birthday = "Birthday"; + + /** Set Birthday. + * Birthday or Anniversary day + */ + public void setBirthday (Timestamp Birthday); + + /** Get Birthday. + * Birthday or Anniversary day + */ + public Timestamp getBirthday(); + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception; + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + public I_C_Country getI_C_Country() throws Exception; + + /** Column name C_Dunning_ID */ + public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; + + /** Set Dunning. + * Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID); + + /** Get Dunning. + * Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID(); + + public I_C_Dunning getI_C_Dunning() throws Exception; + + /** Column name C_Greeting_ID */ + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + + /** Set Greeting. + * Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID); + + /** Get Greeting. + * Greeting to print on correspondence + */ + public int getC_Greeting_ID(); + + public I_C_Greeting getI_C_Greeting() throws Exception; + + /** Column name C_InvoiceSchedule_ID */ + public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; + + /** Set Invoice Schedule. + * Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID); + + /** Get Invoice Schedule. + * Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID(); + + public I_C_InvoiceSchedule getI_C_InvoiceSchedule() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + public I_C_Region getI_C_Region() throws Exception; + + /** Column name City */ + public static final String COLUMNNAME_City = "City"; + + /** Set City. + * Identifies a City + */ + public void setCity (String City); + + /** Get City. + * Identifies a City + */ + public String getCity(); + + /** Column name Comments */ + public static final String COLUMNNAME_Comments = "Comments"; + + /** Set Comments. + * Comments or additional information + */ + public void setComments (String Comments); + + /** Get Comments. + * Comments or additional information + */ + public String getComments(); + + /** Column name ContactDescription */ + public static final String COLUMNNAME_ContactDescription = "ContactDescription"; + + /** Set Contact Description. + * Description of Contact + */ + public void setContactDescription (String ContactDescription); + + /** Get Contact Description. + * Description of Contact + */ + public String getContactDescription(); + + /** Column name ContactName */ + public static final String COLUMNNAME_ContactName = "ContactName"; + + /** Set Contact Name. + * Business Partner Contact Name + */ + public void setContactName (String ContactName); + + /** Get Contact Name. + * Business Partner Contact Name + */ + public String getContactName(); + + /** Column name CountryName */ + public static final String COLUMNNAME_CountryName = "CountryName"; + + /** Set Country. + * Country Name + */ + public void setCountryName (String CountryName); + + /** Get Country. + * Country Name + */ + public String getCountryName(); + + /** Column name DUNS */ + public static final String COLUMNNAME_DUNS = "DUNS"; + + /** Set D-U-N-S. + * Dun & Bradstreet Number + */ + public void setDUNS (String DUNS); + + /** Get D-U-N-S. + * Dun & Bradstreet Number + */ + public String getDUNS(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocumentCopies */ + public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; + + /** Set Document Copies. + * Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies); + + /** Get Document Copies. + * Number of copies to be printed + */ + public int getDocumentCopies(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name EMailUser */ + public static final String COLUMNNAME_EMailUser = "EMailUser"; + + /** Set EMail User ID. + * User Name (ID) in the Mail System + */ + public void setEMailUser (String EMailUser); + + /** Get EMail User ID. + * User Name (ID) in the Mail System + */ + public String getEMailUser(); + + /** Column name EMailVerify */ + public static final String COLUMNNAME_EMailVerify = "EMailVerify"; + + /** Set Verification Info. + * Verification information of EMail Address + */ + public void setEMailVerify (String EMailVerify); + + /** Get Verification Info. + * Verification information of EMail Address + */ + public String getEMailVerify(); + + /** Column name EMailVerifyDate */ + public static final String COLUMNNAME_EMailVerifyDate = "EMailVerifyDate"; + + /** Set EMail Verify. + * Date Email was verified + */ + public void setEMailVerifyDate (Timestamp EMailVerifyDate); + + /** Get EMail Verify. + * Date Email was verified + */ + public Timestamp getEMailVerifyDate(); + + /** Column name Fax */ + public static final String COLUMNNAME_Fax = "Fax"; + + /** Set Fax. + * Facsimile number + */ + public void setFax (String Fax); + + /** Get Fax. + * Facsimile number + */ + public String getFax(); + + /** Column name FirstSale */ + public static final String COLUMNNAME_FirstSale = "FirstSale"; + + /** Set First Sale. + * Date of First Sale + */ + public void setFirstSale (Timestamp FirstSale); + + /** Get First Sale. + * Date of First Sale + */ + public Timestamp getFirstSale(); + + /** Column name FlatDiscount */ + public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; + + /** Set Flat Discount %. + * Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount); + + /** Get Flat Discount %. + * Flat discount percentage + */ + public BigDecimal getFlatDiscount(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name InvoiceRule */ + public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + + /** Set Invoice Rule. + * Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule); + + /** Get Invoice Rule. + * Frequency and method of invoicing + */ + public String getInvoiceRule(); + + /** Column name Invoice_PrintFormat_ID */ + public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; + + /** Set Invoice Print Format. + * Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID); + + /** Get Invoice Print Format. + * Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID(); + + /** Column name IsCustomer */ + public static final String COLUMNNAME_IsCustomer = "IsCustomer"; + + /** Set Customer. + * Indicates if this Business Partner is a Customer + */ + public void setIsCustomer (boolean IsCustomer); + + /** Get Customer. + * Indicates if this Business Partner is a Customer + */ + public boolean isCustomer(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsEmployee */ + public static final String COLUMNNAME_IsEmployee = "IsEmployee"; + + /** Set Employee. + * Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee); + + /** Get Employee. + * Indicates if this Business Partner is an employee + */ + public boolean isEmployee(); + + /** Column name IsOneTime */ + public static final String COLUMNNAME_IsOneTime = "IsOneTime"; + + /** Set One time transaction */ + public void setIsOneTime (boolean IsOneTime); + + /** Get One time transaction */ + public boolean isOneTime(); + + /** Column name IsProspect */ + public static final String COLUMNNAME_IsProspect = "IsProspect"; + + /** Set Prospect. + * Indicates this is a Prospect + */ + public void setIsProspect (boolean IsProspect); + + /** Get Prospect. + * Indicates this is a Prospect + */ + public boolean isProspect(); + + /** Column name IsSalesRep */ + public static final String COLUMNNAME_IsSalesRep = "IsSalesRep"; + + /** Set Sales Representative. + * Indicates if the business partner is a sales representative or company agent + */ + public void setIsSalesRep (boolean IsSalesRep); + + /** Get Sales Representative. + * Indicates if the business partner is a sales representative or company agent + */ + public boolean isSalesRep(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsTaxExempt */ + public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; + + /** Set Tax exempt. + * Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt); + + /** Get Tax exempt. + * Business partner is exempt from tax + */ + public boolean isTaxExempt(); + + /** Column name IsVendor */ + public static final String COLUMNNAME_IsVendor = "IsVendor"; + + /** Set Vendor. + * Indicates if this Business Partner is a Vendor + */ + public void setIsVendor (boolean IsVendor); + + /** Get Vendor. + * Indicates if this Business Partner is a Vendor + */ + public boolean isVendor(); + + /** Column name LDAPUser */ + public static final String COLUMNNAME_LDAPUser = "LDAPUser"; + + /** Set LDAP User Name. + * User Name used for authorization via LDAP (directory) services + */ + public void setLDAPUser (boolean LDAPUser); + + /** Get LDAP User Name. + * User Name used for authorization via LDAP (directory) services + */ + public boolean isLDAPUser(); + + /** Column name LastContact */ + public static final String COLUMNNAME_LastContact = "LastContact"; + + /** Set Last Contact. + * Date this individual was last contacted + */ + public void setLastContact (Timestamp LastContact); + + /** Get Last Contact. + * Date this individual was last contacted + */ + public Timestamp getLastContact(); + + /** Column name LastResult */ + public static final String COLUMNNAME_LastResult = "LastResult"; + + /** Set Last Result. + * Result of last contact + */ + public void setLastResult (String LastResult); + + /** Get Last Result. + * Result of last contact + */ + public String getLastResult(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception; + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name NAICS */ + public static final String COLUMNNAME_NAICS = "NAICS"; + + /** Set NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS); + + /** Get NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Name2 */ + public static final String COLUMNNAME_Name2 = "Name2"; + + /** Set Name 2. + * Additional Name + */ + public void setName2 (String Name2); + + /** Get Name 2. + * Additional Name + */ + public String getName2(); + + /** Column name NotificationType */ + public static final String COLUMNNAME_NotificationType = "NotificationType"; + + /** Set Notification Type. + * Type of Notifications + */ + public void setNotificationType (String NotificationType); + + /** Get Notification Type. + * Type of Notifications + */ + public String getNotificationType(); + + /** Column name NumberEmployees */ + public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; + + /** Set Employees. + * Number of employees + */ + public void setNumberEmployees (int NumberEmployees); + + /** Get Employees. + * Number of employees + */ + public int getNumberEmployees(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PO_DiscountSchema_ID */ + public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + + /** Set PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID); + + /** Get PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID(); + + /** Column name PO_PaymentTerm_ID */ + public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; + + /** Set PO Payment Term. + * Payment rules for a purchase order + */ + public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID); + + /** Get PO Payment Term. + * Payment rules for a purchase order + */ + public int getPO_PaymentTerm_ID(); + + /** Column name PO_PriceList_ID */ + public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; + + /** Set Purchase Pricelist. + * Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID); + + /** Get Purchase Pricelist. + * Price List used by this Business Partner + */ + public int getPO_PriceList_ID(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name PaymentRulePO */ + public static final String COLUMNNAME_PaymentRulePO = "PaymentRulePO"; + + /** Set Payment Rule. + * Purchase payment option + */ + public void setPaymentRulePO (String PaymentRulePO); + + /** Get Payment Rule. + * Purchase payment option + */ + public String getPaymentRulePO(); + + /** Column name Phone */ + public static final String COLUMNNAME_Phone = "Phone"; + + /** Set Phone. + * Identifies a telephone number + */ + public void setPhone (String Phone); + + /** Get Phone. + * Identifies a telephone number + */ + public String getPhone(); + + /** Column name Phone2 */ + public static final String COLUMNNAME_Phone2 = "Phone2"; + + /** Set 2nd Phone. + * Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2); + + /** Get 2nd Phone. + * Identifies an alternate telephone number. + */ + public String getPhone2(); + + /** Column name Postal */ + public static final String COLUMNNAME_Postal = "Postal"; + + /** Set ZIP. + * Postal code + */ + public void setPostal (String Postal); + + /** Get ZIP. + * Postal code + */ + public String getPostal(); + + /** Column name PotentialLifeTimeValue */ + public static final String COLUMNNAME_PotentialLifeTimeValue = "PotentialLifeTimeValue"; + + /** Set Potential Life Time Value. + * Total Revenue expected + */ + public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue); + + /** Get Potential Life Time Value. + * Total Revenue expected + */ + public BigDecimal getPotentialLifeTimeValue(); + + /** Column name Rating */ + public static final String COLUMNNAME_Rating = "Rating"; + + /** Set Rating. + * Classification or Importance + */ + public void setRating (String Rating); + + /** Get Rating. + * Classification or Importance + */ + public String getRating(); + + /** Column name ReferenceNo */ + public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; + + /** Set Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo); + + /** Get Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo(); + + /** Column name RegionName */ + public static final String COLUMNNAME_RegionName = "RegionName"; + + /** Set Region. + * Name of the Region + */ + public void setRegionName (String RegionName); + + /** Get Region. + * Name of the Region + */ + public String getRegionName(); + + /** Column name SOCreditStatus */ + public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; + + /** Set Credit Status. + * Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus); + + /** Get Credit Status. + * Business Partner Credit Status + */ + public String getSOCreditStatus(); + + /** Column name SO_CreditAvailable */ + public static final String COLUMNNAME_SO_CreditAvailable = "SO_CreditAvailable"; + + /** Set Credit Available. + * Available Credit based on Credit Limit (not Total Open Balance) and Credit Used + */ + public void setSO_CreditAvailable (BigDecimal SO_CreditAvailable); + + /** Get Credit Available. + * Available Credit based on Credit Limit (not Total Open Balance) and Credit Used + */ + public BigDecimal getSO_CreditAvailable(); + + /** Column name SO_CreditLimit */ + public static final String COLUMNNAME_SO_CreditLimit = "SO_CreditLimit"; + + /** Set Credit Limit. + * Total outstanding invoice amounts allowed + */ + public void setSO_CreditLimit (BigDecimal SO_CreditLimit); + + /** Get Credit Limit. + * Total outstanding invoice amounts allowed + */ + public BigDecimal getSO_CreditLimit(); + + /** Column name SO_CreditUsed */ + public static final String COLUMNNAME_SO_CreditUsed = "SO_CreditUsed"; + + /** Set Credit Used. + * Current open balance + */ + public void setSO_CreditUsed (BigDecimal SO_CreditUsed); + + /** Get Credit Used. + * Current open balance + */ + public BigDecimal getSO_CreditUsed(); + + /** Column name SO_Description */ + public static final String COLUMNNAME_SO_Description = "SO_Description"; + + /** Set Order Description. + * Description to be used on orders + */ + public void setSO_Description (String SO_Description); + + /** Get Order Description. + * Description to be used on orders + */ + public String getSO_Description(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name SalesVolume */ + public static final String COLUMNNAME_SalesVolume = "SalesVolume"; + + /** Set Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (BigDecimal SalesVolume); + + /** Get Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public BigDecimal getSalesVolume(); + + /** Column name SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name ShareOfCustomer */ + public static final String COLUMNNAME_ShareOfCustomer = "ShareOfCustomer"; + + /** Set Share. + * Share of Customer's business as a percentage + */ + public void setShareOfCustomer (int ShareOfCustomer); + + /** Get Share. + * Share of Customer's business as a percentage + */ + public int getShareOfCustomer(); + + /** Column name ShelfLifeMinPct */ + public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; + + /** Set Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct); + + /** Get Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); + + /** Column name TaxID */ + public static final String COLUMNNAME_TaxID = "TaxID"; + + /** Set Tax ID. + * Tax Identification + */ + public void setTaxID (String TaxID); + + /** Get Tax ID. + * Tax Identification + */ + public String getTaxID(); + + /** Column name Title */ + public static final String COLUMNNAME_Title = "Title"; + + /** Set Title. + * Name this entity is referred to as + */ + public void setTitle (String Title); + + /** Get Title. + * Name this entity is referred to as + */ + public String getTitle(); + + /** Column name TotalOpenBalance */ + public static final String COLUMNNAME_TotalOpenBalance = "TotalOpenBalance"; + + /** Set Open Balance. + * Total Open Balance Amount in primary Accounting Currency + */ + public void setTotalOpenBalance (BigDecimal TotalOpenBalance); + + /** Get Open Balance. + * Total Open Balance Amount in primary Accounting Currency + */ + public BigDecimal getTotalOpenBalance(); + + /** Column name URL */ + public static final String COLUMNNAME_URL = "URL"; + + /** Set URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL); + + /** Get URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public String getURL(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_RV_WarehousePrice.java b/base/src/org/compiere/model/I_RV_WarehousePrice.java new file mode 100644 index 0000000000..70ca7cc67b --- /dev/null +++ b/base/src/org/compiere/model/I_RV_WarehousePrice.java @@ -0,0 +1,313 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for RV_WarehousePrice + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.484 + */ + public interface I_RV_WarehousePrice +{ + + /** TableName=RV_WarehousePrice */ + public static final String Table_Name = "RV_WarehousePrice"; + + /** AD_Table_ID=639 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name IsInstanceAttribute */ + public static final String COLUMNNAME_IsInstanceAttribute = "IsInstanceAttribute"; + + /** Set Instance Attribute. + * The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public void setIsInstanceAttribute (boolean IsInstanceAttribute); + + /** Get Instance Attribute. + * The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public boolean isInstanceAttribute(); + + /** Column name M_PriceList_Version_ID */ + public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; + + /** Set Price List Version. + * Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID); + + /** Get Price List Version. + * Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID(); + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Margin */ + public static final String COLUMNNAME_Margin = "Margin"; + + /** Set Margin %. + * Margin for a product as a percentage + */ + public void setMargin (BigDecimal Margin); + + /** Get Margin %. + * Margin for a product as a percentage + */ + public BigDecimal getMargin(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PriceLimit */ + public static final String COLUMNNAME_PriceLimit = "PriceLimit"; + + /** Set Limit Price. + * Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit); + + /** Get Limit Price. + * Lowest price for a product + */ + public BigDecimal getPriceLimit(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name PriceStd */ + public static final String COLUMNNAME_PriceStd = "PriceStd"; + + /** Set Standard Price. + * Standard Price + */ + public void setPriceStd (BigDecimal PriceStd); + + /** Get Standard Price. + * Standard Price + */ + public BigDecimal getPriceStd(); + + /** Column name QtyAvailable */ + public static final String COLUMNNAME_QtyAvailable = "QtyAvailable"; + + /** Set Available Quantity. + * Available Quantity (On Hand - Reserved) + */ + public void setQtyAvailable (BigDecimal QtyAvailable); + + /** Get Available Quantity. + * Available Quantity (On Hand - Reserved) + */ + public BigDecimal getQtyAvailable(); + + /** Column name QtyOnHand */ + public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; + + /** Set On Hand Quantity. + * On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand); + + /** Get On Hand Quantity. + * On Hand Quantity + */ + public BigDecimal getQtyOnHand(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name QtyReserved */ + public static final String COLUMNNAME_QtyReserved = "QtyReserved"; + + /** Set Reserved Quantity. + * Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved); + + /** Get Reserved Quantity. + * Reserved Quantity + */ + public BigDecimal getQtyReserved(); + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name UOMSymbol */ + public static final String COLUMNNAME_UOMSymbol = "UOMSymbol"; + + /** Set Symbol. + * Symbol for a Unit of Measure + */ + public void setUOMSymbol (String UOMSymbol); + + /** Get Symbol. + * Symbol for a Unit of Measure + */ + public String getUOMSymbol(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); + + /** Column name WarehouseName */ + public static final String COLUMNNAME_WarehouseName = "WarehouseName"; + + /** Set Warehouse. + * Warehouse Name + */ + public void setWarehouseName (String WarehouseName); + + /** Get Warehouse. + * Warehouse Name + */ + public String getWarehouseName(); +} diff --git a/base/src/org/compiere/model/I_R_Category.java b/base/src/org/compiere/model/I_R_Category.java new file mode 100644 index 0000000000..9e60b854d2 --- /dev/null +++ b/base/src/org/compiere/model/I_R_Category.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_Category + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.515 + */ + public interface I_R_Category +{ + + /** TableName=R_Category */ + public static final String Table_Name = "R_Category"; + + /** AD_Table_ID=772 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_Category_ID */ + public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; + + /** Set Category. + * Request Category + */ + public void setR_Category_ID (int R_Category_ID); + + /** Get Category. + * Request Category + */ + public int getR_Category_ID(); +} diff --git a/base/src/org/compiere/model/I_R_CategoryUpdates.java b/base/src/org/compiere/model/I_R_CategoryUpdates.java new file mode 100644 index 0000000000..503d2af11e --- /dev/null +++ b/base/src/org/compiere/model/I_R_CategoryUpdates.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_CategoryUpdates + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.531 + */ + public interface I_R_CategoryUpdates +{ + + /** TableName=R_CategoryUpdates */ + public static final String Table_Name = "R_CategoryUpdates"; + + /** AD_Table_ID=785 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name R_Category_ID */ + public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; + + /** Set Category. + * Request Category + */ + public void setR_Category_ID (int R_Category_ID); + + /** Get Category. + * Request Category + */ + public int getR_Category_ID(); + + public I_R_Category getI_R_Category() throws Exception; +} diff --git a/base/src/org/compiere/model/I_R_ContactInterest.java b/base/src/org/compiere/model/I_R_ContactInterest.java new file mode 100644 index 0000000000..1d4fc9ed00 --- /dev/null +++ b/base/src/org/compiere/model/I_R_ContactInterest.java @@ -0,0 +1,116 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_ContactInterest + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.546 + */ + public interface I_R_ContactInterest +{ + + /** TableName=R_ContactInterest */ + public static final String Table_Name = "R_ContactInterest"; + + /** AD_Table_ID=528 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name OptOutDate */ + public static final String COLUMNNAME_OptOutDate = "OptOutDate"; + + /** Set Opt-out Date. + * Date the contact opted out + */ + public void setOptOutDate (Timestamp OptOutDate); + + /** Get Opt-out Date. + * Date the contact opted out + */ + public Timestamp getOptOutDate(); + + /** Column name R_InterestArea_ID */ + public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; + + /** Set Interest Area. + * Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID); + + /** Get Interest Area. + * Interest Area or Topic + */ + public int getR_InterestArea_ID(); + + public I_R_InterestArea getI_R_InterestArea() throws Exception; + + /** Column name SubscribeDate */ + public static final String COLUMNNAME_SubscribeDate = "SubscribeDate"; + + /** Set Subscribe Date. + * Date the contact actively subscribed + */ + public void setSubscribeDate (Timestamp SubscribeDate); + + /** Get Subscribe Date. + * Date the contact actively subscribed + */ + public Timestamp getSubscribeDate(); +} diff --git a/base/src/org/compiere/model/I_R_Group.java b/base/src/org/compiere/model/I_R_Group.java new file mode 100644 index 0000000000..73ef0589e5 --- /dev/null +++ b/base/src/org/compiere/model/I_R_Group.java @@ -0,0 +1,140 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_Group + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.562 + */ + public interface I_R_Group +{ + + /** TableName=R_Group */ + public static final String Table_Name = "R_Group"; + + /** AD_Table_ID=773 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_BOM_ID */ + public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; + + /** Set BOM. + * Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID); + + /** Get BOM. + * Bill of Material + */ + public int getM_BOM_ID(); + + /** Column name M_ChangeNotice_ID */ + public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; + + /** Set Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID); + + /** Get Change Notice. + * Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID(); + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_Group_ID */ + public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; + + /** Set Group. + * Request Group + */ + public void setR_Group_ID (int R_Group_ID); + + /** Get Group. + * Request Group + */ + public int getR_Group_ID(); +} diff --git a/base/src/org/compiere/model/I_R_GroupUpdates.java b/base/src/org/compiere/model/I_R_GroupUpdates.java new file mode 100644 index 0000000000..106cd29397 --- /dev/null +++ b/base/src/org/compiere/model/I_R_GroupUpdates.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_GroupUpdates + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.578 + */ + public interface I_R_GroupUpdates +{ + + /** TableName=R_GroupUpdates */ + public static final String Table_Name = "R_GroupUpdates"; + + /** AD_Table_ID=786 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name R_Group_ID */ + public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; + + /** Set Group. + * Request Group + */ + public void setR_Group_ID (int R_Group_ID); + + /** Get Group. + * Request Group + */ + public int getR_Group_ID(); + + public I_R_Group getI_R_Group() throws Exception; +} diff --git a/base/src/org/compiere/model/I_R_InterestArea.java b/base/src/org/compiere/model/I_R_InterestArea.java new file mode 100644 index 0000000000..546d8b9e5b --- /dev/null +++ b/base/src/org/compiere/model/I_R_InterestArea.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_InterestArea + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.578 + */ + public interface I_R_InterestArea +{ + + /** TableName=R_InterestArea */ + public static final String Table_Name = "R_InterestArea"; + + /** AD_Table_ID=530 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_InterestArea_ID */ + public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; + + /** Set Interest Area. + * Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID); + + /** Get Interest Area. + * Interest Area or Topic + */ + public int getR_InterestArea_ID(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_R_IssueKnown.java b/base/src/org/compiere/model/I_R_IssueKnown.java new file mode 100644 index 0000000000..00aac51a98 --- /dev/null +++ b/base/src/org/compiere/model/I_R_IssueKnown.java @@ -0,0 +1,231 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_IssueKnown + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.625 + */ + public interface I_R_IssueKnown +{ + + /** TableName=R_IssueKnown */ + public static final String Table_Name = "R_IssueKnown"; + + /** AD_Table_ID=839 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IssueStatus */ + public static final String COLUMNNAME_IssueStatus = "IssueStatus"; + + /** Set Issue Status. + * Current Status of the Issue + */ + public void setIssueStatus (String IssueStatus); + + /** Get Issue Status. + * Current Status of the Issue + */ + public String getIssueStatus(); + + /** Column name IssueSummary */ + public static final String COLUMNNAME_IssueSummary = "IssueSummary"; + + /** Set Issue Summary. + * Issue Summary + */ + public void setIssueSummary (String IssueSummary); + + /** Get Issue Summary. + * Issue Summary + */ + public String getIssueSummary(); + + /** Column name LineNo */ + public static final String COLUMNNAME_LineNo = "LineNo"; + + /** Set Line. + * Line No + */ + public void setLineNo (int LineNo); + + /** Get Line. + * Line No + */ + public int getLineNo(); + + /** Column name LoggerName */ + public static final String COLUMNNAME_LoggerName = "LoggerName"; + + /** Set Logger. + * Logger Name + */ + public void setLoggerName (String LoggerName); + + /** Get Logger. + * Logger Name + */ + public String getLoggerName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name R_IssueKnown_ID */ + public static final String COLUMNNAME_R_IssueKnown_ID = "R_IssueKnown_ID"; + + /** Set Known Issue. + * Known Issue + */ + public void setR_IssueKnown_ID (int R_IssueKnown_ID); + + /** Get Known Issue. + * Known Issue + */ + public int getR_IssueKnown_ID(); + + /** Column name R_IssueRecommendation_ID */ + public static final String COLUMNNAME_R_IssueRecommendation_ID = "R_IssueRecommendation_ID"; + + /** Set Issue Recommendation. + * Recommendations how to fix an Issue + */ + public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID); + + /** Get Issue Recommendation. + * Recommendations how to fix an Issue + */ + public int getR_IssueRecommendation_ID(); + + public I_R_IssueRecommendation getI_R_IssueRecommendation() throws Exception; + + /** Column name R_IssueStatus_ID */ + public static final String COLUMNNAME_R_IssueStatus_ID = "R_IssueStatus_ID"; + + /** Set Issue Status. + * Status of an Issue + */ + public void setR_IssueStatus_ID (int R_IssueStatus_ID); + + /** Get Issue Status. + * Status of an Issue + */ + public int getR_IssueStatus_ID(); + + public I_R_IssueStatus getI_R_IssueStatus() throws Exception; + + /** Column name R_Request_ID */ + public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; + + /** Set Request. + * Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID); + + /** Get Request. + * Request from a Business Partner or Prospect + */ + public int getR_Request_ID(); + + public I_R_Request getI_R_Request() throws Exception; + + /** Column name ReleaseNo */ + public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + + /** Set Release No. + * Internal Release Number + */ + public void setReleaseNo (String ReleaseNo); + + /** Get Release No. + * Internal Release Number + */ + public String getReleaseNo(); + + /** Column name SourceClassName */ + public static final String COLUMNNAME_SourceClassName = "SourceClassName"; + + /** Set Source Class. + * Source Class Name + */ + public void setSourceClassName (String SourceClassName); + + /** Get Source Class. + * Source Class Name + */ + public String getSourceClassName(); + + /** Column name SourceMethodName */ + public static final String COLUMNNAME_SourceMethodName = "SourceMethodName"; + + /** Set Source Method. + * Source Method Name + */ + public void setSourceMethodName (String SourceMethodName); + + /** Get Source Method. + * Source Method Name + */ + public String getSourceMethodName(); +} diff --git a/base/src/org/compiere/model/I_R_IssueProject.java b/base/src/org/compiere/model/I_R_IssueProject.java new file mode 100644 index 0000000000..f7eb8d5a94 --- /dev/null +++ b/base/src/org/compiere/model/I_R_IssueProject.java @@ -0,0 +1,164 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_IssueProject + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.64 + */ + public interface I_R_IssueProject +{ + + /** TableName=R_IssueProject */ + public static final String Table_Name = "R_IssueProject"; + + /** AD_Table_ID=842 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ProfileInfo */ + public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; + + /** Set Profile. + * Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo); + + /** Get Profile. + * Information to help profiling the system for solving support issues + */ + public String getProfileInfo(); + + /** Column name R_IssueProject_ID */ + public static final String COLUMNNAME_R_IssueProject_ID = "R_IssueProject_ID"; + + /** Set Issue Project. + * Implementation Projects + */ + public void setR_IssueProject_ID (int R_IssueProject_ID); + + /** Get Issue Project. + * Implementation Projects + */ + public int getR_IssueProject_ID(); + + /** Column name StatisticsInfo */ + public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; + + /** Set Statistics. + * Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo); + + /** Get Statistics. + * Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo(); + + /** Column name SystemStatus */ + public static final String COLUMNNAME_SystemStatus = "SystemStatus"; + + /** Set System Status. + * Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus); + + /** Get System Status. + * Status of the system - Support priority depends on system status + */ + public String getSystemStatus(); +} diff --git a/base/src/org/compiere/model/I_R_IssueRecommendation.java b/base/src/org/compiere/model/I_R_IssueRecommendation.java new file mode 100644 index 0000000000..533f3d726c --- /dev/null +++ b/base/src/org/compiere/model/I_R_IssueRecommendation.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_IssueRecommendation + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.687 + */ + public interface I_R_IssueRecommendation +{ + + /** TableName=R_IssueRecommendation */ + public static final String Table_Name = "R_IssueRecommendation"; + + /** AD_Table_ID=837 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_IssueRecommendation_ID */ + public static final String COLUMNNAME_R_IssueRecommendation_ID = "R_IssueRecommendation_ID"; + + /** Set Issue Recommendation. + * Recommendations how to fix an Issue + */ + public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID); + + /** Get Issue Recommendation. + * Recommendations how to fix an Issue + */ + public int getR_IssueRecommendation_ID(); +} diff --git a/base/src/org/compiere/model/I_R_IssueStatus.java b/base/src/org/compiere/model/I_R_IssueStatus.java new file mode 100644 index 0000000000..bd1cefb0f0 --- /dev/null +++ b/base/src/org/compiere/model/I_R_IssueStatus.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_IssueStatus + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.703 + */ + public interface I_R_IssueStatus +{ + + /** TableName=R_IssueStatus */ + public static final String Table_Name = "R_IssueStatus"; + + /** AD_Table_ID=838 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_IssueStatus_ID */ + public static final String COLUMNNAME_R_IssueStatus_ID = "R_IssueStatus_ID"; + + /** Set Issue Status. + * Status of an Issue + */ + public void setR_IssueStatus_ID (int R_IssueStatus_ID); + + /** Get Issue Status. + * Status of an Issue + */ + public int getR_IssueStatus_ID(); +} diff --git a/base/src/org/compiere/model/I_R_IssueSystem.java b/base/src/org/compiere/model/I_R_IssueSystem.java new file mode 100644 index 0000000000..103bb2a685 --- /dev/null +++ b/base/src/org/compiere/model/I_R_IssueSystem.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_IssueSystem + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.718 + */ + public interface I_R_IssueSystem +{ + + /** TableName=R_IssueSystem */ + public static final String Table_Name = "R_IssueSystem"; + + /** AD_Table_ID=843 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name DBAddress */ + public static final String COLUMNNAME_DBAddress = "DBAddress"; + + /** Set DB Address. + * JDBC URL of the database server + */ + public void setDBAddress (String DBAddress); + + /** Get DB Address. + * JDBC URL of the database server + */ + public String getDBAddress(); + + /** Column name ProfileInfo */ + public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; + + /** Set Profile. + * Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo); + + /** Get Profile. + * Information to help profiling the system for solving support issues + */ + public String getProfileInfo(); + + /** Column name R_IssueSystem_ID */ + public static final String COLUMNNAME_R_IssueSystem_ID = "R_IssueSystem_ID"; + + /** Set Issue System. + * System creating the issue + */ + public void setR_IssueSystem_ID (int R_IssueSystem_ID); + + /** Get Issue System. + * System creating the issue + */ + public int getR_IssueSystem_ID(); + + /** Column name StatisticsInfo */ + public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; + + /** Set Statistics. + * Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo); + + /** Get Statistics. + * Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo(); + + /** Column name SystemStatus */ + public static final String COLUMNNAME_SystemStatus = "SystemStatus"; + + /** Set System Status. + * Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus); + + /** Get System Status. + * Status of the system - Support priority depends on system status + */ + public String getSystemStatus(); +} diff --git a/base/src/org/compiere/model/I_R_IssueUser.java b/base/src/org/compiere/model/I_R_IssueUser.java new file mode 100644 index 0000000000..3bb44a6a6a --- /dev/null +++ b/base/src/org/compiere/model/I_R_IssueUser.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_IssueUser + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.734 + */ + public interface I_R_IssueUser +{ + + /** TableName=R_IssueUser */ + public static final String Table_Name = "R_IssueUser"; + + /** AD_Table_ID=841 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name R_IssueUser_ID */ + public static final String COLUMNNAME_R_IssueUser_ID = "R_IssueUser_ID"; + + /** Set IssueUser. + * User who reported issues + */ + public void setR_IssueUser_ID (int R_IssueUser_ID); + + /** Get IssueUser. + * User who reported issues + */ + public int getR_IssueUser_ID(); + + /** Column name UserName */ + public static final String COLUMNNAME_UserName = "UserName"; + + /** Set Registered EMail. + * Email of the responsible for the System + */ + public void setUserName (String UserName); + + /** Get Registered EMail. + * Email of the responsible for the System + */ + public String getUserName(); +} diff --git a/base/src/org/compiere/model/I_R_MailText.java b/base/src/org/compiere/model/I_R_MailText.java new file mode 100644 index 0000000000..19475086ae --- /dev/null +++ b/base/src/org/compiere/model/I_R_MailText.java @@ -0,0 +1,151 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_MailText + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.75 + */ + public interface I_R_MailText +{ + + /** TableName=R_MailText */ + public static final String Table_Name = "R_MailText"; + + /** AD_Table_ID=416 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name IsHtml */ + public static final String COLUMNNAME_IsHtml = "IsHtml"; + + /** Set HTML. + * Text has HTML tags + */ + public void setIsHtml (boolean IsHtml); + + /** Get HTML. + * Text has HTML tags + */ + public boolean isHtml(); + + /** Column name MailHeader */ + public static final String COLUMNNAME_MailHeader = "MailHeader"; + + /** Set Subject. + * Mail Header (Subject) + */ + public void setMailHeader (String MailHeader); + + /** Get Subject. + * Mail Header (Subject) + */ + public String getMailHeader(); + + /** Column name MailText */ + public static final String COLUMNNAME_MailText = "MailText"; + + /** Set Mail Text. + * Text used for Mail message + */ + public void setMailText (String MailText); + + /** Get Mail Text. + * Text used for Mail message + */ + public String getMailText(); + + /** Column name MailText2 */ + public static final String COLUMNNAME_MailText2 = "MailText2"; + + /** Set Mail Text 2. + * Optional second text part used for Mail message + */ + public void setMailText2 (String MailText2); + + /** Get Mail Text 2. + * Optional second text part used for Mail message + */ + public String getMailText2(); + + /** Column name MailText3 */ + public static final String COLUMNNAME_MailText3 = "MailText3"; + + /** Set Mail Text 3. + * Optional third text part used for Mail message + */ + public void setMailText3 (String MailText3); + + /** Get Mail Text 3. + * Optional third text part used for Mail message + */ + public String getMailText3(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); +} diff --git a/base/src/org/compiere/model/I_R_Request.java b/base/src/org/compiere/model/I_R_Request.java new file mode 100644 index 0000000000..a8bdc14d9f --- /dev/null +++ b/base/src/org/compiere/model/I_R_Request.java @@ -0,0 +1,827 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_Request + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.765 + */ + public interface I_R_Request +{ + + /** TableName=R_Request */ + public static final String Table_Name = "R_Request"; + + /** AD_Table_ID=417 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getI_AD_Table() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_InvoiceRequest_ID */ + public static final String COLUMNNAME_C_InvoiceRequest_ID = "C_InvoiceRequest_ID"; + + /** Set Request Invoice. + * The generated invoice for this request + */ + public void setC_InvoiceRequest_ID (int C_InvoiceRequest_ID); + + /** Get Request Invoice. + * The generated invoice for this request + */ + public int getC_InvoiceRequest_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name CloseDate */ + public static final String COLUMNNAME_CloseDate = "CloseDate"; + + /** Set Close Date. + * Close Date + */ + public void setCloseDate (Timestamp CloseDate); + + /** Get Close Date. + * Close Date + */ + public Timestamp getCloseDate(); + + /** Column name ConfidentialType */ + public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + + /** Set Confidentiality. + * Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType); + + /** Get Confidentiality. + * Type of Confidentiality + */ + public String getConfidentialType(); + + /** Column name ConfidentialTypeEntry */ + public static final String COLUMNNAME_ConfidentialTypeEntry = "ConfidentialTypeEntry"; + + /** Set Entry Confidentiality. + * Confidentiality of the individual entry + */ + public void setConfidentialTypeEntry (String ConfidentialTypeEntry); + + /** Get Entry Confidentiality. + * Confidentiality of the individual entry + */ + public String getConfidentialTypeEntry(); + + /** Column name DateCompletePlan */ + public static final String COLUMNNAME_DateCompletePlan = "DateCompletePlan"; + + /** Set Complete Plan. + * Planned Completion Date + */ + public void setDateCompletePlan (Timestamp DateCompletePlan); + + /** Get Complete Plan. + * Planned Completion Date + */ + public Timestamp getDateCompletePlan(); + + /** Column name DateLastAction */ + public static final String COLUMNNAME_DateLastAction = "DateLastAction"; + + /** Set Date last action. + * Date this request was last acted on + */ + public void setDateLastAction (Timestamp DateLastAction); + + /** Get Date last action. + * Date this request was last acted on + */ + public Timestamp getDateLastAction(); + + /** Column name DateLastAlert */ + public static final String COLUMNNAME_DateLastAlert = "DateLastAlert"; + + /** Set Last Alert. + * Date when last alert were sent + */ + public void setDateLastAlert (Timestamp DateLastAlert); + + /** Get Last Alert. + * Date when last alert were sent + */ + public Timestamp getDateLastAlert(); + + /** Column name DateNextAction */ + public static final String COLUMNNAME_DateNextAction = "DateNextAction"; + + /** Set Date next action. + * Date that this request should be acted on + */ + public void setDateNextAction (Timestamp DateNextAction); + + /** Get Date next action. + * Date that this request should be acted on + */ + public Timestamp getDateNextAction(); + + /** Column name DateStartPlan */ + public static final String COLUMNNAME_DateStartPlan = "DateStartPlan"; + + /** Set Start Plan. + * Planned Start Date + */ + public void setDateStartPlan (Timestamp DateStartPlan); + + /** Get Start Plan. + * Planned Start Date + */ + public Timestamp getDateStartPlan(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name DueType */ + public static final String COLUMNNAME_DueType = "DueType"; + + /** Set Due type. + * Status of the next action for this Request + */ + public void setDueType (String DueType); + + /** Get Due type. + * Status of the next action for this Request + */ + public String getDueType(); + + /** Column name EndTime */ + public static final String COLUMNNAME_EndTime = "EndTime"; + + /** Set End Time. + * End of the time span + */ + public void setEndTime (Timestamp EndTime); + + /** Get End Time. + * End of the time span + */ + public Timestamp getEndTime(); + + /** Column name IsEscalated */ + public static final String COLUMNNAME_IsEscalated = "IsEscalated"; + + /** Set Escalated. + * This request has been escalated + */ + public void setIsEscalated (boolean IsEscalated); + + /** Get Escalated. + * This request has been escalated + */ + public boolean isEscalated(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name LastResult */ + public static final String COLUMNNAME_LastResult = "LastResult"; + + /** Set Last Result. + * Result of last contact + */ + public void setLastResult (String LastResult); + + /** Get Last Result. + * Result of last contact + */ + public String getLastResult(); + + /** Column name M_ChangeRequest_ID */ + public static final String COLUMNNAME_M_ChangeRequest_ID = "M_ChangeRequest_ID"; + + /** Set Change Request. + * BOM (Engineering) Change Request + */ + public void setM_ChangeRequest_ID (int M_ChangeRequest_ID); + + /** Get Change Request. + * BOM (Engineering) Change Request + */ + public int getM_ChangeRequest_ID(); + + /** Column name M_FixChangeNotice_ID */ + public static final String COLUMNNAME_M_FixChangeNotice_ID = "M_FixChangeNotice_ID"; + + /** Set Fixed in. + * Fixed in Change Notice + */ + public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID); + + /** Get Fixed in. + * Fixed in Change Notice + */ + public int getM_FixChangeNotice_ID(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_ProductSpent_ID */ + public static final String COLUMNNAME_M_ProductSpent_ID = "M_ProductSpent_ID"; + + /** Set Product Used. + * Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID); + + /** Get Product Used. + * Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + /** Column name NextAction */ + public static final String COLUMNNAME_NextAction = "NextAction"; + + /** Set Next action. + * Next Action to be taken + */ + public void setNextAction (String NextAction); + + /** Get Next action. + * Next Action to be taken + */ + public String getNextAction(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (String Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public String getPriority(); + + /** Column name PriorityUser */ + public static final String COLUMNNAME_PriorityUser = "PriorityUser"; + + /** Set User Importance. + * Priority of the issue for the User + */ + public void setPriorityUser (String PriorityUser); + + /** Get User Importance. + * Priority of the issue for the User + */ + public String getPriorityUser(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name QtyPlan */ + public static final String COLUMNNAME_QtyPlan = "QtyPlan"; + + /** Set Quantity Plan. + * Planned Quantity + */ + public void setQtyPlan (BigDecimal QtyPlan); + + /** Get Quantity Plan. + * Planned Quantity + */ + public BigDecimal getQtyPlan(); + + /** Column name QtySpent */ + public static final String COLUMNNAME_QtySpent = "QtySpent"; + + /** Set Quantity Used. + * Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent); + + /** Get Quantity Used. + * Quantity used for this event + */ + public BigDecimal getQtySpent(); + + /** Column name R_Category_ID */ + public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; + + /** Set Category. + * Request Category + */ + public void setR_Category_ID (int R_Category_ID); + + /** Get Category. + * Request Category + */ + public int getR_Category_ID(); + + public I_R_Category getI_R_Category() throws Exception; + + /** Column name R_Group_ID */ + public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; + + /** Set Group. + * Request Group + */ + public void setR_Group_ID (int R_Group_ID); + + /** Get Group. + * Request Group + */ + public int getR_Group_ID(); + + public I_R_Group getI_R_Group() throws Exception; + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); + + public I_R_MailText getI_R_MailText() throws Exception; + + /** Column name R_RequestRelated_ID */ + public static final String COLUMNNAME_R_RequestRelated_ID = "R_RequestRelated_ID"; + + /** Set Related Request. + * Related Request (Master Issue, ..) + */ + public void setR_RequestRelated_ID (int R_RequestRelated_ID); + + /** Get Related Request. + * Related Request (Master Issue, ..) + */ + public int getR_RequestRelated_ID(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; + + /** Column name R_Request_ID */ + public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; + + /** Set Request. + * Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID); + + /** Get Request. + * Request from a Business Partner or Prospect + */ + public int getR_Request_ID(); + + /** Column name R_Resolution_ID */ + public static final String COLUMNNAME_R_Resolution_ID = "R_Resolution_ID"; + + /** Set Resolution. + * Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID); + + /** Get Resolution. + * Request Resolution + */ + public int getR_Resolution_ID(); + + public I_R_Resolution getI_R_Resolution() throws Exception; + + /** Column name R_StandardResponse_ID */ + public static final String COLUMNNAME_R_StandardResponse_ID = "R_StandardResponse_ID"; + + /** Set Standard Response. + * Request Standard Response + */ + public void setR_StandardResponse_ID (int R_StandardResponse_ID); + + /** Get Standard Response. + * Request Standard Response + */ + public int getR_StandardResponse_ID(); + + public I_R_StandardResponse getI_R_StandardResponse() throws Exception; + + /** Column name R_Status_ID */ + public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; + + /** Set Status. + * Request Status + */ + public void setR_Status_ID (int R_Status_ID); + + /** Get Status. + * Request Status + */ + public int getR_Status_ID(); + + public I_R_Status getI_R_Status() throws Exception; + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name RequestAmt */ + public static final String COLUMNNAME_RequestAmt = "RequestAmt"; + + /** Set Request Amount. + * Amount associated with this request + */ + public void setRequestAmt (BigDecimal RequestAmt); + + /** Get Request Amount. + * Amount associated with this request + */ + public BigDecimal getRequestAmt(); + + /** Column name Result */ + public static final String COLUMNNAME_Result = "Result"; + + /** Set Result. + * Result of the action taken + */ + public void setResult (String Result); + + /** Get Result. + * Result of the action taken + */ + public String getResult(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); + + /** Column name StartTime */ + public static final String COLUMNNAME_StartTime = "StartTime"; + + /** Set Start Time. + * Time started + */ + public void setStartTime (Timestamp StartTime); + + /** Get Start Time. + * Time started + */ + public Timestamp getStartTime(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TaskStatus */ + public static final String COLUMNNAME_TaskStatus = "TaskStatus"; + + /** Set Task Status. + * Status of the Task + */ + public void setTaskStatus (String TaskStatus); + + /** Get Task Status. + * Status of the Task + */ + public String getTaskStatus(); +} diff --git a/base/src/org/compiere/model/I_R_RequestAction.java b/base/src/org/compiere/model/I_R_RequestAction.java new file mode 100644 index 0000000000..f5d7994833 --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestAction.java @@ -0,0 +1,576 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestAction + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.859 + */ + public interface I_R_RequestAction +{ + + /** TableName=R_RequestAction */ + public static final String Table_Name = "R_RequestAction"; + + /** AD_Table_ID=418 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + public I_AD_Role getI_AD_Role() throws Exception; + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name A_Asset_ID */ + public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + + /** Set Asset. + * Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID); + + /** Get Asset. + * Asset used internally or by customers + */ + public int getA_Asset_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Order_ID */ + public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; + + /** Set Order. + * Order + */ + public void setC_Order_ID (int C_Order_ID); + + /** Get Order. + * Order + */ + public int getC_Order_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name ConfidentialType */ + public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + + /** Set Confidentiality. + * Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType); + + /** Get Confidentiality. + * Type of Confidentiality + */ + public String getConfidentialType(); + + /** Column name DateCompletePlan */ + public static final String COLUMNNAME_DateCompletePlan = "DateCompletePlan"; + + /** Set Complete Plan. + * Planned Completion Date + */ + public void setDateCompletePlan (Timestamp DateCompletePlan); + + /** Get Complete Plan. + * Planned Completion Date + */ + public Timestamp getDateCompletePlan(); + + /** Column name DateNextAction */ + public static final String COLUMNNAME_DateNextAction = "DateNextAction"; + + /** Set Date next action. + * Date that this request should be acted on + */ + public void setDateNextAction (Timestamp DateNextAction); + + /** Get Date next action. + * Date that this request should be acted on + */ + public Timestamp getDateNextAction(); + + /** Column name DateStartPlan */ + public static final String COLUMNNAME_DateStartPlan = "DateStartPlan"; + + /** Set Start Plan. + * Planned Start Date + */ + public void setDateStartPlan (Timestamp DateStartPlan); + + /** Get Start Plan. + * Planned Start Date + */ + public Timestamp getDateStartPlan(); + + /** Column name EndDate */ + public static final String COLUMNNAME_EndDate = "EndDate"; + + /** Set End Date. + * Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate); + + /** Get End Date. + * Last effective date (inclusive) + */ + public Timestamp getEndDate(); + + /** Column name IsEscalated */ + public static final String COLUMNNAME_IsEscalated = "IsEscalated"; + + /** Set Escalated. + * This request has been escalated + */ + public void setIsEscalated (String IsEscalated); + + /** Get Escalated. + * This request has been escalated + */ + public String getIsEscalated(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (String IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public String getIsInvoiced(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (String IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public String getIsSelfService(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_ProductSpent_ID */ + public static final String COLUMNNAME_M_ProductSpent_ID = "M_ProductSpent_ID"; + + /** Set Product Used. + * Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID); + + /** Get Product Used. + * Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + public I_M_RMA getI_M_RMA() throws Exception; + + /** Column name NullColumns */ + public static final String COLUMNNAME_NullColumns = "NullColumns"; + + /** Set Null Columns. + * Columns with NULL value + */ + public void setNullColumns (String NullColumns); + + /** Get Null Columns. + * Columns with NULL value + */ + public String getNullColumns(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (String Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public String getPriority(); + + /** Column name PriorityUser */ + public static final String COLUMNNAME_PriorityUser = "PriorityUser"; + + /** Set User Importance. + * Priority of the issue for the User + */ + public void setPriorityUser (String PriorityUser); + + /** Get User Importance. + * Priority of the issue for the User + */ + public String getPriorityUser(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name QtyPlan */ + public static final String COLUMNNAME_QtyPlan = "QtyPlan"; + + /** Set Quantity Plan. + * Planned Quantity + */ + public void setQtyPlan (BigDecimal QtyPlan); + + /** Get Quantity Plan. + * Planned Quantity + */ + public BigDecimal getQtyPlan(); + + /** Column name QtySpent */ + public static final String COLUMNNAME_QtySpent = "QtySpent"; + + /** Set Quantity Used. + * Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent); + + /** Get Quantity Used. + * Quantity used for this event + */ + public BigDecimal getQtySpent(); + + /** Column name R_Category_ID */ + public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; + + /** Set Category. + * Request Category + */ + public void setR_Category_ID (int R_Category_ID); + + /** Get Category. + * Request Category + */ + public int getR_Category_ID(); + + public I_R_Category getI_R_Category() throws Exception; + + /** Column name R_Group_ID */ + public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; + + /** Set Group. + * Request Group + */ + public void setR_Group_ID (int R_Group_ID); + + /** Get Group. + * Request Group + */ + public int getR_Group_ID(); + + public I_R_Group getI_R_Group() throws Exception; + + /** Column name R_RequestAction_ID */ + public static final String COLUMNNAME_R_RequestAction_ID = "R_RequestAction_ID"; + + /** Set Request History. + * Request has been changed + */ + public void setR_RequestAction_ID (int R_RequestAction_ID); + + /** Get Request History. + * Request has been changed + */ + public int getR_RequestAction_ID(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; + + /** Column name R_Request_ID */ + public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; + + /** Set Request. + * Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID); + + /** Get Request. + * Request from a Business Partner or Prospect + */ + public int getR_Request_ID(); + + public I_R_Request getI_R_Request() throws Exception; + + /** Column name R_Resolution_ID */ + public static final String COLUMNNAME_R_Resolution_ID = "R_Resolution_ID"; + + /** Set Resolution. + * Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID); + + /** Get Resolution. + * Request Resolution + */ + public int getR_Resolution_ID(); + + public I_R_Resolution getI_R_Resolution() throws Exception; + + /** Column name R_Status_ID */ + public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; + + /** Set Status. + * Request Status + */ + public void setR_Status_ID (int R_Status_ID); + + /** Get Status. + * Request Status + */ + public int getR_Status_ID(); + + public I_R_Status getI_R_Status() throws Exception; + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TaskStatus */ + public static final String COLUMNNAME_TaskStatus = "TaskStatus"; + + /** Set Task Status. + * Status of the Task + */ + public void setTaskStatus (String TaskStatus); + + /** Get Task Status. + * Status of the Task + */ + public String getTaskStatus(); +} diff --git a/base/src/org/compiere/model/I_R_RequestProcessor.java b/base/src/org/compiere/model/I_R_RequestProcessor.java new file mode 100644 index 0000000000..50c0fe733e --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestProcessor.java @@ -0,0 +1,253 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestProcessor + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.921 + */ + public interface I_R_RequestProcessor +{ + + /** TableName=R_RequestProcessor */ + public static final String Table_Name = "R_RequestProcessor"; + + /** AD_Table_ID=420 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name DateLastRun */ + public static final String COLUMNNAME_DateLastRun = "DateLastRun"; + + /** Set Date last run. + * Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun); + + /** Get Date last run. + * Date the process was last run. + */ + public Timestamp getDateLastRun(); + + /** Column name DateNextRun */ + public static final String COLUMNNAME_DateNextRun = "DateNextRun"; + + /** Set Date next run. + * Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun); + + /** Get Date next run. + * Date the process will run next + */ + public Timestamp getDateNextRun(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Frequency */ + public static final String COLUMNNAME_Frequency = "Frequency"; + + /** Set Frequency. + * Frequency of events + */ + public void setFrequency (int Frequency); + + /** Get Frequency. + * Frequency of events + */ + public int getFrequency(); + + /** Column name FrequencyType */ + public static final String COLUMNNAME_FrequencyType = "FrequencyType"; + + /** Set Frequency Type. + * Frequency of event + */ + public void setFrequencyType (String FrequencyType); + + /** Get Frequency Type. + * Frequency of event + */ + public String getFrequencyType(); + + /** Column name InactivityAlertDays */ + public static final String COLUMNNAME_InactivityAlertDays = "InactivityAlertDays"; + + /** Set Inactivity Alert Days. + * Send Alert when there is no activity after days (0= no alert) + */ + public void setInactivityAlertDays (int InactivityAlertDays); + + /** Get Inactivity Alert Days. + * Send Alert when there is no activity after days (0= no alert) + */ + public int getInactivityAlertDays(); + + /** Column name KeepLogDays */ + public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + + /** Set Days to keep Log. + * Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays); + + /** Get Days to keep Log. + * Number of days to keep the log entries + */ + public int getKeepLogDays(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OverdueAlertDays */ + public static final String COLUMNNAME_OverdueAlertDays = "OverdueAlertDays"; + + /** Set Alert after Days Due. + * Send email alert after number of days due (0=no alerts) + */ + public void setOverdueAlertDays (int OverdueAlertDays); + + /** Get Alert after Days Due. + * Send email alert after number of days due (0=no alerts) + */ + public int getOverdueAlertDays(); + + /** Column name OverdueAssignDays */ + public static final String COLUMNNAME_OverdueAssignDays = "OverdueAssignDays"; + + /** Set Escalate after Days Due. + * Escalation to superior after number of due days (0 = no) + */ + public void setOverdueAssignDays (int OverdueAssignDays); + + /** Get Escalate after Days Due. + * Escalation to superior after number of due days (0 = no) + */ + public int getOverdueAssignDays(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name R_RequestProcessor_ID */ + public static final String COLUMNNAME_R_RequestProcessor_ID = "R_RequestProcessor_ID"; + + /** Set Request Processor. + * Processor for Requests + */ + public void setR_RequestProcessor_ID (int R_RequestProcessor_ID); + + /** Get Request Processor. + * Processor for Requests + */ + public int getR_RequestProcessor_ID(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; + + /** Column name RemindDays */ + public static final String COLUMNNAME_RemindDays = "RemindDays"; + + /** Set Reminder Days. + * Days between sending Reminder Emails for a due or inactive Document + */ + public void setRemindDays (int RemindDays); + + /** Get Reminder Days. + * Days between sending Reminder Emails for a due or inactive Document + */ + public int getRemindDays(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); +} diff --git a/base/src/org/compiere/model/I_R_RequestProcessorLog.java b/base/src/org/compiere/model/I_R_RequestProcessorLog.java new file mode 100644 index 0000000000..3be6bf9fbe --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestProcessorLog.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestProcessorLog + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.953 + */ + public interface I_R_RequestProcessorLog +{ + + /** TableName=R_RequestProcessorLog */ + public static final String Table_Name = "R_RequestProcessorLog"; + + /** AD_Table_ID=659 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (byte[] BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public byte[] getBinaryData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsError */ + public static final String COLUMNNAME_IsError = "IsError"; + + /** Set Error. + * An Error occured in the execution + */ + public void setIsError (boolean IsError); + + /** Get Error. + * An Error occured in the execution + */ + public boolean isError(); + + /** Column name R_RequestProcessorLog_ID */ + public static final String COLUMNNAME_R_RequestProcessorLog_ID = "R_RequestProcessorLog_ID"; + + /** Set Request Processor Log. + * Result of the execution of the Request Processor + */ + public void setR_RequestProcessorLog_ID (int R_RequestProcessorLog_ID); + + /** Get Request Processor Log. + * Result of the execution of the Request Processor + */ + public int getR_RequestProcessorLog_ID(); + + /** Column name R_RequestProcessor_ID */ + public static final String COLUMNNAME_R_RequestProcessor_ID = "R_RequestProcessor_ID"; + + /** Set Request Processor. + * Processor for Requests + */ + public void setR_RequestProcessor_ID (int R_RequestProcessor_ID); + + /** Get Request Processor. + * Processor for Requests + */ + public int getR_RequestProcessor_ID(); + + public I_R_RequestProcessor getI_R_RequestProcessor() throws Exception; + + /** Column name Reference */ + public static final String COLUMNNAME_Reference = "Reference"; + + /** Set Reference. + * Reference for this record + */ + public void setReference (String Reference); + + /** Get Reference. + * Reference for this record + */ + public String getReference(); + + /** Column name Summary */ + public static final String COLUMNNAME_Summary = "Summary"; + + /** Set Summary. + * Textual summary of this request + */ + public void setSummary (String Summary); + + /** Get Summary. + * Textual summary of this request + */ + public String getSummary(); + + /** Column name TextMsg */ + public static final String COLUMNNAME_TextMsg = "TextMsg"; + + /** Set Text Message. + * Text Message + */ + public void setTextMsg (String TextMsg); + + /** Get Text Message. + * Text Message + */ + public String getTextMsg(); +} diff --git a/base/src/org/compiere/model/I_R_RequestProcessor_Route.java b/base/src/org/compiere/model/I_R_RequestProcessor_Route.java new file mode 100644 index 0000000000..4b4abe72c3 --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestProcessor_Route.java @@ -0,0 +1,146 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestProcessor_Route + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.968 + */ + public interface I_R_RequestProcessor_Route +{ + + /** TableName=R_RequestProcessor_Route */ + public static final String Table_Name = "R_RequestProcessor_Route"; + + /** AD_Table_ID=474 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name Keyword */ + public static final String COLUMNNAME_Keyword = "Keyword"; + + /** Set Keyword. + * Case insensitive keyword + */ + public void setKeyword (String Keyword); + + /** Get Keyword. + * Case insensitive keyword + */ + public String getKeyword(); + + /** Column name R_RequestProcessor_ID */ + public static final String COLUMNNAME_R_RequestProcessor_ID = "R_RequestProcessor_ID"; + + /** Set Request Processor. + * Processor for Requests + */ + public void setR_RequestProcessor_ID (int R_RequestProcessor_ID); + + /** Get Request Processor. + * Processor for Requests + */ + public int getR_RequestProcessor_ID(); + + public I_R_RequestProcessor getI_R_RequestProcessor() throws Exception; + + /** Column name R_RequestProcessor_Route_ID */ + public static final String COLUMNNAME_R_RequestProcessor_Route_ID = "R_RequestProcessor_Route_ID"; + + /** Set Request Routing. + * Automatic routing of requests + */ + public void setR_RequestProcessor_Route_ID (int R_RequestProcessor_Route_ID); + + /** Get Request Routing. + * Automatic routing of requests + */ + public int getR_RequestProcessor_Route_ID(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_R_RequestType.java b/base/src/org/compiere/model/I_R_RequestType.java new file mode 100644 index 0000000000..93e190c035 --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestType.java @@ -0,0 +1,257 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:54.984 + */ + public interface I_R_RequestType +{ + + /** TableName=R_RequestType */ + public static final String Table_Name = "R_RequestType"; + + /** AD_Table_ID=529 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name AutoDueDateDays */ + public static final String COLUMNNAME_AutoDueDateDays = "AutoDueDateDays"; + + /** Set Auto Due Date Days. + * Automatic Due Date Days + */ + public void setAutoDueDateDays (int AutoDueDateDays); + + /** Get Auto Due Date Days. + * Automatic Due Date Days + */ + public int getAutoDueDateDays(); + + /** Column name ConfidentialType */ + public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + + /** Set Confidentiality. + * Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType); + + /** Get Confidentiality. + * Type of Confidentiality + */ + public String getConfidentialType(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DueDateTolerance */ + public static final String COLUMNNAME_DueDateTolerance = "DueDateTolerance"; + + /** Set Due Date Tolerance. + * Tolerance in days between the Date Next Action and the date the request is regarded as overdue + */ + public void setDueDateTolerance (int DueDateTolerance); + + /** Get Due Date Tolerance. + * Tolerance in days between the Date Next Action and the date the request is regarded as overdue + */ + public int getDueDateTolerance(); + + /** Column name IsAutoChangeRequest */ + public static final String COLUMNNAME_IsAutoChangeRequest = "IsAutoChangeRequest"; + + /** Set Create Change Request. + * Automatically create BOM (Engineering) Change Request + */ + public void setIsAutoChangeRequest (boolean IsAutoChangeRequest); + + /** Get Create Change Request. + * Automatically create BOM (Engineering) Change Request + */ + public boolean isAutoChangeRequest(); + + /** Column name IsConfidentialInfo */ + public static final String COLUMNNAME_IsConfidentialInfo = "IsConfidentialInfo"; + + /** Set Confidential Info. + * Can enter confidential information + */ + public void setIsConfidentialInfo (boolean IsConfidentialInfo); + + /** Get Confidential Info. + * Can enter confidential information + */ + public boolean isConfidentialInfo(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsEMailWhenDue */ + public static final String COLUMNNAME_IsEMailWhenDue = "IsEMailWhenDue"; + + /** Set EMail when Due. + * Send EMail when Request becomes due + */ + public void setIsEMailWhenDue (boolean IsEMailWhenDue); + + /** Get EMail when Due. + * Send EMail when Request becomes due + */ + public boolean isEMailWhenDue(); + + /** Column name IsEMailWhenOverdue */ + public static final String COLUMNNAME_IsEMailWhenOverdue = "IsEMailWhenOverdue"; + + /** Set EMail when Overdue. + * Send EMail when Request becomes overdue + */ + public void setIsEMailWhenOverdue (boolean IsEMailWhenOverdue); + + /** Get EMail when Overdue. + * Send EMail when Request becomes overdue + */ + public boolean isEMailWhenOverdue(); + + /** Column name IsIndexed */ + public static final String COLUMNNAME_IsIndexed = "IsIndexed"; + + /** Set Indexed. + * Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed); + + /** Get Indexed. + * Index the document for the internal search engine + */ + public boolean isIndexed(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + /** Column name R_StatusCategory_ID */ + public static final String COLUMNNAME_R_StatusCategory_ID = "R_StatusCategory_ID"; + + /** Set Status Category. + * Request Status Category + */ + public void setR_StatusCategory_ID (int R_StatusCategory_ID); + + /** Get Status Category. + * Request Status Category + */ + public int getR_StatusCategory_ID(); + + public I_R_StatusCategory getI_R_StatusCategory() throws Exception; +} diff --git a/base/src/org/compiere/model/I_R_RequestTypeUpdates.java b/base/src/org/compiere/model/I_R_RequestTypeUpdates.java new file mode 100644 index 0000000000..40247d11e0 --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestTypeUpdates.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestTypeUpdates + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.0 + */ + public interface I_R_RequestTypeUpdates +{ + + /** TableName=R_RequestTypeUpdates */ + public static final String Table_Name = "R_RequestTypeUpdates"; + + /** AD_Table_ID=784 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name R_RequestType_ID */ + public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; + + /** Set Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID); + + /** Get Request Type. + * Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID(); + + public I_R_RequestType getI_R_RequestType() throws Exception; +} diff --git a/base/src/org/compiere/model/I_R_RequestUpdate.java b/base/src/org/compiere/model/I_R_RequestUpdate.java new file mode 100644 index 0000000000..d5a206e764 --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestUpdate.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestUpdate + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.015 + */ + public interface I_R_RequestUpdate +{ + + /** TableName=R_RequestUpdate */ + public static final String Table_Name = "R_RequestUpdate"; + + /** AD_Table_ID=802 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name ConfidentialTypeEntry */ + public static final String COLUMNNAME_ConfidentialTypeEntry = "ConfidentialTypeEntry"; + + /** Set Entry Confidentiality. + * Confidentiality of the individual entry + */ + public void setConfidentialTypeEntry (String ConfidentialTypeEntry); + + /** Get Entry Confidentiality. + * Confidentiality of the individual entry + */ + public String getConfidentialTypeEntry(); + + /** Column name EndTime */ + public static final String COLUMNNAME_EndTime = "EndTime"; + + /** Set End Time. + * End of the time span + */ + public void setEndTime (Timestamp EndTime); + + /** Get End Time. + * End of the time span + */ + public Timestamp getEndTime(); + + /** Column name M_ProductSpent_ID */ + public static final String COLUMNNAME_M_ProductSpent_ID = "M_ProductSpent_ID"; + + /** Set Product Used. + * Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID); + + /** Get Product Used. + * Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name QtySpent */ + public static final String COLUMNNAME_QtySpent = "QtySpent"; + + /** Set Quantity Used. + * Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent); + + /** Get Quantity Used. + * Quantity used for this event + */ + public BigDecimal getQtySpent(); + + /** Column name R_RequestUpdate_ID */ + public static final String COLUMNNAME_R_RequestUpdate_ID = "R_RequestUpdate_ID"; + + /** Set Request Update. + * Request Updates + */ + public void setR_RequestUpdate_ID (int R_RequestUpdate_ID); + + /** Get Request Update. + * Request Updates + */ + public int getR_RequestUpdate_ID(); + + /** Column name R_Request_ID */ + public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; + + /** Set Request. + * Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID); + + /** Get Request. + * Request from a Business Partner or Prospect + */ + public int getR_Request_ID(); + + public I_R_Request getI_R_Request() throws Exception; + + /** Column name Result */ + public static final String COLUMNNAME_Result = "Result"; + + /** Set Result. + * Result of the action taken + */ + public void setResult (String Result); + + /** Get Result. + * Result of the action taken + */ + public String getResult(); + + /** Column name StartTime */ + public static final String COLUMNNAME_StartTime = "StartTime"; + + /** Set Start Time. + * Time started + */ + public void setStartTime (Timestamp StartTime); + + /** Get Start Time. + * Time started + */ + public Timestamp getStartTime(); +} diff --git a/base/src/org/compiere/model/I_R_RequestUpdates.java b/base/src/org/compiere/model/I_R_RequestUpdates.java new file mode 100644 index 0000000000..02a76b76b7 --- /dev/null +++ b/base/src/org/compiere/model/I_R_RequestUpdates.java @@ -0,0 +1,101 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_RequestUpdates + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.031 + */ + public interface I_R_RequestUpdates +{ + + /** TableName=R_RequestUpdates */ + public static final String Table_Name = "R_RequestUpdates"; + + /** AD_Table_ID=783 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 7 - System - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(7); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name R_Request_ID */ + public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; + + /** Set Request. + * Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID); + + /** Get Request. + * Request from a Business Partner or Prospect + */ + public int getR_Request_ID(); + + public I_R_Request getI_R_Request() throws Exception; +} diff --git a/base/src/org/compiere/model/I_R_Resolution.java b/base/src/org/compiere/model/I_R_Resolution.java new file mode 100644 index 0000000000..101efb76ae --- /dev/null +++ b/base/src/org/compiere/model/I_R_Resolution.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_Resolution + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.125 + */ + public interface I_R_Resolution +{ + + /** TableName=R_Resolution */ + public static final String Table_Name = "R_Resolution"; + + /** AD_Table_ID=774 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_Resolution_ID */ + public static final String COLUMNNAME_R_Resolution_ID = "R_Resolution_ID"; + + /** Set Resolution. + * Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID); + + /** Get Resolution. + * Request Resolution + */ + public int getR_Resolution_ID(); +} diff --git a/base/src/org/compiere/model/I_R_StandardResponse.java b/base/src/org/compiere/model/I_R_StandardResponse.java new file mode 100644 index 0000000000..9c66d6cffa --- /dev/null +++ b/base/src/org/compiere/model/I_R_StandardResponse.java @@ -0,0 +1,99 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_StandardResponse + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.14 + */ + public interface I_R_StandardResponse +{ + + /** TableName=R_StandardResponse */ + public static final String Table_Name = "R_StandardResponse"; + + /** AD_Table_ID=775 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_StandardResponse_ID */ + public static final String COLUMNNAME_R_StandardResponse_ID = "R_StandardResponse_ID"; + + /** Set Standard Response. + * Request Standard Response + */ + public void setR_StandardResponse_ID (int R_StandardResponse_ID); + + /** Get Standard Response. + * Request Standard Response + */ + public int getR_StandardResponse_ID(); + + /** Column name ResponseText */ + public static final String COLUMNNAME_ResponseText = "ResponseText"; + + /** Set Response Text. + * Request Response Text + */ + public void setResponseText (String ResponseText); + + /** Get Response Text. + * Request Response Text + */ + public String getResponseText(); +} diff --git a/base/src/org/compiere/model/I_R_Status.java b/base/src/org/compiere/model/I_R_Status.java new file mode 100644 index 0000000000..12dc2e06ed --- /dev/null +++ b/base/src/org/compiere/model/I_R_Status.java @@ -0,0 +1,259 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_Status + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.171 + */ + public interface I_R_Status +{ + + /** TableName=R_Status */ + public static final String Table_Name = "R_Status"; + + /** AD_Table_ID=776 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsClosed */ + public static final String COLUMNNAME_IsClosed = "IsClosed"; + + /** Set Closed Status. + * The status is closed + */ + public void setIsClosed (boolean IsClosed); + + /** Get Closed Status. + * The status is closed + */ + public boolean isClosed(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsFinalClose */ + public static final String COLUMNNAME_IsFinalClose = "IsFinalClose"; + + /** Set Final Close. + * Entries with Final Close cannot be re-opened + */ + public void setIsFinalClose (boolean IsFinalClose); + + /** Get Final Close. + * Entries with Final Close cannot be re-opened + */ + public boolean isFinalClose(); + + /** Column name IsOpen */ + public static final String COLUMNNAME_IsOpen = "IsOpen"; + + /** Set Open Status. + * The status is closed + */ + public void setIsOpen (boolean IsOpen); + + /** Get Open Status. + * The status is closed + */ + public boolean isOpen(); + + /** Column name IsWebCanUpdate */ + public static final String COLUMNNAME_IsWebCanUpdate = "IsWebCanUpdate"; + + /** Set Web Can Update. + * Entry can be updated from the Web + */ + public void setIsWebCanUpdate (boolean IsWebCanUpdate); + + /** Get Web Can Update. + * Entry can be updated from the Web + */ + public boolean isWebCanUpdate(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Next_Status_ID */ + public static final String COLUMNNAME_Next_Status_ID = "Next_Status_ID"; + + /** Set Next Status. + * Move to next status automatically after timeout + */ + public void setNext_Status_ID (int Next_Status_ID); + + /** Get Next Status. + * Move to next status automatically after timeout + */ + public int getNext_Status_ID(); + + /** Column name R_StatusCategory_ID */ + public static final String COLUMNNAME_R_StatusCategory_ID = "R_StatusCategory_ID"; + + /** Set Status Category. + * Request Status Category + */ + public void setR_StatusCategory_ID (int R_StatusCategory_ID); + + /** Get Status Category. + * Request Status Category + */ + public int getR_StatusCategory_ID(); + + public I_R_StatusCategory getI_R_StatusCategory() throws Exception; + + /** Column name R_Status_ID */ + public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; + + /** Set Status. + * Request Status + */ + public void setR_Status_ID (int R_Status_ID); + + /** Get Status. + * Request Status + */ + public int getR_Status_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name TimeoutDays */ + public static final String COLUMNNAME_TimeoutDays = "TimeoutDays"; + + /** Set Timeout in Days. + * Timeout in Days to change Status automatically + */ + public void setTimeoutDays (int TimeoutDays); + + /** Get Timeout in Days. + * Timeout in Days to change Status automatically + */ + public int getTimeoutDays(); + + /** Column name Update_Status_ID */ + public static final String COLUMNNAME_Update_Status_ID = "Update_Status_ID"; + + /** Set Update Status. + * Automatically change the status after entry from web + */ + public void setUpdate_Status_ID (int Update_Status_ID); + + /** Get Update Status. + * Automatically change the status after entry from web + */ + public int getUpdate_Status_ID(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_R_StatusCategory.java b/base/src/org/compiere/model/I_R_StatusCategory.java new file mode 100644 index 0000000000..70e66e5fbe --- /dev/null +++ b/base/src/org/compiere/model/I_R_StatusCategory.java @@ -0,0 +1,125 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for R_StatusCategory + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.203 + */ + public interface I_R_StatusCategory +{ + + /** TableName=R_StatusCategory */ + public static final String Table_Name = "R_StatusCategory"; + + /** AD_Table_ID=844 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = new BigDecimal(6); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name R_StatusCategory_ID */ + public static final String COLUMNNAME_R_StatusCategory_ID = "R_StatusCategory_ID"; + + /** Set Status Category. + * Request Status Category + */ + public void setR_StatusCategory_ID (int R_StatusCategory_ID); + + /** Get Status Category. + * Request Status Category + */ + public int getR_StatusCategory_ID(); +} diff --git a/base/src/org/compiere/model/I_S_ExpenseType.java b/base/src/org/compiere/model/I_S_ExpenseType.java new file mode 100644 index 0000000000..83bf3f52a8 --- /dev/null +++ b/base/src/org/compiere/model/I_S_ExpenseType.java @@ -0,0 +1,170 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_ExpenseType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.218 + */ + public interface I_S_ExpenseType +{ + + /** TableName=S_ExpenseType */ + public static final String Table_Name = "S_ExpenseType"; + + /** AD_Table_ID=481 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name S_ExpenseType_ID */ + public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; + + /** Set Expense Type. + * Expense report type + */ + public void setS_ExpenseType_ID (int S_ExpenseType_ID); + + /** Get Expense Type. + * Expense report type + */ + public int getS_ExpenseType_ID(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_S_Resource.java b/base/src/org/compiere/model/I_S_Resource.java new file mode 100644 index 0000000000..38f43e888c --- /dev/null +++ b/base/src/org/compiere/model/I_S_Resource.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_Resource + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.234 + */ + public interface I_S_Resource +{ + + /** TableName=S_Resource */ + public static final String Table_Name = "S_Resource"; + + /** AD_Table_ID=487 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name ChargeableQty */ + public static final String COLUMNNAME_ChargeableQty = "ChargeableQty"; + + /** Set Chargeable Quantity */ + public void setChargeableQty (BigDecimal ChargeableQty); + + /** Get Chargeable Quantity */ + public BigDecimal getChargeableQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsAvailable */ + public static final String COLUMNNAME_IsAvailable = "IsAvailable"; + + /** Set Available. + * Resource is available + */ + public void setIsAvailable (boolean IsAvailable); + + /** Get Available. + * Resource is available + */ + public boolean isAvailable(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name S_ResourceType_ID */ + public static final String COLUMNNAME_S_ResourceType_ID = "S_ResourceType_ID"; + + /** Set Resource Type */ + public void setS_ResourceType_ID (int S_ResourceType_ID); + + /** Get Resource Type */ + public int getS_ResourceType_ID(); + + public I_S_ResourceType getI_S_ResourceType() throws Exception; + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_S_ResourceAssignment.java b/base/src/org/compiere/model/I_S_ResourceAssignment.java new file mode 100644 index 0000000000..e683147664 --- /dev/null +++ b/base/src/org/compiere/model/I_S_ResourceAssignment.java @@ -0,0 +1,166 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_ResourceAssignment + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.265 + */ + public interface I_S_ResourceAssignment +{ + + /** TableName=S_ResourceAssignment */ + public static final String Table_Name = "S_ResourceAssignment"; + + /** AD_Table_ID=485 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name AssignDateFrom */ + public static final String COLUMNNAME_AssignDateFrom = "AssignDateFrom"; + + /** Set Assign From. + * Assign resource from + */ + public void setAssignDateFrom (Timestamp AssignDateFrom); + + /** Get Assign From. + * Assign resource from + */ + public Timestamp getAssignDateFrom(); + + /** Column name AssignDateTo */ + public static final String COLUMNNAME_AssignDateTo = "AssignDateTo"; + + /** Set Assign To. + * Assign resource until + */ + public void setAssignDateTo (Timestamp AssignDateTo); + + /** Get Assign To. + * Assign resource until + */ + public Timestamp getAssignDateTo(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsConfirmed */ + public static final String COLUMNNAME_IsConfirmed = "IsConfirmed"; + + /** Set Confirmed. + * Assignment is confirmed + */ + public void setIsConfirmed (boolean IsConfirmed); + + /** Get Confirmed. + * Assignment is confirmed + */ + public boolean isConfirmed(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name S_ResourceAssignment_ID */ + public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; + + /** Set Resource Assignment. + * Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID); + + /** Get Resource Assignment. + * Resource Assignment + */ + public int getS_ResourceAssignment_ID(); + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getI_S_Resource() throws Exception; +} diff --git a/base/src/org/compiere/model/I_S_ResourceType.java b/base/src/org/compiere/model/I_S_ResourceType.java new file mode 100644 index 0000000000..f832a1bcc6 --- /dev/null +++ b/base/src/org/compiere/model/I_S_ResourceType.java @@ -0,0 +1,331 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_ResourceType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.281 + */ + public interface I_S_ResourceType +{ + + /** TableName=S_ResourceType */ + public static final String Table_Name = "S_ResourceType"; + + /** AD_Table_ID=480 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AllowUoMFractions */ + public static final String COLUMNNAME_AllowUoMFractions = "AllowUoMFractions"; + + /** Set Allow UoM Fractions. + * Allow Unit of Measure Fractions + */ + public void setAllowUoMFractions (boolean AllowUoMFractions); + + /** Get Allow UoM Fractions. + * Allow Unit of Measure Fractions + */ + public boolean isAllowUoMFractions(); + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name ChargeableQty */ + public static final String COLUMNNAME_ChargeableQty = "ChargeableQty"; + + /** Set Chargeable Quantity */ + public void setChargeableQty (int ChargeableQty); + + /** Get Chargeable Quantity */ + public int getChargeableQty(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsDateSlot */ + public static final String COLUMNNAME_IsDateSlot = "IsDateSlot"; + + /** Set Day Slot. + * Resource has day slot availability + */ + public void setIsDateSlot (boolean IsDateSlot); + + /** Get Day Slot. + * Resource has day slot availability + */ + public boolean isDateSlot(); + + /** Column name IsSingleAssignment */ + public static final String COLUMNNAME_IsSingleAssignment = "IsSingleAssignment"; + + /** Set Single Assignment only. + * Only one assignment at a time (no double-booking or overlapping) + */ + public void setIsSingleAssignment (boolean IsSingleAssignment); + + /** Get Single Assignment only. + * Only one assignment at a time (no double-booking or overlapping) + */ + public boolean isSingleAssignment(); + + /** Column name IsTimeSlot */ + public static final String COLUMNNAME_IsTimeSlot = "IsTimeSlot"; + + /** Set Time Slot. + * Resource has time slot availability + */ + public void setIsTimeSlot (boolean IsTimeSlot); + + /** Get Time Slot. + * Resource has time slot availability + */ + public boolean isTimeSlot(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name OnFriday */ + public static final String COLUMNNAME_OnFriday = "OnFriday"; + + /** Set Friday. + * Available on Fridays + */ + public void setOnFriday (boolean OnFriday); + + /** Get Friday. + * Available on Fridays + */ + public boolean isOnFriday(); + + /** Column name OnMonday */ + public static final String COLUMNNAME_OnMonday = "OnMonday"; + + /** Set Monday. + * Available on Mondays + */ + public void setOnMonday (boolean OnMonday); + + /** Get Monday. + * Available on Mondays + */ + public boolean isOnMonday(); + + /** Column name OnSaturday */ + public static final String COLUMNNAME_OnSaturday = "OnSaturday"; + + /** Set Saturday. + * Available on Saturday + */ + public void setOnSaturday (boolean OnSaturday); + + /** Get Saturday. + * Available on Saturday + */ + public boolean isOnSaturday(); + + /** Column name OnSunday */ + public static final String COLUMNNAME_OnSunday = "OnSunday"; + + /** Set Sunday. + * Available on Sundays + */ + public void setOnSunday (boolean OnSunday); + + /** Get Sunday. + * Available on Sundays + */ + public boolean isOnSunday(); + + /** Column name OnThursday */ + public static final String COLUMNNAME_OnThursday = "OnThursday"; + + /** Set Thursday. + * Available on Thursdays + */ + public void setOnThursday (boolean OnThursday); + + /** Get Thursday. + * Available on Thursdays + */ + public boolean isOnThursday(); + + /** Column name OnTuesday */ + public static final String COLUMNNAME_OnTuesday = "OnTuesday"; + + /** Set Tuesday. + * Available on Tuesdays + */ + public void setOnTuesday (boolean OnTuesday); + + /** Get Tuesday. + * Available on Tuesdays + */ + public boolean isOnTuesday(); + + /** Column name OnWednesday */ + public static final String COLUMNNAME_OnWednesday = "OnWednesday"; + + /** Set Wednesday. + * Available on Wednesdays + */ + public void setOnWednesday (boolean OnWednesday); + + /** Get Wednesday. + * Available on Wednesdays + */ + public boolean isOnWednesday(); + + /** Column name S_ResourceType_ID */ + public static final String COLUMNNAME_S_ResourceType_ID = "S_ResourceType_ID"; + + /** Set Resource Type */ + public void setS_ResourceType_ID (int S_ResourceType_ID); + + /** Get Resource Type */ + public int getS_ResourceType_ID(); + + /** Column name TimeSlotEnd */ + public static final String COLUMNNAME_TimeSlotEnd = "TimeSlotEnd"; + + /** Set Slot End. + * Time when timeslot ends + */ + public void setTimeSlotEnd (Timestamp TimeSlotEnd); + + /** Get Slot End. + * Time when timeslot ends + */ + public Timestamp getTimeSlotEnd(); + + /** Column name TimeSlotStart */ + public static final String COLUMNNAME_TimeSlotStart = "TimeSlotStart"; + + /** Set Slot Start. + * Time when timeslot starts + */ + public void setTimeSlotStart (Timestamp TimeSlotStart); + + /** Get Slot Start. + * Time when timeslot starts + */ + public Timestamp getTimeSlotStart(); + + /** Column name Value */ + public static final String COLUMNNAME_Value = "Value"; + + /** Set Search Key. + * Search key for the record in the format required - must be unique + */ + public void setValue (String Value); + + /** Get Search Key. + * Search key for the record in the format required - must be unique + */ + public String getValue(); +} diff --git a/base/src/org/compiere/model/I_S_ResourceUnAvailable.java b/base/src/org/compiere/model/I_S_ResourceUnAvailable.java new file mode 100644 index 0000000000..21976aac1b --- /dev/null +++ b/base/src/org/compiere/model/I_S_ResourceUnAvailable.java @@ -0,0 +1,123 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_ResourceUnAvailable + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.312 + */ + public interface I_S_ResourceUnAvailable +{ + + /** TableName=S_ResourceUnAvailable */ + public static final String Table_Name = "S_ResourceUnAvailable"; + + /** AD_Table_ID=482 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name DateFrom */ + public static final String COLUMNNAME_DateFrom = "DateFrom"; + + /** Set Date From. + * Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom); + + /** Get Date From. + * Starting date for a range + */ + public Timestamp getDateFrom(); + + /** Column name DateTo */ + public static final String COLUMNNAME_DateTo = "DateTo"; + + /** Set Date To. + * End date of a date range + */ + public void setDateTo (Timestamp DateTo); + + /** Get Date To. + * End date of a date range + */ + public Timestamp getDateTo(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name S_ResourceUnAvailable_ID */ + public static final String COLUMNNAME_S_ResourceUnAvailable_ID = "S_ResourceUnAvailable_ID"; + + /** Set Resource Unavailability */ + public void setS_ResourceUnAvailable_ID (int S_ResourceUnAvailable_ID); + + /** Get Resource Unavailability */ + public int getS_ResourceUnAvailable_ID(); + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getI_S_Resource() throws Exception; +} diff --git a/base/src/org/compiere/model/I_S_TimeExpense.java b/base/src/org/compiere/model/I_S_TimeExpense.java new file mode 100644 index 0000000000..23a82f902d --- /dev/null +++ b/base/src/org/compiere/model/I_S_TimeExpense.java @@ -0,0 +1,229 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_TimeExpense + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.328 + */ + public interface I_S_TimeExpense +{ + + /** TableName=S_TimeExpense */ + public static final String Table_Name = "S_TimeExpense"; + + /** AD_Table_ID=486 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name DateReport */ + public static final String COLUMNNAME_DateReport = "DateReport"; + + /** Set Report Date. + * Expense/Time Report Date + */ + public void setDateReport (Timestamp DateReport); + + /** Get Report Date. + * Expense/Time Report Date + */ + public Timestamp getDateReport(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** Column name DocumentNo */ + public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** Set Document No. + * Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo); + + /** Get Document No. + * Document sequence number of the document + */ + public String getDocumentNo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name S_TimeExpense_ID */ + public static final String COLUMNNAME_S_TimeExpense_ID = "S_TimeExpense_ID"; + + /** Set Expense Report. + * Time and Expense Report + */ + public void setS_TimeExpense_ID (int S_TimeExpense_ID); + + /** Get Expense Report. + * Time and Expense Report + */ + public int getS_TimeExpense_ID(); +} diff --git a/base/src/org/compiere/model/I_S_TimeExpenseLine.java b/base/src/org/compiere/model/I_S_TimeExpenseLine.java new file mode 100644 index 0000000000..156a30b42c --- /dev/null +++ b/base/src/org/compiere/model/I_S_TimeExpenseLine.java @@ -0,0 +1,468 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_TimeExpenseLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.359 + */ + public interface I_S_TimeExpenseLine +{ + + /** TableName=S_TimeExpenseLine */ + public static final String Table_Name = "S_TimeExpenseLine"; + + /** AD_Table_ID=488 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = new BigDecimal(1); + + /** Load Meta Data */ + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_InvoiceLine_ID */ + public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; + + /** Set Invoice Line. + * Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID); + + /** Get Invoice Line. + * Invoice Detail Line + */ + public int getC_InvoiceLine_ID(); + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name ConvertedAmt */ + public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; + + /** Set Converted Amount. + * Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt); + + /** Get Converted Amount. + * Converted Amount + */ + public BigDecimal getConvertedAmt(); + + /** Column name DateExpense */ + public static final String COLUMNNAME_DateExpense = "DateExpense"; + + /** Set Expense Date. + * Date of expense + */ + public void setDateExpense (Timestamp DateExpense); + + /** Get Expense Date. + * Date of expense + */ + public Timestamp getDateExpense(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name ExpenseAmt */ + public static final String COLUMNNAME_ExpenseAmt = "ExpenseAmt"; + + /** Set Expense Amount. + * Amount for this expense + */ + public void setExpenseAmt (BigDecimal ExpenseAmt); + + /** Get Expense Amount. + * Amount for this expense + */ + public BigDecimal getExpenseAmt(); + + /** Column name InvoicePrice */ + public static final String COLUMNNAME_InvoicePrice = "InvoicePrice"; + + /** Set Invoice Price. + * Unit price to be invoiced or 0 for default price + */ + public void setInvoicePrice (BigDecimal InvoicePrice); + + /** Get Invoice Price. + * Unit price to be invoiced or 0 for default price + */ + public BigDecimal getInvoicePrice(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name IsTimeReport */ + public static final String COLUMNNAME_IsTimeReport = "IsTimeReport"; + + /** Set Time Report. + * Line is a time report only (no expense) + */ + public void setIsTimeReport (boolean IsTimeReport); + + /** Get Time Report. + * Line is a time report only (no expense) + */ + public boolean isTimeReport(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Note */ + public static final String COLUMNNAME_Note = "Note"; + + /** Set Note. + * Optional additional user defined information + */ + public void setNote (String Note); + + /** Get Note. + * Optional additional user defined information + */ + public String getNote(); + + /** Column name PriceInvoiced */ + public static final String COLUMNNAME_PriceInvoiced = "PriceInvoiced"; + + /** Set Price Invoiced. + * The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price + */ + public void setPriceInvoiced (BigDecimal PriceInvoiced); + + /** Get Price Invoiced. + * The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price + */ + public BigDecimal getPriceInvoiced(); + + /** Column name PriceReimbursed */ + public static final String COLUMNNAME_PriceReimbursed = "PriceReimbursed"; + + /** Set Price Reimbursed. + * The reimbursed price (in currency of the employee's AP price list) + */ + public void setPriceReimbursed (BigDecimal PriceReimbursed); + + /** Get Price Reimbursed. + * The reimbursed price (in currency of the employee's AP price list) + */ + public BigDecimal getPriceReimbursed(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name QtyReimbursed */ + public static final String COLUMNNAME_QtyReimbursed = "QtyReimbursed"; + + /** Set Quantity Reimbursed. + * The reimbursed quantity + */ + public void setQtyReimbursed (BigDecimal QtyReimbursed); + + /** Get Quantity Reimbursed. + * The reimbursed quantity + */ + public BigDecimal getQtyReimbursed(); + + /** Column name S_ResourceAssignment_ID */ + public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; + + /** Set Resource Assignment. + * Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID); + + /** Get Resource Assignment. + * Resource Assignment + */ + public int getS_ResourceAssignment_ID(); + + /** Column name S_TimeExpenseLine_ID */ + public static final String COLUMNNAME_S_TimeExpenseLine_ID = "S_TimeExpenseLine_ID"; + + /** Set Expense Line. + * Time and Expense Report Line + */ + public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID); + + /** Get Expense Line. + * Time and Expense Report Line + */ + public int getS_TimeExpenseLine_ID(); + + /** Column name S_TimeExpense_ID */ + public static final String COLUMNNAME_S_TimeExpense_ID = "S_TimeExpense_ID"; + + /** Set Expense Report. + * Time and Expense Report + */ + public void setS_TimeExpense_ID (int S_TimeExpense_ID); + + /** Get Expense Report. + * Time and Expense Report + */ + public int getS_TimeExpense_ID(); + + public I_S_TimeExpense getI_S_TimeExpense() throws Exception; + + /** Column name S_TimeType_ID */ + public static final String COLUMNNAME_S_TimeType_ID = "S_TimeType_ID"; + + /** Set Time Type. + * Type of time recorded + */ + public void setS_TimeType_ID (int S_TimeType_ID); + + /** Get Time Type. + * Type of time recorded + */ + public int getS_TimeType_ID(); + + public I_S_TimeType getI_S_TimeType() throws Exception; +} diff --git a/base/src/org/compiere/model/I_S_TimeType.java b/base/src/org/compiere/model/I_S_TimeType.java new file mode 100644 index 0000000000..4283bec8b5 --- /dev/null +++ b/base/src/org/compiere/model/I_S_TimeType.java @@ -0,0 +1,112 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_TimeType + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.406 + */ + public interface I_S_TimeType +{ + + /** TableName=S_TimeType */ + public static final String Table_Name = "S_TimeType"; + + /** AD_Table_ID=581 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name S_TimeType_ID */ + public static final String COLUMNNAME_S_TimeType_ID = "S_TimeType_ID"; + + /** Set Time Type. + * Type of time recorded + */ + public void setS_TimeType_ID (int S_TimeType_ID); + + /** Get Time Type. + * Type of time recorded + */ + public int getS_TimeType_ID(); +} diff --git a/base/src/org/compiere/model/I_S_Training.java b/base/src/org/compiere/model/I_S_Training.java new file mode 100644 index 0000000000..a7a0e064eb --- /dev/null +++ b/base/src/org/compiere/model/I_S_Training.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_Training + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.421 + */ + public interface I_S_Training +{ + + /** TableName=S_Training */ + public static final String Table_Name = "S_Training"; + + /** AD_Table_ID=538 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name DescriptionURL */ + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + + /** Set Description URL. + * URL for the description + */ + public void setDescriptionURL (String DescriptionURL); + + /** Get Description URL. + * URL for the description + */ + public String getDescriptionURL(); + + /** Column name DocumentNote */ + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + + /** Set Document Note. + * Additional information for a Document + */ + public void setDocumentNote (String DocumentNote); + + /** Get Document Note. + * Additional information for a Document + */ + public String getDocumentNote(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getI_M_Product_Category() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name S_Training_ID */ + public static final String COLUMNNAME_S_Training_ID = "S_Training_ID"; + + /** Set Training. + * Repeated Training + */ + public void setS_Training_ID (int S_Training_ID); + + /** Get Training. + * Repeated Training + */ + public int getS_Training_ID(); +} diff --git a/base/src/org/compiere/model/I_S_Training_Class.java b/base/src/org/compiere/model/I_S_Training_Class.java new file mode 100644 index 0000000000..f66726b424 --- /dev/null +++ b/base/src/org/compiere/model/I_S_Training_Class.java @@ -0,0 +1,127 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for S_Training_Class + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.437 + */ + public interface I_S_Training_Class +{ + + /** TableName=S_Training_Class */ + public static final String Table_Name = "S_Training_Class"; + + /** AD_Table_ID=537 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name EndDate */ + public static final String COLUMNNAME_EndDate = "EndDate"; + + /** Set End Date. + * Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate); + + /** Get End Date. + * Last effective date (inclusive) + */ + public Timestamp getEndDate(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name S_Training_Class_ID */ + public static final String COLUMNNAME_S_Training_Class_ID = "S_Training_Class_ID"; + + /** Set Training Class. + * The actual training class instance + */ + public void setS_Training_Class_ID (int S_Training_Class_ID); + + /** Get Training Class. + * The actual training class instance + */ + public int getS_Training_Class_ID(); + + /** Column name S_Training_ID */ + public static final String COLUMNNAME_S_Training_ID = "S_Training_ID"; + + /** Set Training. + * Repeated Training + */ + public void setS_Training_ID (int S_Training_ID); + + /** Get Training. + * Repeated Training + */ + public int getS_Training_ID(); + + public I_S_Training getI_S_Training() throws Exception; + + /** Column name StartDate */ + public static final String COLUMNNAME_StartDate = "StartDate"; + + /** Set Start Date. + * First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate); + + /** Get Start Date. + * First effective day (inclusive) + */ + public Timestamp getStartDate(); +} diff --git a/base/src/org/compiere/model/I_T_Aging.java b/base/src/org/compiere/model/I_T_Aging.java new file mode 100644 index 0000000000..f91448d880 --- /dev/null +++ b/base/src/org/compiere/model/I_T_Aging.java @@ -0,0 +1,466 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_Aging + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.453 + */ + public interface I_T_Aging +{ + + /** TableName=T_Aging */ + public static final String Table_Name = "T_Aging"; + + /** AD_Table_ID=631 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getI_C_Activity() throws Exception; + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getI_C_BP_Group() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Campaign_ID */ + public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** Set Campaign. + * Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID); + + /** Get Campaign. + * Marketing Campaign + */ + public int getC_Campaign_ID(); + + public I_C_Campaign getI_C_Campaign() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_InvoicePaySchedule_ID */ + public static final String COLUMNNAME_C_InvoicePaySchedule_ID = "C_InvoicePaySchedule_ID"; + + /** Set Invoice Payment Schedule. + * Invoice Payment Schedule + */ + public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID); + + /** Get Invoice Payment Schedule. + * Invoice Payment Schedule + */ + public int getC_InvoicePaySchedule_ID(); + + public I_C_InvoicePaySchedule getI_C_InvoicePaySchedule() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getI_C_Project() throws Exception; + + /** Column name DaysDue */ + public static final String COLUMNNAME_DaysDue = "DaysDue"; + + /** Set Days due. + * Number of days due (negative: due in number of days) + */ + public void setDaysDue (int DaysDue); + + /** Get Days due. + * Number of days due (negative: due in number of days) + */ + public int getDaysDue(); + + /** Column name Due0 */ + public static final String COLUMNNAME_Due0 = "Due0"; + + /** Set Due Today */ + public void setDue0 (BigDecimal Due0); + + /** Get Due Today */ + public BigDecimal getDue0(); + + /** Column name Due0_30 */ + public static final String COLUMNNAME_Due0_30 = "Due0_30"; + + /** Set Due Today-30 */ + public void setDue0_30 (BigDecimal Due0_30); + + /** Get Due Today-30 */ + public BigDecimal getDue0_30(); + + /** Column name Due0_7 */ + public static final String COLUMNNAME_Due0_7 = "Due0_7"; + + /** Set Due Today-7 */ + public void setDue0_7 (BigDecimal Due0_7); + + /** Get Due Today-7 */ + public BigDecimal getDue0_7(); + + /** Column name Due1_7 */ + public static final String COLUMNNAME_Due1_7 = "Due1_7"; + + /** Set Due 1-7 */ + public void setDue1_7 (BigDecimal Due1_7); + + /** Get Due 1-7 */ + public BigDecimal getDue1_7(); + + /** Column name Due31_60 */ + public static final String COLUMNNAME_Due31_60 = "Due31_60"; + + /** Set Due 31-60 */ + public void setDue31_60 (BigDecimal Due31_60); + + /** Get Due 31-60 */ + public BigDecimal getDue31_60(); + + /** Column name Due31_Plus */ + public static final String COLUMNNAME_Due31_Plus = "Due31_Plus"; + + /** Set Due > 31 */ + public void setDue31_Plus (BigDecimal Due31_Plus); + + /** Get Due > 31 */ + public BigDecimal getDue31_Plus(); + + /** Column name Due61_90 */ + public static final String COLUMNNAME_Due61_90 = "Due61_90"; + + /** Set Due 61-90 */ + public void setDue61_90 (BigDecimal Due61_90); + + /** Get Due 61-90 */ + public BigDecimal getDue61_90(); + + /** Column name Due61_Plus */ + public static final String COLUMNNAME_Due61_Plus = "Due61_Plus"; + + /** Set Due > 61 */ + public void setDue61_Plus (BigDecimal Due61_Plus); + + /** Get Due > 61 */ + public BigDecimal getDue61_Plus(); + + /** Column name Due8_30 */ + public static final String COLUMNNAME_Due8_30 = "Due8_30"; + + /** Set Due 8-30 */ + public void setDue8_30 (BigDecimal Due8_30); + + /** Get Due 8-30 */ + public BigDecimal getDue8_30(); + + /** Column name Due91_Plus */ + public static final String COLUMNNAME_Due91_Plus = "Due91_Plus"; + + /** Set Due > 91 */ + public void setDue91_Plus (BigDecimal Due91_Plus); + + /** Get Due > 91 */ + public BigDecimal getDue91_Plus(); + + /** Column name DueAmt */ + public static final String COLUMNNAME_DueAmt = "DueAmt"; + + /** Set Amount due. + * Amount of the payment due + */ + public void setDueAmt (BigDecimal DueAmt); + + /** Get Amount due. + * Amount of the payment due + */ + public BigDecimal getDueAmt(); + + /** Column name DueDate */ + public static final String COLUMNNAME_DueDate = "DueDate"; + + /** Set Due Date. + * Date when the payment is due + */ + public void setDueDate (Timestamp DueDate); + + /** Get Due Date. + * Date when the payment is due + */ + public Timestamp getDueDate(); + + /** Column name InvoicedAmt */ + public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; + + /** Set Invoiced Amount. + * The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt); + + /** Get Invoiced Amount. + * The amount invoiced + */ + public BigDecimal getInvoicedAmt(); + + /** Column name IsListInvoices */ + public static final String COLUMNNAME_IsListInvoices = "IsListInvoices"; + + /** Set List Invoices. + * Include List of Invoices + */ + public void setIsListInvoices (boolean IsListInvoices); + + /** Get List Invoices. + * Include List of Invoices + */ + public boolean isListInvoices(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name OpenAmt */ + public static final String COLUMNNAME_OpenAmt = "OpenAmt"; + + /** Set Open Amount. + * Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt); + + /** Get Open Amount. + * Open item amount + */ + public BigDecimal getOpenAmt(); + + /** Column name PastDue1_30 */ + public static final String COLUMNNAME_PastDue1_30 = "PastDue1_30"; + + /** Set Past Due 1-30 */ + public void setPastDue1_30 (BigDecimal PastDue1_30); + + /** Get Past Due 1-30 */ + public BigDecimal getPastDue1_30(); + + /** Column name PastDue1_7 */ + public static final String COLUMNNAME_PastDue1_7 = "PastDue1_7"; + + /** Set Past Due 1-7 */ + public void setPastDue1_7 (BigDecimal PastDue1_7); + + /** Get Past Due 1-7 */ + public BigDecimal getPastDue1_7(); + + /** Column name PastDue31_60 */ + public static final String COLUMNNAME_PastDue31_60 = "PastDue31_60"; + + /** Set Past Due 31-60 */ + public void setPastDue31_60 (BigDecimal PastDue31_60); + + /** Get Past Due 31-60 */ + public BigDecimal getPastDue31_60(); + + /** Column name PastDue31_Plus */ + public static final String COLUMNNAME_PastDue31_Plus = "PastDue31_Plus"; + + /** Set Past Due > 31 */ + public void setPastDue31_Plus (BigDecimal PastDue31_Plus); + + /** Get Past Due > 31 */ + public BigDecimal getPastDue31_Plus(); + + /** Column name PastDue61_90 */ + public static final String COLUMNNAME_PastDue61_90 = "PastDue61_90"; + + /** Set Past Due 61-90 */ + public void setPastDue61_90 (BigDecimal PastDue61_90); + + /** Get Past Due 61-90 */ + public BigDecimal getPastDue61_90(); + + /** Column name PastDue61_Plus */ + public static final String COLUMNNAME_PastDue61_Plus = "PastDue61_Plus"; + + /** Set Past Due > 61 */ + public void setPastDue61_Plus (BigDecimal PastDue61_Plus); + + /** Get Past Due > 61 */ + public BigDecimal getPastDue61_Plus(); + + /** Column name PastDue8_30 */ + public static final String COLUMNNAME_PastDue8_30 = "PastDue8_30"; + + /** Set Past Due 8-30 */ + public void setPastDue8_30 (BigDecimal PastDue8_30); + + /** Get Past Due 8-30 */ + public BigDecimal getPastDue8_30(); + + /** Column name PastDue91_Plus */ + public static final String COLUMNNAME_PastDue91_Plus = "PastDue91_Plus"; + + /** Set Past Due > 91 */ + public void setPastDue91_Plus (BigDecimal PastDue91_Plus); + + /** Get Past Due > 91 */ + public BigDecimal getPastDue91_Plus(); + + /** Column name PastDueAmt */ + public static final String COLUMNNAME_PastDueAmt = "PastDueAmt"; + + /** Set Past Due */ + public void setPastDueAmt (BigDecimal PastDueAmt); + + /** Get Past Due */ + public BigDecimal getPastDueAmt(); + + /** Column name StatementDate */ + public static final String COLUMNNAME_StatementDate = "StatementDate"; + + /** Set Statement date. + * Date of the statement + */ + public void setStatementDate (Timestamp StatementDate); + + /** Get Statement date. + * Date of the statement + */ + public Timestamp getStatementDate(); +} diff --git a/base/src/org/compiere/model/I_T_DistributionRunDetail.java b/base/src/org/compiere/model/I_T_DistributionRunDetail.java new file mode 100644 index 0000000000..7a5aef2c76 --- /dev/null +++ b/base/src/org/compiere/model/I_T_DistributionRunDetail.java @@ -0,0 +1,190 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_DistributionRunDetail + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.5 + */ + public interface I_T_DistributionRunDetail +{ + + /** TableName=T_DistributionRunDetail */ + public static final String Table_Name = "T_DistributionRunDetail"; + + /** AD_Table_ID=714 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + /** Column name M_DistributionListLine_ID */ + public static final String COLUMNNAME_M_DistributionListLine_ID = "M_DistributionListLine_ID"; + + /** Set Distribution List Line. + * Distribution List Line with Business Partner and Quantity/Percentage + */ + public void setM_DistributionListLine_ID (int M_DistributionListLine_ID); + + /** Get Distribution List Line. + * Distribution List Line with Business Partner and Quantity/Percentage + */ + public int getM_DistributionListLine_ID(); + + /** Column name M_DistributionList_ID */ + public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; + + /** Set Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID); + + /** Get Distribution List. + * Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID(); + + /** Column name M_DistributionRunLine_ID */ + public static final String COLUMNNAME_M_DistributionRunLine_ID = "M_DistributionRunLine_ID"; + + /** Set Distribution Run Line. + * Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID); + + /** Get Distribution Run Line. + * Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public int getM_DistributionRunLine_ID(); + + /** Column name M_DistributionRun_ID */ + public static final String COLUMNNAME_M_DistributionRun_ID = "M_DistributionRun_ID"; + + /** Set Distribution Run. + * Distribution Run create Orders to distribute products to a selected list of partners + */ + public void setM_DistributionRun_ID (int M_DistributionRun_ID); + + /** Get Distribution Run. + * Distribution Run create Orders to distribute products to a selected list of partners + */ + public int getM_DistributionRun_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name MinQty */ + public static final String COLUMNNAME_MinQty = "MinQty"; + + /** Set Minimum Quantity. + * Minimum quantity for the business partner + */ + public void setMinQty (BigDecimal MinQty); + + /** Get Minimum Quantity. + * Minimum quantity for the business partner + */ + public BigDecimal getMinQty(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name Ratio */ + public static final String COLUMNNAME_Ratio = "Ratio"; + + /** Set Ratio. + * Relative Ratio for Distributions + */ + public void setRatio (BigDecimal Ratio); + + /** Get Ratio. + * Relative Ratio for Distributions + */ + public BigDecimal getRatio(); +} diff --git a/base/src/org/compiere/model/I_T_InventoryValue.java b/base/src/org/compiere/model/I_T_InventoryValue.java new file mode 100644 index 0000000000..6180423cb4 --- /dev/null +++ b/base/src/org/compiere/model/I_T_InventoryValue.java @@ -0,0 +1,343 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_InventoryValue + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.515 + */ + public interface I_T_InventoryValue +{ + + /** TableName=T_InventoryValue */ + public static final String Table_Name = "T_InventoryValue"; + + /** AD_Table_ID=478 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name Cost */ + public static final String COLUMNNAME_Cost = "Cost"; + + /** Set Cost. + * Cost information + */ + public void setCost (BigDecimal Cost); + + /** Get Cost. + * Cost information + */ + public BigDecimal getCost(); + + /** Column name CostAmt */ + public static final String COLUMNNAME_CostAmt = "CostAmt"; + + /** Set Cost Value. + * Value with Cost + */ + public void setCostAmt (BigDecimal CostAmt); + + /** Get Cost Value. + * Value with Cost + */ + public BigDecimal getCostAmt(); + + /** Column name CostStandard */ + public static final String COLUMNNAME_CostStandard = "CostStandard"; + + /** Set Standard Cost. + * Standard Costs + */ + public void setCostStandard (BigDecimal CostStandard); + + /** Get Standard Cost. + * Standard Costs + */ + public BigDecimal getCostStandard(); + + /** Column name CostStandardAmt */ + public static final String COLUMNNAME_CostStandardAmt = "CostStandardAmt"; + + /** Set Standard Cost Value. + * Value in Standard Costs + */ + public void setCostStandardAmt (BigDecimal CostStandardAmt); + + /** Get Standard Cost Value. + * Value in Standard Costs + */ + public BigDecimal getCostStandardAmt(); + + /** Column name DateValue */ + public static final String COLUMNNAME_DateValue = "DateValue"; + + /** Set Valuation Date. + * Date of valuation + */ + public void setDateValue (Timestamp DateValue); + + /** Get Valuation Date. + * Date of valuation + */ + public Timestamp getDateValue(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_CostElement_ID */ + public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; + + /** Set Cost Element. + * Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID); + + /** Get Cost Element. + * Product Cost Element + */ + public int getM_CostElement_ID(); + + public I_M_CostElement getI_M_CostElement() throws Exception; + + /** Column name M_PriceList_Version_ID */ + public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; + + /** Set Price List Version. + * Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID); + + /** Get Price List Version. + * Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID(); + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception; + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name PriceLimit */ + public static final String COLUMNNAME_PriceLimit = "PriceLimit"; + + /** Set Limit Price. + * Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit); + + /** Get Limit Price. + * Lowest price for a product + */ + public BigDecimal getPriceLimit(); + + /** Column name PriceLimitAmt */ + public static final String COLUMNNAME_PriceLimitAmt = "PriceLimitAmt"; + + /** Set Limit price Value. + * Value with limit price + */ + public void setPriceLimitAmt (BigDecimal PriceLimitAmt); + + /** Get Limit price Value. + * Value with limit price + */ + public BigDecimal getPriceLimitAmt(); + + /** Column name PriceList */ + public static final String COLUMNNAME_PriceList = "PriceList"; + + /** Set List Price. + * List Price + */ + public void setPriceList (BigDecimal PriceList); + + /** Get List Price. + * List Price + */ + public BigDecimal getPriceList(); + + /** Column name PriceListAmt */ + public static final String COLUMNNAME_PriceListAmt = "PriceListAmt"; + + /** Set List price Value. + * Valuation with List Price + */ + public void setPriceListAmt (BigDecimal PriceListAmt); + + /** Get List price Value. + * Valuation with List Price + */ + public BigDecimal getPriceListAmt(); + + /** Column name PricePO */ + public static final String COLUMNNAME_PricePO = "PricePO"; + + /** Set PO Price. + * Price based on a purchase order + */ + public void setPricePO (BigDecimal PricePO); + + /** Get PO Price. + * Price based on a purchase order + */ + public BigDecimal getPricePO(); + + /** Column name PricePOAmt */ + public static final String COLUMNNAME_PricePOAmt = "PricePOAmt"; + + /** Set PO Price Value. + * Valuation with PO Price + */ + public void setPricePOAmt (BigDecimal PricePOAmt); + + /** Get PO Price Value. + * Valuation with PO Price + */ + public BigDecimal getPricePOAmt(); + + /** Column name PriceStd */ + public static final String COLUMNNAME_PriceStd = "PriceStd"; + + /** Set Standard Price. + * Standard Price + */ + public void setPriceStd (BigDecimal PriceStd); + + /** Get Standard Price. + * Standard Price + */ + public BigDecimal getPriceStd(); + + /** Column name PriceStdAmt */ + public static final String COLUMNNAME_PriceStdAmt = "PriceStdAmt"; + + /** Set Std Price Value. + * Valuation with standard price + */ + public void setPriceStdAmt (BigDecimal PriceStdAmt); + + /** Get Std Price Value. + * Valuation with standard price + */ + public BigDecimal getPriceStdAmt(); + + /** Column name QtyOnHand */ + public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; + + /** Set On Hand Quantity. + * On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand); + + /** Get On Hand Quantity. + * On Hand Quantity + */ + public BigDecimal getQtyOnHand(); +} diff --git a/base/src/org/compiere/model/I_T_InvoiceGL.java b/base/src/org/compiere/model/I_T_InvoiceGL.java new file mode 100644 index 0000000000..05e1c045a8 --- /dev/null +++ b/base/src/org/compiere/model/I_T_InvoiceGL.java @@ -0,0 +1,279 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_InvoiceGL + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.625 + */ + public interface I_T_InvoiceGL +{ + + /** TableName=T_InvoiceGL */ + public static final String Table_Name = "T_InvoiceGL"; + + /** AD_Table_ID=803 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name APAR */ + public static final String COLUMNNAME_APAR = "APAR"; + + /** Set AP - AR. + * Include Receivables and/or Payables transactions + */ + public void setAPAR (String APAR); + + /** Get AP - AR. + * Include Receivables and/or Payables transactions + */ + public String getAPAR(); + + /** Column name AmtAcctBalance */ + public static final String COLUMNNAME_AmtAcctBalance = "AmtAcctBalance"; + + /** Set Accounted Balance. + * Accounted Balance Amount + */ + public void setAmtAcctBalance (BigDecimal AmtAcctBalance); + + /** Get Accounted Balance. + * Accounted Balance Amount + */ + public BigDecimal getAmtAcctBalance(); + + /** Column name AmtRevalCr */ + public static final String COLUMNNAME_AmtRevalCr = "AmtRevalCr"; + + /** Set Revaluated Amount Cr. + * Revaluated Cr Amount + */ + public void setAmtRevalCr (BigDecimal AmtRevalCr); + + /** Get Revaluated Amount Cr. + * Revaluated Cr Amount + */ + public BigDecimal getAmtRevalCr(); + + /** Column name AmtRevalCrDiff */ + public static final String COLUMNNAME_AmtRevalCrDiff = "AmtRevalCrDiff"; + + /** Set Revaluated Difference Cr. + * Revaluated Cr Amount Difference + */ + public void setAmtRevalCrDiff (BigDecimal AmtRevalCrDiff); + + /** Get Revaluated Difference Cr. + * Revaluated Cr Amount Difference + */ + public BigDecimal getAmtRevalCrDiff(); + + /** Column name AmtRevalDr */ + public static final String COLUMNNAME_AmtRevalDr = "AmtRevalDr"; + + /** Set Revaluated Amount Dr. + * Revaluated Dr Amount + */ + public void setAmtRevalDr (BigDecimal AmtRevalDr); + + /** Get Revaluated Amount Dr. + * Revaluated Dr Amount + */ + public BigDecimal getAmtRevalDr(); + + /** Column name AmtRevalDrDiff */ + public static final String COLUMNNAME_AmtRevalDrDiff = "AmtRevalDrDiff"; + + /** Set Revaluated Difference Dr. + * Revaluated Dr Amount Difference + */ + public void setAmtRevalDrDiff (BigDecimal AmtRevalDrDiff); + + /** Get Revaluated Difference Dr. + * Revaluated Dr Amount Difference + */ + public BigDecimal getAmtRevalDrDiff(); + + /** Column name AmtSourceBalance */ + public static final String COLUMNNAME_AmtSourceBalance = "AmtSourceBalance"; + + /** Set Source Balance. + * Source Balance Amount + */ + public void setAmtSourceBalance (BigDecimal AmtSourceBalance); + + /** Get Source Balance. + * Source Balance Amount + */ + public BigDecimal getAmtSourceBalance(); + + /** Column name C_ConversionTypeReval_ID */ + public static final String COLUMNNAME_C_ConversionTypeReval_ID = "C_ConversionTypeReval_ID"; + + /** Set Revaluation Conversion Type. + * Revaluation Currency Conversion Type + */ + public void setC_ConversionTypeReval_ID (int C_ConversionTypeReval_ID); + + /** Get Revaluation Conversion Type. + * Revaluation Currency Conversion Type + */ + public int getC_ConversionTypeReval_ID(); + + /** Column name C_DocTypeReval_ID */ + public static final String COLUMNNAME_C_DocTypeReval_ID = "C_DocTypeReval_ID"; + + /** Set Revaluation Document Type. + * Document Type for Revaluation Journal + */ + public void setC_DocTypeReval_ID (int C_DocTypeReval_ID); + + /** Get Revaluation Document Type. + * Document Type for Revaluation Journal + */ + public int getC_DocTypeReval_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** Column name DateReval */ + public static final String COLUMNNAME_DateReval = "DateReval"; + + /** Set Revaluation Date. + * Date of Revaluation + */ + public void setDateReval (Timestamp DateReval); + + /** Get Revaluation Date. + * Date of Revaluation + */ + public Timestamp getDateReval(); + + /** Column name Fact_Acct_ID */ + public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; + + /** Set Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID); + + /** Get Accounting Fact */ + public int getFact_Acct_ID(); + + /** Column name GrandTotal */ + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + + /** Set Grand Total. + * Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal); + + /** Get Grand Total. + * Total amount of document + */ + public BigDecimal getGrandTotal(); + + /** Column name IsAllCurrencies */ + public static final String COLUMNNAME_IsAllCurrencies = "IsAllCurrencies"; + + /** Set Include All Currencies. + * Report not just foreign currency Invoices + */ + public void setIsAllCurrencies (boolean IsAllCurrencies); + + /** Get Include All Currencies. + * Report not just foreign currency Invoices + */ + public boolean isAllCurrencies(); + + /** Column name OpenAmt */ + public static final String COLUMNNAME_OpenAmt = "OpenAmt"; + + /** Set Open Amount. + * Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt); + + /** Get Open Amount. + * Open item amount + */ + public BigDecimal getOpenAmt(); + + /** Column name Percent */ + public static final String COLUMNNAME_Percent = "Percent"; + + /** Set Percent. + * Percentage + */ + public void setPercent (BigDecimal Percent); + + /** Get Percent. + * Percentage + */ + public BigDecimal getPercent(); +} diff --git a/base/src/org/compiere/model/I_T_Replenish.java b/base/src/org/compiere/model/I_T_Replenish.java new file mode 100644 index 0000000000..ba6ddf15dd --- /dev/null +++ b/base/src/org/compiere/model/I_T_Replenish.java @@ -0,0 +1,270 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_Replenish + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:55.656 + */ + public interface I_T_Replenish +{ + + /** TableName=T_Replenish */ + public static final String Table_Name = "T_Replenish"; + + /** AD_Table_ID=364 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getI_C_DocType() throws Exception; + + /** Column name Level_Max */ + public static final String COLUMNNAME_Level_Max = "Level_Max"; + + /** Set Maximum Level. + * Maximum Inventory level for this product + */ + public void setLevel_Max (BigDecimal Level_Max); + + /** Get Maximum Level. + * Maximum Inventory level for this product + */ + public BigDecimal getLevel_Max(); + + /** Column name Level_Min */ + public static final String COLUMNNAME_Level_Min = "Level_Min"; + + /** Set Minimum Level. + * Minimum Inventory level for this product + */ + public void setLevel_Min (BigDecimal Level_Min); + + /** Get Minimum Level. + * Minimum Inventory level for this product + */ + public BigDecimal getLevel_Min(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_WarehouseSource_ID */ + public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; + + /** Set Source Warehouse. + * Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID); + + /** Get Source Warehouse. + * Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Order_Min */ + public static final String COLUMNNAME_Order_Min = "Order_Min"; + + /** Set Minimum Order Qty. + * Minimum order quantity in UOM + */ + public void setOrder_Min (BigDecimal Order_Min); + + /** Get Minimum Order Qty. + * Minimum order quantity in UOM + */ + public BigDecimal getOrder_Min(); + + /** Column name Order_Pack */ + public static final String COLUMNNAME_Order_Pack = "Order_Pack"; + + /** Set Order Pack Qty. + * Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (BigDecimal Order_Pack); + + /** Get Order Pack Qty. + * Package order size in UOM (e.g. order set of 5 units) + */ + public BigDecimal getOrder_Pack(); + + /** Column name QtyOnHand */ + public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; + + /** Set On Hand Quantity. + * On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand); + + /** Get On Hand Quantity. + * On Hand Quantity + */ + public BigDecimal getQtyOnHand(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name QtyReserved */ + public static final String COLUMNNAME_QtyReserved = "QtyReserved"; + + /** Set Reserved Quantity. + * Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved); + + /** Get Reserved Quantity. + * Reserved Quantity + */ + public BigDecimal getQtyReserved(); + + /** Column name QtyToOrder */ + public static final String COLUMNNAME_QtyToOrder = "QtyToOrder"; + + /** Set Quantity to Order */ + public void setQtyToOrder (BigDecimal QtyToOrder); + + /** Get Quantity to Order */ + public BigDecimal getQtyToOrder(); + + /** Column name ReplenishType */ + public static final String COLUMNNAME_ReplenishType = "ReplenishType"; + + /** Set Replenish Type. + * Method for re-ordering a product + */ + public void setReplenishType (String ReplenishType); + + /** Get Replenish Type. + * Method for re-ordering a product + */ + public String getReplenishType(); + + /** Column name ReplenishmentCreate */ + public static final String COLUMNNAME_ReplenishmentCreate = "ReplenishmentCreate"; + + /** Set Create. + * Create from Replenishment + */ + public void setReplenishmentCreate (String ReplenishmentCreate); + + /** Get Create. + * Create from Replenishment + */ + public String getReplenishmentCreate(); +} diff --git a/base/src/org/compiere/model/I_T_Report.java b/base/src/org/compiere/model/I_T_Report.java new file mode 100644 index 0000000000..abceb291fe --- /dev/null +++ b/base/src/org/compiere/model/I_T_Report.java @@ -0,0 +1,347 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_Report + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.171 + */ + public interface I_T_Report +{ + + /** TableName=T_Report */ + public static final String Table_Name = "T_Report"; + + /** AD_Table_ID=544 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name Col_0 */ + public static final String COLUMNNAME_Col_0 = "Col_0"; + + /** Set Col_0 */ + public void setCol_0 (BigDecimal Col_0); + + /** Get Col_0 */ + public BigDecimal getCol_0(); + + /** Column name Col_1 */ + public static final String COLUMNNAME_Col_1 = "Col_1"; + + /** Set Col_1 */ + public void setCol_1 (BigDecimal Col_1); + + /** Get Col_1 */ + public BigDecimal getCol_1(); + + /** Column name Col_10 */ + public static final String COLUMNNAME_Col_10 = "Col_10"; + + /** Set Col_10 */ + public void setCol_10 (BigDecimal Col_10); + + /** Get Col_10 */ + public BigDecimal getCol_10(); + + /** Column name Col_11 */ + public static final String COLUMNNAME_Col_11 = "Col_11"; + + /** Set Col_11 */ + public void setCol_11 (BigDecimal Col_11); + + /** Get Col_11 */ + public BigDecimal getCol_11(); + + /** Column name Col_12 */ + public static final String COLUMNNAME_Col_12 = "Col_12"; + + /** Set Col_12 */ + public void setCol_12 (BigDecimal Col_12); + + /** Get Col_12 */ + public BigDecimal getCol_12(); + + /** Column name Col_13 */ + public static final String COLUMNNAME_Col_13 = "Col_13"; + + /** Set Col_13 */ + public void setCol_13 (BigDecimal Col_13); + + /** Get Col_13 */ + public BigDecimal getCol_13(); + + /** Column name Col_14 */ + public static final String COLUMNNAME_Col_14 = "Col_14"; + + /** Set Col_14 */ + public void setCol_14 (BigDecimal Col_14); + + /** Get Col_14 */ + public BigDecimal getCol_14(); + + /** Column name Col_15 */ + public static final String COLUMNNAME_Col_15 = "Col_15"; + + /** Set Col_15 */ + public void setCol_15 (BigDecimal Col_15); + + /** Get Col_15 */ + public BigDecimal getCol_15(); + + /** Column name Col_16 */ + public static final String COLUMNNAME_Col_16 = "Col_16"; + + /** Set Col_16 */ + public void setCol_16 (BigDecimal Col_16); + + /** Get Col_16 */ + public BigDecimal getCol_16(); + + /** Column name Col_17 */ + public static final String COLUMNNAME_Col_17 = "Col_17"; + + /** Set Col_17 */ + public void setCol_17 (BigDecimal Col_17); + + /** Get Col_17 */ + public BigDecimal getCol_17(); + + /** Column name Col_18 */ + public static final String COLUMNNAME_Col_18 = "Col_18"; + + /** Set Col_18 */ + public void setCol_18 (BigDecimal Col_18); + + /** Get Col_18 */ + public BigDecimal getCol_18(); + + /** Column name Col_19 */ + public static final String COLUMNNAME_Col_19 = "Col_19"; + + /** Set Col_19 */ + public void setCol_19 (BigDecimal Col_19); + + /** Get Col_19 */ + public BigDecimal getCol_19(); + + /** Column name Col_2 */ + public static final String COLUMNNAME_Col_2 = "Col_2"; + + /** Set Col_2 */ + public void setCol_2 (BigDecimal Col_2); + + /** Get Col_2 */ + public BigDecimal getCol_2(); + + /** Column name Col_20 */ + public static final String COLUMNNAME_Col_20 = "Col_20"; + + /** Set Col_20 */ + public void setCol_20 (BigDecimal Col_20); + + /** Get Col_20 */ + public BigDecimal getCol_20(); + + /** Column name Col_3 */ + public static final String COLUMNNAME_Col_3 = "Col_3"; + + /** Set Col_3 */ + public void setCol_3 (BigDecimal Col_3); + + /** Get Col_3 */ + public BigDecimal getCol_3(); + + /** Column name Col_4 */ + public static final String COLUMNNAME_Col_4 = "Col_4"; + + /** Set Col_4 */ + public void setCol_4 (BigDecimal Col_4); + + /** Get Col_4 */ + public BigDecimal getCol_4(); + + /** Column name Col_5 */ + public static final String COLUMNNAME_Col_5 = "Col_5"; + + /** Set Col_5 */ + public void setCol_5 (BigDecimal Col_5); + + /** Get Col_5 */ + public BigDecimal getCol_5(); + + /** Column name Col_6 */ + public static final String COLUMNNAME_Col_6 = "Col_6"; + + /** Set Col_6 */ + public void setCol_6 (BigDecimal Col_6); + + /** Get Col_6 */ + public BigDecimal getCol_6(); + + /** Column name Col_7 */ + public static final String COLUMNNAME_Col_7 = "Col_7"; + + /** Set Col_7 */ + public void setCol_7 (BigDecimal Col_7); + + /** Get Col_7 */ + public BigDecimal getCol_7(); + + /** Column name Col_8 */ + public static final String COLUMNNAME_Col_8 = "Col_8"; + + /** Set Col_8 */ + public void setCol_8 (BigDecimal Col_8); + + /** Get Col_8 */ + public BigDecimal getCol_8(); + + /** Column name Col_9 */ + public static final String COLUMNNAME_Col_9 = "Col_9"; + + /** Set Col_9 */ + public void setCol_9 (BigDecimal Col_9); + + /** Get Col_9 */ + public BigDecimal getCol_9(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Fact_Acct_ID */ + public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; + + /** Set Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID); + + /** Get Accounting Fact */ + public int getFact_Acct_ID(); + + /** Column name LevelNo */ + public static final String COLUMNNAME_LevelNo = "LevelNo"; + + /** Set Level no */ + public void setLevelNo (int LevelNo); + + /** Get Level no */ + public int getLevelNo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PA_ReportLine_ID */ + public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; + + /** Set Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID); + + /** Get Report Line */ + public int getPA_ReportLine_ID(); + + public I_PA_ReportLine getI_PA_ReportLine() throws Exception; + + /** Column name Record_ID */ + public static final String COLUMNNAME_Record_ID = "Record_ID"; + + /** Set Record ID. + * Direct internal record ID + */ + public void setRecord_ID (int Record_ID); + + /** Get Record ID. + * Direct internal record ID + */ + public int getRecord_ID(); + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); +} diff --git a/base/src/org/compiere/model/I_T_ReportStatement.java b/base/src/org/compiere/model/I_T_ReportStatement.java new file mode 100644 index 0000000000..5a345c1107 --- /dev/null +++ b/base/src/org/compiere/model/I_T_ReportStatement.java @@ -0,0 +1,180 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_ReportStatement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.203 + */ + public interface I_T_ReportStatement +{ + + /** TableName=T_ReportStatement */ + public static final String Table_Name = "T_ReportStatement"; + + /** AD_Table_ID=545 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getI_AD_PInstance() throws Exception; + + /** Column name AmtAcctCr */ + public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; + + /** Set Accounted Credit. + * Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr); + + /** Get Accounted Credit. + * Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr(); + + /** Column name AmtAcctDr */ + public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; + + /** Set Accounted Debit. + * Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr); + + /** Get Accounted Debit. + * Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr(); + + /** Column name Balance */ + public static final String COLUMNNAME_Balance = "Balance"; + + /** Set Balance */ + public void setBalance (BigDecimal Balance); + + /** Get Balance */ + public BigDecimal getBalance(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Fact_Acct_ID */ + public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; + + /** Set Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID); + + /** Get Accounting Fact */ + public int getFact_Acct_ID(); + + /** Column name LevelNo */ + public static final String COLUMNNAME_LevelNo = "LevelNo"; + + /** Set Level no */ + public void setLevelNo (int LevelNo); + + /** Get Level no */ + public int getLevelNo(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); +} diff --git a/base/src/org/compiere/model/I_T_Transaction.java b/base/src/org/compiere/model/I_T_Transaction.java new file mode 100644 index 0000000000..c9c78eef6a --- /dev/null +++ b/base/src/org/compiere/model/I_T_Transaction.java @@ -0,0 +1,329 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for T_Transaction + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.218 + */ + public interface I_T_Transaction +{ + + /** TableName=T_Transaction */ + public static final String Table_Name = "T_Transaction"; + + /** AD_Table_ID=758 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name M_Movement_ID */ + public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + + /** Set Inventory Move. + * Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID); + + /** Get Inventory Move. + * Movement of Inventory + */ + public int getM_Movement_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + /** Column name M_Production_ID */ + public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; + + /** Set Production. + * Plan for producing a product + */ + public void setM_Production_ID (int M_Production_ID); + + /** Get Production. + * Plan for producing a product + */ + public int getM_Production_ID(); + + /** Column name M_Transaction_ID */ + public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; + + /** Set Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID); + + /** Get Inventory Transaction */ + public int getM_Transaction_ID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name MovementType */ + public static final String COLUMNNAME_MovementType = "MovementType"; + + /** Set Movement Type. + * Method of moving the inventory + */ + public void setMovementType (String MovementType); + + /** Get Movement Type. + * Method of moving the inventory + */ + public String getMovementType(); + + /** Column name Search_InOut_ID */ + public static final String COLUMNNAME_Search_InOut_ID = "Search_InOut_ID"; + + /** Set Search Shipment/Receipt. + * Material Shipment Document + */ + public void setSearch_InOut_ID (int Search_InOut_ID); + + /** Get Search Shipment/Receipt. + * Material Shipment Document + */ + public int getSearch_InOut_ID(); + + /** Column name Search_Invoice_ID */ + public static final String COLUMNNAME_Search_Invoice_ID = "Search_Invoice_ID"; + + /** Set Search Invoice. + * Search Invoice Identifier + */ + public void setSearch_Invoice_ID (int Search_Invoice_ID); + + /** Get Search Invoice. + * Search Invoice Identifier + */ + public int getSearch_Invoice_ID(); + + /** Column name Search_Order_ID */ + public static final String COLUMNNAME_Search_Order_ID = "Search_Order_ID"; + + /** Set Search Order. + * Order Identifier + */ + public void setSearch_Order_ID (int Search_Order_ID); + + /** Get Search Order. + * Order Identifier + */ + public int getSearch_Order_ID(); +} diff --git a/base/src/org/compiere/model/I_Test.java b/base/src/org/compiere/model/I_Test.java new file mode 100644 index 0000000000..89be9800af --- /dev/null +++ b/base/src/org/compiere/model/I_Test.java @@ -0,0 +1,314 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for Test + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.281 + */ + public interface I_Test +{ + + /** TableName=Test */ + public static final String Table_Name = "Test"; + + /** AD_Table_ID=135 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name Account_Acct */ + public static final String COLUMNNAME_Account_Acct = "Account_Acct"; + + /** Set Account_Acct */ + public void setAccount_Acct (int Account_Acct); + + /** Get Account_Acct */ + public int getAccount_Acct(); + + /** Column name BinaryData */ + public static final String COLUMNNAME_BinaryData = "BinaryData"; + + /** Set BinaryData. + * Binary Data + */ + public void setBinaryData (int BinaryData); + + /** Get BinaryData. + * Binary Data + */ + public int getBinaryData(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name C_Currency_ID */ + public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** Set Currency. + * The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID); + + /** Get Currency. + * The Currency for this record + */ + public int getC_Currency_ID(); + + public I_C_Currency getI_C_Currency() throws Exception; + + /** Column name C_Location_ID */ + public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; + + /** Set Address. + * Location or Address + */ + public void setC_Location_ID (int C_Location_ID); + + /** Get Address. + * Location or Address + */ + public int getC_Location_ID(); + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getI_C_UOM() throws Exception; + + /** Column name CharacterData */ + public static final String COLUMNNAME_CharacterData = "CharacterData"; + + /** Set Character Data. + * Long Character Field + */ + public void setCharacterData (String CharacterData); + + /** Get Character Data. + * Long Character Field + */ + public String getCharacterData(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name T_Amount */ + public static final String COLUMNNAME_T_Amount = "T_Amount"; + + /** Set Amount */ + public void setT_Amount (BigDecimal T_Amount); + + /** Get Amount */ + public BigDecimal getT_Amount(); + + /** Column name T_Date */ + public static final String COLUMNNAME_T_Date = "T_Date"; + + /** Set Date */ + public void setT_Date (Timestamp T_Date); + + /** Get Date */ + public Timestamp getT_Date(); + + /** Column name T_DateTime */ + public static final String COLUMNNAME_T_DateTime = "T_DateTime"; + + /** Set DateTime */ + public void setT_DateTime (Timestamp T_DateTime); + + /** Get DateTime */ + public Timestamp getT_DateTime(); + + /** Column name T_Integer */ + public static final String COLUMNNAME_T_Integer = "T_Integer"; + + /** Set Integer */ + public void setT_Integer (int T_Integer); + + /** Get Integer */ + public int getT_Integer(); + + /** Column name T_Number */ + public static final String COLUMNNAME_T_Number = "T_Number"; + + /** Set Number */ + public void setT_Number (BigDecimal T_Number); + + /** Get Number */ + public BigDecimal getT_Number(); + + /** Column name T_Qty */ + public static final String COLUMNNAME_T_Qty = "T_Qty"; + + /** Set Qty */ + public void setT_Qty (BigDecimal T_Qty); + + /** Get Qty */ + public BigDecimal getT_Qty(); + + /** Column name Test_ID */ + public static final String COLUMNNAME_Test_ID = "Test_ID"; + + /** Set Test ID */ + public void setTest_ID (int Test_ID); + + /** Get Test ID */ + public int getTest_ID(); +} diff --git a/base/src/org/compiere/model/I_W_Advertisement.java b/base/src/org/compiere/model/I_W_Advertisement.java new file mode 100644 index 0000000000..65d596ef94 --- /dev/null +++ b/base/src/org/compiere/model/I_W_Advertisement.java @@ -0,0 +1,322 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_Advertisement + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.328 + */ + public interface I_W_Advertisement +{ + + /** TableName=W_Advertisement */ + public static final String Table_Name = "W_Advertisement"; + + /** AD_Table_ID=579 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + public I_AD_User getI_AD_User() throws Exception; + + /** Column name AdText */ + public static final String COLUMNNAME_AdText = "AdText"; + + /** Set Advertisement Text. + * Text of the Advertisement + */ + public void setAdText (String AdText); + + /** Get Advertisement Text. + * Text of the Advertisement + */ + public String getAdText(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name PublishStatus */ + public static final String COLUMNNAME_PublishStatus = "PublishStatus"; + + /** Set Publication Status. + * Status of Publication + */ + public void setPublishStatus (String PublishStatus); + + /** Get Publication Status. + * Status of Publication + */ + public String getPublishStatus(); + + /** Column name ValidFrom */ + public static final String COLUMNNAME_ValidFrom = "ValidFrom"; + + /** Set Valid from. + * Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom); + + /** Get Valid from. + * Valid from including this date (first day) + */ + public Timestamp getValidFrom(); + + /** Column name ValidTo */ + public static final String COLUMNNAME_ValidTo = "ValidTo"; + + /** Set Valid to. + * Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo); + + /** Get Valid to. + * Valid to including this date (last day) + */ + public Timestamp getValidTo(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (int Version); + + /** Get Version. + * Version of the table definition + */ + public int getVersion(); + + /** Column name W_Advertisement_ID */ + public static final String COLUMNNAME_W_Advertisement_ID = "W_Advertisement_ID"; + + /** Set Advertisement. + * Web Advertisement + */ + public void setW_Advertisement_ID (int W_Advertisement_ID); + + /** Get Advertisement. + * Web Advertisement + */ + public int getW_Advertisement_ID(); + + /** Column name W_ClickCount_ID */ + public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID"; + + /** Set Click Count. + * Web Click Management + */ + public void setW_ClickCount_ID (int W_ClickCount_ID); + + /** Get Click Count. + * Web Click Management + */ + public int getW_ClickCount_ID(); + + public I_W_ClickCount getI_W_ClickCount() throws Exception; + + /** Column name W_CounterCount_ID */ + public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID"; + + /** Set Counter Count. + * Web Counter Count Management + */ + public void setW_CounterCount_ID (int W_CounterCount_ID); + + /** Get Counter Count. + * Web Counter Count Management + */ + public int getW_CounterCount_ID(); + + public I_W_CounterCount getI_W_CounterCount() throws Exception; + + /** Column name WebParam1 */ + public static final String COLUMNNAME_WebParam1 = "WebParam1"; + + /** Set Web Parameter 1. + * Web Site Parameter 1 (default: header image) + */ + public void setWebParam1 (String WebParam1); + + /** Get Web Parameter 1. + * Web Site Parameter 1 (default: header image) + */ + public String getWebParam1(); + + /** Column name WebParam2 */ + public static final String COLUMNNAME_WebParam2 = "WebParam2"; + + /** Set Web Parameter 2. + * Web Site Parameter 2 (default index page) + */ + public void setWebParam2 (String WebParam2); + + /** Get Web Parameter 2. + * Web Site Parameter 2 (default index page) + */ + public String getWebParam2(); + + /** Column name WebParam3 */ + public static final String COLUMNNAME_WebParam3 = "WebParam3"; + + /** Set Web Parameter 3. + * Web Site Parameter 3 (default left - menu) + */ + public void setWebParam3 (String WebParam3); + + /** Get Web Parameter 3. + * Web Site Parameter 3 (default left - menu) + */ + public String getWebParam3(); + + /** Column name WebParam4 */ + public static final String COLUMNNAME_WebParam4 = "WebParam4"; + + /** Set Web Parameter 4. + * Web Site Parameter 4 (default footer left) + */ + public void setWebParam4 (String WebParam4); + + /** Get Web Parameter 4. + * Web Site Parameter 4 (default footer left) + */ + public String getWebParam4(); +} diff --git a/base/src/org/compiere/model/I_W_Basket.java b/base/src/org/compiere/model/I_W_Basket.java new file mode 100644 index 0000000000..08757204d6 --- /dev/null +++ b/base/src/org/compiere/model/I_W_Basket.java @@ -0,0 +1,136 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_Basket + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.359 + */ + public interface I_W_Basket +{ + + /** TableName=W_Basket */ + public static final String Table_Name = "W_Basket"; + + /** AD_Table_ID=402 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name Session_ID */ + public static final String COLUMNNAME_Session_ID = "Session_ID"; + + /** Set Session ID */ + public void setSession_ID (int Session_ID); + + /** Get Session ID */ + public int getSession_ID(); + + /** Column name W_Basket_ID */ + public static final String COLUMNNAME_W_Basket_ID = "W_Basket_ID"; + + /** Set W_Basket_ID. + * Web Basket + */ + public void setW_Basket_ID (int W_Basket_ID); + + /** Get W_Basket_ID. + * Web Basket + */ + public int getW_Basket_ID(); +} diff --git a/base/src/org/compiere/model/I_W_BasketLine.java b/base/src/org/compiere/model/I_W_BasketLine.java new file mode 100644 index 0000000000..711efc851d --- /dev/null +++ b/base/src/org/compiere/model/I_W_BasketLine.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_BasketLine + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.39 + */ + public interface I_W_BasketLine +{ + + /** TableName=W_BasketLine */ + public static final String Table_Name = "W_BasketLine"; + + /** AD_Table_ID=549 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 4 - System + */ + BigDecimal accessLevel = new BigDecimal(4); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_Product_ID */ + public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** Set Product. + * Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID); + + /** Get Product. + * Product, Service, Item + */ + public int getM_Product_ID(); + + /** Column name Price */ + public static final String COLUMNNAME_Price = "Price"; + + /** Set Price. + * Price + */ + public void setPrice (BigDecimal Price); + + /** Get Price. + * Price + */ + public BigDecimal getPrice(); + + /** Column name Product */ + public static final String COLUMNNAME_Product = "Product"; + + /** Set Product */ + public void setProduct (String Product); + + /** Get Product */ + public String getProduct(); + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name W_BasketLine_ID */ + public static final String COLUMNNAME_W_BasketLine_ID = "W_BasketLine_ID"; + + /** Set Basket Line. + * Web Basket Line + */ + public void setW_BasketLine_ID (int W_BasketLine_ID); + + /** Get Basket Line. + * Web Basket Line + */ + public int getW_BasketLine_ID(); + + /** Column name W_Basket_ID */ + public static final String COLUMNNAME_W_Basket_ID = "W_Basket_ID"; + + /** Set W_Basket_ID. + * Web Basket + */ + public void setW_Basket_ID (int W_Basket_ID); + + /** Get W_Basket_ID. + * Web Basket + */ + public int getW_Basket_ID(); + + public I_W_Basket getI_W_Basket() throws Exception; +} diff --git a/base/src/org/compiere/model/I_W_Click.java b/base/src/org/compiere/model/I_W_Click.java new file mode 100644 index 0000000000..3bf4ed76cf --- /dev/null +++ b/base/src/org/compiere/model/I_W_Click.java @@ -0,0 +1,205 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_Click + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.421 + */ + public interface I_W_Click +{ + + /** TableName=W_Click */ + public static final String Table_Name = "W_Click"; + + /** AD_Table_ID=550 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AcceptLanguage */ + public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage"; + + /** Set Accept Language. + * Language accepted based on browser information + */ + public void setAcceptLanguage (String AcceptLanguage); + + /** Get Accept Language. + * Language accepted based on browser information + */ + public String getAcceptLanguage(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Referrer */ + public static final String COLUMNNAME_Referrer = "Referrer"; + + /** Set Referrer. + * Referring web address + */ + public void setReferrer (String Referrer); + + /** Get Referrer. + * Referring web address + */ + public String getReferrer(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name TargetURL */ + public static final String COLUMNNAME_TargetURL = "TargetURL"; + + /** Set Target URL. + * URL for the Target + */ + public void setTargetURL (String TargetURL); + + /** Get Target URL. + * URL for the Target + */ + public String getTargetURL(); + + /** Column name UserAgent */ + public static final String COLUMNNAME_UserAgent = "UserAgent"; + + /** Set User Agent. + * Browser Used + */ + public void setUserAgent (String UserAgent); + + /** Get User Agent. + * Browser Used + */ + public String getUserAgent(); + + /** Column name W_ClickCount_ID */ + public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID"; + + /** Set Click Count. + * Web Click Management + */ + public void setW_ClickCount_ID (int W_ClickCount_ID); + + /** Get Click Count. + * Web Click Management + */ + public int getW_ClickCount_ID(); + + public I_W_ClickCount getI_W_ClickCount() throws Exception; + + /** Column name W_Click_ID */ + public static final String COLUMNNAME_W_Click_ID = "W_Click_ID"; + + /** Set Web Click. + * Individual Web Click + */ + public void setW_Click_ID (int W_Click_ID); + + /** Get Web Click. + * Individual Web Click + */ + public int getW_Click_ID(); +} diff --git a/base/src/org/compiere/model/I_W_ClickCount.java b/base/src/org/compiere/model/I_W_ClickCount.java new file mode 100644 index 0000000000..70bd9caebf --- /dev/null +++ b/base/src/org/compiere/model/I_W_ClickCount.java @@ -0,0 +1,138 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_ClickCount + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.453 + */ + public interface I_W_ClickCount +{ + + /** TableName=W_ClickCount */ + public static final String Table_Name = "W_ClickCount"; + + /** AD_Table_ID=553 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Counter */ + public static final String COLUMNNAME_Counter = "Counter"; + + /** Set Counter. + * Count Value + */ + public void setCounter (int Counter); + + /** Get Counter. + * Count Value + */ + public int getCounter(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name TargetURL */ + public static final String COLUMNNAME_TargetURL = "TargetURL"; + + /** Set Target URL. + * URL for the Target + */ + public void setTargetURL (String TargetURL); + + /** Get Target URL. + * URL for the Target + */ + public String getTargetURL(); + + /** Column name W_ClickCount_ID */ + public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID"; + + /** Set Click Count. + * Web Click Management + */ + public void setW_ClickCount_ID (int W_ClickCount_ID); + + /** Get Click Count. + * Web Click Management + */ + public int getW_ClickCount_ID(); +} diff --git a/base/src/org/compiere/model/I_W_Counter.java b/base/src/org/compiere/model/I_W_Counter.java new file mode 100644 index 0000000000..1a935beb6f --- /dev/null +++ b/base/src/org/compiere/model/I_W_Counter.java @@ -0,0 +1,201 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_Counter + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.468 + */ + public interface I_W_Counter +{ + + /** TableName=W_Counter */ + public static final String Table_Name = "W_Counter"; + + /** AD_Table_ID=403 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name AD_User_ID */ + public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** Set User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID); + + /** Get User/Contact. + * User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID(); + + /** Column name AcceptLanguage */ + public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage"; + + /** Set Accept Language. + * Language accepted based on browser information + */ + public void setAcceptLanguage (String AcceptLanguage); + + /** Get Accept Language. + * Language accepted based on browser information + */ + public String getAcceptLanguage(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name PageURL */ + public static final String COLUMNNAME_PageURL = "PageURL"; + + /** Set Page URL */ + public void setPageURL (String PageURL); + + /** Get Page URL */ + public String getPageURL(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Referrer */ + public static final String COLUMNNAME_Referrer = "Referrer"; + + /** Set Referrer. + * Referring web address + */ + public void setReferrer (String Referrer); + + /** Get Referrer. + * Referring web address + */ + public String getReferrer(); + + /** Column name Remote_Addr */ + public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; + + /** Set Remote Addr. + * Remote Address + */ + public void setRemote_Addr (String Remote_Addr); + + /** Get Remote Addr. + * Remote Address + */ + public String getRemote_Addr(); + + /** Column name Remote_Host */ + public static final String COLUMNNAME_Remote_Host = "Remote_Host"; + + /** Set Remote Host. + * Remote host Info + */ + public void setRemote_Host (String Remote_Host); + + /** Get Remote Host. + * Remote host Info + */ + public String getRemote_Host(); + + /** Column name UserAgent */ + public static final String COLUMNNAME_UserAgent = "UserAgent"; + + /** Set User Agent. + * Browser Used + */ + public void setUserAgent (String UserAgent); + + /** Get User Agent. + * Browser Used + */ + public String getUserAgent(); + + /** Column name W_CounterCount_ID */ + public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID"; + + /** Set Counter Count. + * Web Counter Count Management + */ + public void setW_CounterCount_ID (int W_CounterCount_ID); + + /** Get Counter Count. + * Web Counter Count Management + */ + public int getW_CounterCount_ID(); + + public I_W_CounterCount getI_W_CounterCount() throws Exception; + + /** Column name W_Counter_ID */ + public static final String COLUMNNAME_W_Counter_ID = "W_Counter_ID"; + + /** Set Web Counter. + * Individual Count hit + */ + public void setW_Counter_ID (int W_Counter_ID); + + /** Get Web Counter. + * Individual Count hit + */ + public int getW_Counter_ID(); +} diff --git a/base/src/org/compiere/model/I_W_CounterCount.java b/base/src/org/compiere/model/I_W_CounterCount.java new file mode 100644 index 0000000000..261ecd5de3 --- /dev/null +++ b/base/src/org/compiere/model/I_W_CounterCount.java @@ -0,0 +1,134 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_CounterCount + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.484 + */ + public interface I_W_CounterCount +{ + + /** TableName=W_CounterCount */ + public static final String Table_Name = "W_CounterCount"; + + /** AD_Table_ID=552 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = new BigDecimal(3); + + /** Load Meta Data */ + + /** Column name C_BPartner_ID */ + public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** Set Business Partner . + * Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID); + + /** Get Business Partner . + * Identifies a Business Partner + */ + public int getC_BPartner_ID(); + + /** Column name Counter */ + public static final String COLUMNNAME_Counter = "Counter"; + + /** Set Counter. + * Count Value + */ + public void setCounter (int Counter); + + /** Get Counter. + * Count Value + */ + public int getCounter(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name PageURL */ + public static final String COLUMNNAME_PageURL = "PageURL"; + + /** Set Page URL */ + public void setPageURL (String PageURL); + + /** Get Page URL */ + public String getPageURL(); + + /** Column name W_CounterCount_ID */ + public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID"; + + /** Set Counter Count. + * Web Counter Count Management + */ + public void setW_CounterCount_ID (int W_CounterCount_ID); + + /** Get Counter Count. + * Web Counter Count Management + */ + public int getW_CounterCount_ID(); +} diff --git a/base/src/org/compiere/model/I_W_MailMsg.java b/base/src/org/compiere/model/I_W_MailMsg.java new file mode 100644 index 0000000000..4dbe803826 --- /dev/null +++ b/base/src/org/compiere/model/I_W_MailMsg.java @@ -0,0 +1,179 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_MailMsg + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.5 + */ + public interface I_W_MailMsg +{ + + /** TableName=W_MailMsg */ + public static final String Table_Name = "W_MailMsg"; + + /** AD_Table_ID=780 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name MailMsgType */ + public static final String COLUMNNAME_MailMsgType = "MailMsgType"; + + /** Set Message Type. + * Mail Message Type + */ + public void setMailMsgType (String MailMsgType); + + /** Get Message Type. + * Mail Message Type + */ + public String getMailMsgType(); + + /** Column name Message */ + public static final String COLUMNNAME_Message = "Message"; + + /** Set Message. + * EMail Message + */ + public void setMessage (String Message); + + /** Get Message. + * EMail Message + */ + public String getMessage(); + + /** Column name Message2 */ + public static final String COLUMNNAME_Message2 = "Message2"; + + /** Set Message 2. + * Optional second part of the EMail Message + */ + public void setMessage2 (String Message2); + + /** Get Message 2. + * Optional second part of the EMail Message + */ + public String getMessage2(); + + /** Column name Message3 */ + public static final String COLUMNNAME_Message3 = "Message3"; + + /** Set Message 3. + * Optional third part of the EMail Message + */ + public void setMessage3 (String Message3); + + /** Get Message 3. + * Optional third part of the EMail Message + */ + public String getMessage3(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name Subject */ + public static final String COLUMNNAME_Subject = "Subject"; + + /** Set Subject. + * Email Message Subject + */ + public void setSubject (String Subject); + + /** Get Subject. + * Email Message Subject + */ + public String getSubject(); + + /** Column name W_MailMsg_ID */ + public static final String COLUMNNAME_W_MailMsg_ID = "W_MailMsg_ID"; + + /** Set Mail Message. + * Web Store Mail Message Template + */ + public void setW_MailMsg_ID (int W_MailMsg_ID); + + /** Get Mail Message. + * Web Store Mail Message Template + */ + public int getW_MailMsg_ID(); + + /** Column name W_Store_ID */ + public static final String COLUMNNAME_W_Store_ID = "W_Store_ID"; + + /** Set Web Store. + * A Web Store of the Client + */ + public void setW_Store_ID (int W_Store_ID); + + /** Get Web Store. + * A Web Store of the Client + */ + public int getW_Store_ID(); + + public I_W_Store getI_W_Store() throws Exception; +} diff --git a/base/src/org/compiere/model/I_W_Store.java b/base/src/org/compiere/model/I_W_Store.java new file mode 100644 index 0000000000..5eda61c89e --- /dev/null +++ b/base/src/org/compiere/model/I_W_Store.java @@ -0,0 +1,521 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; + without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; + if not, write to the Free Software * + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.util.*; +import java.sql.Timestamp; +import java.math.*; +import org.compiere.util.*; + + /** Generated Interface for W_Store + * @author Trifon Trifonov (generated) + * @version Release 3.3.0 - 2007-08-24 11:39:56.531 + */ + public interface I_W_Store +{ + + /** TableName=W_Store */ + public static final String Table_Name = "W_Store"; + + /** AD_Table_ID=778 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = new BigDecimal(2); + + /** Load Meta Data */ + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception; + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name EMailFooter */ + public static final String COLUMNNAME_EMailFooter = "EMailFooter"; + + /** Set EMail Footer. + * Footer added to EMails + */ + public void setEMailFooter (String EMailFooter); + + /** Get EMail Footer. + * Footer added to EMails + */ + public String getEMailFooter(); + + /** Column name EMailHeader */ + public static final String COLUMNNAME_EMailHeader = "EMailHeader"; + + /** Set EMail Header. + * Header added to EMails + */ + public void setEMailHeader (String EMailHeader); + + /** Get EMail Header. + * Header added to EMails + */ + public String getEMailHeader(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsMenuAssets */ + public static final String COLUMNNAME_IsMenuAssets = "IsMenuAssets"; + + /** Set Menu Assets. + * Show Menu Assets + */ + public void setIsMenuAssets (boolean IsMenuAssets); + + /** Get Menu Assets. + * Show Menu Assets + */ + public boolean isMenuAssets(); + + /** Column name IsMenuContact */ + public static final String COLUMNNAME_IsMenuContact = "IsMenuContact"; + + /** Set Menu Contact. + * Show Menu Contact + */ + public void setIsMenuContact (boolean IsMenuContact); + + /** Get Menu Contact. + * Show Menu Contact + */ + public boolean isMenuContact(); + + /** Column name IsMenuInterests */ + public static final String COLUMNNAME_IsMenuInterests = "IsMenuInterests"; + + /** Set Menu Interests. + * Show Menu Interests + */ + public void setIsMenuInterests (boolean IsMenuInterests); + + /** Get Menu Interests. + * Show Menu Interests + */ + public boolean isMenuInterests(); + + /** Column name IsMenuInvoices */ + public static final String COLUMNNAME_IsMenuInvoices = "IsMenuInvoices"; + + /** Set Menu Invoices. + * Show Menu Invoices + */ + public void setIsMenuInvoices (boolean IsMenuInvoices); + + /** Get Menu Invoices. + * Show Menu Invoices + */ + public boolean isMenuInvoices(); + + /** Column name IsMenuOrders */ + public static final String COLUMNNAME_IsMenuOrders = "IsMenuOrders"; + + /** Set Menu Orders. + * Show Menu Orders + */ + public void setIsMenuOrders (boolean IsMenuOrders); + + /** Get Menu Orders. + * Show Menu Orders + */ + public boolean isMenuOrders(); + + /** Column name IsMenuPayments */ + public static final String COLUMNNAME_IsMenuPayments = "IsMenuPayments"; + + /** Set Menu Payments. + * Show Menu Payments + */ + public void setIsMenuPayments (boolean IsMenuPayments); + + /** Get Menu Payments. + * Show Menu Payments + */ + public boolean isMenuPayments(); + + /** Column name IsMenuRegistrations */ + public static final String COLUMNNAME_IsMenuRegistrations = "IsMenuRegistrations"; + + /** Set Menu Registrations. + * Show Menu Registrations + */ + public void setIsMenuRegistrations (boolean IsMenuRegistrations); + + /** Get Menu Registrations. + * Show Menu Registrations + */ + public boolean isMenuRegistrations(); + + /** Column name IsMenuRequests */ + public static final String COLUMNNAME_IsMenuRequests = "IsMenuRequests"; + + /** Set Menu Requests. + * Show Menu Requests + */ + public void setIsMenuRequests (boolean IsMenuRequests); + + /** Get Menu Requests. + * Show Menu Requests + */ + public boolean isMenuRequests(); + + /** Column name IsMenuRfQs */ + public static final String COLUMNNAME_IsMenuRfQs = "IsMenuRfQs"; + + /** Set Menu RfQs. + * Show Menu RfQs + */ + public void setIsMenuRfQs (boolean IsMenuRfQs); + + /** Get Menu RfQs. + * Show Menu RfQs + */ + public boolean isMenuRfQs(); + + /** Column name IsMenuShipments */ + public static final String COLUMNNAME_IsMenuShipments = "IsMenuShipments"; + + /** Set Menu Shipments. + * Show Menu Shipments + */ + public void setIsMenuShipments (boolean IsMenuShipments); + + /** Get Menu Shipments. + * Show Menu Shipments + */ + public boolean isMenuShipments(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getI_M_PriceList() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getI_M_Warehouse() throws Exception; + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name SalesRep_ID */ + public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; + + /** Set Sales Representative. + * Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID); + + /** Get Sales Representative. + * Sales Representative or Company Agent + */ + public int getSalesRep_ID(); + + /** Column name Stylesheet */ + public static final String COLUMNNAME_Stylesheet = "Stylesheet"; + + /** Set Stylesheet. + * CSS (Stylesheet) used + */ + public void setStylesheet (String Stylesheet); + + /** Get Stylesheet. + * CSS (Stylesheet) used + */ + public String getStylesheet(); + + /** Column name URL */ + public static final String COLUMNNAME_URL = "URL"; + + /** Set URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL); + + /** Get URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public String getURL(); + + /** Column name WStoreEMail */ + public static final String COLUMNNAME_WStoreEMail = "WStoreEMail"; + + /** Set Web Store EMail. + * EMail address used as the sender (From) + */ + public void setWStoreEMail (String WStoreEMail); + + /** Get Web Store EMail. + * EMail address used as the sender (From) + */ + public String getWStoreEMail(); + + /** Column name WStoreUser */ + public static final String COLUMNNAME_WStoreUser = "WStoreUser"; + + /** Set WebStore User. + * User ID of the Web Store EMail address + */ + public void setWStoreUser (String WStoreUser); + + /** Get WebStore User. + * User ID of the Web Store EMail address + */ + public String getWStoreUser(); + + /** Column name WStoreUserPW */ + public static final String COLUMNNAME_WStoreUserPW = "WStoreUserPW"; + + /** Set WebStore Password. + * Password of the Web Store EMail address + */ + public void setWStoreUserPW (String WStoreUserPW); + + /** Get WebStore Password. + * Password of the Web Store EMail address + */ + public String getWStoreUserPW(); + + /** Column name W_Store_ID */ + public static final String COLUMNNAME_W_Store_ID = "W_Store_ID"; + + /** Set Web Store. + * A Web Store of the Client + */ + public void setW_Store_ID (int W_Store_ID); + + /** Get Web Store. + * A Web Store of the Client + */ + public int getW_Store_ID(); + + /** Column name WebContext */ + public static final String COLUMNNAME_WebContext = "WebContext"; + + /** Set Web Context. + * Web Server Context - e.g. /wstore + */ + public void setWebContext (String WebContext); + + /** Get Web Context. + * Web Server Context - e.g. /wstore + */ + public String getWebContext(); + + /** Column name WebInfo */ + public static final String COLUMNNAME_WebInfo = "WebInfo"; + + /** Set Web Store Info. + * Web Store Header Information + */ + public void setWebInfo (String WebInfo); + + /** Get Web Store Info. + * Web Store Header Information + */ + public String getWebInfo(); + + /** Column name WebOrderEMail */ + public static final String COLUMNNAME_WebOrderEMail = "WebOrderEMail"; + + /** Set Web Order EMail. + * EMail address to receive notifications when web orders were processed + */ + public void setWebOrderEMail (String WebOrderEMail); + + /** Get Web Order EMail. + * EMail address to receive notifications when web orders were processed + */ + public String getWebOrderEMail(); + + /** Column name WebParam1 */ + public static final String COLUMNNAME_WebParam1 = "WebParam1"; + + /** Set Web Parameter 1. + * Web Site Parameter 1 (default: header image) + */ + public void setWebParam1 (String WebParam1); + + /** Get Web Parameter 1. + * Web Site Parameter 1 (default: header image) + */ + public String getWebParam1(); + + /** Column name WebParam2 */ + public static final String COLUMNNAME_WebParam2 = "WebParam2"; + + /** Set Web Parameter 2. + * Web Site Parameter 2 (default index page) + */ + public void setWebParam2 (String WebParam2); + + /** Get Web Parameter 2. + * Web Site Parameter 2 (default index page) + */ + public String getWebParam2(); + + /** Column name WebParam3 */ + public static final String COLUMNNAME_WebParam3 = "WebParam3"; + + /** Set Web Parameter 3. + * Web Site Parameter 3 (default left - menu) + */ + public void setWebParam3 (String WebParam3); + + /** Get Web Parameter 3. + * Web Site Parameter 3 (default left - menu) + */ + public String getWebParam3(); + + /** Column name WebParam4 */ + public static final String COLUMNNAME_WebParam4 = "WebParam4"; + + /** Set Web Parameter 4. + * Web Site Parameter 4 (default footer left) + */ + public void setWebParam4 (String WebParam4); + + /** Get Web Parameter 4. + * Web Site Parameter 4 (default footer left) + */ + public String getWebParam4(); + + /** Column name WebParam5 */ + public static final String COLUMNNAME_WebParam5 = "WebParam5"; + + /** Set Web Parameter 5. + * Web Site Parameter 5 (default footer center) + */ + public void setWebParam5 (String WebParam5); + + /** Get Web Parameter 5. + * Web Site Parameter 5 (default footer center) + */ + public String getWebParam5(); + + /** Column name WebParam6 */ + public static final String COLUMNNAME_WebParam6 = "WebParam6"; + + /** Set Web Parameter 6. + * Web Site Parameter 6 (default footer right) + */ + public void setWebParam6 (String WebParam6); + + /** Get Web Parameter 6. + * Web Site Parameter 6 (default footer right) + */ + public String getWebParam6(); +} diff --git a/base/src/org/compiere/model/X_AD_AccessLog.java b/base/src/org/compiere/model/X_AD_AccessLog.java index 52bf46b05c..3eb480aef0 100644 --- a/base/src/org/compiere/model/X_AD_AccessLog.java +++ b/base/src/org/compiere/model/X_AD_AccessLog.java @@ -1,260 +1,279 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_AccessLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_AccessLog extends PO + +/** Generated Model for AD_AccessLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_AccessLog extends PO implements I_AD_AccessLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_AccessLog_ID id -@param trxName transaction -*/ -public X_AD_AccessLog (Properties ctx, int AD_AccessLog_ID, String trxName) -{ -super (ctx, AD_AccessLog_ID, trxName); -/** if (AD_AccessLog_ID == 0) -{ -setAD_AccessLog_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_AccessLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_AccessLog */ -public static final String Table_Name="AD_AccessLog"; - -/** AD_Table_ID=717 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_AccessLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Access Log. -@param AD_AccessLog_ID Log of Access to the System */ -public void setAD_AccessLog_ID (int AD_AccessLog_ID) -{ -if (AD_AccessLog_ID < 1) throw new IllegalArgumentException ("AD_AccessLog_ID is mandatory."); -set_ValueNoCheck ("AD_AccessLog_ID", Integer.valueOf(AD_AccessLog_ID)); -} -/** Get Access Log. -@return Log of Access to the System */ -public int getAD_AccessLog_ID() -{ -Integer ii = (Integer)get_Value("AD_AccessLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_AccessLog_ID())); -} -/** Column name AD_AccessLog_ID */ -public static final String COLUMNNAME_AD_AccessLog_ID = "AD_AccessLog_ID"; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_Value ("Record_ID", null); - else -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_Value ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Host = Remote_Host.substring(0,59); -} -set_Value ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Reply. -@param Reply Reply or Answer */ -public void setReply (String Reply) -{ -if (Reply != null && Reply.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Reply = Reply.substring(0,1999); -} -set_Value ("Reply", Reply); -} -/** Get Reply. -@return Reply or Answer */ -public String getReply() -{ -return (String)get_Value("Reply"); -} -/** Column name Reply */ -public static final String COLUMNNAME_Reply = "Reply"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_AccessLog (Properties ctx, int AD_AccessLog_ID, String trxName) + { + super (ctx, AD_AccessLog_ID, trxName); + /** if (AD_AccessLog_ID == 0) { setAD_AccessLog_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_AccessLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_AccessLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Access Log. + @param AD_AccessLog_ID + Log of Access to the System + */ + public void setAD_AccessLog_ID (int AD_AccessLog_ID) + { + if (AD_AccessLog_ID < 1) + throw new IllegalArgumentException ("AD_AccessLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AccessLog_ID, Integer.valueOf(AD_AccessLog_ID)); + } + + /** Get Access Log. + @return Log of Access to the System + */ + public int getAD_AccessLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AccessLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_AccessLog_ID())); + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Host = Remote_Host.substring(0, 59); + } + set_Value (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Reply. + @param Reply + Reply or Answer + */ + public void setReply (String Reply) + { + if (Reply != null && Reply.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Reply = Reply.substring(0, 1999); + } + set_Value (COLUMNNAME_Reply, Reply); + } + + /** Get Reply. + @return Reply or Answer + */ + public String getReply () + { + return (String)get_Value(COLUMNNAME_Reply); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Alert.java b/base/src/org/compiere/model/X_AD_Alert.java index e8bfafee01..a3aed909b1 100644 --- a/base/src/org/compiere/model/X_AD_Alert.java +++ b/base/src/org/compiere/model/X_AD_Alert.java @@ -1,293 +1,339 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Alert - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Alert extends PO + +/** Generated Model for AD_Alert + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Alert extends PO implements I_AD_Alert, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Alert_ID id -@param trxName transaction -*/ -public X_AD_Alert (Properties ctx, int AD_Alert_ID, String trxName) -{ -super (ctx, AD_Alert_ID, trxName); -/** if (AD_Alert_ID == 0) -{ -setAD_AlertProcessor_ID (0); -setAD_Alert_ID (0); -setAlertMessage (null); -setAlertSubject (null); -setEnforceClientSecurity (true); // Y -setEnforceRoleSecurity (true); // Y -setIsValid (true); // Y -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Alert (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Alert */ -public static final String Table_Name="AD_Alert"; - -/** AD_Table_ID=594 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Alert[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Alert Processor. -@param AD_AlertProcessor_ID Alert Processor/Server Parameter */ -public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) -{ -if (AD_AlertProcessor_ID < 1) throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); -set_Value ("AD_AlertProcessor_ID", Integer.valueOf(AD_AlertProcessor_ID)); -} -/** Get Alert Processor. -@return Alert Processor/Server Parameter */ -public int getAD_AlertProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_AlertProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AlertProcessor_ID */ -public static final String COLUMNNAME_AD_AlertProcessor_ID = "AD_AlertProcessor_ID"; -/** Set Alert. -@param AD_Alert_ID Adempiere Alert */ -public void setAD_Alert_ID (int AD_Alert_ID) -{ -if (AD_Alert_ID < 1) throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); -set_ValueNoCheck ("AD_Alert_ID", Integer.valueOf(AD_Alert_ID)); -} -/** Get Alert. -@return Adempiere Alert */ -public int getAD_Alert_ID() -{ -Integer ii = (Integer)get_Value("AD_Alert_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Alert_ID */ -public static final String COLUMNNAME_AD_Alert_ID = "AD_Alert_ID"; -/** Set Alert Message. -@param AlertMessage Message of the Alert */ -public void setAlertMessage (String AlertMessage) -{ -if (AlertMessage == null) throw new IllegalArgumentException ("AlertMessage is mandatory."); -if (AlertMessage.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -AlertMessage = AlertMessage.substring(0,1999); -} -set_Value ("AlertMessage", AlertMessage); -} -/** Get Alert Message. -@return Message of the Alert */ -public String getAlertMessage() -{ -return (String)get_Value("AlertMessage"); -} -/** Column name AlertMessage */ -public static final String COLUMNNAME_AlertMessage = "AlertMessage"; -/** Set Alert Subject. -@param AlertSubject Subject of the Alert */ -public void setAlertSubject (String AlertSubject) -{ -if (AlertSubject == null) throw new IllegalArgumentException ("AlertSubject is mandatory."); -if (AlertSubject.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AlertSubject = AlertSubject.substring(0,59); -} -set_Value ("AlertSubject", AlertSubject); -} -/** Get Alert Subject. -@return Subject of the Alert */ -public String getAlertSubject() -{ -return (String)get_Value("AlertSubject"); -} -/** Column name AlertSubject */ -public static final String COLUMNNAME_AlertSubject = "AlertSubject"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Enforce Client Security. -@param EnforceClientSecurity Send alerts to recipient only if the client security rules of the role allows */ -public void setEnforceClientSecurity (boolean EnforceClientSecurity) -{ -set_Value ("EnforceClientSecurity", Boolean.valueOf(EnforceClientSecurity)); -} -/** Get Enforce Client Security. -@return Send alerts to recipient only if the client security rules of the role allows */ -public boolean isEnforceClientSecurity() -{ -Object oo = get_Value("EnforceClientSecurity"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name EnforceClientSecurity */ -public static final String COLUMNNAME_EnforceClientSecurity = "EnforceClientSecurity"; -/** Set Enforce Role Security. -@param EnforceRoleSecurity Send alerts to recipient only if the data security rules of the role allows */ -public void setEnforceRoleSecurity (boolean EnforceRoleSecurity) -{ -set_Value ("EnforceRoleSecurity", Boolean.valueOf(EnforceRoleSecurity)); -} -/** Get Enforce Role Security. -@return Send alerts to recipient only if the data security rules of the role allows */ -public boolean isEnforceRoleSecurity() -{ -Object oo = get_Value("EnforceRoleSecurity"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name EnforceRoleSecurity */ -public static final String COLUMNNAME_EnforceRoleSecurity = "EnforceRoleSecurity"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Alert (Properties ctx, int AD_Alert_ID, String trxName) + { + super (ctx, AD_Alert_ID, trxName); + /** if (AD_Alert_ID == 0) { setAD_AlertProcessor_ID (0); + setAD_Alert_ID (0); + setAlertMessage (null); + setAlertSubject (null); + setEnforceClientSecurity (true); +// Y + setEnforceRoleSecurity (true); +// Y + setIsValid (true); +// Y + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Alert (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Alert[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_AlertProcessor getI_AD_AlertProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Alert Processor. + @param AD_AlertProcessor_ID + Alert Processor/Server Parameter + */ + public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) + { + if (AD_AlertProcessor_ID < 1) + throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); + set_Value (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); + } + + /** Get Alert Processor. + @return Alert Processor/Server Parameter + */ + public int getAD_AlertProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AlertProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Alert. + @param AD_Alert_ID + Adempiere Alert + */ + public void setAD_Alert_ID (int AD_Alert_ID) + { + if (AD_Alert_ID < 1) + throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); + } + + /** Get Alert. + @return Adempiere Alert + */ + public int getAD_Alert_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Alert_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Alert Message. + @param AlertMessage + Message of the Alert + */ + public void setAlertMessage (String AlertMessage) + { + if (AlertMessage == null) + throw new IllegalArgumentException ("AlertMessage is mandatory."); + if (AlertMessage.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + AlertMessage = AlertMessage.substring(0, 1999); + } + set_Value (COLUMNNAME_AlertMessage, AlertMessage); + } + + /** Get Alert Message. + @return Message of the Alert + */ + public String getAlertMessage () + { + return (String)get_Value(COLUMNNAME_AlertMessage); + } + + /** Set Alert Subject. + @param AlertSubject + Subject of the Alert + */ + public void setAlertSubject (String AlertSubject) + { + if (AlertSubject == null) + throw new IllegalArgumentException ("AlertSubject is mandatory."); + if (AlertSubject.length() > 60) + { + log.warning("Length > 60 - truncated"); + AlertSubject = AlertSubject.substring(0, 59); + } + set_Value (COLUMNNAME_AlertSubject, AlertSubject); + } + + /** Get Alert Subject. + @return Subject of the Alert + */ + public String getAlertSubject () + { + return (String)get_Value(COLUMNNAME_AlertSubject); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Enforce Client Security. + @param EnforceClientSecurity + Send alerts to recipient only if the client security rules of the role allows + */ + public void setEnforceClientSecurity (boolean EnforceClientSecurity) + { + set_Value (COLUMNNAME_EnforceClientSecurity, Boolean.valueOf(EnforceClientSecurity)); + } + + /** Get Enforce Client Security. + @return Send alerts to recipient only if the client security rules of the role allows + */ + public boolean isEnforceClientSecurity () + { + Object oo = get_Value(COLUMNNAME_EnforceClientSecurity); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Enforce Role Security. + @param EnforceRoleSecurity + Send alerts to recipient only if the data security rules of the role allows + */ + public void setEnforceRoleSecurity (boolean EnforceRoleSecurity) + { + set_Value (COLUMNNAME_EnforceRoleSecurity, Boolean.valueOf(EnforceRoleSecurity)); + } + + /** Get Enforce Role Security. + @return Send alerts to recipient only if the data security rules of the role allows + */ + public boolean isEnforceRoleSecurity () + { + Object oo = get_Value(COLUMNNAME_EnforceRoleSecurity); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_AlertProcessor.java b/base/src/org/compiere/model/X_AD_AlertProcessor.java index 2c4da7be84..e2fbfc18c8 100644 --- a/base/src/org/compiere/model/X_AD_AlertProcessor.java +++ b/base/src/org/compiere/model/X_AD_AlertProcessor.java @@ -1,286 +1,301 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_AlertProcessor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_AlertProcessor extends PO + +/** Generated Model for AD_AlertProcessor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_AlertProcessor extends PO implements I_AD_AlertProcessor, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_AlertProcessor_ID id -@param trxName transaction -*/ -public X_AD_AlertProcessor (Properties ctx, int AD_AlertProcessor_ID, String trxName) -{ -super (ctx, AD_AlertProcessor_ID, trxName); -/** if (AD_AlertProcessor_ID == 0) -{ -setAD_AlertProcessor_ID (0); -setFrequency (0); -setFrequencyType (null); -setKeepLogDays (0); // 7 -setName (null); -setSupervisor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_AlertProcessor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_AlertProcessor */ -public static final String Table_Name="AD_AlertProcessor"; - -/** AD_Table_ID=700 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_AlertProcessor[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Alert Processor. -@param AD_AlertProcessor_ID Alert Processor/Server Parameter */ -public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) -{ -if (AD_AlertProcessor_ID < 1) throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_AlertProcessor_ID", Integer.valueOf(AD_AlertProcessor_ID)); -} -/** Get Alert Processor. -@return Alert Processor/Server Parameter */ -public int getAD_AlertProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_AlertProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AlertProcessor_ID */ -public static final String COLUMNNAME_AD_AlertProcessor_ID = "AD_AlertProcessor_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_AlertProcessor (Properties ctx, int AD_AlertProcessor_ID, String trxName) + { + super (ctx, AD_AlertProcessor_ID, trxName); + /** if (AD_AlertProcessor_ID == 0) { setAD_AlertProcessor_ID (0); + setFrequency (0); + setFrequencyType (null); + setKeepLogDays (0); +// 7 + setName (null); + setSupervisor_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_AlertProcessor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_AlertProcessor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Alert Processor. + @param AD_AlertProcessor_ID + Alert Processor/Server Parameter + */ + public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) + { + if (AD_AlertProcessor_ID < 1) + throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); + } + + /** Get Alert Processor. + @return Alert Processor/Server Parameter + */ + public int getAD_AlertProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AlertProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=221 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=221; -/** Day = D */ -public static final String FREQUENCYTYPE_Day = "D"; -/** Hour = H */ -public static final String FREQUENCYTYPE_Hour = "H"; -/** Minute = M */ +public static final int FREQUENCYTYPE_AD_Reference_ID=221;/** Day = D */ +public static final String FREQUENCYTYPE_Day = "D";/** Hour = H */ +public static final String FREQUENCYTYPE_Hour = "H";/** Minute = M */ public static final String FREQUENCYTYPE_Minute = "M"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** Supervisor_ID AD_Reference_ID=316 */ public static final int SUPERVISOR_ID_AD_Reference_ID=316; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID < 1) throw new IllegalArgumentException ("Supervisor_ID is mandatory."); -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + throw new IllegalArgumentException ("Supervisor_ID is mandatory."); + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_AlertProcessorLog.java b/base/src/org/compiere/model/X_AD_AlertProcessorLog.java index b29b94a3a1..2662991a36 100644 --- a/base/src/org/compiere/model/X_AD_AlertProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_AlertProcessorLog.java @@ -1,234 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_AlertProcessorLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_AlertProcessorLog extends PO + +/** Generated Model for AD_AlertProcessorLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_AlertProcessorLog extends PO implements I_AD_AlertProcessorLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_AlertProcessorLog_ID id -@param trxName transaction -*/ -public X_AD_AlertProcessorLog (Properties ctx, int AD_AlertProcessorLog_ID, String trxName) -{ -super (ctx, AD_AlertProcessorLog_ID, trxName); -/** if (AD_AlertProcessorLog_ID == 0) -{ -setAD_AlertProcessorLog_ID (0); -setAD_AlertProcessor_ID (0); -setIsError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_AlertProcessorLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_AlertProcessorLog */ -public static final String Table_Name="AD_AlertProcessorLog"; - -/** AD_Table_ID=699 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_AlertProcessorLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Alert Processor Log. -@param AD_AlertProcessorLog_ID Result of the execution of the Alert Processor */ -public void setAD_AlertProcessorLog_ID (int AD_AlertProcessorLog_ID) -{ -if (AD_AlertProcessorLog_ID < 1) throw new IllegalArgumentException ("AD_AlertProcessorLog_ID is mandatory."); -set_ValueNoCheck ("AD_AlertProcessorLog_ID", Integer.valueOf(AD_AlertProcessorLog_ID)); -} -/** Get Alert Processor Log. -@return Result of the execution of the Alert Processor */ -public int getAD_AlertProcessorLog_ID() -{ -Integer ii = (Integer)get_Value("AD_AlertProcessorLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AlertProcessorLog_ID */ -public static final String COLUMNNAME_AD_AlertProcessorLog_ID = "AD_AlertProcessorLog_ID"; -/** Set Alert Processor. -@param AD_AlertProcessor_ID Alert Processor/Server Parameter */ -public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) -{ -if (AD_AlertProcessor_ID < 1) throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_AlertProcessor_ID", Integer.valueOf(AD_AlertProcessor_ID)); -} -/** Get Alert Processor. -@return Alert Processor/Server Parameter */ -public int getAD_AlertProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_AlertProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AlertProcessor_ID */ -public static final String COLUMNNAME_AD_AlertProcessor_ID = "AD_AlertProcessor_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_Value ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_AlertProcessorLog (Properties ctx, int AD_AlertProcessorLog_ID, String trxName) + { + super (ctx, AD_AlertProcessorLog_ID, trxName); + /** if (AD_AlertProcessorLog_ID == 0) { setAD_AlertProcessorLog_ID (0); + setAD_AlertProcessor_ID (0); + setIsError (false); +} */ + } + + /** Load Constructor */ + public X_AD_AlertProcessorLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_AlertProcessorLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Alert Processor Log. + @param AD_AlertProcessorLog_ID + Result of the execution of the Alert Processor + */ + public void setAD_AlertProcessorLog_ID (int AD_AlertProcessorLog_ID) + { + if (AD_AlertProcessorLog_ID < 1) + throw new IllegalArgumentException ("AD_AlertProcessorLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessorLog_ID, Integer.valueOf(AD_AlertProcessorLog_ID)); + } + + /** Get Alert Processor Log. + @return Result of the execution of the Alert Processor + */ + public int getAD_AlertProcessorLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AlertProcessorLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_AlertProcessor getI_AD_AlertProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Alert Processor. + @param AD_AlertProcessor_ID + Alert Processor/Server Parameter + */ + public void setAD_AlertProcessor_ID (int AD_AlertProcessor_ID) + { + if (AD_AlertProcessor_ID < 1) + throw new IllegalArgumentException ("AD_AlertProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AlertProcessor_ID, Integer.valueOf(AD_AlertProcessor_ID)); + } + + /** Get Alert Processor. + @return Alert Processor/Server Parameter + */ + public int getAD_AlertProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AlertProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_Value (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_AlertRecipient.java b/base/src/org/compiere/model/X_AD_AlertRecipient.java index 4a6569154d..d34e5952f8 100644 --- a/base/src/org/compiere/model/X_AD_AlertRecipient.java +++ b/base/src/org/compiere/model/X_AD_AlertRecipient.java @@ -1,165 +1,202 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_AlertRecipient - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_AlertRecipient extends PO + +/** Generated Model for AD_AlertRecipient + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_AlertRecipient extends PO implements I_AD_AlertRecipient, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_AlertRecipient_ID id -@param trxName transaction -*/ -public X_AD_AlertRecipient (Properties ctx, int AD_AlertRecipient_ID, String trxName) -{ -super (ctx, AD_AlertRecipient_ID, trxName); -/** if (AD_AlertRecipient_ID == 0) -{ -setAD_AlertRecipient_ID (0); -setAD_Alert_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_AlertRecipient (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_AlertRecipient */ -public static final String Table_Name="AD_AlertRecipient"; - -/** AD_Table_ID=592 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_AlertRecipient[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Alert Recipient. -@param AD_AlertRecipient_ID Recipient of the Alert Notification */ -public void setAD_AlertRecipient_ID (int AD_AlertRecipient_ID) -{ -if (AD_AlertRecipient_ID < 1) throw new IllegalArgumentException ("AD_AlertRecipient_ID is mandatory."); -set_ValueNoCheck ("AD_AlertRecipient_ID", Integer.valueOf(AD_AlertRecipient_ID)); -} -/** Get Alert Recipient. -@return Recipient of the Alert Notification */ -public int getAD_AlertRecipient_ID() -{ -Integer ii = (Integer)get_Value("AD_AlertRecipient_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AlertRecipient_ID */ -public static final String COLUMNNAME_AD_AlertRecipient_ID = "AD_AlertRecipient_ID"; -/** Set Alert. -@param AD_Alert_ID Adempiere Alert */ -public void setAD_Alert_ID (int AD_Alert_ID) -{ -if (AD_Alert_ID < 1) throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); -set_ValueNoCheck ("AD_Alert_ID", Integer.valueOf(AD_Alert_ID)); -} -/** Get Alert. -@return Adempiere Alert */ -public int getAD_Alert_ID() -{ -Integer ii = (Integer)get_Value("AD_Alert_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Alert_ID */ -public static final String COLUMNNAME_AD_Alert_ID = "AD_Alert_ID"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_AlertRecipient (Properties ctx, int AD_AlertRecipient_ID, String trxName) + { + super (ctx, AD_AlertRecipient_ID, trxName); + /** if (AD_AlertRecipient_ID == 0) { setAD_AlertRecipient_ID (0); + setAD_Alert_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_AlertRecipient (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_AlertRecipient[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Alert Recipient. + @param AD_AlertRecipient_ID + Recipient of the Alert Notification + */ + public void setAD_AlertRecipient_ID (int AD_AlertRecipient_ID) + { + if (AD_AlertRecipient_ID < 1) + throw new IllegalArgumentException ("AD_AlertRecipient_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AlertRecipient_ID, Integer.valueOf(AD_AlertRecipient_ID)); + } + + /** Get Alert Recipient. + @return Recipient of the Alert Notification + */ + public int getAD_AlertRecipient_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AlertRecipient_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Alert getI_AD_Alert() throws Exception + { + 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 e; + } + return result; + } + + /** Set Alert. + @param AD_Alert_ID + Adempiere Alert + */ + public void setAD_Alert_ID (int AD_Alert_ID) + { + if (AD_Alert_ID < 1) + throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); + } + + /** Get Alert. + @return Adempiere Alert + */ + public int getAD_Alert_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Alert_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_AlertRule.java b/base/src/org/compiere/model/X_AD_AlertRule.java index 0f92680a95..4869a7318d 100644 --- a/base/src/org/compiere/model/X_AD_AlertRule.java +++ b/base/src/org/compiere/model/X_AD_AlertRule.java @@ -1,326 +1,388 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_AlertRule - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_AlertRule extends PO + +/** Generated Model for AD_AlertRule + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_AlertRule extends PO implements I_AD_AlertRule, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_AlertRule_ID id -@param trxName transaction -*/ -public X_AD_AlertRule (Properties ctx, int AD_AlertRule_ID, String trxName) -{ -super (ctx, AD_AlertRule_ID, trxName); -/** if (AD_AlertRule_ID == 0) -{ -setAD_AlertRule_ID (0); -setAD_Alert_ID (0); -setFromClause (null); -setIsValid (true); // Y -setName (null); -setSelectClause (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_AlertRule (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_AlertRule */ -public static final String Table_Name="AD_AlertRule"; - -/** AD_Table_ID=593 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_AlertRule[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Alert Rule. -@param AD_AlertRule_ID Definition of the alert element */ -public void setAD_AlertRule_ID (int AD_AlertRule_ID) -{ -if (AD_AlertRule_ID < 1) throw new IllegalArgumentException ("AD_AlertRule_ID is mandatory."); -set_ValueNoCheck ("AD_AlertRule_ID", Integer.valueOf(AD_AlertRule_ID)); -} -/** Get Alert Rule. -@return Definition of the alert element */ -public int getAD_AlertRule_ID() -{ -Integer ii = (Integer)get_Value("AD_AlertRule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AlertRule_ID */ -public static final String COLUMNNAME_AD_AlertRule_ID = "AD_AlertRule_ID"; -/** Set Alert. -@param AD_Alert_ID Adempiere Alert */ -public void setAD_Alert_ID (int AD_Alert_ID) -{ -if (AD_Alert_ID < 1) throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); -set_ValueNoCheck ("AD_Alert_ID", Integer.valueOf(AD_Alert_ID)); -} -/** Get Alert. -@return Adempiere Alert */ -public int getAD_Alert_ID() -{ -Integer ii = (Integer)get_Value("AD_Alert_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Alert_ID */ -public static final String COLUMNNAME_AD_Alert_ID = "AD_Alert_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Error Msg. -@param ErrorMsg Error Msg */ -public void setErrorMsg (String ErrorMsg) -{ -if (ErrorMsg != null && ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ErrorMsg = ErrorMsg.substring(0,1999); -} -set_Value ("ErrorMsg", ErrorMsg); -} -/** Get Error Msg. -@return Error Msg */ -public String getErrorMsg() -{ -return (String)get_Value("ErrorMsg"); -} -/** Column name ErrorMsg */ -public static final String COLUMNNAME_ErrorMsg = "ErrorMsg"; -/** Set Sql FROM. -@param FromClause SQL FROM clause */ -public void setFromClause (String FromClause) -{ -if (FromClause == null) throw new IllegalArgumentException ("FromClause is mandatory."); -if (FromClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -FromClause = FromClause.substring(0,1999); -} -set_Value ("FromClause", FromClause); -} -/** Get Sql FROM. -@return SQL FROM clause */ -public String getFromClause() -{ -return (String)get_Value("FromClause"); -} -/** Column name FromClause */ -public static final String COLUMNNAME_FromClause = "FromClause"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Other SQL Clause. -@param OtherClause Other SQL Clause */ -public void setOtherClause (String OtherClause) -{ -if (OtherClause != null && OtherClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OtherClause = OtherClause.substring(0,1999); -} -set_Value ("OtherClause", OtherClause); -} -/** Get Other SQL Clause. -@return Other SQL Clause */ -public String getOtherClause() -{ -return (String)get_Value("OtherClause"); -} -/** Column name OtherClause */ -public static final String COLUMNNAME_OtherClause = "OtherClause"; -/** Set Post Processing. -@param PostProcessing Process SQL after executing the query */ -public void setPostProcessing (String PostProcessing) -{ -if (PostProcessing != null && PostProcessing.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -PostProcessing = PostProcessing.substring(0,1999); -} -set_Value ("PostProcessing", PostProcessing); -} -/** Get Post Processing. -@return Process SQL after executing the query */ -public String getPostProcessing() -{ -return (String)get_Value("PostProcessing"); -} -/** Column name PostProcessing */ -public static final String COLUMNNAME_PostProcessing = "PostProcessing"; -/** Set Pre Processing. -@param PreProcessing Process SQL before executing the query */ -public void setPreProcessing (String PreProcessing) -{ -if (PreProcessing != null && PreProcessing.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -PreProcessing = PreProcessing.substring(0,1999); -} -set_Value ("PreProcessing", PreProcessing); -} -/** Get Pre Processing. -@return Process SQL before executing the query */ -public String getPreProcessing() -{ -return (String)get_Value("PreProcessing"); -} -/** Column name PreProcessing */ -public static final String COLUMNNAME_PreProcessing = "PreProcessing"; -/** Set Sql SELECT. -@param SelectClause SQL SELECT clause */ -public void setSelectClause (String SelectClause) -{ -if (SelectClause == null) throw new IllegalArgumentException ("SelectClause is mandatory."); -if (SelectClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -SelectClause = SelectClause.substring(0,1999); -} -set_Value ("SelectClause", SelectClause); -} -/** Get Sql SELECT. -@return SQL SELECT clause */ -public String getSelectClause() -{ -return (String)get_Value("SelectClause"); -} -/** Column name SelectClause */ -public static final String COLUMNNAME_SelectClause = "SelectClause"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_AlertRule (Properties ctx, int AD_AlertRule_ID, String trxName) + { + super (ctx, AD_AlertRule_ID, trxName); + /** if (AD_AlertRule_ID == 0) { setAD_AlertRule_ID (0); + setAD_Alert_ID (0); + setFromClause (null); + setIsValid (true); +// Y + setName (null); + setSelectClause (null); +} */ + } + + /** Load Constructor */ + public X_AD_AlertRule (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_AlertRule[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Alert Rule. + @param AD_AlertRule_ID + Definition of the alert element + */ + public void setAD_AlertRule_ID (int AD_AlertRule_ID) + { + if (AD_AlertRule_ID < 1) + throw new IllegalArgumentException ("AD_AlertRule_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AlertRule_ID, Integer.valueOf(AD_AlertRule_ID)); + } + + /** Get Alert Rule. + @return Definition of the alert element + */ + public int getAD_AlertRule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AlertRule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Alert getI_AD_Alert() throws Exception + { + 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 e; + } + return result; + } + + /** Set Alert. + @param AD_Alert_ID + Adempiere Alert + */ + public void setAD_Alert_ID (int AD_Alert_ID) + { + if (AD_Alert_ID < 1) + throw new IllegalArgumentException ("AD_Alert_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Alert_ID, Integer.valueOf(AD_Alert_ID)); + } + + /** Get Alert. + @return Adempiere Alert + */ + public int getAD_Alert_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Alert_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Error Msg. + @param ErrorMsg Error Msg */ + public void setErrorMsg (String ErrorMsg) + { + if (ErrorMsg != null && ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ErrorMsg = ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_ErrorMsg, ErrorMsg); + } + + /** Get Error Msg. +@return Error Msg */ + public String getErrorMsg () + { + return (String)get_Value(COLUMNNAME_ErrorMsg); + } + + /** Set Sql FROM. + @param FromClause + SQL FROM clause + */ + public void setFromClause (String FromClause) + { + if (FromClause == null) + throw new IllegalArgumentException ("FromClause is mandatory."); + if (FromClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + FromClause = FromClause.substring(0, 1999); + } + set_Value (COLUMNNAME_FromClause, FromClause); + } + + /** Get Sql FROM. + @return SQL FROM clause + */ + public String getFromClause () + { + return (String)get_Value(COLUMNNAME_FromClause); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Other SQL Clause. + @param OtherClause + Other SQL Clause + */ + public void setOtherClause (String OtherClause) + { + if (OtherClause != null && OtherClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OtherClause = OtherClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OtherClause, OtherClause); + } + + /** Get Other SQL Clause. + @return Other SQL Clause + */ + public String getOtherClause () + { + return (String)get_Value(COLUMNNAME_OtherClause); + } + + /** Set Post Processing. + @param PostProcessing + Process SQL after executing the query + */ + public void setPostProcessing (String PostProcessing) + { + if (PostProcessing != null && PostProcessing.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + PostProcessing = PostProcessing.substring(0, 1999); + } + set_Value (COLUMNNAME_PostProcessing, PostProcessing); + } + + /** Get Post Processing. + @return Process SQL after executing the query + */ + public String getPostProcessing () + { + return (String)get_Value(COLUMNNAME_PostProcessing); + } + + /** Set Pre Processing. + @param PreProcessing + Process SQL before executing the query + */ + public void setPreProcessing (String PreProcessing) + { + if (PreProcessing != null && PreProcessing.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + PreProcessing = PreProcessing.substring(0, 1999); + } + set_Value (COLUMNNAME_PreProcessing, PreProcessing); + } + + /** Get Pre Processing. + @return Process SQL before executing the query + */ + public String getPreProcessing () + { + return (String)get_Value(COLUMNNAME_PreProcessing); + } + + /** Set Sql SELECT. + @param SelectClause + SQL SELECT clause + */ + public void setSelectClause (String SelectClause) + { + if (SelectClause == null) + throw new IllegalArgumentException ("SelectClause is mandatory."); + if (SelectClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + SelectClause = SelectClause.substring(0, 1999); + } + set_Value (COLUMNNAME_SelectClause, SelectClause); + } + + /** Get Sql SELECT. + @return SQL SELECT clause + */ + public String getSelectClause () + { + return (String)get_Value(COLUMNNAME_SelectClause); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Archive.java b/base/src/org/compiere/model/X_AD_Archive.java index 97e5478f96..1faffad627 100644 --- a/base/src/org/compiere/model/X_AD_Archive.java +++ b/base/src/org/compiere/model/X_AD_Archive.java @@ -1,279 +1,305 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Archive - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Archive extends PO + +/** Generated Model for AD_Archive + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Archive extends PO implements I_AD_Archive, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Archive_ID id -@param trxName transaction -*/ -public X_AD_Archive (Properties ctx, int AD_Archive_ID, String trxName) -{ -super (ctx, AD_Archive_ID, trxName); -/** if (AD_Archive_ID == 0) -{ -setAD_Archive_ID (0); -setBinaryData (null); -setIsReport (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Archive (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Archive */ -public static final String Table_Name="AD_Archive"; - -/** AD_Table_ID=754 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Archive[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Archive. -@param AD_Archive_ID Document and Report Archive */ -public void setAD_Archive_ID (int AD_Archive_ID) -{ -if (AD_Archive_ID < 1) throw new IllegalArgumentException ("AD_Archive_ID is mandatory."); -set_ValueNoCheck ("AD_Archive_ID", Integer.valueOf(AD_Archive_ID)); -} -/** Get Archive. -@return Document and Report Archive */ -public int getAD_Archive_ID() -{ -Integer ii = (Integer)get_Value("AD_Archive_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Archive_ID */ -public static final String COLUMNNAME_AD_Archive_ID = "AD_Archive_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -if (BinaryData == null) throw new IllegalArgumentException ("BinaryData is mandatory."); -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Report. -@param IsReport Indicates a Report record */ -public void setIsReport (boolean IsReport) -{ -set_Value ("IsReport", Boolean.valueOf(IsReport)); -} -/** Get Report. -@return Indicates a Report record */ -public boolean isReport() -{ -Object oo = get_Value("IsReport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReport */ -public static final String COLUMNNAME_IsReport = "IsReport"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_Value ("Record_ID", null); - else -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Archive (Properties ctx, int AD_Archive_ID, String trxName) + { + super (ctx, AD_Archive_ID, trxName); + /** if (AD_Archive_ID == 0) { setAD_Archive_ID (0); + setBinaryData (null); + setIsReport (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Archive (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Archive[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Archive. + @param AD_Archive_ID + Document and Report Archive + */ + public void setAD_Archive_ID (int AD_Archive_ID) + { + if (AD_Archive_ID < 1) + throw new IllegalArgumentException ("AD_Archive_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Archive_ID, Integer.valueOf(AD_Archive_ID)); + } + + /** Get Archive. + @return Document and Report Archive + */ + public int getAD_Archive_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Archive_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + if (BinaryData == null) + throw new IllegalArgumentException ("BinaryData is mandatory."); + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Report. + @param IsReport + Indicates a Report record + */ + public void setIsReport (boolean IsReport) + { + set_Value (COLUMNNAME_IsReport, Boolean.valueOf(IsReport)); + } + + /** Get Report. + @return Indicates a Report record + */ + public boolean isReport () + { + Object oo = get_Value(COLUMNNAME_IsReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Attachment.java b/base/src/org/compiere/model/X_AD_Attachment.java index 30ba52936a..9c5db21aad 100644 --- a/base/src/org/compiere/model/X_AD_Attachment.java +++ b/base/src/org/compiere/model/X_AD_Attachment.java @@ -1,201 +1,229 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Attachment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Attachment extends PO + +/** Generated Model for AD_Attachment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Attachment extends PO implements I_AD_Attachment, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Attachment_ID id -@param trxName transaction -*/ -public X_AD_Attachment (Properties ctx, int AD_Attachment_ID, String trxName) -{ -super (ctx, AD_Attachment_ID, trxName); -/** if (AD_Attachment_ID == 0) -{ -setAD_Attachment_ID (0); -setAD_Table_ID (0); -setRecord_ID (0); -setTitle (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Attachment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Attachment */ -public static final String Table_Name="AD_Attachment"; - -/** AD_Table_ID=254 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Attachment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attachment. -@param AD_Attachment_ID Attachment for the document */ -public void setAD_Attachment_ID (int AD_Attachment_ID) -{ -if (AD_Attachment_ID < 1) throw new IllegalArgumentException ("AD_Attachment_ID is mandatory."); -set_ValueNoCheck ("AD_Attachment_ID", Integer.valueOf(AD_Attachment_ID)); -} -/** Get Attachment. -@return Attachment for the document */ -public int getAD_Attachment_ID() -{ -Integer ii = (Integer)get_Value("AD_Attachment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Attachment_ID */ -public static final String COLUMNNAME_AD_Attachment_ID = "AD_Attachment_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_ValueNoCheck ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title == null) throw new IllegalArgumentException ("Title is mandatory."); -if (Title.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Title = Title.substring(0,59); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getTitle()); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Attachment (Properties ctx, int AD_Attachment_ID, String trxName) + { + super (ctx, AD_Attachment_ID, trxName); + /** if (AD_Attachment_ID == 0) { setAD_Attachment_ID (0); + setAD_Table_ID (0); + setRecord_ID (0); + setTitle (null); +} */ + } + + /** Load Constructor */ + public X_AD_Attachment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Attachment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attachment. + @param AD_Attachment_ID + Attachment for the document + */ + public void setAD_Attachment_ID (int AD_Attachment_ID) + { + if (AD_Attachment_ID < 1) + throw new IllegalArgumentException ("AD_Attachment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, Integer.valueOf(AD_Attachment_ID)); + } + + /** Get Attachment. + @return Attachment for the document + */ + public int getAD_Attachment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Attachment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_ValueNoCheck (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title == null) + throw new IllegalArgumentException ("Title is mandatory."); + if (Title.length() > 60) + { + log.warning("Length > 60 - truncated"); + Title = Title.substring(0, 59); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getTitle()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_AttachmentNote.java b/base/src/org/compiere/model/X_AD_AttachmentNote.java index 54e053a310..d9d3c0c67b 100644 --- a/base/src/org/compiere/model/X_AD_AttachmentNote.java +++ b/base/src/org/compiere/model/X_AD_AttachmentNote.java @@ -1,189 +1,215 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_AttachmentNote - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_AttachmentNote extends PO + +/** Generated Model for AD_AttachmentNote + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_AttachmentNote extends PO implements I_AD_AttachmentNote, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_AttachmentNote_ID id -@param trxName transaction -*/ -public X_AD_AttachmentNote (Properties ctx, int AD_AttachmentNote_ID, String trxName) -{ -super (ctx, AD_AttachmentNote_ID, trxName); -/** if (AD_AttachmentNote_ID == 0) -{ -setAD_AttachmentNote_ID (0); -setAD_Attachment_ID (0); -setAD_User_ID (0); -setTextMsg (null); -setTitle (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_AttachmentNote (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_AttachmentNote */ -public static final String Table_Name="AD_AttachmentNote"; - -/** AD_Table_ID=705 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_AttachmentNote[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attachment Note. -@param AD_AttachmentNote_ID Personal Attachment Note */ -public void setAD_AttachmentNote_ID (int AD_AttachmentNote_ID) -{ -if (AD_AttachmentNote_ID < 1) throw new IllegalArgumentException ("AD_AttachmentNote_ID is mandatory."); -set_ValueNoCheck ("AD_AttachmentNote_ID", Integer.valueOf(AD_AttachmentNote_ID)); -} -/** Get Attachment Note. -@return Personal Attachment Note */ -public int getAD_AttachmentNote_ID() -{ -Integer ii = (Integer)get_Value("AD_AttachmentNote_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_AttachmentNote_ID */ -public static final String COLUMNNAME_AD_AttachmentNote_ID = "AD_AttachmentNote_ID"; -/** Set Attachment. -@param AD_Attachment_ID Attachment for the document */ -public void setAD_Attachment_ID (int AD_Attachment_ID) -{ -if (AD_Attachment_ID < 1) throw new IllegalArgumentException ("AD_Attachment_ID is mandatory."); -set_ValueNoCheck ("AD_Attachment_ID", Integer.valueOf(AD_Attachment_ID)); -} -/** Get Attachment. -@return Attachment for the document */ -public int getAD_Attachment_ID() -{ -Integer ii = (Integer)get_Value("AD_Attachment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Attachment_ID */ -public static final String COLUMNNAME_AD_Attachment_ID = "AD_Attachment_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg == null) throw new IllegalArgumentException ("TextMsg is mandatory."); -if (TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title == null) throw new IllegalArgumentException ("Title is mandatory."); -if (Title.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Title = Title.substring(0,59); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getTitle()); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_AttachmentNote (Properties ctx, int AD_AttachmentNote_ID, String trxName) + { + super (ctx, AD_AttachmentNote_ID, trxName); + /** if (AD_AttachmentNote_ID == 0) { setAD_AttachmentNote_ID (0); + setAD_Attachment_ID (0); + setAD_User_ID (0); + setTextMsg (null); + setTitle (null); +} */ + } + + /** Load Constructor */ + public X_AD_AttachmentNote (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_AttachmentNote[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attachment Note. + @param AD_AttachmentNote_ID + Personal Attachment Note + */ + public void setAD_AttachmentNote_ID (int AD_AttachmentNote_ID) + { + if (AD_AttachmentNote_ID < 1) + throw new IllegalArgumentException ("AD_AttachmentNote_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_AttachmentNote_ID, Integer.valueOf(AD_AttachmentNote_ID)); + } + + /** Get Attachment Note. + @return Personal Attachment Note + */ + public int getAD_AttachmentNote_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_AttachmentNote_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Attachment getI_AD_Attachment() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attachment. + @param AD_Attachment_ID + Attachment for the document + */ + public void setAD_Attachment_ID (int AD_Attachment_ID) + { + if (AD_Attachment_ID < 1) + throw new IllegalArgumentException ("AD_Attachment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Attachment_ID, Integer.valueOf(AD_Attachment_ID)); + } + + /** Get Attachment. + @return Attachment for the document + */ + public int getAD_Attachment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Attachment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg == null) + throw new IllegalArgumentException ("TextMsg is mandatory."); + if (TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title == null) + throw new IllegalArgumentException ("Title is mandatory."); + if (Title.length() > 60) + { + log.warning("Length > 60 - truncated"); + Title = Title.substring(0, 59); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getTitle()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Attribute.java b/base/src/org/compiere/model/X_AD_Attribute.java index 49f1985fed..5825827b71 100644 --- a/base/src/org/compiere/model/X_AD_Attribute.java +++ b/base/src/org/compiere/model/X_AD_Attribute.java @@ -1,563 +1,662 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Attribute - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Attribute extends PO + +/** Generated Model for AD_Attribute + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Attribute extends PO implements I_AD_Attribute, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Attribute_ID id -@param trxName transaction -*/ -public X_AD_Attribute (Properties ctx, int AD_Attribute_ID, String trxName) -{ -super (ctx, AD_Attribute_ID, trxName); -/** if (AD_Attribute_ID == 0) -{ -setAD_Attribute_ID (0); -setAD_Reference_ID (0); -setAD_Table_ID (0); -setIsEncrypted (false); -setIsFieldOnly (false); -setIsHeading (false); -setIsMandatory (false); -setIsReadOnly (false); -setIsSameLine (false); -setIsUpdateable (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Attribute (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Attribute */ -public static final String Table_Name="AD_Attribute"; - -/** AD_Table_ID=405 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Attribute[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Attribute. -@param AD_Attribute_ID System Attribute */ -public void setAD_Attribute_ID (int AD_Attribute_ID) -{ -if (AD_Attribute_ID < 1) throw new IllegalArgumentException ("AD_Attribute_ID is mandatory."); -set_ValueNoCheck ("AD_Attribute_ID", Integer.valueOf(AD_Attribute_ID)); -} -/** Get System Attribute. -@return System Attribute */ -public int getAD_Attribute_ID() -{ -Integer ii = (Integer)get_Value("AD_Attribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Attribute_ID */ -public static final String COLUMNNAME_AD_Attribute_ID = "AD_Attribute_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Attribute (Properties ctx, int AD_Attribute_ID, String trxName) + { + super (ctx, AD_Attribute_ID, trxName); + /** if (AD_Attribute_ID == 0) { setAD_Attribute_ID (0); + setAD_Reference_ID (0); + setAD_Table_ID (0); + setIsEncrypted (false); + setIsFieldOnly (false); + setIsHeading (false); + setIsMandatory (false); + setIsReadOnly (false); + setIsSameLine (false); + setIsUpdateable (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Attribute (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Attribute[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Attribute. + @param AD_Attribute_ID System Attribute */ + public void setAD_Attribute_ID (int AD_Attribute_ID) + { + if (AD_Attribute_ID < 1) + throw new IllegalArgumentException ("AD_Attribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, Integer.valueOf(AD_Attribute_ID)); + } + + /** Get System Attribute. +@return System Attribute */ + public int getAD_Attribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Attribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_Value_ID AD_Reference_ID=4 */ public static final int AD_REFERENCE_VALUE_ID_AD_Reference_ID=4; -/** Set Reference Key. -@param AD_Reference_Value_ID Required to specify, if data type is Table or List */ -public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) -{ -if (AD_Reference_Value_ID <= 0) set_Value ("AD_Reference_Value_ID", null); - else -set_Value ("AD_Reference_Value_ID", Integer.valueOf(AD_Reference_Value_ID)); -} -/** Get Reference Key. -@return Required to specify, if data type is Table or List */ -public int getAD_Reference_Value_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_Value_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_Value_ID */ -public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Dynamic Validation. -@param AD_Val_Rule_ID Dynamic Validation Rule */ -public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) -{ -if (AD_Val_Rule_ID <= 0) set_Value ("AD_Val_Rule_ID", null); - else -set_Value ("AD_Val_Rule_ID", Integer.valueOf(AD_Val_Rule_ID)); -} -/** Get Dynamic Validation. -@return Dynamic Validation Rule */ -public int getAD_Val_Rule_ID() -{ -Integer ii = (Integer)get_Value("AD_Val_Rule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Val_Rule_ID */ -public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; -/** Set Callout. -@param Callout Fully qualified class names and method - separated by semicolons */ -public void setCallout (String Callout) -{ -if (Callout != null && Callout.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Callout = Callout.substring(0,59); -} -set_Value ("Callout", Callout); -} -/** Get Callout. -@return Fully qualified class names and method - separated by semicolons */ -public String getCallout() -{ -return (String)get_Value("Callout"); -} -/** Column name Callout */ -public static final String COLUMNNAME_Callout = "Callout"; -/** Set Default Logic. -@param DefaultValue Default value hierarchy, separated by ; - */ -public void setDefaultValue (String DefaultValue) -{ -if (DefaultValue != null && DefaultValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DefaultValue = DefaultValue.substring(0,1999); -} -set_Value ("DefaultValue", DefaultValue); -} -/** Get Default Logic. -@return Default value hierarchy, separated by ; - */ -public String getDefaultValue() -{ -return (String)get_Value("DefaultValue"); -} -/** Column name DefaultValue */ -public static final String COLUMNNAME_DefaultValue = "DefaultValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Display Length. -@param DisplayLength Length of the display in characters */ -public void setDisplayLength (int DisplayLength) -{ -set_Value ("DisplayLength", Integer.valueOf(DisplayLength)); -} -/** Get Display Length. -@return Length of the display in characters */ -public int getDisplayLength() -{ -Integer ii = (Integer)get_Value("DisplayLength"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DisplayLength */ -public static final String COLUMNNAME_DisplayLength = "DisplayLength"; -/** Set Display Logic. -@param DisplayLogic If the Field is displayed, the result determines if the field is actually displayed */ -public void setDisplayLogic (String DisplayLogic) -{ -if (DisplayLogic != null && DisplayLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DisplayLogic = DisplayLogic.substring(0,1999); -} -set_Value ("DisplayLogic", DisplayLogic); -} -/** Get Display Logic. -@return If the Field is displayed, the result determines if the field is actually displayed */ -public String getDisplayLogic() -{ -return (String)get_Value("DisplayLogic"); -} -/** Column name DisplayLogic */ -public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; -/** Set Length. -@param FieldLength Length of the column in the database */ -public void setFieldLength (int FieldLength) -{ -set_Value ("FieldLength", Integer.valueOf(FieldLength)); -} -/** Get Length. -@return Length of the column in the database */ -public int getFieldLength() -{ -Integer ii = (Integer)get_Value("FieldLength"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FieldLength */ -public static final String COLUMNNAME_FieldLength = "FieldLength"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Encrypted. -@param IsEncrypted Display or Storage is encrypted */ -public void setIsEncrypted (boolean IsEncrypted) -{ -set_Value ("IsEncrypted", Boolean.valueOf(IsEncrypted)); -} -/** Get Encrypted. -@return Display or Storage is encrypted */ -public boolean isEncrypted() -{ -Object oo = get_Value("IsEncrypted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEncrypted */ -public static final String COLUMNNAME_IsEncrypted = "IsEncrypted"; -/** Set Field Only. -@param IsFieldOnly Label is not displayed */ -public void setIsFieldOnly (boolean IsFieldOnly) -{ -set_Value ("IsFieldOnly", Boolean.valueOf(IsFieldOnly)); -} -/** Get Field Only. -@return Label is not displayed */ -public boolean isFieldOnly() -{ -Object oo = get_Value("IsFieldOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFieldOnly */ -public static final String COLUMNNAME_IsFieldOnly = "IsFieldOnly"; -/** Set Heading only. -@param IsHeading Field without Column - Only label is displayed */ -public void setIsHeading (boolean IsHeading) -{ -set_Value ("IsHeading", Boolean.valueOf(IsHeading)); -} -/** Get Heading only. -@return Field without Column - Only label is displayed */ -public boolean isHeading() -{ -Object oo = get_Value("IsHeading"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsHeading */ -public static final String COLUMNNAME_IsHeading = "IsHeading"; -/** Set Mandatory. -@param IsMandatory Data entry is required in this column */ -public void setIsMandatory (boolean IsMandatory) -{ -set_Value ("IsMandatory", Boolean.valueOf(IsMandatory)); -} -/** Get Mandatory. -@return Data entry is required in this column */ -public boolean isMandatory() -{ -Object oo = get_Value("IsMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMandatory */ -public static final String COLUMNNAME_IsMandatory = "IsMandatory"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Same Line. -@param IsSameLine Displayed on same line as previous field */ -public void setIsSameLine (boolean IsSameLine) -{ -set_Value ("IsSameLine", Boolean.valueOf(IsSameLine)); -} -/** Get Same Line. -@return Displayed on same line as previous field */ -public boolean isSameLine() -{ -Object oo = get_Value("IsSameLine"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSameLine */ -public static final String COLUMNNAME_IsSameLine = "IsSameLine"; -/** Set Updateable. -@param IsUpdateable Determines, if the field can be updated */ -public void setIsUpdateable (boolean IsUpdateable) -{ -set_Value ("IsUpdateable", Boolean.valueOf(IsUpdateable)); -} -/** Get Updateable. -@return Determines, if the field can be updated */ -public boolean isUpdateable() -{ -Object oo = get_Value("IsUpdateable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUpdateable */ -public static final String COLUMNNAME_IsUpdateable = "IsUpdateable"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Value Format. -@param VFormat Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setVFormat (String VFormat) -{ -if (VFormat != null && VFormat.length() > 60) -{ -log.warning("Length > 60 - truncated"); -VFormat = VFormat.substring(0,59); -} -set_Value ("VFormat", VFormat); -} -/** Get Value Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getVFormat() -{ -return (String)get_Value("VFormat"); -} -/** Column name VFormat */ -public static final String COLUMNNAME_VFormat = "VFormat"; -/** Set Max. Value. -@param ValueMax Maximum Value for a field */ -public void setValueMax (String ValueMax) -{ -if (ValueMax != null && ValueMax.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ValueMax = ValueMax.substring(0,19); -} -set_Value ("ValueMax", ValueMax); -} -/** Get Max. Value. -@return Maximum Value for a field */ -public String getValueMax() -{ -return (String)get_Value("ValueMax"); -} -/** Column name ValueMax */ -public static final String COLUMNNAME_ValueMax = "ValueMax"; -/** Set Min. Value. -@param ValueMin Minimum Value for a field */ -public void setValueMin (String ValueMin) -{ -if (ValueMin != null && ValueMin.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ValueMin = ValueMin.substring(0,19); -} -set_Value ("ValueMin", ValueMin); -} -/** Get Min. Value. -@return Minimum Value for a field */ -public String getValueMin() -{ -return (String)get_Value("ValueMin"); -} -/** Column name ValueMin */ -public static final String COLUMNNAME_ValueMin = "ValueMin"; -} + /** Set Reference Key. + @param AD_Reference_Value_ID + Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) + { + if (AD_Reference_Value_ID <= 0) set_Value (COLUMNNAME_AD_Reference_Value_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_Value_ID, Integer.valueOf(AD_Reference_Value_ID)); + } + + /** Get Reference Key. + @return Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_Value_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dynamic Validation. + @param AD_Val_Rule_ID + Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) + { + if (AD_Val_Rule_ID <= 0) set_Value (COLUMNNAME_AD_Val_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + } + + /** Get Dynamic Validation. + @return Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Callout. + @param Callout + Fully qualified class names and method - separated by semicolons + */ + public void setCallout (String Callout) + { + if (Callout != null && Callout.length() > 60) + { + log.warning("Length > 60 - truncated"); + Callout = Callout.substring(0, 59); + } + set_Value (COLUMNNAME_Callout, Callout); + } + + /** Get Callout. + @return Fully qualified class names and method - separated by semicolons + */ + public String getCallout () + { + return (String)get_Value(COLUMNNAME_Callout); + } + + /** Set Default Logic. + @param DefaultValue + Default value hierarchy, separated by ; + */ + public void setDefaultValue (String DefaultValue) + { + if (DefaultValue != null && DefaultValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DefaultValue = DefaultValue.substring(0, 1999); + } + set_Value (COLUMNNAME_DefaultValue, DefaultValue); + } + + /** Get Default Logic. + @return Default value hierarchy, separated by ; + */ + public String getDefaultValue () + { + return (String)get_Value(COLUMNNAME_DefaultValue); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Display Length. + @param DisplayLength + Length of the display in characters + */ + public void setDisplayLength (int DisplayLength) + { + set_Value (COLUMNNAME_DisplayLength, Integer.valueOf(DisplayLength)); + } + + /** Get Display Length. + @return Length of the display in characters + */ + public int getDisplayLength () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DisplayLength); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Display Logic. + @param DisplayLogic + If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic) + { + if (DisplayLogic != null && DisplayLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DisplayLogic = DisplayLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_DisplayLogic, DisplayLogic); + } + + /** Get Display Logic. + @return If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic () + { + return (String)get_Value(COLUMNNAME_DisplayLogic); + } + + /** Set Length. + @param FieldLength + Length of the column in the database + */ + public void setFieldLength (int FieldLength) + { + set_Value (COLUMNNAME_FieldLength, Integer.valueOf(FieldLength)); + } + + /** Get Length. + @return Length of the column in the database + */ + public int getFieldLength () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FieldLength); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Encrypted. + @param IsEncrypted + Display or Storage is encrypted + */ + public void setIsEncrypted (boolean IsEncrypted) + { + set_Value (COLUMNNAME_IsEncrypted, Boolean.valueOf(IsEncrypted)); + } + + /** Get Encrypted. + @return Display or Storage is encrypted + */ + public boolean isEncrypted () + { + Object oo = get_Value(COLUMNNAME_IsEncrypted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Field Only. + @param IsFieldOnly + Label is not displayed + */ + public void setIsFieldOnly (boolean IsFieldOnly) + { + set_Value (COLUMNNAME_IsFieldOnly, Boolean.valueOf(IsFieldOnly)); + } + + /** Get Field Only. + @return Label is not displayed + */ + public boolean isFieldOnly () + { + Object oo = get_Value(COLUMNNAME_IsFieldOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Heading only. + @param IsHeading + Field without Column - Only label is displayed + */ + public void setIsHeading (boolean IsHeading) + { + set_Value (COLUMNNAME_IsHeading, Boolean.valueOf(IsHeading)); + } + + /** Get Heading only. + @return Field without Column - Only label is displayed + */ + public boolean isHeading () + { + Object oo = get_Value(COLUMNNAME_IsHeading); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory. + @param IsMandatory + Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory) + { + set_Value (COLUMNNAME_IsMandatory, Boolean.valueOf(IsMandatory)); + } + + /** Get Mandatory. + @return Data entry is required in this column + */ + public boolean isMandatory () + { + Object oo = get_Value(COLUMNNAME_IsMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Same Line. + @param IsSameLine + Displayed on same line as previous field + */ + public void setIsSameLine (boolean IsSameLine) + { + set_Value (COLUMNNAME_IsSameLine, Boolean.valueOf(IsSameLine)); + } + + /** Get Same Line. + @return Displayed on same line as previous field + */ + public boolean isSameLine () + { + Object oo = get_Value(COLUMNNAME_IsSameLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Updateable. + @param IsUpdateable + Determines, if the field can be updated + */ + public void setIsUpdateable (boolean IsUpdateable) + { + set_Value (COLUMNNAME_IsUpdateable, Boolean.valueOf(IsUpdateable)); + } + + /** Get Updateable. + @return Determines, if the field can be updated + */ + public boolean isUpdateable () + { + Object oo = get_Value(COLUMNNAME_IsUpdateable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Value Format. + @param VFormat + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat) + { + if (VFormat != null && VFormat.length() > 60) + { + log.warning("Length > 60 - truncated"); + VFormat = VFormat.substring(0, 59); + } + set_Value (COLUMNNAME_VFormat, VFormat); + } + + /** Get Value Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat () + { + return (String)get_Value(COLUMNNAME_VFormat); + } + + /** Set Max. Value. + @param ValueMax + Maximum Value for a field + */ + public void setValueMax (String ValueMax) + { + if (ValueMax != null && ValueMax.length() > 20) + { + log.warning("Length > 20 - truncated"); + ValueMax = ValueMax.substring(0, 19); + } + set_Value (COLUMNNAME_ValueMax, ValueMax); + } + + /** Get Max. Value. + @return Maximum Value for a field + */ + public String getValueMax () + { + return (String)get_Value(COLUMNNAME_ValueMax); + } + + /** Set Min. Value. + @param ValueMin + Minimum Value for a field + */ + public void setValueMin (String ValueMin) + { + if (ValueMin != null && ValueMin.length() > 20) + { + log.warning("Length > 20 - truncated"); + ValueMin = ValueMin.substring(0, 19); + } + set_Value (COLUMNNAME_ValueMin, ValueMin); + } + + /** Get Min. Value. + @return Minimum Value for a field + */ + public String getValueMin () + { + return (String)get_Value(COLUMNNAME_ValueMin); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Attribute_Value.java b/base/src/org/compiere/model/X_AD_Attribute_Value.java index ea57e5d698..1f4acfd286 100644 --- a/base/src/org/compiere/model/X_AD_Attribute_Value.java +++ b/base/src/org/compiere/model/X_AD_Attribute_Value.java @@ -1,175 +1,167 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Attribute_Value - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Attribute_Value extends PO + +/** Generated Model for AD_Attribute_Value + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Attribute_Value extends PO implements I_AD_Attribute_Value, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Attribute_Value_ID id -@param trxName transaction -*/ -public X_AD_Attribute_Value (Properties ctx, int AD_Attribute_Value_ID, String trxName) -{ -super (ctx, AD_Attribute_Value_ID, trxName); -/** if (AD_Attribute_Value_ID == 0) -{ -setAD_Attribute_ID (0); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Attribute_Value (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Attribute_Value */ -public static final String Table_Name="AD_Attribute_Value"; - -/** AD_Table_ID=406 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Attribute_Value[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Attribute. -@param AD_Attribute_ID System Attribute */ -public void setAD_Attribute_ID (int AD_Attribute_ID) -{ -if (AD_Attribute_ID < 1) throw new IllegalArgumentException ("AD_Attribute_ID is mandatory."); -set_ValueNoCheck ("AD_Attribute_ID", Integer.valueOf(AD_Attribute_ID)); -} -/** Get System Attribute. -@return System Attribute */ -public int getAD_Attribute_ID() -{ -Integer ii = (Integer)get_Value("AD_Attribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Attribute_ID */ -public static final String COLUMNNAME_AD_Attribute_ID = "AD_Attribute_ID"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set V_Date. -@param V_Date V_Date */ -public void setV_Date (Timestamp V_Date) -{ -set_Value ("V_Date", V_Date); -} -/** Get V_Date. -@return V_Date */ -public Timestamp getV_Date() -{ -return (Timestamp)get_Value("V_Date"); -} -/** Column name V_Date */ -public static final String COLUMNNAME_V_Date = "V_Date"; -/** Set V_Number. -@param V_Number V_Number */ -public void setV_Number (String V_Number) -{ -if (V_Number != null && V_Number.length() > 22) -{ -log.warning("Length > 22 - truncated"); -V_Number = V_Number.substring(0,21); -} -set_Value ("V_Number", V_Number); -} -/** Get V_Number. -@return V_Number */ -public String getV_Number() -{ -return (String)get_Value("V_Number"); -} -/** Column name V_Number */ -public static final String COLUMNNAME_V_Number = "V_Number"; -/** Set V_String. -@param V_String V_String */ -public void setV_String (String V_String) -{ -if (V_String != null && V_String.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -V_String = V_String.substring(0,1999); -} -set_Value ("V_String", V_String); -} -/** Get V_String. -@return V_String */ -public String getV_String() -{ -return (String)get_Value("V_String"); -} -/** Column name V_String */ -public static final String COLUMNNAME_V_String = "V_String"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Attribute_Value (Properties ctx, int AD_Attribute_Value_ID, String trxName) + { + super (ctx, AD_Attribute_Value_ID, trxName); + /** if (AD_Attribute_Value_ID == 0) { setAD_Attribute_ID (0); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Attribute_Value (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Attribute_Value[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Attribute. + @param AD_Attribute_ID System Attribute */ + public void setAD_Attribute_ID (int AD_Attribute_ID) + { + if (AD_Attribute_ID < 1) + throw new IllegalArgumentException ("AD_Attribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Attribute_ID, Integer.valueOf(AD_Attribute_ID)); + } + + /** Get System Attribute. +@return System Attribute */ + public int getAD_Attribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Attribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set V_Date. + @param V_Date V_Date */ + public void setV_Date (Timestamp V_Date) + { + set_Value (COLUMNNAME_V_Date, V_Date); + } + + /** Get V_Date. +@return V_Date */ + public Timestamp getV_Date () + { + return (Timestamp)get_Value(COLUMNNAME_V_Date); + } + + /** Set V_Number. + @param V_Number V_Number */ + public void setV_Number (String V_Number) + { + if (V_Number != null && V_Number.length() > 22) + { + log.warning("Length > 22 - truncated"); + V_Number = V_Number.substring(0, 21); + } + set_Value (COLUMNNAME_V_Number, V_Number); + } + + /** Get V_Number. +@return V_Number */ + public String getV_Number () + { + return (String)get_Value(COLUMNNAME_V_Number); + } + + /** Set V_String. + @param V_String V_String */ + public void setV_String (String V_String) + { + if (V_String != null && V_String.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + V_String = V_String.substring(0, 1999); + } + set_Value (COLUMNNAME_V_String, V_String); + } + + /** Get V_String. +@return V_String */ + public String getV_String () + { + return (String)get_Value(COLUMNNAME_V_String); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ChangeLog.java b/base/src/org/compiere/model/X_AD_ChangeLog.java index 039a4f5aa3..6449801284 100644 --- a/base/src/org/compiere/model/X_AD_ChangeLog.java +++ b/base/src/org/compiere/model/X_AD_ChangeLog.java @@ -1,318 +1,394 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ChangeLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ChangeLog extends PO + +/** Generated Model for AD_ChangeLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ChangeLog extends PO implements I_AD_ChangeLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ChangeLog_ID id -@param trxName transaction -*/ -public X_AD_ChangeLog (Properties ctx, int AD_ChangeLog_ID, String trxName) -{ -super (ctx, AD_ChangeLog_ID, trxName); -/** if (AD_ChangeLog_ID == 0) -{ -setAD_ChangeLog_ID (0); -setAD_Column_ID (0); -setAD_Session_ID (0); -setAD_Table_ID (0); -setIsCustomization (false); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ChangeLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ChangeLog */ -public static final String Table_Name="AD_ChangeLog"; - -/** AD_Table_ID=580 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ChangeLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Change Log. -@param AD_ChangeLog_ID Log of data changes */ -public void setAD_ChangeLog_ID (int AD_ChangeLog_ID) -{ -if (AD_ChangeLog_ID < 1) throw new IllegalArgumentException ("AD_ChangeLog_ID is mandatory."); -set_ValueNoCheck ("AD_ChangeLog_ID", Integer.valueOf(AD_ChangeLog_ID)); -} -/** Get Change Log. -@return Log of data changes */ -public int getAD_ChangeLog_ID() -{ -Integer ii = (Integer)get_Value("AD_ChangeLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ChangeLog_ID */ -public static final String COLUMNNAME_AD_ChangeLog_ID = "AD_ChangeLog_ID"; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_ValueNoCheck ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Session. -@param AD_Session_ID User Session Online or Web */ -public void setAD_Session_ID (int AD_Session_ID) -{ -if (AD_Session_ID < 1) throw new IllegalArgumentException ("AD_Session_ID is mandatory."); -set_ValueNoCheck ("AD_Session_ID", Integer.valueOf(AD_Session_ID)); -} -/** Get Session. -@return User Session Online or Web */ -public int getAD_Session_ID() -{ -Integer ii = (Integer)get_Value("AD_Session_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Session_ID())); -} -/** Column name AD_Session_ID */ -public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Customization. -@param IsCustomization The change is a customization of the data dictionary and can be applied after Migration */ -public void setIsCustomization (boolean IsCustomization) -{ -set_Value ("IsCustomization", Boolean.valueOf(IsCustomization)); -} -/** Get Customization. -@return The change is a customization of the data dictionary and can be applied after Migration */ -public boolean isCustomization() -{ -Object oo = get_Value("IsCustomization"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCustomization */ -public static final String COLUMNNAME_IsCustomization = "IsCustomization"; -/** Set New Value. -@param NewValue New field value */ -public void setNewValue (String NewValue) -{ -if (NewValue != null && NewValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -NewValue = NewValue.substring(0,1999); -} -set_ValueNoCheck ("NewValue", NewValue); -} -/** Get New Value. -@return New field value */ -public String getNewValue() -{ -return (String)get_Value("NewValue"); -} -/** Column name NewValue */ -public static final String COLUMNNAME_NewValue = "NewValue"; -/** Set Old Value. -@param OldValue The old file data */ -public void setOldValue (String OldValue) -{ -if (OldValue != null && OldValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OldValue = OldValue.substring(0,1999); -} -set_ValueNoCheck ("OldValue", OldValue); -} -/** Get Old Value. -@return The old file data */ -public String getOldValue() -{ -return (String)get_Value("OldValue"); -} -/** Column name OldValue */ -public static final String COLUMNNAME_OldValue = "OldValue"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Redo. -@param Redo Redo */ -public void setRedo (String Redo) -{ -if (Redo != null && Redo.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Redo = Redo.substring(0,0); -} -set_Value ("Redo", Redo); -} -/** Get Redo. -@return Redo */ -public String getRedo() -{ -return (String)get_Value("Redo"); -} -/** Column name Redo */ -public static final String COLUMNNAME_Redo = "Redo"; -/** Set Transaction. -@param TrxName Name of the transaction */ -public void setTrxName (String TrxName) -{ -if (TrxName != null && TrxName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -TrxName = TrxName.substring(0,59); -} -set_ValueNoCheck ("TrxName", TrxName); -} -/** Get Transaction. -@return Name of the transaction */ -public String getTrxName() -{ -return (String)get_Value("TrxName"); -} -/** Column name TrxName */ -public static final String COLUMNNAME_TrxName = "TrxName"; -/** Set Undo. -@param Undo Undo */ -public void setUndo (String Undo) -{ -if (Undo != null && Undo.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Undo = Undo.substring(0,0); -} -set_Value ("Undo", Undo); -} -/** Get Undo. -@return Undo */ -public String getUndo() -{ -return (String)get_Value("Undo"); -} -/** Column name Undo */ -public static final String COLUMNNAME_Undo = "Undo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ChangeLog (Properties ctx, int AD_ChangeLog_ID, String trxName) + { + super (ctx, AD_ChangeLog_ID, trxName); + /** if (AD_ChangeLog_ID == 0) { setAD_ChangeLog_ID (0); + setAD_Column_ID (0); + setAD_Session_ID (0); + setAD_Table_ID (0); + setIsCustomization (false); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_ChangeLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ChangeLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Change Log. + @param AD_ChangeLog_ID + Log of data changes + */ + public void setAD_ChangeLog_ID (int AD_ChangeLog_ID) + { + if (AD_ChangeLog_ID < 1) + throw new IllegalArgumentException ("AD_ChangeLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ChangeLog_ID, Integer.valueOf(AD_ChangeLog_ID)); + } + + /** Get Change Log. + @return Log of data changes + */ + public int getAD_ChangeLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ChangeLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Session getI_AD_Session() throws Exception + { + 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 e; + } + return result; + } + + /** Set Session. + @param AD_Session_ID + User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID) + { + if (AD_Session_ID < 1) + throw new IllegalArgumentException ("AD_Session_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); + } + + /** Get Session. + @return User Session Online or Web + */ + public int getAD_Session_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Session_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Session_ID())); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Customization. + @param IsCustomization + The change is a customization of the data dictionary and can be applied after Migration + */ + public void setIsCustomization (boolean IsCustomization) + { + set_Value (COLUMNNAME_IsCustomization, Boolean.valueOf(IsCustomization)); + } + + /** Get Customization. + @return The change is a customization of the data dictionary and can be applied after Migration + */ + public boolean isCustomization () + { + Object oo = get_Value(COLUMNNAME_IsCustomization); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set New Value. + @param NewValue + New field value + */ + public void setNewValue (String NewValue) + { + if (NewValue != null && NewValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + NewValue = NewValue.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_NewValue, NewValue); + } + + /** Get New Value. + @return New field value + */ + public String getNewValue () + { + return (String)get_Value(COLUMNNAME_NewValue); + } + + /** Set Old Value. + @param OldValue + The old file data + */ + public void setOldValue (String OldValue) + { + if (OldValue != null && OldValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OldValue = OldValue.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_OldValue, OldValue); + } + + /** Get Old Value. + @return The old file data + */ + public String getOldValue () + { + return (String)get_Value(COLUMNNAME_OldValue); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Redo. + @param Redo Redo */ + public void setRedo (String Redo) + { + if (Redo != null && Redo.length() > 1) + { + log.warning("Length > 1 - truncated"); + Redo = Redo.substring(0, 0); + } + set_Value (COLUMNNAME_Redo, Redo); + } + + /** Get Redo. +@return Redo */ + public String getRedo () + { + return (String)get_Value(COLUMNNAME_Redo); + } + + /** Set Transaction. + @param TrxName + Name of the transaction + */ + public void setTrxName (String TrxName) + { + if (TrxName != null && TrxName.length() > 60) + { + log.warning("Length > 60 - truncated"); + TrxName = TrxName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_TrxName, TrxName); + } + + /** Get Transaction. + @return Name of the transaction + */ + public String getTrxName () + { + return (String)get_Value(COLUMNNAME_TrxName); + } + + /** Set Undo. + @param Undo Undo */ + public void setUndo (String Undo) + { + if (Undo != null && Undo.length() > 1) + { + log.warning("Length > 1 - truncated"); + Undo = Undo.substring(0, 0); + } + set_Value (COLUMNNAME_Undo, Undo); + } + + /** Get Undo. +@return Undo */ + public String getUndo () + { + return (String)get_Value(COLUMNNAME_Undo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Client.java b/base/src/org/compiere/model/X_AD_Client.java index c2ad5e630c..b3142a2dba 100644 --- a/base/src/org/compiere/model/X_AD_Client.java +++ b/base/src/org/compiere/model/X_AD_Client.java @@ -1,640 +1,684 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Client - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Client extends PO + +/** Generated Model for AD_Client + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Client extends PO implements I_AD_Client, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Client_ID id -@param trxName transaction -*/ -public X_AD_Client (Properties ctx, int AD_Client_ID, String trxName) -{ -super (ctx, AD_Client_ID, trxName); -/** if (AD_Client_ID == 0) -{ -setAutoArchive (null); // N -setIsCostImmediate (false); // N -setIsMultiLingualDocument (false); -setIsPostImmediate (false); // N -setIsServerEMail (false); -setIsSmtpAuthorization (false); // N -setIsUseBetaFunctions (true); // Y -setMMPolicy (null); // F -setName (null); -setStoreArchiveOnFileSystem (false); -setStoreAttachmentsOnFileSystem (false); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Client (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Client */ -public static final String Table_Name="AD_Client"; - -/** AD_Table_ID=112 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Client[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Client (Properties ctx, int AD_Client_ID, String trxName) + { + super (ctx, AD_Client_ID, trxName); + /** if (AD_Client_ID == 0) { setAutoArchive (null); +// N + setIsCostImmediate (false); +// N + setIsMultiLingualDocument (false); + setIsPostImmediate (false); +// N + setIsServerEMail (false); + setIsSmtpAuthorization (false); +// N + setIsUseBetaFunctions (true); +// Y + setMMPolicy (null); +// F + setName (null); + setStoreArchiveOnFileSystem (false); + setStoreAttachmentsOnFileSystem (false); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Client (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Client[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=327 */ public static final int AD_LANGUAGE_AD_Reference_ID=327; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language != null && AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } /** AutoArchive AD_Reference_ID=334 */ -public static final int AUTOARCHIVE_AD_Reference_ID=334; -/** All (Reports, Documents) = 1 */ -public static final String AUTOARCHIVE_AllReportsDocuments = "1"; -/** Documents = 2 */ -public static final String AUTOARCHIVE_Documents = "2"; -/** External Documents = 3 */ -public static final String AUTOARCHIVE_ExternalDocuments = "3"; -/** None = N */ +public static final int AUTOARCHIVE_AD_Reference_ID=334;/** All (Reports, Documents) = 1 */ +public static final String AUTOARCHIVE_AllReportsDocuments = "1";/** Documents = 2 */ +public static final String AUTOARCHIVE_Documents = "2";/** External Documents = 3 */ +public static final String AUTOARCHIVE_ExternalDocuments = "3";/** None = N */ public static final String AUTOARCHIVE_None = "N"; -/** Set Auto Archive. -@param AutoArchive Enable and level of automatic Archive of documents */ -public void setAutoArchive (String AutoArchive) -{ -if (AutoArchive == null) throw new IllegalArgumentException ("AutoArchive is mandatory"); -if (AutoArchive.equals("1") || AutoArchive.equals("2") || AutoArchive.equals("3") || AutoArchive.equals("N")); - else throw new IllegalArgumentException ("AutoArchive Invalid value - " + AutoArchive + " - Reference_ID=334 - 1 - 2 - 3 - N"); -if (AutoArchive.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AutoArchive = AutoArchive.substring(0,0); -} -set_Value ("AutoArchive", AutoArchive); -} -/** Get Auto Archive. -@return Enable and level of automatic Archive of documents */ -public String getAutoArchive() -{ -return (String)get_Value("AutoArchive"); -} -/** Column name AutoArchive */ -public static final String COLUMNNAME_AutoArchive = "AutoArchive"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Directory. -@param DocumentDir Directory for documents from the application server */ -public void setDocumentDir (String DocumentDir) -{ -if (DocumentDir != null && DocumentDir.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DocumentDir = DocumentDir.substring(0,59); -} -set_Value ("DocumentDir", DocumentDir); -} -/** Get Document Directory. -@return Directory for documents from the application server */ -public String getDocumentDir() -{ -return (String)get_Value("DocumentDir"); -} -/** Column name DocumentDir */ -public static final String COLUMNNAME_DocumentDir = "DocumentDir"; -/** Set EMail Test. -@param EMailTest Test EMail */ -public void setEMailTest (String EMailTest) -{ -if (EMailTest != null && EMailTest.length() > 1) -{ -log.warning("Length > 1 - truncated"); -EMailTest = EMailTest.substring(0,0); -} -set_Value ("EMailTest", EMailTest); -} -/** Get EMail Test. -@return Test EMail */ -public String getEMailTest() -{ -return (String)get_Value("EMailTest"); -} -/** Column name EMailTest */ -public static final String COLUMNNAME_EMailTest = "EMailTest"; -/** Set Cost Immediately. -@param IsCostImmediate Update Costs immediately for testing */ -public void setIsCostImmediate (boolean IsCostImmediate) -{ -set_Value ("IsCostImmediate", Boolean.valueOf(IsCostImmediate)); -} -/** Get Cost Immediately. -@return Update Costs immediately for testing */ -public boolean isCostImmediate() -{ -Object oo = get_Value("IsCostImmediate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCostImmediate */ -public static final String COLUMNNAME_IsCostImmediate = "IsCostImmediate"; -/** Set Multi Lingual Documents. -@param IsMultiLingualDocument Documents are Multi Lingual */ -public void setIsMultiLingualDocument (boolean IsMultiLingualDocument) -{ -set_Value ("IsMultiLingualDocument", Boolean.valueOf(IsMultiLingualDocument)); -} -/** Get Multi Lingual Documents. -@return Documents are Multi Lingual */ -public boolean isMultiLingualDocument() -{ -Object oo = get_Value("IsMultiLingualDocument"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMultiLingualDocument */ -public static final String COLUMNNAME_IsMultiLingualDocument = "IsMultiLingualDocument"; -/** Set Post Immediately. -@param IsPostImmediate Post the accounting immediately for testing */ -public void setIsPostImmediate (boolean IsPostImmediate) -{ -set_Value ("IsPostImmediate", Boolean.valueOf(IsPostImmediate)); -} -/** Get Post Immediately. -@return Post the accounting immediately for testing */ -public boolean isPostImmediate() -{ -Object oo = get_Value("IsPostImmediate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPostImmediate */ -public static final String COLUMNNAME_IsPostImmediate = "IsPostImmediate"; -/** Set Server EMail. -@param IsServerEMail Send EMail from Server */ -public void setIsServerEMail (boolean IsServerEMail) -{ -set_Value ("IsServerEMail", Boolean.valueOf(IsServerEMail)); -} -/** Get Server EMail. -@return Send EMail from Server */ -public boolean isServerEMail() -{ -Object oo = get_Value("IsServerEMail"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsServerEMail */ -public static final String COLUMNNAME_IsServerEMail = "IsServerEMail"; -/** Set SMTP Authentication. -@param IsSmtpAuthorization Your mail server requires Authentication */ -public void setIsSmtpAuthorization (boolean IsSmtpAuthorization) -{ -set_Value ("IsSmtpAuthorization", Boolean.valueOf(IsSmtpAuthorization)); -} -/** Get SMTP Authentication. -@return Your mail server requires Authentication */ -public boolean isSmtpAuthorization() -{ -Object oo = get_Value("IsSmtpAuthorization"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSmtpAuthorization */ -public static final String COLUMNNAME_IsSmtpAuthorization = "IsSmtpAuthorization"; -/** Set Use Beta Functions. -@param IsUseBetaFunctions Enable the use of Beta Functionality */ -public void setIsUseBetaFunctions (boolean IsUseBetaFunctions) -{ -set_Value ("IsUseBetaFunctions", Boolean.valueOf(IsUseBetaFunctions)); -} -/** Get Use Beta Functions. -@return Enable the use of Beta Functionality */ -public boolean isUseBetaFunctions() -{ -Object oo = get_Value("IsUseBetaFunctions"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUseBetaFunctions */ -public static final String COLUMNNAME_IsUseBetaFunctions = "IsUseBetaFunctions"; + /** Set Auto Archive. + @param AutoArchive + Enable and level of automatic Archive of documents + */ + public void setAutoArchive (String AutoArchive) + { +if (AutoArchive == null) throw new IllegalArgumentException ("AutoArchive is mandatory");if (AutoArchive.equals("1") || AutoArchive.equals("2") || AutoArchive.equals("3") || AutoArchive.equals("N")); else throw new IllegalArgumentException ("AutoArchive Invalid value - " + AutoArchive + " - Reference_ID=334 - 1 - 2 - 3 - N"); if (AutoArchive.length() > 1) + { + log.warning("Length > 1 - truncated"); + AutoArchive = AutoArchive.substring(0, 0); + } + set_Value (COLUMNNAME_AutoArchive, AutoArchive); + } + + /** Get Auto Archive. + @return Enable and level of automatic Archive of documents + */ + public String getAutoArchive () + { + return (String)get_Value(COLUMNNAME_AutoArchive); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Directory. + @param DocumentDir + Directory for documents from the application server + */ + public void setDocumentDir (String DocumentDir) + { + if (DocumentDir != null && DocumentDir.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocumentDir = DocumentDir.substring(0, 59); + } + set_Value (COLUMNNAME_DocumentDir, DocumentDir); + } + + /** Get Document Directory. + @return Directory for documents from the application server + */ + public String getDocumentDir () + { + return (String)get_Value(COLUMNNAME_DocumentDir); + } + + /** Set EMail Test. + @param EMailTest + Test EMail + */ + public void setEMailTest (String EMailTest) + { + if (EMailTest != null && EMailTest.length() > 1) + { + log.warning("Length > 1 - truncated"); + EMailTest = EMailTest.substring(0, 0); + } + set_Value (COLUMNNAME_EMailTest, EMailTest); + } + + /** Get EMail Test. + @return Test EMail + */ + public String getEMailTest () + { + return (String)get_Value(COLUMNNAME_EMailTest); + } + + /** Set Cost Immediately. + @param IsCostImmediate + Update Costs immediately for testing + */ + public void setIsCostImmediate (boolean IsCostImmediate) + { + set_Value (COLUMNNAME_IsCostImmediate, Boolean.valueOf(IsCostImmediate)); + } + + /** Get Cost Immediately. + @return Update Costs immediately for testing + */ + public boolean isCostImmediate () + { + Object oo = get_Value(COLUMNNAME_IsCostImmediate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Multi Lingual Documents. + @param IsMultiLingualDocument + Documents are Multi Lingual + */ + public void setIsMultiLingualDocument (boolean IsMultiLingualDocument) + { + set_Value (COLUMNNAME_IsMultiLingualDocument, Boolean.valueOf(IsMultiLingualDocument)); + } + + /** Get Multi Lingual Documents. + @return Documents are Multi Lingual + */ + public boolean isMultiLingualDocument () + { + Object oo = get_Value(COLUMNNAME_IsMultiLingualDocument); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Immediately. + @param IsPostImmediate + Post the accounting immediately for testing + */ + public void setIsPostImmediate (boolean IsPostImmediate) + { + set_Value (COLUMNNAME_IsPostImmediate, Boolean.valueOf(IsPostImmediate)); + } + + /** Get Post Immediately. + @return Post the accounting immediately for testing + */ + public boolean isPostImmediate () + { + Object oo = get_Value(COLUMNNAME_IsPostImmediate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Server EMail. + @param IsServerEMail + Send EMail from Server + */ + public void setIsServerEMail (boolean IsServerEMail) + { + set_Value (COLUMNNAME_IsServerEMail, Boolean.valueOf(IsServerEMail)); + } + + /** Get Server EMail. + @return Send EMail from Server + */ + public boolean isServerEMail () + { + Object oo = get_Value(COLUMNNAME_IsServerEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set SMTP Authentication. + @param IsSmtpAuthorization + Your mail server requires Authentication + */ + public void setIsSmtpAuthorization (boolean IsSmtpAuthorization) + { + set_Value (COLUMNNAME_IsSmtpAuthorization, Boolean.valueOf(IsSmtpAuthorization)); + } + + /** Get SMTP Authentication. + @return Your mail server requires Authentication + */ + public boolean isSmtpAuthorization () + { + Object oo = get_Value(COLUMNNAME_IsSmtpAuthorization); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Beta Functions. + @param IsUseBetaFunctions + Enable the use of Beta Functionality + */ + public void setIsUseBetaFunctions (boolean IsUseBetaFunctions) + { + set_Value (COLUMNNAME_IsUseBetaFunctions, Boolean.valueOf(IsUseBetaFunctions)); + } + + /** Get Use Beta Functions. + @return Enable the use of Beta Functionality + */ + public boolean isUseBetaFunctions () + { + Object oo = get_Value(COLUMNNAME_IsUseBetaFunctions); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** MMPolicy AD_Reference_ID=335 */ -public static final int MMPOLICY_AD_Reference_ID=335; -/** FiFo = F */ -public static final String MMPOLICY_FiFo = "F"; -/** LiFo = L */ +public static final int MMPOLICY_AD_Reference_ID=335;/** FiFo = F */ +public static final String MMPOLICY_FiFo = "F";/** LiFo = L */ public static final String MMPOLICY_LiFo = "L"; -/** Set Material Policy. -@param MMPolicy Material Movement Policy */ -public void setMMPolicy (String MMPolicy) -{ -if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory"); -if (MMPolicy.equals("F") || MMPolicy.equals("L")); - else throw new IllegalArgumentException ("MMPolicy Invalid value - " + MMPolicy + " - Reference_ID=335 - F - L"); -if (MMPolicy.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MMPolicy = MMPolicy.substring(0,0); -} -set_Value ("MMPolicy", MMPolicy); -} -/** Get Material Policy. -@return Material Movement Policy */ -public String getMMPolicy() -{ -return (String)get_Value("MMPolicy"); -} -/** Column name MMPolicy */ -public static final String COLUMNNAME_MMPolicy = "MMPolicy"; -/** Set Model Validation Classes. -@param ModelValidationClasses List of data model validation classes separated by ; - */ -public void setModelValidationClasses (String ModelValidationClasses) -{ -if (ModelValidationClasses != null && ModelValidationClasses.length() > 255) -{ -log.warning("Length > 255 - truncated"); -ModelValidationClasses = ModelValidationClasses.substring(0,254); -} -set_Value ("ModelValidationClasses", ModelValidationClasses); -} -/** Get Model Validation Classes. -@return List of data model validation classes separated by ; - */ -public String getModelValidationClasses() -{ -return (String)get_Value("ModelValidationClasses"); -} -/** Column name ModelValidationClasses */ -public static final String COLUMNNAME_ModelValidationClasses = "ModelValidationClasses"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Request EMail. -@param RequestEMail EMail address to send automated mails from or receive mails for automated processing (fully qualified) */ -public void setRequestEMail (String RequestEMail) -{ -if (RequestEMail != null && RequestEMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RequestEMail = RequestEMail.substring(0,59); -} -set_Value ("RequestEMail", RequestEMail); -} -/** Get Request EMail. -@return EMail address to send automated mails from or receive mails for automated processing (fully qualified) */ -public String getRequestEMail() -{ -return (String)get_Value("RequestEMail"); -} -/** Column name RequestEMail */ -public static final String COLUMNNAME_RequestEMail = "RequestEMail"; -/** Set Request Folder. -@param RequestFolder EMail folder to process incoming emails; - if empty INBOX is used */ -public void setRequestFolder (String RequestFolder) -{ -if (RequestFolder != null && RequestFolder.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RequestFolder = RequestFolder.substring(0,19); -} -set_Value ("RequestFolder", RequestFolder); -} -/** Get Request Folder. -@return EMail folder to process incoming emails; - if empty INBOX is used */ -public String getRequestFolder() -{ -return (String)get_Value("RequestFolder"); -} -/** Column name RequestFolder */ -public static final String COLUMNNAME_RequestFolder = "RequestFolder"; -/** Set Request User. -@param RequestUser User Name (ID) of the email owner */ -public void setRequestUser (String RequestUser) -{ -if (RequestUser != null && RequestUser.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RequestUser = RequestUser.substring(0,59); -} -set_Value ("RequestUser", RequestUser); -} -/** Get Request User. -@return User Name (ID) of the email owner */ -public String getRequestUser() -{ -return (String)get_Value("RequestUser"); -} -/** Column name RequestUser */ -public static final String COLUMNNAME_RequestUser = "RequestUser"; -/** Set Request User Password. -@param RequestUserPW Password of the user name (ID) for mail processing */ -public void setRequestUserPW (String RequestUserPW) -{ -if (RequestUserPW != null && RequestUserPW.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RequestUserPW = RequestUserPW.substring(0,19); -} -set_Value ("RequestUserPW", RequestUserPW); -} -/** Get Request User Password. -@return Password of the user name (ID) for mail processing */ -public String getRequestUserPW() -{ -return (String)get_Value("RequestUserPW"); -} -/** Column name RequestUserPW */ -public static final String COLUMNNAME_RequestUserPW = "RequestUserPW"; -/** Set Mail Host. -@param SMTPHost Hostname of Mail Server for SMTP and IMAP */ -public void setSMTPHost (String SMTPHost) -{ -if (SMTPHost != null && SMTPHost.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SMTPHost = SMTPHost.substring(0,59); -} -set_Value ("SMTPHost", SMTPHost); -} -/** Get Mail Host. -@return Hostname of Mail Server for SMTP and IMAP */ -public String getSMTPHost() -{ -return (String)get_Value("SMTPHost"); -} -/** Column name SMTPHost */ -public static final String COLUMNNAME_SMTPHost = "SMTPHost"; -/** Set Store Archive On File System. -@param StoreArchiveOnFileSystem Store Archive On File System */ -public void setStoreArchiveOnFileSystem (boolean StoreArchiveOnFileSystem) -{ -set_Value ("StoreArchiveOnFileSystem", Boolean.valueOf(StoreArchiveOnFileSystem)); -} -/** Get Store Archive On File System. -@return Store Archive On File System */ -public boolean isStoreArchiveOnFileSystem() -{ -Object oo = get_Value("StoreArchiveOnFileSystem"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name StoreArchiveOnFileSystem */ -public static final String COLUMNNAME_StoreArchiveOnFileSystem = "StoreArchiveOnFileSystem"; -/** Set Store Attachments On File System. -@param StoreAttachmentsOnFileSystem Store Attachments On File System */ -public void setStoreAttachmentsOnFileSystem (boolean StoreAttachmentsOnFileSystem) -{ -set_Value ("StoreAttachmentsOnFileSystem", Boolean.valueOf(StoreAttachmentsOnFileSystem)); -} -/** Get Store Attachments On File System. -@return Store Attachments On File System */ -public boolean isStoreAttachmentsOnFileSystem() -{ -Object oo = get_Value("StoreAttachmentsOnFileSystem"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name StoreAttachmentsOnFileSystem */ -public static final String COLUMNNAME_StoreAttachmentsOnFileSystem = "StoreAttachmentsOnFileSystem"; -/** Set Unix Archive Path. -@param UnixArchivePath Unix Archive Path */ -public void setUnixArchivePath (String UnixArchivePath) -{ -if (UnixArchivePath != null && UnixArchivePath.length() > 255) -{ -log.warning("Length > 255 - truncated"); -UnixArchivePath = UnixArchivePath.substring(0,254); -} -set_Value ("UnixArchivePath", UnixArchivePath); -} -/** Get Unix Archive Path. -@return Unix Archive Path */ -public String getUnixArchivePath() -{ -return (String)get_Value("UnixArchivePath"); -} -/** Column name UnixArchivePath */ -public static final String COLUMNNAME_UnixArchivePath = "UnixArchivePath"; -/** Set Unix Attachment Path. -@param UnixAttachmentPath Unix Attachment Path */ -public void setUnixAttachmentPath (String UnixAttachmentPath) -{ -if (UnixAttachmentPath != null && UnixAttachmentPath.length() > 255) -{ -log.warning("Length > 255 - truncated"); -UnixAttachmentPath = UnixAttachmentPath.substring(0,254); -} -set_Value ("UnixAttachmentPath", UnixAttachmentPath); -} -/** Get Unix Attachment Path. -@return Unix Attachment Path */ -public String getUnixAttachmentPath() -{ -return (String)get_Value("UnixAttachmentPath"); -} -/** Column name UnixAttachmentPath */ -public static final String COLUMNNAME_UnixAttachmentPath = "UnixAttachmentPath"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Windows Archive Path. -@param WindowsArchivePath Windows Archive Path */ -public void setWindowsArchivePath (String WindowsArchivePath) -{ -if (WindowsArchivePath != null && WindowsArchivePath.length() > 255) -{ -log.warning("Length > 255 - truncated"); -WindowsArchivePath = WindowsArchivePath.substring(0,254); -} -set_Value ("WindowsArchivePath", WindowsArchivePath); -} -/** Get Windows Archive Path. -@return Windows Archive Path */ -public String getWindowsArchivePath() -{ -return (String)get_Value("WindowsArchivePath"); -} -/** Column name WindowsArchivePath */ -public static final String COLUMNNAME_WindowsArchivePath = "WindowsArchivePath"; -/** Set Windows Attachment Path. -@param WindowsAttachmentPath Windows Attachment Path */ -public void setWindowsAttachmentPath (String WindowsAttachmentPath) -{ -if (WindowsAttachmentPath != null && WindowsAttachmentPath.length() > 255) -{ -log.warning("Length > 255 - truncated"); -WindowsAttachmentPath = WindowsAttachmentPath.substring(0,254); -} -set_Value ("WindowsAttachmentPath", WindowsAttachmentPath); -} -/** Get Windows Attachment Path. -@return Windows Attachment Path */ -public String getWindowsAttachmentPath() -{ -return (String)get_Value("WindowsAttachmentPath"); -} -/** Column name WindowsAttachmentPath */ -public static final String COLUMNNAME_WindowsAttachmentPath = "WindowsAttachmentPath"; -} + /** Set Material Policy. + @param MMPolicy + Material Movement Policy + */ + public void setMMPolicy (String MMPolicy) + { +if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory");if (MMPolicy.equals("F") || MMPolicy.equals("L")); else throw new IllegalArgumentException ("MMPolicy Invalid value - " + MMPolicy + " - Reference_ID=335 - F - L"); if (MMPolicy.length() > 1) + { + log.warning("Length > 1 - truncated"); + MMPolicy = MMPolicy.substring(0, 0); + } + set_Value (COLUMNNAME_MMPolicy, MMPolicy); + } + + /** Get Material Policy. + @return Material Movement Policy + */ + public String getMMPolicy () + { + return (String)get_Value(COLUMNNAME_MMPolicy); + } + + /** Set Model Validation Classes. + @param ModelValidationClasses + List of data model validation classes separated by ; + */ + public void setModelValidationClasses (String ModelValidationClasses) + { + if (ModelValidationClasses != null && ModelValidationClasses.length() > 255) + { + log.warning("Length > 255 - truncated"); + ModelValidationClasses = ModelValidationClasses.substring(0, 254); + } + set_Value (COLUMNNAME_ModelValidationClasses, ModelValidationClasses); + } + + /** Get Model Validation Classes. + @return List of data model validation classes separated by ; + */ + public String getModelValidationClasses () + { + return (String)get_Value(COLUMNNAME_ModelValidationClasses); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Request EMail. + @param RequestEMail + EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public void setRequestEMail (String RequestEMail) + { + if (RequestEMail != null && RequestEMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + RequestEMail = RequestEMail.substring(0, 59); + } + set_Value (COLUMNNAME_RequestEMail, RequestEMail); + } + + /** Get Request EMail. + @return EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public String getRequestEMail () + { + return (String)get_Value(COLUMNNAME_RequestEMail); + } + + /** Set Request Folder. + @param RequestFolder + EMail folder to process incoming emails; if empty INBOX is used + */ + public void setRequestFolder (String RequestFolder) + { + if (RequestFolder != null && RequestFolder.length() > 20) + { + log.warning("Length > 20 - truncated"); + RequestFolder = RequestFolder.substring(0, 19); + } + set_Value (COLUMNNAME_RequestFolder, RequestFolder); + } + + /** Get Request Folder. + @return EMail folder to process incoming emails; if empty INBOX is used + */ + public String getRequestFolder () + { + return (String)get_Value(COLUMNNAME_RequestFolder); + } + + /** Set Request User. + @param RequestUser + User Name (ID) of the email owner + */ + public void setRequestUser (String RequestUser) + { + if (RequestUser != null && RequestUser.length() > 60) + { + log.warning("Length > 60 - truncated"); + RequestUser = RequestUser.substring(0, 59); + } + set_Value (COLUMNNAME_RequestUser, RequestUser); + } + + /** Get Request User. + @return User Name (ID) of the email owner + */ + public String getRequestUser () + { + return (String)get_Value(COLUMNNAME_RequestUser); + } + + /** Set Request User Password. + @param RequestUserPW + Password of the user name (ID) for mail processing + */ + public void setRequestUserPW (String RequestUserPW) + { + if (RequestUserPW != null && RequestUserPW.length() > 20) + { + log.warning("Length > 20 - truncated"); + RequestUserPW = RequestUserPW.substring(0, 19); + } + set_Value (COLUMNNAME_RequestUserPW, RequestUserPW); + } + + /** Get Request User Password. + @return Password of the user name (ID) for mail processing + */ + public String getRequestUserPW () + { + return (String)get_Value(COLUMNNAME_RequestUserPW); + } + + /** Set Mail Host. + @param SMTPHost + Hostname of Mail Server for SMTP and IMAP + */ + public void setSMTPHost (String SMTPHost) + { + if (SMTPHost != null && SMTPHost.length() > 60) + { + log.warning("Length > 60 - truncated"); + SMTPHost = SMTPHost.substring(0, 59); + } + set_Value (COLUMNNAME_SMTPHost, SMTPHost); + } + + /** Get Mail Host. + @return Hostname of Mail Server for SMTP and IMAP + */ + public String getSMTPHost () + { + return (String)get_Value(COLUMNNAME_SMTPHost); + } + + /** Set Store Archive On File System. + @param StoreArchiveOnFileSystem Store Archive On File System */ + public void setStoreArchiveOnFileSystem (boolean StoreArchiveOnFileSystem) + { + set_Value (COLUMNNAME_StoreArchiveOnFileSystem, Boolean.valueOf(StoreArchiveOnFileSystem)); + } + + /** Get Store Archive On File System. +@return Store Archive On File System */ + public boolean isStoreArchiveOnFileSystem () + { + Object oo = get_Value(COLUMNNAME_StoreArchiveOnFileSystem); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Store Attachments On File System. + @param StoreAttachmentsOnFileSystem Store Attachments On File System */ + public void setStoreAttachmentsOnFileSystem (boolean StoreAttachmentsOnFileSystem) + { + set_Value (COLUMNNAME_StoreAttachmentsOnFileSystem, Boolean.valueOf(StoreAttachmentsOnFileSystem)); + } + + /** Get Store Attachments On File System. +@return Store Attachments On File System */ + public boolean isStoreAttachmentsOnFileSystem () + { + Object oo = get_Value(COLUMNNAME_StoreAttachmentsOnFileSystem); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Unix Archive Path. + @param UnixArchivePath Unix Archive Path */ + public void setUnixArchivePath (String UnixArchivePath) + { + if (UnixArchivePath != null && UnixArchivePath.length() > 255) + { + log.warning("Length > 255 - truncated"); + UnixArchivePath = UnixArchivePath.substring(0, 254); + } + set_Value (COLUMNNAME_UnixArchivePath, UnixArchivePath); + } + + /** Get Unix Archive Path. +@return Unix Archive Path */ + public String getUnixArchivePath () + { + return (String)get_Value(COLUMNNAME_UnixArchivePath); + } + + /** Set Unix Attachment Path. + @param UnixAttachmentPath Unix Attachment Path */ + public void setUnixAttachmentPath (String UnixAttachmentPath) + { + if (UnixAttachmentPath != null && UnixAttachmentPath.length() > 255) + { + log.warning("Length > 255 - truncated"); + UnixAttachmentPath = UnixAttachmentPath.substring(0, 254); + } + set_Value (COLUMNNAME_UnixAttachmentPath, UnixAttachmentPath); + } + + /** Get Unix Attachment Path. +@return Unix Attachment Path */ + public String getUnixAttachmentPath () + { + return (String)get_Value(COLUMNNAME_UnixAttachmentPath); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Windows Archive Path. + @param WindowsArchivePath Windows Archive Path */ + public void setWindowsArchivePath (String WindowsArchivePath) + { + if (WindowsArchivePath != null && WindowsArchivePath.length() > 255) + { + log.warning("Length > 255 - truncated"); + WindowsArchivePath = WindowsArchivePath.substring(0, 254); + } + set_Value (COLUMNNAME_WindowsArchivePath, WindowsArchivePath); + } + + /** Get Windows Archive Path. +@return Windows Archive Path */ + public String getWindowsArchivePath () + { + return (String)get_Value(COLUMNNAME_WindowsArchivePath); + } + + /** Set Windows Attachment Path. + @param WindowsAttachmentPath Windows Attachment Path */ + public void setWindowsAttachmentPath (String WindowsAttachmentPath) + { + if (WindowsAttachmentPath != null && WindowsAttachmentPath.length() > 255) + { + log.warning("Length > 255 - truncated"); + WindowsAttachmentPath = WindowsAttachmentPath.substring(0, 254); + } + set_Value (COLUMNNAME_WindowsAttachmentPath, WindowsAttachmentPath); + } + + /** Get Windows Attachment Path. +@return Windows Attachment Path */ + public String getWindowsAttachmentPath () + { + return (String)get_Value(COLUMNNAME_WindowsAttachmentPath); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ClientInfo.java b/base/src/org/compiere/model/X_AD_ClientInfo.java index 7e1380f298..0331f9b390 100644 --- a/base/src/org/compiere/model/X_AD_ClientInfo.java +++ b/base/src/org/compiere/model/X_AD_ClientInfo.java @@ -1,457 +1,512 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ClientInfo - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ClientInfo extends PO + +/** Generated Model for AD_ClientInfo + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ClientInfo extends PO implements I_AD_ClientInfo, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ClientInfo_ID id -@param trxName transaction -*/ -public X_AD_ClientInfo (Properties ctx, int AD_ClientInfo_ID, String trxName) -{ -super (ctx, AD_ClientInfo_ID, trxName); -/** if (AD_ClientInfo_ID == 0) -{ -setIsDiscountLineAmt (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ClientInfo (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ClientInfo */ -public static final String Table_Name="AD_ClientInfo"; - -/** AD_Table_ID=227 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ClientInfo[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ClientInfo (Properties ctx, int AD_ClientInfo_ID, String trxName) + { + super (ctx, AD_ClientInfo_ID, trxName); + /** if (AD_ClientInfo_ID == 0) { setIsDiscountLineAmt (false); +} */ + } + + /** Load Constructor */ + public X_AD_ClientInfo (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ClientInfo[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Tree_Activity_ID AD_Reference_ID=184 */ public static final int AD_TREE_ACTIVITY_ID_AD_Reference_ID=184; -/** Set Activity Tree. -@param AD_Tree_Activity_ID Tree to determine activity hierarchy */ -public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID) -{ -if (AD_Tree_Activity_ID <= 0) set_ValueNoCheck ("AD_Tree_Activity_ID", null); - else -set_ValueNoCheck ("AD_Tree_Activity_ID", Integer.valueOf(AD_Tree_Activity_ID)); -} -/** Get Activity Tree. -@return Tree to determine activity hierarchy */ -public int getAD_Tree_Activity_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Activity_ID */ -public static final String COLUMNNAME_AD_Tree_Activity_ID = "AD_Tree_Activity_ID"; + /** Set Activity Tree. + @param AD_Tree_Activity_ID + Tree to determine activity hierarchy + */ + public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID) + { + if (AD_Tree_Activity_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_Activity_ID, Integer.valueOf(AD_Tree_Activity_ID)); + } + + /** Get Activity Tree. + @return Tree to determine activity hierarchy + */ + public int getAD_Tree_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_BPartner_ID AD_Reference_ID=184 */ public static final int AD_TREE_BPARTNER_ID_AD_Reference_ID=184; -/** Set BPartner Tree. -@param AD_Tree_BPartner_ID Tree to determine business partner hierarchy */ -public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID) -{ -if (AD_Tree_BPartner_ID <= 0) set_ValueNoCheck ("AD_Tree_BPartner_ID", null); - else -set_ValueNoCheck ("AD_Tree_BPartner_ID", Integer.valueOf(AD_Tree_BPartner_ID)); -} -/** Get BPartner Tree. -@return Tree to determine business partner hierarchy */ -public int getAD_Tree_BPartner_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_BPartner_ID */ -public static final String COLUMNNAME_AD_Tree_BPartner_ID = "AD_Tree_BPartner_ID"; + /** Set BPartner Tree. + @param AD_Tree_BPartner_ID + Tree to determine business partner hierarchy + */ + public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID) + { + if (AD_Tree_BPartner_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_BPartner_ID, Integer.valueOf(AD_Tree_BPartner_ID)); + } + + /** Get BPartner Tree. + @return Tree to determine business partner hierarchy + */ + public int getAD_Tree_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Campaign_ID AD_Reference_ID=184 */ public static final int AD_TREE_CAMPAIGN_ID_AD_Reference_ID=184; -/** Set Campaign Tree. -@param AD_Tree_Campaign_ID Tree to determine marketing campaign hierarchy */ -public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID) -{ -if (AD_Tree_Campaign_ID <= 0) set_ValueNoCheck ("AD_Tree_Campaign_ID", null); - else -set_ValueNoCheck ("AD_Tree_Campaign_ID", Integer.valueOf(AD_Tree_Campaign_ID)); -} -/** Get Campaign Tree. -@return Tree to determine marketing campaign hierarchy */ -public int getAD_Tree_Campaign_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Campaign_ID */ -public static final String COLUMNNAME_AD_Tree_Campaign_ID = "AD_Tree_Campaign_ID"; + /** Set Campaign Tree. + @param AD_Tree_Campaign_ID + Tree to determine marketing campaign hierarchy + */ + public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID) + { + if (AD_Tree_Campaign_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_Campaign_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_Campaign_ID, Integer.valueOf(AD_Tree_Campaign_ID)); + } + + /** Get Campaign Tree. + @return Tree to determine marketing campaign hierarchy + */ + public int getAD_Tree_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Menu_ID AD_Reference_ID=184 */ public static final int AD_TREE_MENU_ID_AD_Reference_ID=184; -/** Set Menu Tree. -@param AD_Tree_Menu_ID Tree of the menu */ -public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID) -{ -if (AD_Tree_Menu_ID <= 0) set_ValueNoCheck ("AD_Tree_Menu_ID", null); - else -set_ValueNoCheck ("AD_Tree_Menu_ID", Integer.valueOf(AD_Tree_Menu_ID)); -} -/** Get Menu Tree. -@return Tree of the menu */ -public int getAD_Tree_Menu_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Menu_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Menu_ID */ -public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; + /** Set Menu Tree. + @param AD_Tree_Menu_ID + Tree of the menu + */ + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID) + { + if (AD_Tree_Menu_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_Menu_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID)); + } + + /** Get Menu Tree. + @return Tree of the menu + */ + public int getAD_Tree_Menu_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Menu_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Org_ID AD_Reference_ID=184 */ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184; -/** Set Organization Tree. -@param AD_Tree_Org_ID Tree to determine organizational hierarchy */ -public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) -{ -if (AD_Tree_Org_ID <= 0) set_ValueNoCheck ("AD_Tree_Org_ID", null); - else -set_ValueNoCheck ("AD_Tree_Org_ID", Integer.valueOf(AD_Tree_Org_ID)); -} -/** Get Organization Tree. -@return Tree to determine organizational hierarchy */ -public int getAD_Tree_Org_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Org_ID */ -public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; + /** Set Organization Tree. + @param AD_Tree_Org_ID + Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) + { + if (AD_Tree_Org_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_Org_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); + } + + /** Get Organization Tree. + @return Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Product_ID AD_Reference_ID=184 */ public static final int AD_TREE_PRODUCT_ID_AD_Reference_ID=184; -/** Set Product Tree. -@param AD_Tree_Product_ID Tree to determine product hierarchy */ -public void setAD_Tree_Product_ID (int AD_Tree_Product_ID) -{ -if (AD_Tree_Product_ID <= 0) set_ValueNoCheck ("AD_Tree_Product_ID", null); - else -set_ValueNoCheck ("AD_Tree_Product_ID", Integer.valueOf(AD_Tree_Product_ID)); -} -/** Get Product Tree. -@return Tree to determine product hierarchy */ -public int getAD_Tree_Product_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Product_ID */ -public static final String COLUMNNAME_AD_Tree_Product_ID = "AD_Tree_Product_ID"; + /** Set Product Tree. + @param AD_Tree_Product_ID + Tree to determine product hierarchy + */ + public void setAD_Tree_Product_ID (int AD_Tree_Product_ID) + { + if (AD_Tree_Product_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_Product_ID, Integer.valueOf(AD_Tree_Product_ID)); + } + + /** Get Product Tree. + @return Tree to determine product hierarchy + */ + public int getAD_Tree_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Project_ID AD_Reference_ID=184 */ public static final int AD_TREE_PROJECT_ID_AD_Reference_ID=184; -/** Set Project Tree. -@param AD_Tree_Project_ID Tree to determine project hierarchy */ -public void setAD_Tree_Project_ID (int AD_Tree_Project_ID) -{ -if (AD_Tree_Project_ID <= 0) set_ValueNoCheck ("AD_Tree_Project_ID", null); - else -set_ValueNoCheck ("AD_Tree_Project_ID", Integer.valueOf(AD_Tree_Project_ID)); -} -/** Get Project Tree. -@return Tree to determine project hierarchy */ -public int getAD_Tree_Project_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Project_ID */ -public static final String COLUMNNAME_AD_Tree_Project_ID = "AD_Tree_Project_ID"; + /** Set Project Tree. + @param AD_Tree_Project_ID + Tree to determine project hierarchy + */ + public void setAD_Tree_Project_ID (int AD_Tree_Project_ID) + { + if (AD_Tree_Project_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_Project_ID, Integer.valueOf(AD_Tree_Project_ID)); + } + + /** Get Project Tree. + @return Tree to determine project hierarchy + */ + public int getAD_Tree_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_SalesRegion_ID AD_Reference_ID=184 */ public static final int AD_TREE_SALESREGION_ID_AD_Reference_ID=184; -/** Set Sales Region Tree. -@param AD_Tree_SalesRegion_ID Tree to determine sales regional hierarchy */ -public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID) -{ -if (AD_Tree_SalesRegion_ID <= 0) set_ValueNoCheck ("AD_Tree_SalesRegion_ID", null); - else -set_ValueNoCheck ("AD_Tree_SalesRegion_ID", Integer.valueOf(AD_Tree_SalesRegion_ID)); -} -/** Get Sales Region Tree. -@return Tree to determine sales regional hierarchy */ -public int getAD_Tree_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_SalesRegion_ID */ -public static final String COLUMNNAME_AD_Tree_SalesRegion_ID = "AD_Tree_SalesRegion_ID"; + /** Set Sales Region Tree. + @param AD_Tree_SalesRegion_ID + Tree to determine sales regional hierarchy + */ + public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID) + { + if (AD_Tree_SalesRegion_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Tree_SalesRegion_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Tree_SalesRegion_ID, Integer.valueOf(AD_Tree_SalesRegion_ID)); + } + + /** Get Sales Region Tree. + @return Tree to determine sales regional hierarchy + */ + public int getAD_Tree_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_AcctSchema1_ID AD_Reference_ID=136 */ public static final int C_ACCTSCHEMA1_ID_AD_Reference_ID=136; -/** Set Primary Accounting Schema. -@param C_AcctSchema1_ID Primary rules for accounting */ -public void setC_AcctSchema1_ID (int C_AcctSchema1_ID) -{ -if (C_AcctSchema1_ID <= 0) set_ValueNoCheck ("C_AcctSchema1_ID", null); - else -set_ValueNoCheck ("C_AcctSchema1_ID", Integer.valueOf(C_AcctSchema1_ID)); -} -/** Get Primary Accounting Schema. -@return Primary rules for accounting */ -public int getC_AcctSchema1_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema1_ID */ -public static final String COLUMNNAME_C_AcctSchema1_ID = "C_AcctSchema1_ID"; + /** Set Primary Accounting Schema. + @param C_AcctSchema1_ID + Primary rules for accounting + */ + public void setC_AcctSchema1_ID (int C_AcctSchema1_ID) + { + if (C_AcctSchema1_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_AcctSchema1_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AcctSchema1_ID, Integer.valueOf(C_AcctSchema1_ID)); + } + + /** Get Primary Accounting Schema. + @return Primary rules for accounting + */ + public int getC_AcctSchema1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_BPartnerCashTrx_ID AD_Reference_ID=138 */ public static final int C_BPARTNERCASHTRX_ID_AD_Reference_ID=138; -/** Set Template B.Partner. -@param C_BPartnerCashTrx_ID Business Partner used for creating new Business Partners on the fly */ -public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID) -{ -if (C_BPartnerCashTrx_ID <= 0) set_Value ("C_BPartnerCashTrx_ID", null); - else -set_Value ("C_BPartnerCashTrx_ID", Integer.valueOf(C_BPartnerCashTrx_ID)); -} -/** Get Template B.Partner. -@return Business Partner used for creating new Business Partners on the fly */ -public int getC_BPartnerCashTrx_ID() -{ -Integer ii = (Integer)get_Value("C_BPartnerCashTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartnerCashTrx_ID */ -public static final String COLUMNNAME_C_BPartnerCashTrx_ID = "C_BPartnerCashTrx_ID"; -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID <= 0) set_Value ("C_Calendar_ID", null); - else -set_Value ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + /** Set Template B.Partner. + @param C_BPartnerCashTrx_ID + Business Partner used for creating new Business Partners on the fly + */ + public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID) + { + if (C_BPartnerCashTrx_ID <= 0) set_Value (COLUMNNAME_C_BPartnerCashTrx_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerCashTrx_ID, Integer.valueOf(C_BPartnerCashTrx_ID)); + } + + /** Get Template B.Partner. + @return Business Partner used for creating new Business Partners on the fly + */ + public int getC_BPartnerCashTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerCashTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Calendar getI_C_Calendar() throws Exception + { + 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 e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID <= 0) set_Value (COLUMNNAME_C_Calendar_ID, null); + else + set_Value (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_UOM_Length_ID AD_Reference_ID=114 */ public static final int C_UOM_LENGTH_ID_AD_Reference_ID=114; -/** Set UOM for Length. -@param C_UOM_Length_ID Standard Unit of Measure for Length */ -public void setC_UOM_Length_ID (int C_UOM_Length_ID) -{ -if (C_UOM_Length_ID <= 0) set_Value ("C_UOM_Length_ID", null); - else -set_Value ("C_UOM_Length_ID", Integer.valueOf(C_UOM_Length_ID)); -} -/** Get UOM for Length. -@return Standard Unit of Measure for Length */ -public int getC_UOM_Length_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_Length_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_Length_ID */ -public static final String COLUMNNAME_C_UOM_Length_ID = "C_UOM_Length_ID"; + /** Set UOM for Length. + @param C_UOM_Length_ID + Standard Unit of Measure for Length + */ + public void setC_UOM_Length_ID (int C_UOM_Length_ID) + { + if (C_UOM_Length_ID <= 0) set_Value (COLUMNNAME_C_UOM_Length_ID, null); + else + set_Value (COLUMNNAME_C_UOM_Length_ID, Integer.valueOf(C_UOM_Length_ID)); + } + + /** Get UOM for Length. + @return Standard Unit of Measure for Length + */ + public int getC_UOM_Length_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_Length_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_UOM_Time_ID AD_Reference_ID=114 */ public static final int C_UOM_TIME_ID_AD_Reference_ID=114; -/** Set UOM for Time. -@param C_UOM_Time_ID Standard Unit of Measure for Time */ -public void setC_UOM_Time_ID (int C_UOM_Time_ID) -{ -if (C_UOM_Time_ID <= 0) set_Value ("C_UOM_Time_ID", null); - else -set_Value ("C_UOM_Time_ID", Integer.valueOf(C_UOM_Time_ID)); -} -/** Get UOM for Time. -@return Standard Unit of Measure for Time */ -public int getC_UOM_Time_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_Time_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_Time_ID */ -public static final String COLUMNNAME_C_UOM_Time_ID = "C_UOM_Time_ID"; + /** Set UOM for Time. + @param C_UOM_Time_ID + Standard Unit of Measure for Time + */ + public void setC_UOM_Time_ID (int C_UOM_Time_ID) + { + if (C_UOM_Time_ID <= 0) set_Value (COLUMNNAME_C_UOM_Time_ID, null); + else + set_Value (COLUMNNAME_C_UOM_Time_ID, Integer.valueOf(C_UOM_Time_ID)); + } + + /** Get UOM for Time. + @return Standard Unit of Measure for Time + */ + public int getC_UOM_Time_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_Time_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_UOM_Volume_ID AD_Reference_ID=114 */ public static final int C_UOM_VOLUME_ID_AD_Reference_ID=114; -/** Set UOM for Volume. -@param C_UOM_Volume_ID Standard Unit of Measure for Volume */ -public void setC_UOM_Volume_ID (int C_UOM_Volume_ID) -{ -if (C_UOM_Volume_ID <= 0) set_Value ("C_UOM_Volume_ID", null); - else -set_Value ("C_UOM_Volume_ID", Integer.valueOf(C_UOM_Volume_ID)); -} -/** Get UOM for Volume. -@return Standard Unit of Measure for Volume */ -public int getC_UOM_Volume_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_Volume_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_Volume_ID */ -public static final String COLUMNNAME_C_UOM_Volume_ID = "C_UOM_Volume_ID"; + /** Set UOM for Volume. + @param C_UOM_Volume_ID + Standard Unit of Measure for Volume + */ + public void setC_UOM_Volume_ID (int C_UOM_Volume_ID) + { + if (C_UOM_Volume_ID <= 0) set_Value (COLUMNNAME_C_UOM_Volume_ID, null); + else + set_Value (COLUMNNAME_C_UOM_Volume_ID, Integer.valueOf(C_UOM_Volume_ID)); + } + + /** Get UOM for Volume. + @return Standard Unit of Measure for Volume + */ + public int getC_UOM_Volume_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_Volume_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_UOM_Weight_ID AD_Reference_ID=114 */ public static final int C_UOM_WEIGHT_ID_AD_Reference_ID=114; -/** Set UOM for Weight. -@param C_UOM_Weight_ID Standard Unit of Measure for Weight */ -public void setC_UOM_Weight_ID (int C_UOM_Weight_ID) -{ -if (C_UOM_Weight_ID <= 0) set_Value ("C_UOM_Weight_ID", null); - else -set_Value ("C_UOM_Weight_ID", Integer.valueOf(C_UOM_Weight_ID)); -} -/** Get UOM for Weight. -@return Standard Unit of Measure for Weight */ -public int getC_UOM_Weight_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_Weight_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_Weight_ID */ -public static final String COLUMNNAME_C_UOM_Weight_ID = "C_UOM_Weight_ID"; -/** Set Discount calculated from Line Amounts. -@param IsDiscountLineAmt Payment Discount calculation does not include Taxes and Charges */ -public void setIsDiscountLineAmt (boolean IsDiscountLineAmt) -{ -set_Value ("IsDiscountLineAmt", Boolean.valueOf(IsDiscountLineAmt)); -} -/** Get Discount calculated from Line Amounts. -@return Payment Discount calculation does not include Taxes and Charges */ -public boolean isDiscountLineAmt() -{ -Object oo = get_Value("IsDiscountLineAmt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDiscountLineAmt */ -public static final String COLUMNNAME_IsDiscountLineAmt = "IsDiscountLineAmt"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; + /** Set UOM for Weight. + @param C_UOM_Weight_ID + Standard Unit of Measure for Weight + */ + public void setC_UOM_Weight_ID (int C_UOM_Weight_ID) + { + if (C_UOM_Weight_ID <= 0) set_Value (COLUMNNAME_C_UOM_Weight_ID, null); + else + set_Value (COLUMNNAME_C_UOM_Weight_ID, Integer.valueOf(C_UOM_Weight_ID)); + } + + /** Get UOM for Weight. + @return Standard Unit of Measure for Weight + */ + public int getC_UOM_Weight_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_Weight_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Discount calculated from Line Amounts. + @param IsDiscountLineAmt + Payment Discount calculation does not include Taxes and Charges + */ + public void setIsDiscountLineAmt (boolean IsDiscountLineAmt) + { + set_Value (COLUMNNAME_IsDiscountLineAmt, Boolean.valueOf(IsDiscountLineAmt)); + } + + /** Get Discount calculated from Line Amounts. + @return Payment Discount calculation does not include Taxes and Charges + */ + public boolean isDiscountLineAmt () + { + Object oo = get_Value(COLUMNNAME_IsDiscountLineAmt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_ProductFreight_ID AD_Reference_ID=162 */ public static final int M_PRODUCTFREIGHT_ID_AD_Reference_ID=162; -/** Set Product for Freight. -@param M_ProductFreight_ID Product for Freight */ -public void setM_ProductFreight_ID (int M_ProductFreight_ID) -{ -if (M_ProductFreight_ID <= 0) set_Value ("M_ProductFreight_ID", null); - else -set_Value ("M_ProductFreight_ID", Integer.valueOf(M_ProductFreight_ID)); -} -/** Get Product for Freight. -@return Product for Freight */ -public int getM_ProductFreight_ID() -{ -Integer ii = (Integer)get_Value("M_ProductFreight_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductFreight_ID */ -public static final String COLUMNNAME_M_ProductFreight_ID = "M_ProductFreight_ID"; -} + /** Set Product for Freight. + @param M_ProductFreight_ID Product for Freight */ + public void setM_ProductFreight_ID (int M_ProductFreight_ID) + { + if (M_ProductFreight_ID <= 0) set_Value (COLUMNNAME_M_ProductFreight_ID, null); + else + set_Value (COLUMNNAME_M_ProductFreight_ID, Integer.valueOf(M_ProductFreight_ID)); + } + + /** Get Product for Freight. +@return Product for Freight */ + public int getM_ProductFreight_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductFreight_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ClientShare.java b/base/src/org/compiere/model/X_AD_ClientShare.java index 39d070ed3f..673a94d88c 100644 --- a/base/src/org/compiere/model/X_AD_ClientShare.java +++ b/base/src/org/compiere/model/X_AD_ClientShare.java @@ -1,201 +1,217 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ClientShare - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ClientShare extends PO + +/** Generated Model for AD_ClientShare + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ClientShare extends PO implements I_AD_ClientShare, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ClientShare_ID id -@param trxName transaction -*/ -public X_AD_ClientShare (Properties ctx, int AD_ClientShare_ID, String trxName) -{ -super (ctx, AD_ClientShare_ID, trxName); -/** if (AD_ClientShare_ID == 0) -{ -setAD_ClientShare_ID (0); -setAD_Table_ID (0); -setName (null); -setShareType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ClientShare (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ClientShare */ -public static final String Table_Name="AD_ClientShare"; - -/** AD_Table_ID=827 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ClientShare[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Client Share. -@param AD_ClientShare_ID Force (not) sharing of client/org entities */ -public void setAD_ClientShare_ID (int AD_ClientShare_ID) -{ -if (AD_ClientShare_ID < 1) throw new IllegalArgumentException ("AD_ClientShare_ID is mandatory."); -set_ValueNoCheck ("AD_ClientShare_ID", Integer.valueOf(AD_ClientShare_ID)); -} -/** Get Client Share. -@return Force (not) sharing of client/org entities */ -public int getAD_ClientShare_ID() -{ -Integer ii = (Integer)get_Value("AD_ClientShare_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ClientShare_ID */ -public static final String COLUMNNAME_AD_ClientShare_ID = "AD_ClientShare_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ClientShare (Properties ctx, int AD_ClientShare_ID, String trxName) + { + super (ctx, AD_ClientShare_ID, trxName); + /** if (AD_ClientShare_ID == 0) { setAD_ClientShare_ID (0); + setAD_Table_ID (0); + setName (null); + setShareType (null); +} */ + } + + /** Load Constructor */ + public X_AD_ClientShare (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ClientShare[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Client Share. + @param AD_ClientShare_ID + Force (not) sharing of client/org entities + */ + public void setAD_ClientShare_ID (int AD_ClientShare_ID) + { + if (AD_ClientShare_ID < 1) + throw new IllegalArgumentException ("AD_ClientShare_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ClientShare_ID, Integer.valueOf(AD_ClientShare_ID)); + } + + /** Get Client Share. + @return Force (not) sharing of client/org entities + */ + public int getAD_ClientShare_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ClientShare_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** ShareType AD_Reference_ID=365 */ -public static final int SHARETYPE_AD_Reference_ID=365; -/** Client (all shared) = C */ -public static final String SHARETYPE_ClientAllShared = "C"; -/** Org (not shared) = O */ -public static final String SHARETYPE_OrgNotShared = "O"; -/** Client or Org = x */ +public static final int SHARETYPE_AD_Reference_ID=365;/** Client (all shared) = C */ +public static final String SHARETYPE_ClientAllShared = "C";/** Org (not shared) = O */ +public static final String SHARETYPE_OrgNotShared = "O";/** Client or Org = x */ public static final String SHARETYPE_ClientOrOrg = "x"; -/** Set Share Type. -@param ShareType Type of sharing */ -public void setShareType (String ShareType) -{ -if (ShareType == null) throw new IllegalArgumentException ("ShareType is mandatory"); -if (ShareType.equals("C") || ShareType.equals("O") || ShareType.equals("x")); - else throw new IllegalArgumentException ("ShareType Invalid value - " + ShareType + " - Reference_ID=365 - C - O - x"); -if (ShareType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ShareType = ShareType.substring(0,0); -} -set_Value ("ShareType", ShareType); -} -/** Get Share Type. -@return Type of sharing */ -public String getShareType() -{ -return (String)get_Value("ShareType"); -} -/** Column name ShareType */ -public static final String COLUMNNAME_ShareType = "ShareType"; -} + /** Set Share Type. + @param ShareType + Type of sharing + */ + public void setShareType (String ShareType) + { +if (ShareType == null) throw new IllegalArgumentException ("ShareType is mandatory");if (ShareType.equals("C") || ShareType.equals("O") || ShareType.equals("x")); else throw new IllegalArgumentException ("ShareType Invalid value - " + ShareType + " - Reference_ID=365 - C - O - x"); if (ShareType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ShareType = ShareType.substring(0, 0); + } + set_Value (COLUMNNAME_ShareType, ShareType); + } + + /** Get Share Type. + @return Type of sharing + */ + public String getShareType () + { + return (String)get_Value(COLUMNNAME_ShareType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Color.java b/base/src/org/compiere/model/X_AD_Color.java index c9ec568d94..b1330790ca 100644 --- a/base/src/org/compiere/model/X_AD_Color.java +++ b/base/src/org/compiere/model/X_AD_Color.java @@ -1,443 +1,499 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Color - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Color extends PO + +/** Generated Model for AD_Color + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Color extends PO implements I_AD_Color, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Color_ID id -@param trxName transaction -*/ -public X_AD_Color (Properties ctx, int AD_Color_ID, String trxName) -{ -super (ctx, AD_Color_ID, trxName); -/** if (AD_Color_ID == 0) -{ -setAD_Color_ID (0); -setAlpha (0); -setBlue (0); -setColorType (null); -setGreen (0); -setImageAlpha (Env.ZERO); -setIsDefault (false); -setName (null); -setRed (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Color (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Color */ -public static final String Table_Name="AD_Color"; - -/** AD_Table_ID=457 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Color[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Color. -@param AD_Color_ID Color for backgrounds or indicators */ -public void setAD_Color_ID (int AD_Color_ID) -{ -if (AD_Color_ID < 1) throw new IllegalArgumentException ("AD_Color_ID is mandatory."); -set_ValueNoCheck ("AD_Color_ID", Integer.valueOf(AD_Color_ID)); -} -/** Get System Color. -@return Color for backgrounds or indicators */ -public int getAD_Color_ID() -{ -Integer ii = (Integer)get_Value("AD_Color_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Color_ID */ -public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Alpha. -@param Alpha Color Alpha value 0-255 */ -public void setAlpha (int Alpha) -{ -set_Value ("Alpha", Integer.valueOf(Alpha)); -} -/** Get Alpha. -@return Color Alpha value 0-255 */ -public int getAlpha() -{ -Integer ii = (Integer)get_Value("Alpha"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Alpha */ -public static final String COLUMNNAME_Alpha = "Alpha"; -/** Set 2nd Alpha. -@param Alpha_1 Alpha value for second color */ -public void setAlpha_1 (int Alpha_1) -{ -set_Value ("Alpha_1", Integer.valueOf(Alpha_1)); -} -/** Get 2nd Alpha. -@return Alpha value for second color */ -public int getAlpha_1() -{ -Integer ii = (Integer)get_Value("Alpha_1"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Alpha_1 */ -public static final String COLUMNNAME_Alpha_1 = "Alpha_1"; -/** Set Blue. -@param Blue Color RGB blue value */ -public void setBlue (int Blue) -{ -set_Value ("Blue", Integer.valueOf(Blue)); -} -/** Get Blue. -@return Color RGB blue value */ -public int getBlue() -{ -Integer ii = (Integer)get_Value("Blue"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Blue */ -public static final String COLUMNNAME_Blue = "Blue"; -/** Set 2nd Blue. -@param Blue_1 RGB value for second color */ -public void setBlue_1 (int Blue_1) -{ -set_Value ("Blue_1", Integer.valueOf(Blue_1)); -} -/** Get 2nd Blue. -@return RGB value for second color */ -public int getBlue_1() -{ -Integer ii = (Integer)get_Value("Blue_1"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Blue_1 */ -public static final String COLUMNNAME_Blue_1 = "Blue_1"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Color (Properties ctx, int AD_Color_ID, String trxName) + { + super (ctx, AD_Color_ID, trxName); + /** if (AD_Color_ID == 0) { setAD_Color_ID (0); + setAlpha (0); + setBlue (0); + setColorType (null); + setGreen (0); + setImageAlpha (Env.ZERO); + setIsDefault (false); + setName (null); + setRed (0); +} */ + } + + /** Load Constructor */ + public X_AD_Color (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Color[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Color. + @param AD_Color_ID + Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID) + { + if (AD_Color_ID < 1) + throw new IllegalArgumentException ("AD_Color_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Color_ID, Integer.valueOf(AD_Color_ID)); + } + + /** Get System Color. + @return Color for backgrounds or indicators + */ + public int getAD_Color_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Color_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Image getI_AD_Image() throws Exception + { + 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 e; + } + return result; + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Alpha. + @param Alpha + Color Alpha value 0-255 + */ + public void setAlpha (int Alpha) + { + set_Value (COLUMNNAME_Alpha, Integer.valueOf(Alpha)); + } + + /** Get Alpha. + @return Color Alpha value 0-255 + */ + public int getAlpha () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Alpha); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set 2nd Alpha. + @param Alpha_1 + Alpha value for second color + */ + public void setAlpha_1 (int Alpha_1) + { + set_Value (COLUMNNAME_Alpha_1, Integer.valueOf(Alpha_1)); + } + + /** Get 2nd Alpha. + @return Alpha value for second color + */ + public int getAlpha_1 () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Alpha_1); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Blue. + @param Blue + Color RGB blue value + */ + public void setBlue (int Blue) + { + set_Value (COLUMNNAME_Blue, Integer.valueOf(Blue)); + } + + /** Get Blue. + @return Color RGB blue value + */ + public int getBlue () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Blue); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set 2nd Blue. + @param Blue_1 + RGB value for second color + */ + public void setBlue_1 (int Blue_1) + { + set_Value (COLUMNNAME_Blue_1, Integer.valueOf(Blue_1)); + } + + /** Get 2nd Blue. + @return RGB value for second color + */ + public int getBlue_1 () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Blue_1); + if (ii == null) + return 0; + return ii.intValue(); + } /** ColorType AD_Reference_ID=243 */ -public static final int COLORTYPE_AD_Reference_ID=243; -/** Normal (Flat) = F */ -public static final String COLORTYPE_NormalFlat = "F"; -/** Gradient = G */ -public static final String COLORTYPE_Gradient = "G"; -/** Line = L */ -public static final String COLORTYPE_Line = "L"; -/** Texture (Picture) = T */ +public static final int COLORTYPE_AD_Reference_ID=243;/** Normal (Flat) = F */ +public static final String COLORTYPE_NormalFlat = "F";/** Gradient = G */ +public static final String COLORTYPE_Gradient = "G";/** Line = L */ +public static final String COLORTYPE_Line = "L";/** Texture (Picture) = T */ public static final String COLORTYPE_TexturePicture = "T"; -/** Set Color Type. -@param ColorType Color presentation for this color */ -public void setColorType (String ColorType) -{ -if (ColorType == null) throw new IllegalArgumentException ("ColorType is mandatory"); -if (ColorType.equals("F") || ColorType.equals("G") || ColorType.equals("L") || ColorType.equals("T")); - else throw new IllegalArgumentException ("ColorType Invalid value - " + ColorType + " - Reference_ID=243 - F - G - L - T"); -if (ColorType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ColorType = ColorType.substring(0,0); -} -set_Value ("ColorType", ColorType); -} -/** Get Color Type. -@return Color presentation for this color */ -public String getColorType() -{ -return (String)get_Value("ColorType"); -} -/** Column name ColorType */ -public static final String COLUMNNAME_ColorType = "ColorType"; -/** Set Green. -@param Green RGB value */ -public void setGreen (int Green) -{ -set_Value ("Green", Integer.valueOf(Green)); -} -/** Get Green. -@return RGB value */ -public int getGreen() -{ -Integer ii = (Integer)get_Value("Green"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Green */ -public static final String COLUMNNAME_Green = "Green"; -/** Set 2nd Green. -@param Green_1 RGB value for second color */ -public void setGreen_1 (int Green_1) -{ -set_Value ("Green_1", Integer.valueOf(Green_1)); -} -/** Get 2nd Green. -@return RGB value for second color */ -public int getGreen_1() -{ -Integer ii = (Integer)get_Value("Green_1"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Green_1 */ -public static final String COLUMNNAME_Green_1 = "Green_1"; -/** Set Image Alpha . -@param ImageAlpha Image Texture Composite Alpha */ -public void setImageAlpha (BigDecimal ImageAlpha) -{ -if (ImageAlpha == null) throw new IllegalArgumentException ("ImageAlpha is mandatory."); -set_Value ("ImageAlpha", ImageAlpha); -} -/** Get Image Alpha . -@return Image Texture Composite Alpha */ -public BigDecimal getImageAlpha() -{ -BigDecimal bd = (BigDecimal)get_Value("ImageAlpha"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ImageAlpha */ -public static final String COLUMNNAME_ImageAlpha = "ImageAlpha"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Line Distance. -@param LineDistance Distance between lines */ -public void setLineDistance (int LineDistance) -{ -set_Value ("LineDistance", Integer.valueOf(LineDistance)); -} -/** Get Line Distance. -@return Distance between lines */ -public int getLineDistance() -{ -Integer ii = (Integer)get_Value("LineDistance"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LineDistance */ -public static final String COLUMNNAME_LineDistance = "LineDistance"; -/** Set Line Width. -@param LineWidth Width of the lines */ -public void setLineWidth (int LineWidth) -{ -set_Value ("LineWidth", Integer.valueOf(LineWidth)); -} -/** Get Line Width. -@return Width of the lines */ -public int getLineWidth() -{ -Integer ii = (Integer)get_Value("LineWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LineWidth */ -public static final String COLUMNNAME_LineWidth = "LineWidth"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Red. -@param Red RGB value */ -public void setRed (int Red) -{ -set_Value ("Red", Integer.valueOf(Red)); -} -/** Get Red. -@return RGB value */ -public int getRed() -{ -Integer ii = (Integer)get_Value("Red"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Red */ -public static final String COLUMNNAME_Red = "Red"; -/** Set 2nd Red. -@param Red_1 RGB value for second color */ -public void setRed_1 (int Red_1) -{ -set_Value ("Red_1", Integer.valueOf(Red_1)); -} -/** Get 2nd Red. -@return RGB value for second color */ -public int getRed_1() -{ -Integer ii = (Integer)get_Value("Red_1"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Red_1 */ -public static final String COLUMNNAME_Red_1 = "Red_1"; -/** Set Repeat Distance. -@param RepeatDistance Distance in points to repeat gradient color - or zero */ -public void setRepeatDistance (int RepeatDistance) -{ -set_Value ("RepeatDistance", Integer.valueOf(RepeatDistance)); -} -/** Get Repeat Distance. -@return Distance in points to repeat gradient color - or zero */ -public int getRepeatDistance() -{ -Integer ii = (Integer)get_Value("RepeatDistance"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RepeatDistance */ -public static final String COLUMNNAME_RepeatDistance = "RepeatDistance"; + /** Set Color Type. + @param ColorType + Color presentation for this color + */ + public void setColorType (String ColorType) + { +if (ColorType == null) throw new IllegalArgumentException ("ColorType is mandatory");if (ColorType.equals("F") || ColorType.equals("G") || ColorType.equals("L") || ColorType.equals("T")); else throw new IllegalArgumentException ("ColorType Invalid value - " + ColorType + " - Reference_ID=243 - F - G - L - T"); if (ColorType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ColorType = ColorType.substring(0, 0); + } + set_Value (COLUMNNAME_ColorType, ColorType); + } + + /** Get Color Type. + @return Color presentation for this color + */ + public String getColorType () + { + return (String)get_Value(COLUMNNAME_ColorType); + } + + /** Set Green. + @param Green + RGB value + */ + public void setGreen (int Green) + { + set_Value (COLUMNNAME_Green, Integer.valueOf(Green)); + } + + /** Get Green. + @return RGB value + */ + public int getGreen () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Green); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set 2nd Green. + @param Green_1 + RGB value for second color + */ + public void setGreen_1 (int Green_1) + { + set_Value (COLUMNNAME_Green_1, Integer.valueOf(Green_1)); + } + + /** Get 2nd Green. + @return RGB value for second color + */ + public int getGreen_1 () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Green_1); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Image Alpha . + @param ImageAlpha + Image Texture Composite Alpha + */ + public void setImageAlpha (BigDecimal ImageAlpha) + { + if (ImageAlpha == null) + throw new IllegalArgumentException ("ImageAlpha is mandatory."); + set_Value (COLUMNNAME_ImageAlpha, ImageAlpha); + } + + /** Get Image Alpha . + @return Image Texture Composite Alpha + */ + public BigDecimal getImageAlpha () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ImageAlpha); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line Distance. + @param LineDistance + Distance between lines + */ + public void setLineDistance (int LineDistance) + { + set_Value (COLUMNNAME_LineDistance, Integer.valueOf(LineDistance)); + } + + /** Get Line Distance. + @return Distance between lines + */ + public int getLineDistance () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LineDistance); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line Width. + @param LineWidth + Width of the lines + */ + public void setLineWidth (int LineWidth) + { + set_Value (COLUMNNAME_LineWidth, Integer.valueOf(LineWidth)); + } + + /** Get Line Width. + @return Width of the lines + */ + public int getLineWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LineWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Red. + @param Red + RGB value + */ + public void setRed (int Red) + { + set_Value (COLUMNNAME_Red, Integer.valueOf(Red)); + } + + /** Get Red. + @return RGB value + */ + public int getRed () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Red); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set 2nd Red. + @param Red_1 + RGB value for second color + */ + public void setRed_1 (int Red_1) + { + set_Value (COLUMNNAME_Red_1, Integer.valueOf(Red_1)); + } + + /** Get 2nd Red. + @return RGB value for second color + */ + public int getRed_1 () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Red_1); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Repeat Distance. + @param RepeatDistance + Distance in points to repeat gradient color - or zero + */ + public void setRepeatDistance (int RepeatDistance) + { + set_Value (COLUMNNAME_RepeatDistance, Integer.valueOf(RepeatDistance)); + } + + /** Get Repeat Distance. + @return Distance in points to repeat gradient color - or zero + */ + public int getRepeatDistance () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RepeatDistance); + if (ii == null) + return 0; + return ii.intValue(); + } /** StartPoint AD_Reference_ID=248 */ -public static final int STARTPOINT_AD_Reference_ID=248; -/** North = 1 */ -public static final String STARTPOINT_North = "1"; -/** North East = 2 */ -public static final String STARTPOINT_NorthEast = "2"; -/** East = 3 */ -public static final String STARTPOINT_East = "3"; -/** South East = 4 */ -public static final String STARTPOINT_SouthEast = "4"; -/** South = 5 */ -public static final String STARTPOINT_South = "5"; -/** South West = 6 */ -public static final String STARTPOINT_SouthWest = "6"; -/** West = 7 */ -public static final String STARTPOINT_West = "7"; -/** North West = 8 */ +public static final int STARTPOINT_AD_Reference_ID=248;/** North = 1 */ +public static final String STARTPOINT_North = "1";/** North East = 2 */ +public static final String STARTPOINT_NorthEast = "2";/** East = 3 */ +public static final String STARTPOINT_East = "3";/** South East = 4 */ +public static final String STARTPOINT_SouthEast = "4";/** South = 5 */ +public static final String STARTPOINT_South = "5";/** South West = 6 */ +public static final String STARTPOINT_SouthWest = "6";/** West = 7 */ +public static final String STARTPOINT_West = "7";/** North West = 8 */ public static final String STARTPOINT_NorthWest = "8"; -/** Set Start Point. -@param StartPoint Start point of the gradient colors */ -public void setStartPoint (String StartPoint) -{ -if (StartPoint == null || StartPoint.equals("1") || StartPoint.equals("2") || StartPoint.equals("3") || StartPoint.equals("4") || StartPoint.equals("5") || StartPoint.equals("6") || StartPoint.equals("7") || StartPoint.equals("8")); - else throw new IllegalArgumentException ("StartPoint Invalid value - " + StartPoint + " - Reference_ID=248 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8"); -if (StartPoint != null && StartPoint.length() > 22) -{ -log.warning("Length > 22 - truncated"); -StartPoint = StartPoint.substring(0,21); -} -set_Value ("StartPoint", StartPoint); -} -/** Get Start Point. -@return Start point of the gradient colors */ -public String getStartPoint() -{ -return (String)get_Value("StartPoint"); -} -/** Column name StartPoint */ -public static final String COLUMNNAME_StartPoint = "StartPoint"; -} + /** Set Start Point. + @param StartPoint + Start point of the gradient colors + */ + public void setStartPoint (String StartPoint) + { +if (StartPoint == null || StartPoint.equals("1") || StartPoint.equals("2") || StartPoint.equals("3") || StartPoint.equals("4") || StartPoint.equals("5") || StartPoint.equals("6") || StartPoint.equals("7") || StartPoint.equals("8")); else throw new IllegalArgumentException ("StartPoint Invalid value - " + StartPoint + " - Reference_ID=248 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8"); if (StartPoint != null && StartPoint.length() > 22) + { + log.warning("Length > 22 - truncated"); + StartPoint = StartPoint.substring(0, 21); + } + set_Value (COLUMNNAME_StartPoint, StartPoint); + } + + /** Get Start Point. + @return Start point of the gradient colors + */ + public String getStartPoint () + { + return (String)get_Value(COLUMNNAME_StartPoint); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Column.java b/base/src/org/compiere/model/X_AD_Column.java index 0b97ea0601..26bfdf705d 100644 --- a/base/src/org/compiere/model/X_AD_Column.java +++ b/base/src/org/compiere/model/X_AD_Column.java @@ -1,755 +1,898 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Column - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Column extends PO + +/** Generated Model for AD_Column + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Column extends PO implements I_AD_Column, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Column_ID id -@param trxName transaction -*/ -public X_AD_Column (Properties ctx, int AD_Column_ID, String trxName) -{ -super (ctx, AD_Column_ID, trxName); -/** if (AD_Column_ID == 0) -{ -setAD_Column_ID (0); -setAD_Element_ID (0); -setAD_Reference_ID (0); -setAD_Table_ID (0); -setColumnName (null); -setEntityType (null); // U -setIsAlwaysUpdateable (false); // N -setIsEncrypted (null); // N -setIsIdentifier (false); -setIsKey (false); -setIsMandatory (false); -setIsParent (false); -setIsSelectionColumn (false); -setIsTranslated (false); -setIsUpdateable (true); // Y -setName (null); -setVersion (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Column (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Column */ -public static final String Table_Name="AD_Column"; - -/** AD_Table_ID=101 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Column[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_ValueNoCheck ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set System Element. -@param AD_Element_ID System Element enables the central maintenance of column description and help. */ -public void setAD_Element_ID (int AD_Element_ID) -{ -if (AD_Element_ID < 1) throw new IllegalArgumentException ("AD_Element_ID is mandatory."); -set_Value ("AD_Element_ID", Integer.valueOf(AD_Element_ID)); -} -/** Get System Element. -@return System Element enables the central maintenance of column description and help. */ -public int getAD_Element_ID() -{ -Integer ii = (Integer)get_Value("AD_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Element_ID */ -public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Column (Properties ctx, int AD_Column_ID, String trxName) + { + super (ctx, AD_Column_ID, trxName); + /** if (AD_Column_ID == 0) { setAD_Column_ID (0); + setAD_Element_ID (0); + setAD_Reference_ID (0); + setAD_Table_ID (0); + setColumnName (null); + setEntityType (null); +// U + setIsAlwaysUpdateable (false); +// N + setIsEncrypted (null); +// N + setIsIdentifier (false); + setIsKey (false); + setIsMandatory (false); + setIsParent (false); + setIsSelectionColumn (false); + setIsTranslated (false); + setIsUpdateable (true); +// Y + setName (null); + setVersion (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_AD_Column (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Column[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set System Element. + @param AD_Element_ID + System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID) + { + if (AD_Element_ID < 1) + throw new IllegalArgumentException ("AD_Element_ID is mandatory."); + set_Value (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); + } + + /** Get System Element. + @return System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_Value_ID AD_Reference_ID=4 */ public static final int AD_REFERENCE_VALUE_ID_AD_Reference_ID=4; -/** Set Reference Key. -@param AD_Reference_Value_ID Required to specify, if data type is Table or List */ -public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) -{ -if (AD_Reference_Value_ID <= 0) set_Value ("AD_Reference_Value_ID", null); - else -set_Value ("AD_Reference_Value_ID", Integer.valueOf(AD_Reference_Value_ID)); -} -/** Get Reference Key. -@return Required to specify, if data type is Table or List */ -public int getAD_Reference_Value_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_Value_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_Value_ID */ -public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Dynamic Validation. -@param AD_Val_Rule_ID Dynamic Validation Rule */ -public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) -{ -if (AD_Val_Rule_ID <= 0) set_Value ("AD_Val_Rule_ID", null); - else -set_Value ("AD_Val_Rule_ID", Integer.valueOf(AD_Val_Rule_ID)); -} -/** Get Dynamic Validation. -@return Dynamic Validation Rule */ -public int getAD_Val_Rule_ID() -{ -Integer ii = (Integer)get_Value("AD_Val_Rule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Val_Rule_ID */ -public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; -/** Set Callout. -@param Callout Fully qualified class names and method - separated by semicolons */ -public void setCallout (String Callout) -{ -if (Callout != null && Callout.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Callout = Callout.substring(0,254); -} -set_Value ("Callout", Callout); -} -/** Get Callout. -@return Fully qualified class names and method - separated by semicolons */ -public String getCallout() -{ -return (String)get_Value("Callout"); -} -/** Column name Callout */ -public static final String COLUMNNAME_Callout = "Callout"; -/** Set DB Column Name. -@param ColumnName Name of the column in the database */ -public void setColumnName (String ColumnName) -{ -if (ColumnName == null) throw new IllegalArgumentException ("ColumnName is mandatory."); -if (ColumnName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ColumnName = ColumnName.substring(0,39); -} -set_Value ("ColumnName", ColumnName); -} -/** Get DB Column Name. -@return Name of the column in the database */ -public String getColumnName() -{ -return (String)get_Value("ColumnName"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getColumnName()); -} -/** Column name ColumnName */ -public static final String COLUMNNAME_ColumnName = "ColumnName"; -/** Set Column SQL. -@param ColumnSQL Virtual Column (r/o) */ -public void setColumnSQL (String ColumnSQL) -{ -if (ColumnSQL != null && ColumnSQL.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ColumnSQL = ColumnSQL.substring(0,1999); -} -set_Value ("ColumnSQL", ColumnSQL); -} -/** Get Column SQL. -@return Virtual Column (r/o) */ -public String getColumnSQL() -{ -return (String)get_Value("ColumnSQL"); -} -/** Column name ColumnSQL */ -public static final String COLUMNNAME_ColumnSQL = "ColumnSQL"; -/** Set Default Logic. -@param DefaultValue Default value hierarchy, separated by ; - */ -public void setDefaultValue (String DefaultValue) -{ -if (DefaultValue != null && DefaultValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DefaultValue = DefaultValue.substring(0,1999); -} -set_Value ("DefaultValue", DefaultValue); -} -/** Get Default Logic. -@return Default value hierarchy, separated by ; - */ -public String getDefaultValue() -{ -return (String)get_Value("DefaultValue"); -} -/** Column name DefaultValue */ -public static final String COLUMNNAME_DefaultValue = "DefaultValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Reference Key. + @param AD_Reference_Value_ID + Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) + { + if (AD_Reference_Value_ID <= 0) set_Value (COLUMNNAME_AD_Reference_Value_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_Value_ID, Integer.valueOf(AD_Reference_Value_ID)); + } + + /** Get Reference Key. + @return Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_Value_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dynamic Validation. + @param AD_Val_Rule_ID + Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) + { + if (AD_Val_Rule_ID <= 0) set_Value (COLUMNNAME_AD_Val_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + } + + /** Get Dynamic Validation. + @return Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Callout. + @param Callout + Fully qualified class names and method - separated by semicolons + */ + public void setCallout (String Callout) + { + if (Callout != null && Callout.length() > 255) + { + log.warning("Length > 255 - truncated"); + Callout = Callout.substring(0, 254); + } + set_Value (COLUMNNAME_Callout, Callout); + } + + /** Get Callout. + @return Fully qualified class names and method - separated by semicolons + */ + public String getCallout () + { + return (String)get_Value(COLUMNNAME_Callout); + } + + /** Set DB Column Name. + @param ColumnName + Name of the column in the database + */ + public void setColumnName (String ColumnName) + { + if (ColumnName == null) + throw new IllegalArgumentException ("ColumnName is mandatory."); + if (ColumnName.length() > 40) + { + log.warning("Length > 40 - truncated"); + ColumnName = ColumnName.substring(0, 39); + } + set_Value (COLUMNNAME_ColumnName, ColumnName); + } + + /** Get DB Column Name. + @return Name of the column in the database + */ + public String getColumnName () + { + return (String)get_Value(COLUMNNAME_ColumnName); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getColumnName()); + } + + /** Set Column SQL. + @param ColumnSQL + Virtual Column (r/o) + */ + public void setColumnSQL (String ColumnSQL) + { + if (ColumnSQL != null && ColumnSQL.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ColumnSQL = ColumnSQL.substring(0, 1999); + } + set_Value (COLUMNNAME_ColumnSQL, ColumnSQL); + } + + /** Get Column SQL. + @return Virtual Column (r/o) + */ + public String getColumnSQL () + { + return (String)get_Value(COLUMNNAME_ColumnSQL); + } + + /** Set Default Logic. + @param DefaultValue + Default value hierarchy, separated by ; + */ + public void setDefaultValue (String DefaultValue) + { + if (DefaultValue != null && DefaultValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DefaultValue = DefaultValue.substring(0, 1999); + } + set_Value (COLUMNNAME_DefaultValue, DefaultValue); + } + + /** Get Default Logic. + @return Default value hierarchy, separated by ; + */ + public String getDefaultValue () + { + return (String)get_Value(COLUMNNAME_DefaultValue); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Length. -@param FieldLength Length of the column in the database */ -public void setFieldLength (int FieldLength) -{ -set_Value ("FieldLength", Integer.valueOf(FieldLength)); -} -/** Get Length. -@return Length of the column in the database */ -public int getFieldLength() -{ -Integer ii = (Integer)get_Value("FieldLength"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FieldLength */ -public static final String COLUMNNAME_FieldLength = "FieldLength"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Always Updateable. -@param IsAlwaysUpdateable The column is always updateable, even if the record is not active or processed */ -public void setIsAlwaysUpdateable (boolean IsAlwaysUpdateable) -{ -set_Value ("IsAlwaysUpdateable", Boolean.valueOf(IsAlwaysUpdateable)); -} -/** Get Always Updateable. -@return The column is always updateable, even if the record is not active or processed */ -public boolean isAlwaysUpdateable() -{ -Object oo = get_Value("IsAlwaysUpdateable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAlwaysUpdateable */ -public static final String COLUMNNAME_IsAlwaysUpdateable = "IsAlwaysUpdateable"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Length. + @param FieldLength + Length of the column in the database + */ + public void setFieldLength (int FieldLength) + { + set_Value (COLUMNNAME_FieldLength, Integer.valueOf(FieldLength)); + } + + /** Get Length. + @return Length of the column in the database + */ + public int getFieldLength () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FieldLength); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Always Updateable. + @param IsAlwaysUpdateable + The column is always updateable, even if the record is not active or processed + */ + public void setIsAlwaysUpdateable (boolean IsAlwaysUpdateable) + { + set_Value (COLUMNNAME_IsAlwaysUpdateable, Boolean.valueOf(IsAlwaysUpdateable)); + } + + /** Get Always Updateable. + @return The column is always updateable, even if the record is not active or processed + */ + public boolean isAlwaysUpdateable () + { + Object oo = get_Value(COLUMNNAME_IsAlwaysUpdateable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** IsEncrypted AD_Reference_ID=354 */ -public static final int ISENCRYPTED_AD_Reference_ID=354; -/** Not Encrypted = N */ -public static final String ISENCRYPTED_NotEncrypted = "N"; -/** Encrypted = Y */ +public static final int ISENCRYPTED_AD_Reference_ID=354;/** Not Encrypted = N */ +public static final String ISENCRYPTED_NotEncrypted = "N";/** Encrypted = Y */ public static final String ISENCRYPTED_Encrypted = "Y"; -/** Set Encrypted. -@param IsEncrypted Display or Storage is encrypted */ -public void setIsEncrypted (String IsEncrypted) -{ -if (IsEncrypted == null) throw new IllegalArgumentException ("IsEncrypted is mandatory"); -if (IsEncrypted.equals("N") || IsEncrypted.equals("Y")); - else throw new IllegalArgumentException ("IsEncrypted Invalid value - " + IsEncrypted + " - Reference_ID=354 - N - Y"); -if (IsEncrypted.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsEncrypted = IsEncrypted.substring(0,0); -} -set_Value ("IsEncrypted", IsEncrypted); -} -/** Get Encrypted. -@return Display or Storage is encrypted */ -public String getIsEncrypted() -{ -return (String)get_Value("IsEncrypted"); -} -/** Column name IsEncrypted */ -public static final String COLUMNNAME_IsEncrypted = "IsEncrypted"; -/** Set Identifier. -@param IsIdentifier This column is part of the record identifier */ -public void setIsIdentifier (boolean IsIdentifier) -{ -set_Value ("IsIdentifier", Boolean.valueOf(IsIdentifier)); -} -/** Get Identifier. -@return This column is part of the record identifier */ -public boolean isIdentifier() -{ -Object oo = get_Value("IsIdentifier"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsIdentifier */ -public static final String COLUMNNAME_IsIdentifier = "IsIdentifier"; -/** Set Key column. -@param IsKey This column is the key in this table */ -public void setIsKey (boolean IsKey) -{ -set_Value ("IsKey", Boolean.valueOf(IsKey)); -} -/** Get Key column. -@return This column is the key in this table */ -public boolean isKey() -{ -Object oo = get_Value("IsKey"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsKey */ -public static final String COLUMNNAME_IsKey = "IsKey"; -/** Set Mandatory. -@param IsMandatory Data entry is required in this column */ -public void setIsMandatory (boolean IsMandatory) -{ -set_Value ("IsMandatory", Boolean.valueOf(IsMandatory)); -} -/** Get Mandatory. -@return Data entry is required in this column */ -public boolean isMandatory() -{ -Object oo = get_Value("IsMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMandatory */ -public static final String COLUMNNAME_IsMandatory = "IsMandatory"; -/** Set Parent link column. -@param IsParent This column is a link to the parent table (e.g. header from lines) - incl. Association key columns */ -public void setIsParent (boolean IsParent) -{ -set_Value ("IsParent", Boolean.valueOf(IsParent)); -} -/** Get Parent link column. -@return This column is a link to the parent table (e.g. header from lines) - incl. Association key columns */ -public boolean isParent() -{ -Object oo = get_Value("IsParent"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsParent */ -public static final String COLUMNNAME_IsParent = "IsParent"; -/** Set Selection Column. -@param IsSelectionColumn Is this column used for finding rows in windows */ -public void setIsSelectionColumn (boolean IsSelectionColumn) -{ -set_Value ("IsSelectionColumn", Boolean.valueOf(IsSelectionColumn)); -} -/** Get Selection Column. -@return Is this column used for finding rows in windows */ -public boolean isSelectionColumn() -{ -Object oo = get_Value("IsSelectionColumn"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelectionColumn */ -public static final String COLUMNNAME_IsSelectionColumn = "IsSelectionColumn"; -/** Set Synchronize Database. -@param IsSyncDatabase Change database table definition when changing dictionary definition */ -public void setIsSyncDatabase (String IsSyncDatabase) -{ -if (IsSyncDatabase != null && IsSyncDatabase.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsSyncDatabase = IsSyncDatabase.substring(0,0); -} -set_Value ("IsSyncDatabase", IsSyncDatabase); -} -/** Get Synchronize Database. -@return Change database table definition when changing dictionary definition */ -public String getIsSyncDatabase() -{ -return (String)get_Value("IsSyncDatabase"); -} -/** Column name IsSyncDatabase */ -public static final String COLUMNNAME_IsSyncDatabase = "IsSyncDatabase"; -/** Set Translated. -@param IsTranslated This column is translated */ -public void setIsTranslated (boolean IsTranslated) -{ -set_Value ("IsTranslated", Boolean.valueOf(IsTranslated)); -} -/** Get Translated. -@return This column is translated */ -public boolean isTranslated() -{ -Object oo = get_Value("IsTranslated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTranslated */ -public static final String COLUMNNAME_IsTranslated = "IsTranslated"; -/** Set Updateable. -@param IsUpdateable Determines, if the field can be updated */ -public void setIsUpdateable (boolean IsUpdateable) -{ -set_Value ("IsUpdateable", Boolean.valueOf(IsUpdateable)); -} -/** Get Updateable. -@return Determines, if the field can be updated */ -public boolean isUpdateable() -{ -Object oo = get_Value("IsUpdateable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUpdateable */ -public static final String COLUMNNAME_IsUpdateable = "IsUpdateable"; -/** Set Mandatory Logic. -@param MandatoryLogic Mandatory Logic */ -public void setMandatoryLogic (String MandatoryLogic) -{ -if (MandatoryLogic != null && MandatoryLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MandatoryLogic = MandatoryLogic.substring(0,1999); -} -set_Value ("MandatoryLogic", MandatoryLogic); -} -/** Get Mandatory Logic. -@return Mandatory Logic */ -public String getMandatoryLogic() -{ -return (String)get_Value("MandatoryLogic"); -} -/** Column name MandatoryLogic */ -public static final String COLUMNNAME_MandatoryLogic = "MandatoryLogic"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Read Only Logic. -@param ReadOnlyLogic Logic to determine if field is read only (applies only when field is read-write) */ -public void setReadOnlyLogic (String ReadOnlyLogic) -{ -if (ReadOnlyLogic != null && ReadOnlyLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ReadOnlyLogic = ReadOnlyLogic.substring(0,1999); -} -set_Value ("ReadOnlyLogic", ReadOnlyLogic); -} -/** Get Read Only Logic. -@return Logic to determine if field is read only (applies only when field is read-write) */ -public String getReadOnlyLogic() -{ -return (String)get_Value("ReadOnlyLogic"); -} -/** Column name ReadOnlyLogic */ -public static final String COLUMNNAME_ReadOnlyLogic = "ReadOnlyLogic"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Value Format. -@param VFormat Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setVFormat (String VFormat) -{ -if (VFormat != null && VFormat.length() > 60) -{ -log.warning("Length > 60 - truncated"); -VFormat = VFormat.substring(0,59); -} -set_Value ("VFormat", VFormat); -} -/** Get Value Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getVFormat() -{ -return (String)get_Value("VFormat"); -} -/** Column name VFormat */ -public static final String COLUMNNAME_VFormat = "VFormat"; -/** Set Max. Value. -@param ValueMax Maximum Value for a field */ -public void setValueMax (String ValueMax) -{ -if (ValueMax != null && ValueMax.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ValueMax = ValueMax.substring(0,19); -} -set_Value ("ValueMax", ValueMax); -} -/** Get Max. Value. -@return Maximum Value for a field */ -public String getValueMax() -{ -return (String)get_Value("ValueMax"); -} -/** Column name ValueMax */ -public static final String COLUMNNAME_ValueMax = "ValueMax"; -/** Set Min. Value. -@param ValueMin Minimum Value for a field */ -public void setValueMin (String ValueMin) -{ -if (ValueMin != null && ValueMin.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ValueMin = ValueMin.substring(0,19); -} -set_Value ("ValueMin", ValueMin); -} -/** Get Min. Value. -@return Minimum Value for a field */ -public String getValueMin() -{ -return (String)get_Value("ValueMin"); -} -/** Column name ValueMin */ -public static final String COLUMNNAME_ValueMin = "ValueMin"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (BigDecimal Version) -{ -if (Version == null) throw new IllegalArgumentException ("Version is mandatory."); -set_Value ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public BigDecimal getVersion() -{ -BigDecimal bd = (BigDecimal)get_Value("Version"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + /** Set Encrypted. + @param IsEncrypted + Display or Storage is encrypted + */ + public void setIsEncrypted (String IsEncrypted) + { +if (IsEncrypted == null) throw new IllegalArgumentException ("IsEncrypted is mandatory");if (IsEncrypted.equals("N") || IsEncrypted.equals("Y")); else throw new IllegalArgumentException ("IsEncrypted Invalid value - " + IsEncrypted + " - Reference_ID=354 - N - Y"); if (IsEncrypted.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsEncrypted = IsEncrypted.substring(0, 0); + } + set_Value (COLUMNNAME_IsEncrypted, IsEncrypted); + } + + /** Get Encrypted. + @return Display or Storage is encrypted + */ + public String getIsEncrypted () + { + return (String)get_Value(COLUMNNAME_IsEncrypted); + } + + /** Set Identifier. + @param IsIdentifier + This column is part of the record identifier + */ + public void setIsIdentifier (boolean IsIdentifier) + { + set_Value (COLUMNNAME_IsIdentifier, Boolean.valueOf(IsIdentifier)); + } + + /** Get Identifier. + @return This column is part of the record identifier + */ + public boolean isIdentifier () + { + Object oo = get_Value(COLUMNNAME_IsIdentifier); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Key column. + @param IsKey + This column is the key in this table + */ + public void setIsKey (boolean IsKey) + { + set_Value (COLUMNNAME_IsKey, Boolean.valueOf(IsKey)); + } + + /** Get Key column. + @return This column is the key in this table + */ + public boolean isKey () + { + Object oo = get_Value(COLUMNNAME_IsKey); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory. + @param IsMandatory + Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory) + { + set_Value (COLUMNNAME_IsMandatory, Boolean.valueOf(IsMandatory)); + } + + /** Get Mandatory. + @return Data entry is required in this column + */ + public boolean isMandatory () + { + Object oo = get_Value(COLUMNNAME_IsMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Parent link column. + @param IsParent + This column is a link to the parent table (e.g. header from lines) - incl. Association key columns + */ + public void setIsParent (boolean IsParent) + { + set_Value (COLUMNNAME_IsParent, Boolean.valueOf(IsParent)); + } + + /** Get Parent link column. + @return This column is a link to the parent table (e.g. header from lines) - incl. Association key columns + */ + public boolean isParent () + { + Object oo = get_Value(COLUMNNAME_IsParent); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Selection Column. + @param IsSelectionColumn + Is this column used for finding rows in windows + */ + public void setIsSelectionColumn (boolean IsSelectionColumn) + { + set_Value (COLUMNNAME_IsSelectionColumn, Boolean.valueOf(IsSelectionColumn)); + } + + /** Get Selection Column. + @return Is this column used for finding rows in windows + */ + public boolean isSelectionColumn () + { + Object oo = get_Value(COLUMNNAME_IsSelectionColumn); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Synchronize Database. + @param IsSyncDatabase + Change database table definition when changing dictionary definition + */ + public void setIsSyncDatabase (String IsSyncDatabase) + { + if (IsSyncDatabase != null && IsSyncDatabase.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsSyncDatabase = IsSyncDatabase.substring(0, 0); + } + set_Value (COLUMNNAME_IsSyncDatabase, IsSyncDatabase); + } + + /** Get Synchronize Database. + @return Change database table definition when changing dictionary definition + */ + public String getIsSyncDatabase () + { + return (String)get_Value(COLUMNNAME_IsSyncDatabase); + } + + /** Set Translated. + @param IsTranslated + This column is translated + */ + public void setIsTranslated (boolean IsTranslated) + { + set_Value (COLUMNNAME_IsTranslated, Boolean.valueOf(IsTranslated)); + } + + /** Get Translated. + @return This column is translated + */ + public boolean isTranslated () + { + Object oo = get_Value(COLUMNNAME_IsTranslated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Updateable. + @param IsUpdateable + Determines, if the field can be updated + */ + public void setIsUpdateable (boolean IsUpdateable) + { + set_Value (COLUMNNAME_IsUpdateable, Boolean.valueOf(IsUpdateable)); + } + + /** Get Updateable. + @return Determines, if the field can be updated + */ + public boolean isUpdateable () + { + Object oo = get_Value(COLUMNNAME_IsUpdateable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory Logic. + @param MandatoryLogic Mandatory Logic */ + public void setMandatoryLogic (String MandatoryLogic) + { + if (MandatoryLogic != null && MandatoryLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MandatoryLogic = MandatoryLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_MandatoryLogic, MandatoryLogic); + } + + /** Get Mandatory Logic. +@return Mandatory Logic */ + public String getMandatoryLogic () + { + return (String)get_Value(COLUMNNAME_MandatoryLogic); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Read Only Logic. + @param ReadOnlyLogic + Logic to determine if field is read only (applies only when field is read-write) + */ + public void setReadOnlyLogic (String ReadOnlyLogic) + { + if (ReadOnlyLogic != null && ReadOnlyLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ReadOnlyLogic = ReadOnlyLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_ReadOnlyLogic, ReadOnlyLogic); + } + + /** Get Read Only Logic. + @return Logic to determine if field is read only (applies only when field is read-write) + */ + public String getReadOnlyLogic () + { + return (String)get_Value(COLUMNNAME_ReadOnlyLogic); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Value Format. + @param VFormat + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat) + { + if (VFormat != null && VFormat.length() > 60) + { + log.warning("Length > 60 - truncated"); + VFormat = VFormat.substring(0, 59); + } + set_Value (COLUMNNAME_VFormat, VFormat); + } + + /** Get Value Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat () + { + return (String)get_Value(COLUMNNAME_VFormat); + } + + /** Set Max. Value. + @param ValueMax + Maximum Value for a field + */ + public void setValueMax (String ValueMax) + { + if (ValueMax != null && ValueMax.length() > 20) + { + log.warning("Length > 20 - truncated"); + ValueMax = ValueMax.substring(0, 19); + } + set_Value (COLUMNNAME_ValueMax, ValueMax); + } + + /** Get Max. Value. + @return Maximum Value for a field + */ + public String getValueMax () + { + return (String)get_Value(COLUMNNAME_ValueMax); + } + + /** Set Min. Value. + @param ValueMin + Minimum Value for a field + */ + public void setValueMin (String ValueMin) + { + if (ValueMin != null && ValueMin.length() > 20) + { + log.warning("Length > 20 - truncated"); + ValueMin = ValueMin.substring(0, 19); + } + set_Value (COLUMNNAME_ValueMin, ValueMin); + } + + /** Get Min. Value. + @return Minimum Value for a field + */ + public String getValueMin () + { + return (String)get_Value(COLUMNNAME_ValueMin); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (BigDecimal Version) + { + if (Version == null) + throw new IllegalArgumentException ("Version is mandatory."); + set_Value (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public BigDecimal getVersion () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Version); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 89b0c31294..e455005c6f 100644 --- a/base/src/org/compiere/model/X_AD_Column_Access.java +++ b/base/src/org/compiere/model/X_AD_Column_Access.java @@ -1,189 +1,247 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Column_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Column_Access extends PO + +/** Generated Model for AD_Column_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Column_Access extends PO implements I_AD_Column_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Column_Access_ID id -@param trxName transaction -*/ -public X_AD_Column_Access (Properties ctx, int AD_Column_Access_ID, String trxName) -{ -super (ctx, AD_Column_Access_ID, trxName); -/** if (AD_Column_Access_ID == 0) -{ -setAD_Column_ID (0); -setAD_Role_ID (0); -setIsExclude (true); // Y -setIsReadOnly (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Column_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Column_Access */ -public static final String Table_Name="AD_Column_Access"; - -/** AD_Table_ID=571 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Column_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_ValueNoCheck ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Column_ID())); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Exclude. -@param IsExclude Exclude access to the data - if not selected Include access to the data */ -public void setIsExclude (boolean IsExclude) -{ -set_Value ("IsExclude", Boolean.valueOf(IsExclude)); -} -/** Get Exclude. -@return Exclude access to the data - if not selected Include access to the data */ -public boolean isExclude() -{ -Object oo = get_Value("IsExclude"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsExclude */ -public static final String COLUMNNAME_IsExclude = "IsExclude"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Column_Access (Properties ctx, int AD_Column_Access_ID, String trxName) + { + super (ctx, AD_Column_Access_ID, trxName); + /** if (AD_Column_Access_ID == 0) { setAD_Column_ID (0); + setAD_Role_ID (0); + setIsExclude (true); +// Y + setIsReadOnly (false); +} */ + } + + /** Load Constructor */ + public X_AD_Column_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Column_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Column_ID())); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exclude. + @param IsExclude + Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude) + { + set_Value (COLUMNNAME_IsExclude, Boolean.valueOf(IsExclude)); + } + + /** Get Exclude. + @return Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude () + { + Object oo = get_Value(COLUMNNAME_IsExclude); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Desktop.java b/base/src/org/compiere/model/X_AD_Desktop.java index bc7ba82604..53f7f3612c 100644 --- a/base/src/org/compiere/model/X_AD_Desktop.java +++ b/base/src/org/compiere/model/X_AD_Desktop.java @@ -1,206 +1,216 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Desktop - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Desktop extends PO + +/** Generated Model for AD_Desktop + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Desktop extends PO implements I_AD_Desktop, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Desktop_ID id -@param trxName transaction -*/ -public X_AD_Desktop (Properties ctx, int AD_Desktop_ID, String trxName) -{ -super (ctx, AD_Desktop_ID, trxName); -/** if (AD_Desktop_ID == 0) -{ -setAD_Desktop_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Desktop (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Desktop */ -public static final String Table_Name="AD_Desktop"; - -/** AD_Table_ID=458 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Desktop[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Color. -@param AD_Color_ID Color for backgrounds or indicators */ -public void setAD_Color_ID (int AD_Color_ID) -{ -if (AD_Color_ID <= 0) set_Value ("AD_Color_ID", null); - else -set_Value ("AD_Color_ID", Integer.valueOf(AD_Color_ID)); -} -/** Get System Color. -@return Color for backgrounds or indicators */ -public int getAD_Color_ID() -{ -Integer ii = (Integer)get_Value("AD_Color_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Color_ID */ -public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; -/** Set Desktop. -@param AD_Desktop_ID Collection of Workbenches */ -public void setAD_Desktop_ID (int AD_Desktop_ID) -{ -if (AD_Desktop_ID < 1) throw new IllegalArgumentException ("AD_Desktop_ID is mandatory."); -set_ValueNoCheck ("AD_Desktop_ID", Integer.valueOf(AD_Desktop_ID)); -} -/** Get Desktop. -@return Collection of Workbenches */ -public int getAD_Desktop_ID() -{ -Integer ii = (Integer)get_Value("AD_Desktop_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Desktop_ID */ -public static final String COLUMNNAME_AD_Desktop_ID = "AD_Desktop_ID"; -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Desktop (Properties ctx, int AD_Desktop_ID, String trxName) + { + super (ctx, AD_Desktop_ID, trxName); + /** if (AD_Desktop_ID == 0) { setAD_Desktop_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Desktop (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Desktop[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Color. + @param AD_Color_ID + Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID) + { + if (AD_Color_ID <= 0) set_Value (COLUMNNAME_AD_Color_ID, null); + else + set_Value (COLUMNNAME_AD_Color_ID, Integer.valueOf(AD_Color_ID)); + } + + /** Get System Color. + @return Color for backgrounds or indicators + */ + public int getAD_Color_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Color_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Desktop. + @param AD_Desktop_ID + Collection of Workbenches + */ + public void setAD_Desktop_ID (int AD_Desktop_ID) + { + if (AD_Desktop_ID < 1) + throw new IllegalArgumentException ("AD_Desktop_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID)); + } + + /** Get Desktop. + @return Collection of Workbenches + */ + public int getAD_Desktop_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Desktop_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_DesktopWorkbench.java b/base/src/org/compiere/model/X_AD_DesktopWorkbench.java index 5c24bfd8d4..f297d174f1 100644 --- a/base/src/org/compiere/model/X_AD_DesktopWorkbench.java +++ b/base/src/org/compiere/model/X_AD_DesktopWorkbench.java @@ -1,166 +1,199 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_DesktopWorkbench - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_DesktopWorkbench extends PO + +/** Generated Model for AD_DesktopWorkbench + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_DesktopWorkbench_ID id -@param trxName transaction -*/ -public X_AD_DesktopWorkbench (Properties ctx, int AD_DesktopWorkbench_ID, String trxName) -{ -super (ctx, AD_DesktopWorkbench_ID, trxName); -/** if (AD_DesktopWorkbench_ID == 0) -{ -setAD_DesktopWorkbench_ID (0); -setAD_Desktop_ID (0); -setAD_Workbench_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_DesktopWorkbench (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_DesktopWorkbench */ -public static final String Table_Name="AD_DesktopWorkbench"; - -/** AD_Table_ID=459 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_DesktopWorkbench[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Desktop Workbench. -@param AD_DesktopWorkbench_ID Desktop Workbench */ -public void setAD_DesktopWorkbench_ID (int AD_DesktopWorkbench_ID) -{ -if (AD_DesktopWorkbench_ID < 1) throw new IllegalArgumentException ("AD_DesktopWorkbench_ID is mandatory."); -set_ValueNoCheck ("AD_DesktopWorkbench_ID", Integer.valueOf(AD_DesktopWorkbench_ID)); -} -/** Get Desktop Workbench. -@return Desktop Workbench */ -public int getAD_DesktopWorkbench_ID() -{ -Integer ii = (Integer)get_Value("AD_DesktopWorkbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_DesktopWorkbench_ID */ -public static final String COLUMNNAME_AD_DesktopWorkbench_ID = "AD_DesktopWorkbench_ID"; -/** Set Desktop. -@param AD_Desktop_ID Collection of Workbenches */ -public void setAD_Desktop_ID (int AD_Desktop_ID) -{ -if (AD_Desktop_ID < 1) throw new IllegalArgumentException ("AD_Desktop_ID is mandatory."); -set_ValueNoCheck ("AD_Desktop_ID", Integer.valueOf(AD_Desktop_ID)); -} -/** Get Desktop. -@return Collection of Workbenches */ -public int getAD_Desktop_ID() -{ -Integer ii = (Integer)get_Value("AD_Desktop_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Desktop_ID */ -public static final String COLUMNNAME_AD_Desktop_ID = "AD_Desktop_ID"; -/** Set Workbench. -@param AD_Workbench_ID Collection of windows, reports */ -public void setAD_Workbench_ID (int AD_Workbench_ID) -{ -if (AD_Workbench_ID < 1) throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); -set_Value ("AD_Workbench_ID", Integer.valueOf(AD_Workbench_ID)); -} -/** Get Workbench. -@return Collection of windows, reports */ -public int getAD_Workbench_ID() -{ -Integer ii = (Integer)get_Value("AD_Workbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Workbench_ID())); -} -/** Column name AD_Workbench_ID */ -public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_DesktopWorkbench (Properties ctx, int AD_DesktopWorkbench_ID, String trxName) + { + super (ctx, AD_DesktopWorkbench_ID, trxName); + /** if (AD_DesktopWorkbench_ID == 0) { setAD_DesktopWorkbench_ID (0); + setAD_Desktop_ID (0); + setAD_Workbench_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_DesktopWorkbench (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_DesktopWorkbench[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Desktop Workbench. + @param AD_DesktopWorkbench_ID Desktop Workbench */ + public void setAD_DesktopWorkbench_ID (int AD_DesktopWorkbench_ID) + { + if (AD_DesktopWorkbench_ID < 1) + throw new IllegalArgumentException ("AD_DesktopWorkbench_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_DesktopWorkbench_ID, Integer.valueOf(AD_DesktopWorkbench_ID)); + } + + /** Get Desktop Workbench. +@return Desktop Workbench */ + public int getAD_DesktopWorkbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_DesktopWorkbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Desktop getI_AD_Desktop() throws Exception + { + 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 e; + } + return result; + } + + /** Set Desktop. + @param AD_Desktop_ID + Collection of Workbenches + */ + public void setAD_Desktop_ID (int AD_Desktop_ID) + { + if (AD_Desktop_ID < 1) + throw new IllegalArgumentException ("AD_Desktop_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID)); + } + + /** Get Desktop. + @return Collection of Workbenches + */ + public int getAD_Desktop_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Desktop_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workbench getI_AD_Workbench() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workbench. + @param AD_Workbench_ID + Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID) + { + if (AD_Workbench_ID < 1) + throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); + set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + } + + /** Get Workbench. + @return Collection of windows, reports + */ + public int getAD_Workbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Workbench_ID())); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Element.java b/base/src/org/compiere/model/X_AD_Element.java index b6a00dea11..32134d82ba 100644 --- a/base/src/org/compiere/model/X_AD_Element.java +++ b/base/src/org/compiere/model/X_AD_Element.java @@ -1,313 +1,336 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Element - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Element extends PO + +/** Generated Model for AD_Element + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Element extends PO implements I_AD_Element, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Element_ID id -@param trxName transaction -*/ -public X_AD_Element (Properties ctx, int AD_Element_ID, String trxName) -{ -super (ctx, AD_Element_ID, trxName); -/** if (AD_Element_ID == 0) -{ -setAD_Element_ID (0); -setColumnName (null); -setEntityType (null); // U -setName (null); -setPrintName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Element (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Element */ -public static final String Table_Name="AD_Element"; - -/** AD_Table_ID=276 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Element[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Element. -@param AD_Element_ID System Element enables the central maintenance of column description and help. */ -public void setAD_Element_ID (int AD_Element_ID) -{ -if (AD_Element_ID < 1) throw new IllegalArgumentException ("AD_Element_ID is mandatory."); -set_ValueNoCheck ("AD_Element_ID", Integer.valueOf(AD_Element_ID)); -} -/** Get System Element. -@return System Element enables the central maintenance of column description and help. */ -public int getAD_Element_ID() -{ -Integer ii = (Integer)get_Value("AD_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Element_ID */ -public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; -/** Set DB Column Name. -@param ColumnName Name of the column in the database */ -public void setColumnName (String ColumnName) -{ -if (ColumnName == null) throw new IllegalArgumentException ("ColumnName is mandatory."); -if (ColumnName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ColumnName = ColumnName.substring(0,39); -} -set_Value ("ColumnName", ColumnName); -} -/** Get DB Column Name. -@return Name of the column in the database */ -public String getColumnName() -{ -return (String)get_Value("ColumnName"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getColumnName()); -} -/** Column name ColumnName */ -public static final String COLUMNNAME_ColumnName = "ColumnName"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Element (Properties ctx, int AD_Element_ID, String trxName) + { + super (ctx, AD_Element_ID, trxName); + /** if (AD_Element_ID == 0) { setAD_Element_ID (0); + setColumnName (null); + setEntityType (null); +// U + setName (null); + setPrintName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Element (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Element[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Element. + @param AD_Element_ID + System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID) + { + if (AD_Element_ID < 1) + throw new IllegalArgumentException ("AD_Element_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); + } + + /** Get System Element. + @return System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set DB Column Name. + @param ColumnName + Name of the column in the database + */ + public void setColumnName (String ColumnName) + { + if (ColumnName == null) + throw new IllegalArgumentException ("ColumnName is mandatory."); + if (ColumnName.length() > 40) + { + log.warning("Length > 40 - truncated"); + ColumnName = ColumnName.substring(0, 39); + } + set_Value (COLUMNNAME_ColumnName, ColumnName); + } + + /** Get DB Column Name. + @return Name of the column in the database + */ + public String getColumnName () + { + return (String)get_Value(COLUMNNAME_ColumnName); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getColumnName()); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set PO Description. -@param PO_Description Description in PO Screens */ -public void setPO_Description (String PO_Description) -{ -if (PO_Description != null && PO_Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -PO_Description = PO_Description.substring(0,254); -} -set_Value ("PO_Description", PO_Description); -} -/** Get PO Description. -@return Description in PO Screens */ -public String getPO_Description() -{ -return (String)get_Value("PO_Description"); -} -/** Column name PO_Description */ -public static final String COLUMNNAME_PO_Description = "PO_Description"; -/** Set PO Help. -@param PO_Help Help for PO Screens */ -public void setPO_Help (String PO_Help) -{ -if (PO_Help != null && PO_Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -PO_Help = PO_Help.substring(0,1999); -} -set_Value ("PO_Help", PO_Help); -} -/** Get PO Help. -@return Help for PO Screens */ -public String getPO_Help() -{ -return (String)get_Value("PO_Help"); -} -/** Column name PO_Help */ -public static final String COLUMNNAME_PO_Help = "PO_Help"; -/** Set PO Name. -@param PO_Name Name on PO Screens */ -public void setPO_Name (String PO_Name) -{ -if (PO_Name != null && PO_Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PO_Name = PO_Name.substring(0,59); -} -set_Value ("PO_Name", PO_Name); -} -/** Get PO Name. -@return Name on PO Screens */ -public String getPO_Name() -{ -return (String)get_Value("PO_Name"); -} -/** Column name PO_Name */ -public static final String COLUMNNAME_PO_Name = "PO_Name"; -/** Set PO Print name. -@param PO_PrintName Print name on PO Screens/Reports */ -public void setPO_PrintName (String PO_PrintName) -{ -if (PO_PrintName != null && PO_PrintName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PO_PrintName = PO_PrintName.substring(0,59); -} -set_Value ("PO_PrintName", PO_PrintName); -} -/** Get PO Print name. -@return Print name on PO Screens/Reports */ -public String getPO_PrintName() -{ -return (String)get_Value("PO_PrintName"); -} -/** Column name PO_PrintName */ -public static final String COLUMNNAME_PO_PrintName = "PO_PrintName"; -/** Set Print Text. -@param PrintName The label text to be printed on a document or correspondence. */ -public void setPrintName (String PrintName) -{ -if (PrintName == null) throw new IllegalArgumentException ("PrintName is mandatory."); -if (PrintName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PrintName = PrintName.substring(0,59); -} -set_Value ("PrintName", PrintName); -} -/** Get Print Text. -@return The label text to be printed on a document or correspondence. */ -public String getPrintName() -{ -return (String)get_Value("PrintName"); -} -/** Column name PrintName */ -public static final String COLUMNNAME_PrintName = "PrintName"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set PO Description. + @param PO_Description + Description in PO Screens + */ + public void setPO_Description (String PO_Description) + { + if (PO_Description != null && PO_Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + PO_Description = PO_Description.substring(0, 254); + } + set_Value (COLUMNNAME_PO_Description, PO_Description); + } + + /** Get PO Description. + @return Description in PO Screens + */ + public String getPO_Description () + { + return (String)get_Value(COLUMNNAME_PO_Description); + } + + /** Set PO Help. + @param PO_Help + Help for PO Screens + */ + public void setPO_Help (String PO_Help) + { + if (PO_Help != null && PO_Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + PO_Help = PO_Help.substring(0, 1999); + } + set_Value (COLUMNNAME_PO_Help, PO_Help); + } + + /** Get PO Help. + @return Help for PO Screens + */ + public String getPO_Help () + { + return (String)get_Value(COLUMNNAME_PO_Help); + } + + /** Set PO Name. + @param PO_Name + Name on PO Screens + */ + public void setPO_Name (String PO_Name) + { + if (PO_Name != null && PO_Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + PO_Name = PO_Name.substring(0, 59); + } + set_Value (COLUMNNAME_PO_Name, PO_Name); + } + + /** Get PO Name. + @return Name on PO Screens + */ + public String getPO_Name () + { + return (String)get_Value(COLUMNNAME_PO_Name); + } + + /** Set PO Print name. + @param PO_PrintName + Print name on PO Screens/Reports + */ + public void setPO_PrintName (String PO_PrintName) + { + if (PO_PrintName != null && PO_PrintName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PO_PrintName = PO_PrintName.substring(0, 59); + } + set_Value (COLUMNNAME_PO_PrintName, PO_PrintName); + } + + /** Get PO Print name. + @return Print name on PO Screens/Reports + */ + public String getPO_PrintName () + { + return (String)get_Value(COLUMNNAME_PO_PrintName); + } + + /** Set Print Text. + @param PrintName + The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName) + { + if (PrintName == null) + throw new IllegalArgumentException ("PrintName is mandatory."); + if (PrintName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrintName = PrintName.substring(0, 59); + } + set_Value (COLUMNNAME_PrintName, PrintName); + } + + /** Get Print Text. + @return The label text to be printed on a document or correspondence. + */ + public String getPrintName () + { + return (String)get_Value(COLUMNNAME_PrintName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_EntityType.java b/base/src/org/compiere/model/X_AD_EntityType.java index 3789703649..91e584a7bc 100644 --- a/base/src/org/compiere/model/X_AD_EntityType.java +++ b/base/src/org/compiere/model/X_AD_EntityType.java @@ -1,270 +1,284 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_EntityType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_EntityType extends PO + +/** Generated Model for AD_EntityType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_EntityType extends PO implements I_AD_EntityType, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_EntityType_ID id -@param trxName transaction -*/ -public X_AD_EntityType (Properties ctx, int AD_EntityType_ID, String trxName) -{ -super (ctx, AD_EntityType_ID, trxName); -/** if (AD_EntityType_ID == 0) -{ -setAD_EntityType_ID (0); -setEntityType (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_EntityType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_EntityType */ -public static final String Table_Name="AD_EntityType"; - -/** AD_Table_ID=882 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_EntityType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Entity Type. -@param AD_EntityType_ID System Entity Type */ -public void setAD_EntityType_ID (int AD_EntityType_ID) -{ -if (AD_EntityType_ID < 1) throw new IllegalArgumentException ("AD_EntityType_ID is mandatory."); -set_ValueNoCheck ("AD_EntityType_ID", Integer.valueOf(AD_EntityType_ID)); -} -/** Get Entity Type. -@return System Entity Type */ -public int getAD_EntityType_ID() -{ -Integer ii = (Integer)get_Value("AD_EntityType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_EntityType_ID */ -public static final String COLUMNNAME_AD_EntityType_ID = "AD_EntityType_ID"; -/** Set Classpath. -@param Classpath Extension Classpath */ -public void setClasspath (String Classpath) -{ -if (Classpath != null && Classpath.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Classpath = Classpath.substring(0,254); -} -set_Value ("Classpath", Classpath); -} -/** Get Classpath. -@return Extension Classpath */ -public String getClasspath() -{ -return (String)get_Value("Classpath"); -} -/** Column name Classpath */ -public static final String COLUMNNAME_Classpath = "Classpath"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType == null) throw new IllegalArgumentException ("EntityType is mandatory."); -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_ValueNoCheck ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set ModelPackage. -@param ModelPackage Java Package of the model classes */ -public void setModelPackage (String ModelPackage) -{ -if (ModelPackage != null && ModelPackage.length() > 255) -{ -log.warning("Length > 255 - truncated"); -ModelPackage = ModelPackage.substring(0,254); -} -set_Value ("ModelPackage", ModelPackage); -} -/** Get ModelPackage. -@return Java Package of the model classes */ -public String getModelPackage() -{ -return (String)get_Value("ModelPackage"); -} -/** Column name ModelPackage */ -public static final String COLUMNNAME_ModelPackage = "ModelPackage"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version != null && Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Version = Version.substring(0,19); -} -set_Value ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_EntityType (Properties ctx, int AD_EntityType_ID, String trxName) + { + super (ctx, AD_EntityType_ID, trxName); + /** if (AD_EntityType_ID == 0) { setAD_EntityType_ID (0); + setEntityType (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_EntityType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_EntityType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Entity Type. + @param AD_EntityType_ID + System Entity Type + */ + public void setAD_EntityType_ID (int AD_EntityType_ID) + { + if (AD_EntityType_ID < 1) + throw new IllegalArgumentException ("AD_EntityType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_EntityType_ID, Integer.valueOf(AD_EntityType_ID)); + } + + /** Get Entity Type. + @return System Entity Type + */ + public int getAD_EntityType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_EntityType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Classpath. + @param Classpath + Extension Classpath + */ + public void setClasspath (String Classpath) + { + if (Classpath != null && Classpath.length() > 255) + { + log.warning("Length > 255 - truncated"); + Classpath = Classpath.substring(0, 254); + } + set_Value (COLUMNNAME_Classpath, Classpath); + } + + /** Get Classpath. + @return Extension Classpath + */ + public String getClasspath () + { + return (String)get_Value(COLUMNNAME_Classpath); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType == null) + throw new IllegalArgumentException ("EntityType is mandatory."); + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_ValueNoCheck (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set ModelPackage. + @param ModelPackage + Java Package of the model classes + */ + public void setModelPackage (String ModelPackage) + { + if (ModelPackage != null && ModelPackage.length() > 255) + { + log.warning("Length > 255 - truncated"); + ModelPackage = ModelPackage.substring(0, 254); + } + set_Value (COLUMNNAME_ModelPackage, ModelPackage); + } + + /** Get ModelPackage. + @return Java Package of the model classes + */ + public String getModelPackage () + { + return (String)get_Value(COLUMNNAME_ModelPackage); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version != null && Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + Version = Version.substring(0, 19); + } + set_Value (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Error.java b/base/src/org/compiere/model/X_AD_Error.java index 5bc9ec3fa0..a0469ca4c9 100644 --- a/base/src/org/compiere/model/X_AD_Error.java +++ b/base/src/org/compiere/model/X_AD_Error.java @@ -1,173 +1,171 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Error - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Error extends PO + +/** Generated Model for AD_Error + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Error extends PO implements I_AD_Error, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Error_ID id -@param trxName transaction -*/ -public X_AD_Error (Properties ctx, int AD_Error_ID, String trxName) -{ -super (ctx, AD_Error_ID, trxName); -/** if (AD_Error_ID == 0) -{ -setAD_Error_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Error (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Error */ -public static final String Table_Name="AD_Error"; - -/** AD_Table_ID=380 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Error[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Error. -@param AD_Error_ID Error */ -public void setAD_Error_ID (int AD_Error_ID) -{ -if (AD_Error_ID < 1) throw new IllegalArgumentException ("AD_Error_ID is mandatory."); -set_ValueNoCheck ("AD_Error_ID", Integer.valueOf(AD_Error_ID)); -} -/** Get Error. -@return Error */ -public int getAD_Error_ID() -{ -Integer ii = (Integer)get_Value("AD_Error_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Error_ID */ -public static final String COLUMNNAME_AD_Error_ID = "AD_Error_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Error (Properties ctx, int AD_Error_ID, String trxName) + { + super (ctx, AD_Error_ID, trxName); + /** if (AD_Error_ID == 0) { setAD_Error_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Error (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Error[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Error. + @param AD_Error_ID Error */ + public void setAD_Error_ID (int AD_Error_ID) + { + if (AD_Error_ID < 1) + throw new IllegalArgumentException ("AD_Error_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Error_ID, Integer.valueOf(AD_Error_ID)); + } + + /** Get Error. +@return Error */ + public int getAD_Error_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Error_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Language AD_Reference_ID=106 */ public static final int AD_LANGUAGE_AD_Reference_ID=106; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language != null && AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set Validation code. -@param Code Validation Code */ -public void setCode (String Code) -{ -if (Code != null && Code.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Code = Code.substring(0,1999); -} -set_Value ("Code", Code); -} -/** Get Validation code. -@return Validation Code */ -public String getCode() -{ -return (String)get_Value("Code"); -} -/** Column name Code */ -public static final String COLUMNNAME_Code = "Code"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set Validation code. + @param Code + Validation Code + */ + public void setCode (String Code) + { + if (Code != null && Code.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Code = Code.substring(0, 1999); + } + set_Value (COLUMNNAME_Code, Code); + } + + /** Get Validation code. + @return Validation Code + */ + public String getCode () + { + return (String)get_Value(COLUMNNAME_Code); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Field.java b/base/src/org/compiere/model/X_AD_Field.java index eaad928297..92aa91d1f1 100644 --- a/base/src/org/compiere/model/X_AD_Field.java +++ b/base/src/org/compiere/model/X_AD_Field.java @@ -1,546 +1,651 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Field - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Field extends PO + +/** Generated Model for AD_Field + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Field extends PO implements I_AD_Field, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Field_ID id -@param trxName transaction -*/ -public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName) -{ -super (ctx, AD_Field_ID, trxName); -/** if (AD_Field_ID == 0) -{ -setAD_Column_ID (0); -setAD_Field_ID (0); -setAD_Tab_ID (0); -setEntityType (null); // U -setIsCentrallyMaintained (true); // Y -setIsDisplayed (true); // Y -setIsEncrypted (false); -setIsFieldOnly (false); -setIsHeading (false); -setIsReadOnly (false); -setIsSameLine (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Field (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Field */ -public static final String Table_Name="AD_Field"; - -/** AD_Table_ID=107 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Field[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Field Group. -@param AD_FieldGroup_ID Logical grouping of fields */ -public void setAD_FieldGroup_ID (int AD_FieldGroup_ID) -{ -if (AD_FieldGroup_ID <= 0) set_Value ("AD_FieldGroup_ID", null); - else -set_Value ("AD_FieldGroup_ID", Integer.valueOf(AD_FieldGroup_ID)); -} -/** Get Field Group. -@return Logical grouping of fields */ -public int getAD_FieldGroup_ID() -{ -Integer ii = (Integer)get_Value("AD_FieldGroup_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_FieldGroup_ID */ -public static final String COLUMNNAME_AD_FieldGroup_ID = "AD_FieldGroup_ID"; -/** Set Field. -@param AD_Field_ID Field on a database table */ -public void setAD_Field_ID (int AD_Field_ID) -{ -if (AD_Field_ID < 1) throw new IllegalArgumentException ("AD_Field_ID is mandatory."); -set_ValueNoCheck ("AD_Field_ID", Integer.valueOf(AD_Field_ID)); -} -/** Get Field. -@return Field on a database table */ -public int getAD_Field_ID() -{ -Integer ii = (Integer)get_Value("AD_Field_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Field_ID */ -public static final String COLUMNNAME_AD_Field_ID = "AD_Field_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName) + { + super (ctx, AD_Field_ID, trxName); + /** if (AD_Field_ID == 0) { setAD_Column_ID (0); + setAD_Field_ID (0); + setAD_Tab_ID (0); + setEntityType (null); +// U + setIsCentrallyMaintained (true); +// Y + setIsDisplayed (true); +// Y + setIsEncrypted (false); + setIsFieldOnly (false); + setIsHeading (false); + setIsReadOnly (false); + setIsSameLine (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Field (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Field[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_FieldGroup getI_AD_FieldGroup() throws Exception + { + 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 e; + } + return result; + } + + /** Set Field Group. + @param AD_FieldGroup_ID + Logical grouping of fields + */ + public void setAD_FieldGroup_ID (int AD_FieldGroup_ID) + { + if (AD_FieldGroup_ID <= 0) set_Value (COLUMNNAME_AD_FieldGroup_ID, null); + else + set_Value (COLUMNNAME_AD_FieldGroup_ID, Integer.valueOf(AD_FieldGroup_ID)); + } + + /** Get Field Group. + @return Logical grouping of fields + */ + public int getAD_FieldGroup_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_FieldGroup_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Field. + @param AD_Field_ID + Field on a database table + */ + public void setAD_Field_ID (int AD_Field_ID) + { + if (AD_Field_ID < 1) + throw new IllegalArgumentException ("AD_Field_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); + } + + /** Get Field. + @return Field on a database table + */ + public int getAD_Field_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Field_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID <= 0) set_Value ("AD_Reference_ID", null); - else -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; -/** Set Tab. -@param AD_Tab_ID Tab within a Window */ -public void setAD_Tab_ID (int AD_Tab_ID) -{ -if (AD_Tab_ID < 1) throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); -set_ValueNoCheck ("AD_Tab_ID", Integer.valueOf(AD_Tab_ID)); -} -/** Get Tab. -@return Tab within a Window */ -public int getAD_Tab_ID() -{ -Integer ii = (Integer)get_Value("AD_Tab_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tab_ID */ -public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Display Length. -@param DisplayLength Length of the display in characters */ -public void setDisplayLength (int DisplayLength) -{ -set_Value ("DisplayLength", Integer.valueOf(DisplayLength)); -} -/** Get Display Length. -@return Length of the display in characters */ -public int getDisplayLength() -{ -Integer ii = (Integer)get_Value("DisplayLength"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DisplayLength */ -public static final String COLUMNNAME_DisplayLength = "DisplayLength"; -/** Set Display Logic. -@param DisplayLogic If the Field is displayed, the result determines if the field is actually displayed */ -public void setDisplayLogic (String DisplayLogic) -{ -if (DisplayLogic != null && DisplayLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DisplayLogic = DisplayLogic.substring(0,1999); -} -set_Value ("DisplayLogic", DisplayLogic); -} -/** Get Display Logic. -@return If the Field is displayed, the result determines if the field is actually displayed */ -public String getDisplayLogic() -{ -return (String)get_Value("DisplayLogic"); -} -/** Column name DisplayLogic */ -public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID <= 0) set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Tab getI_AD_Tab() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tab. + @param AD_Tab_ID + Tab within a Window + */ + public void setAD_Tab_ID (int AD_Tab_ID) + { + if (AD_Tab_ID < 1) + throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + } + + /** Get Tab. + @return Tab within a Window + */ + public int getAD_Tab_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Display Length. + @param DisplayLength + Length of the display in characters + */ + public void setDisplayLength (int DisplayLength) + { + set_Value (COLUMNNAME_DisplayLength, Integer.valueOf(DisplayLength)); + } + + /** Get Display Length. + @return Length of the display in characters + */ + public int getDisplayLength () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DisplayLength); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Display Logic. + @param DisplayLogic + If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic) + { + if (DisplayLogic != null && DisplayLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DisplayLogic = DisplayLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_DisplayLogic, DisplayLogic); + } + + /** Get Display Logic. + @return If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic () + { + return (String)get_Value(COLUMNNAME_DisplayLogic); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Centrally maintained. -@param IsCentrallyMaintained Information maintained in System Element table */ -public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) -{ -set_Value ("IsCentrallyMaintained", Boolean.valueOf(IsCentrallyMaintained)); -} -/** Get Centrally maintained. -@return Information maintained in System Element table */ -public boolean isCentrallyMaintained() -{ -Object oo = get_Value("IsCentrallyMaintained"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCentrallyMaintained */ -public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; -/** Set Displayed. -@param IsDisplayed Determines, if this field is displayed */ -public void setIsDisplayed (boolean IsDisplayed) -{ -set_Value ("IsDisplayed", Boolean.valueOf(IsDisplayed)); -} -/** Get Displayed. -@return Determines, if this field is displayed */ -public boolean isDisplayed() -{ -Object oo = get_Value("IsDisplayed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDisplayed */ -public static final String COLUMNNAME_IsDisplayed = "IsDisplayed"; -/** Set Encrypted. -@param IsEncrypted Display or Storage is encrypted */ -public void setIsEncrypted (boolean IsEncrypted) -{ -set_Value ("IsEncrypted", Boolean.valueOf(IsEncrypted)); -} -/** Get Encrypted. -@return Display or Storage is encrypted */ -public boolean isEncrypted() -{ -Object oo = get_Value("IsEncrypted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEncrypted */ -public static final String COLUMNNAME_IsEncrypted = "IsEncrypted"; -/** Set Field Only. -@param IsFieldOnly Label is not displayed */ -public void setIsFieldOnly (boolean IsFieldOnly) -{ -set_Value ("IsFieldOnly", Boolean.valueOf(IsFieldOnly)); -} -/** Get Field Only. -@return Label is not displayed */ -public boolean isFieldOnly() -{ -Object oo = get_Value("IsFieldOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFieldOnly */ -public static final String COLUMNNAME_IsFieldOnly = "IsFieldOnly"; -/** Set Heading only. -@param IsHeading Field without Column - Only label is displayed */ -public void setIsHeading (boolean IsHeading) -{ -set_Value ("IsHeading", Boolean.valueOf(IsHeading)); -} -/** Get Heading only. -@return Field without Column - Only label is displayed */ -public boolean isHeading() -{ -Object oo = get_Value("IsHeading"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsHeading */ -public static final String COLUMNNAME_IsHeading = "IsHeading"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Centrally maintained. + @param IsCentrallyMaintained + Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) + { + set_Value (COLUMNNAME_IsCentrallyMaintained, Boolean.valueOf(IsCentrallyMaintained)); + } + + /** Get Centrally maintained. + @return Information maintained in System Element table + */ + public boolean isCentrallyMaintained () + { + Object oo = get_Value(COLUMNNAME_IsCentrallyMaintained); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Displayed. + @param IsDisplayed + Determines, if this field is displayed + */ + public void setIsDisplayed (boolean IsDisplayed) + { + set_Value (COLUMNNAME_IsDisplayed, Boolean.valueOf(IsDisplayed)); + } + + /** Get Displayed. + @return Determines, if this field is displayed + */ + public boolean isDisplayed () + { + Object oo = get_Value(COLUMNNAME_IsDisplayed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Encrypted. + @param IsEncrypted + Display or Storage is encrypted + */ + public void setIsEncrypted (boolean IsEncrypted) + { + set_Value (COLUMNNAME_IsEncrypted, Boolean.valueOf(IsEncrypted)); + } + + /** Get Encrypted. + @return Display or Storage is encrypted + */ + public boolean isEncrypted () + { + Object oo = get_Value(COLUMNNAME_IsEncrypted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Field Only. + @param IsFieldOnly + Label is not displayed + */ + public void setIsFieldOnly (boolean IsFieldOnly) + { + set_Value (COLUMNNAME_IsFieldOnly, Boolean.valueOf(IsFieldOnly)); + } + + /** Get Field Only. + @return Label is not displayed + */ + public boolean isFieldOnly () + { + Object oo = get_Value(COLUMNNAME_IsFieldOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Heading only. + @param IsHeading + Field without Column - Only label is displayed + */ + public void setIsHeading (boolean IsHeading) + { + set_Value (COLUMNNAME_IsHeading, Boolean.valueOf(IsHeading)); + } + + /** Get Heading only. + @return Field without Column - Only label is displayed + */ + public boolean isHeading () + { + Object oo = get_Value(COLUMNNAME_IsHeading); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** IsMandatory AD_Reference_ID=319 */ -public static final int ISMANDATORY_AD_Reference_ID=319; -/** No = N */ -public static final String ISMANDATORY_No = "N"; -/** Yes = Y */ +public static final int ISMANDATORY_AD_Reference_ID=319;/** No = N */ +public static final String ISMANDATORY_No = "N";/** Yes = Y */ public static final String ISMANDATORY_Yes = "Y"; -/** Set Mandatory. -@param IsMandatory Data entry is required in this column */ -public void setIsMandatory (String IsMandatory) -{ -if (IsMandatory == null || IsMandatory.equals("N") || IsMandatory.equals("Y")); - else throw new IllegalArgumentException ("IsMandatory Invalid value - " + IsMandatory + " - Reference_ID=319 - N - Y"); -if (IsMandatory != null && IsMandatory.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsMandatory = IsMandatory.substring(0,0); -} -set_Value ("IsMandatory", IsMandatory); -} -/** Get Mandatory. -@return Data entry is required in this column */ -public String getIsMandatory() -{ -return (String)get_Value("IsMandatory"); -} -/** Column name IsMandatory */ -public static final String COLUMNNAME_IsMandatory = "IsMandatory"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Same Line. -@param IsSameLine Displayed on same line as previous field */ -public void setIsSameLine (boolean IsSameLine) -{ -set_Value ("IsSameLine", Boolean.valueOf(IsSameLine)); -} -/** Get Same Line. -@return Displayed on same line as previous field */ -public boolean isSameLine() -{ -Object oo = get_Value("IsSameLine"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSameLine */ -public static final String COLUMNNAME_IsSameLine = "IsSameLine"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Mandatory. + @param IsMandatory + Data entry is required in this column + */ + public void setIsMandatory (String IsMandatory) + { +if (IsMandatory == null || IsMandatory.equals("N") || IsMandatory.equals("Y")); else throw new IllegalArgumentException ("IsMandatory Invalid value - " + IsMandatory + " - Reference_ID=319 - N - Y"); if (IsMandatory != null && IsMandatory.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsMandatory = IsMandatory.substring(0, 0); + } + set_Value (COLUMNNAME_IsMandatory, IsMandatory); + } + + /** Get Mandatory. + @return Data entry is required in this column + */ + public String getIsMandatory () + { + return (String)get_Value(COLUMNNAME_IsMandatory); + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Same Line. + @param IsSameLine + Displayed on same line as previous field + */ + public void setIsSameLine (boolean IsSameLine) + { + set_Value (COLUMNNAME_IsSameLine, Boolean.valueOf(IsSameLine)); + } + + /** Get Same Line. + @return Displayed on same line as previous field + */ + public boolean isSameLine () + { + Object oo = get_Value(COLUMNNAME_IsSameLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** ObscureType AD_Reference_ID=291 */ -public static final int OBSCURETYPE_AD_Reference_ID=291; -/** Obscure Digits but last 4 = 904 */ -public static final String OBSCURETYPE_ObscureDigitsButLast4 = "904"; -/** Obscure Digits but first/last 4 = 944 */ -public static final String OBSCURETYPE_ObscureDigitsButFirstLast4 = "944"; -/** Obscure AlphaNumeric but last 4 = A04 */ -public static final String OBSCURETYPE_ObscureAlphaNumericButLast4 = "A04"; -/** Obscure AlphaNumeric but first/last 4 = A44 */ +public static final int OBSCURETYPE_AD_Reference_ID=291;/** Obscure Digits but last 4 = 904 */ +public static final String OBSCURETYPE_ObscureDigitsButLast4 = "904";/** Obscure Digits but first/last 4 = 944 */ +public static final String OBSCURETYPE_ObscureDigitsButFirstLast4 = "944";/** Obscure AlphaNumeric but last 4 = A04 */ +public static final String OBSCURETYPE_ObscureAlphaNumericButLast4 = "A04";/** Obscure AlphaNumeric but first/last 4 = A44 */ public static final String OBSCURETYPE_ObscureAlphaNumericButFirstLast4 = "A44"; -/** Set Obscure. -@param ObscureType Type of obscuring the data (limiting the display) */ -public void setObscureType (String ObscureType) -{ -if (ObscureType == null || ObscureType.equals("904") || ObscureType.equals("944") || ObscureType.equals("A04") || ObscureType.equals("A44")); - else throw new IllegalArgumentException ("ObscureType Invalid value - " + ObscureType + " - Reference_ID=291 - 904 - 944 - A04 - A44"); -if (ObscureType != null && ObscureType.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ObscureType = ObscureType.substring(0,2); -} -set_Value ("ObscureType", ObscureType); -} -/** Get Obscure. -@return Type of obscuring the data (limiting the display) */ -public String getObscureType() -{ -return (String)get_Value("ObscureType"); -} -/** Column name ObscureType */ -public static final String COLUMNNAME_ObscureType = "ObscureType"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Record Sort No. -@param SortNo Determines in what order the records are displayed */ -public void setSortNo (BigDecimal SortNo) -{ -set_Value ("SortNo", SortNo); -} -/** Get Record Sort No. -@return Determines in what order the records are displayed */ -public BigDecimal getSortNo() -{ -BigDecimal bd = (BigDecimal)get_Value("SortNo"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SortNo */ -public static final String COLUMNNAME_SortNo = "SortNo"; -} + /** Set Obscure. + @param ObscureType + Type of obscuring the data (limiting the display) + */ + public void setObscureType (String ObscureType) + { +if (ObscureType == null || ObscureType.equals("904") || ObscureType.equals("944") || ObscureType.equals("A04") || ObscureType.equals("A44")); else throw new IllegalArgumentException ("ObscureType Invalid value - " + ObscureType + " - Reference_ID=291 - 904 - 944 - A04 - A44"); if (ObscureType != null && ObscureType.length() > 3) + { + log.warning("Length > 3 - truncated"); + ObscureType = ObscureType.substring(0, 2); + } + set_Value (COLUMNNAME_ObscureType, ObscureType); + } + + /** Get Obscure. + @return Type of obscuring the data (limiting the display) + */ + public String getObscureType () + { + return (String)get_Value(COLUMNNAME_ObscureType); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record Sort No. + @param SortNo + Determines in what order the records are displayed + */ + public void setSortNo (BigDecimal SortNo) + { + set_Value (COLUMNNAME_SortNo, SortNo); + } + + /** Get Record Sort No. + @return Determines in what order the records are displayed + */ + public BigDecimal getSortNo () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SortNo); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_FieldGroup.java b/base/src/org/compiere/model/X_AD_FieldGroup.java index c407051b01..fd3890f762 100644 --- a/base/src/org/compiere/model/X_AD_FieldGroup.java +++ b/base/src/org/compiere/model/X_AD_FieldGroup.java @@ -1,157 +1,154 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_FieldGroup - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_FieldGroup extends PO + +/** Generated Model for AD_FieldGroup + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_FieldGroup extends PO implements I_AD_FieldGroup, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_FieldGroup_ID id -@param trxName transaction -*/ -public X_AD_FieldGroup (Properties ctx, int AD_FieldGroup_ID, String trxName) -{ -super (ctx, AD_FieldGroup_ID, trxName); -/** if (AD_FieldGroup_ID == 0) -{ -setAD_FieldGroup_ID (0); -setEntityType (null); // U -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_FieldGroup (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_FieldGroup */ -public static final String Table_Name="AD_FieldGroup"; - -/** AD_Table_ID=414 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_FieldGroup[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Field Group. -@param AD_FieldGroup_ID Logical grouping of fields */ -public void setAD_FieldGroup_ID (int AD_FieldGroup_ID) -{ -if (AD_FieldGroup_ID < 1) throw new IllegalArgumentException ("AD_FieldGroup_ID is mandatory."); -set_ValueNoCheck ("AD_FieldGroup_ID", Integer.valueOf(AD_FieldGroup_ID)); -} -/** Get Field Group. -@return Logical grouping of fields */ -public int getAD_FieldGroup_ID() -{ -Integer ii = (Integer)get_Value("AD_FieldGroup_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_FieldGroup_ID */ -public static final String COLUMNNAME_AD_FieldGroup_ID = "AD_FieldGroup_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_FieldGroup (Properties ctx, int AD_FieldGroup_ID, String trxName) + { + super (ctx, AD_FieldGroup_ID, trxName); + /** if (AD_FieldGroup_ID == 0) { setAD_FieldGroup_ID (0); + setEntityType (null); +// U + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_FieldGroup (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_FieldGroup[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Field Group. + @param AD_FieldGroup_ID + Logical grouping of fields + */ + public void setAD_FieldGroup_ID (int AD_FieldGroup_ID) + { + if (AD_FieldGroup_ID < 1) + throw new IllegalArgumentException ("AD_FieldGroup_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_FieldGroup_ID, Integer.valueOf(AD_FieldGroup_ID)); + } + + /** Get Field Group. + @return Logical grouping of fields + */ + public int getAD_FieldGroup_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_FieldGroup_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Find.java b/base/src/org/compiere/model/X_AD_Find.java index 9f02b1689c..c8b54982d2 100644 --- a/base/src/org/compiere/model/X_AD_Find.java +++ b/base/src/org/compiere/model/X_AD_Find.java @@ -1,264 +1,255 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Find - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Find extends PO + +/** Generated Model for AD_Find + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Find extends PO implements I_AD_Find, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Find_ID id -@param trxName transaction -*/ -public X_AD_Find (Properties ctx, int AD_Find_ID, String trxName) -{ -super (ctx, AD_Find_ID, trxName); -/** if (AD_Find_ID == 0) -{ -setAD_Column_ID (0); -setAD_Find_ID (0); -setAndOr (null); // A -setFind_ID (Env.ZERO); -setOperation (null); // == -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Find (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Find */ -public static final String Table_Name="AD_Find"; - -/** AD_Table_ID=404 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Find[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Find (Properties ctx, int AD_Find_ID, String trxName) + { + super (ctx, AD_Find_ID, trxName); + /** if (AD_Find_ID == 0) { setAD_Column_ID (0); + setAD_Find_ID (0); + setAndOr (null); +// A + setFind_ID (Env.ZERO); + setOperation (null); +// == + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Find (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Find[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Column_ID AD_Reference_ID=251 */ public static final int AD_COLUMN_ID_AD_Reference_ID=251; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Find. -@param AD_Find_ID Find */ -public void setAD_Find_ID (int AD_Find_ID) -{ -if (AD_Find_ID < 1) throw new IllegalArgumentException ("AD_Find_ID is mandatory."); -set_ValueNoCheck ("AD_Find_ID", Integer.valueOf(AD_Find_ID)); -} -/** Get Find. -@return Find */ -public int getAD_Find_ID() -{ -Integer ii = (Integer)get_Value("AD_Find_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Find_ID())); -} -/** Column name AD_Find_ID */ -public static final String COLUMNNAME_AD_Find_ID = "AD_Find_ID"; + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Find. + @param AD_Find_ID Find */ + public void setAD_Find_ID (int AD_Find_ID) + { + if (AD_Find_ID < 1) + throw new IllegalArgumentException ("AD_Find_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Find_ID, Integer.valueOf(AD_Find_ID)); + } + + /** Get Find. +@return Find */ + public int getAD_Find_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Find_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Find_ID())); + } /** AndOr AD_Reference_ID=204 */ -public static final int ANDOR_AD_Reference_ID=204; -/** And = A */ -public static final String ANDOR_And = "A"; -/** Or = O */ +public static final int ANDOR_AD_Reference_ID=204;/** And = A */ +public static final String ANDOR_And = "A";/** Or = O */ public static final String ANDOR_Or = "O"; -/** Set And/Or. -@param AndOr Logical operation: AND or OR */ -public void setAndOr (String AndOr) -{ -if (AndOr == null) throw new IllegalArgumentException ("AndOr is mandatory"); -if (AndOr.equals("A") || AndOr.equals("O")); - else throw new IllegalArgumentException ("AndOr Invalid value - " + AndOr + " - Reference_ID=204 - A - O"); -if (AndOr.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AndOr = AndOr.substring(0,0); -} -set_Value ("AndOr", AndOr); -} -/** Get And/Or. -@return Logical operation: AND or OR */ -public String getAndOr() -{ -return (String)get_Value("AndOr"); -} -/** Column name AndOr */ -public static final String COLUMNNAME_AndOr = "AndOr"; -/** Set Find_ID. -@param Find_ID Find_ID */ -public void setFind_ID (BigDecimal Find_ID) -{ -if (Find_ID == null) throw new IllegalArgumentException ("Find_ID is mandatory."); -set_Value ("Find_ID", Find_ID); -} -/** Get Find_ID. -@return Find_ID */ -public BigDecimal getFind_ID() -{ -BigDecimal bd = (BigDecimal)get_Value("Find_ID"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Find_ID */ -public static final String COLUMNNAME_Find_ID = "Find_ID"; + /** Set And/Or. + @param AndOr + Logical operation: AND or OR + */ + public void setAndOr (String AndOr) + { +if (AndOr == null) throw new IllegalArgumentException ("AndOr is mandatory");if (AndOr.equals("A") || AndOr.equals("O")); else throw new IllegalArgumentException ("AndOr Invalid value - " + AndOr + " - Reference_ID=204 - A - O"); if (AndOr.length() > 1) + { + log.warning("Length > 1 - truncated"); + AndOr = AndOr.substring(0, 0); + } + set_Value (COLUMNNAME_AndOr, AndOr); + } + + /** Get And/Or. + @return Logical operation: AND or OR + */ + public String getAndOr () + { + return (String)get_Value(COLUMNNAME_AndOr); + } + + /** Set Find_ID. + @param Find_ID Find_ID */ + public void setFind_ID (BigDecimal Find_ID) + { + if (Find_ID == null) + throw new IllegalArgumentException ("Find_ID is mandatory."); + set_Value (COLUMNNAME_Find_ID, Find_ID); + } + + /** Get Find_ID. +@return Find_ID */ + public BigDecimal getFind_ID () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Find_ID); + if (bd == null) + return Env.ZERO; + return bd; + } /** Operation AD_Reference_ID=205 */ -public static final int OPERATION_AD_Reference_ID=205; -/** != = != */ -public static final String OPERATION_NotEq = "!="; -/** < = << */ -public static final String OPERATION_Le = "<<"; -/** <= = <= */ -public static final String OPERATION_LeEq = "<="; -/** = = == */ -public static final String OPERATION_Eq = "=="; -/** >= = >= */ -public static final String OPERATION_GtEq = ">="; -/** > = >> */ -public static final String OPERATION_Gt = ">>"; -/** || = AB */ -public static final String OPERATION_X = "AB"; -/** sql = SQ */ -public static final String OPERATION_Sql = "SQ"; -/** ~ = ~~ */ +public static final int OPERATION_AD_Reference_ID=205;/** != = != */ +public static final String OPERATION_NotEq = "!=";/** < = << */ +public static final String OPERATION_Le = "<<";/** <= = <= */ +public static final String OPERATION_LeEq = "<=";/** = = == */ +public static final String OPERATION_Eq = "==";/** >= = >= */ +public static final String OPERATION_GtEq = ">=";/** > = >> */ +public static final String OPERATION_Gt = ">>";/** || = AB */ +public static final String OPERATION_X = "AB";/** sql = SQ */ +public static final String OPERATION_Sql = "SQ";/** ~ = ~~ */ public static final String OPERATION_Like = "~~"; -/** Set Operation. -@param Operation Compare Operation */ -public void setOperation (String Operation) -{ -if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory"); -if (Operation.equals("!=") || Operation.equals("<<") || Operation.equals("<=") || Operation.equals("==") || Operation.equals(">=") || Operation.equals(">>") || Operation.equals("AB") || Operation.equals("SQ") || Operation.equals("~~")); - else throw new IllegalArgumentException ("Operation Invalid value - " + Operation + " - Reference_ID=205 - != - << - <= - == - >= - >> - AB - SQ - ~~"); -if (Operation.length() > 2) -{ -log.warning("Length > 2 - truncated"); -Operation = Operation.substring(0,1); -} -set_Value ("Operation", Operation); -} -/** Get Operation. -@return Compare Operation */ -public String getOperation() -{ -return (String)get_Value("Operation"); -} -/** Column name Operation */ -public static final String COLUMNNAME_Operation = "Operation"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Value To. -@param Value2 Value To */ -public void setValue2 (String Value2) -{ -if (Value2 != null && Value2.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value2 = Value2.substring(0,39); -} -set_Value ("Value2", Value2); -} -/** Get Value To. -@return Value To */ -public String getValue2() -{ -return (String)get_Value("Value2"); -} -/** Column name Value2 */ -public static final String COLUMNNAME_Value2 = "Value2"; -} + /** Set Operation. + @param Operation + Compare Operation + */ + public void setOperation (String Operation) + { +if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory");if (Operation.equals("!=") || Operation.equals("<<") || Operation.equals("<=") || Operation.equals("==") || Operation.equals(">=") || Operation.equals(">>") || Operation.equals("AB") || Operation.equals("SQ") || Operation.equals("~~")); else throw new IllegalArgumentException ("Operation Invalid value - " + Operation + " - Reference_ID=205 - != - << - <= - == - >= - >> - AB - SQ - ~~"); if (Operation.length() > 2) + { + log.warning("Length > 2 - truncated"); + Operation = Operation.substring(0, 1); + } + set_Value (COLUMNNAME_Operation, Operation); + } + + /** Get Operation. + @return Compare Operation + */ + public String getOperation () + { + return (String)get_Value(COLUMNNAME_Operation); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Value To. + @param Value2 + Value To + */ + public void setValue2 (String Value2) + { + if (Value2 != null && Value2.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value2 = Value2.substring(0, 39); + } + set_Value (COLUMNNAME_Value2, Value2); + } + + /** Get Value To. + @return Value To + */ + public String getValue2 () + { + return (String)get_Value(COLUMNNAME_Value2); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Form.java b/base/src/org/compiere/model/X_AD_Form.java index 4388ca2c16..af2fa1719e 100644 --- a/base/src/org/compiere/model/X_AD_Form.java +++ b/base/src/org/compiere/model/X_AD_Form.java @@ -1,292 +1,298 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Form - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Form extends PO + +/** Generated Model for AD_Form + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Form extends PO implements I_AD_Form, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Form_ID id -@param trxName transaction -*/ -public X_AD_Form (Properties ctx, int AD_Form_ID, String trxName) -{ -super (ctx, AD_Form_ID, trxName); -/** if (AD_Form_ID == 0) -{ -setAD_Form_ID (0); -setAccessLevel (null); -setEntityType (null); // U -setIsBetaFunctionality (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Form (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Form */ -public static final String Table_Name="AD_Form"; - -/** AD_Table_ID=376 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Form[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID < 1) throw new IllegalArgumentException ("AD_Form_ID is mandatory."); -set_ValueNoCheck ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Form (Properties ctx, int AD_Form_ID, String trxName) + { + super (ctx, AD_Form_ID, trxName); + /** if (AD_Form_ID == 0) { setAD_Form_ID (0); + setAccessLevel (null); + setEntityType (null); +// U + setIsBetaFunctionality (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Form (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Form[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID < 1) + throw new IllegalArgumentException ("AD_Form_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AccessLevel AD_Reference_ID=5 */ -public static final int ACCESSLEVEL_AD_Reference_ID=5; -/** Organization = 1 */ -public static final String ACCESSLEVEL_Organization = "1"; -/** Client only = 2 */ -public static final String ACCESSLEVEL_ClientOnly = "2"; -/** Client+Organization = 3 */ -public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; -/** System only = 4 */ -public static final String ACCESSLEVEL_SystemOnly = "4"; -/** System+Client = 6 */ -public static final String ACCESSLEVEL_SystemPlusClient = "6"; -/** All = 7 */ +public static final int ACCESSLEVEL_AD_Reference_ID=5;/** Organization = 1 */ +public static final String ACCESSLEVEL_Organization = "1";/** Client only = 2 */ +public static final String ACCESSLEVEL_ClientOnly = "2";/** Client+Organization = 3 */ +public static final String ACCESSLEVEL_ClientPlusOrganization = "3";/** System only = 4 */ +public static final String ACCESSLEVEL_SystemOnly = "4";/** System+Client = 6 */ +public static final String ACCESSLEVEL_SystemPlusClient = "6";/** All = 7 */ public static final String ACCESSLEVEL_All = "7"; -/** Set Data Access Level. -@param AccessLevel Access Level required */ -public void setAccessLevel (String AccessLevel) -{ -if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); -if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); - else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); -if (AccessLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccessLevel = AccessLevel.substring(0,0); -} -set_Value ("AccessLevel", AccessLevel); -} -/** Get Data Access Level. -@return Access Level required */ -public String getAccessLevel() -{ -return (String)get_Value("AccessLevel"); -} -/** Column name AccessLevel */ -public static final String COLUMNNAME_AccessLevel = "AccessLevel"; -/** Set Classname. -@param Classname Java Classname */ -public void setClassname (String Classname) -{ -if (Classname != null && Classname.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Classname = Classname.substring(0,59); -} -set_Value ("Classname", Classname); -} -/** Get Classname. -@return Java Classname */ -public String getClassname() -{ -return (String)get_Value("Classname"); -} -/** Column name Classname */ -public static final String COLUMNNAME_Classname = "Classname"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Data Access Level. + @param AccessLevel + Access Level required + */ + public void setAccessLevel (String AccessLevel) + { +if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory");if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); if (AccessLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessLevel = AccessLevel.substring(0, 0); + } + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel () + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + + /** Set Classname. + @param Classname + Java Classname + */ + public void setClassname (String Classname) + { + if (Classname != null && Classname.length() > 60) + { + log.warning("Length > 60 - truncated"); + Classname = Classname.substring(0, 59); + } + set_Value (COLUMNNAME_Classname, Classname); + } + + /** Get Classname. + @return Java Classname + */ + public String getClassname () + { + return (String)get_Value(COLUMNNAME_Classname); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Beta Functionality. -@param IsBetaFunctionality This functionality is considered Beta */ -public void setIsBetaFunctionality (boolean IsBetaFunctionality) -{ -set_Value ("IsBetaFunctionality", Boolean.valueOf(IsBetaFunctionality)); -} -/** Get Beta Functionality. -@return This functionality is considered Beta */ -public boolean isBetaFunctionality() -{ -Object oo = get_Value("IsBetaFunctionality"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBetaFunctionality */ -public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality"; -/** Set jsp URL. -@param JSPURL Web URL of the jsp function */ -public void setJSPURL (String JSPURL) -{ -if (JSPURL != null && JSPURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -JSPURL = JSPURL.substring(0,119); -} -set_Value ("JSPURL", JSPURL); -} -/** Get jsp URL. -@return Web URL of the jsp function */ -public String getJSPURL() -{ -return (String)get_Value("JSPURL"); -} -/** Column name JSPURL */ -public static final String COLUMNNAME_JSPURL = "JSPURL"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Beta Functionality. + @param IsBetaFunctionality + This functionality is considered Beta + */ + public void setIsBetaFunctionality (boolean IsBetaFunctionality) + { + set_Value (COLUMNNAME_IsBetaFunctionality, Boolean.valueOf(IsBetaFunctionality)); + } + + /** Get Beta Functionality. + @return This functionality is considered Beta + */ + public boolean isBetaFunctionality () + { + Object oo = get_Value(COLUMNNAME_IsBetaFunctionality); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set jsp URL. + @param JSPURL + Web URL of the jsp function + */ + public void setJSPURL (String JSPURL) + { + if (JSPURL != null && JSPURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + JSPURL = JSPURL.substring(0, 119); + } + set_Value (COLUMNNAME_JSPURL, JSPURL); + } + + /** Get jsp URL. + @return Web URL of the jsp function + */ + public String getJSPURL () + { + return (String)get_Value(COLUMNNAME_JSPURL); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 ac9fd7e5da..014cceef2a 100644 --- a/base/src/org/compiere/model/X_AD_Form_Access.java +++ b/base/src/org/compiere/model/X_AD_Form_Access.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Form_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Form_Access extends PO + +/** Generated Model for AD_Form_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Form_Access extends PO implements I_AD_Form_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Form_Access_ID id -@param trxName transaction -*/ -public X_AD_Form_Access (Properties ctx, int AD_Form_Access_ID, String trxName) -{ -super (ctx, AD_Form_Access_ID, trxName); -/** if (AD_Form_Access_ID == 0) -{ -setAD_Form_ID (0); -setAD_Role_ID (0); -setIsReadWrite (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Form_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Form_Access */ -public static final String Table_Name="AD_Form_Access"; - -/** AD_Table_ID=378 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Form_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID < 1) throw new IllegalArgumentException ("AD_Form_ID is mandatory."); -set_ValueNoCheck ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Read Write. -@param IsReadWrite Field is read / write */ -public void setIsReadWrite (boolean IsReadWrite) -{ -set_Value ("IsReadWrite", Boolean.valueOf(IsReadWrite)); -} -/** Get Read Write. -@return Field is read / write */ -public boolean isReadWrite() -{ -Object oo = get_Value("IsReadWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadWrite */ -public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Form_Access (Properties ctx, int AD_Form_Access_ID, String trxName) + { + super (ctx, AD_Form_Access_ID, trxName); + /** if (AD_Form_Access_ID == 0) { setAD_Form_ID (0); + setAD_Role_ID (0); + setIsReadWrite (false); +} */ + } + + /** Load Constructor */ + public X_AD_Form_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Form_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Form getI_AD_Form() throws Exception + { + 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 e; + } + return result; + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID < 1) + throw new IllegalArgumentException ("AD_Form_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Write. + @param IsReadWrite + Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite) + { + set_Value (COLUMNNAME_IsReadWrite, Boolean.valueOf(IsReadWrite)); + } + + /** Get Read Write. + @return Field is read / write + */ + public boolean isReadWrite () + { + Object oo = get_Value(COLUMNNAME_IsReadWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Image.java b/base/src/org/compiere/model/X_AD_Image.java index df3df16bca..79e43c571f 100644 --- a/base/src/org/compiere/model/X_AD_Image.java +++ b/base/src/org/compiere/model/X_AD_Image.java @@ -1,209 +1,215 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Image - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Image extends PO + +/** Generated Model for AD_Image + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Image extends PO implements I_AD_Image, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Image_ID id -@param trxName transaction -*/ -public X_AD_Image (Properties ctx, int AD_Image_ID, String trxName) -{ -super (ctx, AD_Image_ID, trxName); -/** if (AD_Image_ID == 0) -{ -setAD_Image_ID (0); -setEntityType (null); // U -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Image (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Image */ -public static final String Table_Name="AD_Image"; - -/** AD_Table_ID=461 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Image[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID < 1) throw new IllegalArgumentException ("AD_Image_ID is mandatory."); -set_ValueNoCheck ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Image (Properties ctx, int AD_Image_ID, String trxName) + { + super (ctx, AD_Image_ID, trxName); + /** if (AD_Image_ID == 0) { setAD_Image_ID (0); + setEntityType (null); +// U + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Image (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Image[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID < 1) + throw new IllegalArgumentException ("AD_Image_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ImpFormat.java b/base/src/org/compiere/model/X_AD_ImpFormat.java index e474ac3fbd..e8f558834d 100644 --- a/base/src/org/compiere/model/X_AD_ImpFormat.java +++ b/base/src/org/compiere/model/X_AD_ImpFormat.java @@ -1,224 +1,237 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ImpFormat - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ImpFormat extends PO + +/** Generated Model for AD_ImpFormat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ImpFormat extends PO implements I_AD_ImpFormat, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ImpFormat_ID id -@param trxName transaction -*/ -public X_AD_ImpFormat (Properties ctx, int AD_ImpFormat_ID, String trxName) -{ -super (ctx, AD_ImpFormat_ID, trxName); -/** if (AD_ImpFormat_ID == 0) -{ -setAD_ImpFormat_ID (0); -setAD_Table_ID (0); -setFormatType (null); -setName (null); -setProcessing (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ImpFormat (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ImpFormat */ -public static final String Table_Name="AD_ImpFormat"; - -/** AD_Table_ID=381 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ImpFormat[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Import Format. -@param AD_ImpFormat_ID Import Format */ -public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) -{ -if (AD_ImpFormat_ID < 1) throw new IllegalArgumentException ("AD_ImpFormat_ID is mandatory."); -set_ValueNoCheck ("AD_ImpFormat_ID", Integer.valueOf(AD_ImpFormat_ID)); -} -/** Get Import Format. -@return Import Format */ -public int getAD_ImpFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_ImpFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ImpFormat_ID */ -public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ImpFormat (Properties ctx, int AD_ImpFormat_ID, String trxName) + { + super (ctx, AD_ImpFormat_ID, trxName); + /** if (AD_ImpFormat_ID == 0) { setAD_ImpFormat_ID (0); + setAD_Table_ID (0); + setFormatType (null); + setName (null); + setProcessing (false); +} */ + } + + /** Load Constructor */ + public X_AD_ImpFormat (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ImpFormat[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Import Format. + @param AD_ImpFormat_ID Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) + { + if (AD_ImpFormat_ID < 1) + throw new IllegalArgumentException ("AD_ImpFormat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); + } + + /** Get Import Format. +@return Import Format */ + public int getAD_ImpFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImpFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** FormatType AD_Reference_ID=209 */ -public static final int FORMATTYPE_AD_Reference_ID=209; -/** Comma Separated = C */ -public static final String FORMATTYPE_CommaSeparated = "C"; -/** Fixed Position = F */ -public static final String FORMATTYPE_FixedPosition = "F"; -/** Tab Separated = T */ -public static final String FORMATTYPE_TabSeparated = "T"; -/** XML = X */ +public static final int FORMATTYPE_AD_Reference_ID=209;/** Comma Separated = C */ +public static final String FORMATTYPE_CommaSeparated = "C";/** Fixed Position = F */ +public static final String FORMATTYPE_FixedPosition = "F";/** Tab Separated = T */ +public static final String FORMATTYPE_TabSeparated = "T";/** XML = X */ public static final String FORMATTYPE_XML = "X"; -/** Set Format. -@param FormatType Format of the data */ -public void setFormatType (String FormatType) -{ -if (FormatType == null) throw new IllegalArgumentException ("FormatType is mandatory"); -if (FormatType.equals("C") || FormatType.equals("F") || FormatType.equals("T") || FormatType.equals("X")); - else throw new IllegalArgumentException ("FormatType Invalid value - " + FormatType + " - Reference_ID=209 - C - F - T - X"); -if (FormatType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FormatType = FormatType.substring(0,0); -} -set_Value ("FormatType", FormatType); -} -/** Get Format. -@return Format of the data */ -public String getFormatType() -{ -return (String)get_Value("FormatType"); -} -/** Column name FormatType */ -public static final String COLUMNNAME_FormatType = "FormatType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Format. + @param FormatType + Format of the data + */ + public void setFormatType (String FormatType) + { +if (FormatType == null) throw new IllegalArgumentException ("FormatType is mandatory");if (FormatType.equals("C") || FormatType.equals("F") || FormatType.equals("T") || FormatType.equals("X")); else throw new IllegalArgumentException ("FormatType Invalid value - " + FormatType + " - Reference_ID=209 - C - F - T - X"); if (FormatType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FormatType = FormatType.substring(0, 0); + } + set_Value (COLUMNNAME_FormatType, FormatType); + } + + /** Get Format. + @return Format of the data + */ + public String getFormatType () + { + return (String)get_Value(COLUMNNAME_FormatType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file 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 1030c26877..0577d56e82 100644 --- a/base/src/org/compiere/model/X_AD_ImpFormat_Row.java +++ b/base/src/org/compiere/model/X_AD_ImpFormat_Row.java @@ -1,371 +1,427 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ImpFormat_Row - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ImpFormat_Row extends PO + +/** Generated Model for AD_ImpFormat_Row + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ImpFormat_Row extends PO implements I_AD_ImpFormat_Row, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ImpFormat_Row_ID id -@param trxName transaction -*/ -public X_AD_ImpFormat_Row (Properties ctx, int AD_ImpFormat_Row_ID, String trxName) -{ -super (ctx, AD_ImpFormat_Row_ID, trxName); -/** if (AD_ImpFormat_Row_ID == 0) -{ -setAD_Column_ID (0); -setAD_ImpFormat_ID (0); -setAD_ImpFormat_Row_ID (0); -setDataType (null); -setDecimalPoint (null); // . -setDivideBy100 (false); -setName (null); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ImpFormat_Row WHERE AD_ImpFormat_ID=@AD_ImpFormat_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ImpFormat_Row (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ImpFormat_Row */ -public static final String Table_Name="AD_ImpFormat_Row"; - -/** AD_Table_ID=382 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ImpFormat_Row[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Import Format. -@param AD_ImpFormat_ID Import Format */ -public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) -{ -if (AD_ImpFormat_ID < 1) throw new IllegalArgumentException ("AD_ImpFormat_ID is mandatory."); -set_ValueNoCheck ("AD_ImpFormat_ID", Integer.valueOf(AD_ImpFormat_ID)); -} -/** Get Import Format. -@return Import Format */ -public int getAD_ImpFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_ImpFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ImpFormat_ID */ -public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; -/** Set Format Field. -@param AD_ImpFormat_Row_ID Format Field */ -public void setAD_ImpFormat_Row_ID (int AD_ImpFormat_Row_ID) -{ -if (AD_ImpFormat_Row_ID < 1) throw new IllegalArgumentException ("AD_ImpFormat_Row_ID is mandatory."); -set_ValueNoCheck ("AD_ImpFormat_Row_ID", Integer.valueOf(AD_ImpFormat_Row_ID)); -} -/** Get Format Field. -@return Format Field */ -public int getAD_ImpFormat_Row_ID() -{ -Integer ii = (Integer)get_Value("AD_ImpFormat_Row_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ImpFormat_Row_ID */ -public static final String COLUMNNAME_AD_ImpFormat_Row_ID = "AD_ImpFormat_Row_ID"; -/** Set Callout. -@param Callout Fully qualified class names and method - separated by semicolons */ -public void setCallout (String Callout) -{ -if (Callout != null && Callout.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Callout = Callout.substring(0,59); -} -set_Value ("Callout", Callout); -} -/** Get Callout. -@return Fully qualified class names and method - separated by semicolons */ -public String getCallout() -{ -return (String)get_Value("Callout"); -} -/** Column name Callout */ -public static final String COLUMNNAME_Callout = "Callout"; -/** Set Constant Value. -@param ConstantValue Constant value */ -public void setConstantValue (String ConstantValue) -{ -if (ConstantValue != null && ConstantValue.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ConstantValue = ConstantValue.substring(0,59); -} -set_Value ("ConstantValue", ConstantValue); -} -/** Get Constant Value. -@return Constant value */ -public String getConstantValue() -{ -return (String)get_Value("ConstantValue"); -} -/** Column name ConstantValue */ -public static final String COLUMNNAME_ConstantValue = "ConstantValue"; -/** Set Data Format. -@param DataFormat Format String in Java Notation, e.g. ddMMyy */ -public void setDataFormat (String DataFormat) -{ -if (DataFormat != null && DataFormat.length() > 20) -{ -log.warning("Length > 20 - truncated"); -DataFormat = DataFormat.substring(0,19); -} -set_Value ("DataFormat", DataFormat); -} -/** Get Data Format. -@return Format String in Java Notation, e.g. ddMMyy */ -public String getDataFormat() -{ -return (String)get_Value("DataFormat"); -} -/** Column name DataFormat */ -public static final String COLUMNNAME_DataFormat = "DataFormat"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ImpFormat_Row (Properties ctx, int AD_ImpFormat_Row_ID, String trxName) + { + super (ctx, AD_ImpFormat_Row_ID, trxName); + /** if (AD_ImpFormat_Row_ID == 0) { setAD_Column_ID (0); + setAD_ImpFormat_ID (0); + setAD_ImpFormat_Row_ID (0); + setDataType (null); + setDecimalPoint (null); +// . + setDivideBy100 (false); + setName (null); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ImpFormat_Row WHERE AD_ImpFormat_ID=@AD_ImpFormat_ID@ +} */ + } + + /** Load Constructor */ + public X_AD_ImpFormat_Row (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ImpFormat_Row[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_ImpFormat getI_AD_ImpFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Import Format. + @param AD_ImpFormat_ID Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) + { + if (AD_ImpFormat_ID < 1) + throw new IllegalArgumentException ("AD_ImpFormat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); + } + + /** Get Import Format. +@return Import Format */ + public int getAD_ImpFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImpFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Format Field. + @param AD_ImpFormat_Row_ID Format Field */ + public void setAD_ImpFormat_Row_ID (int AD_ImpFormat_Row_ID) + { + if (AD_ImpFormat_Row_ID < 1) + throw new IllegalArgumentException ("AD_ImpFormat_Row_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ImpFormat_Row_ID, Integer.valueOf(AD_ImpFormat_Row_ID)); + } + + /** Get Format Field. +@return Format Field */ + public int getAD_ImpFormat_Row_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImpFormat_Row_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Callout. + @param Callout + Fully qualified class names and method - separated by semicolons + */ + public void setCallout (String Callout) + { + if (Callout != null && Callout.length() > 60) + { + log.warning("Length > 60 - truncated"); + Callout = Callout.substring(0, 59); + } + set_Value (COLUMNNAME_Callout, Callout); + } + + /** Get Callout. + @return Fully qualified class names and method - separated by semicolons + */ + public String getCallout () + { + return (String)get_Value(COLUMNNAME_Callout); + } + + /** Set Constant Value. + @param ConstantValue + Constant value + */ + public void setConstantValue (String ConstantValue) + { + if (ConstantValue != null && ConstantValue.length() > 60) + { + log.warning("Length > 60 - truncated"); + ConstantValue = ConstantValue.substring(0, 59); + } + set_Value (COLUMNNAME_ConstantValue, ConstantValue); + } + + /** Get Constant Value. + @return Constant value + */ + public String getConstantValue () + { + return (String)get_Value(COLUMNNAME_ConstantValue); + } + + /** Set Data Format. + @param DataFormat + Format String in Java Notation, e.g. ddMMyy + */ + public void setDataFormat (String DataFormat) + { + if (DataFormat != null && DataFormat.length() > 20) + { + log.warning("Length > 20 - truncated"); + DataFormat = DataFormat.substring(0, 19); + } + set_Value (COLUMNNAME_DataFormat, DataFormat); + } + + /** Get Data Format. + @return Format String in Java Notation, e.g. ddMMyy + */ + public String getDataFormat () + { + return (String)get_Value(COLUMNNAME_DataFormat); + } /** DataType AD_Reference_ID=210 */ -public static final int DATATYPE_AD_Reference_ID=210; -/** Constant = C */ -public static final String DATATYPE_Constant = "C"; -/** Date = D */ -public static final String DATATYPE_Date = "D"; -/** Number = N */ -public static final String DATATYPE_Number = "N"; -/** String = S */ +public static final int DATATYPE_AD_Reference_ID=210;/** Constant = C */ +public static final String DATATYPE_Constant = "C";/** Date = D */ +public static final String DATATYPE_Date = "D";/** Number = N */ +public static final String DATATYPE_Number = "N";/** String = S */ public static final String DATATYPE_String = "S"; -/** Set Data Type. -@param DataType Type of data */ -public void setDataType (String DataType) -{ -if (DataType == null) throw new IllegalArgumentException ("DataType is mandatory"); -if (DataType.equals("C") || DataType.equals("D") || DataType.equals("N") || DataType.equals("S")); - else throw new IllegalArgumentException ("DataType Invalid value - " + DataType + " - Reference_ID=210 - C - D - N - S"); -if (DataType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DataType = DataType.substring(0,0); -} -set_Value ("DataType", DataType); -} -/** Get Data Type. -@return Type of data */ -public String getDataType() -{ -return (String)get_Value("DataType"); -} -/** Column name DataType */ -public static final String COLUMNNAME_DataType = "DataType"; -/** Set Decimal Point. -@param DecimalPoint Decimal Point in the data file - if any */ -public void setDecimalPoint (String DecimalPoint) -{ -if (DecimalPoint == null) throw new IllegalArgumentException ("DecimalPoint is mandatory."); -if (DecimalPoint.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DecimalPoint = DecimalPoint.substring(0,0); -} -set_Value ("DecimalPoint", DecimalPoint); -} -/** Get Decimal Point. -@return Decimal Point in the data file - if any */ -public String getDecimalPoint() -{ -return (String)get_Value("DecimalPoint"); -} -/** Column name DecimalPoint */ -public static final String COLUMNNAME_DecimalPoint = "DecimalPoint"; -/** Set Divide by 100. -@param DivideBy100 Divide number by 100 to get correct amount */ -public void setDivideBy100 (boolean DivideBy100) -{ -set_Value ("DivideBy100", Boolean.valueOf(DivideBy100)); -} -/** Get Divide by 100. -@return Divide number by 100 to get correct amount */ -public boolean isDivideBy100() -{ -Object oo = get_Value("DivideBy100"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name DivideBy100 */ -public static final String COLUMNNAME_DivideBy100 = "DivideBy100"; -/** Set End No. -@param EndNo End No */ -public void setEndNo (int EndNo) -{ -set_Value ("EndNo", Integer.valueOf(EndNo)); -} -/** Get End No. -@return End No */ -public int getEndNo() -{ -Integer ii = (Integer)get_Value("EndNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name EndNo */ -public static final String COLUMNNAME_EndNo = "EndNo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Script. -@param Script Dynamic Java Language Script to calculate result */ -public void setScript (String Script) -{ -if (Script != null && Script.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Script = Script.substring(0,1999); -} -set_Value ("Script", Script); -} -/** Get Script. -@return Dynamic Java Language Script to calculate result */ -public String getScript() -{ -return (String)get_Value("Script"); -} -/** Column name Script */ -public static final String COLUMNNAME_Script = "Script"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Start No. -@param StartNo Starting number/position */ -public void setStartNo (int StartNo) -{ -set_Value ("StartNo", Integer.valueOf(StartNo)); -} -/** Get Start No. -@return Starting number/position */ -public int getStartNo() -{ -Integer ii = (Integer)get_Value("StartNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StartNo */ -public static final String COLUMNNAME_StartNo = "StartNo"; -} + /** Set Data Type. + @param DataType + Type of data + */ + public void setDataType (String DataType) + { +if (DataType == null) throw new IllegalArgumentException ("DataType is mandatory");if (DataType.equals("C") || DataType.equals("D") || DataType.equals("N") || DataType.equals("S")); else throw new IllegalArgumentException ("DataType Invalid value - " + DataType + " - Reference_ID=210 - C - D - N - S"); if (DataType.length() > 1) + { + log.warning("Length > 1 - truncated"); + DataType = DataType.substring(0, 0); + } + set_Value (COLUMNNAME_DataType, DataType); + } + + /** Get Data Type. + @return Type of data + */ + public String getDataType () + { + return (String)get_Value(COLUMNNAME_DataType); + } + + /** Set Decimal Point. + @param DecimalPoint + Decimal Point in the data file - if any + */ + public void setDecimalPoint (String DecimalPoint) + { + if (DecimalPoint == null) + throw new IllegalArgumentException ("DecimalPoint is mandatory."); + if (DecimalPoint.length() > 1) + { + log.warning("Length > 1 - truncated"); + DecimalPoint = DecimalPoint.substring(0, 0); + } + set_Value (COLUMNNAME_DecimalPoint, DecimalPoint); + } + + /** Get Decimal Point. + @return Decimal Point in the data file - if any + */ + public String getDecimalPoint () + { + return (String)get_Value(COLUMNNAME_DecimalPoint); + } + + /** Set Divide by 100. + @param DivideBy100 + Divide number by 100 to get correct amount + */ + public void setDivideBy100 (boolean DivideBy100) + { + set_Value (COLUMNNAME_DivideBy100, Boolean.valueOf(DivideBy100)); + } + + /** Get Divide by 100. + @return Divide number by 100 to get correct amount + */ + public boolean isDivideBy100 () + { + Object oo = get_Value(COLUMNNAME_DivideBy100); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set End No. + @param EndNo End No */ + public void setEndNo (int EndNo) + { + set_Value (COLUMNNAME_EndNo, Integer.valueOf(EndNo)); + } + + /** Get End No. +@return End No */ + public int getEndNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_EndNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Script. + @param Script + Dynamic Java Language Script to calculate result + */ + public void setScript (String Script) + { + if (Script != null && Script.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Script = Script.substring(0, 1999); + } + set_Value (COLUMNNAME_Script, Script); + } + + /** Get Script. + @return Dynamic Java Language Script to calculate result + */ + public String getScript () + { + return (String)get_Value(COLUMNNAME_Script); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Start No. + @param StartNo + Starting number/position + */ + public void setStartNo (int StartNo) + { + set_Value (COLUMNNAME_StartNo, Integer.valueOf(StartNo)); + } + + /** Get Start No. + @return Starting number/position + */ + public int getStartNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StartNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_InfoColumn.java b/base/src/org/compiere/model/X_AD_InfoColumn.java index 3c7c0e86b9..0185c98ceb 100644 --- a/base/src/org/compiere/model/X_AD_InfoColumn.java +++ b/base/src/org/compiere/model/X_AD_InfoColumn.java @@ -1,334 +1,396 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_InfoColumn - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_InfoColumn extends PO + +/** Generated Model for AD_InfoColumn + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_InfoColumn extends PO implements I_AD_InfoColumn, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_InfoColumn_ID id -@param trxName transaction -*/ -public X_AD_InfoColumn (Properties ctx, int AD_InfoColumn_ID, String trxName) -{ -super (ctx, AD_InfoColumn_ID, trxName); -/** if (AD_InfoColumn_ID == 0) -{ -setAD_InfoColumn_ID (0); -setAD_InfoWindow_ID (0); -setAD_Reference_ID (0); -setEntityType (null); // U -setIsDisplayed (false); -setIsQueryCriteria (false); -setName (null); -setSelectClause (null); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_InfoColumn (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_InfoColumn */ -public static final String Table_Name="AD_InfoColumn"; - -/** AD_Table_ID=897 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_InfoColumn[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Element. -@param AD_Element_ID System Element enables the central maintenance of column description and help. */ -public void setAD_Element_ID (int AD_Element_ID) -{ -if (AD_Element_ID <= 0) set_Value ("AD_Element_ID", null); - else -set_Value ("AD_Element_ID", Integer.valueOf(AD_Element_ID)); -} -/** Get System Element. -@return System Element enables the central maintenance of column description and help. */ -public int getAD_Element_ID() -{ -Integer ii = (Integer)get_Value("AD_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Element_ID */ -public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; -/** Set Info Column. -@param AD_InfoColumn_ID Info Window Column */ -public void setAD_InfoColumn_ID (int AD_InfoColumn_ID) -{ -if (AD_InfoColumn_ID < 1) throw new IllegalArgumentException ("AD_InfoColumn_ID is mandatory."); -set_ValueNoCheck ("AD_InfoColumn_ID", Integer.valueOf(AD_InfoColumn_ID)); -} -/** Get Info Column. -@return Info Window Column */ -public int getAD_InfoColumn_ID() -{ -Integer ii = (Integer)get_Value("AD_InfoColumn_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_InfoColumn_ID */ -public static final String COLUMNNAME_AD_InfoColumn_ID = "AD_InfoColumn_ID"; -/** Set Info Window. -@param AD_InfoWindow_ID Info and search/select Window */ -public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) -{ -if (AD_InfoWindow_ID < 1) throw new IllegalArgumentException ("AD_InfoWindow_ID is mandatory."); -set_ValueNoCheck ("AD_InfoWindow_ID", Integer.valueOf(AD_InfoWindow_ID)); -} -/** Get Info Window. -@return Info and search/select Window */ -public int getAD_InfoWindow_ID() -{ -Integer ii = (Integer)get_Value("AD_InfoWindow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_InfoWindow_ID */ -public static final String COLUMNNAME_AD_InfoWindow_ID = "AD_InfoWindow_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_InfoColumn (Properties ctx, int AD_InfoColumn_ID, String trxName) + { + super (ctx, AD_InfoColumn_ID, trxName); + /** if (AD_InfoColumn_ID == 0) { setAD_InfoColumn_ID (0); + setAD_InfoWindow_ID (0); + setAD_Reference_ID (0); + setEntityType (null); +// U + setIsDisplayed (false); + setIsQueryCriteria (false); + setName (null); + setSelectClause (null); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_InfoColumn (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_InfoColumn[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Element getI_AD_Element() throws Exception + { + 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 e; + } + return result; + } + + /** Set System Element. + @param AD_Element_ID + System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID) + { + if (AD_Element_ID <= 0) set_Value (COLUMNNAME_AD_Element_ID, null); + else + set_Value (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); + } + + /** Get System Element. + @return System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Info Column. + @param AD_InfoColumn_ID + Info Window Column + */ + public void setAD_InfoColumn_ID (int AD_InfoColumn_ID) + { + if (AD_InfoColumn_ID < 1) + throw new IllegalArgumentException ("AD_InfoColumn_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_InfoColumn_ID, Integer.valueOf(AD_InfoColumn_ID)); + } + + /** Get Info Column. + @return Info Window Column + */ + public int getAD_InfoColumn_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoColumn_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_InfoWindow getI_AD_InfoWindow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Info Window. + @param AD_InfoWindow_ID + Info and search/select Window + */ + public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) + { + if (AD_InfoWindow_ID < 1) + throw new IllegalArgumentException ("AD_InfoWindow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); + } + + /** Get Info Window. + @return Info and search/select Window + */ + public int getAD_InfoWindow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoWindow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Displayed. -@param IsDisplayed Determines, if this field is displayed */ -public void setIsDisplayed (boolean IsDisplayed) -{ -set_Value ("IsDisplayed", Boolean.valueOf(IsDisplayed)); -} -/** Get Displayed. -@return Determines, if this field is displayed */ -public boolean isDisplayed() -{ -Object oo = get_Value("IsDisplayed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDisplayed */ -public static final String COLUMNNAME_IsDisplayed = "IsDisplayed"; -/** Set Query Criteria. -@param IsQueryCriteria The column is also used as a query criteria */ -public void setIsQueryCriteria (boolean IsQueryCriteria) -{ -set_Value ("IsQueryCriteria", Boolean.valueOf(IsQueryCriteria)); -} -/** Get Query Criteria. -@return The column is also used as a query criteria */ -public boolean isQueryCriteria() -{ -Object oo = get_Value("IsQueryCriteria"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsQueryCriteria */ -public static final String COLUMNNAME_IsQueryCriteria = "IsQueryCriteria"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sql SELECT. -@param SelectClause SQL SELECT clause */ -public void setSelectClause (String SelectClause) -{ -if (SelectClause == null) throw new IllegalArgumentException ("SelectClause is mandatory."); -if (SelectClause.length() > 255) -{ -log.warning("Length > 255 - truncated"); -SelectClause = SelectClause.substring(0,254); -} -set_Value ("SelectClause", SelectClause); -} -/** Get Sql SELECT. -@return SQL SELECT clause */ -public String getSelectClause() -{ -return (String)get_Value("SelectClause"); -} -/** Column name SelectClause */ -public static final String COLUMNNAME_SelectClause = "SelectClause"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Displayed. + @param IsDisplayed + Determines, if this field is displayed + */ + public void setIsDisplayed (boolean IsDisplayed) + { + set_Value (COLUMNNAME_IsDisplayed, Boolean.valueOf(IsDisplayed)); + } + + /** Get Displayed. + @return Determines, if this field is displayed + */ + public boolean isDisplayed () + { + Object oo = get_Value(COLUMNNAME_IsDisplayed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Query Criteria. + @param IsQueryCriteria + The column is also used as a query criteria + */ + public void setIsQueryCriteria (boolean IsQueryCriteria) + { + set_Value (COLUMNNAME_IsQueryCriteria, Boolean.valueOf(IsQueryCriteria)); + } + + /** Get Query Criteria. + @return The column is also used as a query criteria + */ + public boolean isQueryCriteria () + { + Object oo = get_Value(COLUMNNAME_IsQueryCriteria); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sql SELECT. + @param SelectClause + SQL SELECT clause + */ + public void setSelectClause (String SelectClause) + { + if (SelectClause == null) + throw new IllegalArgumentException ("SelectClause is mandatory."); + if (SelectClause.length() > 255) + { + log.warning("Length > 255 - truncated"); + SelectClause = SelectClause.substring(0, 254); + } + set_Value (COLUMNNAME_SelectClause, SelectClause); + } + + /** Get Sql SELECT. + @return SQL SELECT clause + */ + public String getSelectClause () + { + return (String)get_Value(COLUMNNAME_SelectClause); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_InfoWindow.java b/base/src/org/compiere/model/X_AD_InfoWindow.java index 6e095b6466..878f8efe6f 100644 --- a/base/src/org/compiere/model/X_AD_InfoWindow.java +++ b/base/src/org/compiere/model/X_AD_InfoWindow.java @@ -1,273 +1,305 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_InfoWindow - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_InfoWindow extends PO + +/** Generated Model for AD_InfoWindow + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_InfoWindow_ID id -@param trxName transaction -*/ -public X_AD_InfoWindow (Properties ctx, int AD_InfoWindow_ID, String trxName) -{ -super (ctx, AD_InfoWindow_ID, trxName); -/** if (AD_InfoWindow_ID == 0) -{ -setAD_InfoWindow_ID (0); -setAD_Table_ID (0); -setEntityType (null); // U -setFromClause (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_InfoWindow (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_InfoWindow */ -public static final String Table_Name="AD_InfoWindow"; - -/** AD_Table_ID=895 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_InfoWindow[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Info Window. -@param AD_InfoWindow_ID Info and search/select Window */ -public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) -{ -if (AD_InfoWindow_ID < 1) throw new IllegalArgumentException ("AD_InfoWindow_ID is mandatory."); -set_ValueNoCheck ("AD_InfoWindow_ID", Integer.valueOf(AD_InfoWindow_ID)); -} -/** Get Info Window. -@return Info and search/select Window */ -public int getAD_InfoWindow_ID() -{ -Integer ii = (Integer)get_Value("AD_InfoWindow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_InfoWindow_ID */ -public static final String COLUMNNAME_AD_InfoWindow_ID = "AD_InfoWindow_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_InfoWindow (Properties ctx, int AD_InfoWindow_ID, String trxName) + { + super (ctx, AD_InfoWindow_ID, trxName); + /** if (AD_InfoWindow_ID == 0) { setAD_InfoWindow_ID (0); + setAD_Table_ID (0); + setEntityType (null); +// U + setFromClause (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_InfoWindow (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_InfoWindow[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Info Window. + @param AD_InfoWindow_ID + Info and search/select Window + */ + public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) + { + if (AD_InfoWindow_ID < 1) + throw new IllegalArgumentException ("AD_InfoWindow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); + } + + /** Get Info Window. + @return Info and search/select Window + */ + public int getAD_InfoWindow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoWindow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Sql FROM. -@param FromClause SQL FROM clause */ -public void setFromClause (String FromClause) -{ -if (FromClause == null) throw new IllegalArgumentException ("FromClause is mandatory."); -if (FromClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -FromClause = FromClause.substring(0,1999); -} -set_Value ("FromClause", FromClause); -} -/** Get Sql FROM. -@return SQL FROM clause */ -public String getFromClause() -{ -return (String)get_Value("FromClause"); -} -/** Column name FromClause */ -public static final String COLUMNNAME_FromClause = "FromClause"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Other SQL Clause. -@param OtherClause Other SQL Clause */ -public void setOtherClause (String OtherClause) -{ -if (OtherClause != null && OtherClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OtherClause = OtherClause.substring(0,1999); -} -set_Value ("OtherClause", OtherClause); -} -/** Get Other SQL Clause. -@return Other SQL Clause */ -public String getOtherClause() -{ -return (String)get_Value("OtherClause"); -} -/** Column name OtherClause */ -public static final String COLUMNNAME_OtherClause = "OtherClause"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Sql FROM. + @param FromClause + SQL FROM clause + */ + public void setFromClause (String FromClause) + { + if (FromClause == null) + throw new IllegalArgumentException ("FromClause is mandatory."); + if (FromClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + FromClause = FromClause.substring(0, 1999); + } + set_Value (COLUMNNAME_FromClause, FromClause); + } + + /** Get Sql FROM. + @return SQL FROM clause + */ + public String getFromClause () + { + return (String)get_Value(COLUMNNAME_FromClause); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Other SQL Clause. + @param OtherClause + Other SQL Clause + */ + public void setOtherClause (String OtherClause) + { + if (OtherClause != null && OtherClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OtherClause = OtherClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OtherClause, OtherClause); + } + + /** Get Other SQL Clause. + @return Other SQL Clause + */ + public String getOtherClause () + { + return (String)get_Value(COLUMNNAME_OtherClause); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Issue.java b/base/src/org/compiere/model/X_AD_Issue.java index 75de0fe6b7..ee62c1737b 100644 --- a/base/src/org/compiere/model/X_AD_Issue.java +++ b/base/src/org/compiere/model/X_AD_Issue.java @@ -1,940 +1,1081 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Issue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Issue extends PO + +/** Generated Model for AD_Issue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Issue extends PO implements I_AD_Issue, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Issue_ID id -@param trxName transaction -*/ -public X_AD_Issue (Properties ctx, int AD_Issue_ID, String trxName) -{ -super (ctx, AD_Issue_ID, trxName); -/** if (AD_Issue_ID == 0) -{ -setAD_Issue_ID (0); -setIssueSummary (null); -setName (null); // . -setProcessed (false); // N -setReleaseNo (null); // . -setSystemStatus (null); // E -setUserName (null); // . -setVersion (null); // . -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Issue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Issue */ -public static final String Table_Name="AD_Issue"; - -/** AD_Table_ID=828 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Issue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null); - else -set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set System Issue. -@param AD_Issue_ID Automatically created or manually entered System Issue */ -public void setAD_Issue_ID (int AD_Issue_ID) -{ -if (AD_Issue_ID < 1) throw new IllegalArgumentException ("AD_Issue_ID is mandatory."); -set_ValueNoCheck ("AD_Issue_ID", Integer.valueOf(AD_Issue_ID)); -} -/** Get System Issue. -@return Automatically created or manually entered System Issue */ -public int getAD_Issue_ID() -{ -Integer ii = (Integer)get_Value("AD_Issue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Issue_ID */ -public static final String COLUMNNAME_AD_Issue_ID = "AD_Issue_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_ValueNoCheck ("A_Asset_ID", null); - else -set_ValueNoCheck ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Comments. -@param Comments Comments or additional information */ -public void setComments (String Comments) -{ -if (Comments != null && Comments.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Comments = Comments.substring(0,1999); -} -set_Value ("Comments", Comments); -} -/** Get Comments. -@return Comments or additional information */ -public String getComments() -{ -return (String)get_Value("Comments"); -} -/** Column name Comments */ -public static final String COLUMNNAME_Comments = "Comments"; -/** Set DB Address. -@param DBAddress JDBC URL of the database server */ -public void setDBAddress (String DBAddress) -{ -if (DBAddress != null && DBAddress.length() > 255) -{ -log.warning("Length > 255 - truncated"); -DBAddress = DBAddress.substring(0,254); -} -set_ValueNoCheck ("DBAddress", DBAddress); -} -/** Get DB Address. -@return JDBC URL of the database server */ -public String getDBAddress() -{ -return (String)get_Value("DBAddress"); -} -/** Column name DBAddress */ -public static final String COLUMNNAME_DBAddress = "DBAddress"; -/** Set Database. -@param DatabaseInfo Database Information */ -public void setDatabaseInfo (String DatabaseInfo) -{ -if (DatabaseInfo != null && DatabaseInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -DatabaseInfo = DatabaseInfo.substring(0,254); -} -set_ValueNoCheck ("DatabaseInfo", DatabaseInfo); -} -/** Get Database. -@return Database Information */ -public String getDatabaseInfo() -{ -return (String)get_Value("DatabaseInfo"); -} -/** Column name DatabaseInfo */ -public static final String COLUMNNAME_DatabaseInfo = "DatabaseInfo"; -/** Set Error Trace. -@param ErrorTrace System Error Trace */ -public void setErrorTrace (String ErrorTrace) -{ -if (ErrorTrace != null && ErrorTrace.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ErrorTrace = ErrorTrace.substring(0,1999); -} -set_Value ("ErrorTrace", ErrorTrace); -} -/** Get Error Trace. -@return System Error Trace */ -public String getErrorTrace() -{ -return (String)get_Value("ErrorTrace"); -} -/** Column name ErrorTrace */ -public static final String COLUMNNAME_ErrorTrace = "ErrorTrace"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Issue (Properties ctx, int AD_Issue_ID, String trxName) + { + super (ctx, AD_Issue_ID, trxName); + /** if (AD_Issue_ID == 0) { setAD_Issue_ID (0); + setIssueSummary (null); + setName (null); +// . + setProcessed (false); +// N + setReleaseNo (null); +// . + setSystemStatus (null); +// E + setUserName (null); +// . + setVersion (null); +// . +} */ + } + + /** Load Constructor */ + public X_AD_Issue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Issue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Form getI_AD_Form() throws Exception + { + 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 e; + } + return result; + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID <= 0) set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set System Issue. + @param AD_Issue_ID + Automatically created or manually entered System Issue + */ + public void setAD_Issue_ID (int AD_Issue_ID) + { + if (AD_Issue_ID < 1) + throw new IllegalArgumentException ("AD_Issue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Issue_ID, Integer.valueOf(AD_Issue_ID)); + } + + /** Get System Issue. + @return Automatically created or manually entered System Issue + */ + public int getAD_Issue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Issue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_A_Asset getI_A_Asset() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comments. + @param Comments + Comments or additional information + */ + public void setComments (String Comments) + { + if (Comments != null && Comments.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Comments = Comments.substring(0, 1999); + } + set_Value (COLUMNNAME_Comments, Comments); + } + + /** Get Comments. + @return Comments or additional information + */ + public String getComments () + { + return (String)get_Value(COLUMNNAME_Comments); + } + + /** Set DB Address. + @param DBAddress + JDBC URL of the database server + */ + public void setDBAddress (String DBAddress) + { + if (DBAddress != null && DBAddress.length() > 255) + { + log.warning("Length > 255 - truncated"); + DBAddress = DBAddress.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_DBAddress, DBAddress); + } + + /** Get DB Address. + @return JDBC URL of the database server + */ + public String getDBAddress () + { + return (String)get_Value(COLUMNNAME_DBAddress); + } + + /** Set Database. + @param DatabaseInfo + Database Information + */ + public void setDatabaseInfo (String DatabaseInfo) + { + if (DatabaseInfo != null && DatabaseInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + DatabaseInfo = DatabaseInfo.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_DatabaseInfo, DatabaseInfo); + } + + /** Get Database. + @return Database Information + */ + public String getDatabaseInfo () + { + return (String)get_Value(COLUMNNAME_DatabaseInfo); + } + + /** Set Error Trace. + @param ErrorTrace + System Error Trace + */ + public void setErrorTrace (String ErrorTrace) + { + if (ErrorTrace != null && ErrorTrace.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ErrorTrace = ErrorTrace.substring(0, 1999); + } + set_Value (COLUMNNAME_ErrorTrace, ErrorTrace); + } + + /** Get Error Trace. + @return System Error Trace + */ + public String getErrorTrace () + { + return (String)get_Value(COLUMNNAME_ErrorTrace); + } /** IsReproducible AD_Reference_ID=319 */ -public static final int ISREPRODUCIBLE_AD_Reference_ID=319; -/** No = N */ -public static final String ISREPRODUCIBLE_No = "N"; -/** Yes = Y */ +public static final int ISREPRODUCIBLE_AD_Reference_ID=319;/** No = N */ +public static final String ISREPRODUCIBLE_No = "N";/** Yes = Y */ public static final String ISREPRODUCIBLE_Yes = "Y"; -/** Set Reproducible. -@param IsReproducible Problem can re reproduced in Gardenworld */ -public void setIsReproducible (String IsReproducible) -{ -if (IsReproducible == null || IsReproducible.equals("N") || IsReproducible.equals("Y")); - else throw new IllegalArgumentException ("IsReproducible Invalid value - " + IsReproducible + " - Reference_ID=319 - N - Y"); -if (IsReproducible != null && IsReproducible.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsReproducible = IsReproducible.substring(0,0); -} -set_Value ("IsReproducible", IsReproducible); -} -/** Get Reproducible. -@return Problem can re reproduced in Gardenworld */ -public String getIsReproducible() -{ -return (String)get_Value("IsReproducible"); -} -/** Column name IsReproducible */ -public static final String COLUMNNAME_IsReproducible = "IsReproducible"; + /** Set Reproducible. + @param IsReproducible + Problem can re reproduced in Gardenworld + */ + public void setIsReproducible (String IsReproducible) + { +if (IsReproducible == null || IsReproducible.equals("N") || IsReproducible.equals("Y")); else throw new IllegalArgumentException ("IsReproducible Invalid value - " + IsReproducible + " - Reference_ID=319 - N - Y"); if (IsReproducible != null && IsReproducible.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsReproducible = IsReproducible.substring(0, 0); + } + set_Value (COLUMNNAME_IsReproducible, IsReproducible); + } + + /** Get Reproducible. + @return Problem can re reproduced in Gardenworld + */ + public String getIsReproducible () + { + return (String)get_Value(COLUMNNAME_IsReproducible); + } /** IsVanillaSystem AD_Reference_ID=319 */ -public static final int ISVANILLASYSTEM_AD_Reference_ID=319; -/** No = N */ -public static final String ISVANILLASYSTEM_No = "N"; -/** Yes = Y */ +public static final int ISVANILLASYSTEM_AD_Reference_ID=319;/** No = N */ +public static final String ISVANILLASYSTEM_No = "N";/** Yes = Y */ public static final String ISVANILLASYSTEM_Yes = "Y"; -/** Set Vanilla System. -@param IsVanillaSystem The system was NOT compiled from Source - i.e. standard distribution */ -public void setIsVanillaSystem (String IsVanillaSystem) -{ -if (IsVanillaSystem == null || IsVanillaSystem.equals("N") || IsVanillaSystem.equals("Y")); - else throw new IllegalArgumentException ("IsVanillaSystem Invalid value - " + IsVanillaSystem + " - Reference_ID=319 - N - Y"); -if (IsVanillaSystem != null && IsVanillaSystem.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsVanillaSystem = IsVanillaSystem.substring(0,0); -} -set_Value ("IsVanillaSystem", IsVanillaSystem); -} -/** Get Vanilla System. -@return The system was NOT compiled from Source - i.e. standard distribution */ -public String getIsVanillaSystem() -{ -return (String)get_Value("IsVanillaSystem"); -} -/** Column name IsVanillaSystem */ -public static final String COLUMNNAME_IsVanillaSystem = "IsVanillaSystem"; + /** Set Vanilla System. + @param IsVanillaSystem + The system was NOT compiled from Source - i.e. standard distribution + */ + public void setIsVanillaSystem (String IsVanillaSystem) + { +if (IsVanillaSystem == null || IsVanillaSystem.equals("N") || IsVanillaSystem.equals("Y")); else throw new IllegalArgumentException ("IsVanillaSystem Invalid value - " + IsVanillaSystem + " - Reference_ID=319 - N - Y"); if (IsVanillaSystem != null && IsVanillaSystem.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsVanillaSystem = IsVanillaSystem.substring(0, 0); + } + set_Value (COLUMNNAME_IsVanillaSystem, IsVanillaSystem); + } + + /** Get Vanilla System. + @return The system was NOT compiled from Source - i.e. standard distribution + */ + public String getIsVanillaSystem () + { + return (String)get_Value(COLUMNNAME_IsVanillaSystem); + } /** IssueSource AD_Reference_ID=104 */ -public static final int ISSUESOURCE_AD_Reference_ID=104; -/** Workbench = B */ -public static final String ISSUESOURCE_Workbench = "B"; -/** WorkFlow = F */ -public static final String ISSUESOURCE_WorkFlow = "F"; -/** Process = P */ -public static final String ISSUESOURCE_Process = "P"; -/** Report = R */ -public static final String ISSUESOURCE_Report = "R"; -/** Task = T */ -public static final String ISSUESOURCE_Task = "T"; -/** Window = W */ -public static final String ISSUESOURCE_Window = "W"; -/** Form = X */ +public static final int ISSUESOURCE_AD_Reference_ID=104;/** Workbench = B */ +public static final String ISSUESOURCE_Workbench = "B";/** WorkFlow = F */ +public static final String ISSUESOURCE_WorkFlow = "F";/** Process = P */ +public static final String ISSUESOURCE_Process = "P";/** Report = R */ +public static final String ISSUESOURCE_Report = "R";/** Task = T */ +public static final String ISSUESOURCE_Task = "T";/** Window = W */ +public static final String ISSUESOURCE_Window = "W";/** Form = X */ public static final String ISSUESOURCE_Form = "X"; -/** Set Source. -@param IssueSource Issue Source */ -public void setIssueSource (String IssueSource) -{ -if (IssueSource == null || IssueSource.equals("B") || IssueSource.equals("F") || IssueSource.equals("P") || IssueSource.equals("R") || IssueSource.equals("T") || IssueSource.equals("W") || IssueSource.equals("X")); - else throw new IllegalArgumentException ("IssueSource Invalid value - " + IssueSource + " - Reference_ID=104 - B - F - P - R - T - W - X"); -if (IssueSource != null && IssueSource.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IssueSource = IssueSource.substring(0,0); -} -set_Value ("IssueSource", IssueSource); -} -/** Get Source. -@return Issue Source */ -public String getIssueSource() -{ -return (String)get_Value("IssueSource"); -} -/** Column name IssueSource */ -public static final String COLUMNNAME_IssueSource = "IssueSource"; -/** Set Issue Summary. -@param IssueSummary Issue Summary */ -public void setIssueSummary (String IssueSummary) -{ -if (IssueSummary == null) throw new IllegalArgumentException ("IssueSummary is mandatory."); -if (IssueSummary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -IssueSummary = IssueSummary.substring(0,1999); -} -set_Value ("IssueSummary", IssueSummary); -} -/** Get Issue Summary. -@return Issue Summary */ -public String getIssueSummary() -{ -return (String)get_Value("IssueSummary"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getIssueSummary()); -} -/** Column name IssueSummary */ -public static final String COLUMNNAME_IssueSummary = "IssueSummary"; -/** Set Java Info. -@param JavaInfo Java Version Info */ -public void setJavaInfo (String JavaInfo) -{ -if (JavaInfo != null && JavaInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -JavaInfo = JavaInfo.substring(0,254); -} -set_ValueNoCheck ("JavaInfo", JavaInfo); -} -/** Get Java Info. -@return Java Version Info */ -public String getJavaInfo() -{ -return (String)get_Value("JavaInfo"); -} -/** Column name JavaInfo */ -public static final String COLUMNNAME_JavaInfo = "JavaInfo"; -/** Set Line. -@param LineNo Line No */ -public void setLineNo (int LineNo) -{ -set_Value ("LineNo", Integer.valueOf(LineNo)); -} -/** Get Line. -@return Line No */ -public int getLineNo() -{ -Integer ii = (Integer)get_Value("LineNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LineNo */ -public static final String COLUMNNAME_LineNo = "LineNo"; -/** Set Local Host. -@param Local_Host Local Host Info */ -public void setLocal_Host (String Local_Host) -{ -if (Local_Host != null && Local_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Local_Host = Local_Host.substring(0,119); -} -set_ValueNoCheck ("Local_Host", Local_Host); -} -/** Get Local Host. -@return Local Host Info */ -public String getLocal_Host() -{ -return (String)get_Value("Local_Host"); -} -/** Column name Local_Host */ -public static final String COLUMNNAME_Local_Host = "Local_Host"; -/** Set Logger. -@param LoggerName Logger Name */ -public void setLoggerName (String LoggerName) -{ -if (LoggerName != null && LoggerName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -LoggerName = LoggerName.substring(0,59); -} -set_Value ("LoggerName", LoggerName); -} -/** Get Logger. -@return Logger Name */ -public String getLoggerName() -{ -return (String)get_Value("LoggerName"); -} -/** Column name LoggerName */ -public static final String COLUMNNAME_LoggerName = "LoggerName"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_ValueNoCheck ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Operating System. -@param OperatingSystemInfo Operating System Info */ -public void setOperatingSystemInfo (String OperatingSystemInfo) -{ -if (OperatingSystemInfo != null && OperatingSystemInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -OperatingSystemInfo = OperatingSystemInfo.substring(0,254); -} -set_ValueNoCheck ("OperatingSystemInfo", OperatingSystemInfo); -} -/** Get Operating System. -@return Operating System Info */ -public String getOperatingSystemInfo() -{ -return (String)get_Value("OperatingSystemInfo"); -} -/** Column name OperatingSystemInfo */ -public static final String COLUMNNAME_OperatingSystemInfo = "OperatingSystemInfo"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Profile. -@param ProfileInfo Information to help profiling the system for solving support issues */ -public void setProfileInfo (String ProfileInfo) -{ -if (ProfileInfo != null && ProfileInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -ProfileInfo = ProfileInfo.substring(0,254); -} -set_ValueNoCheck ("ProfileInfo", ProfileInfo); -} -/** Get Profile. -@return Information to help profiling the system for solving support issues */ -public String getProfileInfo() -{ -return (String)get_Value("ProfileInfo"); -} -/** Column name ProfileInfo */ -public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; -/** Set Known Issue. -@param R_IssueKnown_ID Known Issue */ -public void setR_IssueKnown_ID (int R_IssueKnown_ID) -{ -if (R_IssueKnown_ID <= 0) set_Value ("R_IssueKnown_ID", null); - else -set_Value ("R_IssueKnown_ID", Integer.valueOf(R_IssueKnown_ID)); -} -/** Get Known Issue. -@return Known Issue */ -public int getR_IssueKnown_ID() -{ -Integer ii = (Integer)get_Value("R_IssueKnown_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueKnown_ID */ -public static final String COLUMNNAME_R_IssueKnown_ID = "R_IssueKnown_ID"; -/** Set Issue Project. -@param R_IssueProject_ID Implementation Projects */ -public void setR_IssueProject_ID (int R_IssueProject_ID) -{ -if (R_IssueProject_ID <= 0) set_Value ("R_IssueProject_ID", null); - else -set_Value ("R_IssueProject_ID", Integer.valueOf(R_IssueProject_ID)); -} -/** Get Issue Project. -@return Implementation Projects */ -public int getR_IssueProject_ID() -{ -Integer ii = (Integer)get_Value("R_IssueProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueProject_ID */ -public static final String COLUMNNAME_R_IssueProject_ID = "R_IssueProject_ID"; -/** Set Issue System. -@param R_IssueSystem_ID System creating the issue */ -public void setR_IssueSystem_ID (int R_IssueSystem_ID) -{ -if (R_IssueSystem_ID <= 0) set_Value ("R_IssueSystem_ID", null); - else -set_Value ("R_IssueSystem_ID", Integer.valueOf(R_IssueSystem_ID)); -} -/** Get Issue System. -@return System creating the issue */ -public int getR_IssueSystem_ID() -{ -Integer ii = (Integer)get_Value("R_IssueSystem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueSystem_ID */ -public static final String COLUMNNAME_R_IssueSystem_ID = "R_IssueSystem_ID"; -/** Set IssueUser. -@param R_IssueUser_ID User who reported issues */ -public void setR_IssueUser_ID (int R_IssueUser_ID) -{ -if (R_IssueUser_ID <= 0) set_Value ("R_IssueUser_ID", null); - else -set_Value ("R_IssueUser_ID", Integer.valueOf(R_IssueUser_ID)); -} -/** Get IssueUser. -@return User who reported issues */ -public int getR_IssueUser_ID() -{ -Integer ii = (Integer)get_Value("R_IssueUser_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueUser_ID */ -public static final String COLUMNNAME_R_IssueUser_ID = "R_IssueUser_ID"; -/** Set Request. -@param R_Request_ID Request from a Business Partner or Prospect */ -public void setR_Request_ID (int R_Request_ID) -{ -if (R_Request_ID <= 0) set_ValueNoCheck ("R_Request_ID", null); - else -set_ValueNoCheck ("R_Request_ID", Integer.valueOf(R_Request_ID)); -} -/** Get Request. -@return Request from a Business Partner or Prospect */ -public int getR_Request_ID() -{ -Integer ii = (Integer)get_Value("R_Request_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Request_ID */ -public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null); - else -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo == null) throw new IllegalArgumentException ("ReleaseNo is mandatory."); -if (ReleaseNo.length() > 4) -{ -log.warning("Length > 4 - truncated"); -ReleaseNo = ReleaseNo.substring(0,3); -} -set_ValueNoCheck ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; -/** Set Release Tag. -@param ReleaseTag Release Tag */ -public void setReleaseTag (String ReleaseTag) -{ -if (ReleaseTag != null && ReleaseTag.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ReleaseTag = ReleaseTag.substring(0,59); -} -set_Value ("ReleaseTag", ReleaseTag); -} -/** Get Release Tag. -@return Release Tag */ -public String getReleaseTag() -{ -return (String)get_Value("ReleaseTag"); -} -/** Column name ReleaseTag */ -public static final String COLUMNNAME_ReleaseTag = "ReleaseTag"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_ValueNoCheck ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_ValueNoCheck ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Request Document No. -@param RequestDocumentNo Adempiere Request Document No */ -public void setRequestDocumentNo (String RequestDocumentNo) -{ -if (RequestDocumentNo != null && RequestDocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -RequestDocumentNo = RequestDocumentNo.substring(0,29); -} -set_ValueNoCheck ("RequestDocumentNo", RequestDocumentNo); -} -/** Get Request Document No. -@return Adempiere Request Document No */ -public String getRequestDocumentNo() -{ -return (String)get_Value("RequestDocumentNo"); -} -/** Column name RequestDocumentNo */ -public static final String COLUMNNAME_RequestDocumentNo = "RequestDocumentNo"; -/** Set Response Text. -@param ResponseText Request Response Text */ -public void setResponseText (String ResponseText) -{ -if (ResponseText != null && ResponseText.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ResponseText = ResponseText.substring(0,1999); -} -set_ValueNoCheck ("ResponseText", ResponseText); -} -/** Get Response Text. -@return Request Response Text */ -public String getResponseText() -{ -return (String)get_Value("ResponseText"); -} -/** Column name ResponseText */ -public static final String COLUMNNAME_ResponseText = "ResponseText"; -/** Set Source Class. -@param SourceClassName Source Class Name */ -public void setSourceClassName (String SourceClassName) -{ -if (SourceClassName != null && SourceClassName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SourceClassName = SourceClassName.substring(0,59); -} -set_Value ("SourceClassName", SourceClassName); -} -/** Get Source Class. -@return Source Class Name */ -public String getSourceClassName() -{ -return (String)get_Value("SourceClassName"); -} -/** Column name SourceClassName */ -public static final String COLUMNNAME_SourceClassName = "SourceClassName"; -/** Set Source Method. -@param SourceMethodName Source Method Name */ -public void setSourceMethodName (String SourceMethodName) -{ -if (SourceMethodName != null && SourceMethodName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SourceMethodName = SourceMethodName.substring(0,59); -} -set_Value ("SourceMethodName", SourceMethodName); -} -/** Get Source Method. -@return Source Method Name */ -public String getSourceMethodName() -{ -return (String)get_Value("SourceMethodName"); -} -/** Column name SourceMethodName */ -public static final String COLUMNNAME_SourceMethodName = "SourceMethodName"; -/** Set Stack Trace. -@param StackTrace System Log Trace */ -public void setStackTrace (String StackTrace) -{ -if (StackTrace != null && StackTrace.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -StackTrace = StackTrace.substring(0,1999); -} -set_Value ("StackTrace", StackTrace); -} -/** Get Stack Trace. -@return System Log Trace */ -public String getStackTrace() -{ -return (String)get_Value("StackTrace"); -} -/** Column name StackTrace */ -public static final String COLUMNNAME_StackTrace = "StackTrace"; -/** Set Statistics. -@param StatisticsInfo Information to help profiling the system for solving support issues */ -public void setStatisticsInfo (String StatisticsInfo) -{ -if (StatisticsInfo != null && StatisticsInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -StatisticsInfo = StatisticsInfo.substring(0,254); -} -set_ValueNoCheck ("StatisticsInfo", StatisticsInfo); -} -/** Get Statistics. -@return Information to help profiling the system for solving support issues */ -public String getStatisticsInfo() -{ -return (String)get_Value("StatisticsInfo"); -} -/** Column name StatisticsInfo */ -public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; -/** Set Support EMail. -@param SupportEMail EMail address to send support information and updates to */ -public void setSupportEMail (String SupportEMail) -{ -if (SupportEMail != null && SupportEMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SupportEMail = SupportEMail.substring(0,59); -} -set_Value ("SupportEMail", SupportEMail); -} -/** Get Support EMail. -@return EMail address to send support information and updates to */ -public String getSupportEMail() -{ -return (String)get_Value("SupportEMail"); -} -/** Column name SupportEMail */ -public static final String COLUMNNAME_SupportEMail = "SupportEMail"; + /** Set Source. + @param IssueSource + Issue Source + */ + public void setIssueSource (String IssueSource) + { +if (IssueSource == null || IssueSource.equals("B") || IssueSource.equals("F") || IssueSource.equals("P") || IssueSource.equals("R") || IssueSource.equals("T") || IssueSource.equals("W") || IssueSource.equals("X")); else throw new IllegalArgumentException ("IssueSource Invalid value - " + IssueSource + " - Reference_ID=104 - B - F - P - R - T - W - X"); if (IssueSource != null && IssueSource.length() > 1) + { + log.warning("Length > 1 - truncated"); + IssueSource = IssueSource.substring(0, 0); + } + set_Value (COLUMNNAME_IssueSource, IssueSource); + } + + /** Get Source. + @return Issue Source + */ + public String getIssueSource () + { + return (String)get_Value(COLUMNNAME_IssueSource); + } + + /** Set Issue Summary. + @param IssueSummary + Issue Summary + */ + public void setIssueSummary (String IssueSummary) + { + if (IssueSummary == null) + throw new IllegalArgumentException ("IssueSummary is mandatory."); + if (IssueSummary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + IssueSummary = IssueSummary.substring(0, 1999); + } + set_Value (COLUMNNAME_IssueSummary, IssueSummary); + } + + /** Get Issue Summary. + @return Issue Summary + */ + public String getIssueSummary () + { + return (String)get_Value(COLUMNNAME_IssueSummary); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getIssueSummary()); + } + + /** Set Java Info. + @param JavaInfo + Java Version Info + */ + public void setJavaInfo (String JavaInfo) + { + if (JavaInfo != null && JavaInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + JavaInfo = JavaInfo.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_JavaInfo, JavaInfo); + } + + /** Get Java Info. + @return Java Version Info + */ + public String getJavaInfo () + { + return (String)get_Value(COLUMNNAME_JavaInfo); + } + + /** Set Line. + @param LineNo + Line No + */ + public void setLineNo (int LineNo) + { + set_Value (COLUMNNAME_LineNo, Integer.valueOf(LineNo)); + } + + /** Get Line. + @return Line No + */ + public int getLineNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LineNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Local Host. + @param Local_Host + Local Host Info + */ + public void setLocal_Host (String Local_Host) + { + if (Local_Host != null && Local_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Local_Host = Local_Host.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_Local_Host, Local_Host); + } + + /** Get Local Host. + @return Local Host Info + */ + public String getLocal_Host () + { + return (String)get_Value(COLUMNNAME_Local_Host); + } + + /** Set Logger. + @param LoggerName + Logger Name + */ + public void setLoggerName (String LoggerName) + { + if (LoggerName != null && LoggerName.length() > 60) + { + log.warning("Length > 60 - truncated"); + LoggerName = LoggerName.substring(0, 59); + } + set_Value (COLUMNNAME_LoggerName, LoggerName); + } + + /** Get Logger. + @return Logger Name + */ + public String getLoggerName () + { + return (String)get_Value(COLUMNNAME_LoggerName); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Operating System. + @param OperatingSystemInfo + Operating System Info + */ + public void setOperatingSystemInfo (String OperatingSystemInfo) + { + if (OperatingSystemInfo != null && OperatingSystemInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + OperatingSystemInfo = OperatingSystemInfo.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_OperatingSystemInfo, OperatingSystemInfo); + } + + /** Get Operating System. + @return Operating System Info + */ + public String getOperatingSystemInfo () + { + return (String)get_Value(COLUMNNAME_OperatingSystemInfo); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Profile. + @param ProfileInfo + Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo) + { + if (ProfileInfo != null && ProfileInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + ProfileInfo = ProfileInfo.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_ProfileInfo, ProfileInfo); + } + + /** Get Profile. + @return Information to help profiling the system for solving support issues + */ + public String getProfileInfo () + { + return (String)get_Value(COLUMNNAME_ProfileInfo); + } + + /** Set Known Issue. + @param R_IssueKnown_ID + Known Issue + */ + public void setR_IssueKnown_ID (int R_IssueKnown_ID) + { + if (R_IssueKnown_ID <= 0) set_Value (COLUMNNAME_R_IssueKnown_ID, null); + else + set_Value (COLUMNNAME_R_IssueKnown_ID, Integer.valueOf(R_IssueKnown_ID)); + } + + /** Get Known Issue. + @return Known Issue + */ + public int getR_IssueKnown_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueKnown_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Issue Project. + @param R_IssueProject_ID + Implementation Projects + */ + public void setR_IssueProject_ID (int R_IssueProject_ID) + { + if (R_IssueProject_ID <= 0) set_Value (COLUMNNAME_R_IssueProject_ID, null); + else + set_Value (COLUMNNAME_R_IssueProject_ID, Integer.valueOf(R_IssueProject_ID)); + } + + /** Get Issue Project. + @return Implementation Projects + */ + public int getR_IssueProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Issue System. + @param R_IssueSystem_ID + System creating the issue + */ + public void setR_IssueSystem_ID (int R_IssueSystem_ID) + { + if (R_IssueSystem_ID <= 0) set_Value (COLUMNNAME_R_IssueSystem_ID, null); + else + set_Value (COLUMNNAME_R_IssueSystem_ID, Integer.valueOf(R_IssueSystem_ID)); + } + + /** Get Issue System. + @return System creating the issue + */ + public int getR_IssueSystem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueSystem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set IssueUser. + @param R_IssueUser_ID + User who reported issues + */ + public void setR_IssueUser_ID (int R_IssueUser_ID) + { + if (R_IssueUser_ID <= 0) set_Value (COLUMNNAME_R_IssueUser_ID, null); + else + set_Value (COLUMNNAME_R_IssueUser_ID, Integer.valueOf(R_IssueUser_ID)); + } + + /** Get IssueUser. + @return User who reported issues + */ + public int getR_IssueUser_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueUser_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_Request_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { + if (ReleaseNo == null) + throw new IllegalArgumentException ("ReleaseNo is mandatory."); + if (ReleaseNo.length() > 4) + { + log.warning("Length > 4 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 3); + } + set_ValueNoCheck (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } + + /** Set Release Tag. + @param ReleaseTag + Release Tag + */ + public void setReleaseTag (String ReleaseTag) + { + if (ReleaseTag != null && ReleaseTag.length() > 60) + { + log.warning("Length > 60 - truncated"); + ReleaseTag = ReleaseTag.substring(0, 59); + } + set_Value (COLUMNNAME_ReleaseTag, ReleaseTag); + } + + /** Get Release Tag. + @return Release Tag + */ + public String getReleaseTag () + { + return (String)get_Value(COLUMNNAME_ReleaseTag); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Request Document No. + @param RequestDocumentNo + Adempiere Request Document No + */ + public void setRequestDocumentNo (String RequestDocumentNo) + { + if (RequestDocumentNo != null && RequestDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + RequestDocumentNo = RequestDocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_RequestDocumentNo, RequestDocumentNo); + } + + /** Get Request Document No. + @return Adempiere Request Document No + */ + public String getRequestDocumentNo () + { + return (String)get_Value(COLUMNNAME_RequestDocumentNo); + } + + /** Set Response Text. + @param ResponseText + Request Response Text + */ + public void setResponseText (String ResponseText) + { + if (ResponseText != null && ResponseText.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ResponseText = ResponseText.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_ResponseText, ResponseText); + } + + /** Get Response Text. + @return Request Response Text + */ + public String getResponseText () + { + return (String)get_Value(COLUMNNAME_ResponseText); + } + + /** Set Source Class. + @param SourceClassName + Source Class Name + */ + public void setSourceClassName (String SourceClassName) + { + if (SourceClassName != null && SourceClassName.length() > 60) + { + log.warning("Length > 60 - truncated"); + SourceClassName = SourceClassName.substring(0, 59); + } + set_Value (COLUMNNAME_SourceClassName, SourceClassName); + } + + /** Get Source Class. + @return Source Class Name + */ + public String getSourceClassName () + { + return (String)get_Value(COLUMNNAME_SourceClassName); + } + + /** Set Source Method. + @param SourceMethodName + Source Method Name + */ + public void setSourceMethodName (String SourceMethodName) + { + if (SourceMethodName != null && SourceMethodName.length() > 60) + { + log.warning("Length > 60 - truncated"); + SourceMethodName = SourceMethodName.substring(0, 59); + } + set_Value (COLUMNNAME_SourceMethodName, SourceMethodName); + } + + /** Get Source Method. + @return Source Method Name + */ + public String getSourceMethodName () + { + return (String)get_Value(COLUMNNAME_SourceMethodName); + } + + /** Set Stack Trace. + @param StackTrace + System Log Trace + */ + public void setStackTrace (String StackTrace) + { + if (StackTrace != null && StackTrace.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + StackTrace = StackTrace.substring(0, 1999); + } + set_Value (COLUMNNAME_StackTrace, StackTrace); + } + + /** Get Stack Trace. + @return System Log Trace + */ + public String getStackTrace () + { + return (String)get_Value(COLUMNNAME_StackTrace); + } + + /** Set Statistics. + @param StatisticsInfo + Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo) + { + if (StatisticsInfo != null && StatisticsInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + StatisticsInfo = StatisticsInfo.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_StatisticsInfo, StatisticsInfo); + } + + /** Get Statistics. + @return Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo () + { + return (String)get_Value(COLUMNNAME_StatisticsInfo); + } + + /** Set Support EMail. + @param SupportEMail + EMail address to send support information and updates to + */ + public void setSupportEMail (String SupportEMail) + { + if (SupportEMail != null && SupportEMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + SupportEMail = SupportEMail.substring(0, 59); + } + set_Value (COLUMNNAME_SupportEMail, SupportEMail); + } + + /** Get Support EMail. + @return EMail address to send support information and updates to + */ + public String getSupportEMail () + { + return (String)get_Value(COLUMNNAME_SupportEMail); + } /** SystemStatus AD_Reference_ID=374 */ -public static final int SYSTEMSTATUS_AD_Reference_ID=374; -/** Evaluation = E */ -public static final String SYSTEMSTATUS_Evaluation = "E"; -/** Implementation = I */ -public static final String SYSTEMSTATUS_Implementation = "I"; -/** Production = P */ +public static final int SYSTEMSTATUS_AD_Reference_ID=374;/** Evaluation = E */ +public static final String SYSTEMSTATUS_Evaluation = "E";/** Implementation = I */ +public static final String SYSTEMSTATUS_Implementation = "I";/** Production = P */ public static final String SYSTEMSTATUS_Production = "P"; -/** Set System Status. -@param SystemStatus Status of the system - Support priority depends on system status */ -public void setSystemStatus (String SystemStatus) -{ -if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); -if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); - else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); -if (SystemStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SystemStatus = SystemStatus.substring(0,0); -} -set_Value ("SystemStatus", SystemStatus); -} -/** Get System Status. -@return Status of the system - Support priority depends on system status */ -public String getSystemStatus() -{ -return (String)get_Value("SystemStatus"); -} -/** Column name SystemStatus */ -public static final String COLUMNNAME_SystemStatus = "SystemStatus"; -/** Set Registered EMail. -@param UserName Email of the responsible for the System */ -public void setUserName (String UserName) -{ -if (UserName == null) throw new IllegalArgumentException ("UserName is mandatory."); -if (UserName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -UserName = UserName.substring(0,59); -} -set_ValueNoCheck ("UserName", UserName); -} -/** Get Registered EMail. -@return Email of the responsible for the System */ -public String getUserName() -{ -return (String)get_Value("UserName"); -} -/** Column name UserName */ -public static final String COLUMNNAME_UserName = "UserName"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version == null) throw new IllegalArgumentException ("Version is mandatory."); -if (Version.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Version = Version.substring(0,39); -} -set_ValueNoCheck ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + /** Set System Status. + @param SystemStatus + Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus) + { +if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory");if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); if (SystemStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SystemStatus = SystemStatus.substring(0, 0); + } + set_Value (COLUMNNAME_SystemStatus, SystemStatus); + } + + /** Get System Status. + @return Status of the system - Support priority depends on system status + */ + public String getSystemStatus () + { + return (String)get_Value(COLUMNNAME_SystemStatus); + } + + /** Set Registered EMail. + @param UserName + Email of the responsible for the System + */ + public void setUserName (String UserName) + { + if (UserName == null) + throw new IllegalArgumentException ("UserName is mandatory."); + if (UserName.length() > 60) + { + log.warning("Length > 60 - truncated"); + UserName = UserName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_UserName, UserName); + } + + /** Get Registered EMail. + @return Email of the responsible for the System + */ + public String getUserName () + { + return (String)get_Value(COLUMNNAME_UserName); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version == null) + throw new IllegalArgumentException ("Version is mandatory."); + if (Version.length() > 40) + { + log.warning("Length > 40 - truncated"); + Version = Version.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_LabelPrinter.java b/base/src/org/compiere/model/X_AD_LabelPrinter.java index 6d21b1be0f..13f2ef67bf 100644 --- a/base/src/org/compiere/model/X_AD_LabelPrinter.java +++ b/base/src/org/compiere/model/X_AD_LabelPrinter.java @@ -1,151 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_LabelPrinter - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_LabelPrinter extends PO + +/** Generated Model for AD_LabelPrinter + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_LabelPrinter extends PO implements I_AD_LabelPrinter, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_LabelPrinter_ID id -@param trxName transaction -*/ -public X_AD_LabelPrinter (Properties ctx, int AD_LabelPrinter_ID, String trxName) -{ -super (ctx, AD_LabelPrinter_ID, trxName); -/** if (AD_LabelPrinter_ID == 0) -{ -setAD_LabelPrinter_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_LabelPrinter (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_LabelPrinter */ -public static final String Table_Name="AD_LabelPrinter"; - -/** AD_Table_ID=626 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_LabelPrinter[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Label printer. -@param AD_LabelPrinter_ID Label Printer Definition */ -public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) -{ -if (AD_LabelPrinter_ID < 1) throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); -set_ValueNoCheck ("AD_LabelPrinter_ID", Integer.valueOf(AD_LabelPrinter_ID)); -} -/** Get Label printer. -@return Label Printer Definition */ -public int getAD_LabelPrinter_ID() -{ -Integer ii = (Integer)get_Value("AD_LabelPrinter_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LabelPrinter_ID */ -public static final String COLUMNNAME_AD_LabelPrinter_ID = "AD_LabelPrinter_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_LabelPrinter (Properties ctx, int AD_LabelPrinter_ID, String trxName) + { + super (ctx, AD_LabelPrinter_ID, trxName); + /** if (AD_LabelPrinter_ID == 0) { setAD_LabelPrinter_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_LabelPrinter (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_LabelPrinter[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Label printer. + @param AD_LabelPrinter_ID + Label Printer Definition + */ + public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) + { + if (AD_LabelPrinter_ID < 1) + throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); + } + + /** Get Label printer. + @return Label Printer Definition + */ + public int getAD_LabelPrinter_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelPrinter_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java b/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java index 35ab6d3589..3baed6cf1e 100644 --- a/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java +++ b/base/src/org/compiere/model/X_AD_LabelPrinterFunction.java @@ -1,247 +1,280 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_LabelPrinterFunction - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_LabelPrinterFunction extends PO + +/** Generated Model for AD_LabelPrinterFunction + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_LabelPrinterFunction extends PO implements I_AD_LabelPrinterFunction, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_LabelPrinterFunction_ID id -@param trxName transaction -*/ -public X_AD_LabelPrinterFunction (Properties ctx, int AD_LabelPrinterFunction_ID, String trxName) -{ -super (ctx, AD_LabelPrinterFunction_ID, trxName); -/** if (AD_LabelPrinterFunction_ID == 0) -{ -setAD_LabelPrinterFunction_ID (0); -setAD_LabelPrinter_ID (0); -setIsXYPosition (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_LabelPrinterFunction (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_LabelPrinterFunction */ -public static final String Table_Name="AD_LabelPrinterFunction"; - -/** AD_Table_ID=624 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_LabelPrinterFunction[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Label printer Function. -@param AD_LabelPrinterFunction_ID Function of Label Printer */ -public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) -{ -if (AD_LabelPrinterFunction_ID < 1) throw new IllegalArgumentException ("AD_LabelPrinterFunction_ID is mandatory."); -set_ValueNoCheck ("AD_LabelPrinterFunction_ID", Integer.valueOf(AD_LabelPrinterFunction_ID)); -} -/** Get Label printer Function. -@return Function of Label Printer */ -public int getAD_LabelPrinterFunction_ID() -{ -Integer ii = (Integer)get_Value("AD_LabelPrinterFunction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LabelPrinterFunction_ID */ -public static final String COLUMNNAME_AD_LabelPrinterFunction_ID = "AD_LabelPrinterFunction_ID"; -/** Set Label printer. -@param AD_LabelPrinter_ID Label Printer Definition */ -public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) -{ -if (AD_LabelPrinter_ID < 1) throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); -set_ValueNoCheck ("AD_LabelPrinter_ID", Integer.valueOf(AD_LabelPrinter_ID)); -} -/** Get Label printer. -@return Label Printer Definition */ -public int getAD_LabelPrinter_ID() -{ -Integer ii = (Integer)get_Value("AD_LabelPrinter_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LabelPrinter_ID */ -public static final String COLUMNNAME_AD_LabelPrinter_ID = "AD_LabelPrinter_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Function Prefix. -@param FunctionPrefix Data sent before the function */ -public void setFunctionPrefix (String FunctionPrefix) -{ -if (FunctionPrefix != null && FunctionPrefix.length() > 40) -{ -log.warning("Length > 40 - truncated"); -FunctionPrefix = FunctionPrefix.substring(0,39); -} -set_Value ("FunctionPrefix", FunctionPrefix); -} -/** Get Function Prefix. -@return Data sent before the function */ -public String getFunctionPrefix() -{ -return (String)get_Value("FunctionPrefix"); -} -/** Column name FunctionPrefix */ -public static final String COLUMNNAME_FunctionPrefix = "FunctionPrefix"; -/** Set Function Suffix. -@param FunctionSuffix Data sent after the function */ -public void setFunctionSuffix (String FunctionSuffix) -{ -if (FunctionSuffix != null && FunctionSuffix.length() > 40) -{ -log.warning("Length > 40 - truncated"); -FunctionSuffix = FunctionSuffix.substring(0,39); -} -set_Value ("FunctionSuffix", FunctionSuffix); -} -/** Get Function Suffix. -@return Data sent after the function */ -public String getFunctionSuffix() -{ -return (String)get_Value("FunctionSuffix"); -} -/** Column name FunctionSuffix */ -public static final String COLUMNNAME_FunctionSuffix = "FunctionSuffix"; -/** Set XY Position. -@param IsXYPosition The Function is XY position */ -public void setIsXYPosition (boolean IsXYPosition) -{ -set_Value ("IsXYPosition", Boolean.valueOf(IsXYPosition)); -} -/** Get XY Position. -@return The Function is XY position */ -public boolean isXYPosition() -{ -Object oo = get_Value("IsXYPosition"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsXYPosition */ -public static final String COLUMNNAME_IsXYPosition = "IsXYPosition"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set XY Separator. -@param XYSeparator The separator between the X and Y function. */ -public void setXYSeparator (String XYSeparator) -{ -if (XYSeparator != null && XYSeparator.length() > 20) -{ -log.warning("Length > 20 - truncated"); -XYSeparator = XYSeparator.substring(0,19); -} -set_Value ("XYSeparator", XYSeparator); -} -/** Get XY Separator. -@return The separator between the X and Y function. */ -public String getXYSeparator() -{ -return (String)get_Value("XYSeparator"); -} -/** Column name XYSeparator */ -public static final String COLUMNNAME_XYSeparator = "XYSeparator"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_LabelPrinterFunction (Properties ctx, int AD_LabelPrinterFunction_ID, String trxName) + { + super (ctx, AD_LabelPrinterFunction_ID, trxName); + /** if (AD_LabelPrinterFunction_ID == 0) { setAD_LabelPrinterFunction_ID (0); + setAD_LabelPrinter_ID (0); + setIsXYPosition (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_LabelPrinterFunction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_LabelPrinterFunction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Label printer Function. + @param AD_LabelPrinterFunction_ID + Function of Label Printer + */ + public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) + { + if (AD_LabelPrinterFunction_ID < 1) + throw new IllegalArgumentException ("AD_LabelPrinterFunction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinterFunction_ID, Integer.valueOf(AD_LabelPrinterFunction_ID)); + } + + /** Get Label printer Function. + @return Function of Label Printer + */ + public int getAD_LabelPrinterFunction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelPrinterFunction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_LabelPrinter getI_AD_LabelPrinter() throws Exception + { + 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 e; + } + return result; + } + + /** Set Label printer. + @param AD_LabelPrinter_ID + Label Printer Definition + */ + public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) + { + if (AD_LabelPrinter_ID < 1) + throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); + } + + /** Get Label printer. + @return Label Printer Definition + */ + public int getAD_LabelPrinter_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelPrinter_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Function Prefix. + @param FunctionPrefix + Data sent before the function + */ + public void setFunctionPrefix (String FunctionPrefix) + { + if (FunctionPrefix != null && FunctionPrefix.length() > 40) + { + log.warning("Length > 40 - truncated"); + FunctionPrefix = FunctionPrefix.substring(0, 39); + } + set_Value (COLUMNNAME_FunctionPrefix, FunctionPrefix); + } + + /** Get Function Prefix. + @return Data sent before the function + */ + public String getFunctionPrefix () + { + return (String)get_Value(COLUMNNAME_FunctionPrefix); + } + + /** Set Function Suffix. + @param FunctionSuffix + Data sent after the function + */ + public void setFunctionSuffix (String FunctionSuffix) + { + if (FunctionSuffix != null && FunctionSuffix.length() > 40) + { + log.warning("Length > 40 - truncated"); + FunctionSuffix = FunctionSuffix.substring(0, 39); + } + set_Value (COLUMNNAME_FunctionSuffix, FunctionSuffix); + } + + /** Get Function Suffix. + @return Data sent after the function + */ + public String getFunctionSuffix () + { + return (String)get_Value(COLUMNNAME_FunctionSuffix); + } + + /** Set XY Position. + @param IsXYPosition + The Function is XY position + */ + public void setIsXYPosition (boolean IsXYPosition) + { + set_Value (COLUMNNAME_IsXYPosition, Boolean.valueOf(IsXYPosition)); + } + + /** Get XY Position. + @return The Function is XY position + */ + public boolean isXYPosition () + { + Object oo = get_Value(COLUMNNAME_IsXYPosition); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set XY Separator. + @param XYSeparator + The separator between the X and Y function. + */ + public void setXYSeparator (String XYSeparator) + { + if (XYSeparator != null && XYSeparator.length() > 20) + { + log.warning("Length > 20 - truncated"); + XYSeparator = XYSeparator.substring(0, 19); + } + set_Value (COLUMNNAME_XYSeparator, XYSeparator); + } + + /** Get XY Separator. + @return The separator between the X and Y function. + */ + public String getXYSeparator () + { + return (String)get_Value(COLUMNNAME_XYSeparator); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Language.java b/base/src/org/compiere/model/X_AD_Language.java index a3731c356d..6a814c2403 100644 --- a/base/src/org/compiere/model/X_AD_Language.java +++ b/base/src/org/compiere/model/X_AD_Language.java @@ -1,312 +1,336 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Language - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Language extends PO + +/** Generated Model for AD_Language + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Language extends PO implements I_AD_Language, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Language_ID id -@param trxName transaction -*/ -public X_AD_Language (Properties ctx, int AD_Language_ID, String trxName) -{ -super (ctx, AD_Language_ID, trxName); -/** if (AD_Language_ID == 0) -{ -setAD_Language (null); -setAD_Language_ID (0); // @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language -setIsBaseLanguage (false); // N -setIsDecimalPoint (false); -setIsSystemLanguage (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Language (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Language */ -public static final String Table_Name="AD_Language"; - -/** AD_Table_ID=111 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Language[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language == null) throw new IllegalArgumentException ("AD_Language is mandatory."); -if (AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_ValueNoCheck ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set Language ID. -@param AD_Language_ID Language ID */ -public void setAD_Language_ID (int AD_Language_ID) -{ -if (AD_Language_ID < 1) throw new IllegalArgumentException ("AD_Language_ID is mandatory."); -set_ValueNoCheck ("AD_Language_ID", Integer.valueOf(AD_Language_ID)); -} -/** Get Language ID. -@return Language ID */ -public int getAD_Language_ID() -{ -Integer ii = (Integer)get_Value("AD_Language_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Language_ID */ -public static final String COLUMNNAME_AD_Language_ID = "AD_Language_ID"; -/** Set ISO Country Code. -@param CountryCode Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public void setCountryCode (String CountryCode) -{ -if (CountryCode != null && CountryCode.length() > 2) -{ -log.warning("Length > 2 - truncated"); -CountryCode = CountryCode.substring(0,1); -} -set_Value ("CountryCode", CountryCode); -} -/** Get ISO Country Code. -@return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public String getCountryCode() -{ -return (String)get_Value("CountryCode"); -} -/** Column name CountryCode */ -public static final String COLUMNNAME_CountryCode = "CountryCode"; -/** Set Date Pattern. -@param DatePattern Java Date Pattern */ -public void setDatePattern (String DatePattern) -{ -if (DatePattern != null && DatePattern.length() > 20) -{ -log.warning("Length > 20 - truncated"); -DatePattern = DatePattern.substring(0,19); -} -set_Value ("DatePattern", DatePattern); -} -/** Get Date Pattern. -@return Java Date Pattern */ -public String getDatePattern() -{ -return (String)get_Value("DatePattern"); -} -/** Column name DatePattern */ -public static final String COLUMNNAME_DatePattern = "DatePattern"; -/** Set Base Language. -@param IsBaseLanguage The system information is maintained in this language */ -public void setIsBaseLanguage (boolean IsBaseLanguage) -{ -set_ValueNoCheck ("IsBaseLanguage", Boolean.valueOf(IsBaseLanguage)); -} -/** Get Base Language. -@return The system information is maintained in this language */ -public boolean isBaseLanguage() -{ -Object oo = get_Value("IsBaseLanguage"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBaseLanguage */ -public static final String COLUMNNAME_IsBaseLanguage = "IsBaseLanguage"; -/** Set Decimal Point. -@param IsDecimalPoint The number notation has a decimal point (no decimal comma) */ -public void setIsDecimalPoint (boolean IsDecimalPoint) -{ -set_Value ("IsDecimalPoint", Boolean.valueOf(IsDecimalPoint)); -} -/** Get Decimal Point. -@return The number notation has a decimal point (no decimal comma) */ -public boolean isDecimalPoint() -{ -Object oo = get_Value("IsDecimalPoint"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDecimalPoint */ -public static final String COLUMNNAME_IsDecimalPoint = "IsDecimalPoint"; -/** Set System Language. -@param IsSystemLanguage The screens, etc. are maintained in this Language */ -public void setIsSystemLanguage (boolean IsSystemLanguage) -{ -set_Value ("IsSystemLanguage", Boolean.valueOf(IsSystemLanguage)); -} -/** Get System Language. -@return The screens, etc. are maintained in this Language */ -public boolean isSystemLanguage() -{ -Object oo = get_Value("IsSystemLanguage"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSystemLanguage */ -public static final String COLUMNNAME_IsSystemLanguage = "IsSystemLanguage"; -/** Set ISO Language Code. -@param LanguageISO Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt */ -public void setLanguageISO (String LanguageISO) -{ -if (LanguageISO != null && LanguageISO.length() > 2) -{ -log.warning("Length > 2 - truncated"); -LanguageISO = LanguageISO.substring(0,1); -} -set_Value ("LanguageISO", LanguageISO); -} -/** Get ISO Language Code. -@return Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt */ -public String getLanguageISO() -{ -return (String)get_Value("LanguageISO"); -} -/** Column name LanguageISO */ -public static final String COLUMNNAME_LanguageISO = "LanguageISO"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Time Pattern. -@param TimePattern Java Time Pattern */ -public void setTimePattern (String TimePattern) -{ -if (TimePattern != null && TimePattern.length() > 20) -{ -log.warning("Length > 20 - truncated"); -TimePattern = TimePattern.substring(0,19); -} -set_Value ("TimePattern", TimePattern); -} -/** Get Time Pattern. -@return Java Time Pattern */ -public String getTimePattern() -{ -return (String)get_Value("TimePattern"); -} -/** Column name TimePattern */ -public static final String COLUMNNAME_TimePattern = "TimePattern"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Language (Properties ctx, int AD_Language_ID, String trxName) + { + super (ctx, AD_Language_ID, trxName); + /** if (AD_Language_ID == 0) { setAD_Language (null); + setAD_Language_ID (0); +// @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language + setIsBaseLanguage (false); +// N + setIsDecimalPoint (false); + setIsSystemLanguage (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Language (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Language[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language == null) + throw new IllegalArgumentException ("AD_Language is mandatory."); + if (AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_ValueNoCheck (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set Language ID. + @param AD_Language_ID Language ID */ + public void setAD_Language_ID (int AD_Language_ID) + { + if (AD_Language_ID < 1) + throw new IllegalArgumentException ("AD_Language_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Language_ID, Integer.valueOf(AD_Language_ID)); + } + + /** Get Language ID. +@return Language ID */ + public int getAD_Language_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Language_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ISO Country Code. + @param CountryCode + Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode) + { + if (CountryCode != null && CountryCode.length() > 2) + { + log.warning("Length > 2 - truncated"); + CountryCode = CountryCode.substring(0, 1); + } + set_Value (COLUMNNAME_CountryCode, CountryCode); + } + + /** Get ISO Country Code. + @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode () + { + return (String)get_Value(COLUMNNAME_CountryCode); + } + + /** Set Date Pattern. + @param DatePattern + Java Date Pattern + */ + public void setDatePattern (String DatePattern) + { + if (DatePattern != null && DatePattern.length() > 20) + { + log.warning("Length > 20 - truncated"); + DatePattern = DatePattern.substring(0, 19); + } + set_Value (COLUMNNAME_DatePattern, DatePattern); + } + + /** Get Date Pattern. + @return Java Date Pattern + */ + public String getDatePattern () + { + return (String)get_Value(COLUMNNAME_DatePattern); + } + + /** Set Base Language. + @param IsBaseLanguage + The system information is maintained in this language + */ + public void setIsBaseLanguage (boolean IsBaseLanguage) + { + set_ValueNoCheck (COLUMNNAME_IsBaseLanguage, Boolean.valueOf(IsBaseLanguage)); + } + + /** Get Base Language. + @return The system information is maintained in this language + */ + public boolean isBaseLanguage () + { + Object oo = get_Value(COLUMNNAME_IsBaseLanguage); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Decimal Point. + @param IsDecimalPoint + The number notation has a decimal point (no decimal comma) + */ + public void setIsDecimalPoint (boolean IsDecimalPoint) + { + set_Value (COLUMNNAME_IsDecimalPoint, Boolean.valueOf(IsDecimalPoint)); + } + + /** Get Decimal Point. + @return The number notation has a decimal point (no decimal comma) + */ + public boolean isDecimalPoint () + { + Object oo = get_Value(COLUMNNAME_IsDecimalPoint); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set System Language. + @param IsSystemLanguage + The screens, etc. are maintained in this Language + */ + public void setIsSystemLanguage (boolean IsSystemLanguage) + { + set_Value (COLUMNNAME_IsSystemLanguage, Boolean.valueOf(IsSystemLanguage)); + } + + /** Get System Language. + @return The screens, etc. are maintained in this Language + */ + public boolean isSystemLanguage () + { + Object oo = get_Value(COLUMNNAME_IsSystemLanguage); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set ISO Language Code. + @param LanguageISO + Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt + */ + public void setLanguageISO (String LanguageISO) + { + if (LanguageISO != null && LanguageISO.length() > 2) + { + log.warning("Length > 2 - truncated"); + LanguageISO = LanguageISO.substring(0, 1); + } + set_Value (COLUMNNAME_LanguageISO, LanguageISO); + } + + /** Get ISO Language Code. + @return Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt + */ + public String getLanguageISO () + { + return (String)get_Value(COLUMNNAME_LanguageISO); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Time Pattern. + @param TimePattern + Java Time Pattern + */ + public void setTimePattern (String TimePattern) + { + if (TimePattern != null && TimePattern.length() > 20) + { + log.warning("Length > 20 - truncated"); + TimePattern = TimePattern.substring(0, 19); + } + set_Value (COLUMNNAME_TimePattern, TimePattern); + } + + /** Get Time Pattern. + @return Java Time Pattern + */ + public String getTimePattern () + { + return (String)get_Value(COLUMNNAME_TimePattern); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_LdapAccess.java b/base/src/org/compiere/model/X_AD_LdapAccess.java index 26fbe6041a..3a587219f9 100755 --- a/base/src/org/compiere/model/X_AD_LdapAccess.java +++ b/base/src/org/compiere/model/X_AD_LdapAccess.java @@ -1,224 +1,287 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_LdapAccess - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_LdapAccess extends PO + +/** Generated Model for AD_LdapAccess + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_LdapAccess extends PO implements I_AD_LdapAccess, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_LdapAccess_ID id -@param trxName transaction -*/ -public X_AD_LdapAccess (Properties ctx, int AD_LdapAccess_ID, String trxName) -{ -super (ctx, AD_LdapAccess_ID, trxName); -/** if (AD_LdapAccess_ID == 0) -{ -setAD_LdapAccess_ID (0); -setAD_LdapProcessor_ID (0); -setIsError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_LdapAccess (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_LdapAccess */ -public static final String Table_Name="AD_LdapAccess"; - -/** AD_Table_ID=904 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_LdapAccess[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Ldap Access. -@param AD_LdapAccess_ID Ldap Access Log */ -public void setAD_LdapAccess_ID (int AD_LdapAccess_ID) -{ -if (AD_LdapAccess_ID < 1) throw new IllegalArgumentException ("AD_LdapAccess_ID is mandatory."); -set_ValueNoCheck ("AD_LdapAccess_ID", Integer.valueOf(AD_LdapAccess_ID)); -} -/** Get Ldap Access. -@return Ldap Access Log */ -public int getAD_LdapAccess_ID() -{ -Integer ii = (Integer)get_Value("AD_LdapAccess_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LdapAccess_ID */ -public static final String COLUMNNAME_AD_LdapAccess_ID = "AD_LdapAccess_ID"; -/** Set Ldap Processor. -@param AD_LdapProcessor_ID LDAP Server to authenticate and authorize external systems based on Adempiere */ -public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) -{ -if (AD_LdapProcessor_ID < 1) throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_LdapProcessor_ID", Integer.valueOf(AD_LdapProcessor_ID)); -} -/** Get Ldap Processor. -@return LDAP Server to authenticate and authorize external systems based on Adempiere */ -public int getAD_LdapProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_LdapProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LdapProcessor_ID */ -public static final String COLUMNNAME_AD_LdapProcessor_ID = "AD_LdapProcessor_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_ValueNoCheck ("AD_User_ID", null); - else -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_ValueNoCheck ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Interest Area. -@param R_InterestArea_ID Interest Area or Topic */ -public void setR_InterestArea_ID (int R_InterestArea_ID) -{ -if (R_InterestArea_ID <= 0) set_ValueNoCheck ("R_InterestArea_ID", null); - else -set_ValueNoCheck ("R_InterestArea_ID", Integer.valueOf(R_InterestArea_ID)); -} -/** Get Interest Area. -@return Interest Area or Topic */ -public int getR_InterestArea_ID() -{ -Integer ii = (Integer)get_Value("R_InterestArea_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_InterestArea_ID */ -public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_ValueNoCheck ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_LdapAccess (Properties ctx, int AD_LdapAccess_ID, String trxName) + { + super (ctx, AD_LdapAccess_ID, trxName); + /** if (AD_LdapAccess_ID == 0) { setAD_LdapAccess_ID (0); + setAD_LdapProcessor_ID (0); + setIsError (false); +} */ + } + + /** Load Constructor */ + public X_AD_LdapAccess (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_LdapAccess[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Ldap Access. + @param AD_LdapAccess_ID + Ldap Access Log + */ + public void setAD_LdapAccess_ID (int AD_LdapAccess_ID) + { + if (AD_LdapAccess_ID < 1) + throw new IllegalArgumentException ("AD_LdapAccess_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LdapAccess_ID, Integer.valueOf(AD_LdapAccess_ID)); + } + + /** Get Ldap Access. + @return Ldap Access Log + */ + public int getAD_LdapAccess_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LdapAccess_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_LdapProcessor getI_AD_LdapProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Ldap Processor. + @param AD_LdapProcessor_ID + LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) + { + if (AD_LdapProcessor_ID < 1) + throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); + } + + /** Get Ldap Processor. + @return LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public int getAD_LdapProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LdapProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_ValueNoCheck (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_R_InterestArea getI_R_InterestArea() throws Exception + { + 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 e; + } + return result; + } + + /** Set Interest Area. + @param R_InterestArea_ID + Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID) + { + if (R_InterestArea_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); + } + + /** Get Interest Area. + @return Interest Area or Topic + */ + public int getR_InterestArea_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_InterestArea_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_LdapProcessor.java b/base/src/org/compiere/model/X_AD_LdapProcessor.java index 46dec0000f..91b18f023d 100755 --- a/base/src/org/compiere/model/X_AD_LdapProcessor.java +++ b/base/src/org/compiere/model/X_AD_LdapProcessor.java @@ -1,254 +1,274 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_LdapProcessor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_LdapProcessor extends PO + +/** Generated Model for AD_LdapProcessor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_LdapProcessor extends PO implements I_AD_LdapProcessor, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_LdapProcessor_ID id -@param trxName transaction -*/ -public X_AD_LdapProcessor (Properties ctx, int AD_LdapProcessor_ID, String trxName) -{ -super (ctx, AD_LdapProcessor_ID, trxName); -/** if (AD_LdapProcessor_ID == 0) -{ -setAD_LdapProcessor_ID (0); -setKeepLogDays (0); // 7 -setLdapPort (0); // 389 -setName (null); -setSupervisor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_LdapProcessor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_LdapProcessor */ -public static final String Table_Name="AD_LdapProcessor"; - -/** AD_Table_ID=902 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_LdapProcessor[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Ldap Processor. -@param AD_LdapProcessor_ID LDAP Server to authenticate and authorize external systems based on Adempiere */ -public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) -{ -if (AD_LdapProcessor_ID < 1) throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_LdapProcessor_ID", Integer.valueOf(AD_LdapProcessor_ID)); -} -/** Get Ldap Processor. -@return LDAP Server to authenticate and authorize external systems based on Adempiere */ -public int getAD_LdapProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_LdapProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LdapProcessor_ID */ -public static final String COLUMNNAME_AD_LdapProcessor_ID = "AD_LdapProcessor_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; -/** Set Ldap Port. -@param LdapPort The port the server is listening */ -public void setLdapPort (int LdapPort) -{ -set_Value ("LdapPort", Integer.valueOf(LdapPort)); -} -/** Get Ldap Port. -@return The port the server is listening */ -public int getLdapPort() -{ -Integer ii = (Integer)get_Value("LdapPort"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LdapPort */ -public static final String COLUMNNAME_LdapPort = "LdapPort"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_LdapProcessor (Properties ctx, int AD_LdapProcessor_ID, String trxName) + { + super (ctx, AD_LdapProcessor_ID, trxName); + /** if (AD_LdapProcessor_ID == 0) { setAD_LdapProcessor_ID (0); + setKeepLogDays (0); +// 7 + setLdapPort (0); +// 389 + setName (null); + setSupervisor_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_LdapProcessor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_LdapProcessor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Ldap Processor. + @param AD_LdapProcessor_ID + LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) + { + if (AD_LdapProcessor_ID < 1) + throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); + } + + /** Get Ldap Processor. + @return LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public int getAD_LdapProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LdapProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Ldap Port. + @param LdapPort + The port the server is listening + */ + public void setLdapPort (int LdapPort) + { + set_Value (COLUMNNAME_LdapPort, Integer.valueOf(LdapPort)); + } + + /** Get Ldap Port. + @return The port the server is listening + */ + public int getLdapPort () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LdapPort); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** Supervisor_ID AD_Reference_ID=110 */ public static final int SUPERVISOR_ID_AD_Reference_ID=110; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID < 1) throw new IllegalArgumentException ("Supervisor_ID is mandatory."); -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + throw new IllegalArgumentException ("Supervisor_ID is mandatory."); + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_LdapProcessorLog.java b/base/src/org/compiere/model/X_AD_LdapProcessorLog.java index 406877d7c6..2f069b64ba 100755 --- a/base/src/org/compiere/model/X_AD_LdapProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_LdapProcessorLog.java @@ -1,234 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_LdapProcessorLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_LdapProcessorLog extends PO + +/** Generated Model for AD_LdapProcessorLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_LdapProcessorLog extends PO implements I_AD_LdapProcessorLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_LdapProcessorLog_ID id -@param trxName transaction -*/ -public X_AD_LdapProcessorLog (Properties ctx, int AD_LdapProcessorLog_ID, String trxName) -{ -super (ctx, AD_LdapProcessorLog_ID, trxName); -/** if (AD_LdapProcessorLog_ID == 0) -{ -setAD_LdapProcessorLog_ID (0); -setAD_LdapProcessor_ID (0); -setIsError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_LdapProcessorLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_LdapProcessorLog */ -public static final String Table_Name="AD_LdapProcessorLog"; - -/** AD_Table_ID=903 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_LdapProcessorLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Ldap Processor Log. -@param AD_LdapProcessorLog_ID LDAP Server Log */ -public void setAD_LdapProcessorLog_ID (int AD_LdapProcessorLog_ID) -{ -if (AD_LdapProcessorLog_ID < 1) throw new IllegalArgumentException ("AD_LdapProcessorLog_ID is mandatory."); -set_ValueNoCheck ("AD_LdapProcessorLog_ID", Integer.valueOf(AD_LdapProcessorLog_ID)); -} -/** Get Ldap Processor Log. -@return LDAP Server Log */ -public int getAD_LdapProcessorLog_ID() -{ -Integer ii = (Integer)get_Value("AD_LdapProcessorLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LdapProcessorLog_ID */ -public static final String COLUMNNAME_AD_LdapProcessorLog_ID = "AD_LdapProcessorLog_ID"; -/** Set Ldap Processor. -@param AD_LdapProcessor_ID LDAP Server to authenticate and authorize external systems based on Adempiere */ -public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) -{ -if (AD_LdapProcessor_ID < 1) throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_LdapProcessor_ID", Integer.valueOf(AD_LdapProcessor_ID)); -} -/** Get Ldap Processor. -@return LDAP Server to authenticate and authorize external systems based on Adempiere */ -public int getAD_LdapProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_LdapProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LdapProcessor_ID */ -public static final String COLUMNNAME_AD_LdapProcessor_ID = "AD_LdapProcessor_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_Value ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_LdapProcessorLog (Properties ctx, int AD_LdapProcessorLog_ID, String trxName) + { + super (ctx, AD_LdapProcessorLog_ID, trxName); + /** if (AD_LdapProcessorLog_ID == 0) { setAD_LdapProcessorLog_ID (0); + setAD_LdapProcessor_ID (0); + setIsError (false); +} */ + } + + /** Load Constructor */ + public X_AD_LdapProcessorLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_LdapProcessorLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Ldap Processor Log. + @param AD_LdapProcessorLog_ID + LDAP Server Log + */ + public void setAD_LdapProcessorLog_ID (int AD_LdapProcessorLog_ID) + { + if (AD_LdapProcessorLog_ID < 1) + throw new IllegalArgumentException ("AD_LdapProcessorLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessorLog_ID, Integer.valueOf(AD_LdapProcessorLog_ID)); + } + + /** Get Ldap Processor Log. + @return LDAP Server Log + */ + public int getAD_LdapProcessorLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LdapProcessorLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_LdapProcessor getI_AD_LdapProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Ldap Processor. + @param AD_LdapProcessor_ID + LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public void setAD_LdapProcessor_ID (int AD_LdapProcessor_ID) + { + if (AD_LdapProcessor_ID < 1) + throw new IllegalArgumentException ("AD_LdapProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_LdapProcessor_ID, Integer.valueOf(AD_LdapProcessor_ID)); + } + + /** Get Ldap Processor. + @return LDAP Server to authenticate and authorize external systems based on Adempiere + */ + public int getAD_LdapProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LdapProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_Value (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Menu.java b/base/src/org/compiere/model/X_AD_Menu.java index d606fec7f0..aa8a1d16a5 100644 --- a/base/src/org/compiere/model/X_AD_Menu.java +++ b/base/src/org/compiere/model/X_AD_Menu.java @@ -1,385 +1,511 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Menu - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Menu extends PO + +/** Generated Model for AD_Menu + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Menu_ID id -@param trxName transaction -*/ -public X_AD_Menu (Properties ctx, int AD_Menu_ID, String trxName) -{ -super (ctx, AD_Menu_ID, trxName); -/** if (AD_Menu_ID == 0) -{ -setAD_Menu_ID (0); -setEntityType (null); // U -setIsReadOnly (false); // N -setIsSOTrx (false); -setIsSummary (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Menu (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Menu */ -public static final String Table_Name="AD_Menu"; - -/** AD_Table_ID=116 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Menu[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null); - else -set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set Menu. -@param AD_Menu_ID Identifies a Menu */ -public void setAD_Menu_ID (int AD_Menu_ID) -{ -if (AD_Menu_ID < 1) throw new IllegalArgumentException ("AD_Menu_ID is mandatory."); -set_ValueNoCheck ("AD_Menu_ID", Integer.valueOf(AD_Menu_ID)); -} -/** Get Menu. -@return Identifies a Menu */ -public int getAD_Menu_ID() -{ -Integer ii = (Integer)get_Value("AD_Menu_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Menu_ID */ -public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set OS Task. -@param AD_Task_ID Operation System Task */ -public void setAD_Task_ID (int AD_Task_ID) -{ -if (AD_Task_ID <= 0) set_Value ("AD_Task_ID", null); - else -set_Value ("AD_Task_ID", Integer.valueOf(AD_Task_ID)); -} -/** Get OS Task. -@return Operation System Task */ -public int getAD_Task_ID() -{ -Integer ii = (Integer)get_Value("AD_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Task_ID */ -public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Workbench. -@param AD_Workbench_ID Collection of windows, reports */ -public void setAD_Workbench_ID (int AD_Workbench_ID) -{ -if (AD_Workbench_ID <= 0) set_Value ("AD_Workbench_ID", null); - else -set_Value ("AD_Workbench_ID", Integer.valueOf(AD_Workbench_ID)); -} -/** Get Workbench. -@return Collection of windows, reports */ -public int getAD_Workbench_ID() -{ -Integer ii = (Integer)get_Value("AD_Workbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workbench_ID */ -public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID <= 0) set_Value ("AD_Workflow_ID", null); - else -set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Menu (Properties ctx, int AD_Menu_ID, String trxName) + { + super (ctx, AD_Menu_ID, trxName); + /** if (AD_Menu_ID == 0) { setAD_Menu_ID (0); + setEntityType (null); +// U + setIsReadOnly (false); +// N + setIsSOTrx (false); + setIsSummary (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Menu (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Menu[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Form getI_AD_Form() throws Exception + { + 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 e; + } + return result; + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID <= 0) set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Menu. + @param AD_Menu_ID + Identifies a Menu + */ + public void setAD_Menu_ID (int AD_Menu_ID) + { + if (AD_Menu_ID < 1) + throw new IllegalArgumentException ("AD_Menu_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID)); + } + + /** Get Menu. + @return Identifies a Menu + */ + public int getAD_Menu_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Menu_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Task getI_AD_Task() throws Exception + { + 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 e; + } + return result; + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID <= 0) set_Value (COLUMNNAME_AD_Task_ID, null); + else + set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workbench getI_AD_Workbench() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workbench. + @param AD_Workbench_ID + Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID) + { + if (AD_Workbench_ID <= 0) set_Value (COLUMNNAME_AD_Workbench_ID, null); + else + set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + } + + /** Get Workbench. + @return Collection of windows, reports + */ + public int getAD_Workbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID <= 0) set_Value (COLUMNNAME_AD_Workflow_ID, null); + else + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Action AD_Reference_ID=104 */ -public static final int ACTION_AD_Reference_ID=104; -/** Workbench = B */ -public static final String ACTION_Workbench = "B"; -/** WorkFlow = F */ -public static final String ACTION_WorkFlow = "F"; -/** Process = P */ -public static final String ACTION_Process = "P"; -/** Report = R */ -public static final String ACTION_Report = "R"; -/** Task = T */ -public static final String ACTION_Task = "T"; -/** Window = W */ -public static final String ACTION_Window = "W"; -/** Form = X */ +public static final int ACTION_AD_Reference_ID=104;/** Workbench = B */ +public static final String ACTION_Workbench = "B";/** WorkFlow = F */ +public static final String ACTION_WorkFlow = "F";/** Process = P */ +public static final String ACTION_Process = "P";/** Report = R */ +public static final String ACTION_Report = "R";/** Task = T */ +public static final String ACTION_Task = "T";/** Window = W */ +public static final String ACTION_Window = "W";/** Form = X */ public static final String ACTION_Form = "X"; -/** Set Action. -@param Action Indicates the Action to be performed */ -public void setAction (String Action) -{ -if (Action == null || Action.equals("B") || Action.equals("F") || Action.equals("P") || Action.equals("R") || Action.equals("T") || Action.equals("W") || Action.equals("X")); - else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=104 - B - F - P - R - T - W - X"); -if (Action != null && Action.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Action = Action.substring(0,0); -} -set_Value ("Action", Action); -} -/** Get Action. -@return Indicates the Action to be performed */ -public String getAction() -{ -return (String)get_Value("Action"); -} -/** Column name Action */ -public static final String COLUMNNAME_Action = "Action"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Action. + @param Action + Indicates the Action to be performed + */ + public void setAction (String Action) + { +if (Action == null || Action.equals("B") || Action.equals("F") || Action.equals("P") || Action.equals("R") || Action.equals("T") || Action.equals("W") || Action.equals("X")); else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=104 - B - F - P - R - T - W - X"); if (Action != null && Action.length() > 1) + { + log.warning("Length > 1 - truncated"); + Action = Action.substring(0, 0); + } + set_Value (COLUMNNAME_Action, Action); + } + + /** Get Action. + @return Indicates the Action to be performed + */ + public String getAction () + { + return (String)get_Value(COLUMNNAME_Action); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Message.java b/base/src/org/compiere/model/X_AD_Message.java index d4d0278c83..8d141f2a2a 100644 --- a/base/src/org/compiere/model/X_AD_Message.java +++ b/base/src/org/compiere/model/X_AD_Message.java @@ -1,229 +1,230 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Message - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Message extends PO + +/** Generated Model for AD_Message + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Message extends PO implements I_AD_Message, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Message_ID id -@param trxName transaction -*/ -public X_AD_Message (Properties ctx, int AD_Message_ID, String trxName) -{ -super (ctx, AD_Message_ID, trxName); -/** if (AD_Message_ID == 0) -{ -setAD_Message_ID (0); -setEntityType (null); // U -setMsgText (null); -setMsgType (null); // I -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Message (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Message */ -public static final String Table_Name="AD_Message"; - -/** AD_Table_ID=109 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Message[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Message. -@param AD_Message_ID System Message */ -public void setAD_Message_ID (int AD_Message_ID) -{ -if (AD_Message_ID < 1) throw new IllegalArgumentException ("AD_Message_ID is mandatory."); -set_ValueNoCheck ("AD_Message_ID", Integer.valueOf(AD_Message_ID)); -} -/** Get Message. -@return System Message */ -public int getAD_Message_ID() -{ -Integer ii = (Integer)get_Value("AD_Message_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Message_ID */ -public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Message (Properties ctx, int AD_Message_ID, String trxName) + { + super (ctx, AD_Message_ID, trxName); + /** if (AD_Message_ID == 0) { setAD_Message_ID (0); + setEntityType (null); +// U + setMsgText (null); + setMsgType (null); +// I + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Message (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Message[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Message. + @param AD_Message_ID + System Message + */ + public void setAD_Message_ID (int AD_Message_ID) + { + if (AD_Message_ID < 1) + throw new IllegalArgumentException ("AD_Message_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + } + + /** Get Message. + @return System Message + */ + public int getAD_Message_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Message_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Message Text. -@param MsgText Textual Informational, Menu or Error Message */ -public void setMsgText (String MsgText) -{ -if (MsgText == null) throw new IllegalArgumentException ("MsgText is mandatory."); -if (MsgText.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MsgText = MsgText.substring(0,1999); -} -set_Value ("MsgText", MsgText); -} -/** Get Message Text. -@return Textual Informational, Menu or Error Message */ -public String getMsgText() -{ -return (String)get_Value("MsgText"); -} -/** Column name MsgText */ -public static final String COLUMNNAME_MsgText = "MsgText"; -/** Set Message Tip. -@param MsgTip Additional tip or help for this message */ -public void setMsgTip (String MsgTip) -{ -if (MsgTip != null && MsgTip.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MsgTip = MsgTip.substring(0,1999); -} -set_Value ("MsgTip", MsgTip); -} -/** Get Message Tip. -@return Additional tip or help for this message */ -public String getMsgTip() -{ -return (String)get_Value("MsgTip"); -} -/** Column name MsgTip */ -public static final String COLUMNNAME_MsgTip = "MsgTip"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Message Text. + @param MsgText + Textual Informational, Menu or Error Message + */ + public void setMsgText (String MsgText) + { + if (MsgText == null) + throw new IllegalArgumentException ("MsgText is mandatory."); + if (MsgText.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MsgText = MsgText.substring(0, 1999); + } + set_Value (COLUMNNAME_MsgText, MsgText); + } + + /** Get Message Text. + @return Textual Informational, Menu or Error Message + */ + public String getMsgText () + { + return (String)get_Value(COLUMNNAME_MsgText); + } + + /** Set Message Tip. + @param MsgTip + Additional tip or help for this message + */ + public void setMsgTip (String MsgTip) + { + if (MsgTip != null && MsgTip.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MsgTip = MsgTip.substring(0, 1999); + } + set_Value (COLUMNNAME_MsgTip, MsgTip); + } + + /** Get Message Tip. + @return Additional tip or help for this message + */ + public String getMsgTip () + { + return (String)get_Value(COLUMNNAME_MsgTip); + } /** MsgType AD_Reference_ID=103 */ -public static final int MSGTYPE_AD_Reference_ID=103; -/** Error = E */ -public static final String MSGTYPE_Error = "E"; -/** Information = I */ -public static final String MSGTYPE_Information = "I"; -/** Menu = M */ +public static final int MSGTYPE_AD_Reference_ID=103;/** Error = E */ +public static final String MSGTYPE_Error = "E";/** Information = I */ +public static final String MSGTYPE_Information = "I";/** Menu = M */ public static final String MSGTYPE_Menu = "M"; -/** Set Message Type. -@param MsgType Type of message (Informational, Menu or Error) */ -public void setMsgType (String MsgType) -{ -if (MsgType == null) throw new IllegalArgumentException ("MsgType is mandatory"); -if (MsgType.equals("E") || MsgType.equals("I") || MsgType.equals("M")); - else throw new IllegalArgumentException ("MsgType Invalid value - " + MsgType + " - Reference_ID=103 - E - I - M"); -if (MsgType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MsgType = MsgType.substring(0,0); -} -set_Value ("MsgType", MsgType); -} -/** Get Message Type. -@return Type of message (Informational, Menu or Error) */ -public String getMsgType() -{ -return (String)get_Value("MsgType"); -} -/** Column name MsgType */ -public static final String COLUMNNAME_MsgType = "MsgType"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Message Type. + @param MsgType + Type of message (Informational, Menu or Error) + */ + public void setMsgType (String MsgType) + { +if (MsgType == null) throw new IllegalArgumentException ("MsgType is mandatory");if (MsgType.equals("E") || MsgType.equals("I") || MsgType.equals("M")); else throw new IllegalArgumentException ("MsgType Invalid value - " + MsgType + " - Reference_ID=103 - E - I - M"); if (MsgType.length() > 1) + { + log.warning("Length > 1 - truncated"); + MsgType = MsgType.substring(0, 0); + } + set_Value (COLUMNNAME_MsgType, MsgType); + } + + /** Get Message Type. + @return Type of message (Informational, Menu or Error) + */ + public String getMsgType () + { + return (String)get_Value(COLUMNNAME_MsgType); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Modification.java b/base/src/org/compiere/model/X_AD_Modification.java index 51d943e432..3a4747cf95 100644 --- a/base/src/org/compiere/model/X_AD_Modification.java +++ b/base/src/org/compiere/model/X_AD_Modification.java @@ -1,233 +1,241 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Modification - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Modification extends PO + +/** Generated Model for AD_Modification + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Modification extends PO implements I_AD_Modification, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Modification_ID id -@param trxName transaction -*/ -public X_AD_Modification (Properties ctx, int AD_Modification_ID, String trxName) -{ -super (ctx, AD_Modification_ID, trxName); -/** if (AD_Modification_ID == 0) -{ -setAD_Modification_ID (0); -setEntityType (null); -setName (null); -setSeqNo (0); // @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Modification WHERE EntityType='@EntityType@' -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Modification (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Modification */ -public static final String Table_Name="AD_Modification"; - -/** AD_Table_ID=883 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Modification[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Modification. -@param AD_Modification_ID System Modification or Extension */ -public void setAD_Modification_ID (int AD_Modification_ID) -{ -if (AD_Modification_ID < 1) throw new IllegalArgumentException ("AD_Modification_ID is mandatory."); -set_ValueNoCheck ("AD_Modification_ID", Integer.valueOf(AD_Modification_ID)); -} -/** Get Modification. -@return System Modification or Extension */ -public int getAD_Modification_ID() -{ -Integer ii = (Integer)get_Value("AD_Modification_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Modification_ID */ -public static final String COLUMNNAME_AD_Modification_ID = "AD_Modification_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Modification (Properties ctx, int AD_Modification_ID, String trxName) + { + super (ctx, AD_Modification_ID, trxName); + /** if (AD_Modification_ID == 0) { setAD_Modification_ID (0); + setEntityType (null); + setName (null); + setSeqNo (0); +// @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Modification WHERE EntityType='@EntityType@' +} */ + } + + /** Load Constructor */ + public X_AD_Modification (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Modification[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Modification. + @param AD_Modification_ID + System Modification or Extension + */ + public void setAD_Modification_ID (int AD_Modification_ID) + { + if (AD_Modification_ID < 1) + throw new IllegalArgumentException ("AD_Modification_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Modification_ID, Integer.valueOf(AD_Modification_ID)); + } + + /** Get Modification. + @return System Modification or Extension + */ + public int getAD_Modification_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Modification_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_ValueNoCheck ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version != null && Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Version = Version.substring(0,19); -} -set_Value ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_ValueNoCheck (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version != null && Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + Version = Version.substring(0, 19); + } + set_Value (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Note.java b/base/src/org/compiere/model/X_AD_Note.java index 047a2f1922..b113dd674b 100644 --- a/base/src/org/compiere/model/X_AD_Note.java +++ b/base/src/org/compiere/model/X_AD_Note.java @@ -1,301 +1,375 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Note - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Note extends PO + +/** Generated Model for AD_Note + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Note extends PO implements I_AD_Note, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Note_ID id -@param trxName transaction -*/ -public X_AD_Note (Properties ctx, int AD_Note_ID, String trxName) -{ -super (ctx, AD_Note_ID, trxName); -/** if (AD_Note_ID == 0) -{ -setAD_Message_ID (0); -setAD_Note_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Note (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Note */ -public static final String Table_Name="AD_Note"; - -/** AD_Table_ID=389 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Note[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Note (Properties ctx, int AD_Note_ID, String trxName) + { + super (ctx, AD_Note_ID, trxName); + /** if (AD_Note_ID == 0) { setAD_Message_ID (0); + setAD_Note_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Note (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Note[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Message_ID AD_Reference_ID=102 */ public static final int AD_MESSAGE_ID_AD_Reference_ID=102; -/** Set Message. -@param AD_Message_ID System Message */ -public void setAD_Message_ID (int AD_Message_ID) -{ -if (AD_Message_ID < 1) throw new IllegalArgumentException ("AD_Message_ID is mandatory."); -set_ValueNoCheck ("AD_Message_ID", Integer.valueOf(AD_Message_ID)); -} -/** Get Message. -@return System Message */ -public int getAD_Message_ID() -{ -Integer ii = (Integer)get_Value("AD_Message_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Message_ID())); -} -/** Column name AD_Message_ID */ -public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; -/** Set Notice. -@param AD_Note_ID System Notice */ -public void setAD_Note_ID (int AD_Note_ID) -{ -if (AD_Note_ID < 1) throw new IllegalArgumentException ("AD_Note_ID is mandatory."); -set_ValueNoCheck ("AD_Note_ID", Integer.valueOf(AD_Note_ID)); -} -/** Get Notice. -@return System Notice */ -public int getAD_Note_ID() -{ -Integer ii = (Integer)get_Value("AD_Note_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Note_ID */ -public static final String COLUMNNAME_AD_Note_ID = "AD_Note_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_ValueNoCheck ("AD_Table_ID", null); - else -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Workflow Activity. -@param AD_WF_Activity_ID Workflow Activity */ -public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) -{ -if (AD_WF_Activity_ID <= 0) set_Value ("AD_WF_Activity_ID", null); - else -set_Value ("AD_WF_Activity_ID", Integer.valueOf(AD_WF_Activity_ID)); -} -/** Get Workflow Activity. -@return Workflow Activity */ -public int getAD_WF_Activity_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Activity_ID */ -public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null); - else -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + /** Set Message. + @param AD_Message_ID + System Message + */ + public void setAD_Message_ID (int AD_Message_ID) + { + if (AD_Message_ID < 1) + throw new IllegalArgumentException ("AD_Message_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + } + + /** Get Message. + @return System Message + */ + public int getAD_Message_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Message_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Message_ID())); + } + + /** Set Notice. + @param AD_Note_ID + System Notice + */ + public void setAD_Note_ID (int AD_Note_ID) + { + if (AD_Note_ID < 1) + throw new IllegalArgumentException ("AD_Note_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Note_ID, Integer.valueOf(AD_Note_ID)); + } + + /** Get Notice. + @return System Notice + */ + public int getAD_Note_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Note_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Activity getI_AD_WF_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Activity. + @param AD_WF_Activity_ID + Workflow Activity + */ + public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) + { + if (AD_WF_Activity_ID <= 0) set_Value (COLUMNNAME_AD_WF_Activity_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); + } + + /** Get Workflow Activity. + @return Workflow Activity + */ + public int getAD_WF_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Org.java b/base/src/org/compiere/model/X_AD_Org.java index 47a5f7bc93..8ef3c42024 100644 --- a/base/src/org/compiere/model/X_AD_Org.java +++ b/base/src/org/compiere/model/X_AD_Org.java @@ -1,175 +1,177 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Org - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Org extends PO + +/** Generated Model for AD_Org + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Org extends PO implements I_AD_Org, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Org_ID id -@param trxName transaction -*/ -public X_AD_Org (Properties ctx, int AD_Org_ID, String trxName) -{ -super (ctx, AD_Org_ID, trxName); -/** if (AD_Org_ID == 0) -{ -setIsSummary (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Org (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Org */ -public static final String Table_Name="AD_Org"; - -/** AD_Table_ID=155 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Org[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Org (Properties ctx, int AD_Org_ID, String trxName) + { + super (ctx, AD_Org_ID, trxName); + /** if (AD_Org_ID == 0) { setIsSummary (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Org (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Org[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_OrgInfo.java b/base/src/org/compiere/model/X_AD_OrgInfo.java index fa23b4d32a..e58dfbee21 100644 --- a/base/src/org/compiere/model/X_AD_OrgInfo.java +++ b/base/src/org/compiere/model/X_AD_OrgInfo.java @@ -1,225 +1,268 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_OrgInfo - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_OrgInfo extends PO + +/** Generated Model for AD_OrgInfo + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_OrgInfo extends PO implements I_AD_OrgInfo, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_OrgInfo_ID id -@param trxName transaction -*/ -public X_AD_OrgInfo (Properties ctx, int AD_OrgInfo_ID, String trxName) -{ -super (ctx, AD_OrgInfo_ID, trxName); -/** if (AD_OrgInfo_ID == 0) -{ -setDUNS (null); -setTaxID (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_OrgInfo (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_OrgInfo */ -public static final String Table_Name="AD_OrgInfo"; - -/** AD_Table_ID=228 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_OrgInfo[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Organization Type. -@param AD_OrgType_ID Organization Type allows you to categorize your organizations */ -public void setAD_OrgType_ID (int AD_OrgType_ID) -{ -if (AD_OrgType_ID <= 0) set_Value ("AD_OrgType_ID", null); - else -set_Value ("AD_OrgType_ID", Integer.valueOf(AD_OrgType_ID)); -} -/** Get Organization Type. -@return Organization Type allows you to categorize your organizations */ -public int getAD_OrgType_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgType_ID */ -public static final String COLUMNNAME_AD_OrgType_ID = "AD_OrgType_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set D-U-N-S. -@param DUNS Dun & Bradstreet Number */ -public void setDUNS (String DUNS) -{ -if (DUNS == null) throw new IllegalArgumentException ("DUNS is mandatory."); -if (DUNS.length() > 11) -{ -log.warning("Length > 11 - truncated"); -DUNS = DUNS.substring(0,10); -} -set_Value ("DUNS", DUNS); -} -/** Get D-U-N-S. -@return Dun & Bradstreet Number */ -public String getDUNS() -{ -return (String)get_Value("DUNS"); -} -/** Column name DUNS */ -public static final String COLUMNNAME_DUNS = "DUNS"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID <= 0) set_Value ("M_Warehouse_ID", null); - else -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_OrgInfo (Properties ctx, int AD_OrgInfo_ID, String trxName) + { + super (ctx, AD_OrgInfo_ID, trxName); + /** if (AD_OrgInfo_ID == 0) { setDUNS (null); + setTaxID (null); +} */ + } + + /** Load Constructor */ + public X_AD_OrgInfo (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_OrgInfo[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_OrgType getI_AD_OrgType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Organization Type. + @param AD_OrgType_ID + Organization Type allows you to categorize your organizations + */ + public void setAD_OrgType_ID (int AD_OrgType_ID) + { + if (AD_OrgType_ID <= 0) set_Value (COLUMNNAME_AD_OrgType_ID, null); + else + set_Value (COLUMNNAME_AD_OrgType_ID, Integer.valueOf(AD_OrgType_ID)); + } + + /** Get Organization Type. + @return Organization Type allows you to categorize your organizations + */ + public int getAD_OrgType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set D-U-N-S. + @param DUNS + Dun & Bradstreet Number + */ + public void setDUNS (String DUNS) + { + if (DUNS == null) + throw new IllegalArgumentException ("DUNS is mandatory."); + if (DUNS.length() > 11) + { + log.warning("Length > 11 - truncated"); + DUNS = DUNS.substring(0, 10); + } + set_Value (COLUMNNAME_DUNS, DUNS); + } + + /** Get D-U-N-S. + @return Dun & Bradstreet Number + */ + public String getDUNS () + { + return (String)get_Value(COLUMNNAME_DUNS); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID <= 0) set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Parent_Org_ID AD_Reference_ID=130 */ public static final int PARENT_ORG_ID_AD_Reference_ID=130; -/** Set Parent Organization. -@param Parent_Org_ID Parent (superior) Organization */ -public void setParent_Org_ID (int Parent_Org_ID) -{ -if (Parent_Org_ID <= 0) set_Value ("Parent_Org_ID", null); - else -set_Value ("Parent_Org_ID", Integer.valueOf(Parent_Org_ID)); -} -/** Get Parent Organization. -@return Parent (superior) Organization */ -public int getParent_Org_ID() -{ -Integer ii = (Integer)get_Value("Parent_Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_Org_ID */ -public static final String COLUMNNAME_Parent_Org_ID = "Parent_Org_ID"; + /** Set Parent Organization. + @param Parent_Org_ID + Parent (superior) Organization + */ + public void setParent_Org_ID (int Parent_Org_ID) + { + if (Parent_Org_ID <= 0) set_Value (COLUMNNAME_Parent_Org_ID, null); + else + set_Value (COLUMNNAME_Parent_Org_ID, Integer.valueOf(Parent_Org_ID)); + } + + /** Get Parent Organization. + @return Parent (superior) Organization + */ + public int getParent_Org_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Supervisor_ID AD_Reference_ID=286 */ public static final int SUPERVISOR_ID_AD_Reference_ID=286; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID <= 0) set_Value ("Supervisor_ID", null); - else -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -/** Set Tax ID. -@param TaxID Tax Identification */ -public void setTaxID (String TaxID) -{ -if (TaxID == null) throw new IllegalArgumentException ("TaxID is mandatory."); -if (TaxID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -TaxID = TaxID.substring(0,19); -} -set_Value ("TaxID", TaxID); -} -/** Get Tax ID. -@return Tax Identification */ -public String getTaxID() -{ -return (String)get_Value("TaxID"); -} -/** Column name TaxID */ -public static final String COLUMNNAME_TaxID = "TaxID"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax ID. + @param TaxID + Tax Identification + */ + public void setTaxID (String TaxID) + { + if (TaxID == null) + throw new IllegalArgumentException ("TaxID is mandatory."); + if (TaxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + TaxID = TaxID.substring(0, 19); + } + set_Value (COLUMNNAME_TaxID, TaxID); + } + + /** Get Tax ID. + @return Tax Identification + */ + public String getTaxID () + { + return (String)get_Value(COLUMNNAME_TaxID); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_OrgType.java b/base/src/org/compiere/model/X_AD_OrgType.java index 970118f531..0a09f76cff 100644 --- a/base/src/org/compiere/model/X_AD_OrgType.java +++ b/base/src/org/compiere/model/X_AD_OrgType.java @@ -1,169 +1,188 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_OrgType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_OrgType extends PO + +/** Generated Model for AD_OrgType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_OrgType extends PO implements I_AD_OrgType, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_OrgType_ID id -@param trxName transaction -*/ -public X_AD_OrgType (Properties ctx, int AD_OrgType_ID, String trxName) -{ -super (ctx, AD_OrgType_ID, trxName); -/** if (AD_OrgType_ID == 0) -{ -setAD_OrgType_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_OrgType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_OrgType */ -public static final String Table_Name="AD_OrgType"; - -/** AD_Table_ID=689 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_OrgType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Organization Type. -@param AD_OrgType_ID Organization Type allows you to categorize your organizations */ -public void setAD_OrgType_ID (int AD_OrgType_ID) -{ -if (AD_OrgType_ID < 1) throw new IllegalArgumentException ("AD_OrgType_ID is mandatory."); -set_ValueNoCheck ("AD_OrgType_ID", Integer.valueOf(AD_OrgType_ID)); -} -/** Get Organization Type. -@return Organization Type allows you to categorize your organizations */ -public int getAD_OrgType_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgType_ID */ -public static final String COLUMNNAME_AD_OrgType_ID = "AD_OrgType_ID"; -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); - else -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_OrgType (Properties ctx, int AD_OrgType_ID, String trxName) + { + super (ctx, AD_OrgType_ID, trxName); + /** if (AD_OrgType_ID == 0) { setAD_OrgType_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_OrgType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_OrgType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Organization Type. + @param AD_OrgType_ID + Organization Type allows you to categorize your organizations + */ + public void setAD_OrgType_ID (int AD_OrgType_ID) + { + if (AD_OrgType_ID < 1) + throw new IllegalArgumentException ("AD_OrgType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_OrgType_ID, Integer.valueOf(AD_OrgType_ID)); + } + + /** Get Organization Type. + @return Organization Type allows you to categorize your organizations + */ + public int getAD_OrgType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PInstance.java b/base/src/org/compiere/model/X_AD_PInstance.java index 120535135d..0855ce3c9d 100644 --- a/base/src/org/compiere/model/X_AD_PInstance.java +++ b/base/src/org/compiere/model/X_AD_PInstance.java @@ -1,221 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PInstance - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PInstance extends PO + +/** Generated Model for AD_PInstance + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PInstance extends PO implements I_AD_PInstance, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PInstance_ID id -@param trxName transaction -*/ -public X_AD_PInstance (Properties ctx, int AD_PInstance_ID, String trxName) -{ -super (ctx, AD_PInstance_ID, trxName); -/** if (AD_PInstance_ID == 0) -{ -setAD_PInstance_ID (0); -setAD_Process_ID (0); -setIsProcessing (false); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PInstance (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PInstance */ -public static final String Table_Name="AD_PInstance"; - -/** AD_Table_ID=282 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PInstance[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_PInstance_ID())); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID < 1) throw new IllegalArgumentException ("AD_Process_ID is mandatory."); -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Error Msg. -@param ErrorMsg Error Msg */ -public void setErrorMsg (String ErrorMsg) -{ -if (ErrorMsg != null && ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ErrorMsg = ErrorMsg.substring(0,1999); -} -set_Value ("ErrorMsg", ErrorMsg); -} -/** Get Error Msg. -@return Error Msg */ -public String getErrorMsg() -{ -return (String)get_Value("ErrorMsg"); -} -/** Column name ErrorMsg */ -public static final String COLUMNNAME_ErrorMsg = "ErrorMsg"; -/** Set Processing. -@param IsProcessing Processing */ -public void setIsProcessing (boolean IsProcessing) -{ -set_Value ("IsProcessing", Boolean.valueOf(IsProcessing)); -} -/** Get Processing. -@return Processing */ -public boolean isProcessing() -{ -Object oo = get_Value("IsProcessing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsProcessing */ -public static final String COLUMNNAME_IsProcessing = "IsProcessing"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Result. -@param Result Result of the action taken */ -public void setResult (int Result) -{ -set_Value ("Result", Integer.valueOf(Result)); -} -/** Get Result. -@return Result of the action taken */ -public int getResult() -{ -Integer ii = (Integer)get_Value("Result"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Result */ -public static final String COLUMNNAME_Result = "Result"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PInstance (Properties ctx, int AD_PInstance_ID, String trxName) + { + super (ctx, AD_PInstance_ID, trxName); + /** if (AD_PInstance_ID == 0) { setAD_PInstance_ID (0); + setAD_Process_ID (0); + setIsProcessing (false); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_PInstance (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PInstance[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_PInstance_ID())); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + throw new IllegalArgumentException ("AD_Process_ID is mandatory."); + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Error Msg. + @param ErrorMsg Error Msg */ + public void setErrorMsg (String ErrorMsg) + { + if (ErrorMsg != null && ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ErrorMsg = ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_ErrorMsg, ErrorMsg); + } + + /** Get Error Msg. +@return Error Msg */ + public String getErrorMsg () + { + return (String)get_Value(COLUMNNAME_ErrorMsg); + } + + /** Set Processing. + @param IsProcessing Processing */ + public void setIsProcessing (boolean IsProcessing) + { + set_Value (COLUMNNAME_IsProcessing, Boolean.valueOf(IsProcessing)); + } + + /** Get Processing. +@return Processing */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_IsProcessing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Result. + @param Result + Result of the action taken + */ + public void setResult (int Result) + { + set_Value (COLUMNNAME_Result, Integer.valueOf(Result)); + } + + /** Get Result. + @return Result of the action taken + */ + public int getResult () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Result); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 b395bff7a3..0f4084823d 100644 --- a/base/src/org/compiere/model/X_AD_PInstance_Log.java +++ b/base/src/org/compiere/model/X_AD_PInstance_Log.java @@ -1,190 +1,206 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PInstance_Log - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PInstance_Log extends PO + +/** Generated Model for AD_PInstance_Log + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PInstance_Log extends PO implements I_AD_PInstance_Log, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PInstance_Log_ID id -@param trxName transaction -*/ -public X_AD_PInstance_Log (Properties ctx, int AD_PInstance_Log_ID, String trxName) -{ -super (ctx, AD_PInstance_Log_ID, trxName); -/** if (AD_PInstance_Log_ID == 0) -{ -setAD_PInstance_ID (0); -setLog_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PInstance_Log (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PInstance_Log */ -public static final String Table_Name="AD_PInstance_Log"; - -/** AD_Table_ID=578 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PInstance_Log[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Log. -@param Log_ID Log */ -public void setLog_ID (int Log_ID) -{ -if (Log_ID < 1) throw new IllegalArgumentException ("Log_ID is mandatory."); -set_ValueNoCheck ("Log_ID", Integer.valueOf(Log_ID)); -} -/** Get Log. -@return Log */ -public int getLog_ID() -{ -Integer ii = (Integer)get_Value("Log_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Log_ID */ -public static final String COLUMNNAME_Log_ID = "Log_ID"; -/** Set Process Date. -@param P_Date Process Parameter */ -public void setP_Date (Timestamp P_Date) -{ -set_ValueNoCheck ("P_Date", P_Date); -} -/** Get Process Date. -@return Process Parameter */ -public Timestamp getP_Date() -{ -return (Timestamp)get_Value("P_Date"); -} -/** Column name P_Date */ -public static final String COLUMNNAME_P_Date = "P_Date"; -/** Set Process ID. -@param P_ID Process ID */ -public void setP_ID (int P_ID) -{ -if (P_ID <= 0) set_ValueNoCheck ("P_ID", null); - else -set_ValueNoCheck ("P_ID", Integer.valueOf(P_ID)); -} -/** Get Process ID. -@return Process ID */ -public int getP_ID() -{ -Integer ii = (Integer)get_Value("P_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_ID */ -public static final String COLUMNNAME_P_ID = "P_ID"; -/** Set Process Message. -@param P_Msg Process Message */ -public void setP_Msg (String P_Msg) -{ -if (P_Msg != null && P_Msg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -P_Msg = P_Msg.substring(0,1999); -} -set_ValueNoCheck ("P_Msg", P_Msg); -} -/** Get Process Message. -@return Process Message */ -public String getP_Msg() -{ -return (String)get_Value("P_Msg"); -} -/** Column name P_Msg */ -public static final String COLUMNNAME_P_Msg = "P_Msg"; -/** Set Process Number. -@param P_Number Process Parameter */ -public void setP_Number (BigDecimal P_Number) -{ -set_ValueNoCheck ("P_Number", P_Number); -} -/** Get Process Number. -@return Process Parameter */ -public BigDecimal getP_Number() -{ -BigDecimal bd = (BigDecimal)get_Value("P_Number"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name P_Number */ -public static final String COLUMNNAME_P_Number = "P_Number"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PInstance_Log (Properties ctx, int AD_PInstance_Log_ID, String trxName) + { + super (ctx, AD_PInstance_Log_ID, trxName); + /** if (AD_PInstance_Log_ID == 0) { setAD_PInstance_ID (0); + setLog_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_PInstance_Log (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PInstance_Log[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Log. + @param Log_ID Log */ + public void setLog_ID (int Log_ID) + { + if (Log_ID < 1) + throw new IllegalArgumentException ("Log_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Log_ID, Integer.valueOf(Log_ID)); + } + + /** Get Log. +@return Log */ + public int getLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Log_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Date. + @param P_Date + Process Parameter + */ + public void setP_Date (Timestamp P_Date) + { + set_ValueNoCheck (COLUMNNAME_P_Date, P_Date); + } + + /** Get Process Date. + @return Process Parameter + */ + public Timestamp getP_Date () + { + return (Timestamp)get_Value(COLUMNNAME_P_Date); + } + + /** Set Process ID. + @param P_ID Process ID */ + public void setP_ID (int P_ID) + { + if (P_ID <= 0) set_ValueNoCheck (COLUMNNAME_P_ID, null); + else + set_ValueNoCheck (COLUMNNAME_P_ID, Integer.valueOf(P_ID)); + } + + /** Get Process ID. +@return Process ID */ + public int getP_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Message. + @param P_Msg Process Message */ + public void setP_Msg (String P_Msg) + { + if (P_Msg != null && P_Msg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + P_Msg = P_Msg.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_P_Msg, P_Msg); + } + + /** Get Process Message. +@return Process Message */ + public String getP_Msg () + { + return (String)get_Value(COLUMNNAME_P_Msg); + } + + /** Set Process Number. + @param P_Number + Process Parameter + */ + public void setP_Number (BigDecimal P_Number) + { + set_ValueNoCheck (COLUMNNAME_P_Number, P_Number); + } + + /** Get Process Number. + @return Process Parameter + */ + public BigDecimal getP_Number () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_P_Number); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 ab21ba5e08..e1303809a6 100644 --- a/base/src/org/compiere/model/X_AD_PInstance_Para.java +++ b/base/src/org/compiere/model/X_AD_PInstance_Para.java @@ -1,285 +1,318 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PInstance_Para - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PInstance_Para extends PO + +/** Generated Model for AD_PInstance_Para + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PInstance_Para extends PO implements I_AD_PInstance_Para, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PInstance_Para_ID id -@param trxName transaction -*/ -public X_AD_PInstance_Para (Properties ctx, int AD_PInstance_Para_ID, String trxName) -{ -super (ctx, AD_PInstance_Para_ID, trxName); -/** if (AD_PInstance_Para_ID == 0) -{ -setAD_PInstance_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PInstance_Para (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PInstance_Para */ -public static final String Table_Name="AD_PInstance_Para"; - -/** AD_Table_ID=283 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PInstance_Para[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Info. -@param Info Information */ -public void setInfo (String Info) -{ -if (Info != null && Info.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Info = Info.substring(0,59); -} -set_Value ("Info", Info); -} -/** Get Info. -@return Information */ -public String getInfo() -{ -return (String)get_Value("Info"); -} -/** Column name Info */ -public static final String COLUMNNAME_Info = "Info"; -/** Set Info To. -@param Info_To Info To */ -public void setInfo_To (String Info_To) -{ -if (Info_To != null && Info_To.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Info_To = Info_To.substring(0,59); -} -set_Value ("Info_To", Info_To); -} -/** Get Info To. -@return Info To */ -public String getInfo_To() -{ -return (String)get_Value("Info_To"); -} -/** Column name Info_To */ -public static final String COLUMNNAME_Info_To = "Info_To"; -/** Set Process Date. -@param P_Date Process Parameter */ -public void setP_Date (Timestamp P_Date) -{ -set_Value ("P_Date", P_Date); -} -/** Get Process Date. -@return Process Parameter */ -public Timestamp getP_Date() -{ -return (Timestamp)get_Value("P_Date"); -} -/** Column name P_Date */ -public static final String COLUMNNAME_P_Date = "P_Date"; -/** Set Process Date To. -@param P_Date_To Process Parameter */ -public void setP_Date_To (Timestamp P_Date_To) -{ -set_Value ("P_Date_To", P_Date_To); -} -/** Get Process Date To. -@return Process Parameter */ -public Timestamp getP_Date_To() -{ -return (Timestamp)get_Value("P_Date_To"); -} -/** Column name P_Date_To */ -public static final String COLUMNNAME_P_Date_To = "P_Date_To"; -/** Set Process Number. -@param P_Number Process Parameter */ -public void setP_Number (BigDecimal P_Number) -{ -set_Value ("P_Number", P_Number); -} -/** Get Process Number. -@return Process Parameter */ -public BigDecimal getP_Number() -{ -BigDecimal bd = (BigDecimal)get_Value("P_Number"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name P_Number */ -public static final String COLUMNNAME_P_Number = "P_Number"; -/** Set Process Number To. -@param P_Number_To Process Parameter */ -public void setP_Number_To (BigDecimal P_Number_To) -{ -set_Value ("P_Number_To", P_Number_To); -} -/** Get Process Number To. -@return Process Parameter */ -public BigDecimal getP_Number_To() -{ -BigDecimal bd = (BigDecimal)get_Value("P_Number_To"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name P_Number_To */ -public static final String COLUMNNAME_P_Number_To = "P_Number_To"; -/** Set Process String. -@param P_String Process Parameter */ -public void setP_String (String P_String) -{ -if (P_String != null && P_String.length() > 60) -{ -log.warning("Length > 60 - truncated"); -P_String = P_String.substring(0,59); -} -set_Value ("P_String", P_String); -} -/** Get Process String. -@return Process Parameter */ -public String getP_String() -{ -return (String)get_Value("P_String"); -} -/** Column name P_String */ -public static final String COLUMNNAME_P_String = "P_String"; -/** Set Process String To. -@param P_String_To Process Parameter */ -public void setP_String_To (String P_String_To) -{ -if (P_String_To != null && P_String_To.length() > 60) -{ -log.warning("Length > 60 - truncated"); -P_String_To = P_String_To.substring(0,59); -} -set_Value ("P_String_To", P_String_To); -} -/** Get Process String To. -@return Process Parameter */ -public String getP_String_To() -{ -return (String)get_Value("P_String_To"); -} -/** Column name P_String_To */ -public static final String COLUMNNAME_P_String_To = "P_String_To"; -/** Set Parameter Name. -@param ParameterName Parameter Name */ -public void setParameterName (String ParameterName) -{ -if (ParameterName != null && ParameterName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ParameterName = ParameterName.substring(0,59); -} -set_Value ("ParameterName", ParameterName); -} -/** Get Parameter Name. -@return Parameter Name */ -public String getParameterName() -{ -return (String)get_Value("ParameterName"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getParameterName()); -} -/** Column name ParameterName */ -public static final String COLUMNNAME_ParameterName = "ParameterName"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_ValueNoCheck ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PInstance_Para (Properties ctx, int AD_PInstance_Para_ID, String trxName) + { + super (ctx, AD_PInstance_Para_ID, trxName); + /** if (AD_PInstance_Para_ID == 0) { setAD_PInstance_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_PInstance_Para (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PInstance_Para[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Info. + @param Info + Information + */ + public void setInfo (String Info) + { + if (Info != null && Info.length() > 60) + { + log.warning("Length > 60 - truncated"); + Info = Info.substring(0, 59); + } + set_Value (COLUMNNAME_Info, Info); + } + + /** Get Info. + @return Information + */ + public String getInfo () + { + return (String)get_Value(COLUMNNAME_Info); + } + + /** Set Info To. + @param Info_To Info To */ + public void setInfo_To (String Info_To) + { + if (Info_To != null && Info_To.length() > 60) + { + log.warning("Length > 60 - truncated"); + Info_To = Info_To.substring(0, 59); + } + set_Value (COLUMNNAME_Info_To, Info_To); + } + + /** Get Info To. +@return Info To */ + public String getInfo_To () + { + return (String)get_Value(COLUMNNAME_Info_To); + } + + /** Set Process Date. + @param P_Date + Process Parameter + */ + public void setP_Date (Timestamp P_Date) + { + set_Value (COLUMNNAME_P_Date, P_Date); + } + + /** Get Process Date. + @return Process Parameter + */ + public Timestamp getP_Date () + { + return (Timestamp)get_Value(COLUMNNAME_P_Date); + } + + /** Set Process Date To. + @param P_Date_To + Process Parameter + */ + public void setP_Date_To (Timestamp P_Date_To) + { + set_Value (COLUMNNAME_P_Date_To, P_Date_To); + } + + /** Get Process Date To. + @return Process Parameter + */ + public Timestamp getP_Date_To () + { + return (Timestamp)get_Value(COLUMNNAME_P_Date_To); + } + + /** Set Process Number. + @param P_Number + Process Parameter + */ + public void setP_Number (BigDecimal P_Number) + { + set_Value (COLUMNNAME_P_Number, P_Number); + } + + /** Get Process Number. + @return Process Parameter + */ + public BigDecimal getP_Number () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_P_Number); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Process Number To. + @param P_Number_To + Process Parameter + */ + public void setP_Number_To (BigDecimal P_Number_To) + { + set_Value (COLUMNNAME_P_Number_To, P_Number_To); + } + + /** Get Process Number To. + @return Process Parameter + */ + public BigDecimal getP_Number_To () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_P_Number_To); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Process String. + @param P_String + Process Parameter + */ + public void setP_String (String P_String) + { + if (P_String != null && P_String.length() > 60) + { + log.warning("Length > 60 - truncated"); + P_String = P_String.substring(0, 59); + } + set_Value (COLUMNNAME_P_String, P_String); + } + + /** Get Process String. + @return Process Parameter + */ + public String getP_String () + { + return (String)get_Value(COLUMNNAME_P_String); + } + + /** Set Process String To. + @param P_String_To + Process Parameter + */ + public void setP_String_To (String P_String_To) + { + if (P_String_To != null && P_String_To.length() > 60) + { + log.warning("Length > 60 - truncated"); + P_String_To = P_String_To.substring(0, 59); + } + set_Value (COLUMNNAME_P_String_To, P_String_To); + } + + /** Get Process String To. + @return Process Parameter + */ + public String getP_String_To () + { + return (String)get_Value(COLUMNNAME_P_String_To); + } + + /** Set Parameter Name. + @param ParameterName Parameter Name */ + public void setParameterName (String ParameterName) + { + if (ParameterName != null && ParameterName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ParameterName = ParameterName.substring(0, 59); + } + set_Value (COLUMNNAME_ParameterName, ParameterName); + } + + /** Get Parameter Name. +@return Parameter Name */ + public String getParameterName () + { + return (String)get_Value(COLUMNNAME_ParameterName); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getParameterName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_ValueNoCheck (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Package_Exp.java b/base/src/org/compiere/model/X_AD_Package_Exp.java index 017374765f..b5124cd942 100644 --- a/base/src/org/compiere/model/X_AD_Package_Exp.java +++ b/base/src/org/compiere/model/X_AD_Package_Exp.java @@ -1,392 +1,394 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Exp - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Exp extends PO + +/** Generated Model for AD_Package_Exp + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Exp extends PO implements I_AD_Package_Exp, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Exp_ID id -@param trxName transaction -*/ -public X_AD_Package_Exp (Properties ctx, int AD_Package_Exp_ID, String trxName) -{ -super (ctx, AD_Package_Exp_ID, trxName); -/** if (AD_Package_Exp_ID == 0) -{ -setAD_Package_Exp_ID (0); -setDescription (null); -setEMail (null); -setFile_Directory (null); -setInstructions (null); -setName (null); -setPK_Version (null); -setProcessing (false); -setReleaseNo (null); -setUserName (null); -setVersion (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Exp (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Exp */ -public static final String Table_Name="AD_Package_Exp"; - -/** AD_Table_ID=50005 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Exp[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set AD_Package_Exp_ID. -@param AD_Package_Exp_ID AD_Package_Exp_ID */ -public void setAD_Package_Exp_ID (int AD_Package_Exp_ID) -{ -if (AD_Package_Exp_ID < 1) throw new IllegalArgumentException ("AD_Package_Exp_ID is mandatory."); -set_Value ("AD_Package_Exp_ID", Integer.valueOf(AD_Package_Exp_ID)); -} -/** Get AD_Package_Exp_ID. -@return AD_Package_Exp_ID */ -public int getAD_Package_Exp_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Exp_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_ID())); -} -/** Column name AD_Package_Exp_ID */ -public static final String COLUMNNAME_AD_Package_Exp_ID = "AD_Package_Exp_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Exp (Properties ctx, int AD_Package_Exp_ID, String trxName) + { + super (ctx, AD_Package_Exp_ID, trxName); + /** if (AD_Package_Exp_ID == 0) { setAD_Package_Exp_ID (0); + setDescription (null); + setEMail (null); + setFile_Directory (null); + setInstructions (null); + setName (null); + setPK_Version (null); + setProcessing (false); + setReleaseNo (null); + setUserName (null); + setVersion (null); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Exp (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Exp[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set AD_Package_Exp_ID. + @param AD_Package_Exp_ID AD_Package_Exp_ID */ + public void setAD_Package_Exp_ID (int AD_Package_Exp_ID) + { + if (AD_Package_Exp_ID < 1) + throw new IllegalArgumentException ("AD_Package_Exp_ID is mandatory."); + set_Value (COLUMNNAME_AD_Package_Exp_ID, Integer.valueOf(AD_Package_Exp_ID)); + } + + /** Get AD_Package_Exp_ID. +@return AD_Package_Exp_ID */ + public int getAD_Package_Exp_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Exp_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_ID())); + } /** AD_Package_Type AD_Reference_ID=50001 */ -public static final int AD_PACKAGE_TYPE_AD_Reference_ID=50001; -/** Local Transfer = L */ -public static final String AD_PACKAGE_TYPE_LocalTransfer = "L"; -/** Remote Transfer = R */ -public static final String AD_PACKAGE_TYPE_RemoteTransfer = "R"; -/** XML File = X */ +public static final int AD_PACKAGE_TYPE_AD_Reference_ID=50001;/** Local Transfer = L */ +public static final String AD_PACKAGE_TYPE_LocalTransfer = "L";/** Remote Transfer = R */ +public static final String AD_PACKAGE_TYPE_RemoteTransfer = "R";/** XML File = X */ public static final String AD_PACKAGE_TYPE_XMLFile = "X"; -/** Set AD_Package_Type. -@param AD_Package_Type AD_Package_Type */ -public void setAD_Package_Type (String AD_Package_Type) -{ -if (AD_Package_Type == null || AD_Package_Type.equals("L") || AD_Package_Type.equals("R") || AD_Package_Type.equals("X")); - else throw new IllegalArgumentException ("AD_Package_Type Invalid value - " + AD_Package_Type + " - Reference_ID=50001 - L - R - X"); -if (AD_Package_Type != null && AD_Package_Type.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AD_Package_Type = AD_Package_Type.substring(0,0); -} -set_Value ("AD_Package_Type", AD_Package_Type); -} -/** Get AD_Package_Type. -@return AD_Package_Type */ -public String getAD_Package_Type() -{ -return (String)get_Value("AD_Package_Type"); -} -/** Column name AD_Package_Type */ -public static final String COLUMNNAME_AD_Package_Type = "AD_Package_Type"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 1000) -{ -log.warning("Length > 1000 - truncated"); -Description = Description.substring(0,999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail == null) throw new IllegalArgumentException ("EMail is mandatory."); -if (EMail.length() > 30) -{ -log.warning("Length > 30 - truncated"); -EMail = EMail.substring(0,29); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set File_Directory. -@param File_Directory File_Directory */ -public void setFile_Directory (String File_Directory) -{ -if (File_Directory == null) throw new IllegalArgumentException ("File_Directory is mandatory."); -if (File_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -File_Directory = File_Directory.substring(0,254); -} -set_Value ("File_Directory", File_Directory); -} -/** Get File_Directory. -@return File_Directory */ -public String getFile_Directory() -{ -return (String)get_Value("File_Directory"); -} -/** Column name File_Directory */ -public static final String COLUMNNAME_File_Directory = "File_Directory"; -/** Set Instructions. -@param Instructions Instructions */ -public void setInstructions (String Instructions) -{ -if (Instructions == null) throw new IllegalArgumentException ("Instructions is mandatory."); -if (Instructions.length() > 1000) -{ -log.warning("Length > 1000 - truncated"); -Instructions = Instructions.substring(0,999); -} -set_Value ("Instructions", Instructions); -} -/** Get Instructions. -@return Instructions */ -public String getInstructions() -{ -return (String)get_Value("Instructions"); -} -/** Column name Instructions */ -public static final String COLUMNNAME_Instructions = "Instructions"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set PK_Version. -@param PK_Version PK_Version */ -public void setPK_Version (String PK_Version) -{ -if (PK_Version == null) throw new IllegalArgumentException ("PK_Version is mandatory."); -if (PK_Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -PK_Version = PK_Version.substring(0,19); -} -set_Value ("PK_Version", PK_Version); -} -/** Get PK_Version. -@return PK_Version */ -public String getPK_Version() -{ -return (String)get_Value("PK_Version"); -} -/** Column name PK_Version */ -public static final String COLUMNNAME_PK_Version = "PK_Version"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set AD_Package_Type. + @param AD_Package_Type AD_Package_Type */ + public void setAD_Package_Type (String AD_Package_Type) + { +if (AD_Package_Type == null || AD_Package_Type.equals("L") || AD_Package_Type.equals("R") || AD_Package_Type.equals("X")); else throw new IllegalArgumentException ("AD_Package_Type Invalid value - " + AD_Package_Type + " - Reference_ID=50001 - L - R - X"); if (AD_Package_Type != null && AD_Package_Type.length() > 1) + { + log.warning("Length > 1 - truncated"); + AD_Package_Type = AD_Package_Type.substring(0, 0); + } + set_Value (COLUMNNAME_AD_Package_Type, AD_Package_Type); + } + + /** Get AD_Package_Type. +@return AD_Package_Type */ + public String getAD_Package_Type () + { + return (String)get_Value(COLUMNNAME_AD_Package_Type); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 1000) + { + log.warning("Length > 1000 - truncated"); + Description = Description.substring(0, 999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail == null) + throw new IllegalArgumentException ("EMail is mandatory."); + if (EMail.length() > 30) + { + log.warning("Length > 30 - truncated"); + EMail = EMail.substring(0, 29); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set File_Directory. + @param File_Directory File_Directory */ + public void setFile_Directory (String File_Directory) + { + if (File_Directory == null) + throw new IllegalArgumentException ("File_Directory is mandatory."); + if (File_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + File_Directory = File_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_File_Directory, File_Directory); + } + + /** Get File_Directory. +@return File_Directory */ + public String getFile_Directory () + { + return (String)get_Value(COLUMNNAME_File_Directory); + } + + /** Set Instructions. + @param Instructions Instructions */ + public void setInstructions (String Instructions) + { + if (Instructions == null) + throw new IllegalArgumentException ("Instructions is mandatory."); + if (Instructions.length() > 1000) + { + log.warning("Length > 1000 - truncated"); + Instructions = Instructions.substring(0, 999); + } + set_Value (COLUMNNAME_Instructions, Instructions); + } + + /** Get Instructions. +@return Instructions */ + public String getInstructions () + { + return (String)get_Value(COLUMNNAME_Instructions); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Package Version. + @param PK_Version Package Version */ + public void setPK_Version (String PK_Version) + { + if (PK_Version == null) + throw new IllegalArgumentException ("PK_Version is mandatory."); + if (PK_Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + PK_Version = PK_Version.substring(0, 19); + } + set_Value (COLUMNNAME_PK_Version, PK_Version); + } + + /** Get Package Version. +@return Package Version */ + public String getPK_Version () + { + return (String)get_Value(COLUMNNAME_PK_Version); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** ReleaseNo AD_Reference_ID=50002 */ -public static final int RELEASENO_AD_Reference_ID=50002; -/** Release 2.5.2a = Release 2.5.2a */ -public static final String RELEASENO_Release252a = "Release 2.5.2a"; -/** Release 2.5.2b = Release 2.5.2b */ -public static final String RELEASENO_Release252b = "Release 2.5.2b"; -/** Release 2.5.2c = Release 2.5.2c */ -public static final String RELEASENO_Release252c = "Release 2.5.2c"; -/** Release 2.5.2d = Release 2.5.2d */ -public static final String RELEASENO_Release252d = "Release 2.5.2d"; -/** Release 2.5.2e = Release 2.5.2e */ -public static final String RELEASENO_Release252e = "Release 2.5.2e"; -/** Release 2.5.3a = Release 2.5.3a */ -public static final String RELEASENO_Release253a = "Release 2.5.3a"; -/** Release 2.5.3b = Release 2.5.3b */ -public static final String RELEASENO_Release253b = "Release 2.5.3b"; -/** No specific release = all */ +public static final int RELEASENO_AD_Reference_ID=50002;/** Release 2.5.2a = Release 2.5.2a */ +public static final String RELEASENO_Release252a = "Release 2.5.2a";/** Release 2.5.2b = Release 2.5.2b */ +public static final String RELEASENO_Release252b = "Release 2.5.2b";/** Release 2.5.2c = Release 2.5.2c */ +public static final String RELEASENO_Release252c = "Release 2.5.2c";/** Release 2.5.2d = Release 2.5.2d */ +public static final String RELEASENO_Release252d = "Release 2.5.2d";/** Release 2.5.2e = Release 2.5.2e */ +public static final String RELEASENO_Release252e = "Release 2.5.2e";/** Release 2.5.3a = Release 2.5.3a */ +public static final String RELEASENO_Release253a = "Release 2.5.3a";/** Release 2.5.3b = Release 2.5.3b */ +public static final String RELEASENO_Release253b = "Release 2.5.3b";/** No specific release = all */ public static final String RELEASENO_NoSpecificRelease = "all"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo == null) throw new IllegalArgumentException ("ReleaseNo is mandatory"); -if (ReleaseNo.equals("Release 2.5.2a") || ReleaseNo.equals("Release 2.5.2b") || ReleaseNo.equals("Release 2.5.2c") || ReleaseNo.equals("Release 2.5.2d") || ReleaseNo.equals("Release 2.5.2e") || ReleaseNo.equals("Release 2.5.3a") || ReleaseNo.equals("Release 2.5.3b") || ReleaseNo.equals("all")); - else throw new IllegalArgumentException ("ReleaseNo Invalid value - " + ReleaseNo + " - Reference_ID=50002 - Release 2.5.2a - Release 2.5.2b - Release 2.5.2c - Release 2.5.2d - Release 2.5.2e - Release 2.5.3a - Release 2.5.3b - all"); -if (ReleaseNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ReleaseNo = ReleaseNo.substring(0,19); -} -set_Value ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; -/** Set Registered EMail. -@param UserName Email of the responsible for the System */ -public void setUserName (String UserName) -{ -if (UserName == null) throw new IllegalArgumentException ("UserName is mandatory."); -if (UserName.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UserName = UserName.substring(0,29); -} -set_Value ("UserName", UserName); -} -/** Get Registered EMail. -@return Email of the responsible for the System */ -public String getUserName() -{ -return (String)get_Value("UserName"); -} -/** Column name UserName */ -public static final String COLUMNNAME_UserName = "UserName"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version == null) throw new IllegalArgumentException ("Version is mandatory."); -if (Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Version = Version.substring(0,19); -} -set_Value ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { +if (ReleaseNo == null) throw new IllegalArgumentException ("ReleaseNo is mandatory");if (ReleaseNo.equals("Release 2.5.2a") || ReleaseNo.equals("Release 2.5.2b") || ReleaseNo.equals("Release 2.5.2c") || ReleaseNo.equals("Release 2.5.2d") || ReleaseNo.equals("Release 2.5.2e") || ReleaseNo.equals("Release 2.5.3a") || ReleaseNo.equals("Release 2.5.3b") || ReleaseNo.equals("all")); else throw new IllegalArgumentException ("ReleaseNo Invalid value - " + ReleaseNo + " - Reference_ID=50002 - Release 2.5.2a - Release 2.5.2b - Release 2.5.2c - Release 2.5.2d - Release 2.5.2e - Release 2.5.3a - Release 2.5.3b - all"); if (ReleaseNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 19); + } + set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } + + /** Set Registered EMail. + @param UserName + Email of the responsible for the System + */ + public void setUserName (String UserName) + { + if (UserName == null) + throw new IllegalArgumentException ("UserName is mandatory."); + if (UserName.length() > 30) + { + log.warning("Length > 30 - truncated"); + UserName = UserName.substring(0, 29); + } + set_Value (COLUMNNAME_UserName, UserName); + } + + /** Get Registered EMail. + @return Email of the responsible for the System + */ + public String getUserName () + { + return (String)get_Value(COLUMNNAME_UserName); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version == null) + throw new IllegalArgumentException ("Version is mandatory."); + if (Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + Version = Version.substring(0, 19); + } + set_Value (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file 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 7eba3b37ec..66a6066e7e 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 @@ -1,597 +1,664 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Exp_Common - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Exp_Common extends PO + +/** Generated Model for AD_Package_Exp_Common + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Exp_Common extends PO implements I_AD_Package_Exp_Common, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Exp_Common_ID id -@param trxName transaction -*/ -public X_AD_Package_Exp_Common (Properties ctx, int AD_Package_Exp_Common_ID, String trxName) -{ -super (ctx, AD_Package_Exp_Common_ID, trxName); -/** if (AD_Package_Exp_Common_ID == 0) -{ -setAD_Package_Exp_Common_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Exp_Common (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Exp_Common */ -public static final String Table_Name="AD_Package_Exp_Common"; - -/** AD_Table_ID=50007 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Exp_Common[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null); - else -set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set Import Format. -@param AD_ImpFormat_ID Import Format */ -public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) -{ -if (AD_ImpFormat_ID <= 0) set_Value ("AD_ImpFormat_ID", null); - else -set_Value ("AD_ImpFormat_ID", Integer.valueOf(AD_ImpFormat_ID)); -} -/** Get Import Format. -@return Import Format */ -public int getAD_ImpFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_ImpFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ImpFormat_ID */ -public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; -/** Set Menu. -@param AD_Menu_ID Identifies a Menu */ -public void setAD_Menu_ID (int AD_Menu_ID) -{ -if (AD_Menu_ID <= 0) set_Value ("AD_Menu_ID", null); - else -set_Value ("AD_Menu_ID", Integer.valueOf(AD_Menu_ID)); -} -/** Get Menu. -@return Identifies a Menu */ -public int getAD_Menu_ID() -{ -Integer ii = (Integer)get_Value("AD_Menu_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Menu_ID */ -public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID"; -/** Set AD_Package_Exp_Common_ID. -@param AD_Package_Exp_Common_ID AD_Package_Exp_Common_ID */ -public void setAD_Package_Exp_Common_ID (int AD_Package_Exp_Common_ID) -{ -if (AD_Package_Exp_Common_ID < 1) throw new IllegalArgumentException ("AD_Package_Exp_Common_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Exp_Common_ID", Integer.valueOf(AD_Package_Exp_Common_ID)); -} -/** Get AD_Package_Exp_Common_ID. -@return AD_Package_Exp_Common_ID */ -public int getAD_Package_Exp_Common_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Exp_Common_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_Common_ID())); -} -/** Column name AD_Package_Exp_Common_ID */ -public static final String COLUMNNAME_AD_Package_Exp_Common_ID = "AD_Package_Exp_Common_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Report View. -@param AD_ReportView_ID View used to generate this report */ -public void setAD_ReportView_ID (int AD_ReportView_ID) -{ -if (AD_ReportView_ID <= 0) set_Value ("AD_ReportView_ID", null); - else -set_Value ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); -} -/** Get Report View. -@return View used to generate this report */ -public int getAD_ReportView_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReportView_ID */ -public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Workbench. -@param AD_Workbench_ID Collection of windows, reports */ -public void setAD_Workbench_ID (int AD_Workbench_ID) -{ -if (AD_Workbench_ID <= 0) set_Value ("AD_Workbench_ID", null); - else -set_Value ("AD_Workbench_ID", Integer.valueOf(AD_Workbench_ID)); -} -/** Get Workbench. -@return Collection of windows, reports */ -public int getAD_Workbench_ID() -{ -Integer ii = (Integer)get_Value("AD_Workbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workbench_ID */ -public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID <= 0) set_Value ("AD_Workflow_ID", null); - else -set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Exp_Common (Properties ctx, int AD_Package_Exp_Common_ID, String trxName) + { + super (ctx, AD_Package_Exp_Common_ID, trxName); + /** if (AD_Package_Exp_Common_ID == 0) { setAD_Package_Exp_Common_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Exp_Common (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Exp_Common[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID <= 0) set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_ImpFormat getI_AD_ImpFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Import Format. + @param AD_ImpFormat_ID Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) + { + if (AD_ImpFormat_ID <= 0) set_Value (COLUMNNAME_AD_ImpFormat_ID, null); + else + set_Value (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); + } + + /** Get Import Format. +@return Import Format */ + public int getAD_ImpFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImpFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Menu getI_AD_Menu() throws Exception + { + 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 e; + } + return result; + } + + /** Set Menu. + @param AD_Menu_ID + Identifies a Menu + */ + public void setAD_Menu_ID (int AD_Menu_ID) + { + if (AD_Menu_ID <= 0) set_Value (COLUMNNAME_AD_Menu_ID, null); + else + set_Value (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID)); + } + + /** Get Menu. + @return Identifies a Menu + */ + public int getAD_Menu_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Menu_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Exp_Common_ID. + @param AD_Package_Exp_Common_ID AD_Package_Exp_Common_ID */ + public void setAD_Package_Exp_Common_ID (int AD_Package_Exp_Common_ID) + { + if (AD_Package_Exp_Common_ID < 1) + throw new IllegalArgumentException ("AD_Package_Exp_Common_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Exp_Common_ID, Integer.valueOf(AD_Package_Exp_Common_ID)); + } + + /** Get AD_Package_Exp_Common_ID. +@return AD_Package_Exp_Common_ID */ + public int getAD_Package_Exp_Common_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Exp_Common_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_Common_ID())); + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report View. + @param AD_ReportView_ID + View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID <= 0) set_Value (COLUMNNAME_AD_ReportView_ID, null); + else + set_Value (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workbench. + @param AD_Workbench_ID + Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID) + { + if (AD_Workbench_ID <= 0) set_Value (COLUMNNAME_AD_Workbench_ID, null); + else + set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + } + + /** Get Workbench. + @return Collection of windows, reports + */ + public int getAD_Workbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID <= 0) set_Value (COLUMNNAME_AD_Workflow_ID, null); + else + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** DBType AD_Reference_ID=50003 */ -public static final int DBTYPE_AD_Reference_ID=50003; -/** All Database Types = ALL */ -public static final String DBTYPE_AllDatabaseTypes = "ALL"; -/** DB2 = DB2 */ -public static final String DBTYPE_DB2 = "DB2"; -/** Firebird = Firebird */ -public static final String DBTYPE_Firebird = "Firebird"; -/** MySQL = MySQL */ -public static final String DBTYPE_MySQL = "MySQL"; -/** Oracle = Oracle */ -public static final String DBTYPE_Oracle = "Oracle"; -/** Postgres = Postgres */ -public static final String DBTYPE_Postgres = "Postgres"; -/** SQL Server = SQL */ -public static final String DBTYPE_SQLServer = "SQL"; -/** Sybase = Sybase */ +public static final int DBTYPE_AD_Reference_ID=50003;/** All Database Types = ALL */ +public static final String DBTYPE_AllDatabaseTypes = "ALL";/** DB2 = DB2 */ +public static final String DBTYPE_DB2 = "DB2";/** Firebird = Firebird */ +public static final String DBTYPE_Firebird = "Firebird";/** MySQL = MySQL */ +public static final String DBTYPE_MySQL = "MySQL";/** Oracle = Oracle */ +public static final String DBTYPE_Oracle = "Oracle";/** Postgres = Postgres */ +public static final String DBTYPE_Postgres = "Postgres";/** SQL Server = SQL */ +public static final String DBTYPE_SQLServer = "SQL";/** Sybase = Sybase */ public static final String DBTYPE_Sybase = "Sybase"; -/** Set DBType. -@param DBType DBType */ -public void setDBType (String DBType) -{ -if (DBType == null || DBType.equals("ALL") || DBType.equals("DB2") || DBType.equals("Firebird") || DBType.equals("MySQL") || DBType.equals("Oracle") || DBType.equals("Postgres") || DBType.equals("SQL") || DBType.equals("Sybase")); - else throw new IllegalArgumentException ("DBType Invalid value - " + DBType + " - Reference_ID=50003 - ALL - DB2 - Firebird - MySQL - Oracle - Postgres - SQL - Sybase"); -if (DBType != null && DBType.length() > 22) -{ -log.warning("Length > 22 - truncated"); -DBType = DBType.substring(0,21); -} -set_Value ("DBType", DBType); -} -/** Get DBType. -@return DBType */ -public String getDBType() -{ -return (String)get_Value("DBType"); -} -/** Column name DBType */ -public static final String COLUMNNAME_DBType = "DBType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 1000) -{ -log.warning("Length > 1000 - truncated"); -Description = Description.substring(0,999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Destination_Directory. -@param Destination_Directory Destination_Directory */ -public void setDestination_Directory (String Destination_Directory) -{ -if (Destination_Directory != null && Destination_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Destination_Directory = Destination_Directory.substring(0,254); -} -set_Value ("Destination_Directory", Destination_Directory); -} -/** Get Destination_Directory. -@return Destination_Directory */ -public String getDestination_Directory() -{ -return (String)get_Value("Destination_Directory"); -} -/** Column name Destination_Directory */ -public static final String COLUMNNAME_Destination_Directory = "Destination_Directory"; -/** Set File Name. -@param FileName Name of the local file or URL */ -public void setFileName (String FileName) -{ -if (FileName != null && FileName.length() > 255) -{ -log.warning("Length > 255 - truncated"); -FileName = FileName.substring(0,254); -} -set_Value ("FileName", FileName); -} -/** Get File Name. -@return Name of the local file or URL */ -public String getFileName() -{ -return (String)get_Value("FileName"); -} -/** Column name FileName */ -public static final String COLUMNNAME_FileName = "FileName"; -/** Set File_Directory. -@param File_Directory File_Directory */ -public void setFile_Directory (String File_Directory) -{ -if (File_Directory != null && File_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -File_Directory = File_Directory.substring(0,254); -} -set_Value ("File_Directory", File_Directory); -} -/** Get File_Directory. -@return File_Directory */ -public String getFile_Directory() -{ -return (String)get_Value("File_Directory"); -} -/** Column name File_Directory */ -public static final String COLUMNNAME_File_Directory = "File_Directory"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Name 2. -@param Name2 Additional Name */ -public void setName2 (String Name2) -{ -if (Name2 != null && Name2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name2 = Name2.substring(0,59); -} -set_Value ("Name2", Name2); -} -/** Get Name 2. -@return Additional Name */ -public String getName2() -{ -return (String)get_Value("Name2"); -} -/** Column name Name2 */ -public static final String COLUMNNAME_Name2 = "Name2"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set SQLStatement. -@param SQLStatement SQLStatement */ -public void setSQLStatement (String SQLStatement) -{ -if (SQLStatement != null && SQLStatement.length() > 255) -{ -log.warning("Length > 255 - truncated"); -SQLStatement = SQLStatement.substring(0,254); -} -set_Value ("SQLStatement", SQLStatement); -} -/** Get SQLStatement. -@return SQLStatement */ -public String getSQLStatement() -{ -return (String)get_Value("SQLStatement"); -} -/** Column name SQLStatement */ -public static final String COLUMNNAME_SQLStatement = "SQLStatement"; -/** Set Target_Directory. -@param Target_Directory Target_Directory */ -public void setTarget_Directory (String Target_Directory) -{ -if (Target_Directory != null && Target_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Target_Directory = Target_Directory.substring(0,254); -} -set_Value ("Target_Directory", Target_Directory); -} -/** Get Target_Directory. -@return Target_Directory */ -public String getTarget_Directory() -{ -return (String)get_Value("Target_Directory"); -} -/** Column name Target_Directory */ -public static final String COLUMNNAME_Target_Directory = "Target_Directory"; + /** Set DBType. + @param DBType DBType */ + public void setDBType (String DBType) + { +if (DBType == null || DBType.equals("ALL") || DBType.equals("DB2") || DBType.equals("Firebird") || DBType.equals("MySQL") || DBType.equals("Oracle") || DBType.equals("Postgres") || DBType.equals("SQL") || DBType.equals("Sybase")); else throw new IllegalArgumentException ("DBType Invalid value - " + DBType + " - Reference_ID=50003 - ALL - DB2 - Firebird - MySQL - Oracle - Postgres - SQL - Sybase"); if (DBType != null && DBType.length() > 22) + { + log.warning("Length > 22 - truncated"); + DBType = DBType.substring(0, 21); + } + set_Value (COLUMNNAME_DBType, DBType); + } + + /** Get DBType. +@return DBType */ + public String getDBType () + { + return (String)get_Value(COLUMNNAME_DBType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 1000) + { + log.warning("Length > 1000 - truncated"); + Description = Description.substring(0, 999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Destination_Directory. + @param Destination_Directory Destination_Directory */ + public void setDestination_Directory (String Destination_Directory) + { + if (Destination_Directory != null && Destination_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + Destination_Directory = Destination_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_Destination_Directory, Destination_Directory); + } + + /** Get Destination_Directory. +@return Destination_Directory */ + public String getDestination_Directory () + { + return (String)get_Value(COLUMNNAME_Destination_Directory); + } + + /** Set File Name. + @param FileName + Name of the local file or URL + */ + public void setFileName (String FileName) + { + if (FileName != null && FileName.length() > 255) + { + log.warning("Length > 255 - truncated"); + FileName = FileName.substring(0, 254); + } + set_Value (COLUMNNAME_FileName, FileName); + } + + /** Get File Name. + @return Name of the local file or URL + */ + public String getFileName () + { + return (String)get_Value(COLUMNNAME_FileName); + } + + /** Set File_Directory. + @param File_Directory File_Directory */ + public void setFile_Directory (String File_Directory) + { + if (File_Directory != null && File_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + File_Directory = File_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_File_Directory, File_Directory); + } + + /** Get File_Directory. +@return File_Directory */ + public String getFile_Directory () + { + return (String)get_Value(COLUMNNAME_File_Directory); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Name 2. + @param Name2 + Additional Name + */ + public void setName2 (String Name2) + { + if (Name2 != null && Name2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name2 = Name2.substring(0, 59); + } + set_Value (COLUMNNAME_Name2, Name2); + } + + /** Get Name 2. + @return Additional Name + */ + public String getName2 () + { + return (String)get_Value(COLUMNNAME_Name2); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set SQLStatement. + @param SQLStatement SQLStatement */ + public void setSQLStatement (String SQLStatement) + { + if (SQLStatement != null && SQLStatement.length() > 255) + { + log.warning("Length > 255 - truncated"); + SQLStatement = SQLStatement.substring(0, 254); + } + set_Value (COLUMNNAME_SQLStatement, SQLStatement); + } + + /** Get SQLStatement. +@return SQLStatement */ + public String getSQLStatement () + { + return (String)get_Value(COLUMNNAME_SQLStatement); + } + + /** Set Target_Directory. + @param Target_Directory Target_Directory */ + public void setTarget_Directory (String Target_Directory) + { + if (Target_Directory != null && Target_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + Target_Directory = Target_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_Target_Directory, Target_Directory); + } + + /** Get Target_Directory. +@return Target_Directory */ + public String getTarget_Directory () + { + return (String)get_Value(COLUMNNAME_Target_Directory); + } /** Type AD_Reference_ID=50004 */ -public static final int TYPE_AD_Reference_ID=50004; -/** Workbench = B */ -public static final String TYPE_Workbench = "B"; -/** File - Code or other = C */ -public static final String TYPE_File_CodeOrOther = "C"; -/** Data = D */ -public static final String TYPE_Data = "D"; -/** Workflow = F */ -public static final String TYPE_Workflow = "F"; -/** Import Format = IMP */ -public static final String TYPE_ImportFormat = "IMP"; -/** Application or Module = M */ -public static final String TYPE_ApplicationOrModule = "M"; -/** Message = MSG */ -public static final String TYPE_Message = "MSG"; -/** Process/Report = P */ -public static final String TYPE_ProcessReport = "P"; -/** PrintFormat = PFT */ -public static final String TYPE_PrintFormat = "PFT"; -/** ReportView = R */ -public static final String TYPE_ReportView = "R"; -/** Role = S */ -public static final String TYPE_Role = "S"; -/** Code Snipit = SNI */ -public static final String TYPE_CodeSnipit = "SNI"; -/** SQL Statement = SQL */ -public static final String TYPE_SQLStatement = "SQL"; -/** Table = T */ -public static final String TYPE_Table = "T"; -/** Dynamic Validation Rule = V */ -public static final String TYPE_DynamicValidationRule = "V"; -/** Window = W */ -public static final String TYPE_Window = "W"; -/** Form = X */ +public static final int TYPE_AD_Reference_ID=50004;/** Workbench = B */ +public static final String TYPE_Workbench = "B";/** File - Code or other = C */ +public static final String TYPE_File_CodeOrOther = "C";/** Data = D */ +public static final String TYPE_Data = "D";/** Workflow = F */ +public static final String TYPE_Workflow = "F";/** Import Format = IMP */ +public static final String TYPE_ImportFormat = "IMP";/** Application or Module = M */ +public static final String TYPE_ApplicationOrModule = "M";/** Message = MSG */ +public static final String TYPE_Message = "MSG";/** Process/Report = P */ +public static final String TYPE_ProcessReport = "P";/** PrintFormat = PFT */ +public static final String TYPE_PrintFormat = "PFT";/** ReportView = R */ +public static final String TYPE_ReportView = "R";/** Role = S */ +public static final String TYPE_Role = "S";/** Code Snipit = SNI */ +public static final String TYPE_CodeSnipit = "SNI";/** SQL Statement = SQL */ +public static final String TYPE_SQLStatement = "SQL";/** Table = T */ +public static final String TYPE_Table = "T";/** Dynamic Validation Rule = V */ +public static final String TYPE_DynamicValidationRule = "V";/** Window = W */ +public static final String TYPE_Window = "W";/** Form = X */ public static final String TYPE_Form = "X"; -/** Set Type. -@param Type Type of Validation (SQL, Java Script, Java Language) */ -public void setType (String Type) -{ -if (Type == null || Type.equals("B") || Type.equals("C") || Type.equals("D") || Type.equals("F") || Type.equals("IMP") || Type.equals("M") || Type.equals("MSG") || Type.equals("P") || Type.equals("PFT") || Type.equals("R") || Type.equals("S") || Type.equals("SNI") || Type.equals("SQL") || Type.equals("T") || Type.equals("V") || Type.equals("W") || Type.equals("X")); - else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=50004 - B - C - D - F - IMP - M - MSG - P - PFT - R - S - SNI - SQL - T - V - W - X"); -if (Type != null && Type.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Type = Type.substring(0,9); -} -set_Value ("Type", Type); -} -/** Get Type. -@return Type of Validation (SQL, Java Script, Java Language) */ -public String getType() -{ -return (String)get_Value("Type"); -} -/** Column name Type */ -public static final String COLUMNNAME_Type = "Type"; -} + /** Set Type. + @param Type + Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type) + { +if (Type == null || Type.equals("B") || Type.equals("C") || Type.equals("D") || Type.equals("F") || Type.equals("IMP") || Type.equals("M") || Type.equals("MSG") || Type.equals("P") || Type.equals("PFT") || Type.equals("R") || Type.equals("S") || Type.equals("SNI") || Type.equals("SQL") || Type.equals("T") || Type.equals("V") || Type.equals("W") || Type.equals("X")); else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=50004 - B - C - D - F - IMP - M - MSG - P - PFT - R - S - SNI - SQL - T - V - W - X"); if (Type != null && Type.length() > 10) + { + log.warning("Length > 10 - truncated"); + Type = Type.substring(0, 9); + } + set_Value (COLUMNNAME_Type, Type); + } + + /** Get Type. + @return Type of Validation (SQL, Java Script, Java Language) + */ + public String getType () + { + return (String)get_Value(COLUMNNAME_Type); + } +} \ No newline at end of file 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 3bc1cb4165..4fd35ca776 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 @@ -1,755 +1,856 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Exp_Detail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Exp_Detail extends PO + +/** Generated Model for AD_Package_Exp_Detail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Detail, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Exp_Detail_ID id -@param trxName transaction -*/ -public X_AD_Package_Exp_Detail (Properties ctx, int AD_Package_Exp_Detail_ID, String trxName) -{ -super (ctx, AD_Package_Exp_Detail_ID, trxName); -/** if (AD_Package_Exp_Detail_ID == 0) -{ -setAD_Package_Exp_Detail_ID (0); -setAD_Package_Exp_ID (0); -setDescription (null); -setProcessing (false); -setType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Exp_Detail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Exp_Detail */ -public static final String Table_Name="AD_Package_Exp_Detail"; - -/** AD_Table_ID=50006 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Exp_Detail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null); - else -set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set Import Format. -@param AD_ImpFormat_ID Import Format */ -public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) -{ -if (AD_ImpFormat_ID <= 0) set_Value ("AD_ImpFormat_ID", null); - else -set_Value ("AD_ImpFormat_ID", Integer.valueOf(AD_ImpFormat_ID)); -} -/** Get Import Format. -@return Import Format */ -public int getAD_ImpFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_ImpFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ImpFormat_ID */ -public static final String COLUMNNAME_AD_ImpFormat_ID = "AD_ImpFormat_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Exp_Detail (Properties ctx, int AD_Package_Exp_Detail_ID, String trxName) + { + super (ctx, AD_Package_Exp_Detail_ID, trxName); + /** if (AD_Package_Exp_Detail_ID == 0) { setAD_Package_Exp_Detail_ID (0); + setAD_Package_Exp_ID (0); + setDescription (null); + setProcessing (false); + setType (null); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Exp_Detail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Exp_Detail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID <= 0) set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_ImpFormat getI_AD_ImpFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Import Format. + @param AD_ImpFormat_ID Import Format */ + public void setAD_ImpFormat_ID (int AD_ImpFormat_ID) + { + if (AD_ImpFormat_ID <= 0) set_Value (COLUMNNAME_AD_ImpFormat_ID, null); + else + set_Value (COLUMNNAME_AD_ImpFormat_ID, Integer.valueOf(AD_ImpFormat_ID)); + } + + /** Get Import Format. +@return Import Format */ + public int getAD_ImpFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImpFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Menu_ID AD_Reference_ID=105 */ public static final int AD_MENU_ID_AD_Reference_ID=105; -/** Set Menu. -@param AD_Menu_ID Identifies a Menu */ -public void setAD_Menu_ID (int AD_Menu_ID) -{ -if (AD_Menu_ID <= 0) set_Value ("AD_Menu_ID", null); - else -set_Value ("AD_Menu_ID", Integer.valueOf(AD_Menu_ID)); -} -/** Get Menu. -@return Identifies a Menu */ -public int getAD_Menu_ID() -{ -Integer ii = (Integer)get_Value("AD_Menu_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Menu_ID */ -public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID"; -/** Set Message. -@param AD_Message_ID System Message */ -public void setAD_Message_ID (int AD_Message_ID) -{ -if (AD_Message_ID <= 0) set_Value ("AD_Message_ID", null); - else -set_Value ("AD_Message_ID", Integer.valueOf(AD_Message_ID)); -} -/** Get Message. -@return System Message */ -public int getAD_Message_ID() -{ -Integer ii = (Integer)get_Value("AD_Message_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Message_ID */ -public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; -/** Set AD_Package_Code_New. -@param AD_Package_Code_New AD_Package_Code_New */ -public void setAD_Package_Code_New (String AD_Package_Code_New) -{ -if (AD_Package_Code_New != null && AD_Package_Code_New.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -AD_Package_Code_New = AD_Package_Code_New.substring(0,1999); -} -set_Value ("AD_Package_Code_New", AD_Package_Code_New); -} -/** Get AD_Package_Code_New. -@return AD_Package_Code_New */ -public String getAD_Package_Code_New() -{ -return (String)get_Value("AD_Package_Code_New"); -} -/** Column name AD_Package_Code_New */ -public static final String COLUMNNAME_AD_Package_Code_New = "AD_Package_Code_New"; -/** Set AD_Package_Code_Old. -@param AD_Package_Code_Old AD_Package_Code_Old */ -public void setAD_Package_Code_Old (String AD_Package_Code_Old) -{ -if (AD_Package_Code_Old != null && AD_Package_Code_Old.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -AD_Package_Code_Old = AD_Package_Code_Old.substring(0,1999); -} -set_Value ("AD_Package_Code_Old", AD_Package_Code_Old); -} -/** Get AD_Package_Code_Old. -@return AD_Package_Code_Old */ -public String getAD_Package_Code_Old() -{ -return (String)get_Value("AD_Package_Code_Old"); -} -/** Column name AD_Package_Code_Old */ -public static final String COLUMNNAME_AD_Package_Code_Old = "AD_Package_Code_Old"; -/** Set AD_Package_Exp_Detail_ID. -@param AD_Package_Exp_Detail_ID AD_Package_Exp_Detail_ID */ -public void setAD_Package_Exp_Detail_ID (int AD_Package_Exp_Detail_ID) -{ -if (AD_Package_Exp_Detail_ID < 1) throw new IllegalArgumentException ("AD_Package_Exp_Detail_ID is mandatory."); -set_Value ("AD_Package_Exp_Detail_ID", Integer.valueOf(AD_Package_Exp_Detail_ID)); -} -/** Get AD_Package_Exp_Detail_ID. -@return AD_Package_Exp_Detail_ID */ -public int getAD_Package_Exp_Detail_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Exp_Detail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_Detail_ID())); -} -/** Column name AD_Package_Exp_Detail_ID */ -public static final String COLUMNNAME_AD_Package_Exp_Detail_ID = "AD_Package_Exp_Detail_ID"; -/** Set AD_Package_Exp_ID. -@param AD_Package_Exp_ID AD_Package_Exp_ID */ -public void setAD_Package_Exp_ID (int AD_Package_Exp_ID) -{ -if (AD_Package_Exp_ID < 1) throw new IllegalArgumentException ("AD_Package_Exp_ID is mandatory."); -set_Value ("AD_Package_Exp_ID", Integer.valueOf(AD_Package_Exp_ID)); -} -/** Get AD_Package_Exp_ID. -@return AD_Package_Exp_ID */ -public int getAD_Package_Exp_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Exp_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Package_Exp_ID */ -public static final String COLUMNNAME_AD_Package_Exp_ID = "AD_Package_Exp_ID"; -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID <= 0) set_Value ("AD_PrintFormat_ID", null); - else -set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Report View. -@param AD_ReportView_ID View used to generate this report */ -public void setAD_ReportView_ID (int AD_ReportView_ID) -{ -if (AD_ReportView_ID <= 0) set_Value ("AD_ReportView_ID", null); - else -set_Value ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); -} -/** Get Report View. -@return View used to generate this report */ -public int getAD_ReportView_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReportView_ID */ -public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Dynamic Validation. -@param AD_Val_Rule_ID Dynamic Validation Rule */ -public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) -{ -if (AD_Val_Rule_ID <= 0) set_Value ("AD_Val_Rule_ID", null); - else -set_Value ("AD_Val_Rule_ID", Integer.valueOf(AD_Val_Rule_ID)); -} -/** Get Dynamic Validation. -@return Dynamic Validation Rule */ -public int getAD_Val_Rule_ID() -{ -Integer ii = (Integer)get_Value("AD_Val_Rule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Val_Rule_ID */ -public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Workbench. -@param AD_Workbench_ID Collection of windows, reports */ -public void setAD_Workbench_ID (int AD_Workbench_ID) -{ -if (AD_Workbench_ID <= 0) set_Value ("AD_Workbench_ID", null); - else -set_Value ("AD_Workbench_ID", Integer.valueOf(AD_Workbench_ID)); -} -/** Get Workbench. -@return Collection of windows, reports */ -public int getAD_Workbench_ID() -{ -Integer ii = (Integer)get_Value("AD_Workbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workbench_ID */ -public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID <= 0) set_Value ("AD_Workflow_ID", null); - else -set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + public I_AD_Menu getI_AD_Menu() throws Exception + { + 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 e; + } + return result; + } + + /** Set Menu. + @param AD_Menu_ID + Identifies a Menu + */ + public void setAD_Menu_ID (int AD_Menu_ID) + { + if (AD_Menu_ID <= 0) set_Value (COLUMNNAME_AD_Menu_ID, null); + else + set_Value (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID)); + } + + /** Get Menu. + @return Identifies a Menu + */ + public int getAD_Menu_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Menu_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Message getI_AD_Message() throws Exception + { + 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 e; + } + return result; + } + + /** Set Message. + @param AD_Message_ID + System Message + */ + public void setAD_Message_ID (int AD_Message_ID) + { + if (AD_Message_ID <= 0) set_Value (COLUMNNAME_AD_Message_ID, null); + else + set_Value (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + } + + /** Get Message. + @return System Message + */ + public int getAD_Message_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Message_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Code_New. + @param AD_Package_Code_New AD_Package_Code_New */ + public void setAD_Package_Code_New (String AD_Package_Code_New) + { + if (AD_Package_Code_New != null && AD_Package_Code_New.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + AD_Package_Code_New = AD_Package_Code_New.substring(0, 1999); + } + set_Value (COLUMNNAME_AD_Package_Code_New, AD_Package_Code_New); + } + + /** Get AD_Package_Code_New. +@return AD_Package_Code_New */ + public String getAD_Package_Code_New () + { + return (String)get_Value(COLUMNNAME_AD_Package_Code_New); + } + + /** Set AD_Package_Code_Old. + @param AD_Package_Code_Old AD_Package_Code_Old */ + public void setAD_Package_Code_Old (String AD_Package_Code_Old) + { + if (AD_Package_Code_Old != null && AD_Package_Code_Old.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + AD_Package_Code_Old = AD_Package_Code_Old.substring(0, 1999); + } + set_Value (COLUMNNAME_AD_Package_Code_Old, AD_Package_Code_Old); + } + + /** Get AD_Package_Code_Old. +@return AD_Package_Code_Old */ + public String getAD_Package_Code_Old () + { + return (String)get_Value(COLUMNNAME_AD_Package_Code_Old); + } + + /** Set AD_Package_Exp_Detail_ID. + @param AD_Package_Exp_Detail_ID AD_Package_Exp_Detail_ID */ + public void setAD_Package_Exp_Detail_ID (int AD_Package_Exp_Detail_ID) + { + if (AD_Package_Exp_Detail_ID < 1) + throw new IllegalArgumentException ("AD_Package_Exp_Detail_ID is mandatory."); + set_Value (COLUMNNAME_AD_Package_Exp_Detail_ID, Integer.valueOf(AD_Package_Exp_Detail_ID)); + } + + /** Get AD_Package_Exp_Detail_ID. +@return AD_Package_Exp_Detail_ID */ + public int getAD_Package_Exp_Detail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Exp_Detail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Exp_Detail_ID())); + } + + /** Set AD_Package_Exp_ID. + @param AD_Package_Exp_ID AD_Package_Exp_ID */ + public void setAD_Package_Exp_ID (int AD_Package_Exp_ID) + { + if (AD_Package_Exp_ID < 1) + throw new IllegalArgumentException ("AD_Package_Exp_ID is mandatory."); + set_Value (COLUMNNAME_AD_Package_Exp_ID, Integer.valueOf(AD_Package_Exp_ID)); + } + + /** Get AD_Package_Exp_ID. +@return AD_Package_Exp_ID */ + public int getAD_Package_Exp_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Exp_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report View. + @param AD_ReportView_ID + View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID <= 0) set_Value (COLUMNNAME_AD_ReportView_ID, null); + else + set_Value (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dynamic Validation. + @param AD_Val_Rule_ID + Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) + { + if (AD_Val_Rule_ID <= 0) set_Value (COLUMNNAME_AD_Val_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + } + + /** Get Dynamic Validation. + @return Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workbench. + @param AD_Workbench_ID + Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID) + { + if (AD_Workbench_ID <= 0) set_Value (COLUMNNAME_AD_Workbench_ID, null); + else + set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + } + + /** Get Workbench. + @return Collection of windows, reports + */ + public int getAD_Workbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID <= 0) set_Value (COLUMNNAME_AD_Workflow_ID, null); + else + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** DBType AD_Reference_ID=50003 */ -public static final int DBTYPE_AD_Reference_ID=50003; -/** All Database Types = ALL */ -public static final String DBTYPE_AllDatabaseTypes = "ALL"; -/** DB2 = DB2 */ -public static final String DBTYPE_DB2 = "DB2"; -/** Firebird = Firebird */ -public static final String DBTYPE_Firebird = "Firebird"; -/** MySQL = MySQL */ -public static final String DBTYPE_MySQL = "MySQL"; -/** Oracle = Oracle */ -public static final String DBTYPE_Oracle = "Oracle"; -/** Postgres = Postgres */ -public static final String DBTYPE_Postgres = "Postgres"; -/** SQL Server = SQL */ -public static final String DBTYPE_SQLServer = "SQL"; -/** Sybase = Sybase */ +public static final int DBTYPE_AD_Reference_ID=50003;/** All Database Types = ALL */ +public static final String DBTYPE_AllDatabaseTypes = "ALL";/** DB2 = DB2 */ +public static final String DBTYPE_DB2 = "DB2";/** Firebird = Firebird */ +public static final String DBTYPE_Firebird = "Firebird";/** MySQL = MySQL */ +public static final String DBTYPE_MySQL = "MySQL";/** Oracle = Oracle */ +public static final String DBTYPE_Oracle = "Oracle";/** Postgres = Postgres */ +public static final String DBTYPE_Postgres = "Postgres";/** SQL Server = SQL */ +public static final String DBTYPE_SQLServer = "SQL";/** Sybase = Sybase */ public static final String DBTYPE_Sybase = "Sybase"; -/** Set DBType. -@param DBType DBType */ -public void setDBType (String DBType) -{ -if (DBType == null || DBType.equals("ALL") || DBType.equals("DB2") || DBType.equals("Firebird") || DBType.equals("MySQL") || DBType.equals("Oracle") || DBType.equals("Postgres") || DBType.equals("SQL") || DBType.equals("Sybase")); - else throw new IllegalArgumentException ("DBType Invalid value - " + DBType + " - Reference_ID=50003 - ALL - DB2 - Firebird - MySQL - Oracle - Postgres - SQL - Sybase"); -if (DBType != null && DBType.length() > 22) -{ -log.warning("Length > 22 - truncated"); -DBType = DBType.substring(0,21); -} -set_Value ("DBType", DBType); -} -/** Get DBType. -@return DBType */ -public String getDBType() -{ -return (String)get_Value("DBType"); -} -/** Column name DBType */ -public static final String COLUMNNAME_DBType = "DBType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 1000) -{ -log.warning("Length > 1000 - truncated"); -Description = Description.substring(0,999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Destination_Directory. -@param Destination_Directory Destination_Directory */ -public void setDestination_Directory (String Destination_Directory) -{ -if (Destination_Directory != null && Destination_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Destination_Directory = Destination_Directory.substring(0,254); -} -set_Value ("Destination_Directory", Destination_Directory); -} -/** Get Destination_Directory. -@return Destination_Directory */ -public String getDestination_Directory() -{ -return (String)get_Value("Destination_Directory"); -} -/** Column name Destination_Directory */ -public static final String COLUMNNAME_Destination_Directory = "Destination_Directory"; -/** Set Destination_FileName. -@param Destination_FileName Destination_FileName */ -public void setDestination_FileName (String Destination_FileName) -{ -if (Destination_FileName != null && Destination_FileName.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Destination_FileName = Destination_FileName.substring(0,254); -} -set_Value ("Destination_FileName", Destination_FileName); -} -/** Get Destination_FileName. -@return Destination_FileName */ -public String getDestination_FileName() -{ -return (String)get_Value("Destination_FileName"); -} -/** Column name Destination_FileName */ -public static final String COLUMNNAME_Destination_FileName = "Destination_FileName"; -/** Set File Name. -@param FileName Name of the local file or URL */ -public void setFileName (String FileName) -{ -if (FileName != null && FileName.length() > 255) -{ -log.warning("Length > 255 - truncated"); -FileName = FileName.substring(0,254); -} -set_Value ("FileName", FileName); -} -/** Get File Name. -@return Name of the local file or URL */ -public String getFileName() -{ -return (String)get_Value("FileName"); -} -/** Column name FileName */ -public static final String COLUMNNAME_FileName = "FileName"; -/** Set File_Directory. -@param File_Directory File_Directory */ -public void setFile_Directory (String File_Directory) -{ -if (File_Directory != null && File_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -File_Directory = File_Directory.substring(0,254); -} -set_Value ("File_Directory", File_Directory); -} -/** Get File_Directory. -@return File_Directory */ -public String getFile_Directory() -{ -return (String)get_Value("File_Directory"); -} -/** Column name File_Directory */ -public static final String COLUMNNAME_File_Directory = "File_Directory"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Name 2. -@param Name2 Additional Name */ -public void setName2 (String Name2) -{ -if (Name2 != null && Name2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name2 = Name2.substring(0,59); -} -set_Value ("Name2", Name2); -} -/** Get Name 2. -@return Additional Name */ -public String getName2() -{ -return (String)get_Value("Name2"); -} -/** Column name Name2 */ -public static final String COLUMNNAME_Name2 = "Name2"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set DBType. + @param DBType DBType */ + public void setDBType (String DBType) + { +if (DBType == null || DBType.equals("ALL") || DBType.equals("DB2") || DBType.equals("Firebird") || DBType.equals("MySQL") || DBType.equals("Oracle") || DBType.equals("Postgres") || DBType.equals("SQL") || DBType.equals("Sybase")); else throw new IllegalArgumentException ("DBType Invalid value - " + DBType + " - Reference_ID=50003 - ALL - DB2 - Firebird - MySQL - Oracle - Postgres - SQL - Sybase"); if (DBType != null && DBType.length() > 22) + { + log.warning("Length > 22 - truncated"); + DBType = DBType.substring(0, 21); + } + set_Value (COLUMNNAME_DBType, DBType); + } + + /** Get DBType. +@return DBType */ + public String getDBType () + { + return (String)get_Value(COLUMNNAME_DBType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 1000) + { + log.warning("Length > 1000 - truncated"); + Description = Description.substring(0, 999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Destination_Directory. + @param Destination_Directory Destination_Directory */ + public void setDestination_Directory (String Destination_Directory) + { + if (Destination_Directory != null && Destination_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + Destination_Directory = Destination_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_Destination_Directory, Destination_Directory); + } + + /** Get Destination_Directory. +@return Destination_Directory */ + public String getDestination_Directory () + { + return (String)get_Value(COLUMNNAME_Destination_Directory); + } + + /** Set Destination_FileName. + @param Destination_FileName Destination_FileName */ + public void setDestination_FileName (String Destination_FileName) + { + if (Destination_FileName != null && Destination_FileName.length() > 255) + { + log.warning("Length > 255 - truncated"); + Destination_FileName = Destination_FileName.substring(0, 254); + } + set_Value (COLUMNNAME_Destination_FileName, Destination_FileName); + } + + /** Get Destination_FileName. +@return Destination_FileName */ + public String getDestination_FileName () + { + return (String)get_Value(COLUMNNAME_Destination_FileName); + } + + /** Set File Name. + @param FileName + Name of the local file or URL + */ + public void setFileName (String FileName) + { + if (FileName != null && FileName.length() > 255) + { + log.warning("Length > 255 - truncated"); + FileName = FileName.substring(0, 254); + } + set_Value (COLUMNNAME_FileName, FileName); + } + + /** Get File Name. + @return Name of the local file or URL + */ + public String getFileName () + { + return (String)get_Value(COLUMNNAME_FileName); + } + + /** Set File_Directory. + @param File_Directory File_Directory */ + public void setFile_Directory (String File_Directory) + { + if (File_Directory != null && File_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + File_Directory = File_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_File_Directory, File_Directory); + } + + /** Get File_Directory. +@return File_Directory */ + public String getFile_Directory () + { + return (String)get_Value(COLUMNNAME_File_Directory); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name 2. + @param Name2 + Additional Name + */ + public void setName2 (String Name2) + { + if (Name2 != null && Name2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name2 = Name2.substring(0, 59); + } + set_Value (COLUMNNAME_Name2, Name2); + } + + /** Get Name 2. + @return Additional Name + */ + public String getName2 () + { + return (String)get_Value(COLUMNNAME_Name2); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** ReleaseNo AD_Reference_ID=50002 */ -public static final int RELEASENO_AD_Reference_ID=50002; -/** Release 2.5.2a = Release 2.5.2a */ -public static final String RELEASENO_Release252a = "Release 2.5.2a"; -/** Release 2.5.2b = Release 2.5.2b */ -public static final String RELEASENO_Release252b = "Release 2.5.2b"; -/** Release 2.5.2c = Release 2.5.2c */ -public static final String RELEASENO_Release252c = "Release 2.5.2c"; -/** Release 2.5.2d = Release 2.5.2d */ -public static final String RELEASENO_Release252d = "Release 2.5.2d"; -/** Release 2.5.2e = Release 2.5.2e */ -public static final String RELEASENO_Release252e = "Release 2.5.2e"; -/** Release 2.5.3a = Release 2.5.3a */ -public static final String RELEASENO_Release253a = "Release 2.5.3a"; -/** Release 2.5.3b = Release 2.5.3b */ -public static final String RELEASENO_Release253b = "Release 2.5.3b"; -/** No specific release = all */ +public static final int RELEASENO_AD_Reference_ID=50002;/** Release 2.5.2a = Release 2.5.2a */ +public static final String RELEASENO_Release252a = "Release 2.5.2a";/** Release 2.5.2b = Release 2.5.2b */ +public static final String RELEASENO_Release252b = "Release 2.5.2b";/** Release 2.5.2c = Release 2.5.2c */ +public static final String RELEASENO_Release252c = "Release 2.5.2c";/** Release 2.5.2d = Release 2.5.2d */ +public static final String RELEASENO_Release252d = "Release 2.5.2d";/** Release 2.5.2e = Release 2.5.2e */ +public static final String RELEASENO_Release252e = "Release 2.5.2e";/** Release 2.5.3a = Release 2.5.3a */ +public static final String RELEASENO_Release253a = "Release 2.5.3a";/** Release 2.5.3b = Release 2.5.3b */ +public static final String RELEASENO_Release253b = "Release 2.5.3b";/** No specific release = all */ public static final String RELEASENO_NoSpecificRelease = "all"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo == null || ReleaseNo.equals("Release 2.5.2a") || ReleaseNo.equals("Release 2.5.2b") || ReleaseNo.equals("Release 2.5.2c") || ReleaseNo.equals("Release 2.5.2d") || ReleaseNo.equals("Release 2.5.2e") || ReleaseNo.equals("Release 2.5.3a") || ReleaseNo.equals("Release 2.5.3b") || ReleaseNo.equals("all")); - else throw new IllegalArgumentException ("ReleaseNo Invalid value - " + ReleaseNo + " - Reference_ID=50002 - Release 2.5.2a - Release 2.5.2b - Release 2.5.2c - Release 2.5.2d - Release 2.5.2e - Release 2.5.3a - Release 2.5.3b - all"); -if (ReleaseNo != null && ReleaseNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ReleaseNo = ReleaseNo.substring(0,19); -} -set_Value ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; -/** Set SQLStatement. -@param SQLStatement SQLStatement */ -public void setSQLStatement (String SQLStatement) -{ -if (SQLStatement != null && SQLStatement.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -SQLStatement = SQLStatement.substring(0,1999); -} -set_Value ("SQLStatement", SQLStatement); -} -/** Get SQLStatement. -@return SQLStatement */ -public String getSQLStatement() -{ -return (String)get_Value("SQLStatement"); -} -/** Column name SQLStatement */ -public static final String COLUMNNAME_SQLStatement = "SQLStatement"; -/** Set Target_Directory. -@param Target_Directory Target_Directory */ -public void setTarget_Directory (String Target_Directory) -{ -if (Target_Directory != null && Target_Directory.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Target_Directory = Target_Directory.substring(0,254); -} -set_Value ("Target_Directory", Target_Directory); -} -/** Get Target_Directory. -@return Target_Directory */ -public String getTarget_Directory() -{ -return (String)get_Value("Target_Directory"); -} -/** Column name Target_Directory */ -public static final String COLUMNNAME_Target_Directory = "Target_Directory"; + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { +if (ReleaseNo == null || ReleaseNo.equals("Release 2.5.2a") || ReleaseNo.equals("Release 2.5.2b") || ReleaseNo.equals("Release 2.5.2c") || ReleaseNo.equals("Release 2.5.2d") || ReleaseNo.equals("Release 2.5.2e") || ReleaseNo.equals("Release 2.5.3a") || ReleaseNo.equals("Release 2.5.3b") || ReleaseNo.equals("all")); else throw new IllegalArgumentException ("ReleaseNo Invalid value - " + ReleaseNo + " - Reference_ID=50002 - Release 2.5.2a - Release 2.5.2b - Release 2.5.2c - Release 2.5.2d - Release 2.5.2e - Release 2.5.3a - Release 2.5.3b - all"); if (ReleaseNo != null && ReleaseNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 19); + } + set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } + + /** Set SQLStatement. + @param SQLStatement SQLStatement */ + public void setSQLStatement (String SQLStatement) + { + if (SQLStatement != null && SQLStatement.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + SQLStatement = SQLStatement.substring(0, 1999); + } + set_Value (COLUMNNAME_SQLStatement, SQLStatement); + } + + /** Get SQLStatement. +@return SQLStatement */ + public String getSQLStatement () + { + return (String)get_Value(COLUMNNAME_SQLStatement); + } + + /** Set Target_Directory. + @param Target_Directory Target_Directory */ + public void setTarget_Directory (String Target_Directory) + { + if (Target_Directory != null && Target_Directory.length() > 255) + { + log.warning("Length > 255 - truncated"); + Target_Directory = Target_Directory.substring(0, 254); + } + set_Value (COLUMNNAME_Target_Directory, Target_Directory); + } + + /** Get Target_Directory. +@return Target_Directory */ + public String getTarget_Directory () + { + return (String)get_Value(COLUMNNAME_Target_Directory); + } /** Type AD_Reference_ID=50004 */ -public static final int TYPE_AD_Reference_ID=50004; -/** Workbench = B */ -public static final String TYPE_Workbench = "B"; -/** File - Code or other = C */ -public static final String TYPE_File_CodeOrOther = "C"; -/** Data = D */ -public static final String TYPE_Data = "D"; -/** Workflow = F */ -public static final String TYPE_Workflow = "F"; -/** Import Format = IMP */ -public static final String TYPE_ImportFormat = "IMP"; -/** Application or Module = M */ -public static final String TYPE_ApplicationOrModule = "M"; -/** Message = MSG */ -public static final String TYPE_Message = "MSG"; -/** Process/Report = P */ -public static final String TYPE_ProcessReport = "P"; -/** PrintFormat = PFT */ -public static final String TYPE_PrintFormat = "PFT"; -/** ReportView = R */ -public static final String TYPE_ReportView = "R"; -/** Role = S */ -public static final String TYPE_Role = "S"; -/** Code Snipit = SNI */ -public static final String TYPE_CodeSnipit = "SNI"; -/** SQL Statement = SQL */ -public static final String TYPE_SQLStatement = "SQL"; -/** Table = T */ -public static final String TYPE_Table = "T"; -/** Dynamic Validation Rule = V */ -public static final String TYPE_DynamicValidationRule = "V"; -/** Window = W */ -public static final String TYPE_Window = "W"; -/** Form = X */ +public static final int TYPE_AD_Reference_ID=50004;/** Workbench = B */ +public static final String TYPE_Workbench = "B";/** File - Code or other = C */ +public static final String TYPE_File_CodeOrOther = "C";/** Data = D */ +public static final String TYPE_Data = "D";/** Workflow = F */ +public static final String TYPE_Workflow = "F";/** Import Format = IMP */ +public static final String TYPE_ImportFormat = "IMP";/** Application or Module = M */ +public static final String TYPE_ApplicationOrModule = "M";/** Message = MSG */ +public static final String TYPE_Message = "MSG";/** Process/Report = P */ +public static final String TYPE_ProcessReport = "P";/** PrintFormat = PFT */ +public static final String TYPE_PrintFormat = "PFT";/** ReportView = R */ +public static final String TYPE_ReportView = "R";/** Role = S */ +public static final String TYPE_Role = "S";/** Code Snipit = SNI */ +public static final String TYPE_CodeSnipit = "SNI";/** SQL Statement = SQL */ +public static final String TYPE_SQLStatement = "SQL";/** Table = T */ +public static final String TYPE_Table = "T";/** Dynamic Validation Rule = V */ +public static final String TYPE_DynamicValidationRule = "V";/** Window = W */ +public static final String TYPE_Window = "W";/** Form = X */ public static final String TYPE_Form = "X"; -/** Set Type. -@param Type Type of Validation (SQL, Java Script, Java Language) */ -public void setType (String Type) -{ -if (Type == null) throw new IllegalArgumentException ("Type is mandatory"); -if (Type.equals("B") || Type.equals("C") || Type.equals("D") || Type.equals("F") || Type.equals("IMP") || Type.equals("M") || Type.equals("MSG") || Type.equals("P") || Type.equals("PFT") || Type.equals("R") || Type.equals("S") || Type.equals("SNI") || Type.equals("SQL") || Type.equals("T") || Type.equals("V") || Type.equals("W") || Type.equals("X")); - else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=50004 - B - C - D - F - IMP - M - MSG - P - PFT - R - S - SNI - SQL - T - V - W - X"); -if (Type.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Type = Type.substring(0,9); -} -set_Value ("Type", Type); -} -/** Get Type. -@return Type of Validation (SQL, Java Script, Java Language) */ -public String getType() -{ -return (String)get_Value("Type"); -} -/** Column name Type */ -public static final String COLUMNNAME_Type = "Type"; -} + /** Set Type. + @param Type + Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type) + { +if (Type == null) throw new IllegalArgumentException ("Type is mandatory");if (Type.equals("B") || Type.equals("C") || Type.equals("D") || Type.equals("F") || Type.equals("IMP") || Type.equals("M") || Type.equals("MSG") || Type.equals("P") || Type.equals("PFT") || Type.equals("R") || Type.equals("S") || Type.equals("SNI") || Type.equals("SQL") || Type.equals("T") || Type.equals("V") || Type.equals("W") || Type.equals("X")); else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=50004 - B - C - D - F - IMP - M - MSG - P - PFT - R - S - SNI - SQL - T - V - W - X"); if (Type.length() > 10) + { + log.warning("Length > 10 - truncated"); + Type = Type.substring(0, 9); + } + set_Value (COLUMNNAME_Type, Type); + } + + /** Get Type. + @return Type of Validation (SQL, Java Script, Java Language) + */ + public String getType () + { + return (String)get_Value(COLUMNNAME_Type); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Package_Imp.java b/base/src/org/compiere/model/X_AD_Package_Imp.java index a8ca5742ac..7d6f7a7c67 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp.java @@ -1,347 +1,359 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Imp - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Imp extends PO + +/** Generated Model for AD_Package_Imp + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Imp extends PO implements I_AD_Package_Imp, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Imp_ID id -@param trxName transaction -*/ -public X_AD_Package_Imp (Properties ctx, int AD_Package_Imp_ID, String trxName) -{ -super (ctx, AD_Package_Imp_ID, trxName); -/** if (AD_Package_Imp_ID == 0) -{ -setAD_Package_Imp_ID (0); -setDescription (null); -setName (null); -setProcessing (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Imp (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Imp */ -public static final String Table_Name="AD_Package_Imp"; - -/** AD_Table_ID=50003 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Imp[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set AD_Package_Imp_ID. -@param AD_Package_Imp_ID AD_Package_Imp_ID */ -public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) -{ -if (AD_Package_Imp_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_ID", Integer.valueOf(AD_Package_Imp_ID)); -} -/** Get AD_Package_Imp_ID. -@return AD_Package_Imp_ID */ -public int getAD_Package_Imp_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Imp_ID())); -} -/** Column name AD_Package_Imp_ID */ -public static final String COLUMNNAME_AD_Package_Imp_ID = "AD_Package_Imp_ID"; -/** Set Creator. -@param Creator Creator */ -public void setCreator (String Creator) -{ -if (Creator != null && Creator.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Creator = Creator.substring(0,59); -} -set_Value ("Creator", Creator); -} -/** Get Creator. -@return Creator */ -public String getCreator() -{ -return (String)get_Value("Creator"); -} -/** Column name Creator */ -public static final String COLUMNNAME_Creator = "Creator"; -/** Set CreatorContact. -@param CreatorContact CreatorContact */ -public void setCreatorContact (String CreatorContact) -{ -if (CreatorContact != null && CreatorContact.length() > 255) -{ -log.warning("Length > 255 - truncated"); -CreatorContact = CreatorContact.substring(0,254); -} -set_Value ("CreatorContact", CreatorContact); -} -/** Get CreatorContact. -@return CreatorContact */ -public String getCreatorContact() -{ -return (String)get_Value("CreatorContact"); -} -/** Column name CreatorContact */ -public static final String COLUMNNAME_CreatorContact = "CreatorContact"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 1000) -{ -log.warning("Length > 1000 - truncated"); -Description = Description.substring(0,999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set PK_Status. -@param PK_Status PK_Status */ -public void setPK_Status (String PK_Status) -{ -if (PK_Status != null && PK_Status.length() > 22) -{ -log.warning("Length > 22 - truncated"); -PK_Status = PK_Status.substring(0,21); -} -set_Value ("PK_Status", PK_Status); -} -/** Get PK_Status. -@return PK_Status */ -public String getPK_Status() -{ -return (String)get_Value("PK_Status"); -} -/** Column name PK_Status */ -public static final String COLUMNNAME_PK_Status = "PK_Status"; -/** Set PK_Version. -@param PK_Version PK_Version */ -public void setPK_Version (String PK_Version) -{ -if (PK_Version != null && PK_Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -PK_Version = PK_Version.substring(0,19); -} -set_Value ("PK_Version", PK_Version); -} -/** Get PK_Version. -@return PK_Version */ -public String getPK_Version() -{ -return (String)get_Value("PK_Version"); -} -/** Column name PK_Version */ -public static final String COLUMNNAME_PK_Version = "PK_Version"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo != null && ReleaseNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ReleaseNo = ReleaseNo.substring(0,19); -} -set_Value ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; -/** Set Uninstall. -@param Uninstall Uninstall */ -public void setUninstall (boolean Uninstall) -{ -set_Value ("Uninstall", Boolean.valueOf(Uninstall)); -} -/** Get Uninstall. -@return Uninstall */ -public boolean isUninstall() -{ -Object oo = get_Value("Uninstall"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Uninstall */ -public static final String COLUMNNAME_Uninstall = "Uninstall"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version != null && Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Version = Version.substring(0,19); -} -set_Value ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Imp (Properties ctx, int AD_Package_Imp_ID, String trxName) + { + super (ctx, AD_Package_Imp_ID, trxName); + /** if (AD_Package_Imp_ID == 0) { setAD_Package_Imp_ID (0); + setDescription (null); + setName (null); + setProcessing (false); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Imp (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Imp[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set AD_Package_Imp_ID. + @param AD_Package_Imp_ID AD_Package_Imp_ID */ + public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) + { + if (AD_Package_Imp_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); + } + + /** Get AD_Package_Imp_ID. +@return AD_Package_Imp_ID */ + public int getAD_Package_Imp_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Imp_ID())); + } + + /** Set Creator. + @param Creator Creator */ + public void setCreator (String Creator) + { + if (Creator != null && Creator.length() > 60) + { + log.warning("Length > 60 - truncated"); + Creator = Creator.substring(0, 59); + } + set_Value (COLUMNNAME_Creator, Creator); + } + + /** Get Creator. +@return Creator */ + public String getCreator () + { + return (String)get_Value(COLUMNNAME_Creator); + } + + /** Set CreatorContact. + @param CreatorContact CreatorContact */ + public void setCreatorContact (String CreatorContact) + { + if (CreatorContact != null && CreatorContact.length() > 255) + { + log.warning("Length > 255 - truncated"); + CreatorContact = CreatorContact.substring(0, 254); + } + set_Value (COLUMNNAME_CreatorContact, CreatorContact); + } + + /** Get CreatorContact. +@return CreatorContact */ + public String getCreatorContact () + { + return (String)get_Value(COLUMNNAME_CreatorContact); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 1000) + { + log.warning("Length > 1000 - truncated"); + Description = Description.substring(0, 999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set PK_Status. + @param PK_Status PK_Status */ + public void setPK_Status (String PK_Status) + { + if (PK_Status != null && PK_Status.length() > 22) + { + log.warning("Length > 22 - truncated"); + PK_Status = PK_Status.substring(0, 21); + } + set_Value (COLUMNNAME_PK_Status, PK_Status); + } + + /** Get PK_Status. +@return PK_Status */ + public String getPK_Status () + { + return (String)get_Value(COLUMNNAME_PK_Status); + } + + /** Set Package Version. + @param PK_Version Package Version */ + public void setPK_Version (String PK_Version) + { + if (PK_Version != null && PK_Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + PK_Version = PK_Version.substring(0, 19); + } + set_Value (COLUMNNAME_PK_Version, PK_Version); + } + + /** Get Package Version. +@return Package Version */ + public String getPK_Version () + { + return (String)get_Value(COLUMNNAME_PK_Version); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { + if (ReleaseNo != null && ReleaseNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 19); + } + set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } + + /** Set Uninstall. + @param Uninstall Uninstall */ + public void setUninstall (boolean Uninstall) + { + set_Value (COLUMNNAME_Uninstall, Boolean.valueOf(Uninstall)); + } + + /** Get Uninstall. +@return Uninstall */ + public boolean isUninstall () + { + Object oo = get_Value(COLUMNNAME_Uninstall); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version != null && Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + Version = Version.substring(0, 19); + } + set_Value (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file 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 fe5beb138c..2d44498ab9 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 @@ -1,284 +1,288 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Imp_Backup - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Imp_Backup extends PO + +/** Generated Model for AD_Package_Imp_Backup + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Imp_Backup extends PO implements I_AD_Package_Imp_Backup, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Imp_Backup_ID id -@param trxName transaction -*/ -public X_AD_Package_Imp_Backup (Properties ctx, int AD_Package_Imp_Backup_ID, String trxName) -{ -super (ctx, AD_Package_Imp_Backup_ID, trxName); -/** if (AD_Package_Imp_Backup_ID == 0) -{ -setAD_Package_Imp_Backup_ID (0); -setAD_Package_Imp_Detail_ID (0); -setAD_Package_Imp_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Imp_Backup (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Imp_Backup */ -public static final String Table_Name="AD_Package_Imp_Backup"; - -/** AD_Table_ID=50002 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Backup[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Imp_Backup (Properties ctx, int AD_Package_Imp_Backup_ID, String trxName) + { + super (ctx, AD_Package_Imp_Backup_ID, trxName); + /** if (AD_Package_Imp_Backup_ID == 0) { setAD_Package_Imp_Backup_ID (0); + setAD_Package_Imp_Detail_ID (0); + setAD_Package_Imp_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Imp_Backup (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Backup[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Column_ID AD_Reference_ID=251 */ public static final int AD_COLUMN_ID_AD_Reference_ID=251; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set AD_Package_Imp_Backup_ID. -@param AD_Package_Imp_Backup_ID AD_Package_Imp_Backup_ID */ -public void setAD_Package_Imp_Backup_ID (int AD_Package_Imp_Backup_ID) -{ -if (AD_Package_Imp_Backup_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_Backup_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_Backup_ID", Integer.valueOf(AD_Package_Imp_Backup_ID)); -} -/** Get AD_Package_Imp_Backup_ID. -@return AD_Package_Imp_Backup_ID */ -public int getAD_Package_Imp_Backup_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_Backup_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Imp_Backup_ID())); -} -/** Column name AD_Package_Imp_Backup_ID */ -public static final String COLUMNNAME_AD_Package_Imp_Backup_ID = "AD_Package_Imp_Backup_ID"; -/** Set AD_Package_Imp_Bck_Dir. -@param AD_Package_Imp_Bck_Dir AD_Package_Imp_Bck_Dir */ -public void setAD_Package_Imp_Bck_Dir (String AD_Package_Imp_Bck_Dir) -{ -if (AD_Package_Imp_Bck_Dir != null && AD_Package_Imp_Bck_Dir.length() > 255) -{ -log.warning("Length > 255 - truncated"); -AD_Package_Imp_Bck_Dir = AD_Package_Imp_Bck_Dir.substring(0,254); -} -set_Value ("AD_Package_Imp_Bck_Dir", AD_Package_Imp_Bck_Dir); -} -/** Get AD_Package_Imp_Bck_Dir. -@return AD_Package_Imp_Bck_Dir */ -public String getAD_Package_Imp_Bck_Dir() -{ -return (String)get_Value("AD_Package_Imp_Bck_Dir"); -} -/** Column name AD_Package_Imp_Bck_Dir */ -public static final String COLUMNNAME_AD_Package_Imp_Bck_Dir = "AD_Package_Imp_Bck_Dir"; -/** Set AD_Package_Imp_Detail_ID. -@param AD_Package_Imp_Detail_ID AD_Package_Imp_Detail_ID */ -public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID) -{ -if (AD_Package_Imp_Detail_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_Detail_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_Detail_ID", Integer.valueOf(AD_Package_Imp_Detail_ID)); -} -/** Get AD_Package_Imp_Detail_ID. -@return AD_Package_Imp_Detail_ID */ -public int getAD_Package_Imp_Detail_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_Detail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Package_Imp_Detail_ID */ -public static final String COLUMNNAME_AD_Package_Imp_Detail_ID = "AD_Package_Imp_Detail_ID"; -/** Set AD_Package_Imp_ID. -@param AD_Package_Imp_ID AD_Package_Imp_ID */ -public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) -{ -if (AD_Package_Imp_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_ID", Integer.valueOf(AD_Package_Imp_ID)); -} -/** Get AD_Package_Imp_ID. -@return AD_Package_Imp_ID */ -public int getAD_Package_Imp_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Package_Imp_ID */ -public static final String COLUMNNAME_AD_Package_Imp_ID = "AD_Package_Imp_ID"; -/** Set AD_Package_Imp_Org_Dir. -@param AD_Package_Imp_Org_Dir AD_Package_Imp_Org_Dir */ -public void setAD_Package_Imp_Org_Dir (String AD_Package_Imp_Org_Dir) -{ -if (AD_Package_Imp_Org_Dir != null && AD_Package_Imp_Org_Dir.length() > 255) -{ -log.warning("Length > 255 - truncated"); -AD_Package_Imp_Org_Dir = AD_Package_Imp_Org_Dir.substring(0,254); -} -set_Value ("AD_Package_Imp_Org_Dir", AD_Package_Imp_Org_Dir); -} -/** Get AD_Package_Imp_Org_Dir. -@return AD_Package_Imp_Org_Dir */ -public String getAD_Package_Imp_Org_Dir() -{ -return (String)get_Value("AD_Package_Imp_Org_Dir"); -} -/** Column name AD_Package_Imp_Org_Dir */ -public static final String COLUMNNAME_AD_Package_Imp_Org_Dir = "AD_Package_Imp_Org_Dir"; + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Imp_Backup_ID. + @param AD_Package_Imp_Backup_ID AD_Package_Imp_Backup_ID */ + public void setAD_Package_Imp_Backup_ID (int AD_Package_Imp_Backup_ID) + { + if (AD_Package_Imp_Backup_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_Backup_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Backup_ID, Integer.valueOf(AD_Package_Imp_Backup_ID)); + } + + /** Get AD_Package_Imp_Backup_ID. +@return AD_Package_Imp_Backup_ID */ + public int getAD_Package_Imp_Backup_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_Backup_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Package_Imp_Backup_ID())); + } + + /** Set AD_Package_Imp_Bck_Dir. + @param AD_Package_Imp_Bck_Dir AD_Package_Imp_Bck_Dir */ + public void setAD_Package_Imp_Bck_Dir (String AD_Package_Imp_Bck_Dir) + { + if (AD_Package_Imp_Bck_Dir != null && AD_Package_Imp_Bck_Dir.length() > 255) + { + log.warning("Length > 255 - truncated"); + AD_Package_Imp_Bck_Dir = AD_Package_Imp_Bck_Dir.substring(0, 254); + } + set_Value (COLUMNNAME_AD_Package_Imp_Bck_Dir, AD_Package_Imp_Bck_Dir); + } + + /** Get AD_Package_Imp_Bck_Dir. +@return AD_Package_Imp_Bck_Dir */ + public String getAD_Package_Imp_Bck_Dir () + { + return (String)get_Value(COLUMNNAME_AD_Package_Imp_Bck_Dir); + } + + /** Set AD_Package_Imp_Detail_ID. + @param AD_Package_Imp_Detail_ID AD_Package_Imp_Detail_ID */ + public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID) + { + if (AD_Package_Imp_Detail_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_Detail_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, Integer.valueOf(AD_Package_Imp_Detail_ID)); + } + + /** Get AD_Package_Imp_Detail_ID. +@return AD_Package_Imp_Detail_ID */ + public int getAD_Package_Imp_Detail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_Detail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Imp_ID. + @param AD_Package_Imp_ID AD_Package_Imp_ID */ + public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) + { + if (AD_Package_Imp_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); + } + + /** Get AD_Package_Imp_ID. +@return AD_Package_Imp_ID */ + public int getAD_Package_Imp_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Imp_Org_Dir. + @param AD_Package_Imp_Org_Dir AD_Package_Imp_Org_Dir */ + public void setAD_Package_Imp_Org_Dir (String AD_Package_Imp_Org_Dir) + { + if (AD_Package_Imp_Org_Dir != null && AD_Package_Imp_Org_Dir.length() > 255) + { + log.warning("Length > 255 - truncated"); + AD_Package_Imp_Org_Dir = AD_Package_Imp_Org_Dir.substring(0, 254); + } + set_Value (COLUMNNAME_AD_Package_Imp_Org_Dir, AD_Package_Imp_Org_Dir); + } + + /** Get AD_Package_Imp_Org_Dir. +@return AD_Package_Imp_Org_Dir */ + public String getAD_Package_Imp_Org_Dir () + { + return (String)get_Value(COLUMNNAME_AD_Package_Imp_Org_Dir); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID <= 0) set_Value ("AD_Reference_ID", null); - else -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set ColValue. -@param ColValue ColValue */ -public void setColValue (String ColValue) -{ -if (ColValue != null && ColValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ColValue = ColValue.substring(0,1999); -} -set_Value ("ColValue", ColValue); -} -/** Get ColValue. -@return ColValue */ -public String getColValue() -{ -return (String)get_Value("ColValue"); -} -/** Column name ColValue */ -public static final String COLUMNNAME_ColValue = "ColValue"; -/** Set Uninstall. -@param Uninstall Uninstall */ -public void setUninstall (boolean Uninstall) -{ -set_Value ("Uninstall", Boolean.valueOf(Uninstall)); -} -/** Get Uninstall. -@return Uninstall */ -public boolean isUninstall() -{ -Object oo = get_Value("Uninstall"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Uninstall */ -public static final String COLUMNNAME_Uninstall = "Uninstall"; -} + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID <= 0) set_Value (COLUMNNAME_AD_Reference_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ColValue. + @param ColValue ColValue */ + public void setColValue (String ColValue) + { + if (ColValue != null && ColValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ColValue = ColValue.substring(0, 1999); + } + set_Value (COLUMNNAME_ColValue, ColValue); + } + + /** Get ColValue. +@return ColValue */ + public String getColValue () + { + return (String)get_Value(COLUMNNAME_ColValue); + } + + /** Set Uninstall. + @param Uninstall Uninstall */ + public void setUninstall (boolean Uninstall) + { + set_Value (COLUMNNAME_Uninstall, Boolean.valueOf(Uninstall)); + } + + /** Get Uninstall. +@return Uninstall */ + public boolean isUninstall () + { + Object oo = get_Value(COLUMNNAME_Uninstall); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java b/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java index 482a852322..6372703e4a 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Detail.java @@ -1,292 +1,301 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Imp_Detail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Imp_Detail extends PO + +/** Generated Model for AD_Package_Imp_Detail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Imp_Detail extends PO implements I_AD_Package_Imp_Detail, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Imp_Detail_ID id -@param trxName transaction -*/ -public X_AD_Package_Imp_Detail (Properties ctx, int AD_Package_Imp_Detail_ID, String trxName) -{ -super (ctx, AD_Package_Imp_Detail_ID, trxName); -/** if (AD_Package_Imp_Detail_ID == 0) -{ -setAD_Original_ID (0); -setAD_Package_Imp_Detail_ID (0); -setAD_Package_Imp_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Imp_Detail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Imp_Detail */ -public static final String Table_Name="AD_Package_Imp_Detail"; - -/** AD_Table_ID=50004 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Detail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set AD_Original_ID. -@param AD_Original_ID AD_Original_ID */ -public void setAD_Original_ID (int AD_Original_ID) -{ -if (AD_Original_ID < 1) throw new IllegalArgumentException ("AD_Original_ID is mandatory."); -set_Value ("AD_Original_ID", Integer.valueOf(AD_Original_ID)); -} -/** Get AD_Original_ID. -@return AD_Original_ID */ -public int getAD_Original_ID() -{ -Integer ii = (Integer)get_Value("AD_Original_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Original_ID */ -public static final String COLUMNNAME_AD_Original_ID = "AD_Original_ID"; -/** Set AD_Package_Imp_Detail_ID. -@param AD_Package_Imp_Detail_ID AD_Package_Imp_Detail_ID */ -public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID) -{ -if (AD_Package_Imp_Detail_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_Detail_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_Detail_ID", Integer.valueOf(AD_Package_Imp_Detail_ID)); -} -/** Get AD_Package_Imp_Detail_ID. -@return AD_Package_Imp_Detail_ID */ -public int getAD_Package_Imp_Detail_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_Detail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Package_Imp_Detail_ID */ -public static final String COLUMNNAME_AD_Package_Imp_Detail_ID = "AD_Package_Imp_Detail_ID"; -/** Set AD_Package_Imp_ID. -@param AD_Package_Imp_ID AD_Package_Imp_ID */ -public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) -{ -if (AD_Package_Imp_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_ID", Integer.valueOf(AD_Package_Imp_ID)); -} -/** Get AD_Package_Imp_ID. -@return AD_Package_Imp_ID */ -public int getAD_Package_Imp_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Package_Imp_ID */ -public static final String COLUMNNAME_AD_Package_Imp_ID = "AD_Package_Imp_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Action. -@param Action Indicates the Action to be performed */ -public void setAction (String Action) -{ -if (Action != null && Action.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Action = Action.substring(0,19); -} -set_Value ("Action", Action); -} -/** Get Action. -@return Indicates the Action to be performed */ -public String getAction() -{ -return (String)get_Value("Action"); -} -/** Column name Action */ -public static final String COLUMNNAME_Action = "Action"; -/** Set Ad_Backup_ID. -@param Ad_Backup_ID Ad_Backup_ID */ -public void setAd_Backup_ID (int Ad_Backup_ID) -{ -if (Ad_Backup_ID <= 0) set_Value ("Ad_Backup_ID", null); - else -set_Value ("Ad_Backup_ID", Integer.valueOf(Ad_Backup_ID)); -} -/** Get Ad_Backup_ID. -@return Ad_Backup_ID */ -public int getAd_Backup_ID() -{ -Integer ii = (Integer)get_Value("Ad_Backup_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ad_Backup_ID */ -public static final String COLUMNNAME_Ad_Backup_ID = "Ad_Backup_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Success. -@param Success Success */ -public void setSuccess (String Success) -{ -if (Success != null && Success.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Success = Success.substring(0,19); -} -set_Value ("Success", Success); -} -/** Get Success. -@return Success */ -public String getSuccess() -{ -return (String)get_Value("Success"); -} -/** Column name Success */ -public static final String COLUMNNAME_Success = "Success"; -/** Set DB Table Name. -@param TableName Name of the table in the database */ -public void setTableName (String TableName) -{ -if (TableName != null && TableName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -TableName = TableName.substring(0,59); -} -set_Value ("TableName", TableName); -} -/** Get DB Table Name. -@return Name of the table in the database */ -public String getTableName() -{ -return (String)get_Value("TableName"); -} -/** Column name TableName */ -public static final String COLUMNNAME_TableName = "TableName"; -/** Set Type. -@param Type Type of Validation (SQL, Java Script, Java Language) */ -public void setType (String Type) -{ -if (Type != null && Type.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Type = Type.substring(0,59); -} -set_Value ("Type", Type); -} -/** Get Type. -@return Type of Validation (SQL, Java Script, Java Language) */ -public String getType() -{ -return (String)get_Value("Type"); -} -/** Column name Type */ -public static final String COLUMNNAME_Type = "Type"; -/** Set Uninstall. -@param Uninstall Uninstall */ -public void setUninstall (boolean Uninstall) -{ -set_ValueNoCheck ("Uninstall", Boolean.valueOf(Uninstall)); -} -/** Get Uninstall. -@return Uninstall */ -public boolean isUninstall() -{ -Object oo = get_Value("Uninstall"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Uninstall */ -public static final String COLUMNNAME_Uninstall = "Uninstall"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Imp_Detail (Properties ctx, int AD_Package_Imp_Detail_ID, String trxName) + { + super (ctx, AD_Package_Imp_Detail_ID, trxName); + /** if (AD_Package_Imp_Detail_ID == 0) { setAD_Original_ID (0); + setAD_Package_Imp_Detail_ID (0); + setAD_Package_Imp_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Imp_Detail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Detail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set AD_Original_ID. + @param AD_Original_ID AD_Original_ID */ + public void setAD_Original_ID (int AD_Original_ID) + { + if (AD_Original_ID < 1) + throw new IllegalArgumentException ("AD_Original_ID is mandatory."); + set_Value (COLUMNNAME_AD_Original_ID, Integer.valueOf(AD_Original_ID)); + } + + /** Get AD_Original_ID. +@return AD_Original_ID */ + public int getAD_Original_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Original_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Imp_Detail_ID. + @param AD_Package_Imp_Detail_ID AD_Package_Imp_Detail_ID */ + public void setAD_Package_Imp_Detail_ID (int AD_Package_Imp_Detail_ID) + { + if (AD_Package_Imp_Detail_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_Detail_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Detail_ID, Integer.valueOf(AD_Package_Imp_Detail_ID)); + } + + /** Get AD_Package_Imp_Detail_ID. +@return AD_Package_Imp_Detail_ID */ + public int getAD_Package_Imp_Detail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_Detail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Package_Imp_ID. + @param AD_Package_Imp_ID AD_Package_Imp_ID */ + public void setAD_Package_Imp_ID (int AD_Package_Imp_ID) + { + if (AD_Package_Imp_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_ID, Integer.valueOf(AD_Package_Imp_ID)); + } + + /** Get AD_Package_Imp_ID. +@return AD_Package_Imp_ID */ + public int getAD_Package_Imp_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Action. + @param Action + Indicates the Action to be performed + */ + public void setAction (String Action) + { + if (Action != null && Action.length() > 20) + { + log.warning("Length > 20 - truncated"); + Action = Action.substring(0, 19); + } + set_Value (COLUMNNAME_Action, Action); + } + + /** Get Action. + @return Indicates the Action to be performed + */ + public String getAction () + { + return (String)get_Value(COLUMNNAME_Action); + } + + /** Set Ad_Backup_ID. + @param Ad_Backup_ID Ad_Backup_ID */ + public void setAd_Backup_ID (int Ad_Backup_ID) + { + if (Ad_Backup_ID <= 0) set_Value (COLUMNNAME_Ad_Backup_ID, null); + else + set_Value (COLUMNNAME_Ad_Backup_ID, Integer.valueOf(Ad_Backup_ID)); + } + + /** Get Ad_Backup_ID. +@return Ad_Backup_ID */ + public int getAd_Backup_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ad_Backup_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Success. + @param Success Success */ + public void setSuccess (String Success) + { + if (Success != null && Success.length() > 20) + { + log.warning("Length > 20 - truncated"); + Success = Success.substring(0, 19); + } + set_Value (COLUMNNAME_Success, Success); + } + + /** Get Success. +@return Success */ + public String getSuccess () + { + return (String)get_Value(COLUMNNAME_Success); + } + + /** Set DB Table Name. + @param TableName + Name of the table in the database + */ + public void setTableName (String TableName) + { + if (TableName != null && TableName.length() > 60) + { + log.warning("Length > 60 - truncated"); + TableName = TableName.substring(0, 59); + } + set_Value (COLUMNNAME_TableName, TableName); + } + + /** Get DB Table Name. + @return Name of the table in the database + */ + public String getTableName () + { + return (String)get_Value(COLUMNNAME_TableName); + } + + /** Set Type. + @param Type + Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type) + { + if (Type != null && Type.length() > 60) + { + log.warning("Length > 60 - truncated"); + Type = Type.substring(0, 59); + } + set_Value (COLUMNNAME_Type, Type); + } + + /** Get Type. + @return Type of Validation (SQL, Java Script, Java Language) + */ + public String getType () + { + return (String)get_Value(COLUMNNAME_Type); + } + + /** Set Uninstall. + @param Uninstall Uninstall */ + public void setUninstall (boolean Uninstall) + { + set_ValueNoCheck (COLUMNNAME_Uninstall, Boolean.valueOf(Uninstall)); + } + + /** Get Uninstall. +@return Uninstall */ + public boolean isUninstall () + { + Object oo = get_Value(COLUMNNAME_Uninstall); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java b/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java index e81d287e22..908edf19ee 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Inst.java @@ -1,342 +1,352 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Imp_Inst - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Imp_Inst extends PO + +/** Generated Model for AD_Package_Imp_Inst + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Imp_Inst extends PO implements I_AD_Package_Imp_Inst, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Imp_Inst_ID id -@param trxName transaction -*/ -public X_AD_Package_Imp_Inst (Properties ctx, int AD_Package_Imp_Inst_ID, String trxName) -{ -super (ctx, AD_Package_Imp_Inst_ID, trxName); -/** if (AD_Package_Imp_Inst_ID == 0) -{ -setAD_PACKAGE_IMP_INST_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Imp_Inst (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Imp_Inst */ -public static final String Table_Name="AD_Package_Imp_Inst"; - -/** AD_Table_ID=50001 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Inst[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set AD_PACKAGE_IMP_INST_ID. -@param AD_PACKAGE_IMP_INST_ID AD_PACKAGE_IMP_INST_ID */ -public void setAD_PACKAGE_IMP_INST_ID (int AD_PACKAGE_IMP_INST_ID) -{ -if (AD_PACKAGE_IMP_INST_ID < 1) throw new IllegalArgumentException ("AD_PACKAGE_IMP_INST_ID is mandatory."); -set_ValueNoCheck ("AD_PACKAGE_IMP_INST_ID", Integer.valueOf(AD_PACKAGE_IMP_INST_ID)); -} -/** Get AD_PACKAGE_IMP_INST_ID. -@return AD_PACKAGE_IMP_INST_ID */ -public int getAD_PACKAGE_IMP_INST_ID() -{ -Integer ii = (Integer)get_Value("AD_PACKAGE_IMP_INST_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PACKAGE_IMP_INST_ID */ -public static final String COLUMNNAME_AD_PACKAGE_IMP_INST_ID = "AD_PACKAGE_IMP_INST_ID"; -/** Set Creator. -@param Creator Creator */ -public void setCreator (String Creator) -{ -if (Creator != null && Creator.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Creator = Creator.substring(0,119); -} -set_Value ("Creator", Creator); -} -/** Get Creator. -@return Creator */ -public String getCreator() -{ -return (String)get_Value("Creator"); -} -/** Column name Creator */ -public static final String COLUMNNAME_Creator = "Creator"; -/** Set CreatorContact. -@param CreatorContact CreatorContact */ -public void setCreatorContact (String CreatorContact) -{ -if (CreatorContact != null && CreatorContact.length() > 510) -{ -log.warning("Length > 510 - truncated"); -CreatorContact = CreatorContact.substring(0,509); -} -set_Value ("CreatorContact", CreatorContact); -} -/** Get CreatorContact. -@return CreatorContact */ -public String getCreatorContact() -{ -return (String)get_Value("CreatorContact"); -} -/** Column name CreatorContact */ -public static final String COLUMNNAME_CreatorContact = "CreatorContact"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Description = Description.substring(0,1999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 120) -{ -log.warning("Length > 120 - truncated"); -EMail = EMail.substring(0,119); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 240) -{ -log.warning("Length > 240 - truncated"); -Name = Name.substring(0,239); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set PK_Status. -@param PK_Status PK_Status */ -public void setPK_Status (String PK_Status) -{ -if (PK_Status != null && PK_Status.length() > 44) -{ -log.warning("Length > 44 - truncated"); -PK_Status = PK_Status.substring(0,43); -} -set_Value ("PK_Status", PK_Status); -} -/** Get PK_Status. -@return PK_Status */ -public String getPK_Status() -{ -return (String)get_Value("PK_Status"); -} -/** Column name PK_Status */ -public static final String COLUMNNAME_PK_Status = "PK_Status"; -/** Set PK_Version. -@param PK_Version PK_Version */ -public void setPK_Version (String PK_Version) -{ -if (PK_Version != null && PK_Version.length() > 40) -{ -log.warning("Length > 40 - truncated"); -PK_Version = PK_Version.substring(0,39); -} -set_Value ("PK_Version", PK_Version); -} -/** Get PK_Version. -@return PK_Version */ -public String getPK_Version() -{ -return (String)get_Value("PK_Version"); -} -/** Column name PK_Version */ -public static final String COLUMNNAME_PK_Version = "PK_Version"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo != null && ReleaseNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ReleaseNo = ReleaseNo.substring(0,39); -} -set_Value ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; -/** Set Uninstall. -@param Uninstall Uninstall */ -public void setUninstall (boolean Uninstall) -{ -set_Value ("Uninstall", Boolean.valueOf(Uninstall)); -} -/** Get Uninstall. -@return Uninstall */ -public boolean isUninstall() -{ -Object oo = get_Value("Uninstall"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Uninstall */ -public static final String COLUMNNAME_Uninstall = "Uninstall"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version != null && Version.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Version = Version.substring(0,39); -} -set_Value ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Imp_Inst (Properties ctx, int AD_Package_Imp_Inst_ID, String trxName) + { + super (ctx, AD_Package_Imp_Inst_ID, trxName); + /** if (AD_Package_Imp_Inst_ID == 0) { setAD_PACKAGE_IMP_INST_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Imp_Inst (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Inst[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set AD_PACKAGE_IMP_INST_ID. + @param AD_PACKAGE_IMP_INST_ID AD_PACKAGE_IMP_INST_ID */ + public void setAD_PACKAGE_IMP_INST_ID (int AD_PACKAGE_IMP_INST_ID) + { + if (AD_PACKAGE_IMP_INST_ID < 1) + throw new IllegalArgumentException ("AD_PACKAGE_IMP_INST_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PACKAGE_IMP_INST_ID, Integer.valueOf(AD_PACKAGE_IMP_INST_ID)); + } + + /** Get AD_PACKAGE_IMP_INST_ID. +@return AD_PACKAGE_IMP_INST_ID */ + public int getAD_PACKAGE_IMP_INST_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PACKAGE_IMP_INST_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Creator. + @param Creator Creator */ + public void setCreator (String Creator) + { + if (Creator != null && Creator.length() > 120) + { + log.warning("Length > 120 - truncated"); + Creator = Creator.substring(0, 119); + } + set_Value (COLUMNNAME_Creator, Creator); + } + + /** Get Creator. +@return Creator */ + public String getCreator () + { + return (String)get_Value(COLUMNNAME_Creator); + } + + /** Set CreatorContact. + @param CreatorContact CreatorContact */ + public void setCreatorContact (String CreatorContact) + { + if (CreatorContact != null && CreatorContact.length() > 510) + { + log.warning("Length > 510 - truncated"); + CreatorContact = CreatorContact.substring(0, 509); + } + set_Value (COLUMNNAME_CreatorContact, CreatorContact); + } + + /** Get CreatorContact. +@return CreatorContact */ + public String getCreatorContact () + { + return (String)get_Value(COLUMNNAME_CreatorContact); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Description = Description.substring(0, 1999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 120) + { + log.warning("Length > 120 - truncated"); + EMail = EMail.substring(0, 119); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 240) + { + log.warning("Length > 240 - truncated"); + Name = Name.substring(0, 239); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set PK_Status. + @param PK_Status PK_Status */ + public void setPK_Status (String PK_Status) + { + if (PK_Status != null && PK_Status.length() > 44) + { + log.warning("Length > 44 - truncated"); + PK_Status = PK_Status.substring(0, 43); + } + set_Value (COLUMNNAME_PK_Status, PK_Status); + } + + /** Get PK_Status. +@return PK_Status */ + public String getPK_Status () + { + return (String)get_Value(COLUMNNAME_PK_Status); + } + + /** Set Package Version. + @param PK_Version Package Version */ + public void setPK_Version (String PK_Version) + { + if (PK_Version != null && PK_Version.length() > 40) + { + log.warning("Length > 40 - truncated"); + PK_Version = PK_Version.substring(0, 39); + } + set_Value (COLUMNNAME_PK_Version, PK_Version); + } + + /** Get Package Version. +@return Package Version */ + public String getPK_Version () + { + return (String)get_Value(COLUMNNAME_PK_Version); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { + if (ReleaseNo != null && ReleaseNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 39); + } + set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } + + /** Set Uninstall. + @param Uninstall Uninstall */ + public void setUninstall (boolean Uninstall) + { + set_Value (COLUMNNAME_Uninstall, Boolean.valueOf(Uninstall)); + } + + /** Get Uninstall. +@return Uninstall */ + public boolean isUninstall () + { + Object oo = get_Value(COLUMNNAME_Uninstall); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version != null && Version.length() > 40) + { + log.warning("Length > 40 - truncated"); + Version = Version.substring(0, 39); + } + set_Value (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java b/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java index 874c856f8c..5c30195f7a 100644 --- a/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java +++ b/base/src/org/compiere/model/X_AD_Package_Imp_Proc.java @@ -1,213 +1,208 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Package_Imp_Proc - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Package_Imp_Proc extends PO + +/** Generated Model for AD_Package_Imp_Proc + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Package_Imp_Proc extends PO implements I_AD_Package_Imp_Proc, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Package_Imp_Proc_ID id -@param trxName transaction -*/ -public X_AD_Package_Imp_Proc (Properties ctx, int AD_Package_Imp_Proc_ID, String trxName) -{ -super (ctx, AD_Package_Imp_Proc_ID, trxName); -/** if (AD_Package_Imp_Proc_ID == 0) -{ -setAD_Package_Imp_Proc_ID (0); -setAD_Package_Source_Type (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Package_Imp_Proc (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Package_Imp_Proc */ -public static final String Table_Name="AD_Package_Imp_Proc"; - -/** AD_Table_ID=50008 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Proc[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set AD_Override_Dict. -@param AD_Override_Dict AD_Override_Dict */ -public void setAD_Override_Dict (boolean AD_Override_Dict) -{ -set_Value ("AD_Override_Dict", Boolean.valueOf(AD_Override_Dict)); -} -/** Get AD_Override_Dict. -@return AD_Override_Dict */ -public boolean isAD_Override_Dict() -{ -Object oo = get_Value("AD_Override_Dict"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AD_Override_Dict */ -public static final String COLUMNNAME_AD_Override_Dict = "AD_Override_Dict"; -/** Set AD_Package_Dir. -@param AD_Package_Dir AD_Package_Dir */ -public void setAD_Package_Dir (String AD_Package_Dir) -{ -if (AD_Package_Dir != null && AD_Package_Dir.length() > 255) -{ -log.warning("Length > 255 - truncated"); -AD_Package_Dir = AD_Package_Dir.substring(0,254); -} -set_Value ("AD_Package_Dir", AD_Package_Dir); -} -/** Get AD_Package_Dir. -@return AD_Package_Dir */ -public String getAD_Package_Dir() -{ -return (String)get_Value("AD_Package_Dir"); -} -/** Column name AD_Package_Dir */ -public static final String COLUMNNAME_AD_Package_Dir = "AD_Package_Dir"; -/** Set AD_Package_Imp_Proc_ID. -@param AD_Package_Imp_Proc_ID AD_Package_Imp_Proc_ID */ -public void setAD_Package_Imp_Proc_ID (int AD_Package_Imp_Proc_ID) -{ -if (AD_Package_Imp_Proc_ID < 1) throw new IllegalArgumentException ("AD_Package_Imp_Proc_ID is mandatory."); -set_ValueNoCheck ("AD_Package_Imp_Proc_ID", Integer.valueOf(AD_Package_Imp_Proc_ID)); -} -/** Get AD_Package_Imp_Proc_ID. -@return AD_Package_Imp_Proc_ID */ -public int getAD_Package_Imp_Proc_ID() -{ -Integer ii = (Integer)get_Value("AD_Package_Imp_Proc_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Package_Imp_Proc_ID */ -public static final String COLUMNNAME_AD_Package_Imp_Proc_ID = "AD_Package_Imp_Proc_ID"; -/** Set AD_Package_Source. -@param AD_Package_Source AD_Package_Source */ -public void setAD_Package_Source (String AD_Package_Source) -{ -if (AD_Package_Source != null && AD_Package_Source.length() > 255) -{ -log.warning("Length > 255 - truncated"); -AD_Package_Source = AD_Package_Source.substring(0,254); -} -set_Value ("AD_Package_Source", AD_Package_Source); -} -/** Get AD_Package_Source. -@return AD_Package_Source */ -public String getAD_Package_Source() -{ -return (String)get_Value("AD_Package_Source"); -} -/** Column name AD_Package_Source */ -public static final String COLUMNNAME_AD_Package_Source = "AD_Package_Source"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Package_Imp_Proc (Properties ctx, int AD_Package_Imp_Proc_ID, String trxName) + { + super (ctx, AD_Package_Imp_Proc_ID, trxName); + /** if (AD_Package_Imp_Proc_ID == 0) { setAD_Package_Imp_Proc_ID (0); + setAD_Package_Source (null); + setAD_Package_Source_Type (null); +} */ + } + + /** Load Constructor */ + public X_AD_Package_Imp_Proc (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Package_Imp_Proc[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Update System Maintained Application Dictionary. + @param AD_Override_Dict Update System Maintained Application Dictionary */ + public void setAD_Override_Dict (boolean AD_Override_Dict) + { + set_Value (COLUMNNAME_AD_Override_Dict, Boolean.valueOf(AD_Override_Dict)); + } + + /** Get Update System Maintained Application Dictionary. +@return Update System Maintained Application Dictionary */ + public boolean isAD_Override_Dict () + { + Object oo = get_Value(COLUMNNAME_AD_Override_Dict); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Package Directory. + @param AD_Package_Dir + Package directory, default to AdempiereHome/packages + */ + public void setAD_Package_Dir (String AD_Package_Dir) + { + if (AD_Package_Dir != null && AD_Package_Dir.length() > 255) + { + log.warning("Length > 255 - truncated"); + AD_Package_Dir = AD_Package_Dir.substring(0, 254); + } + set_Value (COLUMNNAME_AD_Package_Dir, AD_Package_Dir); + } + + /** Get Package Directory. + @return Package directory, default to AdempiereHome/packages + */ + public String getAD_Package_Dir () + { + return (String)get_Value(COLUMNNAME_AD_Package_Dir); + } + + /** Set AD_Package_Imp_Proc_ID. + @param AD_Package_Imp_Proc_ID AD_Package_Imp_Proc_ID */ + public void setAD_Package_Imp_Proc_ID (int AD_Package_Imp_Proc_ID) + { + if (AD_Package_Imp_Proc_ID < 1) + throw new IllegalArgumentException ("AD_Package_Imp_Proc_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Package_Imp_Proc_ID, Integer.valueOf(AD_Package_Imp_Proc_ID)); + } + + /** Get AD_Package_Imp_Proc_ID. +@return AD_Package_Imp_Proc_ID */ + public int getAD_Package_Imp_Proc_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Package_Imp_Proc_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Package Source. + @param AD_Package_Source + Fully qualified package source file name + */ + public void setAD_Package_Source (String AD_Package_Source) + { + if (AD_Package_Source == null) + throw new IllegalArgumentException ("AD_Package_Source is mandatory."); + if (AD_Package_Source.length() > 255) + { + log.warning("Length > 255 - truncated"); + AD_Package_Source = AD_Package_Source.substring(0, 254); + } + set_Value (COLUMNNAME_AD_Package_Source, AD_Package_Source); + } + + /** Get Package Source. + @return Fully qualified package source file name + */ + public String getAD_Package_Source () + { + return (String)get_Value(COLUMNNAME_AD_Package_Source); + } /** AD_Package_Source_Type AD_Reference_ID=50005 */ -public static final int AD_PACKAGE_SOURCE_TYPE_AD_Reference_ID=50005; -/** File = File */ -public static final String AD_PACKAGE_SOURCE_TYPE_File = "File"; -/** WebService = WS */ +public static final int AD_PACKAGE_SOURCE_TYPE_AD_Reference_ID=50005;/** File = File */ +public static final String AD_PACKAGE_SOURCE_TYPE_File = "File";/** WebService = WS */ public static final String AD_PACKAGE_SOURCE_TYPE_WebService = "WS"; -/** Set AD_Package_Source_Type. -@param AD_Package_Source_Type AD_Package_Source_Type */ -public void setAD_Package_Source_Type (String AD_Package_Source_Type) -{ -if (AD_Package_Source_Type == null) throw new IllegalArgumentException ("AD_Package_Source_Type is mandatory"); -if (AD_Package_Source_Type.equals("File") || AD_Package_Source_Type.equals("WS")); - else throw new IllegalArgumentException ("AD_Package_Source_Type Invalid value - " + AD_Package_Source_Type + " - Reference_ID=50005 - File - WS"); -if (AD_Package_Source_Type.length() > 10) -{ -log.warning("Length > 10 - truncated"); -AD_Package_Source_Type = AD_Package_Source_Type.substring(0,9); -} -set_Value ("AD_Package_Source_Type", AD_Package_Source_Type); -} -/** Get AD_Package_Source_Type. -@return AD_Package_Source_Type */ -public String getAD_Package_Source_Type() -{ -return (String)get_Value("AD_Package_Source_Type"); -} -/** Column name AD_Package_Source_Type */ -public static final String COLUMNNAME_AD_Package_Source_Type = "AD_Package_Source_Type"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Package Source Type. + @param AD_Package_Source_Type + Type of package source - file, ftp, webservice etc + */ + public void setAD_Package_Source_Type (String AD_Package_Source_Type) + { +if (AD_Package_Source_Type == null) throw new IllegalArgumentException ("AD_Package_Source_Type is mandatory");if (AD_Package_Source_Type.equals("File") || AD_Package_Source_Type.equals("WS")); else throw new IllegalArgumentException ("AD_Package_Source_Type Invalid value - " + AD_Package_Source_Type + " - Reference_ID=50005 - File - WS"); if (AD_Package_Source_Type.length() > 10) + { + log.warning("Length > 10 - truncated"); + AD_Package_Source_Type = AD_Package_Source_Type.substring(0, 9); + } + set_Value (COLUMNNAME_AD_Package_Source_Type, AD_Package_Source_Type); + } + + /** Get Package Source Type. + @return Type of package source - file, ftp, webservice etc + */ + public String getAD_Package_Source_Type () + { + return (String)get_Value(COLUMNNAME_AD_Package_Source_Type); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Preference.java b/base/src/org/compiere/model/X_AD_Preference.java index 9698a9c88a..4da1290c91 100644 --- a/base/src/org/compiere/model/X_AD_Preference.java +++ b/base/src/org/compiere/model/X_AD_Preference.java @@ -1,189 +1,226 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Preference - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Preference extends PO + +/** Generated Model for AD_Preference + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Preference extends PO implements I_AD_Preference, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Preference_ID id -@param trxName transaction -*/ -public X_AD_Preference (Properties ctx, int AD_Preference_ID, String trxName) -{ -super (ctx, AD_Preference_ID, trxName); -/** if (AD_Preference_ID == 0) -{ -setAD_Preference_ID (0); -setAttribute (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Preference (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Preference */ -public static final String Table_Name="AD_Preference"; - -/** AD_Table_ID=195 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Preference[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Preference. -@param AD_Preference_ID Personal Value Preference */ -public void setAD_Preference_ID (int AD_Preference_ID) -{ -if (AD_Preference_ID < 1) throw new IllegalArgumentException ("AD_Preference_ID is mandatory."); -set_ValueNoCheck ("AD_Preference_ID", Integer.valueOf(AD_Preference_ID)); -} -/** Get Preference. -@return Personal Value Preference */ -public int getAD_Preference_ID() -{ -Integer ii = (Integer)get_Value("AD_Preference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Preference_ID */ -public static final String COLUMNNAME_AD_Preference_ID = "AD_Preference_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Attribute. -@param Attribute Attribute */ -public void setAttribute (String Attribute) -{ -if (Attribute == null) throw new IllegalArgumentException ("Attribute is mandatory."); -if (Attribute.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Attribute = Attribute.substring(0,59); -} -set_Value ("Attribute", Attribute); -} -/** Get Attribute. -@return Attribute */ -public String getAttribute() -{ -return (String)get_Value("Attribute"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getAttribute()); -} -/** Column name Attribute */ -public static final String COLUMNNAME_Attribute = "Attribute"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Value = Value.substring(0,59); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Preference (Properties ctx, int AD_Preference_ID, String trxName) + { + super (ctx, AD_Preference_ID, trxName); + /** if (AD_Preference_ID == 0) { setAD_Preference_ID (0); + setAttribute (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Preference (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Preference[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Preference. + @param AD_Preference_ID + Personal Value Preference + */ + public void setAD_Preference_ID (int AD_Preference_ID) + { + if (AD_Preference_ID < 1) + throw new IllegalArgumentException ("AD_Preference_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Preference_ID, Integer.valueOf(AD_Preference_ID)); + } + + /** Get Preference. + @return Personal Value Preference + */ + public int getAD_Preference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Preference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute. + @param Attribute Attribute */ + public void setAttribute (String Attribute) + { + if (Attribute == null) + throw new IllegalArgumentException ("Attribute is mandatory."); + if (Attribute.length() > 60) + { + log.warning("Length > 60 - truncated"); + Attribute = Attribute.substring(0, 59); + } + set_Value (COLUMNNAME_Attribute, Attribute); + } + + /** Get Attribute. +@return Attribute */ + public String getAttribute () + { + return (String)get_Value(COLUMNNAME_Attribute); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getAttribute()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 60) + { + log.warning("Length > 60 - truncated"); + Value = Value.substring(0, 59); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintColor.java b/base/src/org/compiere/model/X_AD_PrintColor.java index 341390bc74..ea459aa20c 100644 --- a/base/src/org/compiere/model/X_AD_PrintColor.java +++ b/base/src/org/compiere/model/X_AD_PrintColor.java @@ -1,174 +1,178 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintColor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintColor extends PO + +/** Generated Model for AD_PrintColor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintColor extends PO implements I_AD_PrintColor, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintColor_ID id -@param trxName transaction -*/ -public X_AD_PrintColor (Properties ctx, int AD_PrintColor_ID, String trxName) -{ -super (ctx, AD_PrintColor_ID, trxName); -/** if (AD_PrintColor_ID == 0) -{ -setAD_PrintColor_ID (0); -setCode (null); -setIsDefault (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintColor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintColor */ -public static final String Table_Name="AD_PrintColor"; - -/** AD_Table_ID=490 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintColor[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID < 1) throw new IllegalArgumentException ("AD_PrintColor_ID is mandatory."); -set_ValueNoCheck ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Validation code. -@param Code Validation Code */ -public void setCode (String Code) -{ -if (Code == null) throw new IllegalArgumentException ("Code is mandatory."); -if (Code.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Code = Code.substring(0,1999); -} -set_Value ("Code", Code); -} -/** Get Validation code. -@return Validation Code */ -public String getCode() -{ -return (String)get_Value("Code"); -} -/** Column name Code */ -public static final String COLUMNNAME_Code = "Code"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintColor (Properties ctx, int AD_PrintColor_ID, String trxName) + { + super (ctx, AD_PrintColor_ID, trxName); + /** if (AD_PrintColor_ID == 0) { setAD_PrintColor_ID (0); + setCode (null); + setIsDefault (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintColor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintColor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID < 1) + throw new IllegalArgumentException ("AD_PrintColor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Validation code. + @param Code + Validation Code + */ + public void setCode (String Code) + { + if (Code == null) + throw new IllegalArgumentException ("Code is mandatory."); + if (Code.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Code = Code.substring(0, 1999); + } + set_Value (COLUMNNAME_Code, Code); + } + + /** Get Validation code. + @return Validation Code + */ + public String getCode () + { + return (String)get_Value(COLUMNNAME_Code); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintFont.java b/base/src/org/compiere/model/X_AD_PrintFont.java index 948a5bd30d..4a56fa519a 100644 --- a/base/src/org/compiere/model/X_AD_PrintFont.java +++ b/base/src/org/compiere/model/X_AD_PrintFont.java @@ -1,174 +1,178 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintFont - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintFont extends PO + +/** Generated Model for AD_PrintFont + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintFont extends PO implements I_AD_PrintFont, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintFont_ID id -@param trxName transaction -*/ -public X_AD_PrintFont (Properties ctx, int AD_PrintFont_ID, String trxName) -{ -super (ctx, AD_PrintFont_ID, trxName); -/** if (AD_PrintFont_ID == 0) -{ -setAD_PrintFont_ID (0); -setCode (null); -setIsDefault (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintFont (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintFont */ -public static final String Table_Name="AD_PrintFont"; - -/** AD_Table_ID=491 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintFont[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Font. -@param AD_PrintFont_ID Maintain Print Font */ -public void setAD_PrintFont_ID (int AD_PrintFont_ID) -{ -if (AD_PrintFont_ID < 1) throw new IllegalArgumentException ("AD_PrintFont_ID is mandatory."); -set_ValueNoCheck ("AD_PrintFont_ID", Integer.valueOf(AD_PrintFont_ID)); -} -/** Get Print Font. -@return Maintain Print Font */ -public int getAD_PrintFont_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFont_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFont_ID */ -public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; -/** Set Validation code. -@param Code Validation Code */ -public void setCode (String Code) -{ -if (Code == null) throw new IllegalArgumentException ("Code is mandatory."); -if (Code.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Code = Code.substring(0,1999); -} -set_Value ("Code", Code); -} -/** Get Validation code. -@return Validation Code */ -public String getCode() -{ -return (String)get_Value("Code"); -} -/** Column name Code */ -public static final String COLUMNNAME_Code = "Code"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintFont (Properties ctx, int AD_PrintFont_ID, String trxName) + { + super (ctx, AD_PrintFont_ID, trxName); + /** if (AD_PrintFont_ID == 0) { setAD_PrintFont_ID (0); + setCode (null); + setIsDefault (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintFont (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintFont[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Print Font. + @param AD_PrintFont_ID + Maintain Print Font + */ + public void setAD_PrintFont_ID (int AD_PrintFont_ID) + { + if (AD_PrintFont_ID < 1) + throw new IllegalArgumentException ("AD_PrintFont_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); + } + + /** Get Print Font. + @return Maintain Print Font + */ + public int getAD_PrintFont_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFont_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Validation code. + @param Code + Validation Code + */ + public void setCode (String Code) + { + if (Code == null) + throw new IllegalArgumentException ("Code is mandatory."); + if (Code.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Code = Code.substring(0, 1999); + } + set_Value (COLUMNNAME_Code, Code); + } + + /** Get Validation code. + @return Validation Code + */ + public String getCode () + { + return (String)get_Value(COLUMNNAME_Code); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintForm.java b/base/src/org/compiere/model/X_AD_PrintForm.java index ab12a3b97a..d378254b65 100644 --- a/base/src/org/compiere/model/X_AD_PrintForm.java +++ b/base/src/org/compiere/model/X_AD_PrintForm.java @@ -1,361 +1,390 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintForm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintForm extends PO + +/** Generated Model for AD_PrintForm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintForm extends PO implements I_AD_PrintForm, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintForm_ID id -@param trxName transaction -*/ -public X_AD_PrintForm (Properties ctx, int AD_PrintForm_ID, String trxName) -{ -super (ctx, AD_PrintForm_ID, trxName); -/** if (AD_PrintForm_ID == 0) -{ -setAD_PrintForm_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintForm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintForm */ -public static final String Table_Name="AD_PrintForm"; - -/** AD_Table_ID=454 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintForm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Form. -@param AD_PrintForm_ID Form */ -public void setAD_PrintForm_ID (int AD_PrintForm_ID) -{ -if (AD_PrintForm_ID < 1) throw new IllegalArgumentException ("AD_PrintForm_ID is mandatory."); -set_ValueNoCheck ("AD_PrintForm_ID", Integer.valueOf(AD_PrintForm_ID)); -} -/** Get Print Form. -@return Form */ -public int getAD_PrintForm_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintForm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintForm_ID */ -public static final String COLUMNNAME_AD_PrintForm_ID = "AD_PrintForm_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintForm (Properties ctx, int AD_PrintForm_ID, String trxName) + { + super (ctx, AD_PrintForm_ID, trxName); + /** if (AD_PrintForm_ID == 0) { setAD_PrintForm_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintForm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintForm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Print Form. + @param AD_PrintForm_ID + Form + */ + public void setAD_PrintForm_ID (int AD_PrintForm_ID) + { + if (AD_PrintForm_ID < 1) + throw new IllegalArgumentException ("AD_PrintForm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintForm_ID, Integer.valueOf(AD_PrintForm_ID)); + } + + /** Get Print Form. + @return Form + */ + public int getAD_PrintForm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintForm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** Invoice_MailText_ID AD_Reference_ID=274 */ public static final int INVOICE_MAILTEXT_ID_AD_Reference_ID=274; -/** Set Invoice Mail Text. -@param Invoice_MailText_ID Email text used for sending invoices */ -public void setInvoice_MailText_ID (int Invoice_MailText_ID) -{ -if (Invoice_MailText_ID <= 0) set_Value ("Invoice_MailText_ID", null); - else -set_Value ("Invoice_MailText_ID", Integer.valueOf(Invoice_MailText_ID)); -} -/** Get Invoice Mail Text. -@return Email text used for sending invoices */ -public int getInvoice_MailText_ID() -{ -Integer ii = (Integer)get_Value("Invoice_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Invoice_MailText_ID */ -public static final String COLUMNNAME_Invoice_MailText_ID = "Invoice_MailText_ID"; + /** Set Invoice Mail Text. + @param Invoice_MailText_ID + Email text used for sending invoices + */ + public void setInvoice_MailText_ID (int Invoice_MailText_ID) + { + if (Invoice_MailText_ID <= 0) set_Value (COLUMNNAME_Invoice_MailText_ID, null); + else + set_Value (COLUMNNAME_Invoice_MailText_ID, Integer.valueOf(Invoice_MailText_ID)); + } + + /** Get Invoice Mail Text. + @return Email text used for sending invoices + */ + public int getInvoice_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Invoice_PrintFormat_ID AD_Reference_ID=261 */ public static final int INVOICE_PRINTFORMAT_ID_AD_Reference_ID=261; -/** Set Invoice Print Format. -@param Invoice_PrintFormat_ID Print Format for printing Invoices */ -public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) -{ -if (Invoice_PrintFormat_ID <= 0) set_Value ("Invoice_PrintFormat_ID", null); - else -set_Value ("Invoice_PrintFormat_ID", Integer.valueOf(Invoice_PrintFormat_ID)); -} -/** Get Invoice Print Format. -@return Print Format for printing Invoices */ -public int getInvoice_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Invoice_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Invoice_PrintFormat_ID */ -public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Invoice Print Format. + @param Invoice_PrintFormat_ID + Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) + { + if (Invoice_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Invoice_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Invoice_PrintFormat_ID, Integer.valueOf(Invoice_PrintFormat_ID)); + } + + /** Get Invoice Print Format. + @return Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Order_MailText_ID AD_Reference_ID=274 */ public static final int ORDER_MAILTEXT_ID_AD_Reference_ID=274; -/** Set Order Mail Text. -@param Order_MailText_ID Email text used for sending order acknowledgements or quotations */ -public void setOrder_MailText_ID (int Order_MailText_ID) -{ -if (Order_MailText_ID <= 0) set_Value ("Order_MailText_ID", null); - else -set_Value ("Order_MailText_ID", Integer.valueOf(Order_MailText_ID)); -} -/** Get Order Mail Text. -@return Email text used for sending order acknowledgements or quotations */ -public int getOrder_MailText_ID() -{ -Integer ii = (Integer)get_Value("Order_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Order_MailText_ID */ -public static final String COLUMNNAME_Order_MailText_ID = "Order_MailText_ID"; + /** Set Order Mail Text. + @param Order_MailText_ID + Email text used for sending order acknowledgements or quotations + */ + public void setOrder_MailText_ID (int Order_MailText_ID) + { + if (Order_MailText_ID <= 0) set_Value (COLUMNNAME_Order_MailText_ID, null); + else + set_Value (COLUMNNAME_Order_MailText_ID, Integer.valueOf(Order_MailText_ID)); + } + + /** Get Order Mail Text. + @return Email text used for sending order acknowledgements or quotations + */ + public int getOrder_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Order_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Order_PrintFormat_ID AD_Reference_ID=262 */ public static final int ORDER_PRINTFORMAT_ID_AD_Reference_ID=262; -/** Set Order Print Format. -@param Order_PrintFormat_ID Print Format for Orders, Quotes, Offers */ -public void setOrder_PrintFormat_ID (int Order_PrintFormat_ID) -{ -if (Order_PrintFormat_ID <= 0) set_Value ("Order_PrintFormat_ID", null); - else -set_Value ("Order_PrintFormat_ID", Integer.valueOf(Order_PrintFormat_ID)); -} -/** Get Order Print Format. -@return Print Format for Orders, Quotes, Offers */ -public int getOrder_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Order_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Order_PrintFormat_ID */ -public static final String COLUMNNAME_Order_PrintFormat_ID = "Order_PrintFormat_ID"; + /** Set Order Print Format. + @param Order_PrintFormat_ID + Print Format for Orders, Quotes, Offers + */ + public void setOrder_PrintFormat_ID (int Order_PrintFormat_ID) + { + if (Order_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Order_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Order_PrintFormat_ID, Integer.valueOf(Order_PrintFormat_ID)); + } + + /** Get Order Print Format. + @return Print Format for Orders, Quotes, Offers + */ + public int getOrder_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Order_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Project_MailText_ID AD_Reference_ID=274 */ public static final int PROJECT_MAILTEXT_ID_AD_Reference_ID=274; -/** Set Project Mail Text. -@param Project_MailText_ID Standard text for Project EMails */ -public void setProject_MailText_ID (int Project_MailText_ID) -{ -if (Project_MailText_ID <= 0) set_Value ("Project_MailText_ID", null); - else -set_Value ("Project_MailText_ID", Integer.valueOf(Project_MailText_ID)); -} -/** Get Project Mail Text. -@return Standard text for Project EMails */ -public int getProject_MailText_ID() -{ -Integer ii = (Integer)get_Value("Project_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Project_MailText_ID */ -public static final String COLUMNNAME_Project_MailText_ID = "Project_MailText_ID"; + /** Set Project Mail Text. + @param Project_MailText_ID + Standard text for Project EMails + */ + public void setProject_MailText_ID (int Project_MailText_ID) + { + if (Project_MailText_ID <= 0) set_Value (COLUMNNAME_Project_MailText_ID, null); + else + set_Value (COLUMNNAME_Project_MailText_ID, Integer.valueOf(Project_MailText_ID)); + } + + /** Get Project Mail Text. + @return Standard text for Project EMails + */ + public int getProject_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Project_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Project_PrintFormat_ID AD_Reference_ID=259 */ public static final int PROJECT_PRINTFORMAT_ID_AD_Reference_ID=259; -/** Set Project Print Format. -@param Project_PrintFormat_ID Standard Project Print Format */ -public void setProject_PrintFormat_ID (int Project_PrintFormat_ID) -{ -if (Project_PrintFormat_ID <= 0) set_Value ("Project_PrintFormat_ID", null); - else -set_Value ("Project_PrintFormat_ID", Integer.valueOf(Project_PrintFormat_ID)); -} -/** Get Project Print Format. -@return Standard Project Print Format */ -public int getProject_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Project_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Project_PrintFormat_ID */ -public static final String COLUMNNAME_Project_PrintFormat_ID = "Project_PrintFormat_ID"; + /** Set Project Print Format. + @param Project_PrintFormat_ID + Standard Project Print Format + */ + public void setProject_PrintFormat_ID (int Project_PrintFormat_ID) + { + if (Project_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Project_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Project_PrintFormat_ID, Integer.valueOf(Project_PrintFormat_ID)); + } + + /** Get Project Print Format. + @return Standard Project Print Format + */ + public int getProject_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Project_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Remittance_MailText_ID AD_Reference_ID=274 */ public static final int REMITTANCE_MAILTEXT_ID_AD_Reference_ID=274; -/** Set Remittance Mail Text. -@param Remittance_MailText_ID Email text used for sending payment remittances */ -public void setRemittance_MailText_ID (int Remittance_MailText_ID) -{ -if (Remittance_MailText_ID <= 0) set_Value ("Remittance_MailText_ID", null); - else -set_Value ("Remittance_MailText_ID", Integer.valueOf(Remittance_MailText_ID)); -} -/** Get Remittance Mail Text. -@return Email text used for sending payment remittances */ -public int getRemittance_MailText_ID() -{ -Integer ii = (Integer)get_Value("Remittance_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Remittance_MailText_ID */ -public static final String COLUMNNAME_Remittance_MailText_ID = "Remittance_MailText_ID"; + /** Set Remittance Mail Text. + @param Remittance_MailText_ID + Email text used for sending payment remittances + */ + public void setRemittance_MailText_ID (int Remittance_MailText_ID) + { + if (Remittance_MailText_ID <= 0) set_Value (COLUMNNAME_Remittance_MailText_ID, null); + else + set_Value (COLUMNNAME_Remittance_MailText_ID, Integer.valueOf(Remittance_MailText_ID)); + } + + /** Get Remittance Mail Text. + @return Email text used for sending payment remittances + */ + public int getRemittance_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Remittance_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Remittance_PrintFormat_ID AD_Reference_ID=268 */ public static final int REMITTANCE_PRINTFORMAT_ID_AD_Reference_ID=268; -/** Set Remittance Print Format. -@param Remittance_PrintFormat_ID Print Format for separate Remittances */ -public void setRemittance_PrintFormat_ID (int Remittance_PrintFormat_ID) -{ -if (Remittance_PrintFormat_ID <= 0) set_Value ("Remittance_PrintFormat_ID", null); - else -set_Value ("Remittance_PrintFormat_ID", Integer.valueOf(Remittance_PrintFormat_ID)); -} -/** Get Remittance Print Format. -@return Print Format for separate Remittances */ -public int getRemittance_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Remittance_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Remittance_PrintFormat_ID */ -public static final String COLUMNNAME_Remittance_PrintFormat_ID = "Remittance_PrintFormat_ID"; + /** Set Remittance Print Format. + @param Remittance_PrintFormat_ID + Print Format for separate Remittances + */ + public void setRemittance_PrintFormat_ID (int Remittance_PrintFormat_ID) + { + if (Remittance_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Remittance_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Remittance_PrintFormat_ID, Integer.valueOf(Remittance_PrintFormat_ID)); + } + + /** Get Remittance Print Format. + @return Print Format for separate Remittances + */ + public int getRemittance_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Remittance_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Shipment_MailText_ID AD_Reference_ID=274 */ public static final int SHIPMENT_MAILTEXT_ID_AD_Reference_ID=274; -/** Set Shipment Mail Text. -@param Shipment_MailText_ID Email text used for sending delivery notes */ -public void setShipment_MailText_ID (int Shipment_MailText_ID) -{ -if (Shipment_MailText_ID <= 0) set_Value ("Shipment_MailText_ID", null); - else -set_Value ("Shipment_MailText_ID", Integer.valueOf(Shipment_MailText_ID)); -} -/** Get Shipment Mail Text. -@return Email text used for sending delivery notes */ -public int getShipment_MailText_ID() -{ -Integer ii = (Integer)get_Value("Shipment_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Shipment_MailText_ID */ -public static final String COLUMNNAME_Shipment_MailText_ID = "Shipment_MailText_ID"; + /** Set Shipment Mail Text. + @param Shipment_MailText_ID + Email text used for sending delivery notes + */ + public void setShipment_MailText_ID (int Shipment_MailText_ID) + { + if (Shipment_MailText_ID <= 0) set_Value (COLUMNNAME_Shipment_MailText_ID, null); + else + set_Value (COLUMNNAME_Shipment_MailText_ID, Integer.valueOf(Shipment_MailText_ID)); + } + + /** Get Shipment Mail Text. + @return Email text used for sending delivery notes + */ + public int getShipment_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Shipment_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Shipment_PrintFormat_ID AD_Reference_ID=263 */ public static final int SHIPMENT_PRINTFORMAT_ID_AD_Reference_ID=263; -/** Set Shipment Print Format. -@param Shipment_PrintFormat_ID Print Format for Shipments, Receipts, Pick Lists */ -public void setShipment_PrintFormat_ID (int Shipment_PrintFormat_ID) -{ -if (Shipment_PrintFormat_ID <= 0) set_Value ("Shipment_PrintFormat_ID", null); - else -set_Value ("Shipment_PrintFormat_ID", Integer.valueOf(Shipment_PrintFormat_ID)); -} -/** Get Shipment Print Format. -@return Print Format for Shipments, Receipts, Pick Lists */ -public int getShipment_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Shipment_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Shipment_PrintFormat_ID */ -public static final String COLUMNNAME_Shipment_PrintFormat_ID = "Shipment_PrintFormat_ID"; -} + /** Set Shipment Print Format. + @param Shipment_PrintFormat_ID + Print Format for Shipments, Receipts, Pick Lists + */ + public void setShipment_PrintFormat_ID (int Shipment_PrintFormat_ID) + { + if (Shipment_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Shipment_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Shipment_PrintFormat_ID, Integer.valueOf(Shipment_PrintFormat_ID)); + } + + /** Get Shipment Print Format. + @return Print Format for Shipments, Receipts, Pick Lists + */ + public int getShipment_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Shipment_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintFormat.java b/base/src/org/compiere/model/X_AD_PrintFormat.java index ac9dadda6e..388ca6273a 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintFormat.java @@ -1,436 +1,592 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintFormat - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintFormat extends PO + +/** Generated Model for AD_PrintFormat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintFormat extends PO implements I_AD_PrintFormat, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintFormat_ID id -@param trxName transaction -*/ -public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID, String trxName) -{ -super (ctx, AD_PrintFormat_ID, trxName); -/** if (AD_PrintFormat_ID == 0) -{ -setAD_PrintColor_ID (0); -setAD_PrintFont_ID (0); -setAD_PrintFormat_ID (0); // 0 -setAD_PrintPaper_ID (0); -setAD_Table_ID (0); -setFooterMargin (0); -setHeaderMargin (0); -setIsDefault (false); -setIsForm (false); -setIsStandardHeaderFooter (true); // Y -setIsTableBased (true); // Y -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintFormat (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintFormat */ -public static final String Table_Name="AD_PrintFormat"; - -/** AD_Table_ID=493 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintFormat[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID < 1) throw new IllegalArgumentException ("AD_PrintColor_ID is mandatory."); -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Print Font. -@param AD_PrintFont_ID Maintain Print Font */ -public void setAD_PrintFont_ID (int AD_PrintFont_ID) -{ -if (AD_PrintFont_ID < 1) throw new IllegalArgumentException ("AD_PrintFont_ID is mandatory."); -set_Value ("AD_PrintFont_ID", Integer.valueOf(AD_PrintFont_ID)); -} -/** Get Print Font. -@return Maintain Print Font */ -public int getAD_PrintFont_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFont_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFont_ID */ -public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID < 1) throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); -set_ValueNoCheck ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set Print Paper. -@param AD_PrintPaper_ID Printer paper definition */ -public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) -{ -if (AD_PrintPaper_ID < 1) throw new IllegalArgumentException ("AD_PrintPaper_ID is mandatory."); -set_Value ("AD_PrintPaper_ID", Integer.valueOf(AD_PrintPaper_ID)); -} -/** Get Print Paper. -@return Printer paper definition */ -public int getAD_PrintPaper_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintPaper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintPaper_ID */ -public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID"; -/** Set Print Table Format. -@param AD_PrintTableFormat_ID Table Format in Reports */ -public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) -{ -if (AD_PrintTableFormat_ID <= 0) set_Value ("AD_PrintTableFormat_ID", null); - else -set_Value ("AD_PrintTableFormat_ID", Integer.valueOf(AD_PrintTableFormat_ID)); -} -/** Get Print Table Format. -@return Table Format in Reports */ -public int getAD_PrintTableFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintTableFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintTableFormat_ID */ -public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID"; -/** Set Report View. -@param AD_ReportView_ID View used to generate this report */ -public void setAD_ReportView_ID (int AD_ReportView_ID) -{ -if (AD_ReportView_ID <= 0) set_ValueNoCheck ("AD_ReportView_ID", null); - else -set_ValueNoCheck ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); -} -/** Get Report View. -@return View used to generate this report */ -public int getAD_ReportView_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReportView_ID */ -public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Create Copy. -@param CreateCopy Create Copy */ -public void setCreateCopy (String CreateCopy) -{ -if (CreateCopy != null && CreateCopy.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateCopy = CreateCopy.substring(0,0); -} -set_Value ("CreateCopy", CreateCopy); -} -/** Get Create Copy. -@return Create Copy */ -public String getCreateCopy() -{ -return (String)get_Value("CreateCopy"); -} -/** Column name CreateCopy */ -public static final String COLUMNNAME_CreateCopy = "CreateCopy"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Footer Margin. -@param FooterMargin Margin of the Footer in 1/72 of an inch */ -public void setFooterMargin (int FooterMargin) -{ -set_Value ("FooterMargin", Integer.valueOf(FooterMargin)); -} -/** Get Footer Margin. -@return Margin of the Footer in 1/72 of an inch */ -public int getFooterMargin() -{ -Integer ii = (Integer)get_Value("FooterMargin"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FooterMargin */ -public static final String COLUMNNAME_FooterMargin = "FooterMargin"; -/** Set Header Margin. -@param HeaderMargin Margin of the Header in 1/72 of an inch */ -public void setHeaderMargin (int HeaderMargin) -{ -set_Value ("HeaderMargin", Integer.valueOf(HeaderMargin)); -} -/** Get Header Margin. -@return Margin of the Header in 1/72 of an inch */ -public int getHeaderMargin() -{ -Integer ii = (Integer)get_Value("HeaderMargin"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HeaderMargin */ -public static final String COLUMNNAME_HeaderMargin = "HeaderMargin"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Form. -@param IsForm If Selected, a Form is printed, if not selected a columnar List report */ -public void setIsForm (boolean IsForm) -{ -set_Value ("IsForm", Boolean.valueOf(IsForm)); -} -/** Get Form. -@return If Selected, a Form is printed, if not selected a columnar List report */ -public boolean isForm() -{ -Object oo = get_Value("IsForm"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsForm */ -public static final String COLUMNNAME_IsForm = "IsForm"; -/** Set Standard Header/Footer. -@param IsStandardHeaderFooter The standard Header and Footer is used */ -public void setIsStandardHeaderFooter (boolean IsStandardHeaderFooter) -{ -set_Value ("IsStandardHeaderFooter", Boolean.valueOf(IsStandardHeaderFooter)); -} -/** Get Standard Header/Footer. -@return The standard Header and Footer is used */ -public boolean isStandardHeaderFooter() -{ -Object oo = get_Value("IsStandardHeaderFooter"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsStandardHeaderFooter */ -public static final String COLUMNNAME_IsStandardHeaderFooter = "IsStandardHeaderFooter"; -/** Set Table Based. -@param IsTableBased Table based List Reporting */ -public void setIsTableBased (boolean IsTableBased) -{ -set_ValueNoCheck ("IsTableBased", Boolean.valueOf(IsTableBased)); -} -/** Get Table Based. -@return Table based List Reporting */ -public boolean isTableBased() -{ -Object oo = get_Value("IsTableBased"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTableBased */ -public static final String COLUMNNAME_IsTableBased = "IsTableBased"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintFormat (Properties ctx, int AD_PrintFormat_ID, String trxName) + { + super (ctx, AD_PrintFormat_ID, trxName); + /** if (AD_PrintFormat_ID == 0) { setAD_PrintColor_ID (0); + setAD_PrintFont_ID (0); + setAD_PrintFormat_ID (0); +// 0 + setAD_PrintPaper_ID (0); + setAD_Table_ID (0); + setFooterMargin (0); + setHeaderMargin (0); + setIsDefault (false); + setIsForm (false); + setIsStandardHeaderFooter (true); +// Y + setIsTableBased (true); +// Y + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintFormat (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintFormat[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID < 1) + throw new IllegalArgumentException ("AD_PrintColor_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintFont getI_AD_PrintFont() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Font. + @param AD_PrintFont_ID + Maintain Print Font + */ + public void setAD_PrintFont_ID (int AD_PrintFont_ID) + { + if (AD_PrintFont_ID < 1) + throw new IllegalArgumentException ("AD_PrintFont_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); + } + + /** Get Print Font. + @return Maintain Print Font + */ + public int getAD_PrintFont_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFont_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID < 1) + throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintPaper getI_AD_PrintPaper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Paper. + @param AD_PrintPaper_ID + Printer paper definition + */ + public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) + { + if (AD_PrintPaper_ID < 1) + throw new IllegalArgumentException ("AD_PrintPaper_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); + } + + /** Get Print Paper. + @return Printer paper definition + */ + public int getAD_PrintPaper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintPaper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintTableFormat getI_AD_PrintTableFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Table Format. + @param AD_PrintTableFormat_ID + Table Format in Reports + */ + public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) + { + if (AD_PrintTableFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintTableFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID)); + } + + /** Get Print Table Format. + @return Table Format in Reports + */ + public int getAD_PrintTableFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintTableFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_ReportView getI_AD_ReportView() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report View. + @param AD_ReportView_ID + View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Create Copy. + @param CreateCopy Create Copy */ + public void setCreateCopy (String CreateCopy) + { + if (CreateCopy != null && CreateCopy.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateCopy = CreateCopy.substring(0, 0); + } + set_Value (COLUMNNAME_CreateCopy, CreateCopy); + } + + /** Get Create Copy. +@return Create Copy */ + public String getCreateCopy () + { + return (String)get_Value(COLUMNNAME_CreateCopy); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Footer Margin. + @param FooterMargin + Margin of the Footer in 1/72 of an inch + */ + public void setFooterMargin (int FooterMargin) + { + set_Value (COLUMNNAME_FooterMargin, Integer.valueOf(FooterMargin)); + } + + /** Get Footer Margin. + @return Margin of the Footer in 1/72 of an inch + */ + public int getFooterMargin () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FooterMargin); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Header Margin. + @param HeaderMargin + Margin of the Header in 1/72 of an inch + */ + public void setHeaderMargin (int HeaderMargin) + { + set_Value (COLUMNNAME_HeaderMargin, Integer.valueOf(HeaderMargin)); + } + + /** Get Header Margin. + @return Margin of the Header in 1/72 of an inch + */ + public int getHeaderMargin () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HeaderMargin); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Form. + @param IsForm + If Selected, a Form is printed, if not selected a columnar List report + */ + public void setIsForm (boolean IsForm) + { + set_Value (COLUMNNAME_IsForm, Boolean.valueOf(IsForm)); + } + + /** Get Form. + @return If Selected, a Form is printed, if not selected a columnar List report + */ + public boolean isForm () + { + Object oo = get_Value(COLUMNNAME_IsForm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Standard Header/Footer. + @param IsStandardHeaderFooter + The standard Header and Footer is used + */ + public void setIsStandardHeaderFooter (boolean IsStandardHeaderFooter) + { + set_Value (COLUMNNAME_IsStandardHeaderFooter, Boolean.valueOf(IsStandardHeaderFooter)); + } + + /** Get Standard Header/Footer. + @return The standard Header and Footer is used + */ + public boolean isStandardHeaderFooter () + { + Object oo = get_Value(COLUMNNAME_IsStandardHeaderFooter); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Table Based. + @param IsTableBased + Table based List Reporting + */ + public void setIsTableBased (boolean IsTableBased) + { + set_ValueNoCheck (COLUMNNAME_IsTableBased, Boolean.valueOf(IsTableBased)); + } + + /** Get Table Based. + @return Table based List Reporting + */ + public boolean isTableBased () + { + Object oo = get_Value(COLUMNNAME_IsTableBased); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** JasperProcess_ID AD_Reference_ID=400 */ public static final int JASPERPROCESS_ID_AD_Reference_ID=400; -/** Set Jasper Process. -@param JasperProcess_ID The Jasper Process used by the printengine if any process defined */ -public void setJasperProcess_ID (int JasperProcess_ID) -{ -if (JasperProcess_ID <= 0) set_Value ("JasperProcess_ID", null); - else -set_Value ("JasperProcess_ID", Integer.valueOf(JasperProcess_ID)); -} -/** Get Jasper Process. -@return The Jasper Process used by the printengine if any process defined */ -public int getJasperProcess_ID() -{ -Integer ii = (Integer)get_Value("JasperProcess_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name JasperProcess_ID */ -public static final String COLUMNNAME_JasperProcess_ID = "JasperProcess_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Printer Name. -@param PrinterName Name of the Printer */ -public void setPrinterName (String PrinterName) -{ -if (PrinterName != null && PrinterName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -PrinterName = PrinterName.substring(0,39); -} -set_Value ("PrinterName", PrinterName); -} -/** Get Printer Name. -@return Name of the Printer */ -public String getPrinterName() -{ -return (String)get_Value("PrinterName"); -} -/** Column name PrinterName */ -public static final String COLUMNNAME_PrinterName = "PrinterName"; -} + /** Set Jasper Process. + @param JasperProcess_ID + The Jasper Process used by the printengine if any process defined + */ + public void setJasperProcess_ID (int JasperProcess_ID) + { + if (JasperProcess_ID <= 0) set_Value (COLUMNNAME_JasperProcess_ID, null); + else + set_Value (COLUMNNAME_JasperProcess_ID, Integer.valueOf(JasperProcess_ID)); + } + + /** Get Jasper Process. + @return The Jasper Process used by the printengine if any process defined + */ + public int getJasperProcess_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_JasperProcess_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Printer Name. + @param PrinterName + Name of the Printer + */ + public void setPrinterName (String PrinterName) + { + if (PrinterName != null && PrinterName.length() > 40) + { + log.warning("Length > 40 - truncated"); + PrinterName = PrinterName.substring(0, 39); + } + set_Value (COLUMNNAME_PrinterName, PrinterName); + } + + /** Get Printer Name. + @return Name of the Printer + */ + public String getPrinterName () + { + return (String)get_Value(COLUMNNAME_PrinterName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintFormatItem.java b/base/src/org/compiere/model/X_AD_PrintFormatItem.java index 8ee9c0677c..c5c02b19ed 100644 --- a/base/src/org/compiere/model/X_AD_PrintFormatItem.java +++ b/base/src/org/compiere/model/X_AD_PrintFormatItem.java @@ -1,1227 +1,1437 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintFormatItem - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintFormatItem extends PO + +/** Generated Model for AD_PrintFormatItem + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintFormatItem extends PO implements I_AD_PrintFormatItem, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintFormatItem_ID id -@param trxName transaction -*/ -public X_AD_PrintFormatItem (Properties ctx, int AD_PrintFormatItem_ID, String trxName) -{ -super (ctx, AD_PrintFormatItem_ID, trxName); -/** if (AD_PrintFormatItem_ID == 0) -{ -setAD_Column_ID (0); -setAD_PrintFormatChild_ID (0); -setAD_PrintFormatItem_ID (0); -setAD_PrintFormat_ID (0); -setFieldAlignmentType (null); // D -setImageIsAttached (false); -setIsAveraged (false); -setIsCentrallyMaintained (false); -setIsCounted (false); -setIsDeviationCalc (false); -setIsFilledRectangle (false); // N -setIsFixedWidth (false); -setIsGroupBy (false); -setIsHeightOneLine (true); // Y -setIsImageField (false); -setIsMaxCalc (false); -setIsMinCalc (false); -setIsNextLine (true); // Y -setIsNextPage (false); -setIsOrderBy (false); -setIsPageBreak (false); -setIsPrinted (true); // Y -setIsRelativePosition (true); // Y -setIsRunningTotal (false); -setIsSetNLPosition (false); -setIsSummarized (false); -setIsSuppressNull (false); -setIsVarianceCalc (false); -setLineAlignmentType (null); // X -setMaxHeight (0); -setMaxWidth (0); -setName (null); -setPrintAreaType (null); // C -setPrintFormatType (null); // F -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID=@AD_PrintFormat_ID@ -setSortNo (0); -setXPosition (0); -setXSpace (0); -setYPosition (0); -setYSpace (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintFormatItem (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintFormatItem */ -public static final String Table_Name="AD_PrintFormatItem"; - -/** AD_Table_ID=489 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintFormatItem[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); - else -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Print Font. -@param AD_PrintFont_ID Maintain Print Font */ -public void setAD_PrintFont_ID (int AD_PrintFont_ID) -{ -if (AD_PrintFont_ID <= 0) set_Value ("AD_PrintFont_ID", null); - else -set_Value ("AD_PrintFont_ID", Integer.valueOf(AD_PrintFont_ID)); -} -/** Get Print Font. -@return Maintain Print Font */ -public int getAD_PrintFont_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFont_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFont_ID */ -public static final String COLUMNNAME_AD_PrintFont_ID = "AD_PrintFont_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintFormatItem (Properties ctx, int AD_PrintFormatItem_ID, String trxName) + { + super (ctx, AD_PrintFormatItem_ID, trxName); + /** if (AD_PrintFormatItem_ID == 0) { setAD_Column_ID (0); + setAD_PrintFormatChild_ID (0); + setAD_PrintFormatItem_ID (0); + setAD_PrintFormat_ID (0); + setFieldAlignmentType (null); +// D + setImageIsAttached (false); + setIsAveraged (false); + setIsCentrallyMaintained (false); + setIsCounted (false); + setIsDeviationCalc (false); + setIsFilledRectangle (false); +// N + setIsFixedWidth (false); + setIsGroupBy (false); + setIsHeightOneLine (true); +// Y + setIsImageField (false); + setIsMaxCalc (false); + setIsMinCalc (false); + setIsNextLine (true); +// Y + setIsNextPage (false); + setIsOrderBy (false); + setIsPageBreak (false); + setIsPrinted (true); +// Y + setIsRelativePosition (true); +// Y + setIsRunningTotal (false); + setIsSetNLPosition (false); + setIsSummarized (false); + setIsSuppressNull (false); + setIsVarianceCalc (false); + setLineAlignmentType (null); +// X + setMaxHeight (0); + setMaxWidth (0); + setName (null); + setPrintAreaType (null); +// C + setPrintFormatType (null); +// F + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID=@AD_PrintFormat_ID@ + setSortNo (0); + setXPosition (0); + setXSpace (0); + setYPosition (0); + setYSpace (0); +} */ + } + + /** Load Constructor */ + public X_AD_PrintFormatItem (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintFormatItem[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintFont getI_AD_PrintFont() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Font. + @param AD_PrintFont_ID + Maintain Print Font + */ + public void setAD_PrintFont_ID (int AD_PrintFont_ID) + { + if (AD_PrintFont_ID <= 0) set_Value (COLUMNNAME_AD_PrintFont_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFont_ID, Integer.valueOf(AD_PrintFont_ID)); + } + + /** Get Print Font. + @return Maintain Print Font + */ + public int getAD_PrintFont_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFont_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_PrintFormatChild_ID AD_Reference_ID=259 */ public static final int AD_PRINTFORMATCHILD_ID_AD_Reference_ID=259; -/** Set Included Print Format. -@param AD_PrintFormatChild_ID Print format that is included here. */ -public void setAD_PrintFormatChild_ID (int AD_PrintFormatChild_ID) -{ -if (AD_PrintFormatChild_ID < 1) throw new IllegalArgumentException ("AD_PrintFormatChild_ID is mandatory."); -set_Value ("AD_PrintFormatChild_ID", Integer.valueOf(AD_PrintFormatChild_ID)); -} -/** Get Included Print Format. -@return Print format that is included here. */ -public int getAD_PrintFormatChild_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormatChild_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormatChild_ID */ -public static final String COLUMNNAME_AD_PrintFormatChild_ID = "AD_PrintFormatChild_ID"; -/** Set Print Format Item. -@param AD_PrintFormatItem_ID Item/Column in the Print format */ -public void setAD_PrintFormatItem_ID (int AD_PrintFormatItem_ID) -{ -if (AD_PrintFormatItem_ID < 1) throw new IllegalArgumentException ("AD_PrintFormatItem_ID is mandatory."); -set_ValueNoCheck ("AD_PrintFormatItem_ID", Integer.valueOf(AD_PrintFormatItem_ID)); -} -/** Get Print Format Item. -@return Item/Column in the Print format */ -public int getAD_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormatItem_ID */ -public static final String COLUMNNAME_AD_PrintFormatItem_ID = "AD_PrintFormatItem_ID"; -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID < 1) throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); -set_ValueNoCheck ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set Graph. -@param AD_PrintGraph_ID Graph included in Reports */ -public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) -{ -if (AD_PrintGraph_ID <= 0) set_Value ("AD_PrintGraph_ID", null); - else -set_Value ("AD_PrintGraph_ID", Integer.valueOf(AD_PrintGraph_ID)); -} -/** Get Graph. -@return Graph included in Reports */ -public int getAD_PrintGraph_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintGraph_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintGraph_ID */ -public static final String COLUMNNAME_AD_PrintGraph_ID = "AD_PrintGraph_ID"; -/** Set Arc Diameter. -@param ArcDiameter Arc Diameter for rounded Rectangles */ -public void setArcDiameter (int ArcDiameter) -{ -set_Value ("ArcDiameter", Integer.valueOf(ArcDiameter)); -} -/** Get Arc Diameter. -@return Arc Diameter for rounded Rectangles */ -public int getArcDiameter() -{ -Integer ii = (Integer)get_Value("ArcDiameter"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ArcDiameter */ -public static final String COLUMNNAME_ArcDiameter = "ArcDiameter"; + /** Set Included Print Format. + @param AD_PrintFormatChild_ID + Print format that is included here. + */ + public void setAD_PrintFormatChild_ID (int AD_PrintFormatChild_ID) + { + if (AD_PrintFormatChild_ID < 1) + throw new IllegalArgumentException ("AD_PrintFormatChild_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintFormatChild_ID, Integer.valueOf(AD_PrintFormatChild_ID)); + } + + /** Get Included Print Format. + @return Print format that is included here. + */ + public int getAD_PrintFormatChild_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormatChild_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Print Format Item. + @param AD_PrintFormatItem_ID + Item/Column in the Print format + */ + public void setAD_PrintFormatItem_ID (int AD_PrintFormatItem_ID) + { + if (AD_PrintFormatItem_ID < 1) + throw new IllegalArgumentException ("AD_PrintFormatItem_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintFormatItem_ID, Integer.valueOf(AD_PrintFormatItem_ID)); + } + + /** Get Print Format Item. + @return Item/Column in the Print format + */ + public int getAD_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID < 1) + throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintGraph getI_AD_PrintGraph() throws Exception + { + 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 e; + } + return result; + } + + /** Set Graph. + @param AD_PrintGraph_ID + Graph included in Reports + */ + public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) + { + if (AD_PrintGraph_ID <= 0) set_Value (COLUMNNAME_AD_PrintGraph_ID, null); + else + set_Value (COLUMNNAME_AD_PrintGraph_ID, Integer.valueOf(AD_PrintGraph_ID)); + } + + /** Get Graph. + @return Graph included in Reports + */ + public int getAD_PrintGraph_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintGraph_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Arc Diameter. + @param ArcDiameter + Arc Diameter for rounded Rectangles + */ + public void setArcDiameter (int ArcDiameter) + { + set_Value (COLUMNNAME_ArcDiameter, Integer.valueOf(ArcDiameter)); + } + + /** Get Arc Diameter. + @return Arc Diameter for rounded Rectangles + */ + public int getArcDiameter () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ArcDiameter); + if (ii == null) + return 0; + return ii.intValue(); + } /** BarcodeType AD_Reference_ID=377 */ -public static final int BARCODETYPE_AD_Reference_ID=377; -/** Code 128 A character set = 28A */ -public static final String BARCODETYPE_Code128ACharacterSet = "28A"; -/** Code 128 B character set = 28B */ -public static final String BARCODETYPE_Code128BCharacterSet = "28B"; -/** Code 128 C character set = 28C */ -public static final String BARCODETYPE_Code128CCharacterSet = "28C"; -/** Codabar 2 of 7 linear = 2o9 */ -public static final String BARCODETYPE_Codabar2Of7Linear = "2o9"; -/** Code 39 3 of 9 linear with Checksum = 3O9 */ -public static final String BARCODETYPE_Code393Of9LinearWithChecksum = "3O9"; -/** Code 39 3 of 9 linear w/o Checksum = 3o9 */ -public static final String BARCODETYPE_Code393Of9LinearWOChecksum = "3o9"; -/** PDF417 two dimensional = 417 */ -public static final String BARCODETYPE_PDF417TwoDimensional = "417"; -/** SCC-14 shipping code UCC/EAN 128 = C14 */ -public static final String BARCODETYPE_SCC_14ShippingCodeUCCEAN128 = "C14"; -/** SSCC-18 number UCC/EAN 128 = C18 */ -public static final String BARCODETYPE_SSCC_18NumberUCCEAN128 = "C18"; -/** Code 128 dynamically switching = C28 */ -public static final String BARCODETYPE_Code128DynamicallySwitching = "C28"; -/** Code 39 linear with Checksum = C39 */ -public static final String BARCODETYPE_Code39LinearWithChecksum = "C39"; -/** Codeabar linear = COD */ -public static final String BARCODETYPE_CodeabarLinear = "COD"; -/** EAN 128 = E28 */ -public static final String BARCODETYPE_EAN128 = "E28"; -/** Global Trade Item No GTIN UCC/EAN 128 = GTN */ -public static final String BARCODETYPE_GlobalTradeItemNoGTINUCCEAN128 = "GTN"; -/** Codabar Monarch linear = MON */ -public static final String BARCODETYPE_CodabarMonarchLinear = "MON"; -/** Codabar NW-7 linear = NW7 */ -public static final String BARCODETYPE_CodabarNW_7Linear = "NW7"; -/** Shipment ID number UCC/EAN 128 = SID */ -public static final String BARCODETYPE_ShipmentIDNumberUCCEAN128 = "SID"; -/** UCC 128 = U28 */ -public static final String BARCODETYPE_UCC128 = "U28"; -/** Code 39 USD3 with Checksum = US3 */ -public static final String BARCODETYPE_Code39USD3WithChecksum = "US3"; -/** Codabar USD-4 linear = US4 */ -public static final String BARCODETYPE_CodabarUSD_4Linear = "US4"; -/** US Postal Service UCC/EAN 128 = USP */ -public static final String BARCODETYPE_USPostalServiceUCCEAN128 = "USP"; -/** Code 39 linear w/o Checksum = c39 */ -public static final String BARCODETYPE_Code39LinearWOChecksum = "c39"; -/** Code 39 USD3 w/o Checksum = us3 */ +public static final int BARCODETYPE_AD_Reference_ID=377;/** Code 128 A character set = 28A */ +public static final String BARCODETYPE_Code128ACharacterSet = "28A";/** Code 128 B character set = 28B */ +public static final String BARCODETYPE_Code128BCharacterSet = "28B";/** Code 128 C character set = 28C */ +public static final String BARCODETYPE_Code128CCharacterSet = "28C";/** Codabar 2 of 7 linear = 2o9 */ +public static final String BARCODETYPE_Codabar2Of7Linear = "2o9";/** Code 39 3 of 9 linear with Checksum = 3O9 */ +public static final String BARCODETYPE_Code393Of9LinearWithChecksum = "3O9";/** Code 39 3 of 9 linear w/o Checksum = 3o9 */ +public static final String BARCODETYPE_Code393Of9LinearWOChecksum = "3o9";/** PDF417 two dimensional = 417 */ +public static final String BARCODETYPE_PDF417TwoDimensional = "417";/** SCC-14 shipping code UCC/EAN 128 = C14 */ +public static final String BARCODETYPE_SCC_14ShippingCodeUCCEAN128 = "C14";/** SSCC-18 number UCC/EAN 128 = C18 */ +public static final String BARCODETYPE_SSCC_18NumberUCCEAN128 = "C18";/** Code 128 dynamically switching = C28 */ +public static final String BARCODETYPE_Code128DynamicallySwitching = "C28";/** Code 39 linear with Checksum = C39 */ +public static final String BARCODETYPE_Code39LinearWithChecksum = "C39";/** Codeabar linear = COD */ +public static final String BARCODETYPE_CodeabarLinear = "COD";/** EAN 128 = E28 */ +public static final String BARCODETYPE_EAN128 = "E28";/** Global Trade Item No GTIN UCC/EAN 128 = GTN */ +public static final String BARCODETYPE_GlobalTradeItemNoGTINUCCEAN128 = "GTN";/** Codabar Monarch linear = MON */ +public static final String BARCODETYPE_CodabarMonarchLinear = "MON";/** Codabar NW-7 linear = NW7 */ +public static final String BARCODETYPE_CodabarNW_7Linear = "NW7";/** Shipment ID number UCC/EAN 128 = SID */ +public static final String BARCODETYPE_ShipmentIDNumberUCCEAN128 = "SID";/** UCC 128 = U28 */ +public static final String BARCODETYPE_UCC128 = "U28";/** Code 39 USD3 with Checksum = US3 */ +public static final String BARCODETYPE_Code39USD3WithChecksum = "US3";/** Codabar USD-4 linear = US4 */ +public static final String BARCODETYPE_CodabarUSD_4Linear = "US4";/** US Postal Service UCC/EAN 128 = USP */ +public static final String BARCODETYPE_USPostalServiceUCCEAN128 = "USP";/** Code 39 linear w/o Checksum = c39 */ +public static final String BARCODETYPE_Code39LinearWOChecksum = "c39";/** Code 39 USD3 w/o Checksum = us3 */ public static final String BARCODETYPE_Code39USD3WOChecksum = "us3"; -/** Set Barcode Type. -@param BarcodeType Type of barcode */ -public void setBarcodeType (String BarcodeType) -{ -if (BarcodeType == null || BarcodeType.equals("28A") || BarcodeType.equals("28B") || BarcodeType.equals("28C") || BarcodeType.equals("2o9") || BarcodeType.equals("3O9") || BarcodeType.equals("3o9") || BarcodeType.equals("417") || BarcodeType.equals("C14") || BarcodeType.equals("C18") || BarcodeType.equals("C28") || BarcodeType.equals("C39") || BarcodeType.equals("COD") || BarcodeType.equals("E28") || BarcodeType.equals("GTN") || BarcodeType.equals("MON") || BarcodeType.equals("NW7") || BarcodeType.equals("SID") || BarcodeType.equals("U28") || BarcodeType.equals("US3") || BarcodeType.equals("US4") || BarcodeType.equals("USP") || BarcodeType.equals("c39") || BarcodeType.equals("us3")); - else throw new IllegalArgumentException ("BarcodeType Invalid value - " + BarcodeType + " - Reference_ID=377 - 28A - 28B - 28C - 2o9 - 3O9 - 3o9 - 417 - C14 - C18 - C28 - C39 - COD - E28 - GTN - MON - NW7 - SID - U28 - US3 - US4 - USP - c39 - us3"); -if (BarcodeType != null && BarcodeType.length() > 3) -{ -log.warning("Length > 3 - truncated"); -BarcodeType = BarcodeType.substring(0,2); -} -set_Value ("BarcodeType", BarcodeType); -} -/** Get Barcode Type. -@return Type of barcode */ -public String getBarcodeType() -{ -return (String)get_Value("BarcodeType"); -} -/** Column name BarcodeType */ -public static final String COLUMNNAME_BarcodeType = "BarcodeType"; -/** Set Below Column. -@param BelowColumn Print this column below the column index entered */ -public void setBelowColumn (int BelowColumn) -{ -set_Value ("BelowColumn", Integer.valueOf(BelowColumn)); -} -/** Get Below Column. -@return Print this column below the column index entered */ -public int getBelowColumn() -{ -Integer ii = (Integer)get_Value("BelowColumn"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BelowColumn */ -public static final String COLUMNNAME_BelowColumn = "BelowColumn"; + /** Set Barcode Type. + @param BarcodeType + Type of barcode + */ + public void setBarcodeType (String BarcodeType) + { +if (BarcodeType == null || BarcodeType.equals("28A") || BarcodeType.equals("28B") || BarcodeType.equals("28C") || BarcodeType.equals("2o9") || BarcodeType.equals("3O9") || BarcodeType.equals("3o9") || BarcodeType.equals("417") || BarcodeType.equals("C14") || BarcodeType.equals("C18") || BarcodeType.equals("C28") || BarcodeType.equals("C39") || BarcodeType.equals("COD") || BarcodeType.equals("E28") || BarcodeType.equals("GTN") || BarcodeType.equals("MON") || BarcodeType.equals("NW7") || BarcodeType.equals("SID") || BarcodeType.equals("U28") || BarcodeType.equals("US3") || BarcodeType.equals("US4") || BarcodeType.equals("USP") || BarcodeType.equals("c39") || BarcodeType.equals("us3")); else throw new IllegalArgumentException ("BarcodeType Invalid value - " + BarcodeType + " - Reference_ID=377 - 28A - 28B - 28C - 2o9 - 3O9 - 3o9 - 417 - C14 - C18 - C28 - C39 - COD - E28 - GTN - MON - NW7 - SID - U28 - US3 - US4 - USP - c39 - us3"); if (BarcodeType != null && BarcodeType.length() > 3) + { + log.warning("Length > 3 - truncated"); + BarcodeType = BarcodeType.substring(0, 2); + } + set_Value (COLUMNNAME_BarcodeType, BarcodeType); + } + + /** Get Barcode Type. + @return Type of barcode + */ + public String getBarcodeType () + { + return (String)get_Value(COLUMNNAME_BarcodeType); + } + + /** Set Below Column. + @param BelowColumn + Print this column below the column index entered + */ + public void setBelowColumn (int BelowColumn) + { + set_Value (COLUMNNAME_BelowColumn, Integer.valueOf(BelowColumn)); + } + + /** Get Below Column. + @return Print this column below the column index entered + */ + public int getBelowColumn () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BelowColumn); + if (ii == null) + return 0; + return ii.intValue(); + } /** FieldAlignmentType AD_Reference_ID=253 */ -public static final int FIELDALIGNMENTTYPE_AD_Reference_ID=253; -/** Block = B */ -public static final String FIELDALIGNMENTTYPE_Block = "B"; -/** Center = C */ -public static final String FIELDALIGNMENTTYPE_Center = "C"; -/** Default = D */ -public static final String FIELDALIGNMENTTYPE_Default = "D"; -/** Leading (left) = L */ -public static final String FIELDALIGNMENTTYPE_LeadingLeft = "L"; -/** Trailing (right) = T */ +public static final int FIELDALIGNMENTTYPE_AD_Reference_ID=253;/** Block = B */ +public static final String FIELDALIGNMENTTYPE_Block = "B";/** Center = C */ +public static final String FIELDALIGNMENTTYPE_Center = "C";/** Default = D */ +public static final String FIELDALIGNMENTTYPE_Default = "D";/** Leading (left) = L */ +public static final String FIELDALIGNMENTTYPE_LeadingLeft = "L";/** Trailing (right) = T */ public static final String FIELDALIGNMENTTYPE_TrailingRight = "T"; -/** Set Field Alignment. -@param FieldAlignmentType Field Text Alignment */ -public void setFieldAlignmentType (String FieldAlignmentType) -{ -if (FieldAlignmentType == null) throw new IllegalArgumentException ("FieldAlignmentType is mandatory"); -if (FieldAlignmentType.equals("B") || FieldAlignmentType.equals("C") || FieldAlignmentType.equals("D") || FieldAlignmentType.equals("L") || FieldAlignmentType.equals("T")); - else throw new IllegalArgumentException ("FieldAlignmentType Invalid value - " + FieldAlignmentType + " - Reference_ID=253 - B - C - D - L - T"); -if (FieldAlignmentType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FieldAlignmentType = FieldAlignmentType.substring(0,0); -} -set_Value ("FieldAlignmentType", FieldAlignmentType); -} -/** Get Field Alignment. -@return Field Text Alignment */ -public String getFieldAlignmentType() -{ -return (String)get_Value("FieldAlignmentType"); -} -/** Column name FieldAlignmentType */ -public static final String COLUMNNAME_FieldAlignmentType = "FieldAlignmentType"; -/** Set Image attached. -@param ImageIsAttached The image to be printed is attached to the record */ -public void setImageIsAttached (boolean ImageIsAttached) -{ -set_Value ("ImageIsAttached", Boolean.valueOf(ImageIsAttached)); -} -/** Get Image attached. -@return The image to be printed is attached to the record */ -public boolean isImageIsAttached() -{ -Object oo = get_Value("ImageIsAttached"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ImageIsAttached */ -public static final String COLUMNNAME_ImageIsAttached = "ImageIsAttached"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Calculate Mean (?). -@param IsAveraged Calculate Average of numeric content or length */ -public void setIsAveraged (boolean IsAveraged) -{ -set_Value ("IsAveraged", Boolean.valueOf(IsAveraged)); -} -/** Get Calculate Mean (?). -@return Calculate Average of numeric content or length */ -public boolean isAveraged() -{ -Object oo = get_Value("IsAveraged"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAveraged */ -public static final String COLUMNNAME_IsAveraged = "IsAveraged"; -/** Set Centrally maintained. -@param IsCentrallyMaintained Information maintained in System Element table */ -public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) -{ -set_Value ("IsCentrallyMaintained", Boolean.valueOf(IsCentrallyMaintained)); -} -/** Get Centrally maintained. -@return Information maintained in System Element table */ -public boolean isCentrallyMaintained() -{ -Object oo = get_Value("IsCentrallyMaintained"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCentrallyMaintained */ -public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; -/** Set Calculate Count (?). -@param IsCounted Count number of not empty elements */ -public void setIsCounted (boolean IsCounted) -{ -set_Value ("IsCounted", Boolean.valueOf(IsCounted)); -} -/** Get Calculate Count (?). -@return Count number of not empty elements */ -public boolean isCounted() -{ -Object oo = get_Value("IsCounted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCounted */ -public static final String COLUMNNAME_IsCounted = "IsCounted"; -/** Set Calculate Deviation (?). -@param IsDeviationCalc Calculate Standard Deviation */ -public void setIsDeviationCalc (boolean IsDeviationCalc) -{ -set_Value ("IsDeviationCalc", Boolean.valueOf(IsDeviationCalc)); -} -/** Get Calculate Deviation (?). -@return Calculate Standard Deviation */ -public boolean isDeviationCalc() -{ -Object oo = get_Value("IsDeviationCalc"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDeviationCalc */ -public static final String COLUMNNAME_IsDeviationCalc = "IsDeviationCalc"; -/** Set Fill Shape. -@param IsFilledRectangle Fill the shape with the color selected */ -public void setIsFilledRectangle (boolean IsFilledRectangle) -{ -set_Value ("IsFilledRectangle", Boolean.valueOf(IsFilledRectangle)); -} -/** Get Fill Shape. -@return Fill the shape with the color selected */ -public boolean isFilledRectangle() -{ -Object oo = get_Value("IsFilledRectangle"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFilledRectangle */ -public static final String COLUMNNAME_IsFilledRectangle = "IsFilledRectangle"; -/** Set Fixed Width. -@param IsFixedWidth Column has a fixed width */ -public void setIsFixedWidth (boolean IsFixedWidth) -{ -set_Value ("IsFixedWidth", Boolean.valueOf(IsFixedWidth)); -} -/** Get Fixed Width. -@return Column has a fixed width */ -public boolean isFixedWidth() -{ -Object oo = get_Value("IsFixedWidth"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFixedWidth */ -public static final String COLUMNNAME_IsFixedWidth = "IsFixedWidth"; -/** Set Group by. -@param IsGroupBy After a group change, totals, etc. are printed */ -public void setIsGroupBy (boolean IsGroupBy) -{ -set_Value ("IsGroupBy", Boolean.valueOf(IsGroupBy)); -} -/** Get Group by. -@return After a group change, totals, etc. are printed */ -public boolean isGroupBy() -{ -Object oo = get_Value("IsGroupBy"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsGroupBy */ -public static final String COLUMNNAME_IsGroupBy = "IsGroupBy"; -/** Set One Line Only. -@param IsHeightOneLine If selected, only one line is printed */ -public void setIsHeightOneLine (boolean IsHeightOneLine) -{ -set_Value ("IsHeightOneLine", Boolean.valueOf(IsHeightOneLine)); -} -/** Get One Line Only. -@return If selected, only one line is printed */ -public boolean isHeightOneLine() -{ -Object oo = get_Value("IsHeightOneLine"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsHeightOneLine */ -public static final String COLUMNNAME_IsHeightOneLine = "IsHeightOneLine"; -/** Set Image Field. -@param IsImageField The image is retrieved from the data column */ -public void setIsImageField (boolean IsImageField) -{ -set_Value ("IsImageField", Boolean.valueOf(IsImageField)); -} -/** Get Image Field. -@return The image is retrieved from the data column */ -public boolean isImageField() -{ -Object oo = get_Value("IsImageField"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsImageField */ -public static final String COLUMNNAME_IsImageField = "IsImageField"; -/** Set Calculate Maximim (?). -@param IsMaxCalc Calculate the maximim amount */ -public void setIsMaxCalc (boolean IsMaxCalc) -{ -set_Value ("IsMaxCalc", Boolean.valueOf(IsMaxCalc)); -} -/** Get Calculate Maximim (?). -@return Calculate the maximim amount */ -public boolean isMaxCalc() -{ -Object oo = get_Value("IsMaxCalc"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMaxCalc */ -public static final String COLUMNNAME_IsMaxCalc = "IsMaxCalc"; -/** Set Calculate Minimum (?). -@param IsMinCalc Calculate the minimum amount */ -public void setIsMinCalc (boolean IsMinCalc) -{ -set_Value ("IsMinCalc", Boolean.valueOf(IsMinCalc)); -} -/** Get Calculate Minimum (?). -@return Calculate the minimum amount */ -public boolean isMinCalc() -{ -Object oo = get_Value("IsMinCalc"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMinCalc */ -public static final String COLUMNNAME_IsMinCalc = "IsMinCalc"; -/** Set Next Line. -@param IsNextLine Print item on next line */ -public void setIsNextLine (boolean IsNextLine) -{ -set_Value ("IsNextLine", Boolean.valueOf(IsNextLine)); -} -/** Get Next Line. -@return Print item on next line */ -public boolean isNextLine() -{ -Object oo = get_Value("IsNextLine"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsNextLine */ -public static final String COLUMNNAME_IsNextLine = "IsNextLine"; -/** Set Next Page. -@param IsNextPage The column is printed on the next page */ -public void setIsNextPage (boolean IsNextPage) -{ -set_Value ("IsNextPage", Boolean.valueOf(IsNextPage)); -} -/** Get Next Page. -@return The column is printed on the next page */ -public boolean isNextPage() -{ -Object oo = get_Value("IsNextPage"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsNextPage */ -public static final String COLUMNNAME_IsNextPage = "IsNextPage"; -/** Set Order by. -@param IsOrderBy Include in sort order */ -public void setIsOrderBy (boolean IsOrderBy) -{ -set_Value ("IsOrderBy", Boolean.valueOf(IsOrderBy)); -} -/** Get Order by. -@return Include in sort order */ -public boolean isOrderBy() -{ -Object oo = get_Value("IsOrderBy"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOrderBy */ -public static final String COLUMNNAME_IsOrderBy = "IsOrderBy"; -/** Set Page break. -@param IsPageBreak Start with new page */ -public void setIsPageBreak (boolean IsPageBreak) -{ -set_Value ("IsPageBreak", Boolean.valueOf(IsPageBreak)); -} -/** Get Page break. -@return Start with new page */ -public boolean isPageBreak() -{ -Object oo = get_Value("IsPageBreak"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPageBreak */ -public static final String COLUMNNAME_IsPageBreak = "IsPageBreak"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Relative Position. -@param IsRelativePosition The item is relative positioned (not absolute) */ -public void setIsRelativePosition (boolean IsRelativePosition) -{ -set_Value ("IsRelativePosition", Boolean.valueOf(IsRelativePosition)); -} -/** Get Relative Position. -@return The item is relative positioned (not absolute) */ -public boolean isRelativePosition() -{ -Object oo = get_Value("IsRelativePosition"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRelativePosition */ -public static final String COLUMNNAME_IsRelativePosition = "IsRelativePosition"; -/** Set Running Total. -@param IsRunningTotal Create a running total (sum) */ -public void setIsRunningTotal (boolean IsRunningTotal) -{ -set_Value ("IsRunningTotal", Boolean.valueOf(IsRunningTotal)); -} -/** Get Running Total. -@return Create a running total (sum) */ -public boolean isRunningTotal() -{ -Object oo = get_Value("IsRunningTotal"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRunningTotal */ -public static final String COLUMNNAME_IsRunningTotal = "IsRunningTotal"; -/** Set Set NL Position. -@param IsSetNLPosition Set New Line Position */ -public void setIsSetNLPosition (boolean IsSetNLPosition) -{ -set_Value ("IsSetNLPosition", Boolean.valueOf(IsSetNLPosition)); -} -/** Get Set NL Position. -@return Set New Line Position */ -public boolean isSetNLPosition() -{ -Object oo = get_Value("IsSetNLPosition"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSetNLPosition */ -public static final String COLUMNNAME_IsSetNLPosition = "IsSetNLPosition"; -/** Set Calculate Sum (?). -@param IsSummarized Calculate the Sum of numeric content or length */ -public void setIsSummarized (boolean IsSummarized) -{ -set_Value ("IsSummarized", Boolean.valueOf(IsSummarized)); -} -/** Get Calculate Sum (?). -@return Calculate the Sum of numeric content or length */ -public boolean isSummarized() -{ -Object oo = get_Value("IsSummarized"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummarized */ -public static final String COLUMNNAME_IsSummarized = "IsSummarized"; -/** Set Suppress Null. -@param IsSuppressNull Suppress columns or elements with NULL value */ -public void setIsSuppressNull (boolean IsSuppressNull) -{ -set_Value ("IsSuppressNull", Boolean.valueOf(IsSuppressNull)); -} -/** Get Suppress Null. -@return Suppress columns or elements with NULL value */ -public boolean isSuppressNull() -{ -Object oo = get_Value("IsSuppressNull"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSuppressNull */ -public static final String COLUMNNAME_IsSuppressNull = "IsSuppressNull"; -/** Set Calculate Variance (?�). -@param IsVarianceCalc Calculate Variance */ -public void setIsVarianceCalc (boolean IsVarianceCalc) -{ -set_Value ("IsVarianceCalc", Boolean.valueOf(IsVarianceCalc)); -} -/** Get Calculate Variance (?�). -@return Calculate Variance */ -public boolean isVarianceCalc() -{ -Object oo = get_Value("IsVarianceCalc"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsVarianceCalc */ -public static final String COLUMNNAME_IsVarianceCalc = "IsVarianceCalc"; + /** Set Field Alignment. + @param FieldAlignmentType + Field Text Alignment + */ + public void setFieldAlignmentType (String FieldAlignmentType) + { +if (FieldAlignmentType == null) throw new IllegalArgumentException ("FieldAlignmentType is mandatory");if (FieldAlignmentType.equals("B") || FieldAlignmentType.equals("C") || FieldAlignmentType.equals("D") || FieldAlignmentType.equals("L") || FieldAlignmentType.equals("T")); else throw new IllegalArgumentException ("FieldAlignmentType Invalid value - " + FieldAlignmentType + " - Reference_ID=253 - B - C - D - L - T"); if (FieldAlignmentType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FieldAlignmentType = FieldAlignmentType.substring(0, 0); + } + set_Value (COLUMNNAME_FieldAlignmentType, FieldAlignmentType); + } + + /** Get Field Alignment. + @return Field Text Alignment + */ + public String getFieldAlignmentType () + { + return (String)get_Value(COLUMNNAME_FieldAlignmentType); + } + + /** Set Image attached. + @param ImageIsAttached + The image to be printed is attached to the record + */ + public void setImageIsAttached (boolean ImageIsAttached) + { + set_Value (COLUMNNAME_ImageIsAttached, Boolean.valueOf(ImageIsAttached)); + } + + /** Get Image attached. + @return The image to be printed is attached to the record + */ + public boolean isImageIsAttached () + { + Object oo = get_Value(COLUMNNAME_ImageIsAttached); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + /** Set Calculate Mean (?). + @param IsAveraged + Calculate Average of numeric content or length + */ + public void setIsAveraged (boolean IsAveraged) + { + set_Value (COLUMNNAME_IsAveraged, Boolean.valueOf(IsAveraged)); + } + + /** Get Calculate Mean (?). + @return Calculate Average of numeric content or length + */ + public boolean isAveraged () + { + Object oo = get_Value(COLUMNNAME_IsAveraged); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Centrally maintained. + @param IsCentrallyMaintained + Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) + { + set_Value (COLUMNNAME_IsCentrallyMaintained, Boolean.valueOf(IsCentrallyMaintained)); + } + + /** Get Centrally maintained. + @return Information maintained in System Element table + */ + public boolean isCentrallyMaintained () + { + Object oo = get_Value(COLUMNNAME_IsCentrallyMaintained); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Calculate Count (?). + @param IsCounted + Count number of not empty elements + */ + public void setIsCounted (boolean IsCounted) + { + set_Value (COLUMNNAME_IsCounted, Boolean.valueOf(IsCounted)); + } + + /** Get Calculate Count (?). + @return Count number of not empty elements + */ + public boolean isCounted () + { + Object oo = get_Value(COLUMNNAME_IsCounted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Calculate Deviation (?). + @param IsDeviationCalc + Calculate Standard Deviation + */ + public void setIsDeviationCalc (boolean IsDeviationCalc) + { + set_Value (COLUMNNAME_IsDeviationCalc, Boolean.valueOf(IsDeviationCalc)); + } + + /** Get Calculate Deviation (?). + @return Calculate Standard Deviation + */ + public boolean isDeviationCalc () + { + Object oo = get_Value(COLUMNNAME_IsDeviationCalc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Fill Shape. + @param IsFilledRectangle + Fill the shape with the color selected + */ + public void setIsFilledRectangle (boolean IsFilledRectangle) + { + set_Value (COLUMNNAME_IsFilledRectangle, Boolean.valueOf(IsFilledRectangle)); + } + + /** Get Fill Shape. + @return Fill the shape with the color selected + */ + public boolean isFilledRectangle () + { + Object oo = get_Value(COLUMNNAME_IsFilledRectangle); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Fixed Width. + @param IsFixedWidth + Column has a fixed width + */ + public void setIsFixedWidth (boolean IsFixedWidth) + { + set_Value (COLUMNNAME_IsFixedWidth, Boolean.valueOf(IsFixedWidth)); + } + + /** Get Fixed Width. + @return Column has a fixed width + */ + public boolean isFixedWidth () + { + Object oo = get_Value(COLUMNNAME_IsFixedWidth); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Group by. + @param IsGroupBy + After a group change, totals, etc. are printed + */ + public void setIsGroupBy (boolean IsGroupBy) + { + set_Value (COLUMNNAME_IsGroupBy, Boolean.valueOf(IsGroupBy)); + } + + /** Get Group by. + @return After a group change, totals, etc. are printed + */ + public boolean isGroupBy () + { + Object oo = get_Value(COLUMNNAME_IsGroupBy); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set One Line Only. + @param IsHeightOneLine + If selected, only one line is printed + */ + public void setIsHeightOneLine (boolean IsHeightOneLine) + { + set_Value (COLUMNNAME_IsHeightOneLine, Boolean.valueOf(IsHeightOneLine)); + } + + /** Get One Line Only. + @return If selected, only one line is printed + */ + public boolean isHeightOneLine () + { + Object oo = get_Value(COLUMNNAME_IsHeightOneLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Image Field. + @param IsImageField + The image is retrieved from the data column + */ + public void setIsImageField (boolean IsImageField) + { + set_Value (COLUMNNAME_IsImageField, Boolean.valueOf(IsImageField)); + } + + /** Get Image Field. + @return The image is retrieved from the data column + */ + public boolean isImageField () + { + Object oo = get_Value(COLUMNNAME_IsImageField); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Calculate Maximim (?). + @param IsMaxCalc + Calculate the maximim amount + */ + public void setIsMaxCalc (boolean IsMaxCalc) + { + set_Value (COLUMNNAME_IsMaxCalc, Boolean.valueOf(IsMaxCalc)); + } + + /** Get Calculate Maximim (?). + @return Calculate the maximim amount + */ + public boolean isMaxCalc () + { + Object oo = get_Value(COLUMNNAME_IsMaxCalc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Calculate Minimum (?). + @param IsMinCalc + Calculate the minimum amount + */ + public void setIsMinCalc (boolean IsMinCalc) + { + set_Value (COLUMNNAME_IsMinCalc, Boolean.valueOf(IsMinCalc)); + } + + /** Get Calculate Minimum (?). + @return Calculate the minimum amount + */ + public boolean isMinCalc () + { + Object oo = get_Value(COLUMNNAME_IsMinCalc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Next Line. + @param IsNextLine + Print item on next line + */ + public void setIsNextLine (boolean IsNextLine) + { + set_Value (COLUMNNAME_IsNextLine, Boolean.valueOf(IsNextLine)); + } + + /** Get Next Line. + @return Print item on next line + */ + public boolean isNextLine () + { + Object oo = get_Value(COLUMNNAME_IsNextLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Next Page. + @param IsNextPage + The column is printed on the next page + */ + public void setIsNextPage (boolean IsNextPage) + { + set_Value (COLUMNNAME_IsNextPage, Boolean.valueOf(IsNextPage)); + } + + /** Get Next Page. + @return The column is printed on the next page + */ + public boolean isNextPage () + { + Object oo = get_Value(COLUMNNAME_IsNextPage); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Order by. + @param IsOrderBy + Include in sort order + */ + public void setIsOrderBy (boolean IsOrderBy) + { + set_Value (COLUMNNAME_IsOrderBy, Boolean.valueOf(IsOrderBy)); + } + + /** Get Order by. + @return Include in sort order + */ + public boolean isOrderBy () + { + Object oo = get_Value(COLUMNNAME_IsOrderBy); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Page break. + @param IsPageBreak + Start with new page + */ + public void setIsPageBreak (boolean IsPageBreak) + { + set_Value (COLUMNNAME_IsPageBreak, Boolean.valueOf(IsPageBreak)); + } + + /** Get Page break. + @return Start with new page + */ + public boolean isPageBreak () + { + Object oo = get_Value(COLUMNNAME_IsPageBreak); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Relative Position. + @param IsRelativePosition + The item is relative positioned (not absolute) + */ + public void setIsRelativePosition (boolean IsRelativePosition) + { + set_Value (COLUMNNAME_IsRelativePosition, Boolean.valueOf(IsRelativePosition)); + } + + /** Get Relative Position. + @return The item is relative positioned (not absolute) + */ + public boolean isRelativePosition () + { + Object oo = get_Value(COLUMNNAME_IsRelativePosition); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Running Total. + @param IsRunningTotal + Create a running total (sum) + */ + public void setIsRunningTotal (boolean IsRunningTotal) + { + set_Value (COLUMNNAME_IsRunningTotal, Boolean.valueOf(IsRunningTotal)); + } + + /** Get Running Total. + @return Create a running total (sum) + */ + public boolean isRunningTotal () + { + Object oo = get_Value(COLUMNNAME_IsRunningTotal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Set NL Position. + @param IsSetNLPosition + Set New Line Position + */ + public void setIsSetNLPosition (boolean IsSetNLPosition) + { + set_Value (COLUMNNAME_IsSetNLPosition, Boolean.valueOf(IsSetNLPosition)); + } + + /** Get Set NL Position. + @return Set New Line Position + */ + public boolean isSetNLPosition () + { + Object oo = get_Value(COLUMNNAME_IsSetNLPosition); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Calculate Sum (?). + @param IsSummarized + Calculate the Sum of numeric content or length + */ + public void setIsSummarized (boolean IsSummarized) + { + set_Value (COLUMNNAME_IsSummarized, Boolean.valueOf(IsSummarized)); + } + + /** Get Calculate Sum (?). + @return Calculate the Sum of numeric content or length + */ + public boolean isSummarized () + { + Object oo = get_Value(COLUMNNAME_IsSummarized); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Suppress Null. + @param IsSuppressNull + Suppress columns or elements with NULL value + */ + public void setIsSuppressNull (boolean IsSuppressNull) + { + set_Value (COLUMNNAME_IsSuppressNull, Boolean.valueOf(IsSuppressNull)); + } + + /** Get Suppress Null. + @return Suppress columns or elements with NULL value + */ + public boolean isSuppressNull () + { + Object oo = get_Value(COLUMNNAME_IsSuppressNull); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Calculate Variance (??). + @param IsVarianceCalc + Calculate Variance + */ + public void setIsVarianceCalc (boolean IsVarianceCalc) + { + set_Value (COLUMNNAME_IsVarianceCalc, Boolean.valueOf(IsVarianceCalc)); + } + + /** Get Calculate Variance (??). + @return Calculate Variance + */ + public boolean isVarianceCalc () + { + Object oo = get_Value(COLUMNNAME_IsVarianceCalc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** LineAlignmentType AD_Reference_ID=254 */ -public static final int LINEALIGNMENTTYPE_AD_Reference_ID=254; -/** Center = C */ -public static final String LINEALIGNMENTTYPE_Center = "C"; -/** Leading (left) = L */ -public static final String LINEALIGNMENTTYPE_LeadingLeft = "L"; -/** Trailing (right) = T */ -public static final String LINEALIGNMENTTYPE_TrailingRight = "T"; -/** None = X */ +public static final int LINEALIGNMENTTYPE_AD_Reference_ID=254;/** Center = C */ +public static final String LINEALIGNMENTTYPE_Center = "C";/** Leading (left) = L */ +public static final String LINEALIGNMENTTYPE_LeadingLeft = "L";/** Trailing (right) = T */ +public static final String LINEALIGNMENTTYPE_TrailingRight = "T";/** None = X */ public static final String LINEALIGNMENTTYPE_None = "X"; -/** Set Line Alignment. -@param LineAlignmentType Line Alignment */ -public void setLineAlignmentType (String LineAlignmentType) -{ -if (LineAlignmentType == null) throw new IllegalArgumentException ("LineAlignmentType is mandatory"); -if (LineAlignmentType.equals("C") || LineAlignmentType.equals("L") || LineAlignmentType.equals("T") || LineAlignmentType.equals("X")); - else throw new IllegalArgumentException ("LineAlignmentType Invalid value - " + LineAlignmentType + " - Reference_ID=254 - C - L - T - X"); -if (LineAlignmentType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LineAlignmentType = LineAlignmentType.substring(0,0); -} -set_Value ("LineAlignmentType", LineAlignmentType); -} -/** Get Line Alignment. -@return Line Alignment */ -public String getLineAlignmentType() -{ -return (String)get_Value("LineAlignmentType"); -} -/** Column name LineAlignmentType */ -public static final String COLUMNNAME_LineAlignmentType = "LineAlignmentType"; -/** Set Line Width. -@param LineWidth Width of the lines */ -public void setLineWidth (int LineWidth) -{ -set_Value ("LineWidth", Integer.valueOf(LineWidth)); -} -/** Get Line Width. -@return Width of the lines */ -public int getLineWidth() -{ -Integer ii = (Integer)get_Value("LineWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LineWidth */ -public static final String COLUMNNAME_LineWidth = "LineWidth"; -/** Set Max Height. -@param MaxHeight Maximum Height in 1/72 if an inch - 0 = no restriction */ -public void setMaxHeight (int MaxHeight) -{ -set_Value ("MaxHeight", Integer.valueOf(MaxHeight)); -} -/** Get Max Height. -@return Maximum Height in 1/72 if an inch - 0 = no restriction */ -public int getMaxHeight() -{ -Integer ii = (Integer)get_Value("MaxHeight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MaxHeight */ -public static final String COLUMNNAME_MaxHeight = "MaxHeight"; -/** Set Max Width. -@param MaxWidth Maximum Width in 1/72 if an inch - 0 = no restriction */ -public void setMaxWidth (int MaxWidth) -{ -set_Value ("MaxWidth", Integer.valueOf(MaxWidth)); -} -/** Get Max Width. -@return Maximum Width in 1/72 if an inch - 0 = no restriction */ -public int getMaxWidth() -{ -Integer ii = (Integer)get_Value("MaxWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MaxWidth */ -public static final String COLUMNNAME_MaxWidth = "MaxWidth"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Line Alignment. + @param LineAlignmentType + Line Alignment + */ + public void setLineAlignmentType (String LineAlignmentType) + { +if (LineAlignmentType == null) throw new IllegalArgumentException ("LineAlignmentType is mandatory");if (LineAlignmentType.equals("C") || LineAlignmentType.equals("L") || LineAlignmentType.equals("T") || LineAlignmentType.equals("X")); else throw new IllegalArgumentException ("LineAlignmentType Invalid value - " + LineAlignmentType + " - Reference_ID=254 - C - L - T - X"); if (LineAlignmentType.length() > 1) + { + log.warning("Length > 1 - truncated"); + LineAlignmentType = LineAlignmentType.substring(0, 0); + } + set_Value (COLUMNNAME_LineAlignmentType, LineAlignmentType); + } + + /** Get Line Alignment. + @return Line Alignment + */ + public String getLineAlignmentType () + { + return (String)get_Value(COLUMNNAME_LineAlignmentType); + } + + /** Set Line Width. + @param LineWidth + Width of the lines + */ + public void setLineWidth (int LineWidth) + { + set_Value (COLUMNNAME_LineWidth, Integer.valueOf(LineWidth)); + } + + /** Get Line Width. + @return Width of the lines + */ + public int getLineWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LineWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Max Height. + @param MaxHeight + Maximum Height in 1/72 if an inch - 0 = no restriction + */ + public void setMaxHeight (int MaxHeight) + { + set_Value (COLUMNNAME_MaxHeight, Integer.valueOf(MaxHeight)); + } + + /** Get Max Height. + @return Maximum Height in 1/72 if an inch - 0 = no restriction + */ + public int getMaxHeight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MaxHeight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Max Width. + @param MaxWidth + Maximum Width in 1/72 if an inch - 0 = no restriction + */ + public void setMaxWidth (int MaxWidth) + { + set_Value (COLUMNNAME_MaxWidth, Integer.valueOf(MaxWidth)); + } + + /** Get Max Width. + @return Maximum Width in 1/72 if an inch - 0 = no restriction + */ + public int getMaxWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MaxWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** PrintAreaType AD_Reference_ID=256 */ -public static final int PRINTAREATYPE_AD_Reference_ID=256; -/** Content = C */ -public static final String PRINTAREATYPE_Content = "C"; -/** Footer = F */ -public static final String PRINTAREATYPE_Footer = "F"; -/** Header = H */ +public static final int PRINTAREATYPE_AD_Reference_ID=256;/** Content = C */ +public static final String PRINTAREATYPE_Content = "C";/** Footer = F */ +public static final String PRINTAREATYPE_Footer = "F";/** Header = H */ public static final String PRINTAREATYPE_Header = "H"; -/** Set Area. -@param PrintAreaType Print Area */ -public void setPrintAreaType (String PrintAreaType) -{ -if (PrintAreaType == null) throw new IllegalArgumentException ("PrintAreaType is mandatory"); -if (PrintAreaType.equals("C") || PrintAreaType.equals("F") || PrintAreaType.equals("H")); - else throw new IllegalArgumentException ("PrintAreaType Invalid value - " + PrintAreaType + " - Reference_ID=256 - C - F - H"); -if (PrintAreaType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PrintAreaType = PrintAreaType.substring(0,0); -} -set_Value ("PrintAreaType", PrintAreaType); -} -/** Get Area. -@return Print Area */ -public String getPrintAreaType() -{ -return (String)get_Value("PrintAreaType"); -} -/** Column name PrintAreaType */ -public static final String COLUMNNAME_PrintAreaType = "PrintAreaType"; + /** Set Area. + @param PrintAreaType + Print Area + */ + public void setPrintAreaType (String PrintAreaType) + { +if (PrintAreaType == null) throw new IllegalArgumentException ("PrintAreaType is mandatory");if (PrintAreaType.equals("C") || PrintAreaType.equals("F") || PrintAreaType.equals("H")); else throw new IllegalArgumentException ("PrintAreaType Invalid value - " + PrintAreaType + " - Reference_ID=256 - C - F - H"); if (PrintAreaType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PrintAreaType = PrintAreaType.substring(0, 0); + } + set_Value (COLUMNNAME_PrintAreaType, PrintAreaType); + } + + /** Get Area. + @return Print Area + */ + public String getPrintAreaType () + { + return (String)get_Value(COLUMNNAME_PrintAreaType); + } /** PrintFormatType AD_Reference_ID=255 */ -public static final int PRINTFORMATTYPE_AD_Reference_ID=255; -/** Field = F */ -public static final String PRINTFORMATTYPE_Field = "F"; -/** Image = I */ -public static final String PRINTFORMATTYPE_Image = "I"; -/** Line = L */ -public static final String PRINTFORMATTYPE_Line = "L"; -/** Print Format = P */ -public static final String PRINTFORMATTYPE_PrintFormat = "P"; -/** Rectangle = R */ -public static final String PRINTFORMATTYPE_Rectangle = "R"; -/** Text = T */ +public static final int PRINTFORMATTYPE_AD_Reference_ID=255;/** Field = F */ +public static final String PRINTFORMATTYPE_Field = "F";/** Image = I */ +public static final String PRINTFORMATTYPE_Image = "I";/** Line = L */ +public static final String PRINTFORMATTYPE_Line = "L";/** Print Format = P */ +public static final String PRINTFORMATTYPE_PrintFormat = "P";/** Rectangle = R */ +public static final String PRINTFORMATTYPE_Rectangle = "R";/** Text = T */ public static final String PRINTFORMATTYPE_Text = "T"; -/** Set Format Type. -@param PrintFormatType Print Format Type */ -public void setPrintFormatType (String PrintFormatType) -{ -if (PrintFormatType == null) throw new IllegalArgumentException ("PrintFormatType is mandatory"); -if (PrintFormatType.equals("F") || PrintFormatType.equals("I") || PrintFormatType.equals("L") || PrintFormatType.equals("P") || PrintFormatType.equals("R") || PrintFormatType.equals("T")); - else throw new IllegalArgumentException ("PrintFormatType Invalid value - " + PrintFormatType + " - Reference_ID=255 - F - I - L - P - R - T"); -if (PrintFormatType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PrintFormatType = PrintFormatType.substring(0,0); -} -set_Value ("PrintFormatType", PrintFormatType); -} -/** Get Format Type. -@return Print Format Type */ -public String getPrintFormatType() -{ -return (String)get_Value("PrintFormatType"); -} -/** Column name PrintFormatType */ -public static final String COLUMNNAME_PrintFormatType = "PrintFormatType"; -/** Set Print Text. -@param PrintName The label text to be printed on a document or correspondence. */ -public void setPrintName (String PrintName) -{ -if (PrintName != null && PrintName.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -PrintName = PrintName.substring(0,1999); -} -set_Value ("PrintName", PrintName); -} -/** Get Print Text. -@return The label text to be printed on a document or correspondence. */ -public String getPrintName() -{ -return (String)get_Value("PrintName"); -} -/** Column name PrintName */ -public static final String COLUMNNAME_PrintName = "PrintName"; -/** Set Print Label Suffix. -@param PrintNameSuffix The label text to be printed on a document or correspondence after the field */ -public void setPrintNameSuffix (String PrintNameSuffix) -{ -if (PrintNameSuffix != null && PrintNameSuffix.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PrintNameSuffix = PrintNameSuffix.substring(0,59); -} -set_Value ("PrintNameSuffix", PrintNameSuffix); -} -/** Get Print Label Suffix. -@return The label text to be printed on a document or correspondence after the field */ -public String getPrintNameSuffix() -{ -return (String)get_Value("PrintNameSuffix"); -} -/** Column name PrintNameSuffix */ -public static final String COLUMNNAME_PrintNameSuffix = "PrintNameSuffix"; -/** Set Running Total Lines. -@param RunningTotalLines Create Running Total Lines (page break) every x lines */ -public void setRunningTotalLines (int RunningTotalLines) -{ -set_Value ("RunningTotalLines", Integer.valueOf(RunningTotalLines)); -} -/** Get Running Total Lines. -@return Create Running Total Lines (page break) every x lines */ -public int getRunningTotalLines() -{ -Integer ii = (Integer)get_Value("RunningTotalLines"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RunningTotalLines */ -public static final String COLUMNNAME_RunningTotalLines = "RunningTotalLines"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; + /** Set Format Type. + @param PrintFormatType + Print Format Type + */ + public void setPrintFormatType (String PrintFormatType) + { +if (PrintFormatType == null) throw new IllegalArgumentException ("PrintFormatType is mandatory");if (PrintFormatType.equals("F") || PrintFormatType.equals("I") || PrintFormatType.equals("L") || PrintFormatType.equals("P") || PrintFormatType.equals("R") || PrintFormatType.equals("T")); else throw new IllegalArgumentException ("PrintFormatType Invalid value - " + PrintFormatType + " - Reference_ID=255 - F - I - L - P - R - T"); if (PrintFormatType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PrintFormatType = PrintFormatType.substring(0, 0); + } + set_Value (COLUMNNAME_PrintFormatType, PrintFormatType); + } + + /** Get Format Type. + @return Print Format Type + */ + public String getPrintFormatType () + { + return (String)get_Value(COLUMNNAME_PrintFormatType); + } + + /** Set Print Text. + @param PrintName + The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName) + { + if (PrintName != null && PrintName.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + PrintName = PrintName.substring(0, 1999); + } + set_Value (COLUMNNAME_PrintName, PrintName); + } + + /** Get Print Text. + @return The label text to be printed on a document or correspondence. + */ + public String getPrintName () + { + return (String)get_Value(COLUMNNAME_PrintName); + } + + /** Set Print Label Suffix. + @param PrintNameSuffix + The label text to be printed on a document or correspondence after the field + */ + public void setPrintNameSuffix (String PrintNameSuffix) + { + if (PrintNameSuffix != null && PrintNameSuffix.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrintNameSuffix = PrintNameSuffix.substring(0, 59); + } + set_Value (COLUMNNAME_PrintNameSuffix, PrintNameSuffix); + } + + /** Get Print Label Suffix. + @return The label text to be printed on a document or correspondence after the field + */ + public String getPrintNameSuffix () + { + return (String)get_Value(COLUMNNAME_PrintNameSuffix); + } + + /** Set Running Total Lines. + @param RunningTotalLines + Create Running Total Lines (page break) every x lines + */ + public void setRunningTotalLines (int RunningTotalLines) + { + set_Value (COLUMNNAME_RunningTotalLines, Integer.valueOf(RunningTotalLines)); + } + + /** Get Running Total Lines. + @return Create Running Total Lines (page break) every x lines + */ + public int getRunningTotalLines () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RunningTotalLines); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } /** ShapeType AD_Reference_ID=333 */ -public static final int SHAPETYPE_AD_Reference_ID=333; -/** 3D Rectangle = 3 */ -public static final String SHAPETYPE_3DRectangle = "3"; -/** Normal Rectangle = N */ -public static final String SHAPETYPE_NormalRectangle = "N"; -/** Oval = O */ -public static final String SHAPETYPE_Oval = "O"; -/** Round Rectangle = R */ +public static final int SHAPETYPE_AD_Reference_ID=333;/** 3D Rectangle = 3 */ +public static final String SHAPETYPE_3DRectangle = "3";/** Normal Rectangle = N */ +public static final String SHAPETYPE_NormalRectangle = "N";/** Oval = O */ +public static final String SHAPETYPE_Oval = "O";/** Round Rectangle = R */ public static final String SHAPETYPE_RoundRectangle = "R"; -/** Set Shape Type. -@param ShapeType Type of the shape to be painted */ -public void setShapeType (String ShapeType) -{ -if (ShapeType == null || ShapeType.equals("3") || ShapeType.equals("N") || ShapeType.equals("O") || ShapeType.equals("R")); - else throw new IllegalArgumentException ("ShapeType Invalid value - " + ShapeType + " - Reference_ID=333 - 3 - N - O - R"); -if (ShapeType != null && ShapeType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ShapeType = ShapeType.substring(0,0); -} -set_Value ("ShapeType", ShapeType); -} -/** Get Shape Type. -@return Type of the shape to be painted */ -public String getShapeType() -{ -return (String)get_Value("ShapeType"); -} -/** Column name ShapeType */ -public static final String COLUMNNAME_ShapeType = "ShapeType"; -/** Set Record Sort No. -@param SortNo Determines in what order the records are displayed */ -public void setSortNo (int SortNo) -{ -set_Value ("SortNo", Integer.valueOf(SortNo)); -} -/** Get Record Sort No. -@return Determines in what order the records are displayed */ -public int getSortNo() -{ -Integer ii = (Integer)get_Value("SortNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SortNo */ -public static final String COLUMNNAME_SortNo = "SortNo"; -/** Set X Position. -@param XPosition Absolute X (horizontal) position in 1/72 of an inch */ -public void setXPosition (int XPosition) -{ -set_Value ("XPosition", Integer.valueOf(XPosition)); -} -/** Get X Position. -@return Absolute X (horizontal) position in 1/72 of an inch */ -public int getXPosition() -{ -Integer ii = (Integer)get_Value("XPosition"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name XPosition */ -public static final String COLUMNNAME_XPosition = "XPosition"; -/** Set X Space. -@param XSpace Relative X (horizontal) space in 1/72 of an inch */ -public void setXSpace (int XSpace) -{ -set_Value ("XSpace", Integer.valueOf(XSpace)); -} -/** Get X Space. -@return Relative X (horizontal) space in 1/72 of an inch */ -public int getXSpace() -{ -Integer ii = (Integer)get_Value("XSpace"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name XSpace */ -public static final String COLUMNNAME_XSpace = "XSpace"; -/** Set Y Position. -@param YPosition Absolute Y (vertical) position in 1/72 of an inch */ -public void setYPosition (int YPosition) -{ -set_Value ("YPosition", Integer.valueOf(YPosition)); -} -/** Get Y Position. -@return Absolute Y (vertical) position in 1/72 of an inch */ -public int getYPosition() -{ -Integer ii = (Integer)get_Value("YPosition"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name YPosition */ -public static final String COLUMNNAME_YPosition = "YPosition"; -/** Set Y Space. -@param YSpace Relative Y (vertical) space in 1/72 of an inch */ -public void setYSpace (int YSpace) -{ -set_Value ("YSpace", Integer.valueOf(YSpace)); -} -/** Get Y Space. -@return Relative Y (vertical) space in 1/72 of an inch */ -public int getYSpace() -{ -Integer ii = (Integer)get_Value("YSpace"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name YSpace */ -public static final String COLUMNNAME_YSpace = "YSpace"; -} + /** Set Shape Type. + @param ShapeType + Type of the shape to be painted + */ + public void setShapeType (String ShapeType) + { +if (ShapeType == null || ShapeType.equals("3") || ShapeType.equals("N") || ShapeType.equals("O") || ShapeType.equals("R")); else throw new IllegalArgumentException ("ShapeType Invalid value - " + ShapeType + " - Reference_ID=333 - 3 - N - O - R"); if (ShapeType != null && ShapeType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ShapeType = ShapeType.substring(0, 0); + } + set_Value (COLUMNNAME_ShapeType, ShapeType); + } + + /** Get Shape Type. + @return Type of the shape to be painted + */ + public String getShapeType () + { + return (String)get_Value(COLUMNNAME_ShapeType); + } + + /** Set Record Sort No. + @param SortNo + Determines in what order the records are displayed + */ + public void setSortNo (int SortNo) + { + set_Value (COLUMNNAME_SortNo, Integer.valueOf(SortNo)); + } + + /** Get Record Sort No. + @return Determines in what order the records are displayed + */ + public int getSortNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SortNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set X Position. + @param XPosition + Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition) + { + set_Value (COLUMNNAME_XPosition, Integer.valueOf(XPosition)); + } + + /** Get X Position. + @return Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_XPosition); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set X Space. + @param XSpace + Relative X (horizontal) space in 1/72 of an inch + */ + public void setXSpace (int XSpace) + { + set_Value (COLUMNNAME_XSpace, Integer.valueOf(XSpace)); + } + + /** Get X Space. + @return Relative X (horizontal) space in 1/72 of an inch + */ + public int getXSpace () + { + Integer ii = (Integer)get_Value(COLUMNNAME_XSpace); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Y Position. + @param YPosition + Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition) + { + set_Value (COLUMNNAME_YPosition, Integer.valueOf(YPosition)); + } + + /** Get Y Position. + @return Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_YPosition); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Y Space. + @param YSpace + Relative Y (vertical) space in 1/72 of an inch + */ + public void setYSpace (int YSpace) + { + set_Value (COLUMNNAME_YSpace, Integer.valueOf(YSpace)); + } + + /** Get Y Space. + @return Relative Y (vertical) space in 1/72 of an inch + */ + public int getYSpace () + { + Integer ii = (Integer)get_Value(COLUMNNAME_YSpace); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintGraph.java b/base/src/org/compiere/model/X_AD_PrintGraph.java index 613f5a301f..ae5b9c6fa7 100644 --- a/base/src/org/compiere/model/X_AD_PrintGraph.java +++ b/base/src/org/compiere/model/X_AD_PrintGraph.java @@ -1,327 +1,364 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintGraph - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintGraph extends PO + +/** Generated Model for AD_PrintGraph + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintGraph extends PO implements I_AD_PrintGraph, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintGraph_ID id -@param trxName transaction -*/ -public X_AD_PrintGraph (Properties ctx, int AD_PrintGraph_ID, String trxName) -{ -super (ctx, AD_PrintGraph_ID, trxName); -/** if (AD_PrintGraph_ID == 0) -{ -setAD_PrintFormat_ID (0); // 0 -setAD_PrintGraph_ID (0); -setData_PrintFormatItem_ID (0); -setDescription_PrintFormatItem_ID (0); -setGraphType (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintGraph (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintGraph */ -public static final String Table_Name="AD_PrintGraph"; - -/** AD_Table_ID=521 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintGraph[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID < 1) throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); -set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set Graph. -@param AD_PrintGraph_ID Graph included in Reports */ -public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) -{ -if (AD_PrintGraph_ID < 1) throw new IllegalArgumentException ("AD_PrintGraph_ID is mandatory."); -set_ValueNoCheck ("AD_PrintGraph_ID", Integer.valueOf(AD_PrintGraph_ID)); -} -/** Get Graph. -@return Graph included in Reports */ -public int getAD_PrintGraph_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintGraph_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintGraph_ID */ -public static final String COLUMNNAME_AD_PrintGraph_ID = "AD_PrintGraph_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintGraph (Properties ctx, int AD_PrintGraph_ID, String trxName) + { + super (ctx, AD_PrintGraph_ID, trxName); + /** if (AD_PrintGraph_ID == 0) { setAD_PrintFormat_ID (0); +// 0 + setAD_PrintGraph_ID (0); + setData_PrintFormatItem_ID (0); + setDescription_PrintFormatItem_ID (0); + setGraphType (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintGraph (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintGraph[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID < 1) + throw new IllegalArgumentException ("AD_PrintFormat_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Graph. + @param AD_PrintGraph_ID + Graph included in Reports + */ + public void setAD_PrintGraph_ID (int AD_PrintGraph_ID) + { + if (AD_PrintGraph_ID < 1) + throw new IllegalArgumentException ("AD_PrintGraph_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintGraph_ID, Integer.valueOf(AD_PrintGraph_ID)); + } + + /** Get Graph. + @return Graph included in Reports + */ + public int getAD_PrintGraph_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintGraph_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Data1_PrintFormatItem_ID AD_Reference_ID=264 */ public static final int DATA1_PRINTFORMATITEM_ID_AD_Reference_ID=264; -/** Set Data Column 2. -@param Data1_PrintFormatItem_ID Data Column for Line Charts */ -public void setData1_PrintFormatItem_ID (int Data1_PrintFormatItem_ID) -{ -if (Data1_PrintFormatItem_ID <= 0) set_Value ("Data1_PrintFormatItem_ID", null); - else -set_Value ("Data1_PrintFormatItem_ID", Integer.valueOf(Data1_PrintFormatItem_ID)); -} -/** Get Data Column 2. -@return Data Column for Line Charts */ -public int getData1_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("Data1_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Data1_PrintFormatItem_ID */ -public static final String COLUMNNAME_Data1_PrintFormatItem_ID = "Data1_PrintFormatItem_ID"; + /** Set Data Column 2. + @param Data1_PrintFormatItem_ID + Data Column for Line Charts + */ + public void setData1_PrintFormatItem_ID (int Data1_PrintFormatItem_ID) + { + if (Data1_PrintFormatItem_ID <= 0) set_Value (COLUMNNAME_Data1_PrintFormatItem_ID, null); + else + set_Value (COLUMNNAME_Data1_PrintFormatItem_ID, Integer.valueOf(Data1_PrintFormatItem_ID)); + } + + /** Get Data Column 2. + @return Data Column for Line Charts + */ + public int getData1_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Data1_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Data2_PrintFormatItem_ID AD_Reference_ID=264 */ public static final int DATA2_PRINTFORMATITEM_ID_AD_Reference_ID=264; -/** Set Data Column 3. -@param Data2_PrintFormatItem_ID Data Column for Line Charts */ -public void setData2_PrintFormatItem_ID (int Data2_PrintFormatItem_ID) -{ -if (Data2_PrintFormatItem_ID <= 0) set_Value ("Data2_PrintFormatItem_ID", null); - else -set_Value ("Data2_PrintFormatItem_ID", Integer.valueOf(Data2_PrintFormatItem_ID)); -} -/** Get Data Column 3. -@return Data Column for Line Charts */ -public int getData2_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("Data2_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Data2_PrintFormatItem_ID */ -public static final String COLUMNNAME_Data2_PrintFormatItem_ID = "Data2_PrintFormatItem_ID"; + /** Set Data Column 3. + @param Data2_PrintFormatItem_ID + Data Column for Line Charts + */ + public void setData2_PrintFormatItem_ID (int Data2_PrintFormatItem_ID) + { + if (Data2_PrintFormatItem_ID <= 0) set_Value (COLUMNNAME_Data2_PrintFormatItem_ID, null); + else + set_Value (COLUMNNAME_Data2_PrintFormatItem_ID, Integer.valueOf(Data2_PrintFormatItem_ID)); + } + + /** Get Data Column 3. + @return Data Column for Line Charts + */ + public int getData2_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Data2_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Data3_PrintFormatItem_ID AD_Reference_ID=264 */ public static final int DATA3_PRINTFORMATITEM_ID_AD_Reference_ID=264; -/** Set Data Column 4. -@param Data3_PrintFormatItem_ID Data Column for Line Charts */ -public void setData3_PrintFormatItem_ID (int Data3_PrintFormatItem_ID) -{ -if (Data3_PrintFormatItem_ID <= 0) set_Value ("Data3_PrintFormatItem_ID", null); - else -set_Value ("Data3_PrintFormatItem_ID", Integer.valueOf(Data3_PrintFormatItem_ID)); -} -/** Get Data Column 4. -@return Data Column for Line Charts */ -public int getData3_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("Data3_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Data3_PrintFormatItem_ID */ -public static final String COLUMNNAME_Data3_PrintFormatItem_ID = "Data3_PrintFormatItem_ID"; + /** Set Data Column 4. + @param Data3_PrintFormatItem_ID + Data Column for Line Charts + */ + public void setData3_PrintFormatItem_ID (int Data3_PrintFormatItem_ID) + { + if (Data3_PrintFormatItem_ID <= 0) set_Value (COLUMNNAME_Data3_PrintFormatItem_ID, null); + else + set_Value (COLUMNNAME_Data3_PrintFormatItem_ID, Integer.valueOf(Data3_PrintFormatItem_ID)); + } + + /** Get Data Column 4. + @return Data Column for Line Charts + */ + public int getData3_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Data3_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Data4_PrintFormatItem_ID AD_Reference_ID=264 */ public static final int DATA4_PRINTFORMATITEM_ID_AD_Reference_ID=264; -/** Set Data Column 5. -@param Data4_PrintFormatItem_ID Data Column for Line Charts */ -public void setData4_PrintFormatItem_ID (int Data4_PrintFormatItem_ID) -{ -if (Data4_PrintFormatItem_ID <= 0) set_Value ("Data4_PrintFormatItem_ID", null); - else -set_Value ("Data4_PrintFormatItem_ID", Integer.valueOf(Data4_PrintFormatItem_ID)); -} -/** Get Data Column 5. -@return Data Column for Line Charts */ -public int getData4_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("Data4_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Data4_PrintFormatItem_ID */ -public static final String COLUMNNAME_Data4_PrintFormatItem_ID = "Data4_PrintFormatItem_ID"; + /** Set Data Column 5. + @param Data4_PrintFormatItem_ID + Data Column for Line Charts + */ + public void setData4_PrintFormatItem_ID (int Data4_PrintFormatItem_ID) + { + if (Data4_PrintFormatItem_ID <= 0) set_Value (COLUMNNAME_Data4_PrintFormatItem_ID, null); + else + set_Value (COLUMNNAME_Data4_PrintFormatItem_ID, Integer.valueOf(Data4_PrintFormatItem_ID)); + } + + /** Get Data Column 5. + @return Data Column for Line Charts + */ + public int getData4_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Data4_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Data_PrintFormatItem_ID AD_Reference_ID=264 */ public static final int DATA_PRINTFORMATITEM_ID_AD_Reference_ID=264; -/** Set Data Column. -@param Data_PrintFormatItem_ID Data Column for Pie and Line Charts */ -public void setData_PrintFormatItem_ID (int Data_PrintFormatItem_ID) -{ -if (Data_PrintFormatItem_ID < 1) throw new IllegalArgumentException ("Data_PrintFormatItem_ID is mandatory."); -set_Value ("Data_PrintFormatItem_ID", Integer.valueOf(Data_PrintFormatItem_ID)); -} -/** Get Data Column. -@return Data Column for Pie and Line Charts */ -public int getData_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("Data_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Data_PrintFormatItem_ID */ -public static final String COLUMNNAME_Data_PrintFormatItem_ID = "Data_PrintFormatItem_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Data Column. + @param Data_PrintFormatItem_ID + Data Column for Pie and Line Charts + */ + public void setData_PrintFormatItem_ID (int Data_PrintFormatItem_ID) + { + if (Data_PrintFormatItem_ID < 1) + throw new IllegalArgumentException ("Data_PrintFormatItem_ID is mandatory."); + set_Value (COLUMNNAME_Data_PrintFormatItem_ID, Integer.valueOf(Data_PrintFormatItem_ID)); + } + + /** Get Data Column. + @return Data Column for Pie and Line Charts + */ + public int getData_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Data_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** Description_PrintFormatItem_ID AD_Reference_ID=264 */ public static final int DESCRIPTION_PRINTFORMATITEM_ID_AD_Reference_ID=264; -/** Set Description Column. -@param Description_PrintFormatItem_ID Description Column for Pie/Line/Bar Charts */ -public void setDescription_PrintFormatItem_ID (int Description_PrintFormatItem_ID) -{ -if (Description_PrintFormatItem_ID < 1) throw new IllegalArgumentException ("Description_PrintFormatItem_ID is mandatory."); -set_Value ("Description_PrintFormatItem_ID", Integer.valueOf(Description_PrintFormatItem_ID)); -} -/** Get Description Column. -@return Description Column for Pie/Line/Bar Charts */ -public int getDescription_PrintFormatItem_ID() -{ -Integer ii = (Integer)get_Value("Description_PrintFormatItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Description_PrintFormatItem_ID */ -public static final String COLUMNNAME_Description_PrintFormatItem_ID = "Description_PrintFormatItem_ID"; + /** Set Description Column. + @param Description_PrintFormatItem_ID + Description Column for Pie/Line/Bar Charts + */ + public void setDescription_PrintFormatItem_ID (int Description_PrintFormatItem_ID) + { + if (Description_PrintFormatItem_ID < 1) + throw new IllegalArgumentException ("Description_PrintFormatItem_ID is mandatory."); + set_Value (COLUMNNAME_Description_PrintFormatItem_ID, Integer.valueOf(Description_PrintFormatItem_ID)); + } + + /** Get Description Column. + @return Description Column for Pie/Line/Bar Charts + */ + public int getDescription_PrintFormatItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Description_PrintFormatItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** GraphType AD_Reference_ID=265 */ -public static final int GRAPHTYPE_AD_Reference_ID=265; -/** Bar Chart = B */ -public static final String GRAPHTYPE_BarChart = "B"; -/** Line Chart = L */ -public static final String GRAPHTYPE_LineChart = "L"; -/** Pie Chart = P */ +public static final int GRAPHTYPE_AD_Reference_ID=265;/** Bar Chart = B */ +public static final String GRAPHTYPE_BarChart = "B";/** Line Chart = L */ +public static final String GRAPHTYPE_LineChart = "L";/** Pie Chart = P */ public static final String GRAPHTYPE_PieChart = "P"; -/** Set Graph Type. -@param GraphType Type of graph to be painted */ -public void setGraphType (String GraphType) -{ -if (GraphType == null) throw new IllegalArgumentException ("GraphType is mandatory"); -if (GraphType.equals("B") || GraphType.equals("L") || GraphType.equals("P")); - else throw new IllegalArgumentException ("GraphType Invalid value - " + GraphType + " - Reference_ID=265 - B - L - P"); -if (GraphType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GraphType = GraphType.substring(0,0); -} -set_Value ("GraphType", GraphType); -} -/** Get Graph Type. -@return Type of graph to be painted */ -public String getGraphType() -{ -return (String)get_Value("GraphType"); -} -/** Column name GraphType */ -public static final String COLUMNNAME_GraphType = "GraphType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Graph Type. + @param GraphType + Type of graph to be painted + */ + public void setGraphType (String GraphType) + { +if (GraphType == null) throw new IllegalArgumentException ("GraphType is mandatory");if (GraphType.equals("B") || GraphType.equals("L") || GraphType.equals("P")); else throw new IllegalArgumentException ("GraphType Invalid value - " + GraphType + " - Reference_ID=265 - B - L - P"); if (GraphType.length() > 1) + { + log.warning("Length > 1 - truncated"); + GraphType = GraphType.substring(0, 0); + } + set_Value (COLUMNNAME_GraphType, GraphType); + } + + /** Get Graph Type. + @return Type of graph to be painted + */ + public String getGraphType () + { + return (String)get_Value(COLUMNNAME_GraphType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintLabel.java b/base/src/org/compiere/model/X_AD_PrintLabel.java index 638acffc2c..cd1ea80dff 100644 --- a/base/src/org/compiere/model/X_AD_PrintLabel.java +++ b/base/src/org/compiere/model/X_AD_PrintLabel.java @@ -1,261 +1,301 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintLabel - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintLabel extends PO + +/** Generated Model for AD_PrintLabel + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintLabel extends PO implements I_AD_PrintLabel, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintLabel_ID id -@param trxName transaction -*/ -public X_AD_PrintLabel (Properties ctx, int AD_PrintLabel_ID, String trxName) -{ -super (ctx, AD_PrintLabel_ID, trxName); -/** if (AD_PrintLabel_ID == 0) -{ -setAD_LabelPrinter_ID (0); -setAD_PrintLabel_ID (0); -setAD_Table_ID (0); -setIsLandscape (false); -setLabelHeight (0); -setLabelWidth (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintLabel (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintLabel */ -public static final String Table_Name="AD_PrintLabel"; - -/** AD_Table_ID=570 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintLabel[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Label printer. -@param AD_LabelPrinter_ID Label Printer Definition */ -public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) -{ -if (AD_LabelPrinter_ID < 1) throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); -set_Value ("AD_LabelPrinter_ID", Integer.valueOf(AD_LabelPrinter_ID)); -} -/** Get Label printer. -@return Label Printer Definition */ -public int getAD_LabelPrinter_ID() -{ -Integer ii = (Integer)get_Value("AD_LabelPrinter_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LabelPrinter_ID */ -public static final String COLUMNNAME_AD_LabelPrinter_ID = "AD_LabelPrinter_ID"; -/** Set Print Label. -@param AD_PrintLabel_ID Label Format to print */ -public void setAD_PrintLabel_ID (int AD_PrintLabel_ID) -{ -if (AD_PrintLabel_ID < 1) throw new IllegalArgumentException ("AD_PrintLabel_ID is mandatory."); -set_ValueNoCheck ("AD_PrintLabel_ID", Integer.valueOf(AD_PrintLabel_ID)); -} -/** Get Print Label. -@return Label Format to print */ -public int getAD_PrintLabel_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintLabel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintLabel_ID */ -public static final String COLUMNNAME_AD_PrintLabel_ID = "AD_PrintLabel_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Landscape. -@param IsLandscape Landscape orientation */ -public void setIsLandscape (boolean IsLandscape) -{ -set_Value ("IsLandscape", Boolean.valueOf(IsLandscape)); -} -/** Get Landscape. -@return Landscape orientation */ -public boolean isLandscape() -{ -Object oo = get_Value("IsLandscape"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsLandscape */ -public static final String COLUMNNAME_IsLandscape = "IsLandscape"; -/** Set Label Height. -@param LabelHeight Height of the label */ -public void setLabelHeight (int LabelHeight) -{ -set_Value ("LabelHeight", Integer.valueOf(LabelHeight)); -} -/** Get Label Height. -@return Height of the label */ -public int getLabelHeight() -{ -Integer ii = (Integer)get_Value("LabelHeight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LabelHeight */ -public static final String COLUMNNAME_LabelHeight = "LabelHeight"; -/** Set Label Width. -@param LabelWidth Width of the Label */ -public void setLabelWidth (int LabelWidth) -{ -set_Value ("LabelWidth", Integer.valueOf(LabelWidth)); -} -/** Get Label Width. -@return Width of the Label */ -public int getLabelWidth() -{ -Integer ii = (Integer)get_Value("LabelWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LabelWidth */ -public static final String COLUMNNAME_LabelWidth = "LabelWidth"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Printer Name. -@param PrinterName Name of the Printer */ -public void setPrinterName (String PrinterName) -{ -if (PrinterName != null && PrinterName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -PrinterName = PrinterName.substring(0,39); -} -set_Value ("PrinterName", PrinterName); -} -/** Get Printer Name. -@return Name of the Printer */ -public String getPrinterName() -{ -return (String)get_Value("PrinterName"); -} -/** Column name PrinterName */ -public static final String COLUMNNAME_PrinterName = "PrinterName"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintLabel (Properties ctx, int AD_PrintLabel_ID, String trxName) + { + super (ctx, AD_PrintLabel_ID, trxName); + /** if (AD_PrintLabel_ID == 0) { setAD_LabelPrinter_ID (0); + setAD_PrintLabel_ID (0); + setAD_Table_ID (0); + setIsLandscape (false); + setLabelHeight (0); + setLabelWidth (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintLabel (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintLabel[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Label printer. + @param AD_LabelPrinter_ID + Label Printer Definition + */ + public void setAD_LabelPrinter_ID (int AD_LabelPrinter_ID) + { + if (AD_LabelPrinter_ID < 1) + throw new IllegalArgumentException ("AD_LabelPrinter_ID is mandatory."); + set_Value (COLUMNNAME_AD_LabelPrinter_ID, Integer.valueOf(AD_LabelPrinter_ID)); + } + + /** Get Label printer. + @return Label Printer Definition + */ + public int getAD_LabelPrinter_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelPrinter_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Print Label. + @param AD_PrintLabel_ID + Label Format to print + */ + public void setAD_PrintLabel_ID (int AD_PrintLabel_ID) + { + if (AD_PrintLabel_ID < 1) + throw new IllegalArgumentException ("AD_PrintLabel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, Integer.valueOf(AD_PrintLabel_ID)); + } + + /** Get Print Label. + @return Label Format to print + */ + public int getAD_PrintLabel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintLabel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Landscape. + @param IsLandscape + Landscape orientation + */ + public void setIsLandscape (boolean IsLandscape) + { + set_Value (COLUMNNAME_IsLandscape, Boolean.valueOf(IsLandscape)); + } + + /** Get Landscape. + @return Landscape orientation + */ + public boolean isLandscape () + { + Object oo = get_Value(COLUMNNAME_IsLandscape); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Label Height. + @param LabelHeight + Height of the label + */ + public void setLabelHeight (int LabelHeight) + { + set_Value (COLUMNNAME_LabelHeight, Integer.valueOf(LabelHeight)); + } + + /** Get Label Height. + @return Height of the label + */ + public int getLabelHeight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LabelHeight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Label Width. + @param LabelWidth + Width of the Label + */ + public void setLabelWidth (int LabelWidth) + { + set_Value (COLUMNNAME_LabelWidth, Integer.valueOf(LabelWidth)); + } + + /** Get Label Width. + @return Width of the Label + */ + public int getLabelWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LabelWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Printer Name. + @param PrinterName + Name of the Printer + */ + public void setPrinterName (String PrinterName) + { + if (PrinterName != null && PrinterName.length() > 40) + { + log.warning("Length > 40 - truncated"); + PrinterName = PrinterName.substring(0, 39); + } + set_Value (COLUMNNAME_PrinterName, PrinterName); + } + + /** Get Printer Name. + @return Name of the Printer + */ + public String getPrinterName () + { + return (String)get_Value(COLUMNNAME_PrinterName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintLabelLine.java b/base/src/org/compiere/model/X_AD_PrintLabelLine.java index cb0321922d..fcd3df583d 100644 --- a/base/src/org/compiere/model/X_AD_PrintLabelLine.java +++ b/base/src/org/compiere/model/X_AD_PrintLabelLine.java @@ -1,288 +1,357 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintLabelLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintLabelLine extends PO + +/** Generated Model for AD_PrintLabelLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintLabelLine extends PO implements I_AD_PrintLabelLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintLabelLine_ID id -@param trxName transaction -*/ -public X_AD_PrintLabelLine (Properties ctx, int AD_PrintLabelLine_ID, String trxName) -{ -super (ctx, AD_PrintLabelLine_ID, trxName); -/** if (AD_PrintLabelLine_ID == 0) -{ -setAD_LabelPrinterFunction_ID (0); -setAD_PrintLabelLine_ID (0); -setAD_PrintLabel_ID (0); -setLabelFormatType (null); // F -setName (null); -setSeqNo (0); -setXPosition (0); -setYPosition (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintLabelLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintLabelLine */ -public static final String Table_Name="AD_PrintLabelLine"; - -/** AD_Table_ID=569 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintLabelLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Label printer Function. -@param AD_LabelPrinterFunction_ID Function of Label Printer */ -public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) -{ -if (AD_LabelPrinterFunction_ID < 1) throw new IllegalArgumentException ("AD_LabelPrinterFunction_ID is mandatory."); -set_Value ("AD_LabelPrinterFunction_ID", Integer.valueOf(AD_LabelPrinterFunction_ID)); -} -/** Get Label printer Function. -@return Function of Label Printer */ -public int getAD_LabelPrinterFunction_ID() -{ -Integer ii = (Integer)get_Value("AD_LabelPrinterFunction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_LabelPrinterFunction_ID */ -public static final String COLUMNNAME_AD_LabelPrinterFunction_ID = "AD_LabelPrinterFunction_ID"; -/** Set Print Label Line. -@param AD_PrintLabelLine_ID Print Label Line Format */ -public void setAD_PrintLabelLine_ID (int AD_PrintLabelLine_ID) -{ -if (AD_PrintLabelLine_ID < 1) throw new IllegalArgumentException ("AD_PrintLabelLine_ID is mandatory."); -set_ValueNoCheck ("AD_PrintLabelLine_ID", Integer.valueOf(AD_PrintLabelLine_ID)); -} -/** Get Print Label Line. -@return Print Label Line Format */ -public int getAD_PrintLabelLine_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintLabelLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintLabelLine_ID */ -public static final String COLUMNNAME_AD_PrintLabelLine_ID = "AD_PrintLabelLine_ID"; -/** Set Print Label. -@param AD_PrintLabel_ID Label Format to print */ -public void setAD_PrintLabel_ID (int AD_PrintLabel_ID) -{ -if (AD_PrintLabel_ID < 1) throw new IllegalArgumentException ("AD_PrintLabel_ID is mandatory."); -set_ValueNoCheck ("AD_PrintLabel_ID", Integer.valueOf(AD_PrintLabel_ID)); -} -/** Get Print Label. -@return Label Format to print */ -public int getAD_PrintLabel_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintLabel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintLabel_ID */ -public static final String COLUMNNAME_AD_PrintLabel_ID = "AD_PrintLabel_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintLabelLine (Properties ctx, int AD_PrintLabelLine_ID, String trxName) + { + super (ctx, AD_PrintLabelLine_ID, trxName); + /** if (AD_PrintLabelLine_ID == 0) { setAD_LabelPrinterFunction_ID (0); + setAD_PrintLabelLine_ID (0); + setAD_PrintLabel_ID (0); + setLabelFormatType (null); +// F + setName (null); + setSeqNo (0); + setXPosition (0); + setYPosition (0); +} */ + } + + /** Load Constructor */ + public X_AD_PrintLabelLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintLabelLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_LabelPrinterFunction getI_AD_LabelPrinterFunction() throws Exception + { + 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 e; + } + return result; + } + + /** Set Label printer Function. + @param AD_LabelPrinterFunction_ID + Function of Label Printer + */ + public void setAD_LabelPrinterFunction_ID (int AD_LabelPrinterFunction_ID) + { + if (AD_LabelPrinterFunction_ID < 1) + throw new IllegalArgumentException ("AD_LabelPrinterFunction_ID is mandatory."); + set_Value (COLUMNNAME_AD_LabelPrinterFunction_ID, Integer.valueOf(AD_LabelPrinterFunction_ID)); + } + + /** Get Label printer Function. + @return Function of Label Printer + */ + public int getAD_LabelPrinterFunction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_LabelPrinterFunction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Print Label Line. + @param AD_PrintLabelLine_ID + Print Label Line Format + */ + public void setAD_PrintLabelLine_ID (int AD_PrintLabelLine_ID) + { + if (AD_PrintLabelLine_ID < 1) + throw new IllegalArgumentException ("AD_PrintLabelLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintLabelLine_ID, Integer.valueOf(AD_PrintLabelLine_ID)); + } + + /** Get Print Label Line. + @return Print Label Line Format + */ + public int getAD_PrintLabelLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintLabelLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_PrintLabel getI_AD_PrintLabel() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Label. + @param AD_PrintLabel_ID + Label Format to print + */ + public void setAD_PrintLabel_ID (int AD_PrintLabel_ID) + { + if (AD_PrintLabel_ID < 1) + throw new IllegalArgumentException ("AD_PrintLabel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintLabel_ID, Integer.valueOf(AD_PrintLabel_ID)); + } + + /** Get Print Label. + @return Label Format to print + */ + public int getAD_PrintLabel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintLabel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** LabelFormatType AD_Reference_ID=280 */ -public static final int LABELFORMATTYPE_AD_Reference_ID=280; -/** Field = F */ -public static final String LABELFORMATTYPE_Field = "F"; -/** Text = T */ +public static final int LABELFORMATTYPE_AD_Reference_ID=280;/** Field = F */ +public static final String LABELFORMATTYPE_Field = "F";/** Text = T */ public static final String LABELFORMATTYPE_Text = "T"; -/** Set Label Format Type. -@param LabelFormatType Label Format Type */ -public void setLabelFormatType (String LabelFormatType) -{ -if (LabelFormatType == null) throw new IllegalArgumentException ("LabelFormatType is mandatory"); -if (LabelFormatType.equals("F") || LabelFormatType.equals("T")); - else throw new IllegalArgumentException ("LabelFormatType Invalid value - " + LabelFormatType + " - Reference_ID=280 - F - T"); -if (LabelFormatType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LabelFormatType = LabelFormatType.substring(0,0); -} -set_Value ("LabelFormatType", LabelFormatType); -} -/** Get Label Format Type. -@return Label Format Type */ -public String getLabelFormatType() -{ -return (String)get_Value("LabelFormatType"); -} -/** Column name LabelFormatType */ -public static final String COLUMNNAME_LabelFormatType = "LabelFormatType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Print Text. -@param PrintName The label text to be printed on a document or correspondence. */ -public void setPrintName (String PrintName) -{ -if (PrintName != null && PrintName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PrintName = PrintName.substring(0,59); -} -set_Value ("PrintName", PrintName); -} -/** Get Print Text. -@return The label text to be printed on a document or correspondence. */ -public String getPrintName() -{ -return (String)get_Value("PrintName"); -} -/** Column name PrintName */ -public static final String COLUMNNAME_PrintName = "PrintName"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set X Position. -@param XPosition Absolute X (horizontal) position in 1/72 of an inch */ -public void setXPosition (int XPosition) -{ -set_Value ("XPosition", Integer.valueOf(XPosition)); -} -/** Get X Position. -@return Absolute X (horizontal) position in 1/72 of an inch */ -public int getXPosition() -{ -Integer ii = (Integer)get_Value("XPosition"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name XPosition */ -public static final String COLUMNNAME_XPosition = "XPosition"; -/** Set Y Position. -@param YPosition Absolute Y (vertical) position in 1/72 of an inch */ -public void setYPosition (int YPosition) -{ -set_Value ("YPosition", Integer.valueOf(YPosition)); -} -/** Get Y Position. -@return Absolute Y (vertical) position in 1/72 of an inch */ -public int getYPosition() -{ -Integer ii = (Integer)get_Value("YPosition"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name YPosition */ -public static final String COLUMNNAME_YPosition = "YPosition"; -} + /** Set Label Format Type. + @param LabelFormatType + Label Format Type + */ + public void setLabelFormatType (String LabelFormatType) + { +if (LabelFormatType == null) throw new IllegalArgumentException ("LabelFormatType is mandatory");if (LabelFormatType.equals("F") || LabelFormatType.equals("T")); else throw new IllegalArgumentException ("LabelFormatType Invalid value - " + LabelFormatType + " - Reference_ID=280 - F - T"); if (LabelFormatType.length() > 1) + { + log.warning("Length > 1 - truncated"); + LabelFormatType = LabelFormatType.substring(0, 0); + } + set_Value (COLUMNNAME_LabelFormatType, LabelFormatType); + } + + /** Get Label Format Type. + @return Label Format Type + */ + public String getLabelFormatType () + { + return (String)get_Value(COLUMNNAME_LabelFormatType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Print Text. + @param PrintName + The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName) + { + if (PrintName != null && PrintName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrintName = PrintName.substring(0, 59); + } + set_Value (COLUMNNAME_PrintName, PrintName); + } + + /** Get Print Text. + @return The label text to be printed on a document or correspondence. + */ + public String getPrintName () + { + return (String)get_Value(COLUMNNAME_PrintName); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } + + /** Set X Position. + @param XPosition + Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition) + { + set_Value (COLUMNNAME_XPosition, Integer.valueOf(XPosition)); + } + + /** Get X Position. + @return Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_XPosition); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Y Position. + @param YPosition + Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition) + { + set_Value (COLUMNNAME_YPosition, Integer.valueOf(YPosition)); + } + + /** Get Y Position. + @return Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_YPosition); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintPaper.java b/base/src/org/compiere/model/X_AD_PrintPaper.java index 543c57b170..686b93f4ec 100644 --- a/base/src/org/compiere/model/X_AD_PrintPaper.java +++ b/base/src/org/compiere/model/X_AD_PrintPaper.java @@ -1,362 +1,402 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintPaper - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintPaper extends PO + +/** Generated Model for AD_PrintPaper + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintPaper extends PO implements I_AD_PrintPaper, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintPaper_ID id -@param trxName transaction -*/ -public X_AD_PrintPaper (Properties ctx, int AD_PrintPaper_ID, String trxName) -{ -super (ctx, AD_PrintPaper_ID, trxName); -/** if (AD_PrintPaper_ID == 0) -{ -setAD_PrintPaper_ID (0); -setCode (null); // iso-a4 -setIsDefault (false); -setIsLandscape (true); // Y -setMarginBottom (0); // 36 -setMarginLeft (0); // 36 -setMarginRight (0); // 36 -setMarginTop (0); // 36 -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintPaper (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintPaper */ -public static final String Table_Name="AD_PrintPaper"; - -/** AD_Table_ID=492 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintPaper[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Paper. -@param AD_PrintPaper_ID Printer paper definition */ -public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) -{ -if (AD_PrintPaper_ID < 1) throw new IllegalArgumentException ("AD_PrintPaper_ID is mandatory."); -set_ValueNoCheck ("AD_PrintPaper_ID", Integer.valueOf(AD_PrintPaper_ID)); -} -/** Get Print Paper. -@return Printer paper definition */ -public int getAD_PrintPaper_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintPaper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintPaper_ID */ -public static final String COLUMNNAME_AD_PrintPaper_ID = "AD_PrintPaper_ID"; -/** Set Validation code. -@param Code Validation Code */ -public void setCode (String Code) -{ -if (Code == null) throw new IllegalArgumentException ("Code is mandatory."); -if (Code.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Code = Code.substring(0,1999); -} -set_Value ("Code", Code); -} -/** Get Validation code. -@return Validation Code */ -public String getCode() -{ -return (String)get_Value("Code"); -} -/** Column name Code */ -public static final String COLUMNNAME_Code = "Code"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintPaper (Properties ctx, int AD_PrintPaper_ID, String trxName) + { + super (ctx, AD_PrintPaper_ID, trxName); + /** if (AD_PrintPaper_ID == 0) { setAD_PrintPaper_ID (0); + setCode (null); +// iso-a4 + setIsDefault (false); + setIsLandscape (true); +// Y + setMarginBottom (0); +// 36 + setMarginLeft (0); +// 36 + setMarginRight (0); +// 36 + setMarginTop (0); +// 36 + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintPaper (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintPaper[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Print Paper. + @param AD_PrintPaper_ID + Printer paper definition + */ + public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) + { + if (AD_PrintPaper_ID < 1) + throw new IllegalArgumentException ("AD_PrintPaper_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); + } + + /** Get Print Paper. + @return Printer paper definition + */ + public int getAD_PrintPaper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintPaper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Validation code. + @param Code + Validation Code + */ + public void setCode (String Code) + { + if (Code == null) + throw new IllegalArgumentException ("Code is mandatory."); + if (Code.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Code = Code.substring(0, 1999); + } + set_Value (COLUMNNAME_Code, Code); + } + + /** Get Validation code. + @return Validation Code + */ + public String getCode () + { + return (String)get_Value(COLUMNNAME_Code); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DimensionUnits AD_Reference_ID=375 */ -public static final int DIMENSIONUNITS_AD_Reference_ID=375; -/** Inch = I */ -public static final String DIMENSIONUNITS_Inch = "I"; -/** MM = M */ +public static final int DIMENSIONUNITS_AD_Reference_ID=375;/** Inch = I */ +public static final String DIMENSIONUNITS_Inch = "I";/** MM = M */ public static final String DIMENSIONUNITS_MM = "M"; -/** Set Dimension Units. -@param DimensionUnits Units of Dimension */ -public void setDimensionUnits (String DimensionUnits) -{ -if (DimensionUnits == null || DimensionUnits.equals("I") || DimensionUnits.equals("M")); - else throw new IllegalArgumentException ("DimensionUnits Invalid value - " + DimensionUnits + " - Reference_ID=375 - I - M"); -if (DimensionUnits != null && DimensionUnits.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DimensionUnits = DimensionUnits.substring(0,0); -} -set_Value ("DimensionUnits", DimensionUnits); -} -/** Get Dimension Units. -@return Units of Dimension */ -public String getDimensionUnits() -{ -return (String)get_Value("DimensionUnits"); -} -/** Column name DimensionUnits */ -public static final String COLUMNNAME_DimensionUnits = "DimensionUnits"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Landscape. -@param IsLandscape Landscape orientation */ -public void setIsLandscape (boolean IsLandscape) -{ -set_Value ("IsLandscape", Boolean.valueOf(IsLandscape)); -} -/** Get Landscape. -@return Landscape orientation */ -public boolean isLandscape() -{ -Object oo = get_Value("IsLandscape"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsLandscape */ -public static final String COLUMNNAME_IsLandscape = "IsLandscape"; -/** Set Bottom Margin. -@param MarginBottom Bottom Space in 1/72 inch */ -public void setMarginBottom (int MarginBottom) -{ -set_Value ("MarginBottom", Integer.valueOf(MarginBottom)); -} -/** Get Bottom Margin. -@return Bottom Space in 1/72 inch */ -public int getMarginBottom() -{ -Integer ii = (Integer)get_Value("MarginBottom"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MarginBottom */ -public static final String COLUMNNAME_MarginBottom = "MarginBottom"; -/** Set Left Margin. -@param MarginLeft Left Space in 1/72 inch */ -public void setMarginLeft (int MarginLeft) -{ -set_Value ("MarginLeft", Integer.valueOf(MarginLeft)); -} -/** Get Left Margin. -@return Left Space in 1/72 inch */ -public int getMarginLeft() -{ -Integer ii = (Integer)get_Value("MarginLeft"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MarginLeft */ -public static final String COLUMNNAME_MarginLeft = "MarginLeft"; -/** Set Right Margin. -@param MarginRight Right Space in 1/72 inch */ -public void setMarginRight (int MarginRight) -{ -set_Value ("MarginRight", Integer.valueOf(MarginRight)); -} -/** Get Right Margin. -@return Right Space in 1/72 inch */ -public int getMarginRight() -{ -Integer ii = (Integer)get_Value("MarginRight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MarginRight */ -public static final String COLUMNNAME_MarginRight = "MarginRight"; -/** Set Top Margin. -@param MarginTop Top Space in 1/72 inch */ -public void setMarginTop (int MarginTop) -{ -set_Value ("MarginTop", Integer.valueOf(MarginTop)); -} -/** Get Top Margin. -@return Top Space in 1/72 inch */ -public int getMarginTop() -{ -Integer ii = (Integer)get_Value("MarginTop"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MarginTop */ -public static final String COLUMNNAME_MarginTop = "MarginTop"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Size X. -@param SizeX X (horizontal) dimension size */ -public void setSizeX (BigDecimal SizeX) -{ -set_Value ("SizeX", SizeX); -} -/** Get Size X. -@return X (horizontal) dimension size */ -public BigDecimal getSizeX() -{ -BigDecimal bd = (BigDecimal)get_Value("SizeX"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SizeX */ -public static final String COLUMNNAME_SizeX = "SizeX"; -/** Set Size Y. -@param SizeY Y (vertical) dimension size */ -public void setSizeY (BigDecimal SizeY) -{ -set_Value ("SizeY", SizeY); -} -/** Get Size Y. -@return Y (vertical) dimension size */ -public BigDecimal getSizeY() -{ -BigDecimal bd = (BigDecimal)get_Value("SizeY"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SizeY */ -public static final String COLUMNNAME_SizeY = "SizeY"; -} + /** Set Dimension Units. + @param DimensionUnits + Units of Dimension + */ + public void setDimensionUnits (String DimensionUnits) + { +if (DimensionUnits == null || DimensionUnits.equals("I") || DimensionUnits.equals("M")); else throw new IllegalArgumentException ("DimensionUnits Invalid value - " + DimensionUnits + " - Reference_ID=375 - I - M"); if (DimensionUnits != null && DimensionUnits.length() > 1) + { + log.warning("Length > 1 - truncated"); + DimensionUnits = DimensionUnits.substring(0, 0); + } + set_Value (COLUMNNAME_DimensionUnits, DimensionUnits); + } + + /** Get Dimension Units. + @return Units of Dimension + */ + public String getDimensionUnits () + { + return (String)get_Value(COLUMNNAME_DimensionUnits); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Landscape. + @param IsLandscape + Landscape orientation + */ + public void setIsLandscape (boolean IsLandscape) + { + set_Value (COLUMNNAME_IsLandscape, Boolean.valueOf(IsLandscape)); + } + + /** Get Landscape. + @return Landscape orientation + */ + public boolean isLandscape () + { + Object oo = get_Value(COLUMNNAME_IsLandscape); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Bottom Margin. + @param MarginBottom + Bottom Space in 1/72 inch + */ + public void setMarginBottom (int MarginBottom) + { + set_Value (COLUMNNAME_MarginBottom, Integer.valueOf(MarginBottom)); + } + + /** Get Bottom Margin. + @return Bottom Space in 1/72 inch + */ + public int getMarginBottom () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MarginBottom); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Left Margin. + @param MarginLeft + Left Space in 1/72 inch + */ + public void setMarginLeft (int MarginLeft) + { + set_Value (COLUMNNAME_MarginLeft, Integer.valueOf(MarginLeft)); + } + + /** Get Left Margin. + @return Left Space in 1/72 inch + */ + public int getMarginLeft () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MarginLeft); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Right Margin. + @param MarginRight + Right Space in 1/72 inch + */ + public void setMarginRight (int MarginRight) + { + set_Value (COLUMNNAME_MarginRight, Integer.valueOf(MarginRight)); + } + + /** Get Right Margin. + @return Right Space in 1/72 inch + */ + public int getMarginRight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MarginRight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Top Margin. + @param MarginTop + Top Space in 1/72 inch + */ + public void setMarginTop (int MarginTop) + { + set_Value (COLUMNNAME_MarginTop, Integer.valueOf(MarginTop)); + } + + /** Get Top Margin. + @return Top Space in 1/72 inch + */ + public int getMarginTop () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MarginTop); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Size X. + @param SizeX + X (horizontal) dimension size + */ + public void setSizeX (BigDecimal SizeX) + { + set_Value (COLUMNNAME_SizeX, SizeX); + } + + /** Get Size X. + @return X (horizontal) dimension size + */ + public BigDecimal getSizeX () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SizeX); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Size Y. + @param SizeY + Y (vertical) dimension size + */ + public void setSizeY (BigDecimal SizeY) + { + set_Value (COLUMNNAME_SizeY, SizeY); + } + + /** Get Size Y. + @return Y (vertical) dimension size + */ + public BigDecimal getSizeY () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SizeY); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_PrintTableFormat.java b/base/src/org/compiere/model/X_AD_PrintTableFormat.java index eb682f311a..40d5acda3e 100644 --- a/base/src/org/compiere/model/X_AD_PrintTableFormat.java +++ b/base/src/org/compiere/model/X_AD_PrintTableFormat.java @@ -1,694 +1,767 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_PrintTableFormat - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_PrintTableFormat extends PO + +/** Generated Model for AD_PrintTableFormat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_PrintTableFormat extends PO implements I_AD_PrintTableFormat, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_PrintTableFormat_ID id -@param trxName transaction -*/ -public X_AD_PrintTableFormat (Properties ctx, int AD_PrintTableFormat_ID, String trxName) -{ -super (ctx, AD_PrintTableFormat_ID, trxName); -/** if (AD_PrintTableFormat_ID == 0) -{ -setAD_PrintTableFormat_ID (0); -setIsDefault (false); -setIsPaintBoundaryLines (false); -setIsPaintHLines (false); -setIsPaintHeaderLines (true); // Y -setIsPaintVLines (false); -setIsPrintFunctionSymbols (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_PrintTableFormat (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_PrintTableFormat */ -public static final String Table_Name="AD_PrintTableFormat"; - -/** AD_Table_ID=523 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_PrintTableFormat[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Table Format. -@param AD_PrintTableFormat_ID Table Format in Reports */ -public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) -{ -if (AD_PrintTableFormat_ID < 1) throw new IllegalArgumentException ("AD_PrintTableFormat_ID is mandatory."); -set_ValueNoCheck ("AD_PrintTableFormat_ID", Integer.valueOf(AD_PrintTableFormat_ID)); -} -/** Get Print Table Format. -@return Table Format in Reports */ -public int getAD_PrintTableFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintTableFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintTableFormat_ID */ -public static final String COLUMNNAME_AD_PrintTableFormat_ID = "AD_PrintTableFormat_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Footer Center. -@param FooterCenter Content of the center portion of the footer. */ -public void setFooterCenter (String FooterCenter) -{ -if (FooterCenter != null && FooterCenter.length() > 255) -{ -log.warning("Length > 255 - truncated"); -FooterCenter = FooterCenter.substring(0,254); -} -set_Value ("FooterCenter", FooterCenter); -} -/** Get Footer Center. -@return Content of the center portion of the footer. */ -public String getFooterCenter() -{ -return (String)get_Value("FooterCenter"); -} -/** Column name FooterCenter */ -public static final String COLUMNNAME_FooterCenter = "FooterCenter"; -/** Set Footer Left. -@param FooterLeft Content of the left portion of the footer. */ -public void setFooterLeft (String FooterLeft) -{ -if (FooterLeft != null && FooterLeft.length() > 255) -{ -log.warning("Length > 255 - truncated"); -FooterLeft = FooterLeft.substring(0,254); -} -set_Value ("FooterLeft", FooterLeft); -} -/** Get Footer Left. -@return Content of the left portion of the footer. */ -public String getFooterLeft() -{ -return (String)get_Value("FooterLeft"); -} -/** Column name FooterLeft */ -public static final String COLUMNNAME_FooterLeft = "FooterLeft"; -/** Set Footer Right. -@param FooterRight Content of the right portion of the footer. */ -public void setFooterRight (String FooterRight) -{ -if (FooterRight != null && FooterRight.length() > 255) -{ -log.warning("Length > 255 - truncated"); -FooterRight = FooterRight.substring(0,254); -} -set_Value ("FooterRight", FooterRight); -} -/** Get Footer Right. -@return Content of the right portion of the footer. */ -public String getFooterRight() -{ -return (String)get_Value("FooterRight"); -} -/** Column name FooterRight */ -public static final String COLUMNNAME_FooterRight = "FooterRight"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_PrintTableFormat (Properties ctx, int AD_PrintTableFormat_ID, String trxName) + { + super (ctx, AD_PrintTableFormat_ID, trxName); + /** if (AD_PrintTableFormat_ID == 0) { setAD_PrintTableFormat_ID (0); + setIsDefault (false); + setIsPaintBoundaryLines (false); + setIsPaintHLines (false); + setIsPaintHeaderLines (true); +// Y + setIsPaintVLines (false); + setIsPrintFunctionSymbols (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_PrintTableFormat (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_PrintTableFormat[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Print Table Format. + @param AD_PrintTableFormat_ID + Table Format in Reports + */ + public void setAD_PrintTableFormat_ID (int AD_PrintTableFormat_ID) + { + if (AD_PrintTableFormat_ID < 1) + throw new IllegalArgumentException ("AD_PrintTableFormat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PrintTableFormat_ID, Integer.valueOf(AD_PrintTableFormat_ID)); + } + + /** Get Print Table Format. + @return Table Format in Reports + */ + public int getAD_PrintTableFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintTableFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Footer Center. + @param FooterCenter + Content of the center portion of the footer. + */ + public void setFooterCenter (String FooterCenter) + { + if (FooterCenter != null && FooterCenter.length() > 255) + { + log.warning("Length > 255 - truncated"); + FooterCenter = FooterCenter.substring(0, 254); + } + set_Value (COLUMNNAME_FooterCenter, FooterCenter); + } + + /** Get Footer Center. + @return Content of the center portion of the footer. + */ + public String getFooterCenter () + { + return (String)get_Value(COLUMNNAME_FooterCenter); + } + + /** Set Footer Left. + @param FooterLeft + Content of the left portion of the footer. + */ + public void setFooterLeft (String FooterLeft) + { + if (FooterLeft != null && FooterLeft.length() > 255) + { + log.warning("Length > 255 - truncated"); + FooterLeft = FooterLeft.substring(0, 254); + } + set_Value (COLUMNNAME_FooterLeft, FooterLeft); + } + + /** Get Footer Left. + @return Content of the left portion of the footer. + */ + public String getFooterLeft () + { + return (String)get_Value(COLUMNNAME_FooterLeft); + } + + /** Set Footer Right. + @param FooterRight + Content of the right portion of the footer. + */ + public void setFooterRight (String FooterRight) + { + if (FooterRight != null && FooterRight.length() > 255) + { + log.warning("Length > 255 - truncated"); + FooterRight = FooterRight.substring(0, 254); + } + set_Value (COLUMNNAME_FooterRight, FooterRight); + } + + /** Get Footer Right. + @return Content of the right portion of the footer. + */ + public String getFooterRight () + { + return (String)get_Value(COLUMNNAME_FooterRight); + } /** FunctBG_PrintColor_ID AD_Reference_ID=266 */ public static final int FUNCTBG_PRINTCOLOR_ID_AD_Reference_ID=266; -/** Set Function BG Color. -@param FunctBG_PrintColor_ID Function Background Color */ -public void setFunctBG_PrintColor_ID (int FunctBG_PrintColor_ID) -{ -if (FunctBG_PrintColor_ID <= 0) set_Value ("FunctBG_PrintColor_ID", null); - else -set_Value ("FunctBG_PrintColor_ID", Integer.valueOf(FunctBG_PrintColor_ID)); -} -/** Get Function BG Color. -@return Function Background Color */ -public int getFunctBG_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("FunctBG_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FunctBG_PrintColor_ID */ -public static final String COLUMNNAME_FunctBG_PrintColor_ID = "FunctBG_PrintColor_ID"; + /** Set Function BG Color. + @param FunctBG_PrintColor_ID + Function Background Color + */ + public void setFunctBG_PrintColor_ID (int FunctBG_PrintColor_ID) + { + if (FunctBG_PrintColor_ID <= 0) set_Value (COLUMNNAME_FunctBG_PrintColor_ID, null); + else + set_Value (COLUMNNAME_FunctBG_PrintColor_ID, Integer.valueOf(FunctBG_PrintColor_ID)); + } + + /** Get Function BG Color. + @return Function Background Color + */ + public int getFunctBG_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FunctBG_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** FunctFG_PrintColor_ID AD_Reference_ID=266 */ public static final int FUNCTFG_PRINTCOLOR_ID_AD_Reference_ID=266; -/** Set Function Color. -@param FunctFG_PrintColor_ID Function Foreground Color */ -public void setFunctFG_PrintColor_ID (int FunctFG_PrintColor_ID) -{ -if (FunctFG_PrintColor_ID <= 0) set_Value ("FunctFG_PrintColor_ID", null); - else -set_Value ("FunctFG_PrintColor_ID", Integer.valueOf(FunctFG_PrintColor_ID)); -} -/** Get Function Color. -@return Function Foreground Color */ -public int getFunctFG_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("FunctFG_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FunctFG_PrintColor_ID */ -public static final String COLUMNNAME_FunctFG_PrintColor_ID = "FunctFG_PrintColor_ID"; + /** Set Function Color. + @param FunctFG_PrintColor_ID + Function Foreground Color + */ + public void setFunctFG_PrintColor_ID (int FunctFG_PrintColor_ID) + { + if (FunctFG_PrintColor_ID <= 0) set_Value (COLUMNNAME_FunctFG_PrintColor_ID, null); + else + set_Value (COLUMNNAME_FunctFG_PrintColor_ID, Integer.valueOf(FunctFG_PrintColor_ID)); + } + + /** Get Function Color. + @return Function Foreground Color + */ + public int getFunctFG_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FunctFG_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Funct_PrintFont_ID AD_Reference_ID=267 */ public static final int FUNCT_PRINTFONT_ID_AD_Reference_ID=267; -/** Set Function Font. -@param Funct_PrintFont_ID Function row Font */ -public void setFunct_PrintFont_ID (int Funct_PrintFont_ID) -{ -if (Funct_PrintFont_ID <= 0) set_Value ("Funct_PrintFont_ID", null); - else -set_Value ("Funct_PrintFont_ID", Integer.valueOf(Funct_PrintFont_ID)); -} -/** Get Function Font. -@return Function row Font */ -public int getFunct_PrintFont_ID() -{ -Integer ii = (Integer)get_Value("Funct_PrintFont_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Funct_PrintFont_ID */ -public static final String COLUMNNAME_Funct_PrintFont_ID = "Funct_PrintFont_ID"; + /** Set Function Font. + @param Funct_PrintFont_ID + Function row Font + */ + public void setFunct_PrintFont_ID (int Funct_PrintFont_ID) + { + if (Funct_PrintFont_ID <= 0) set_Value (COLUMNNAME_Funct_PrintFont_ID, null); + else + set_Value (COLUMNNAME_Funct_PrintFont_ID, Integer.valueOf(Funct_PrintFont_ID)); + } + + /** Get Function Font. + @return Function row Font + */ + public int getFunct_PrintFont_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Funct_PrintFont_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** HdrLine_PrintColor_ID AD_Reference_ID=266 */ public static final int HDRLINE_PRINTCOLOR_ID_AD_Reference_ID=266; -/** Set Header Line Color. -@param HdrLine_PrintColor_ID Table header row line color */ -public void setHdrLine_PrintColor_ID (int HdrLine_PrintColor_ID) -{ -if (HdrLine_PrintColor_ID <= 0) set_Value ("HdrLine_PrintColor_ID", null); - else -set_Value ("HdrLine_PrintColor_ID", Integer.valueOf(HdrLine_PrintColor_ID)); -} -/** Get Header Line Color. -@return Table header row line color */ -public int getHdrLine_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("HdrLine_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HdrLine_PrintColor_ID */ -public static final String COLUMNNAME_HdrLine_PrintColor_ID = "HdrLine_PrintColor_ID"; -/** Set Header Stroke. -@param HdrStroke Width of the Header Line Stroke */ -public void setHdrStroke (BigDecimal HdrStroke) -{ -set_Value ("HdrStroke", HdrStroke); -} -/** Get Header Stroke. -@return Width of the Header Line Stroke */ -public BigDecimal getHdrStroke() -{ -BigDecimal bd = (BigDecimal)get_Value("HdrStroke"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name HdrStroke */ -public static final String COLUMNNAME_HdrStroke = "HdrStroke"; + /** Set Header Line Color. + @param HdrLine_PrintColor_ID + Table header row line color + */ + public void setHdrLine_PrintColor_ID (int HdrLine_PrintColor_ID) + { + if (HdrLine_PrintColor_ID <= 0) set_Value (COLUMNNAME_HdrLine_PrintColor_ID, null); + else + set_Value (COLUMNNAME_HdrLine_PrintColor_ID, Integer.valueOf(HdrLine_PrintColor_ID)); + } + + /** Get Header Line Color. + @return Table header row line color + */ + public int getHdrLine_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HdrLine_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Header Stroke. + @param HdrStroke + Width of the Header Line Stroke + */ + public void setHdrStroke (BigDecimal HdrStroke) + { + set_Value (COLUMNNAME_HdrStroke, HdrStroke); + } + + /** Get Header Stroke. + @return Width of the Header Line Stroke + */ + public BigDecimal getHdrStroke () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_HdrStroke); + if (bd == null) + return Env.ZERO; + return bd; + } /** HdrStrokeType AD_Reference_ID=312 */ -public static final int HDRSTROKETYPE_AD_Reference_ID=312; -/** Dash-Dotted Line = 2 */ -public static final String HDRSTROKETYPE_Dash_DottedLine = "2"; -/** Dashed Line = D */ -public static final String HDRSTROKETYPE_DashedLine = "D"; -/** Solid Line = S */ -public static final String HDRSTROKETYPE_SolidLine = "S"; -/** Dotted Line = d */ +public static final int HDRSTROKETYPE_AD_Reference_ID=312;/** Dash-Dotted Line = 2 */ +public static final String HDRSTROKETYPE_Dash_DottedLine = "2";/** Dashed Line = D */ +public static final String HDRSTROKETYPE_DashedLine = "D";/** Solid Line = S */ +public static final String HDRSTROKETYPE_SolidLine = "S";/** Dotted Line = d */ public static final String HDRSTROKETYPE_DottedLine = "d"; -/** Set Header Stroke Type. -@param HdrStrokeType Type of the Header Line Stroke */ -public void setHdrStrokeType (String HdrStrokeType) -{ -if (HdrStrokeType == null || HdrStrokeType.equals("2") || HdrStrokeType.equals("D") || HdrStrokeType.equals("S") || HdrStrokeType.equals("d")); - else throw new IllegalArgumentException ("HdrStrokeType Invalid value - " + HdrStrokeType + " - Reference_ID=312 - 2 - D - S - d"); -if (HdrStrokeType != null && HdrStrokeType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -HdrStrokeType = HdrStrokeType.substring(0,0); -} -set_Value ("HdrStrokeType", HdrStrokeType); -} -/** Get Header Stroke Type. -@return Type of the Header Line Stroke */ -public String getHdrStrokeType() -{ -return (String)get_Value("HdrStrokeType"); -} -/** Column name HdrStrokeType */ -public static final String COLUMNNAME_HdrStrokeType = "HdrStrokeType"; + /** Set Header Stroke Type. + @param HdrStrokeType + Type of the Header Line Stroke + */ + public void setHdrStrokeType (String HdrStrokeType) + { +if (HdrStrokeType == null || HdrStrokeType.equals("2") || HdrStrokeType.equals("D") || HdrStrokeType.equals("S") || HdrStrokeType.equals("d")); else throw new IllegalArgumentException ("HdrStrokeType Invalid value - " + HdrStrokeType + " - Reference_ID=312 - 2 - D - S - d"); if (HdrStrokeType != null && HdrStrokeType.length() > 1) + { + log.warning("Length > 1 - truncated"); + HdrStrokeType = HdrStrokeType.substring(0, 0); + } + set_Value (COLUMNNAME_HdrStrokeType, HdrStrokeType); + } + + /** Get Header Stroke Type. + @return Type of the Header Line Stroke + */ + public String getHdrStrokeType () + { + return (String)get_Value(COLUMNNAME_HdrStrokeType); + } /** HdrTextBG_PrintColor_ID AD_Reference_ID=266 */ public static final int HDRTEXTBG_PRINTCOLOR_ID_AD_Reference_ID=266; -/** Set Header Row BG Color. -@param HdrTextBG_PrintColor_ID Background color of header row */ -public void setHdrTextBG_PrintColor_ID (int HdrTextBG_PrintColor_ID) -{ -if (HdrTextBG_PrintColor_ID <= 0) set_Value ("HdrTextBG_PrintColor_ID", null); - else -set_Value ("HdrTextBG_PrintColor_ID", Integer.valueOf(HdrTextBG_PrintColor_ID)); -} -/** Get Header Row BG Color. -@return Background color of header row */ -public int getHdrTextBG_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("HdrTextBG_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HdrTextBG_PrintColor_ID */ -public static final String COLUMNNAME_HdrTextBG_PrintColor_ID = "HdrTextBG_PrintColor_ID"; + /** Set Header Row BG Color. + @param HdrTextBG_PrintColor_ID + Background color of header row + */ + public void setHdrTextBG_PrintColor_ID (int HdrTextBG_PrintColor_ID) + { + if (HdrTextBG_PrintColor_ID <= 0) set_Value (COLUMNNAME_HdrTextBG_PrintColor_ID, null); + else + set_Value (COLUMNNAME_HdrTextBG_PrintColor_ID, Integer.valueOf(HdrTextBG_PrintColor_ID)); + } + + /** Get Header Row BG Color. + @return Background color of header row + */ + public int getHdrTextBG_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HdrTextBG_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** HdrTextFG_PrintColor_ID AD_Reference_ID=266 */ public static final int HDRTEXTFG_PRINTCOLOR_ID_AD_Reference_ID=266; -/** Set Header Row Color. -@param HdrTextFG_PrintColor_ID Foreground color if the table header row */ -public void setHdrTextFG_PrintColor_ID (int HdrTextFG_PrintColor_ID) -{ -if (HdrTextFG_PrintColor_ID <= 0) set_Value ("HdrTextFG_PrintColor_ID", null); - else -set_Value ("HdrTextFG_PrintColor_ID", Integer.valueOf(HdrTextFG_PrintColor_ID)); -} -/** Get Header Row Color. -@return Foreground color if the table header row */ -public int getHdrTextFG_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("HdrTextFG_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HdrTextFG_PrintColor_ID */ -public static final String COLUMNNAME_HdrTextFG_PrintColor_ID = "HdrTextFG_PrintColor_ID"; + /** Set Header Row Color. + @param HdrTextFG_PrintColor_ID + Foreground color if the table header row + */ + public void setHdrTextFG_PrintColor_ID (int HdrTextFG_PrintColor_ID) + { + if (HdrTextFG_PrintColor_ID <= 0) set_Value (COLUMNNAME_HdrTextFG_PrintColor_ID, null); + else + set_Value (COLUMNNAME_HdrTextFG_PrintColor_ID, Integer.valueOf(HdrTextFG_PrintColor_ID)); + } + + /** Get Header Row Color. + @return Foreground color if the table header row + */ + public int getHdrTextFG_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HdrTextFG_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Hdr_PrintFont_ID AD_Reference_ID=267 */ public static final int HDR_PRINTFONT_ID_AD_Reference_ID=267; -/** Set Header Row Font. -@param Hdr_PrintFont_ID Header row Font */ -public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID) -{ -if (Hdr_PrintFont_ID <= 0) set_Value ("Hdr_PrintFont_ID", null); - else -set_Value ("Hdr_PrintFont_ID", Integer.valueOf(Hdr_PrintFont_ID)); -} -/** Get Header Row Font. -@return Header row Font */ -public int getHdr_PrintFont_ID() -{ -Integer ii = (Integer)get_Value("Hdr_PrintFont_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Hdr_PrintFont_ID */ -public static final String COLUMNNAME_Hdr_PrintFont_ID = "Hdr_PrintFont_ID"; -/** Set Header Center. -@param HeaderCenter Content of the center portion of the header. */ -public void setHeaderCenter (String HeaderCenter) -{ -if (HeaderCenter != null && HeaderCenter.length() > 255) -{ -log.warning("Length > 255 - truncated"); -HeaderCenter = HeaderCenter.substring(0,254); -} -set_Value ("HeaderCenter", HeaderCenter); -} -/** Get Header Center. -@return Content of the center portion of the header. */ -public String getHeaderCenter() -{ -return (String)get_Value("HeaderCenter"); -} -/** Column name HeaderCenter */ -public static final String COLUMNNAME_HeaderCenter = "HeaderCenter"; -/** Set Header Left. -@param HeaderLeft Content of the left portion of the header. */ -public void setHeaderLeft (String HeaderLeft) -{ -if (HeaderLeft != null && HeaderLeft.length() > 255) -{ -log.warning("Length > 255 - truncated"); -HeaderLeft = HeaderLeft.substring(0,254); -} -set_Value ("HeaderLeft", HeaderLeft); -} -/** Get Header Left. -@return Content of the left portion of the header. */ -public String getHeaderLeft() -{ -return (String)get_Value("HeaderLeft"); -} -/** Column name HeaderLeft */ -public static final String COLUMNNAME_HeaderLeft = "HeaderLeft"; -/** Set Header Right. -@param HeaderRight Content of the right portion of the header. */ -public void setHeaderRight (String HeaderRight) -{ -if (HeaderRight != null && HeaderRight.length() > 255) -{ -log.warning("Length > 255 - truncated"); -HeaderRight = HeaderRight.substring(0,254); -} -set_Value ("HeaderRight", HeaderRight); -} -/** Get Header Right. -@return Content of the right portion of the header. */ -public String getHeaderRight() -{ -return (String)get_Value("HeaderRight"); -} -/** Column name HeaderRight */ -public static final String COLUMNNAME_HeaderRight = "HeaderRight"; -/** Set Image attached. -@param ImageIsAttached The image to be printed is attached to the record */ -public void setImageIsAttached (boolean ImageIsAttached) -{ -set_Value ("ImageIsAttached", Boolean.valueOf(ImageIsAttached)); -} -/** Get Image attached. -@return The image to be printed is attached to the record */ -public boolean isImageIsAttached() -{ -Object oo = get_Value("ImageIsAttached"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ImageIsAttached */ -public static final String COLUMNNAME_ImageIsAttached = "ImageIsAttached"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Paint Boundary Lines. -@param IsPaintBoundaryLines Paint table boundary lines */ -public void setIsPaintBoundaryLines (boolean IsPaintBoundaryLines) -{ -set_Value ("IsPaintBoundaryLines", Boolean.valueOf(IsPaintBoundaryLines)); -} -/** Get Paint Boundary Lines. -@return Paint table boundary lines */ -public boolean isPaintBoundaryLines() -{ -Object oo = get_Value("IsPaintBoundaryLines"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPaintBoundaryLines */ -public static final String COLUMNNAME_IsPaintBoundaryLines = "IsPaintBoundaryLines"; -/** Set Paint Horizontal Lines. -@param IsPaintHLines Paint horizontal lines */ -public void setIsPaintHLines (boolean IsPaintHLines) -{ -set_Value ("IsPaintHLines", Boolean.valueOf(IsPaintHLines)); -} -/** Get Paint Horizontal Lines. -@return Paint horizontal lines */ -public boolean isPaintHLines() -{ -Object oo = get_Value("IsPaintHLines"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPaintHLines */ -public static final String COLUMNNAME_IsPaintHLines = "IsPaintHLines"; -/** Set Paint Header Lines. -@param IsPaintHeaderLines Paint Lines over/under the Header Line */ -public void setIsPaintHeaderLines (boolean IsPaintHeaderLines) -{ -set_Value ("IsPaintHeaderLines", Boolean.valueOf(IsPaintHeaderLines)); -} -/** Get Paint Header Lines. -@return Paint Lines over/under the Header Line */ -public boolean isPaintHeaderLines() -{ -Object oo = get_Value("IsPaintHeaderLines"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPaintHeaderLines */ -public static final String COLUMNNAME_IsPaintHeaderLines = "IsPaintHeaderLines"; -/** Set Paint Vertical Lines. -@param IsPaintVLines Paint vertical lines */ -public void setIsPaintVLines (boolean IsPaintVLines) -{ -set_Value ("IsPaintVLines", Boolean.valueOf(IsPaintVLines)); -} -/** Get Paint Vertical Lines. -@return Paint vertical lines */ -public boolean isPaintVLines() -{ -Object oo = get_Value("IsPaintVLines"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPaintVLines */ -public static final String COLUMNNAME_IsPaintVLines = "IsPaintVLines"; -/** Set Print Function Symbols. -@param IsPrintFunctionSymbols Print Symbols for Functions (Sum, Average, Count) */ -public void setIsPrintFunctionSymbols (boolean IsPrintFunctionSymbols) -{ -set_Value ("IsPrintFunctionSymbols", Boolean.valueOf(IsPrintFunctionSymbols)); -} -/** Get Print Function Symbols. -@return Print Symbols for Functions (Sum, Average, Count) */ -public boolean isPrintFunctionSymbols() -{ -Object oo = get_Value("IsPrintFunctionSymbols"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrintFunctionSymbols */ -public static final String COLUMNNAME_IsPrintFunctionSymbols = "IsPrintFunctionSymbols"; -/** Set Line Stroke. -@param LineStroke Width of the Line Stroke */ -public void setLineStroke (BigDecimal LineStroke) -{ -set_Value ("LineStroke", LineStroke); -} -/** Get Line Stroke. -@return Width of the Line Stroke */ -public BigDecimal getLineStroke() -{ -BigDecimal bd = (BigDecimal)get_Value("LineStroke"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineStroke */ -public static final String COLUMNNAME_LineStroke = "LineStroke"; + /** Set Header Row Font. + @param Hdr_PrintFont_ID + Header row Font + */ + public void setHdr_PrintFont_ID (int Hdr_PrintFont_ID) + { + if (Hdr_PrintFont_ID <= 0) set_Value (COLUMNNAME_Hdr_PrintFont_ID, null); + else + set_Value (COLUMNNAME_Hdr_PrintFont_ID, Integer.valueOf(Hdr_PrintFont_ID)); + } + + /** Get Header Row Font. + @return Header row Font + */ + public int getHdr_PrintFont_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Hdr_PrintFont_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Header Center. + @param HeaderCenter + Content of the center portion of the header. + */ + public void setHeaderCenter (String HeaderCenter) + { + if (HeaderCenter != null && HeaderCenter.length() > 255) + { + log.warning("Length > 255 - truncated"); + HeaderCenter = HeaderCenter.substring(0, 254); + } + set_Value (COLUMNNAME_HeaderCenter, HeaderCenter); + } + + /** Get Header Center. + @return Content of the center portion of the header. + */ + public String getHeaderCenter () + { + return (String)get_Value(COLUMNNAME_HeaderCenter); + } + + /** Set Header Left. + @param HeaderLeft + Content of the left portion of the header. + */ + public void setHeaderLeft (String HeaderLeft) + { + if (HeaderLeft != null && HeaderLeft.length() > 255) + { + log.warning("Length > 255 - truncated"); + HeaderLeft = HeaderLeft.substring(0, 254); + } + set_Value (COLUMNNAME_HeaderLeft, HeaderLeft); + } + + /** Get Header Left. + @return Content of the left portion of the header. + */ + public String getHeaderLeft () + { + return (String)get_Value(COLUMNNAME_HeaderLeft); + } + + /** Set Header Right. + @param HeaderRight + Content of the right portion of the header. + */ + public void setHeaderRight (String HeaderRight) + { + if (HeaderRight != null && HeaderRight.length() > 255) + { + log.warning("Length > 255 - truncated"); + HeaderRight = HeaderRight.substring(0, 254); + } + set_Value (COLUMNNAME_HeaderRight, HeaderRight); + } + + /** Get Header Right. + @return Content of the right portion of the header. + */ + public String getHeaderRight () + { + return (String)get_Value(COLUMNNAME_HeaderRight); + } + + /** Set Image attached. + @param ImageIsAttached + The image to be printed is attached to the record + */ + public void setImageIsAttached (boolean ImageIsAttached) + { + set_Value (COLUMNNAME_ImageIsAttached, Boolean.valueOf(ImageIsAttached)); + } + + /** Get Image attached. + @return The image to be printed is attached to the record + */ + public boolean isImageIsAttached () + { + Object oo = get_Value(COLUMNNAME_ImageIsAttached); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Paint Boundary Lines. + @param IsPaintBoundaryLines + Paint table boundary lines + */ + public void setIsPaintBoundaryLines (boolean IsPaintBoundaryLines) + { + set_Value (COLUMNNAME_IsPaintBoundaryLines, Boolean.valueOf(IsPaintBoundaryLines)); + } + + /** Get Paint Boundary Lines. + @return Paint table boundary lines + */ + public boolean isPaintBoundaryLines () + { + Object oo = get_Value(COLUMNNAME_IsPaintBoundaryLines); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Paint Horizontal Lines. + @param IsPaintHLines + Paint horizontal lines + */ + public void setIsPaintHLines (boolean IsPaintHLines) + { + set_Value (COLUMNNAME_IsPaintHLines, Boolean.valueOf(IsPaintHLines)); + } + + /** Get Paint Horizontal Lines. + @return Paint horizontal lines + */ + public boolean isPaintHLines () + { + Object oo = get_Value(COLUMNNAME_IsPaintHLines); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Paint Header Lines. + @param IsPaintHeaderLines + Paint Lines over/under the Header Line + */ + public void setIsPaintHeaderLines (boolean IsPaintHeaderLines) + { + set_Value (COLUMNNAME_IsPaintHeaderLines, Boolean.valueOf(IsPaintHeaderLines)); + } + + /** Get Paint Header Lines. + @return Paint Lines over/under the Header Line + */ + public boolean isPaintHeaderLines () + { + Object oo = get_Value(COLUMNNAME_IsPaintHeaderLines); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Paint Vertical Lines. + @param IsPaintVLines + Paint vertical lines + */ + public void setIsPaintVLines (boolean IsPaintVLines) + { + set_Value (COLUMNNAME_IsPaintVLines, Boolean.valueOf(IsPaintVLines)); + } + + /** Get Paint Vertical Lines. + @return Paint vertical lines + */ + public boolean isPaintVLines () + { + Object oo = get_Value(COLUMNNAME_IsPaintVLines); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Print Function Symbols. + @param IsPrintFunctionSymbols + Print Symbols for Functions (Sum, Average, Count) + */ + public void setIsPrintFunctionSymbols (boolean IsPrintFunctionSymbols) + { + set_Value (COLUMNNAME_IsPrintFunctionSymbols, Boolean.valueOf(IsPrintFunctionSymbols)); + } + + /** Get Print Function Symbols. + @return Print Symbols for Functions (Sum, Average, Count) + */ + public boolean isPrintFunctionSymbols () + { + Object oo = get_Value(COLUMNNAME_IsPrintFunctionSymbols); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line Stroke. + @param LineStroke + Width of the Line Stroke + */ + public void setLineStroke (BigDecimal LineStroke) + { + set_Value (COLUMNNAME_LineStroke, LineStroke); + } + + /** Get Line Stroke. + @return Width of the Line Stroke + */ + public BigDecimal getLineStroke () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineStroke); + if (bd == null) + return Env.ZERO; + return bd; + } /** LineStrokeType AD_Reference_ID=312 */ -public static final int LINESTROKETYPE_AD_Reference_ID=312; -/** Dash-Dotted Line = 2 */ -public static final String LINESTROKETYPE_Dash_DottedLine = "2"; -/** Dashed Line = D */ -public static final String LINESTROKETYPE_DashedLine = "D"; -/** Solid Line = S */ -public static final String LINESTROKETYPE_SolidLine = "S"; -/** Dotted Line = d */ +public static final int LINESTROKETYPE_AD_Reference_ID=312;/** Dash-Dotted Line = 2 */ +public static final String LINESTROKETYPE_Dash_DottedLine = "2";/** Dashed Line = D */ +public static final String LINESTROKETYPE_DashedLine = "D";/** Solid Line = S */ +public static final String LINESTROKETYPE_SolidLine = "S";/** Dotted Line = d */ public static final String LINESTROKETYPE_DottedLine = "d"; -/** Set Line Stroke Type. -@param LineStrokeType Type of the Line Stroke */ -public void setLineStrokeType (String LineStrokeType) -{ -if (LineStrokeType == null || LineStrokeType.equals("2") || LineStrokeType.equals("D") || LineStrokeType.equals("S") || LineStrokeType.equals("d")); - else throw new IllegalArgumentException ("LineStrokeType Invalid value - " + LineStrokeType + " - Reference_ID=312 - 2 - D - S - d"); -if (LineStrokeType != null && LineStrokeType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LineStrokeType = LineStrokeType.substring(0,0); -} -set_Value ("LineStrokeType", LineStrokeType); -} -/** Get Line Stroke Type. -@return Type of the Line Stroke */ -public String getLineStrokeType() -{ -return (String)get_Value("LineStrokeType"); -} -/** Column name LineStrokeType */ -public static final String COLUMNNAME_LineStrokeType = "LineStrokeType"; + /** Set Line Stroke Type. + @param LineStrokeType + Type of the Line Stroke + */ + public void setLineStrokeType (String LineStrokeType) + { +if (LineStrokeType == null || LineStrokeType.equals("2") || LineStrokeType.equals("D") || LineStrokeType.equals("S") || LineStrokeType.equals("d")); else throw new IllegalArgumentException ("LineStrokeType Invalid value - " + LineStrokeType + " - Reference_ID=312 - 2 - D - S - d"); if (LineStrokeType != null && LineStrokeType.length() > 1) + { + log.warning("Length > 1 - truncated"); + LineStrokeType = LineStrokeType.substring(0, 0); + } + set_Value (COLUMNNAME_LineStrokeType, LineStrokeType); + } + + /** Get Line Stroke Type. + @return Type of the Line Stroke + */ + public String getLineStrokeType () + { + return (String)get_Value(COLUMNNAME_LineStrokeType); + } /** Line_PrintColor_ID AD_Reference_ID=266 */ public static final int LINE_PRINTCOLOR_ID_AD_Reference_ID=266; -/** Set Line Color. -@param Line_PrintColor_ID Table line color */ -public void setLine_PrintColor_ID (int Line_PrintColor_ID) -{ -if (Line_PrintColor_ID <= 0) set_Value ("Line_PrintColor_ID", null); - else -set_Value ("Line_PrintColor_ID", Integer.valueOf(Line_PrintColor_ID)); -} -/** Get Line Color. -@return Table line color */ -public int getLine_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("Line_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line_PrintColor_ID */ -public static final String COLUMNNAME_Line_PrintColor_ID = "Line_PrintColor_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Line Color. + @param Line_PrintColor_ID + Table line color + */ + public void setLine_PrintColor_ID (int Line_PrintColor_ID) + { + if (Line_PrintColor_ID <= 0) set_Value (COLUMNNAME_Line_PrintColor_ID, null); + else + set_Value (COLUMNNAME_Line_PrintColor_ID, Integer.valueOf(Line_PrintColor_ID)); + } + + /** Get Line Color. + @return Table line color + */ + public int getLine_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 ffffaa3f50..4e42631c04 100644 --- a/base/src/org/compiere/model/X_AD_Private_Access.java +++ b/base/src/org/compiere/model/X_AD_Private_Access.java @@ -1,141 +1,173 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Private_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Private_Access extends PO + +/** Generated Model for AD_Private_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Private_Access extends PO implements I_AD_Private_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Private_Access_ID id -@param trxName transaction -*/ -public X_AD_Private_Access (Properties ctx, int AD_Private_Access_ID, String trxName) -{ -super (ctx, AD_Private_Access_ID, trxName); -/** if (AD_Private_Access_ID == 0) -{ -setAD_Table_ID (0); -setAD_User_ID (0); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Private_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Private_Access */ -public static final String Table_Name="AD_Private_Access"; - -/** AD_Table_ID=627 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Private_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Private_Access (Properties ctx, int AD_Private_Access_ID, String trxName) + { + super (ctx, AD_Private_Access_ID, trxName); + /** if (AD_Private_Access_ID == 0) { setAD_Table_ID (0); + setAD_User_ID (0); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Private_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Private_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Process.java b/base/src/org/compiere/model/X_AD_Process.java index 44d8f47daf..b0a1adc9b2 100644 --- a/base/src/org/compiere/model/X_AD_Process.java +++ b/base/src/org/compiere/model/X_AD_Process.java @@ -1,531 +1,617 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Process - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Process extends PO + +/** Generated Model for AD_Process + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Process extends PO implements I_AD_Process, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Process_ID id -@param trxName transaction -*/ -public X_AD_Process (Properties ctx, int AD_Process_ID, String trxName) -{ -super (ctx, AD_Process_ID, trxName); -/** if (AD_Process_ID == 0) -{ -setAD_Process_ID (0); -setAccessLevel (null); -setEntityType (null); // U -setIsBetaFunctionality (false); -setIsReport (false); -setIsServerProcess (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Process (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Process */ -public static final String Table_Name="AD_Process"; - -/** AD_Table_ID=284 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Process[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID <= 0) set_Value ("AD_PrintFormat_ID", null); - else -set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID < 1) throw new IllegalArgumentException ("AD_Process_ID is mandatory."); -set_ValueNoCheck ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Report View. -@param AD_ReportView_ID View used to generate this report */ -public void setAD_ReportView_ID (int AD_ReportView_ID) -{ -if (AD_ReportView_ID <= 0) set_Value ("AD_ReportView_ID", null); - else -set_Value ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); -} -/** Get Report View. -@return View used to generate this report */ -public int getAD_ReportView_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReportView_ID */ -public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID <= 0) set_Value ("AD_Workflow_ID", null); - else -set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Process (Properties ctx, int AD_Process_ID, String trxName) + { + super (ctx, AD_Process_ID, trxName); + /** if (AD_Process_ID == 0) { setAD_Process_ID (0); + setAccessLevel (null); + setEntityType (null); +// U + setIsBetaFunctionality (false); + setIsReport (false); + setIsServerProcess (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Process (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Process[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + throw new IllegalArgumentException ("AD_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_ReportView getI_AD_ReportView() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report View. + @param AD_ReportView_ID + View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID <= 0) set_Value (COLUMNNAME_AD_ReportView_ID, null); + else + set_Value (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID <= 0) set_Value (COLUMNNAME_AD_Workflow_ID, null); + else + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AccessLevel AD_Reference_ID=5 */ -public static final int ACCESSLEVEL_AD_Reference_ID=5; -/** Organization = 1 */ -public static final String ACCESSLEVEL_Organization = "1"; -/** Client only = 2 */ -public static final String ACCESSLEVEL_ClientOnly = "2"; -/** Client+Organization = 3 */ -public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; -/** System only = 4 */ -public static final String ACCESSLEVEL_SystemOnly = "4"; -/** System+Client = 6 */ -public static final String ACCESSLEVEL_SystemPlusClient = "6"; -/** All = 7 */ +public static final int ACCESSLEVEL_AD_Reference_ID=5;/** Organization = 1 */ +public static final String ACCESSLEVEL_Organization = "1";/** Client only = 2 */ +public static final String ACCESSLEVEL_ClientOnly = "2";/** Client+Organization = 3 */ +public static final String ACCESSLEVEL_ClientPlusOrganization = "3";/** System only = 4 */ +public static final String ACCESSLEVEL_SystemOnly = "4";/** System+Client = 6 */ +public static final String ACCESSLEVEL_SystemPlusClient = "6";/** All = 7 */ public static final String ACCESSLEVEL_All = "7"; -/** Set Data Access Level. -@param AccessLevel Access Level required */ -public void setAccessLevel (String AccessLevel) -{ -if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); -if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); - else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); -if (AccessLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccessLevel = AccessLevel.substring(0,0); -} -set_Value ("AccessLevel", AccessLevel); -} -/** Get Data Access Level. -@return Access Level required */ -public String getAccessLevel() -{ -return (String)get_Value("AccessLevel"); -} -/** Column name AccessLevel */ -public static final String COLUMNNAME_AccessLevel = "AccessLevel"; -/** Set Classname. -@param Classname Java Classname */ -public void setClassname (String Classname) -{ -if (Classname != null && Classname.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Classname = Classname.substring(0,59); -} -set_Value ("Classname", Classname); -} -/** Get Classname. -@return Java Classname */ -public String getClassname() -{ -return (String)get_Value("Classname"); -} -/** Column name Classname */ -public static final String COLUMNNAME_Classname = "Classname"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Data Access Level. + @param AccessLevel + Access Level required + */ + public void setAccessLevel (String AccessLevel) + { +if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory");if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); if (AccessLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessLevel = AccessLevel.substring(0, 0); + } + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel () + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + + /** Set Classname. + @param Classname + Java Classname + */ + public void setClassname (String Classname) + { + if (Classname != null && Classname.length() > 60) + { + log.warning("Length > 60 - truncated"); + Classname = Classname.substring(0, 59); + } + set_Value (COLUMNNAME_Classname, Classname); + } + + /** Get Classname. + @return Java Classname + */ + public String getClassname () + { + return (String)get_Value(COLUMNNAME_Classname); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Beta Functionality. -@param IsBetaFunctionality This functionality is considered Beta */ -public void setIsBetaFunctionality (boolean IsBetaFunctionality) -{ -set_Value ("IsBetaFunctionality", Boolean.valueOf(IsBetaFunctionality)); -} -/** Get Beta Functionality. -@return This functionality is considered Beta */ -public boolean isBetaFunctionality() -{ -Object oo = get_Value("IsBetaFunctionality"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBetaFunctionality */ -public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality"; -/** Set Direct print. -@param IsDirectPrint Print without dialog */ -public void setIsDirectPrint (boolean IsDirectPrint) -{ -set_Value ("IsDirectPrint", Boolean.valueOf(IsDirectPrint)); -} -/** Get Direct print. -@return Print without dialog */ -public boolean isDirectPrint() -{ -Object oo = get_Value("IsDirectPrint"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDirectPrint */ -public static final String COLUMNNAME_IsDirectPrint = "IsDirectPrint"; -/** Set Report. -@param IsReport Indicates a Report record */ -public void setIsReport (boolean IsReport) -{ -set_Value ("IsReport", Boolean.valueOf(IsReport)); -} -/** Get Report. -@return Indicates a Report record */ -public boolean isReport() -{ -Object oo = get_Value("IsReport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReport */ -public static final String COLUMNNAME_IsReport = "IsReport"; -/** Set Server Process. -@param IsServerProcess Run this Process on Server only */ -public void setIsServerProcess (boolean IsServerProcess) -{ -set_Value ("IsServerProcess", Boolean.valueOf(IsServerProcess)); -} -/** Get Server Process. -@return Run this Process on Server only */ -public boolean isServerProcess() -{ -Object oo = get_Value("IsServerProcess"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsServerProcess */ -public static final String COLUMNNAME_IsServerProcess = "IsServerProcess"; -/** Set Jasper Report. -@param JasperReport Jasper Report */ -public void setJasperReport (String JasperReport) -{ -if (JasperReport != null && JasperReport.length() > 255) -{ -log.warning("Length > 255 - truncated"); -JasperReport = JasperReport.substring(0,254); -} -set_Value ("JasperReport", JasperReport); -} -/** Get Jasper Report. -@return Jasper Report */ -public String getJasperReport() -{ -return (String)get_Value("JasperReport"); -} -/** Column name JasperReport */ -public static final String COLUMNNAME_JasperReport = "JasperReport"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Procedure. -@param ProcedureName Name of the Database Procedure */ -public void setProcedureName (String ProcedureName) -{ -if (ProcedureName != null && ProcedureName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProcedureName = ProcedureName.substring(0,59); -} -set_Value ("ProcedureName", ProcedureName); -} -/** Get Procedure. -@return Name of the Database Procedure */ -public String getProcedureName() -{ -return (String)get_Value("ProcedureName"); -} -/** Column name ProcedureName */ -public static final String COLUMNNAME_ProcedureName = "ProcedureName"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Beta Functionality. + @param IsBetaFunctionality + This functionality is considered Beta + */ + public void setIsBetaFunctionality (boolean IsBetaFunctionality) + { + set_Value (COLUMNNAME_IsBetaFunctionality, Boolean.valueOf(IsBetaFunctionality)); + } + + /** Get Beta Functionality. + @return This functionality is considered Beta + */ + public boolean isBetaFunctionality () + { + Object oo = get_Value(COLUMNNAME_IsBetaFunctionality); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Direct print. + @param IsDirectPrint + Print without dialog + */ + public void setIsDirectPrint (boolean IsDirectPrint) + { + set_Value (COLUMNNAME_IsDirectPrint, Boolean.valueOf(IsDirectPrint)); + } + + /** Get Direct print. + @return Print without dialog + */ + public boolean isDirectPrint () + { + Object oo = get_Value(COLUMNNAME_IsDirectPrint); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Report. + @param IsReport + Indicates a Report record + */ + public void setIsReport (boolean IsReport) + { + set_Value (COLUMNNAME_IsReport, Boolean.valueOf(IsReport)); + } + + /** Get Report. + @return Indicates a Report record + */ + public boolean isReport () + { + Object oo = get_Value(COLUMNNAME_IsReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Server Process. + @param IsServerProcess + Run this Process on Server only + */ + public void setIsServerProcess (boolean IsServerProcess) + { + set_Value (COLUMNNAME_IsServerProcess, Boolean.valueOf(IsServerProcess)); + } + + /** Get Server Process. + @return Run this Process on Server only + */ + public boolean isServerProcess () + { + Object oo = get_Value(COLUMNNAME_IsServerProcess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Jasper Report. + @param JasperReport Jasper Report */ + public void setJasperReport (String JasperReport) + { + if (JasperReport != null && JasperReport.length() > 255) + { + log.warning("Length > 255 - truncated"); + JasperReport = JasperReport.substring(0, 254); + } + set_Value (COLUMNNAME_JasperReport, JasperReport); + } + + /** Get Jasper Report. +@return Jasper Report */ + public String getJasperReport () + { + return (String)get_Value(COLUMNNAME_JasperReport); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Procedure. + @param ProcedureName + Name of the Database Procedure + */ + public void setProcedureName (String ProcedureName) + { + if (ProcedureName != null && ProcedureName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProcedureName = ProcedureName.substring(0, 59); + } + set_Value (COLUMNNAME_ProcedureName, ProcedureName); + } + + /** Get Procedure. + @return Name of the Database Procedure + */ + public String getProcedureName () + { + return (String)get_Value(COLUMNNAME_ProcedureName); + } /** ShowHelp AD_Reference_ID=50007 */ -public static final int SHOWHELP_AD_Reference_ID=50007; -/** Ask user (for future use) = A */ -public static final String SHOWHELP_AskUserForFutureUse = "A"; -/** Don't show help = N */ -public static final String SHOWHELP_DonTShowHelp = "N"; -/** Run silently - Take Defaults = S */ -public static final String SHOWHELP_RunSilently_TakeDefaults = "S"; -/** Show Help = Y */ +public static final int SHOWHELP_AD_Reference_ID=50007;/** Ask user (for future use) = A */ +public static final String SHOWHELP_AskUserForFutureUse = "A";/** Don't show help = N */ +public static final String SHOWHELP_DonTShowHelp = "N";/** Run silently - Take Defaults = S */ +public static final String SHOWHELP_RunSilently_TakeDefaults = "S";/** Show Help = Y */ public static final String SHOWHELP_ShowHelp = "Y"; -/** Set Show Help. -@param ShowHelp Show Help */ -public void setShowHelp (String ShowHelp) -{ -if (ShowHelp == null || ShowHelp.equals("A") || ShowHelp.equals("N") || ShowHelp.equals("S") || ShowHelp.equals("Y")); - else throw new IllegalArgumentException ("ShowHelp Invalid value - " + ShowHelp + " - Reference_ID=50007 - A - N - S - Y"); -if (ShowHelp != null && ShowHelp.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ShowHelp = ShowHelp.substring(0,0); -} -set_Value ("ShowHelp", ShowHelp); -} -/** Get Show Help. -@return Show Help */ -public String getShowHelp() -{ -return (String)get_Value("ShowHelp"); -} -/** Column name ShowHelp */ -public static final String COLUMNNAME_ShowHelp = "ShowHelp"; -/** Set Statistic Count. -@param Statistic_Count Internal statistics how often the entity was used */ -public void setStatistic_Count (int Statistic_Count) -{ -set_Value ("Statistic_Count", Integer.valueOf(Statistic_Count)); -} -/** Get Statistic Count. -@return Internal statistics how often the entity was used */ -public int getStatistic_Count() -{ -Integer ii = (Integer)get_Value("Statistic_Count"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Statistic_Count */ -public static final String COLUMNNAME_Statistic_Count = "Statistic_Count"; -/** Set Statistic Seconds. -@param Statistic_Seconds Internal statistics how many seconds a process took */ -public void setStatistic_Seconds (int Statistic_Seconds) -{ -set_Value ("Statistic_Seconds", Integer.valueOf(Statistic_Seconds)); -} -/** Get Statistic Seconds. -@return Internal statistics how many seconds a process took */ -public int getStatistic_Seconds() -{ -Integer ii = (Integer)get_Value("Statistic_Seconds"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Statistic_Seconds */ -public static final String COLUMNNAME_Statistic_Seconds = "Statistic_Seconds"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Workflow Key. -@param WorkflowValue Key of the Workflow to start */ -public void setWorkflowValue (String WorkflowValue) -{ -if (WorkflowValue != null && WorkflowValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -WorkflowValue = WorkflowValue.substring(0,39); -} -set_Value ("WorkflowValue", WorkflowValue); -} -/** Get Workflow Key. -@return Key of the Workflow to start */ -public String getWorkflowValue() -{ -return (String)get_Value("WorkflowValue"); -} -/** Column name WorkflowValue */ -public static final String COLUMNNAME_WorkflowValue = "WorkflowValue"; -} + /** Set Show Help. + @param ShowHelp Show Help */ + public void setShowHelp (String ShowHelp) + { +if (ShowHelp == null || ShowHelp.equals("A") || ShowHelp.equals("N") || ShowHelp.equals("S") || ShowHelp.equals("Y")); else throw new IllegalArgumentException ("ShowHelp Invalid value - " + ShowHelp + " - Reference_ID=50007 - A - N - S - Y"); if (ShowHelp != null && ShowHelp.length() > 1) + { + log.warning("Length > 1 - truncated"); + ShowHelp = ShowHelp.substring(0, 0); + } + set_Value (COLUMNNAME_ShowHelp, ShowHelp); + } + + /** Get Show Help. +@return Show Help */ + public String getShowHelp () + { + return (String)get_Value(COLUMNNAME_ShowHelp); + } + + /** Set Statistic Count. + @param Statistic_Count + Internal statistics how often the entity was used + */ + public void setStatistic_Count (int Statistic_Count) + { + set_Value (COLUMNNAME_Statistic_Count, Integer.valueOf(Statistic_Count)); + } + + /** Get Statistic Count. + @return Internal statistics how often the entity was used + */ + public int getStatistic_Count () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Statistic_Count); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Statistic Seconds. + @param Statistic_Seconds + Internal statistics how many seconds a process took + */ + public void setStatistic_Seconds (int Statistic_Seconds) + { + set_Value (COLUMNNAME_Statistic_Seconds, Integer.valueOf(Statistic_Seconds)); + } + + /** Get Statistic Seconds. + @return Internal statistics how many seconds a process took + */ + public int getStatistic_Seconds () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Statistic_Seconds); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } + + /** Set Workflow Key. + @param WorkflowValue + Key of the Workflow to start + */ + public void setWorkflowValue (String WorkflowValue) + { + if (WorkflowValue != null && WorkflowValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + WorkflowValue = WorkflowValue.substring(0, 39); + } + set_Value (COLUMNNAME_WorkflowValue, WorkflowValue); + } + + /** Get Workflow Key. + @return Key of the Workflow to start + */ + public String getWorkflowValue () + { + return (String)get_Value(COLUMNNAME_WorkflowValue); + } +} \ No newline at end of file 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 bae494ea1f..74dbe1ff34 100644 --- a/base/src/org/compiere/model/X_AD_Process_Access.java +++ b/base/src/org/compiere/model/X_AD_Process_Access.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Process_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Process_Access extends PO + +/** Generated Model for AD_Process_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Process_Access extends PO implements I_AD_Process_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Process_Access_ID id -@param trxName transaction -*/ -public X_AD_Process_Access (Properties ctx, int AD_Process_Access_ID, String trxName) -{ -super (ctx, AD_Process_Access_ID, trxName); -/** if (AD_Process_Access_ID == 0) -{ -setAD_Process_ID (0); -setAD_Role_ID (0); -setIsReadWrite (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Process_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Process_Access */ -public static final String Table_Name="AD_Process_Access"; - -/** AD_Table_ID=197 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Process_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID < 1) throw new IllegalArgumentException ("AD_Process_ID is mandatory."); -set_ValueNoCheck ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Read Write. -@param IsReadWrite Field is read / write */ -public void setIsReadWrite (boolean IsReadWrite) -{ -set_Value ("IsReadWrite", Boolean.valueOf(IsReadWrite)); -} -/** Get Read Write. -@return Field is read / write */ -public boolean isReadWrite() -{ -Object oo = get_Value("IsReadWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadWrite */ -public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Process_Access (Properties ctx, int AD_Process_Access_ID, String trxName) + { + super (ctx, AD_Process_Access_ID, trxName); + /** if (AD_Process_Access_ID == 0) { setAD_Process_ID (0); + setAD_Role_ID (0); + setIsReadWrite (false); +} */ + } + + /** Load Constructor */ + public X_AD_Process_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Process_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + throw new IllegalArgumentException ("AD_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Write. + @param IsReadWrite + Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite) + { + set_Value (COLUMNNAME_IsReadWrite, Boolean.valueOf(IsReadWrite)); + } + + /** Get Read Write. + @return Field is read / write + */ + public boolean isReadWrite () + { + Object oo = get_Value(COLUMNNAME_IsReadWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file 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 02df94fc1f..9b8d3a8ebb 100644 --- a/base/src/org/compiere/model/X_AD_Process_Para.java +++ b/base/src/org/compiere/model/X_AD_Process_Para.java @@ -1,512 +1,597 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Process_Para - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Process_Para extends PO + +/** Generated Model for AD_Process_Para + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Process_Para extends PO implements I_AD_Process_Para, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Process_Para_ID id -@param trxName transaction -*/ -public X_AD_Process_Para (Properties ctx, int AD_Process_Para_ID, String trxName) -{ -super (ctx, AD_Process_Para_ID, trxName); -/** if (AD_Process_Para_ID == 0) -{ -setAD_Process_ID (0); -setAD_Process_Para_ID (0); -setAD_Reference_ID (0); -setColumnName (null); -setEntityType (null); // U -setFieldLength (0); -setIsCentrallyMaintained (true); // Y -setIsMandatory (false); -setIsRange (false); -setName (null); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Process_Para WHERE AD_Process_ID=@AD_Process_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Process_Para (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Process_Para */ -public static final String Table_Name="AD_Process_Para"; - -/** AD_Table_ID=285 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Process_Para[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Element. -@param AD_Element_ID System Element enables the central maintenance of column description and help. */ -public void setAD_Element_ID (int AD_Element_ID) -{ -if (AD_Element_ID <= 0) set_Value ("AD_Element_ID", null); - else -set_Value ("AD_Element_ID", Integer.valueOf(AD_Element_ID)); -} -/** Get System Element. -@return System Element enables the central maintenance of column description and help. */ -public int getAD_Element_ID() -{ -Integer ii = (Integer)get_Value("AD_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Element_ID */ -public static final String COLUMNNAME_AD_Element_ID = "AD_Element_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID < 1) throw new IllegalArgumentException ("AD_Process_ID is mandatory."); -set_ValueNoCheck ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Process Parameter. -@param AD_Process_Para_ID Process Parameter */ -public void setAD_Process_Para_ID (int AD_Process_Para_ID) -{ -if (AD_Process_Para_ID < 1) throw new IllegalArgumentException ("AD_Process_Para_ID is mandatory."); -set_ValueNoCheck ("AD_Process_Para_ID", Integer.valueOf(AD_Process_Para_ID)); -} -/** Get Process Parameter. -@return Process Parameter */ -public int getAD_Process_Para_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_Para_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_Para_ID */ -public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Process_Para (Properties ctx, int AD_Process_Para_ID, String trxName) + { + super (ctx, AD_Process_Para_ID, trxName); + /** if (AD_Process_Para_ID == 0) { setAD_Process_ID (0); + setAD_Process_Para_ID (0); + setAD_Reference_ID (0); + setColumnName (null); + setEntityType (null); +// U + setFieldLength (0); + setIsCentrallyMaintained (true); +// Y + setIsMandatory (false); + setIsRange (false); + setName (null); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Process_Para WHERE AD_Process_ID=@AD_Process_ID@ +} */ + } + + /** Load Constructor */ + public X_AD_Process_Para (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Process_Para[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Element. + @param AD_Element_ID + System Element enables the central maintenance of column description and help. + */ + public void setAD_Element_ID (int AD_Element_ID) + { + if (AD_Element_ID <= 0) set_Value (COLUMNNAME_AD_Element_ID, null); + else + set_Value (COLUMNNAME_AD_Element_ID, Integer.valueOf(AD_Element_ID)); + } + + /** Get System Element. + @return System Element enables the central maintenance of column description and help. + */ + public int getAD_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + throw new IllegalArgumentException ("AD_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Parameter. + @param AD_Process_Para_ID Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID) + { + if (AD_Process_Para_ID < 1) + throw new IllegalArgumentException ("AD_Process_Para_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + } + + /** Get Process Parameter. +@return Process Parameter */ + public int getAD_Process_Para_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_Value_ID AD_Reference_ID=4 */ public static final int AD_REFERENCE_VALUE_ID_AD_Reference_ID=4; -/** Set Reference Key. -@param AD_Reference_Value_ID Required to specify, if data type is Table or List */ -public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) -{ -if (AD_Reference_Value_ID <= 0) set_Value ("AD_Reference_Value_ID", null); - else -set_Value ("AD_Reference_Value_ID", Integer.valueOf(AD_Reference_Value_ID)); -} -/** Get Reference Key. -@return Required to specify, if data type is Table or List */ -public int getAD_Reference_Value_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_Value_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_Value_ID */ -public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; -/** Set Dynamic Validation. -@param AD_Val_Rule_ID Dynamic Validation Rule */ -public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) -{ -if (AD_Val_Rule_ID <= 0) set_Value ("AD_Val_Rule_ID", null); - else -set_Value ("AD_Val_Rule_ID", Integer.valueOf(AD_Val_Rule_ID)); -} -/** Get Dynamic Validation. -@return Dynamic Validation Rule */ -public int getAD_Val_Rule_ID() -{ -Integer ii = (Integer)get_Value("AD_Val_Rule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Val_Rule_ID */ -public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; -/** Set DB Column Name. -@param ColumnName Name of the column in the database */ -public void setColumnName (String ColumnName) -{ -if (ColumnName == null) throw new IllegalArgumentException ("ColumnName is mandatory."); -if (ColumnName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ColumnName = ColumnName.substring(0,39); -} -set_Value ("ColumnName", ColumnName); -} -/** Get DB Column Name. -@return Name of the column in the database */ -public String getColumnName() -{ -return (String)get_Value("ColumnName"); -} -/** Column name ColumnName */ -public static final String COLUMNNAME_ColumnName = "ColumnName"; -/** Set Default Logic. -@param DefaultValue Default value hierarchy, separated by ; - */ -public void setDefaultValue (String DefaultValue) -{ -if (DefaultValue != null && DefaultValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DefaultValue = DefaultValue.substring(0,1999); -} -set_Value ("DefaultValue", DefaultValue); -} -/** Get Default Logic. -@return Default value hierarchy, separated by ; - */ -public String getDefaultValue() -{ -return (String)get_Value("DefaultValue"); -} -/** Column name DefaultValue */ -public static final String COLUMNNAME_DefaultValue = "DefaultValue"; -/** Set Default Logic 2. -@param DefaultValue2 Default value hierarchy, separated by ; - */ -public void setDefaultValue2 (String DefaultValue2) -{ -if (DefaultValue2 != null && DefaultValue2.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DefaultValue2 = DefaultValue2.substring(0,1999); -} -set_Value ("DefaultValue2", DefaultValue2); -} -/** Get Default Logic 2. -@return Default value hierarchy, separated by ; - */ -public String getDefaultValue2() -{ -return (String)get_Value("DefaultValue2"); -} -/** Column name DefaultValue2 */ -public static final String COLUMNNAME_DefaultValue2 = "DefaultValue2"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Reference Key. + @param AD_Reference_Value_ID + Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) + { + if (AD_Reference_Value_ID <= 0) set_Value (COLUMNNAME_AD_Reference_Value_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_Value_ID, Integer.valueOf(AD_Reference_Value_ID)); + } + + /** Get Reference Key. + @return Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_Value_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dynamic Validation. + @param AD_Val_Rule_ID + Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) + { + if (AD_Val_Rule_ID <= 0) set_Value (COLUMNNAME_AD_Val_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + } + + /** Get Dynamic Validation. + @return Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set DB Column Name. + @param ColumnName + Name of the column in the database + */ + public void setColumnName (String ColumnName) + { + if (ColumnName == null) + throw new IllegalArgumentException ("ColumnName is mandatory."); + if (ColumnName.length() > 40) + { + log.warning("Length > 40 - truncated"); + ColumnName = ColumnName.substring(0, 39); + } + set_Value (COLUMNNAME_ColumnName, ColumnName); + } + + /** Get DB Column Name. + @return Name of the column in the database + */ + public String getColumnName () + { + return (String)get_Value(COLUMNNAME_ColumnName); + } + + /** Set Default Logic. + @param DefaultValue + Default value hierarchy, separated by ; + */ + public void setDefaultValue (String DefaultValue) + { + if (DefaultValue != null && DefaultValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DefaultValue = DefaultValue.substring(0, 1999); + } + set_Value (COLUMNNAME_DefaultValue, DefaultValue); + } + + /** Get Default Logic. + @return Default value hierarchy, separated by ; + */ + public String getDefaultValue () + { + return (String)get_Value(COLUMNNAME_DefaultValue); + } + + /** Set Default Logic 2. + @param DefaultValue2 + Default value hierarchy, separated by ; + */ + public void setDefaultValue2 (String DefaultValue2) + { + if (DefaultValue2 != null && DefaultValue2.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DefaultValue2 = DefaultValue2.substring(0, 1999); + } + set_Value (COLUMNNAME_DefaultValue2, DefaultValue2); + } + + /** Get Default Logic 2. + @return Default value hierarchy, separated by ; + */ + public String getDefaultValue2 () + { + return (String)get_Value(COLUMNNAME_DefaultValue2); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Length. -@param FieldLength Length of the column in the database */ -public void setFieldLength (int FieldLength) -{ -set_Value ("FieldLength", Integer.valueOf(FieldLength)); -} -/** Get Length. -@return Length of the column in the database */ -public int getFieldLength() -{ -Integer ii = (Integer)get_Value("FieldLength"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FieldLength */ -public static final String COLUMNNAME_FieldLength = "FieldLength"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Centrally maintained. -@param IsCentrallyMaintained Information maintained in System Element table */ -public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) -{ -set_Value ("IsCentrallyMaintained", Boolean.valueOf(IsCentrallyMaintained)); -} -/** Get Centrally maintained. -@return Information maintained in System Element table */ -public boolean isCentrallyMaintained() -{ -Object oo = get_Value("IsCentrallyMaintained"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCentrallyMaintained */ -public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; -/** Set Mandatory. -@param IsMandatory Data entry is required in this column */ -public void setIsMandatory (boolean IsMandatory) -{ -set_Value ("IsMandatory", Boolean.valueOf(IsMandatory)); -} -/** Get Mandatory. -@return Data entry is required in this column */ -public boolean isMandatory() -{ -Object oo = get_Value("IsMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMandatory */ -public static final String COLUMNNAME_IsMandatory = "IsMandatory"; -/** Set Range. -@param IsRange The parameter is a range of values */ -public void setIsRange (boolean IsRange) -{ -set_Value ("IsRange", Boolean.valueOf(IsRange)); -} -/** Get Range. -@return The parameter is a range of values */ -public boolean isRange() -{ -Object oo = get_Value("IsRange"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRange */ -public static final String COLUMNNAME_IsRange = "IsRange"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Value Format. -@param VFormat Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setVFormat (String VFormat) -{ -if (VFormat != null && VFormat.length() > 20) -{ -log.warning("Length > 20 - truncated"); -VFormat = VFormat.substring(0,19); -} -set_Value ("VFormat", VFormat); -} -/** Get Value Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getVFormat() -{ -return (String)get_Value("VFormat"); -} -/** Column name VFormat */ -public static final String COLUMNNAME_VFormat = "VFormat"; -/** Set Max. Value. -@param ValueMax Maximum Value for a field */ -public void setValueMax (String ValueMax) -{ -if (ValueMax != null && ValueMax.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ValueMax = ValueMax.substring(0,19); -} -set_Value ("ValueMax", ValueMax); -} -/** Get Max. Value. -@return Maximum Value for a field */ -public String getValueMax() -{ -return (String)get_Value("ValueMax"); -} -/** Column name ValueMax */ -public static final String COLUMNNAME_ValueMax = "ValueMax"; -/** Set Min. Value. -@param ValueMin Minimum Value for a field */ -public void setValueMin (String ValueMin) -{ -if (ValueMin != null && ValueMin.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ValueMin = ValueMin.substring(0,19); -} -set_Value ("ValueMin", ValueMin); -} -/** Get Min. Value. -@return Minimum Value for a field */ -public String getValueMin() -{ -return (String)get_Value("ValueMin"); -} -/** Column name ValueMin */ -public static final String COLUMNNAME_ValueMin = "ValueMin"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Length. + @param FieldLength + Length of the column in the database + */ + public void setFieldLength (int FieldLength) + { + set_Value (COLUMNNAME_FieldLength, Integer.valueOf(FieldLength)); + } + + /** Get Length. + @return Length of the column in the database + */ + public int getFieldLength () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FieldLength); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Centrally maintained. + @param IsCentrallyMaintained + Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) + { + set_Value (COLUMNNAME_IsCentrallyMaintained, Boolean.valueOf(IsCentrallyMaintained)); + } + + /** Get Centrally maintained. + @return Information maintained in System Element table + */ + public boolean isCentrallyMaintained () + { + Object oo = get_Value(COLUMNNAME_IsCentrallyMaintained); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory. + @param IsMandatory + Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory) + { + set_Value (COLUMNNAME_IsMandatory, Boolean.valueOf(IsMandatory)); + } + + /** Get Mandatory. + @return Data entry is required in this column + */ + public boolean isMandatory () + { + Object oo = get_Value(COLUMNNAME_IsMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Range. + @param IsRange + The parameter is a range of values + */ + public void setIsRange (boolean IsRange) + { + set_Value (COLUMNNAME_IsRange, Boolean.valueOf(IsRange)); + } + + /** Get Range. + @return The parameter is a range of values + */ + public boolean isRange () + { + Object oo = get_Value(COLUMNNAME_IsRange); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Value Format. + @param VFormat + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat) + { + if (VFormat != null && VFormat.length() > 20) + { + log.warning("Length > 20 - truncated"); + VFormat = VFormat.substring(0, 19); + } + set_Value (COLUMNNAME_VFormat, VFormat); + } + + /** Get Value Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat () + { + return (String)get_Value(COLUMNNAME_VFormat); + } + + /** Set Max. Value. + @param ValueMax + Maximum Value for a field + */ + public void setValueMax (String ValueMax) + { + if (ValueMax != null && ValueMax.length() > 20) + { + log.warning("Length > 20 - truncated"); + ValueMax = ValueMax.substring(0, 19); + } + set_Value (COLUMNNAME_ValueMax, ValueMax); + } + + /** Get Max. Value. + @return Maximum Value for a field + */ + public String getValueMax () + { + return (String)get_Value(COLUMNNAME_ValueMax); + } + + /** Set Min. Value. + @param ValueMin + Minimum Value for a field + */ + public void setValueMin (String ValueMin) + { + if (ValueMin != null && ValueMin.length() > 20) + { + log.warning("Length > 20 - truncated"); + ValueMin = ValueMin.substring(0, 19); + } + set_Value (COLUMNNAME_ValueMin, ValueMin); + } + + /** Get Min. Value. + @return Minimum Value for a field + */ + public String getValueMin () + { + return (String)get_Value(COLUMNNAME_ValueMin); + } +} \ No newline at end of file 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 c26de99349..c34f3221e8 100644 --- a/base/src/org/compiere/model/X_AD_Record_Access.java +++ b/base/src/org/compiere/model/X_AD_Record_Access.java @@ -1,210 +1,258 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Record_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Record_Access extends PO + +/** Generated Model for AD_Record_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Record_Access extends PO implements I_AD_Record_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Record_Access_ID id -@param trxName transaction -*/ -public X_AD_Record_Access (Properties ctx, int AD_Record_Access_ID, String trxName) -{ -super (ctx, AD_Record_Access_ID, trxName); -/** if (AD_Record_Access_ID == 0) -{ -setAD_Role_ID (0); -setAD_Table_ID (0); -setIsDependentEntities (false); // N -setIsExclude (true); // Y -setIsReadOnly (false); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Record_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Record_Access */ -public static final String Table_Name="AD_Record_Access"; - -/** AD_Table_ID=567 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Record_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Table_ID())); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Dependent Entities. -@param IsDependentEntities Also check access in dependent entities */ -public void setIsDependentEntities (boolean IsDependentEntities) -{ -set_Value ("IsDependentEntities", Boolean.valueOf(IsDependentEntities)); -} -/** Get Dependent Entities. -@return Also check access in dependent entities */ -public boolean isDependentEntities() -{ -Object oo = get_Value("IsDependentEntities"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDependentEntities */ -public static final String COLUMNNAME_IsDependentEntities = "IsDependentEntities"; -/** Set Exclude. -@param IsExclude Exclude access to the data - if not selected Include access to the data */ -public void setIsExclude (boolean IsExclude) -{ -set_Value ("IsExclude", Boolean.valueOf(IsExclude)); -} -/** Get Exclude. -@return Exclude access to the data - if not selected Include access to the data */ -public boolean isExclude() -{ -Object oo = get_Value("IsExclude"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsExclude */ -public static final String COLUMNNAME_IsExclude = "IsExclude"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Record_Access (Properties ctx, int AD_Record_Access_ID, String trxName) + { + super (ctx, AD_Record_Access_ID, trxName); + /** if (AD_Record_Access_ID == 0) { setAD_Role_ID (0); + setAD_Table_ID (0); + setIsDependentEntities (false); +// N + setIsExclude (true); +// Y + setIsReadOnly (false); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Record_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Record_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Table_ID())); + } + + /** Set Dependent Entities. + @param IsDependentEntities + Also check access in dependent entities + */ + public void setIsDependentEntities (boolean IsDependentEntities) + { + set_Value (COLUMNNAME_IsDependentEntities, Boolean.valueOf(IsDependentEntities)); + } + + /** Get Dependent Entities. + @return Also check access in dependent entities + */ + public boolean isDependentEntities () + { + Object oo = get_Value(COLUMNNAME_IsDependentEntities); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude. + @param IsExclude + Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude) + { + set_Value (COLUMNNAME_IsExclude, Boolean.valueOf(IsExclude)); + } + + /** Get Exclude. + @return Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude () + { + Object oo = get_Value(COLUMNNAME_IsExclude); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 674a02ace8..ad85802290 100644 --- a/base/src/org/compiere/model/X_AD_Ref_List.java +++ b/base/src/org/compiere/model/X_AD_Ref_List.java @@ -1,243 +1,274 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Ref_List - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Ref_List extends PO + +/** Generated Model for AD_Ref_List + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Ref_List extends PO implements I_AD_Ref_List, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Ref_List_ID id -@param trxName transaction -*/ -public X_AD_Ref_List (Properties ctx, int AD_Ref_List_ID, String trxName) -{ -super (ctx, AD_Ref_List_ID, trxName); -/** if (AD_Ref_List_ID == 0) -{ -setAD_Ref_List_ID (0); -setAD_Reference_ID (0); -setEntityType (null); // U -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Ref_List (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Ref_List */ -public static final String Table_Name="AD_Ref_List"; - -/** AD_Table_ID=104 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Ref_List[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Reference List. -@param AD_Ref_List_ID Reference List based on Table */ -public void setAD_Ref_List_ID (int AD_Ref_List_ID) -{ -if (AD_Ref_List_ID < 1) throw new IllegalArgumentException ("AD_Ref_List_ID is mandatory."); -set_ValueNoCheck ("AD_Ref_List_ID", Integer.valueOf(AD_Ref_List_ID)); -} -/** Get Reference List. -@return Reference List based on Table */ -public int getAD_Ref_List_ID() -{ -Integer ii = (Integer)get_Value("AD_Ref_List_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Ref_List_ID */ -public static final String COLUMNNAME_AD_Ref_List_ID = "AD_Ref_List_ID"; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_ValueNoCheck ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Ref_List (Properties ctx, int AD_Ref_List_ID, String trxName) + { + super (ctx, AD_Ref_List_ID, trxName); + /** if (AD_Ref_List_ID == 0) { setAD_Ref_List_ID (0); + setAD_Reference_ID (0); + setEntityType (null); +// U + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_Ref_List (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Ref_List[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Reference List. + @param AD_Ref_List_ID + Reference List based on Table + */ + public void setAD_Ref_List_ID (int AD_Ref_List_ID) + { + if (AD_Ref_List_ID < 1) + throw new IllegalArgumentException ("AD_Ref_List_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Ref_List_ID, Integer.valueOf(AD_Ref_List_ID)); + } + + /** Get Reference List. + @return Reference List based on Table + */ + public int getAD_Ref_List_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Ref_List_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Reference getI_AD_Reference() throws Exception + { + 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 e; + } + return result; + } + + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Value = Value.substring(0,59); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 60) + { + log.warning("Length > 60 - truncated"); + Value = Value.substring(0, 59); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file 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 f47211e1e2..dbd5afbcbb 100644 --- a/base/src/org/compiere/model/X_AD_Ref_Table.java +++ b/base/src/org/compiere/model/X_AD_Ref_Table.java @@ -1,253 +1,299 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Ref_Table - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Ref_Table extends PO + +/** Generated Model for AD_Ref_Table + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Ref_Table extends PO implements I_AD_Ref_Table, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Ref_Table_ID id -@param trxName transaction -*/ -public X_AD_Ref_Table (Properties ctx, int AD_Ref_Table_ID, String trxName) -{ -super (ctx, AD_Ref_Table_ID, trxName); -/** if (AD_Ref_Table_ID == 0) -{ -setAD_Display (0); -setAD_Key (0); -setAD_Reference_ID (0); -setAD_Table_ID (0); -setEntityType (null); // U -setIsValueDisplayed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Ref_Table (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Ref_Table */ -public static final String Table_Name="AD_Ref_Table"; - -/** AD_Table_ID=103 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Ref_Table[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Ref_Table (Properties ctx, int AD_Ref_Table_ID, String trxName) + { + super (ctx, AD_Ref_Table_ID, trxName); + /** if (AD_Ref_Table_ID == 0) { setAD_Display (0); + setAD_Key (0); + setAD_Reference_ID (0); + setAD_Table_ID (0); + setEntityType (null); +// U + setIsValueDisplayed (false); +} */ + } + + /** Load Constructor */ + public X_AD_Ref_Table (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Ref_Table[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Display AD_Reference_ID=3 */ public static final int AD_DISPLAY_AD_Reference_ID=3; -/** Set Display column. -@param AD_Display Column that will display */ -public void setAD_Display (int AD_Display) -{ -set_Value ("AD_Display", Integer.valueOf(AD_Display)); -} -/** Get Display column. -@return Column that will display */ -public int getAD_Display() -{ -Integer ii = (Integer)get_Value("AD_Display"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Display */ -public static final String COLUMNNAME_AD_Display = "AD_Display"; + /** Set Display column. + @param AD_Display + Column that will display + */ + public void setAD_Display (int AD_Display) + { + set_Value (COLUMNNAME_AD_Display, Integer.valueOf(AD_Display)); + } + + /** Get Display column. + @return Column that will display + */ + public int getAD_Display () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Display); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Key AD_Reference_ID=3 */ public static final int AD_KEY_AD_Reference_ID=3; -/** Set Key column. -@param AD_Key Unique identifier of a record */ -public void setAD_Key (int AD_Key) -{ -set_Value ("AD_Key", Integer.valueOf(AD_Key)); -} -/** Get Key column. -@return Unique identifier of a record */ -public int getAD_Key() -{ -Integer ii = (Integer)get_Value("AD_Key"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Key */ -public static final String COLUMNNAME_AD_Key = "AD_Key"; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_ValueNoCheck ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Reference_ID())); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + /** Set Key column. + @param AD_Key + Unique identifier of a record + */ + public void setAD_Key (int AD_Key) + { + set_Value (COLUMNNAME_AD_Key, Integer.valueOf(AD_Key)); + } + + /** Get Key column. + @return Unique identifier of a record + */ + public int getAD_Key () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Key); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Reference getI_AD_Reference() throws Exception + { + 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 e; + } + return result; + } + + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Reference_ID())); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Display Value. -@param IsValueDisplayed Displays Value column with the Display column */ -public void setIsValueDisplayed (boolean IsValueDisplayed) -{ -set_Value ("IsValueDisplayed", Boolean.valueOf(IsValueDisplayed)); -} -/** Get Display Value. -@return Displays Value column with the Display column */ -public boolean isValueDisplayed() -{ -Object oo = get_Value("IsValueDisplayed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValueDisplayed */ -public static final String COLUMNNAME_IsValueDisplayed = "IsValueDisplayed"; -/** Set Sql ORDER BY. -@param OrderByClause Fully qualified ORDER BY clause */ -public void setOrderByClause (String OrderByClause) -{ -if (OrderByClause != null && OrderByClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OrderByClause = OrderByClause.substring(0,1999); -} -set_Value ("OrderByClause", OrderByClause); -} -/** Get Sql ORDER BY. -@return Fully qualified ORDER BY clause */ -public String getOrderByClause() -{ -return (String)get_Value("OrderByClause"); -} -/** Column name OrderByClause */ -public static final String COLUMNNAME_OrderByClause = "OrderByClause"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Display Value. + @param IsValueDisplayed + Displays Value column with the Display column + */ + public void setIsValueDisplayed (boolean IsValueDisplayed) + { + set_Value (COLUMNNAME_IsValueDisplayed, Boolean.valueOf(IsValueDisplayed)); + } + + /** Get Display Value. + @return Displays Value column with the Display column + */ + public boolean isValueDisplayed () + { + Object oo = get_Value(COLUMNNAME_IsValueDisplayed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sql ORDER BY. + @param OrderByClause + Fully qualified ORDER BY clause + */ + public void setOrderByClause (String OrderByClause) + { + if (OrderByClause != null && OrderByClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OrderByClause = OrderByClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OrderByClause, OrderByClause); + } + + /** Get Sql ORDER BY. + @return Fully qualified ORDER BY clause + */ + public String getOrderByClause () + { + return (String)get_Value(COLUMNNAME_OrderByClause); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Reference.java b/base/src/org/compiere/model/X_AD_Reference.java index 0f11b4904e..ffa9a9a724 100644 --- a/base/src/org/compiere/model/X_AD_Reference.java +++ b/base/src/org/compiere/model/X_AD_Reference.java @@ -1,248 +1,248 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Reference - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Reference extends PO + +/** Generated Model for AD_Reference + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Reference extends PO implements I_AD_Reference, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Reference_ID id -@param trxName transaction -*/ -public X_AD_Reference (Properties ctx, int AD_Reference_ID, String trxName) -{ -super (ctx, AD_Reference_ID, trxName); -/** if (AD_Reference_ID == 0) -{ -setAD_Reference_ID (0); -setEntityType (null); // U -setName (null); -setValidationType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Reference (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Reference */ -public static final String Table_Name="AD_Reference"; - -/** AD_Table_ID=102 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Reference[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_ValueNoCheck ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Reference (Properties ctx, int AD_Reference_ID, String trxName) + { + super (ctx, AD_Reference_ID, trxName); + /** if (AD_Reference_ID == 0) { setAD_Reference_ID (0); + setEntityType (null); +// U + setName (null); + setValidationType (null); +} */ + } + + /** Load Constructor */ + public X_AD_Reference (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Reference[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Value Format. -@param VFormat Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setVFormat (String VFormat) -{ -if (VFormat != null && VFormat.length() > 40) -{ -log.warning("Length > 40 - truncated"); -VFormat = VFormat.substring(0,39); -} -set_Value ("VFormat", VFormat); -} -/** Get Value Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getVFormat() -{ -return (String)get_Value("VFormat"); -} -/** Column name VFormat */ -public static final String COLUMNNAME_VFormat = "VFormat"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Value Format. + @param VFormat + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat) + { + if (VFormat != null && VFormat.length() > 40) + { + log.warning("Length > 40 - truncated"); + VFormat = VFormat.substring(0, 39); + } + set_Value (COLUMNNAME_VFormat, VFormat); + } + + /** Get Value Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat () + { + return (String)get_Value(COLUMNNAME_VFormat); + } /** ValidationType AD_Reference_ID=2 */ -public static final int VALIDATIONTYPE_AD_Reference_ID=2; -/** DataType = D */ -public static final String VALIDATIONTYPE_DataType = "D"; -/** List Validation = L */ -public static final String VALIDATIONTYPE_ListValidation = "L"; -/** Table Validation = T */ +public static final int VALIDATIONTYPE_AD_Reference_ID=2;/** DataType = D */ +public static final String VALIDATIONTYPE_DataType = "D";/** List Validation = L */ +public static final String VALIDATIONTYPE_ListValidation = "L";/** Table Validation = T */ public static final String VALIDATIONTYPE_TableValidation = "T"; -/** Set Validation type. -@param ValidationType Different method of validating data */ -public void setValidationType (String ValidationType) -{ -if (ValidationType == null) throw new IllegalArgumentException ("ValidationType is mandatory"); -if (ValidationType.equals("D") || ValidationType.equals("L") || ValidationType.equals("T")); - else throw new IllegalArgumentException ("ValidationType Invalid value - " + ValidationType + " - Reference_ID=2 - D - L - T"); -if (ValidationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ValidationType = ValidationType.substring(0,0); -} -set_Value ("ValidationType", ValidationType); -} -/** Get Validation type. -@return Different method of validating data */ -public String getValidationType() -{ -return (String)get_Value("ValidationType"); -} -/** Column name ValidationType */ -public static final String COLUMNNAME_ValidationType = "ValidationType"; -} + /** Set Validation type. + @param ValidationType + Different method of validating data + */ + public void setValidationType (String ValidationType) + { +if (ValidationType == null) throw new IllegalArgumentException ("ValidationType is mandatory");if (ValidationType.equals("D") || ValidationType.equals("L") || ValidationType.equals("T")); else throw new IllegalArgumentException ("ValidationType Invalid value - " + ValidationType + " - Reference_ID=2 - D - L - T"); if (ValidationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ValidationType = ValidationType.substring(0, 0); + } + set_Value (COLUMNNAME_ValidationType, ValidationType); + } + + /** Get Validation type. + @return Different method of validating data + */ + public String getValidationType () + { + return (String)get_Value(COLUMNNAME_ValidationType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Registration.java b/base/src/org/compiere/model/X_AD_Registration.java index 0331a7bc16..23a6e4264c 100644 --- a/base/src/org/compiere/model/X_AD_Registration.java +++ b/base/src/org/compiere/model/X_AD_Registration.java @@ -1,422 +1,509 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Registration - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Registration extends PO + +/** Generated Model for AD_Registration + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Registration extends PO implements I_AD_Registration, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Registration_ID id -@param trxName transaction -*/ -public X_AD_Registration (Properties ctx, int AD_Registration_ID, String trxName) -{ -super (ctx, AD_Registration_ID, trxName); -/** if (AD_Registration_ID == 0) -{ -setAD_Registration_ID (0); // 0 -setAD_System_ID (0); // 0 -setIsAllowPublish (true); // Y -setIsAllowStatistics (true); // Y -setIsInProduction (false); -setIsRegistered (false); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Registration (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Registration */ -public static final String Table_Name="AD_Registration"; - -/** AD_Table_ID=625 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Registration[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Registration. -@param AD_Registration_ID System Registration */ -public void setAD_Registration_ID (int AD_Registration_ID) -{ -if (AD_Registration_ID < 1) throw new IllegalArgumentException ("AD_Registration_ID is mandatory."); -set_ValueNoCheck ("AD_Registration_ID", Integer.valueOf(AD_Registration_ID)); -} -/** Get System Registration. -@return System Registration */ -public int getAD_Registration_ID() -{ -Integer ii = (Integer)get_Value("AD_Registration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Registration_ID */ -public static final String COLUMNNAME_AD_Registration_ID = "AD_Registration_ID"; -/** Set System. -@param AD_System_ID System Definition */ -public void setAD_System_ID (int AD_System_ID) -{ -if (AD_System_ID < 1) throw new IllegalArgumentException ("AD_System_ID is mandatory."); -set_ValueNoCheck ("AD_System_ID", Integer.valueOf(AD_System_ID)); -} -/** Get System. -@return System Definition */ -public int getAD_System_ID() -{ -Integer ii = (Integer)get_Value("AD_System_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_System_ID */ -public static final String COLUMNNAME_AD_System_ID = "AD_System_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Industry Info. -@param IndustryInfo Information of the industry (e.g. professional service, distribution of furnitures, ..) */ -public void setIndustryInfo (String IndustryInfo) -{ -if (IndustryInfo != null && IndustryInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -IndustryInfo = IndustryInfo.substring(0,254); -} -set_Value ("IndustryInfo", IndustryInfo); -} -/** Get Industry Info. -@return Information of the industry (e.g. professional service, distribution of furnitures, ..) */ -public String getIndustryInfo() -{ -return (String)get_Value("IndustryInfo"); -} -/** Column name IndustryInfo */ -public static final String COLUMNNAME_IndustryInfo = "IndustryInfo"; -/** Set Allowed to be Published. -@param IsAllowPublish You allow to publish the information, not just statistical summary info */ -public void setIsAllowPublish (boolean IsAllowPublish) -{ -set_Value ("IsAllowPublish", Boolean.valueOf(IsAllowPublish)); -} -/** Get Allowed to be Published. -@return You allow to publish the information, not just statistical summary info */ -public boolean isAllowPublish() -{ -Object oo = get_Value("IsAllowPublish"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllowPublish */ -public static final String COLUMNNAME_IsAllowPublish = "IsAllowPublish"; -/** Set Maintain Statistics. -@param IsAllowStatistics Maintain general statistics */ -public void setIsAllowStatistics (boolean IsAllowStatistics) -{ -set_Value ("IsAllowStatistics", Boolean.valueOf(IsAllowStatistics)); -} -/** Get Maintain Statistics. -@return Maintain general statistics */ -public boolean isAllowStatistics() -{ -Object oo = get_Value("IsAllowStatistics"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllowStatistics */ -public static final String COLUMNNAME_IsAllowStatistics = "IsAllowStatistics"; -/** Set In Production. -@param IsInProduction The system is in production */ -public void setIsInProduction (boolean IsInProduction) -{ -set_Value ("IsInProduction", Boolean.valueOf(IsInProduction)); -} -/** Get In Production. -@return The system is in production */ -public boolean isInProduction() -{ -Object oo = get_Value("IsInProduction"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInProduction */ -public static final String COLUMNNAME_IsInProduction = "IsInProduction"; -/** Set Registered. -@param IsRegistered The application is registered. */ -public void setIsRegistered (boolean IsRegistered) -{ -set_ValueNoCheck ("IsRegistered", Boolean.valueOf(IsRegistered)); -} -/** Get Registered. -@return The application is registered. */ -public boolean isRegistered() -{ -Object oo = get_Value("IsRegistered"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRegistered */ -public static final String COLUMNNAME_IsRegistered = "IsRegistered"; -/** Set Employees. -@param NumberEmployees Number of employees */ -public void setNumberEmployees (int NumberEmployees) -{ -set_Value ("NumberEmployees", Integer.valueOf(NumberEmployees)); -} -/** Get Employees. -@return Number of employees */ -public int getNumberEmployees() -{ -Integer ii = (Integer)get_Value("NumberEmployees"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NumberEmployees */ -public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; -/** Set Platform Info. -@param PlatformInfo Information about Server and Client Platform */ -public void setPlatformInfo (String PlatformInfo) -{ -if (PlatformInfo != null && PlatformInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -PlatformInfo = PlatformInfo.substring(0,254); -} -set_Value ("PlatformInfo", PlatformInfo); -} -/** Get Platform Info. -@return Information about Server and Client Platform */ -public String getPlatformInfo() -{ -return (String)get_Value("PlatformInfo"); -} -/** Column name PlatformInfo */ -public static final String COLUMNNAME_PlatformInfo = "PlatformInfo"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null); - else -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_ValueNoCheck ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_ValueNoCheck ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Sales Volume in 1.000. -@param SalesVolume Total Volume of Sales in Thousands of Currency */ -public void setSalesVolume (int SalesVolume) -{ -set_Value ("SalesVolume", Integer.valueOf(SalesVolume)); -} -/** Get Sales Volume in 1.000. -@return Total Volume of Sales in Thousands of Currency */ -public int getSalesVolume() -{ -Integer ii = (Integer)get_Value("SalesVolume"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesVolume */ -public static final String COLUMNNAME_SalesVolume = "SalesVolume"; -/** Set Start Implementation/Production. -@param StartProductionDate The day you started the implementation (if implementing) - or production (went life) with Adempiere */ -public void setStartProductionDate (Timestamp StartProductionDate) -{ -set_Value ("StartProductionDate", StartProductionDate); -} -/** Get Start Implementation/Production. -@return The day you started the implementation (if implementing) - or production (went life) with Adempiere */ -public Timestamp getStartProductionDate() -{ -return (Timestamp)get_Value("StartProductionDate"); -} -/** Column name StartProductionDate */ -public static final String COLUMNNAME_StartProductionDate = "StartProductionDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Registration (Properties ctx, int AD_Registration_ID, String trxName) + { + super (ctx, AD_Registration_ID, trxName); + /** if (AD_Registration_ID == 0) { setAD_Registration_ID (0); +// 0 + setAD_System_ID (0); +// 0 + setIsAllowPublish (true); +// Y + setIsAllowStatistics (true); +// Y + setIsInProduction (false); + setIsRegistered (false); +// N +} */ + } + + /** Load Constructor */ + public X_AD_Registration (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Registration[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Registration. + @param AD_Registration_ID + System Registration + */ + public void setAD_Registration_ID (int AD_Registration_ID) + { + if (AD_Registration_ID < 1) + throw new IllegalArgumentException ("AD_Registration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Registration_ID, Integer.valueOf(AD_Registration_ID)); + } + + /** Get System Registration. + @return System Registration + */ + public int getAD_Registration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Registration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_System getI_AD_System() throws Exception + { + 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 e; + } + return result; + } + + /** Set System. + @param AD_System_ID + System Definition + */ + public void setAD_System_ID (int AD_System_ID) + { + if (AD_System_ID < 1) + throw new IllegalArgumentException ("AD_System_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_System_ID, Integer.valueOf(AD_System_ID)); + } + + /** Get System. + @return System Definition + */ + public int getAD_System_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_System_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Industry Info. + @param IndustryInfo + Information of the industry (e.g. professional service, distribution of furnitures, ..) + */ + public void setIndustryInfo (String IndustryInfo) + { + if (IndustryInfo != null && IndustryInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + IndustryInfo = IndustryInfo.substring(0, 254); + } + set_Value (COLUMNNAME_IndustryInfo, IndustryInfo); + } + + /** Get Industry Info. + @return Information of the industry (e.g. professional service, distribution of furnitures, ..) + */ + public String getIndustryInfo () + { + return (String)get_Value(COLUMNNAME_IndustryInfo); + } + + /** Set Allowed to be Published. + @param IsAllowPublish + You allow to publish the information, not just statistical summary info + */ + public void setIsAllowPublish (boolean IsAllowPublish) + { + set_Value (COLUMNNAME_IsAllowPublish, Boolean.valueOf(IsAllowPublish)); + } + + /** Get Allowed to be Published. + @return You allow to publish the information, not just statistical summary info + */ + public boolean isAllowPublish () + { + Object oo = get_Value(COLUMNNAME_IsAllowPublish); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Maintain Statistics. + @param IsAllowStatistics + Maintain general statistics + */ + public void setIsAllowStatistics (boolean IsAllowStatistics) + { + set_Value (COLUMNNAME_IsAllowStatistics, Boolean.valueOf(IsAllowStatistics)); + } + + /** Get Maintain Statistics. + @return Maintain general statistics + */ + public boolean isAllowStatistics () + { + Object oo = get_Value(COLUMNNAME_IsAllowStatistics); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Production. + @param IsInProduction + The system is in production + */ + public void setIsInProduction (boolean IsInProduction) + { + set_Value (COLUMNNAME_IsInProduction, Boolean.valueOf(IsInProduction)); + } + + /** Get In Production. + @return The system is in production + */ + public boolean isInProduction () + { + Object oo = get_Value(COLUMNNAME_IsInProduction); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Registered. + @param IsRegistered + The application is registered. + */ + public void setIsRegistered (boolean IsRegistered) + { + set_ValueNoCheck (COLUMNNAME_IsRegistered, Boolean.valueOf(IsRegistered)); + } + + /** Get Registered. + @return The application is registered. + */ + public boolean isRegistered () + { + Object oo = get_Value(COLUMNNAME_IsRegistered); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Employees. + @param NumberEmployees + Number of employees + */ + public void setNumberEmployees (int NumberEmployees) + { + set_Value (COLUMNNAME_NumberEmployees, Integer.valueOf(NumberEmployees)); + } + + /** Get Employees. + @return Number of employees + */ + public int getNumberEmployees () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NumberEmployees); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Platform Info. + @param PlatformInfo + Information about Server and Client Platform + */ + public void setPlatformInfo (String PlatformInfo) + { + if (PlatformInfo != null && PlatformInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + PlatformInfo = PlatformInfo.substring(0, 254); + } + set_Value (COLUMNNAME_PlatformInfo, PlatformInfo); + } + + /** Get Platform Info. + @return Information about Server and Client Platform + */ + public String getPlatformInfo () + { + return (String)get_Value(COLUMNNAME_PlatformInfo); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Sales Volume in 1.000. + @param SalesVolume + Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (int SalesVolume) + { + set_Value (COLUMNNAME_SalesVolume, Integer.valueOf(SalesVolume)); + } + + /** Get Sales Volume in 1.000. + @return Total Volume of Sales in Thousands of Currency + */ + public int getSalesVolume () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesVolume); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Start Implementation/Production. + @param StartProductionDate + The day you started the implementation (if implementing) - or production (went life) with Adempiere + */ + public void setStartProductionDate (Timestamp StartProductionDate) + { + set_Value (COLUMNNAME_StartProductionDate, StartProductionDate); + } + + /** Get Start Implementation/Production. + @return The day you started the implementation (if implementing) - or production (went life) with Adempiere + */ + public Timestamp getStartProductionDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartProductionDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Replication.java b/base/src/org/compiere/model/X_AD_Replication.java index dd062561ac..9e442ba243 100644 --- a/base/src/org/compiere/model/X_AD_Replication.java +++ b/base/src/org/compiere/model/X_AD_Replication.java @@ -1,393 +1,456 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Replication - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Replication extends PO + +/** Generated Model for AD_Replication + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Replication extends PO implements I_AD_Replication, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Replication_ID id -@param trxName transaction -*/ -public X_AD_Replication (Properties ctx, int AD_Replication_ID, String trxName) -{ -super (ctx, AD_Replication_ID, trxName); -/** if (AD_Replication_ID == 0) -{ -setAD_ReplicationStrategy_ID (0); -setAD_Replication_ID (0); -setHostAddress (null); -setHostPort (0); // 80 -setIsRMIoverHTTP (true); // Y -setName (null); -setRemote_Client_ID (0); -setRemote_Org_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Replication (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Replication */ -public static final String Table_Name="AD_Replication"; - -/** AD_Table_ID=605 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Replication[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Replication Strategy. -@param AD_ReplicationStrategy_ID Data Replication Strategy */ -public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) -{ -if (AD_ReplicationStrategy_ID < 1) throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); -set_Value ("AD_ReplicationStrategy_ID", Integer.valueOf(AD_ReplicationStrategy_ID)); -} -/** Get Replication Strategy. -@return Data Replication Strategy */ -public int getAD_ReplicationStrategy_ID() -{ -Integer ii = (Integer)get_Value("AD_ReplicationStrategy_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReplicationStrategy_ID */ -public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; -/** Set Replication. -@param AD_Replication_ID Data Replication Target */ -public void setAD_Replication_ID (int AD_Replication_ID) -{ -if (AD_Replication_ID < 1) throw new IllegalArgumentException ("AD_Replication_ID is mandatory."); -set_ValueNoCheck ("AD_Replication_ID", Integer.valueOf(AD_Replication_ID)); -} -/** Get Replication. -@return Data Replication Target */ -public int getAD_Replication_ID() -{ -Integer ii = (Integer)get_Value("AD_Replication_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Replication_ID */ -public static final String COLUMNNAME_AD_Replication_ID = "AD_Replication_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_ValueNoCheck ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Host Address. -@param HostAddress Host Address URL or DNS */ -public void setHostAddress (String HostAddress) -{ -if (HostAddress == null) throw new IllegalArgumentException ("HostAddress is mandatory."); -if (HostAddress.length() > 60) -{ -log.warning("Length > 60 - truncated"); -HostAddress = HostAddress.substring(0,59); -} -set_Value ("HostAddress", HostAddress); -} -/** Get Host Address. -@return Host Address URL or DNS */ -public String getHostAddress() -{ -return (String)get_Value("HostAddress"); -} -/** Column name HostAddress */ -public static final String COLUMNNAME_HostAddress = "HostAddress"; -/** Set Host port. -@param HostPort Host Communication Port */ -public void setHostPort (int HostPort) -{ -set_Value ("HostPort", Integer.valueOf(HostPort)); -} -/** Get Host port. -@return Host Communication Port */ -public int getHostPort() -{ -Integer ii = (Integer)get_Value("HostPort"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HostPort */ -public static final String COLUMNNAME_HostPort = "HostPort"; -/** Set ID Range End. -@param IDRangeEnd End if the ID Range used */ -public void setIDRangeEnd (BigDecimal IDRangeEnd) -{ -set_Value ("IDRangeEnd", IDRangeEnd); -} -/** Get ID Range End. -@return End if the ID Range used */ -public BigDecimal getIDRangeEnd() -{ -BigDecimal bd = (BigDecimal)get_Value("IDRangeEnd"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name IDRangeEnd */ -public static final String COLUMNNAME_IDRangeEnd = "IDRangeEnd"; -/** Set ID Range Start. -@param IDRangeStart Start of the ID Range used */ -public void setIDRangeStart (BigDecimal IDRangeStart) -{ -set_Value ("IDRangeStart", IDRangeStart); -} -/** Get ID Range Start. -@return Start of the ID Range used */ -public BigDecimal getIDRangeStart() -{ -BigDecimal bd = (BigDecimal)get_Value("IDRangeStart"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name IDRangeStart */ -public static final String COLUMNNAME_IDRangeStart = "IDRangeStart"; -/** Set Tunnel via HTTP. -@param IsRMIoverHTTP Connect to Server via HTTP Tunnel */ -public void setIsRMIoverHTTP (boolean IsRMIoverHTTP) -{ -set_Value ("IsRMIoverHTTP", Boolean.valueOf(IsRMIoverHTTP)); -} -/** Get Tunnel via HTTP. -@return Connect to Server via HTTP Tunnel */ -public boolean isRMIoverHTTP() -{ -Object oo = get_Value("IsRMIoverHTTP"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRMIoverHTTP */ -public static final String COLUMNNAME_IsRMIoverHTTP = "IsRMIoverHTTP"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Prefix. -@param Prefix Prefix before the sequence number */ -public void setPrefix (String Prefix) -{ -if (Prefix != null && Prefix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Prefix = Prefix.substring(0,9); -} -set_Value ("Prefix", Prefix); -} -/** Get Prefix. -@return Prefix before the sequence number */ -public String getPrefix() -{ -return (String)get_Value("Prefix"); -} -/** Column name Prefix */ -public static final String COLUMNNAME_Prefix = "Prefix"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Replication (Properties ctx, int AD_Replication_ID, String trxName) + { + super (ctx, AD_Replication_ID, trxName); + /** if (AD_Replication_ID == 0) { setAD_ReplicationStrategy_ID (0); + setAD_Replication_ID (0); + setHostAddress (null); + setHostPort (0); +// 80 + setIsRMIoverHTTP (true); +// Y + setName (null); + setRemote_Client_ID (0); + setRemote_Org_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Replication (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Replication[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_ReplicationStrategy getI_AD_ReplicationStrategy() throws Exception + { + 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 e; + } + return result; + } + + /** Set Replication Strategy. + @param AD_ReplicationStrategy_ID + Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) + { + if (AD_ReplicationStrategy_ID < 1) + throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); + set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + } + + /** Get Replication Strategy. + @return Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationStrategy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Replication. + @param AD_Replication_ID + Data Replication Target + */ + public void setAD_Replication_ID (int AD_Replication_ID) + { + if (AD_Replication_ID < 1) + throw new IllegalArgumentException ("AD_Replication_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, Integer.valueOf(AD_Replication_ID)); + } + + /** Get Replication. + @return Data Replication Target + */ + public int getAD_Replication_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Replication_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_ValueNoCheck (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Host Address. + @param HostAddress + Host Address URL or DNS + */ + public void setHostAddress (String HostAddress) + { + if (HostAddress == null) + throw new IllegalArgumentException ("HostAddress is mandatory."); + if (HostAddress.length() > 60) + { + log.warning("Length > 60 - truncated"); + HostAddress = HostAddress.substring(0, 59); + } + set_Value (COLUMNNAME_HostAddress, HostAddress); + } + + /** Get Host Address. + @return Host Address URL or DNS + */ + public String getHostAddress () + { + return (String)get_Value(COLUMNNAME_HostAddress); + } + + /** Set Host port. + @param HostPort + Host Communication Port + */ + public void setHostPort (int HostPort) + { + set_Value (COLUMNNAME_HostPort, Integer.valueOf(HostPort)); + } + + /** Get Host port. + @return Host Communication Port + */ + public int getHostPort () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HostPort); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ID Range End. + @param IDRangeEnd + End if the ID Range used + */ + public void setIDRangeEnd (BigDecimal IDRangeEnd) + { + set_Value (COLUMNNAME_IDRangeEnd, IDRangeEnd); + } + + /** Get ID Range End. + @return End if the ID Range used + */ + public BigDecimal getIDRangeEnd () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_IDRangeEnd); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set ID Range Start. + @param IDRangeStart + Start of the ID Range used + */ + public void setIDRangeStart (BigDecimal IDRangeStart) + { + set_Value (COLUMNNAME_IDRangeStart, IDRangeStart); + } + + /** Get ID Range Start. + @return Start of the ID Range used + */ + public BigDecimal getIDRangeStart () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_IDRangeStart); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tunnel via HTTP. + @param IsRMIoverHTTP + Connect to Server via HTTP Tunnel + */ + public void setIsRMIoverHTTP (boolean IsRMIoverHTTP) + { + set_Value (COLUMNNAME_IsRMIoverHTTP, Boolean.valueOf(IsRMIoverHTTP)); + } + + /** Get Tunnel via HTTP. + @return Connect to Server via HTTP Tunnel + */ + public boolean isRMIoverHTTP () + { + Object oo = get_Value(COLUMNNAME_IsRMIoverHTTP); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Prefix. + @param Prefix + Prefix before the sequence number + */ + public void setPrefix (String Prefix) + { + if (Prefix != null && Prefix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Prefix = Prefix.substring(0, 9); + } + set_Value (COLUMNNAME_Prefix, Prefix); + } + + /** Get Prefix. + @return Prefix before the sequence number + */ + public String getPrefix () + { + return (String)get_Value(COLUMNNAME_Prefix); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** Remote_Client_ID AD_Reference_ID=129 */ public static final int REMOTE_CLIENT_ID_AD_Reference_ID=129; -/** Set Remote Client. -@param Remote_Client_ID Remote Client to be used to replicate / synchronize data with. */ -public void setRemote_Client_ID (int Remote_Client_ID) -{ -if (Remote_Client_ID < 1) throw new IllegalArgumentException ("Remote_Client_ID is mandatory."); -set_ValueNoCheck ("Remote_Client_ID", Integer.valueOf(Remote_Client_ID)); -} -/** Get Remote Client. -@return Remote Client to be used to replicate / synchronize data with. */ -public int getRemote_Client_ID() -{ -Integer ii = (Integer)get_Value("Remote_Client_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Remote_Client_ID */ -public static final String COLUMNNAME_Remote_Client_ID = "Remote_Client_ID"; + /** Set Remote Client. + @param Remote_Client_ID + Remote Client to be used to replicate / synchronize data with. + */ + public void setRemote_Client_ID (int Remote_Client_ID) + { + if (Remote_Client_ID < 1) + throw new IllegalArgumentException ("Remote_Client_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Remote_Client_ID, Integer.valueOf(Remote_Client_ID)); + } + + /** Get Remote Client. + @return Remote Client to be used to replicate / synchronize data with. + */ + public int getRemote_Client_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Remote_Client_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Remote_Org_ID AD_Reference_ID=276 */ public static final int REMOTE_ORG_ID_AD_Reference_ID=276; -/** Set Remote Organization. -@param Remote_Org_ID Remote Organization to be used to replicate / synchronize data with. */ -public void setRemote_Org_ID (int Remote_Org_ID) -{ -if (Remote_Org_ID < 1) throw new IllegalArgumentException ("Remote_Org_ID is mandatory."); -set_ValueNoCheck ("Remote_Org_ID", Integer.valueOf(Remote_Org_ID)); -} -/** Get Remote Organization. -@return Remote Organization to be used to replicate / synchronize data with. */ -public int getRemote_Org_ID() -{ -Integer ii = (Integer)get_Value("Remote_Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Remote_Org_ID */ -public static final String COLUMNNAME_Remote_Org_ID = "Remote_Org_ID"; -/** Set Suffix. -@param Suffix Suffix after the number */ -public void setSuffix (String Suffix) -{ -if (Suffix != null && Suffix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Suffix = Suffix.substring(0,9); -} -set_Value ("Suffix", Suffix); -} -/** Get Suffix. -@return Suffix after the number */ -public String getSuffix() -{ -return (String)get_Value("Suffix"); -} -/** Column name Suffix */ -public static final String COLUMNNAME_Suffix = "Suffix"; -} + /** Set Remote Organization. + @param Remote_Org_ID + Remote Organization to be used to replicate / synchronize data with. + */ + public void setRemote_Org_ID (int Remote_Org_ID) + { + if (Remote_Org_ID < 1) + throw new IllegalArgumentException ("Remote_Org_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Remote_Org_ID, Integer.valueOf(Remote_Org_ID)); + } + + /** Get Remote Organization. + @return Remote Organization to be used to replicate / synchronize data with. + */ + public int getRemote_Org_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Remote_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Suffix. + @param Suffix + Suffix after the number + */ + public void setSuffix (String Suffix) + { + if (Suffix != null && Suffix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Suffix = Suffix.substring(0, 9); + } + set_Value (COLUMNNAME_Suffix, Suffix); + } + + /** Get Suffix. + @return Suffix after the number + */ + public String getSuffix () + { + return (String)get_Value(COLUMNNAME_Suffix); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java index 5a2d22bc5d..05d2aa5656 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java +++ b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java @@ -1,195 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ReplicationStrategy - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ReplicationStrategy extends PO + +/** Generated Model for AD_ReplicationStrategy + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ReplicationStrategy extends PO implements I_AD_ReplicationStrategy, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ReplicationStrategy_ID id -@param trxName transaction -*/ -public X_AD_ReplicationStrategy (Properties ctx, int AD_ReplicationStrategy_ID, String trxName) -{ -super (ctx, AD_ReplicationStrategy_ID, trxName); -/** if (AD_ReplicationStrategy_ID == 0) -{ -setAD_ReplicationStrategy_ID (0); -setEntityType (null); // U -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ReplicationStrategy (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ReplicationStrategy */ -public static final String Table_Name="AD_ReplicationStrategy"; - -/** AD_Table_ID=602 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ReplicationStrategy[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Replication Strategy. -@param AD_ReplicationStrategy_ID Data Replication Strategy */ -public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) -{ -if (AD_ReplicationStrategy_ID < 1) throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); -set_ValueNoCheck ("AD_ReplicationStrategy_ID", Integer.valueOf(AD_ReplicationStrategy_ID)); -} -/** Get Replication Strategy. -@return Data Replication Strategy */ -public int getAD_ReplicationStrategy_ID() -{ -Integer ii = (Integer)get_Value("AD_ReplicationStrategy_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReplicationStrategy_ID */ -public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ReplicationStrategy (Properties ctx, int AD_ReplicationStrategy_ID, String trxName) + { + super (ctx, AD_ReplicationStrategy_ID, trxName); + /** if (AD_ReplicationStrategy_ID == 0) { setAD_ReplicationStrategy_ID (0); + setEntityType (null); +// U + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_ReplicationStrategy (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ReplicationStrategy[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Replication Strategy. + @param AD_ReplicationStrategy_ID + Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) + { + if (AD_ReplicationStrategy_ID < 1) + throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + } + + /** Get Replication Strategy. + @return Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationStrategy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ReplicationTable.java b/base/src/org/compiere/model/X_AD_ReplicationTable.java index 0062c59879..71866f0e76 100644 --- a/base/src/org/compiere/model/X_AD_ReplicationTable.java +++ b/base/src/org/compiere/model/X_AD_ReplicationTable.java @@ -1,204 +1,235 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ReplicationTable - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ReplicationTable extends PO + +/** Generated Model for AD_ReplicationTable + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ReplicationTable extends PO implements I_AD_ReplicationTable, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ReplicationTable_ID id -@param trxName transaction -*/ -public X_AD_ReplicationTable (Properties ctx, int AD_ReplicationTable_ID, String trxName) -{ -super (ctx, AD_ReplicationTable_ID, trxName); -/** if (AD_ReplicationTable_ID == 0) -{ -setAD_ReplicationStrategy_ID (0); -setAD_ReplicationTable_ID (0); -setAD_Table_ID (0); -setEntityType (null); // U -setReplicationType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ReplicationTable (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ReplicationTable */ -public static final String Table_Name="AD_ReplicationTable"; - -/** AD_Table_ID=601 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ReplicationTable[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Replication Strategy. -@param AD_ReplicationStrategy_ID Data Replication Strategy */ -public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) -{ -if (AD_ReplicationStrategy_ID < 1) throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); -set_ValueNoCheck ("AD_ReplicationStrategy_ID", Integer.valueOf(AD_ReplicationStrategy_ID)); -} -/** Get Replication Strategy. -@return Data Replication Strategy */ -public int getAD_ReplicationStrategy_ID() -{ -Integer ii = (Integer)get_Value("AD_ReplicationStrategy_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_ReplicationStrategy_ID())); -} -/** Column name AD_ReplicationStrategy_ID */ -public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; -/** Set Replication Table. -@param AD_ReplicationTable_ID Data Replication Strategy Table Info */ -public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID) -{ -if (AD_ReplicationTable_ID < 1) throw new IllegalArgumentException ("AD_ReplicationTable_ID is mandatory."); -set_ValueNoCheck ("AD_ReplicationTable_ID", Integer.valueOf(AD_ReplicationTable_ID)); -} -/** Get Replication Table. -@return Data Replication Strategy Table Info */ -public int getAD_ReplicationTable_ID() -{ -Integer ii = (Integer)get_Value("AD_ReplicationTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReplicationTable_ID */ -public static final String COLUMNNAME_AD_ReplicationTable_ID = "AD_ReplicationTable_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ReplicationTable (Properties ctx, int AD_ReplicationTable_ID, String trxName) + { + super (ctx, AD_ReplicationTable_ID, trxName); + /** if (AD_ReplicationTable_ID == 0) { setAD_ReplicationStrategy_ID (0); + setAD_ReplicationTable_ID (0); + setAD_Table_ID (0); + setEntityType (null); +// U + setReplicationType (null); +} */ + } + + /** Load Constructor */ + public X_AD_ReplicationTable (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ReplicationTable[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_ReplicationStrategy getI_AD_ReplicationStrategy() throws Exception + { + 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 e; + } + return result; + } + + /** Set Replication Strategy. + @param AD_ReplicationStrategy_ID + Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) + { + if (AD_ReplicationStrategy_ID < 1) + throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + } + + /** Get Replication Strategy. + @return Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationStrategy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_ReplicationStrategy_ID())); + } + + /** Set Replication Table. + @param AD_ReplicationTable_ID + Data Replication Strategy Table Info + */ + public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID) + { + if (AD_ReplicationTable_ID < 1) + throw new IllegalArgumentException ("AD_ReplicationTable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReplicationTable_ID, Integer.valueOf(AD_ReplicationTable_ID)); + } + + /** Get Replication Table. + @return Data Replication Strategy Table Info + */ + public int getAD_ReplicationTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } /** ReplicationType AD_Reference_ID=126 */ -public static final int REPLICATIONTYPE_AD_Reference_ID=126; -/** Local = L */ -public static final String REPLICATIONTYPE_Local = "L"; -/** Merge = M */ -public static final String REPLICATIONTYPE_Merge = "M"; -/** Reference = R */ +public static final int REPLICATIONTYPE_AD_Reference_ID=126;/** Local = L */ +public static final String REPLICATIONTYPE_Local = "L";/** Merge = M */ +public static final String REPLICATIONTYPE_Merge = "M";/** Reference = R */ public static final String REPLICATIONTYPE_Reference = "R"; -/** Set Replication Type. -@param ReplicationType Type of Data Replication */ -public void setReplicationType (String ReplicationType) -{ -if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); -if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); - else throw new IllegalArgumentException ("ReplicationType Invalid value - " + ReplicationType + " - Reference_ID=126 - L - M - R"); -if (ReplicationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ReplicationType = ReplicationType.substring(0,0); -} -set_Value ("ReplicationType", ReplicationType); -} -/** Get Replication Type. -@return Type of Data Replication */ -public String getReplicationType() -{ -return (String)get_Value("ReplicationType"); -} -/** Column name ReplicationType */ -public static final String COLUMNNAME_ReplicationType = "ReplicationType"; -} + /** Set Replication Type. + @param ReplicationType + Type of Data Replication + */ + public void setReplicationType (String ReplicationType) + { +if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory");if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); else throw new IllegalArgumentException ("ReplicationType Invalid value - " + ReplicationType + " - Reference_ID=126 - L - M - R"); if (ReplicationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplicationType = ReplicationType.substring(0, 0); + } + set_Value (COLUMNNAME_ReplicationType, ReplicationType); + } + + /** Get Replication Type. + @return Type of Data Replication + */ + public String getReplicationType () + { + return (String)get_Value(COLUMNNAME_ReplicationType); + } +} \ No newline at end of file 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 4cbf77776a..e8f1d72456 100644 --- a/base/src/org/compiere/model/X_AD_Replication_Log.java +++ b/base/src/org/compiere/model/X_AD_Replication_Log.java @@ -1,187 +1,225 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Replication_Log - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Replication_Log extends PO + +/** Generated Model for AD_Replication_Log + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Replication_Log extends PO implements I_AD_Replication_Log, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Replication_Log_ID id -@param trxName transaction -*/ -public X_AD_Replication_Log (Properties ctx, int AD_Replication_Log_ID, String trxName) -{ -super (ctx, AD_Replication_Log_ID, trxName); -/** if (AD_Replication_Log_ID == 0) -{ -setAD_Replication_Log_ID (0); -setAD_Replication_Run_ID (0); -setIsReplicated (false); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Replication_Log (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Replication_Log */ -public static final String Table_Name="AD_Replication_Log"; - -/** AD_Table_ID=604 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Replication_Log[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Replication Table. -@param AD_ReplicationTable_ID Data Replication Strategy Table Info */ -public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID) -{ -if (AD_ReplicationTable_ID <= 0) set_Value ("AD_ReplicationTable_ID", null); - else -set_Value ("AD_ReplicationTable_ID", Integer.valueOf(AD_ReplicationTable_ID)); -} -/** Get Replication Table. -@return Data Replication Strategy Table Info */ -public int getAD_ReplicationTable_ID() -{ -Integer ii = (Integer)get_Value("AD_ReplicationTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReplicationTable_ID */ -public static final String COLUMNNAME_AD_ReplicationTable_ID = "AD_ReplicationTable_ID"; -/** Set Replication Log. -@param AD_Replication_Log_ID Data Replication Log Details */ -public void setAD_Replication_Log_ID (int AD_Replication_Log_ID) -{ -if (AD_Replication_Log_ID < 1) throw new IllegalArgumentException ("AD_Replication_Log_ID is mandatory."); -set_ValueNoCheck ("AD_Replication_Log_ID", Integer.valueOf(AD_Replication_Log_ID)); -} -/** Get Replication Log. -@return Data Replication Log Details */ -public int getAD_Replication_Log_ID() -{ -Integer ii = (Integer)get_Value("AD_Replication_Log_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Replication_Log_ID */ -public static final String COLUMNNAME_AD_Replication_Log_ID = "AD_Replication_Log_ID"; -/** Set Replication Run. -@param AD_Replication_Run_ID Data Replication Run */ -public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) -{ -if (AD_Replication_Run_ID < 1) throw new IllegalArgumentException ("AD_Replication_Run_ID is mandatory."); -set_ValueNoCheck ("AD_Replication_Run_ID", Integer.valueOf(AD_Replication_Run_ID)); -} -/** Get Replication Run. -@return Data Replication Run */ -public int getAD_Replication_Run_ID() -{ -Integer ii = (Integer)get_Value("AD_Replication_Run_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Replication_Run_ID())); -} -/** Column name AD_Replication_Run_ID */ -public static final String COLUMNNAME_AD_Replication_Run_ID = "AD_Replication_Run_ID"; -/** Set Replicated. -@param IsReplicated The data is successfully replicated */ -public void setIsReplicated (boolean IsReplicated) -{ -set_Value ("IsReplicated", Boolean.valueOf(IsReplicated)); -} -/** Get Replicated. -@return The data is successfully replicated */ -public boolean isReplicated() -{ -Object oo = get_Value("IsReplicated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReplicated */ -public static final String COLUMNNAME_IsReplicated = "IsReplicated"; -/** Set Process Message. -@param P_Msg Process Message */ -public void setP_Msg (String P_Msg) -{ -if (P_Msg != null && P_Msg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -P_Msg = P_Msg.substring(0,1999); -} -set_Value ("P_Msg", P_Msg); -} -/** Get Process Message. -@return Process Message */ -public String getP_Msg() -{ -return (String)get_Value("P_Msg"); -} -/** Column name P_Msg */ -public static final String COLUMNNAME_P_Msg = "P_Msg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Replication_Log (Properties ctx, int AD_Replication_Log_ID, String trxName) + { + super (ctx, AD_Replication_Log_ID, trxName); + /** if (AD_Replication_Log_ID == 0) { setAD_Replication_Log_ID (0); + setAD_Replication_Run_ID (0); + setIsReplicated (false); +// N +} */ + } + + /** Load Constructor */ + public X_AD_Replication_Log (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Replication_Log[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_ReplicationTable getI_AD_ReplicationTable() throws Exception + { + 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 e; + } + return result; + } + + /** Set Replication Table. + @param AD_ReplicationTable_ID + Data Replication Strategy Table Info + */ + public void setAD_ReplicationTable_ID (int AD_ReplicationTable_ID) + { + if (AD_ReplicationTable_ID <= 0) set_Value (COLUMNNAME_AD_ReplicationTable_ID, null); + else + set_Value (COLUMNNAME_AD_ReplicationTable_ID, Integer.valueOf(AD_ReplicationTable_ID)); + } + + /** Get Replication Table. + @return Data Replication Strategy Table Info + */ + public int getAD_ReplicationTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Replication Log. + @param AD_Replication_Log_ID + Data Replication Log Details + */ + public void setAD_Replication_Log_ID (int AD_Replication_Log_ID) + { + if (AD_Replication_Log_ID < 1) + throw new IllegalArgumentException ("AD_Replication_Log_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Replication_Log_ID, Integer.valueOf(AD_Replication_Log_ID)); + } + + /** Get Replication Log. + @return Data Replication Log Details + */ + public int getAD_Replication_Log_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Replication_Log_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Replication_Run getI_AD_Replication_Run() throws Exception + { + 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 e; + } + return result; + } + + /** Set Replication Run. + @param AD_Replication_Run_ID + Data Replication Run + */ + public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) + { + if (AD_Replication_Run_ID < 1) + throw new IllegalArgumentException ("AD_Replication_Run_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); + } + + /** Get Replication Run. + @return Data Replication Run + */ + public int getAD_Replication_Run_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Replication_Run_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Replication_Run_ID())); + } + + /** Set Replicated. + @param IsReplicated + The data is successfully replicated + */ + public void setIsReplicated (boolean IsReplicated) + { + set_Value (COLUMNNAME_IsReplicated, Boolean.valueOf(IsReplicated)); + } + + /** Get Replicated. + @return The data is successfully replicated + */ + public boolean isReplicated () + { + Object oo = get_Value(COLUMNNAME_IsReplicated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Message. + @param P_Msg Process Message */ + public void setP_Msg (String P_Msg) + { + if (P_Msg != null && P_Msg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + P_Msg = P_Msg.substring(0, 1999); + } + set_Value (COLUMNNAME_P_Msg, P_Msg); + } + + /** Get Process Message. +@return Process Message */ + public String getP_Msg () + { + return (String)get_Value(COLUMNNAME_P_Msg); + } +} \ No newline at end of file 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 2141ff6b00..5d77ab3abe 100644 --- a/base/src/org/compiere/model/X_AD_Replication_Run.java +++ b/base/src/org/compiere/model/X_AD_Replication_Run.java @@ -1,190 +1,215 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Replication_Run - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Replication_Run extends PO + +/** Generated Model for AD_Replication_Run + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Replication_Run extends PO implements I_AD_Replication_Run, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Replication_Run_ID id -@param trxName transaction -*/ -public X_AD_Replication_Run (Properties ctx, int AD_Replication_Run_ID, String trxName) -{ -super (ctx, AD_Replication_Run_ID, trxName); -/** if (AD_Replication_Run_ID == 0) -{ -setAD_Replication_ID (0); -setAD_Replication_Run_ID (0); -setIsReplicated (false); // N -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Replication_Run (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Replication_Run */ -public static final String Table_Name="AD_Replication_Run"; - -/** AD_Table_ID=603 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Replication_Run[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Replication. -@param AD_Replication_ID Data Replication Target */ -public void setAD_Replication_ID (int AD_Replication_ID) -{ -if (AD_Replication_ID < 1) throw new IllegalArgumentException ("AD_Replication_ID is mandatory."); -set_ValueNoCheck ("AD_Replication_ID", Integer.valueOf(AD_Replication_ID)); -} -/** Get Replication. -@return Data Replication Target */ -public int getAD_Replication_ID() -{ -Integer ii = (Integer)get_Value("AD_Replication_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Replication_ID */ -public static final String COLUMNNAME_AD_Replication_ID = "AD_Replication_ID"; -/** Set Replication Run. -@param AD_Replication_Run_ID Data Replication Run */ -public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) -{ -if (AD_Replication_Run_ID < 1) throw new IllegalArgumentException ("AD_Replication_Run_ID is mandatory."); -set_ValueNoCheck ("AD_Replication_Run_ID", Integer.valueOf(AD_Replication_Run_ID)); -} -/** Get Replication Run. -@return Data Replication Run */ -public int getAD_Replication_Run_ID() -{ -Integer ii = (Integer)get_Value("AD_Replication_Run_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Replication_Run_ID */ -public static final String COLUMNNAME_AD_Replication_Run_ID = "AD_Replication_Run_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Replicated. -@param IsReplicated The data is successfully replicated */ -public void setIsReplicated (boolean IsReplicated) -{ -set_ValueNoCheck ("IsReplicated", Boolean.valueOf(IsReplicated)); -} -/** Get Replicated. -@return The data is successfully replicated */ -public boolean isReplicated() -{ -Object oo = get_Value("IsReplicated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReplicated */ -public static final String COLUMNNAME_IsReplicated = "IsReplicated"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Replication_Run (Properties ctx, int AD_Replication_Run_ID, String trxName) + { + super (ctx, AD_Replication_Run_ID, trxName); + /** if (AD_Replication_Run_ID == 0) { setAD_Replication_ID (0); + setAD_Replication_Run_ID (0); + setIsReplicated (false); +// N + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Replication_Run (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Replication_Run[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Replication getI_AD_Replication() throws Exception + { + 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 e; + } + return result; + } + + /** Set Replication. + @param AD_Replication_ID + Data Replication Target + */ + public void setAD_Replication_ID (int AD_Replication_ID) + { + if (AD_Replication_ID < 1) + throw new IllegalArgumentException ("AD_Replication_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Replication_ID, Integer.valueOf(AD_Replication_ID)); + } + + /** Get Replication. + @return Data Replication Target + */ + public int getAD_Replication_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Replication_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Replication Run. + @param AD_Replication_Run_ID + Data Replication Run + */ + public void setAD_Replication_Run_ID (int AD_Replication_Run_ID) + { + if (AD_Replication_Run_ID < 1) + throw new IllegalArgumentException ("AD_Replication_Run_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Replication_Run_ID, Integer.valueOf(AD_Replication_Run_ID)); + } + + /** Get Replication Run. + @return Data Replication Run + */ + public int getAD_Replication_Run_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Replication_Run_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Replicated. + @param IsReplicated + The data is successfully replicated + */ + public void setIsReplicated (boolean IsReplicated) + { + set_ValueNoCheck (COLUMNNAME_IsReplicated, Boolean.valueOf(IsReplicated)); + } + + /** Get Replicated. + @return The data is successfully replicated + */ + public boolean isReplicated () + { + Object oo = get_Value(COLUMNNAME_IsReplicated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ReportView.java b/base/src/org/compiere/model/X_AD_ReportView.java index 08a06bb515..b55f8ee057 100644 --- a/base/src/org/compiere/model/X_AD_ReportView.java +++ b/base/src/org/compiere/model/X_AD_ReportView.java @@ -1,232 +1,259 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ReportView - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ReportView extends PO + +/** Generated Model for AD_ReportView + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ReportView extends PO implements I_AD_ReportView, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ReportView_ID id -@param trxName transaction -*/ -public X_AD_ReportView (Properties ctx, int AD_ReportView_ID, String trxName) -{ -super (ctx, AD_ReportView_ID, trxName); -/** if (AD_ReportView_ID == 0) -{ -setAD_ReportView_ID (0); -setAD_Table_ID (0); -setEntityType (null); // U -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ReportView (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ReportView */ -public static final String Table_Name="AD_ReportView"; - -/** AD_Table_ID=361 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ReportView[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Report View. -@param AD_ReportView_ID View used to generate this report */ -public void setAD_ReportView_ID (int AD_ReportView_ID) -{ -if (AD_ReportView_ID < 1) throw new IllegalArgumentException ("AD_ReportView_ID is mandatory."); -set_ValueNoCheck ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); -} -/** Get Report View. -@return View used to generate this report */ -public int getAD_ReportView_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReportView_ID */ -public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ReportView (Properties ctx, int AD_ReportView_ID, String trxName) + { + super (ctx, AD_ReportView_ID, trxName); + /** if (AD_ReportView_ID == 0) { setAD_ReportView_ID (0); + setAD_Table_ID (0); + setEntityType (null); +// U + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_ReportView (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ReportView[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Report View. + @param AD_ReportView_ID + View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID < 1) + throw new IllegalArgumentException ("AD_ReportView_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sql ORDER BY. -@param OrderByClause Fully qualified ORDER BY clause */ -public void setOrderByClause (String OrderByClause) -{ -if (OrderByClause != null && OrderByClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OrderByClause = OrderByClause.substring(0,1999); -} -set_Value ("OrderByClause", OrderByClause); -} -/** Get Sql ORDER BY. -@return Fully qualified ORDER BY clause */ -public String getOrderByClause() -{ -return (String)get_Value("OrderByClause"); -} -/** Column name OrderByClause */ -public static final String COLUMNNAME_OrderByClause = "OrderByClause"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sql ORDER BY. + @param OrderByClause + Fully qualified ORDER BY clause + */ + public void setOrderByClause (String OrderByClause) + { + if (OrderByClause != null && OrderByClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OrderByClause = OrderByClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OrderByClause, OrderByClause); + } + + /** Get Sql ORDER BY. + @return Fully qualified ORDER BY clause + */ + public String getOrderByClause () + { + return (String)get_Value(COLUMNNAME_OrderByClause); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file 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 4e927c4b84..3fe1d31121 100644 --- a/base/src/org/compiere/model/X_AD_ReportView_Col.java +++ b/base/src/org/compiere/model/X_AD_ReportView_Col.java @@ -1,189 +1,227 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_ReportView_Col - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_ReportView_Col extends PO + +/** Generated Model for AD_ReportView_Col + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_ReportView_Col extends PO implements I_AD_ReportView_Col, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_ReportView_Col_ID id -@param trxName transaction -*/ -public X_AD_ReportView_Col (Properties ctx, int AD_ReportView_Col_ID, String trxName) -{ -super (ctx, AD_ReportView_Col_ID, trxName); -/** if (AD_ReportView_Col_ID == 0) -{ -setAD_ReportView_Col_ID (0); -setAD_ReportView_ID (0); -setFunctionColumn (null); -setIsGroupFunction (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_ReportView_Col (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_ReportView_Col */ -public static final String Table_Name="AD_ReportView_Col"; - -/** AD_Table_ID=428 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_ReportView_Col[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Report view Column. -@param AD_ReportView_Col_ID Report view Column */ -public void setAD_ReportView_Col_ID (int AD_ReportView_Col_ID) -{ -if (AD_ReportView_Col_ID < 1) throw new IllegalArgumentException ("AD_ReportView_Col_ID is mandatory."); -set_ValueNoCheck ("AD_ReportView_Col_ID", Integer.valueOf(AD_ReportView_Col_ID)); -} -/** Get Report view Column. -@return Report view Column */ -public int getAD_ReportView_Col_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_Col_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ReportView_Col_ID */ -public static final String COLUMNNAME_AD_ReportView_Col_ID = "AD_ReportView_Col_ID"; -/** Set Report View. -@param AD_ReportView_ID View used to generate this report */ -public void setAD_ReportView_ID (int AD_ReportView_ID) -{ -if (AD_ReportView_ID < 1) throw new IllegalArgumentException ("AD_ReportView_ID is mandatory."); -set_ValueNoCheck ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); -} -/** Get Report View. -@return View used to generate this report */ -public int getAD_ReportView_ID() -{ -Integer ii = (Integer)get_Value("AD_ReportView_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_ReportView_ID())); -} -/** Column name AD_ReportView_ID */ -public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; -/** Set Function Column. -@param FunctionColumn Overwrite Column with Function */ -public void setFunctionColumn (String FunctionColumn) -{ -if (FunctionColumn == null) throw new IllegalArgumentException ("FunctionColumn is mandatory."); -if (FunctionColumn.length() > 60) -{ -log.warning("Length > 60 - truncated"); -FunctionColumn = FunctionColumn.substring(0,59); -} -set_Value ("FunctionColumn", FunctionColumn); -} -/** Get Function Column. -@return Overwrite Column with Function */ -public String getFunctionColumn() -{ -return (String)get_Value("FunctionColumn"); -} -/** Column name FunctionColumn */ -public static final String COLUMNNAME_FunctionColumn = "FunctionColumn"; -/** Set SQL Group Function. -@param IsGroupFunction This function will generate a Group By Clause */ -public void setIsGroupFunction (boolean IsGroupFunction) -{ -set_Value ("IsGroupFunction", Boolean.valueOf(IsGroupFunction)); -} -/** Get SQL Group Function. -@return This function will generate a Group By Clause */ -public boolean isGroupFunction() -{ -Object oo = get_Value("IsGroupFunction"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsGroupFunction */ -public static final String COLUMNNAME_IsGroupFunction = "IsGroupFunction"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ReportView_Col (Properties ctx, int AD_ReportView_Col_ID, String trxName) + { + super (ctx, AD_ReportView_Col_ID, trxName); + /** if (AD_ReportView_Col_ID == 0) { setAD_ReportView_Col_ID (0); + setAD_ReportView_ID (0); + setFunctionColumn (null); + setIsGroupFunction (false); +} */ + } + + /** Load Constructor */ + public X_AD_ReportView_Col (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_ReportView_Col[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report view Column. + @param AD_ReportView_Col_ID Report view Column */ + public void setAD_ReportView_Col_ID (int AD_ReportView_Col_ID) + { + if (AD_ReportView_Col_ID < 1) + throw new IllegalArgumentException ("AD_ReportView_Col_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReportView_Col_ID, Integer.valueOf(AD_ReportView_Col_ID)); + } + + /** Get Report view Column. +@return Report view Column */ + public int getAD_ReportView_Col_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_Col_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_ReportView getI_AD_ReportView() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report View. + @param AD_ReportView_ID + View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID < 1) + throw new IllegalArgumentException ("AD_ReportView_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_ReportView_ID())); + } + + /** Set Function Column. + @param FunctionColumn + Overwrite Column with Function + */ + public void setFunctionColumn (String FunctionColumn) + { + if (FunctionColumn == null) + throw new IllegalArgumentException ("FunctionColumn is mandatory."); + if (FunctionColumn.length() > 60) + { + log.warning("Length > 60 - truncated"); + FunctionColumn = FunctionColumn.substring(0, 59); + } + set_Value (COLUMNNAME_FunctionColumn, FunctionColumn); + } + + /** Get Function Column. + @return Overwrite Column with Function + */ + public String getFunctionColumn () + { + return (String)get_Value(COLUMNNAME_FunctionColumn); + } + + /** Set SQL Group Function. + @param IsGroupFunction + This function will generate a Group By Clause + */ + public void setIsGroupFunction (boolean IsGroupFunction) + { + set_Value (COLUMNNAME_IsGroupFunction, Boolean.valueOf(IsGroupFunction)); + } + + /** Get SQL Group Function. + @return This function will generate a Group By Clause + */ + public boolean isGroupFunction () + { + Object oo = get_Value(COLUMNNAME_IsGroupFunction); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Role.java b/base/src/org/compiere/model/X_AD_Role.java index 39e105f6d9..63a7bcf0da 100644 --- a/base/src/org/compiere/model/X_AD_Role.java +++ b/base/src/org/compiere/model/X_AD_Role.java @@ -1,833 +1,927 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Role - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Role extends PO + +/** Generated Model for AD_Role + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Role extends PO implements I_AD_Role, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Role_ID id -@param trxName transaction -*/ -public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName) -{ -super (ctx, AD_Role_ID, trxName); -/** if (AD_Role_ID == 0) -{ -setAD_Role_ID (0); -setConfirmQueryRecords (0); // 0 -setIsAccessAllOrgs (false); // N -setIsCanApproveOwnDoc (false); -setIsCanExport (true); // Y -setIsCanReport (true); // Y -setIsChangeLog (false); // N -setIsManual (false); -setIsPersonalAccess (false); // N -setIsPersonalLock (false); // N -setIsShowAcct (false); // N -setIsUseUserOrgAccess (false); // N -setMaxQueryRecords (0); // 0 -setName (null); -setOverwritePriceLimit (false); // N -setPreferenceType (null); // O -setUserLevel (null); // O -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Role (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Role */ -public static final String Table_Name="AD_Role"; - -/** AD_Table_ID=156 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Role[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName) + { + super (ctx, AD_Role_ID, trxName); + /** if (AD_Role_ID == 0) { setAD_Role_ID (0); + setConfirmQueryRecords (0); +// 0 + setIsAccessAllOrgs (false); +// N + setIsCanApproveOwnDoc (false); + setIsCanExport (true); +// Y + setIsCanReport (true); +// Y + setIsChangeLog (false); +// N + setIsManual (false); + setIsPersonalAccess (false); +// N + setIsPersonalLock (false); +// N + setIsShowAcct (false); +// N + setIsUseUserOrgAccess (false); +// N + setMaxQueryRecords (0); +// 0 + setName (null); + setOverwritePriceLimit (false); +// N + setPreferenceType (null); +// O + setUserLevel (null); +// O +} */ + } + + /** Load Constructor */ + public X_AD_Role (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Role[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Menu_ID AD_Reference_ID=184 */ public static final int AD_TREE_MENU_ID_AD_Reference_ID=184; -/** Set Menu Tree. -@param AD_Tree_Menu_ID Tree of the menu */ -public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID) -{ -if (AD_Tree_Menu_ID <= 0) set_Value ("AD_Tree_Menu_ID", null); - else -set_Value ("AD_Tree_Menu_ID", Integer.valueOf(AD_Tree_Menu_ID)); -} -/** Get Menu Tree. -@return Tree of the menu */ -public int getAD_Tree_Menu_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Menu_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Menu_ID */ -public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; + /** Set Menu Tree. + @param AD_Tree_Menu_ID + Tree of the menu + */ + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID) + { + if (AD_Tree_Menu_ID <= 0) set_Value (COLUMNNAME_AD_Tree_Menu_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID)); + } + + /** Get Menu Tree. + @return Tree of the menu + */ + public int getAD_Tree_Menu_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Menu_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Org_ID AD_Reference_ID=184 */ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184; -/** Set Organization Tree. -@param AD_Tree_Org_ID Tree to determine organizational hierarchy */ -public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) -{ -if (AD_Tree_Org_ID <= 0) set_Value ("AD_Tree_Org_ID", null); - else -set_Value ("AD_Tree_Org_ID", Integer.valueOf(AD_Tree_Org_ID)); -} -/** Get Organization Tree. -@return Tree to determine organizational hierarchy */ -public int getAD_Tree_Org_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Org_ID */ -public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; -/** Set Allow Info Account. -@param Allow_Info_Account Allow Info Account */ -public void setAllow_Info_Account (boolean Allow_Info_Account) -{ -set_Value ("Allow_Info_Account", Boolean.valueOf(Allow_Info_Account)); -} -/** Get Allow Info Account. -@return Allow Info Account */ -public boolean isAllow_Info_Account() -{ -Object oo = get_Value("Allow_Info_Account"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Account */ -public static final String COLUMNNAME_Allow_Info_Account = "Allow_Info_Account"; -/** Set Allow Info Asset. -@param Allow_Info_Asset Allow Info Asset */ -public void setAllow_Info_Asset (boolean Allow_Info_Asset) -{ -set_Value ("Allow_Info_Asset", Boolean.valueOf(Allow_Info_Asset)); -} -/** Get Allow Info Asset. -@return Allow Info Asset */ -public boolean isAllow_Info_Asset() -{ -Object oo = get_Value("Allow_Info_Asset"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Asset */ -public static final String COLUMNNAME_Allow_Info_Asset = "Allow_Info_Asset"; -/** Set Allow Info BPartner. -@param Allow_Info_BPartner Allow Info BPartner */ -public void setAllow_Info_BPartner (boolean Allow_Info_BPartner) -{ -set_Value ("Allow_Info_BPartner", Boolean.valueOf(Allow_Info_BPartner)); -} -/** Get Allow Info BPartner. -@return Allow Info BPartner */ -public boolean isAllow_Info_BPartner() -{ -Object oo = get_Value("Allow_Info_BPartner"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_BPartner */ -public static final String COLUMNNAME_Allow_Info_BPartner = "Allow_Info_BPartner"; -/** Set Allow Info CashJournal. -@param Allow_Info_CashJournal Allow Info CashJournal */ -public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal) -{ -set_Value ("Allow_Info_CashJournal", Boolean.valueOf(Allow_Info_CashJournal)); -} -/** Get Allow Info CashJournal. -@return Allow Info CashJournal */ -public boolean isAllow_Info_CashJournal() -{ -Object oo = get_Value("Allow_Info_CashJournal"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_CashJournal */ -public static final String COLUMNNAME_Allow_Info_CashJournal = "Allow_Info_CashJournal"; -/** Set Allow Info InOut. -@param Allow_Info_InOut Allow Info InOut */ -public void setAllow_Info_InOut (boolean Allow_Info_InOut) -{ -set_Value ("Allow_Info_InOut", Boolean.valueOf(Allow_Info_InOut)); -} -/** Get Allow Info InOut. -@return Allow Info InOut */ -public boolean isAllow_Info_InOut() -{ -Object oo = get_Value("Allow_Info_InOut"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_InOut */ -public static final String COLUMNNAME_Allow_Info_InOut = "Allow_Info_InOut"; -/** Set Allow Info Invoice. -@param Allow_Info_Invoice Allow Info Invoice */ -public void setAllow_Info_Invoice (boolean Allow_Info_Invoice) -{ -set_Value ("Allow_Info_Invoice", Boolean.valueOf(Allow_Info_Invoice)); -} -/** Get Allow Info Invoice. -@return Allow Info Invoice */ -public boolean isAllow_Info_Invoice() -{ -Object oo = get_Value("Allow_Info_Invoice"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Invoice */ -public static final String COLUMNNAME_Allow_Info_Invoice = "Allow_Info_Invoice"; -/** Set Allow Info Order. -@param Allow_Info_Order Allow Info Order */ -public void setAllow_Info_Order (boolean Allow_Info_Order) -{ -set_Value ("Allow_Info_Order", Boolean.valueOf(Allow_Info_Order)); -} -/** Get Allow Info Order. -@return Allow Info Order */ -public boolean isAllow_Info_Order() -{ -Object oo = get_Value("Allow_Info_Order"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Order */ -public static final String COLUMNNAME_Allow_Info_Order = "Allow_Info_Order"; -/** Set Allow Info Payment. -@param Allow_Info_Payment Allow Info Payment */ -public void setAllow_Info_Payment (boolean Allow_Info_Payment) -{ -set_Value ("Allow_Info_Payment", Boolean.valueOf(Allow_Info_Payment)); -} -/** Get Allow Info Payment. -@return Allow Info Payment */ -public boolean isAllow_Info_Payment() -{ -Object oo = get_Value("Allow_Info_Payment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Payment */ -public static final String COLUMNNAME_Allow_Info_Payment = "Allow_Info_Payment"; -/** Set Allow Info Product. -@param Allow_Info_Product Allow Info Product */ -public void setAllow_Info_Product (boolean Allow_Info_Product) -{ -set_Value ("Allow_Info_Product", Boolean.valueOf(Allow_Info_Product)); -} -/** Get Allow Info Product. -@return Allow Info Product */ -public boolean isAllow_Info_Product() -{ -Object oo = get_Value("Allow_Info_Product"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Product */ -public static final String COLUMNNAME_Allow_Info_Product = "Allow_Info_Product"; -/** Set Allow Info Resource. -@param Allow_Info_Resource Allow Info Resource */ -public void setAllow_Info_Resource (boolean Allow_Info_Resource) -{ -set_Value ("Allow_Info_Resource", Boolean.valueOf(Allow_Info_Resource)); -} -/** Get Allow Info Resource. -@return Allow Info Resource */ -public boolean isAllow_Info_Resource() -{ -Object oo = get_Value("Allow_Info_Resource"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Resource */ -public static final String COLUMNNAME_Allow_Info_Resource = "Allow_Info_Resource"; -/** Set Allow Info Schedule. -@param Allow_Info_Schedule Allow Info Schedule */ -public void setAllow_Info_Schedule (boolean Allow_Info_Schedule) -{ -set_Value ("Allow_Info_Schedule", Boolean.valueOf(Allow_Info_Schedule)); -} -/** Get Allow Info Schedule. -@return Allow Info Schedule */ -public boolean isAllow_Info_Schedule() -{ -Object oo = get_Value("Allow_Info_Schedule"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Allow_Info_Schedule */ -public static final String COLUMNNAME_Allow_Info_Schedule = "Allow_Info_Schedule"; -/** Set Approval Amount. -@param AmtApproval The approval amount limit for this role */ -public void setAmtApproval (BigDecimal AmtApproval) -{ -set_Value ("AmtApproval", AmtApproval); -} -/** Get Approval Amount. -@return The approval amount limit for this role */ -public BigDecimal getAmtApproval() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtApproval"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtApproval */ -public static final String COLUMNNAME_AmtApproval = "AmtApproval"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Confirm Query Records. -@param ConfirmQueryRecords Require Confirmation if more records will be returned by the query (If not defined 500) */ -public void setConfirmQueryRecords (int ConfirmQueryRecords) -{ -set_Value ("ConfirmQueryRecords", Integer.valueOf(ConfirmQueryRecords)); -} -/** Get Confirm Query Records. -@return Require Confirmation if more records will be returned by the query (If not defined 500) */ -public int getConfirmQueryRecords() -{ -Integer ii = (Integer)get_Value("ConfirmQueryRecords"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ConfirmQueryRecords */ -public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords"; + /** Set Organization Tree. + @param AD_Tree_Org_ID + Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) + { + if (AD_Tree_Org_ID <= 0) set_Value (COLUMNNAME_AD_Tree_Org_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); + } + + /** Get Organization Tree. + @return Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Allow Info Account. + @param Allow_Info_Account Allow Info Account */ + public void setAllow_Info_Account (boolean Allow_Info_Account) + { + set_Value (COLUMNNAME_Allow_Info_Account, Boolean.valueOf(Allow_Info_Account)); + } + + /** Get Allow Info Account. +@return Allow Info Account */ + public boolean isAllow_Info_Account () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Account); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Asset. + @param Allow_Info_Asset Allow Info Asset */ + public void setAllow_Info_Asset (boolean Allow_Info_Asset) + { + set_Value (COLUMNNAME_Allow_Info_Asset, Boolean.valueOf(Allow_Info_Asset)); + } + + /** Get Allow Info Asset. +@return Allow Info Asset */ + public boolean isAllow_Info_Asset () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Asset); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info BPartner. + @param Allow_Info_BPartner Allow Info BPartner */ + public void setAllow_Info_BPartner (boolean Allow_Info_BPartner) + { + set_Value (COLUMNNAME_Allow_Info_BPartner, Boolean.valueOf(Allow_Info_BPartner)); + } + + /** Get Allow Info BPartner. +@return Allow Info BPartner */ + public boolean isAllow_Info_BPartner () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_BPartner); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info CashJournal. + @param Allow_Info_CashJournal Allow Info CashJournal */ + public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal) + { + set_Value (COLUMNNAME_Allow_Info_CashJournal, Boolean.valueOf(Allow_Info_CashJournal)); + } + + /** Get Allow Info CashJournal. +@return Allow Info CashJournal */ + public boolean isAllow_Info_CashJournal () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_CashJournal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info InOut. + @param Allow_Info_InOut Allow Info InOut */ + public void setAllow_Info_InOut (boolean Allow_Info_InOut) + { + set_Value (COLUMNNAME_Allow_Info_InOut, Boolean.valueOf(Allow_Info_InOut)); + } + + /** Get Allow Info InOut. +@return Allow Info InOut */ + public boolean isAllow_Info_InOut () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_InOut); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Invoice. + @param Allow_Info_Invoice Allow Info Invoice */ + public void setAllow_Info_Invoice (boolean Allow_Info_Invoice) + { + set_Value (COLUMNNAME_Allow_Info_Invoice, Boolean.valueOf(Allow_Info_Invoice)); + } + + /** Get Allow Info Invoice. +@return Allow Info Invoice */ + public boolean isAllow_Info_Invoice () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Invoice); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Order. + @param Allow_Info_Order Allow Info Order */ + public void setAllow_Info_Order (boolean Allow_Info_Order) + { + set_Value (COLUMNNAME_Allow_Info_Order, Boolean.valueOf(Allow_Info_Order)); + } + + /** Get Allow Info Order. +@return Allow Info Order */ + public boolean isAllow_Info_Order () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Order); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Payment. + @param Allow_Info_Payment Allow Info Payment */ + public void setAllow_Info_Payment (boolean Allow_Info_Payment) + { + set_Value (COLUMNNAME_Allow_Info_Payment, Boolean.valueOf(Allow_Info_Payment)); + } + + /** Get Allow Info Payment. +@return Allow Info Payment */ + public boolean isAllow_Info_Payment () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Payment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Product. + @param Allow_Info_Product Allow Info Product */ + public void setAllow_Info_Product (boolean Allow_Info_Product) + { + set_Value (COLUMNNAME_Allow_Info_Product, Boolean.valueOf(Allow_Info_Product)); + } + + /** Get Allow Info Product. +@return Allow Info Product */ + public boolean isAllow_Info_Product () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Product); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Resource. + @param Allow_Info_Resource Allow Info Resource */ + public void setAllow_Info_Resource (boolean Allow_Info_Resource) + { + set_Value (COLUMNNAME_Allow_Info_Resource, Boolean.valueOf(Allow_Info_Resource)); + } + + /** Get Allow Info Resource. +@return Allow Info Resource */ + public boolean isAllow_Info_Resource () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Resource); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Schedule. + @param Allow_Info_Schedule Allow Info Schedule */ + public void setAllow_Info_Schedule (boolean Allow_Info_Schedule) + { + set_Value (COLUMNNAME_Allow_Info_Schedule, Boolean.valueOf(Allow_Info_Schedule)); + } + + /** Get Allow Info Schedule. +@return Allow Info Schedule */ + public boolean isAllow_Info_Schedule () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Schedule); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Approval Amount. + @param AmtApproval + The approval amount limit for this role + */ + public void setAmtApproval (BigDecimal AmtApproval) + { + set_Value (COLUMNNAME_AmtApproval, AmtApproval); + } + + /** Get Approval Amount. + @return The approval amount limit for this role + */ + public BigDecimal getAmtApproval () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtApproval); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Confirm Query Records. + @param ConfirmQueryRecords + Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public void setConfirmQueryRecords (int ConfirmQueryRecords) + { + set_Value (COLUMNNAME_ConfirmQueryRecords, Integer.valueOf(ConfirmQueryRecords)); + } + + /** Get Confirm Query Records. + @return Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public int getConfirmQueryRecords () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ConfirmQueryRecords); + if (ii == null) + return 0; + return ii.intValue(); + } /** ConnectionProfile AD_Reference_ID=364 */ -public static final int CONNECTIONPROFILE_AD_Reference_ID=364; -/** LAN = L */ -public static final String CONNECTIONPROFILE_LAN = "L"; -/** Terminal Server = T */ -public static final String CONNECTIONPROFILE_TerminalServer = "T"; -/** VPN = V */ -public static final String CONNECTIONPROFILE_VPN = "V"; -/** WAN = W */ +public static final int CONNECTIONPROFILE_AD_Reference_ID=364;/** LAN = L */ +public static final String CONNECTIONPROFILE_LAN = "L";/** Terminal Server = T */ +public static final String CONNECTIONPROFILE_TerminalServer = "T";/** VPN = V */ +public static final String CONNECTIONPROFILE_VPN = "V";/** WAN = W */ public static final String CONNECTIONPROFILE_WAN = "W"; -/** Set Connection Profile. -@param ConnectionProfile How a Java Client connects to the server(s) */ -public void setConnectionProfile (String ConnectionProfile) -{ -if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); - else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); -if (ConnectionProfile != null && ConnectionProfile.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConnectionProfile = ConnectionProfile.substring(0,0); -} -set_Value ("ConnectionProfile", ConnectionProfile); -} -/** Get Connection Profile. -@return How a Java Client connects to the server(s) */ -public String getConnectionProfile() -{ -return (String)get_Value("ConnectionProfile"); -} -/** Column name ConnectionProfile */ -public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Access all Orgs. -@param IsAccessAllOrgs Access all Organizations (no org access control) of the client */ -public void setIsAccessAllOrgs (boolean IsAccessAllOrgs) -{ -set_Value ("IsAccessAllOrgs", Boolean.valueOf(IsAccessAllOrgs)); -} -/** Get Access all Orgs. -@return Access all Organizations (no org access control) of the client */ -public boolean isAccessAllOrgs() -{ -Object oo = get_Value("IsAccessAllOrgs"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAccessAllOrgs */ -public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs"; -/** Set Approve own Documents. -@param IsCanApproveOwnDoc Users with this role can approve their own documents */ -public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc) -{ -set_Value ("IsCanApproveOwnDoc", Boolean.valueOf(IsCanApproveOwnDoc)); -} -/** Get Approve own Documents. -@return Users with this role can approve their own documents */ -public boolean isCanApproveOwnDoc() -{ -Object oo = get_Value("IsCanApproveOwnDoc"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCanApproveOwnDoc */ -public static final String COLUMNNAME_IsCanApproveOwnDoc = "IsCanApproveOwnDoc"; -/** Set Can Export. -@param IsCanExport Users with this role can export data */ -public void setIsCanExport (boolean IsCanExport) -{ -set_Value ("IsCanExport", Boolean.valueOf(IsCanExport)); -} -/** Get Can Export. -@return Users with this role can export data */ -public boolean isCanExport() -{ -Object oo = get_Value("IsCanExport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCanExport */ -public static final String COLUMNNAME_IsCanExport = "IsCanExport"; -/** Set Can Report. -@param IsCanReport Users with this role can create reports */ -public void setIsCanReport (boolean IsCanReport) -{ -set_Value ("IsCanReport", Boolean.valueOf(IsCanReport)); -} -/** Get Can Report. -@return Users with this role can create reports */ -public boolean isCanReport() -{ -Object oo = get_Value("IsCanReport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCanReport */ -public static final String COLUMNNAME_IsCanReport = "IsCanReport"; -/** Set Maintain Change Log. -@param IsChangeLog Maintain a log of changes */ -public void setIsChangeLog (boolean IsChangeLog) -{ -set_Value ("IsChangeLog", Boolean.valueOf(IsChangeLog)); -} -/** Get Maintain Change Log. -@return Maintain a log of changes */ -public boolean isChangeLog() -{ -Object oo = get_Value("IsChangeLog"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsChangeLog */ -public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Personal Access. -@param IsPersonalAccess Allow access to all personal records */ -public void setIsPersonalAccess (boolean IsPersonalAccess) -{ -set_Value ("IsPersonalAccess", Boolean.valueOf(IsPersonalAccess)); -} -/** Get Personal Access. -@return Allow access to all personal records */ -public boolean isPersonalAccess() -{ -Object oo = get_Value("IsPersonalAccess"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPersonalAccess */ -public static final String COLUMNNAME_IsPersonalAccess = "IsPersonalAccess"; -/** Set Personal Lock. -@param IsPersonalLock Allow users with role to lock access to personal records */ -public void setIsPersonalLock (boolean IsPersonalLock) -{ -set_Value ("IsPersonalLock", Boolean.valueOf(IsPersonalLock)); -} -/** Get Personal Lock. -@return Allow users with role to lock access to personal records */ -public boolean isPersonalLock() -{ -Object oo = get_Value("IsPersonalLock"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPersonalLock */ -public static final String COLUMNNAME_IsPersonalLock = "IsPersonalLock"; -/** Set Show Accounting. -@param IsShowAcct Users with this role can see accounting information */ -public void setIsShowAcct (boolean IsShowAcct) -{ -set_Value ("IsShowAcct", Boolean.valueOf(IsShowAcct)); -} -/** Get Show Accounting. -@return Users with this role can see accounting information */ -public boolean isShowAcct() -{ -Object oo = get_Value("IsShowAcct"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsShowAcct */ -public static final String COLUMNNAME_IsShowAcct = "IsShowAcct"; -/** Set Use User Org Access. -@param IsUseUserOrgAccess Use Org Access defined by user instead of Role Org Access */ -public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess) -{ -set_Value ("IsUseUserOrgAccess", Boolean.valueOf(IsUseUserOrgAccess)); -} -/** Get Use User Org Access. -@return Use Org Access defined by user instead of Role Org Access */ -public boolean isUseUserOrgAccess() -{ -Object oo = get_Value("IsUseUserOrgAccess"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUseUserOrgAccess */ -public static final String COLUMNNAME_IsUseUserOrgAccess = "IsUseUserOrgAccess"; -/** Set Max Query Records. -@param MaxQueryRecords If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records */ -public void setMaxQueryRecords (int MaxQueryRecords) -{ -set_Value ("MaxQueryRecords", Integer.valueOf(MaxQueryRecords)); -} -/** Get Max Query Records. -@return If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records */ -public int getMaxQueryRecords() -{ -Integer ii = (Integer)get_Value("MaxQueryRecords"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MaxQueryRecords */ -public static final String COLUMNNAME_MaxQueryRecords = "MaxQueryRecords"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Overwrite Price Limit. -@param OverwritePriceLimit Overwrite Price Limit if the Price List enforces the Price Limit */ -public void setOverwritePriceLimit (boolean OverwritePriceLimit) -{ -set_Value ("OverwritePriceLimit", Boolean.valueOf(OverwritePriceLimit)); -} -/** Get Overwrite Price Limit. -@return Overwrite Price Limit if the Price List enforces the Price Limit */ -public boolean isOverwritePriceLimit() -{ -Object oo = get_Value("OverwritePriceLimit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwritePriceLimit */ -public static final String COLUMNNAME_OverwritePriceLimit = "OverwritePriceLimit"; + /** Set Connection Profile. + @param ConnectionProfile + How a Java Client connects to the server(s) + */ + public void setConnectionProfile (String ConnectionProfile) + { +if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); if (ConnectionProfile != null && ConnectionProfile.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConnectionProfile = ConnectionProfile.substring(0, 0); + } + set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile); + } + + /** Get Connection Profile. + @return How a Java Client connects to the server(s) + */ + public String getConnectionProfile () + { + return (String)get_Value(COLUMNNAME_ConnectionProfile); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Access all Orgs. + @param IsAccessAllOrgs + Access all Organizations (no org access control) of the client + */ + public void setIsAccessAllOrgs (boolean IsAccessAllOrgs) + { + set_Value (COLUMNNAME_IsAccessAllOrgs, Boolean.valueOf(IsAccessAllOrgs)); + } + + /** Get Access all Orgs. + @return Access all Organizations (no org access control) of the client + */ + public boolean isAccessAllOrgs () + { + Object oo = get_Value(COLUMNNAME_IsAccessAllOrgs); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Approve own Documents. + @param IsCanApproveOwnDoc + Users with this role can approve their own documents + */ + public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc) + { + set_Value (COLUMNNAME_IsCanApproveOwnDoc, Boolean.valueOf(IsCanApproveOwnDoc)); + } + + /** Get Approve own Documents. + @return Users with this role can approve their own documents + */ + public boolean isCanApproveOwnDoc () + { + Object oo = get_Value(COLUMNNAME_IsCanApproveOwnDoc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Can Export. + @param IsCanExport + Users with this role can export data + */ + public void setIsCanExport (boolean IsCanExport) + { + set_Value (COLUMNNAME_IsCanExport, Boolean.valueOf(IsCanExport)); + } + + /** Get Can Export. + @return Users with this role can export data + */ + public boolean isCanExport () + { + Object oo = get_Value(COLUMNNAME_IsCanExport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Can Report. + @param IsCanReport + Users with this role can create reports + */ + public void setIsCanReport (boolean IsCanReport) + { + set_Value (COLUMNNAME_IsCanReport, Boolean.valueOf(IsCanReport)); + } + + /** Get Can Report. + @return Users with this role can create reports + */ + public boolean isCanReport () + { + Object oo = get_Value(COLUMNNAME_IsCanReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Maintain Change Log. + @param IsChangeLog + Maintain a log of changes + */ + public void setIsChangeLog (boolean IsChangeLog) + { + set_Value (COLUMNNAME_IsChangeLog, Boolean.valueOf(IsChangeLog)); + } + + /** Get Maintain Change Log. + @return Maintain a log of changes + */ + public boolean isChangeLog () + { + Object oo = get_Value(COLUMNNAME_IsChangeLog); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Personal Access. + @param IsPersonalAccess + Allow access to all personal records + */ + public void setIsPersonalAccess (boolean IsPersonalAccess) + { + set_Value (COLUMNNAME_IsPersonalAccess, Boolean.valueOf(IsPersonalAccess)); + } + + /** Get Personal Access. + @return Allow access to all personal records + */ + public boolean isPersonalAccess () + { + Object oo = get_Value(COLUMNNAME_IsPersonalAccess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Personal Lock. + @param IsPersonalLock + Allow users with role to lock access to personal records + */ + public void setIsPersonalLock (boolean IsPersonalLock) + { + set_Value (COLUMNNAME_IsPersonalLock, Boolean.valueOf(IsPersonalLock)); + } + + /** Get Personal Lock. + @return Allow users with role to lock access to personal records + */ + public boolean isPersonalLock () + { + Object oo = get_Value(COLUMNNAME_IsPersonalLock); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Show Accounting. + @param IsShowAcct + Users with this role can see accounting information + */ + public void setIsShowAcct (boolean IsShowAcct) + { + set_Value (COLUMNNAME_IsShowAcct, Boolean.valueOf(IsShowAcct)); + } + + /** Get Show Accounting. + @return Users with this role can see accounting information + */ + public boolean isShowAcct () + { + Object oo = get_Value(COLUMNNAME_IsShowAcct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use User Org Access. + @param IsUseUserOrgAccess + Use Org Access defined by user instead of Role Org Access + */ + public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess) + { + set_Value (COLUMNNAME_IsUseUserOrgAccess, Boolean.valueOf(IsUseUserOrgAccess)); + } + + /** Get Use User Org Access. + @return Use Org Access defined by user instead of Role Org Access + */ + public boolean isUseUserOrgAccess () + { + Object oo = get_Value(COLUMNNAME_IsUseUserOrgAccess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Max Query Records. + @param MaxQueryRecords + If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public void setMaxQueryRecords (int MaxQueryRecords) + { + set_Value (COLUMNNAME_MaxQueryRecords, Integer.valueOf(MaxQueryRecords)); + } + + /** Get Max Query Records. + @return If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public int getMaxQueryRecords () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MaxQueryRecords); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Overwrite Price Limit. + @param OverwritePriceLimit + Overwrite Price Limit if the Price List enforces the Price Limit + */ + public void setOverwritePriceLimit (boolean OverwritePriceLimit) + { + set_Value (COLUMNNAME_OverwritePriceLimit, Boolean.valueOf(OverwritePriceLimit)); + } + + /** Get Overwrite Price Limit. + @return Overwrite Price Limit if the Price List enforces the Price Limit + */ + public boolean isOverwritePriceLimit () + { + Object oo = get_Value(COLUMNNAME_OverwritePriceLimit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PreferenceType AD_Reference_ID=330 */ -public static final int PREFERENCETYPE_AD_Reference_ID=330; -/** Client = C */ -public static final String PREFERENCETYPE_Client = "C"; -/** None = N */ -public static final String PREFERENCETYPE_None = "N"; -/** Organization = O */ -public static final String PREFERENCETYPE_Organization = "O"; -/** User = U */ +public static final int PREFERENCETYPE_AD_Reference_ID=330;/** Client = C */ +public static final String PREFERENCETYPE_Client = "C";/** None = N */ +public static final String PREFERENCETYPE_None = "N";/** Organization = O */ +public static final String PREFERENCETYPE_Organization = "O";/** User = U */ public static final String PREFERENCETYPE_User = "U"; -/** Set Preference Level. -@param PreferenceType Determines what preferences the user can set */ -public void setPreferenceType (String PreferenceType) -{ -if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType is mandatory"); -if (PreferenceType.equals("C") || PreferenceType.equals("N") || PreferenceType.equals("O") || PreferenceType.equals("U")); - else throw new IllegalArgumentException ("PreferenceType Invalid value - " + PreferenceType + " - Reference_ID=330 - C - N - O - U"); -if (PreferenceType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PreferenceType = PreferenceType.substring(0,0); -} -set_Value ("PreferenceType", PreferenceType); -} -/** Get Preference Level. -@return Determines what preferences the user can set */ -public String getPreferenceType() -{ -return (String)get_Value("PreferenceType"); -} -/** Column name PreferenceType */ -public static final String COLUMNNAME_PreferenceType = "PreferenceType"; + /** Set Preference Level. + @param PreferenceType + Determines what preferences the user can set + */ + public void setPreferenceType (String PreferenceType) + { +if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType is mandatory");if (PreferenceType.equals("C") || PreferenceType.equals("N") || PreferenceType.equals("O") || PreferenceType.equals("U")); else throw new IllegalArgumentException ("PreferenceType Invalid value - " + PreferenceType + " - Reference_ID=330 - C - N - O - U"); if (PreferenceType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PreferenceType = PreferenceType.substring(0, 0); + } + set_Value (COLUMNNAME_PreferenceType, PreferenceType); + } + + /** Get Preference Level. + @return Determines what preferences the user can set + */ + public String getPreferenceType () + { + return (String)get_Value(COLUMNNAME_PreferenceType); + } /** Supervisor_ID AD_Reference_ID=286 */ public static final int SUPERVISOR_ID_AD_Reference_ID=286; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID <= 0) set_Value ("Supervisor_ID", null); - else -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** UserLevel AD_Reference_ID=226 */ -public static final int USERLEVEL_AD_Reference_ID=226; -/** Organization = O */ -public static final String USERLEVEL_Organization = " O"; -/** Client = C */ -public static final String USERLEVEL_Client = " C "; -/** Client+Organization = CO */ -public static final String USERLEVEL_ClientPlusOrganization = " CO"; -/** System = S */ +public static final int USERLEVEL_AD_Reference_ID=226;/** Organization = O */ +public static final String USERLEVEL_Organization = " O";/** Client = C */ +public static final String USERLEVEL_Client = " C ";/** Client+Organization = CO */ +public static final String USERLEVEL_ClientPlusOrganization = " CO";/** System = S */ public static final String USERLEVEL_System = "S "; -/** Set User Level. -@param UserLevel System Client Organization */ -public void setUserLevel (String UserLevel) -{ -if (UserLevel == null) throw new IllegalArgumentException ("UserLevel is mandatory"); -if (UserLevel.equals(" O") || UserLevel.equals(" C ") || UserLevel.equals(" CO") || UserLevel.equals("S ")); - else throw new IllegalArgumentException ("UserLevel Invalid value - " + UserLevel + " - Reference_ID=226 - O - C - CO - S "); -if (UserLevel.length() > 3) -{ -log.warning("Length > 3 - truncated"); -UserLevel = UserLevel.substring(0,2); -} -set_Value ("UserLevel", UserLevel); -} -/** Get User Level. -@return System Client Organization */ -public String getUserLevel() -{ -return (String)get_Value("UserLevel"); -} -/** Column name UserLevel */ -public static final String COLUMNNAME_UserLevel = "UserLevel"; -} + /** Set User Level. + @param UserLevel + System Client Organization + */ + public void setUserLevel (String UserLevel) + { +if (UserLevel == null) throw new IllegalArgumentException ("UserLevel is mandatory");if (UserLevel.equals(" O") || UserLevel.equals(" C ") || UserLevel.equals(" CO") || UserLevel.equals("S ")); else throw new IllegalArgumentException ("UserLevel Invalid value - " + UserLevel + " - Reference_ID=226 - O - C - CO - S "); if (UserLevel.length() > 3) + { + log.warning("Length > 3 - truncated"); + UserLevel = UserLevel.substring(0, 2); + } + set_Value (COLUMNNAME_UserLevel, UserLevel); + } + + /** Get User Level. + @return System Client Organization + */ + public String getUserLevel () + { + return (String)get_Value(COLUMNNAME_UserLevel); + } +} \ No newline at end of file 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 d2ad4c2da0..a50b6b49ab 100644 --- a/base/src/org/compiere/model/X_AD_Role_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_Role_OrgAccess.java @@ -1,126 +1,136 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Role_OrgAccess - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Role_OrgAccess extends PO + +/** Generated Model for AD_Role_OrgAccess + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Role_OrgAccess extends PO implements I_AD_Role_OrgAccess, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Role_OrgAccess_ID id -@param trxName transaction -*/ -public X_AD_Role_OrgAccess (Properties ctx, int AD_Role_OrgAccess_ID, String trxName) -{ -super (ctx, AD_Role_OrgAccess_ID, trxName); -/** if (AD_Role_OrgAccess_ID == 0) -{ -setAD_Role_ID (0); -setIsReadOnly (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Role_OrgAccess (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Role_OrgAccess */ -public static final String Table_Name="AD_Role_OrgAccess"; - -/** AD_Table_ID=422 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Role_OrgAccess[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Role_OrgAccess (Properties ctx, int AD_Role_OrgAccess_ID, String trxName) + { + super (ctx, AD_Role_OrgAccess_ID, trxName); + /** if (AD_Role_OrgAccess_ID == 0) { setAD_Role_ID (0); + setIsReadOnly (false); +} */ + } + + /** Load Constructor */ + public X_AD_Role_OrgAccess (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Role_OrgAccess[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Scheduler.java b/base/src/org/compiere/model/X_AD_Scheduler.java index 4666e3b2ad..8358cd70b3 100644 --- a/base/src/org/compiere/model/X_AD_Scheduler.java +++ b/base/src/org/compiere/model/X_AD_Scheduler.java @@ -1,390 +1,420 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Scheduler - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Scheduler extends PO + +/** Generated Model for AD_Scheduler + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Scheduler extends PO implements I_AD_Scheduler, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Scheduler_ID id -@param trxName transaction -*/ -public X_AD_Scheduler (Properties ctx, int AD_Scheduler_ID, String trxName) -{ -super (ctx, AD_Scheduler_ID, trxName); -/** if (AD_Scheduler_ID == 0) -{ -setAD_Process_ID (0); -setAD_Scheduler_ID (0); -setFrequency (0); -setFrequencyType (null); -setKeepLogDays (0); // 7 -setName (null); -setScheduleType (null); // F -setSupervisor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Scheduler (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Scheduler */ -public static final String Table_Name="AD_Scheduler"; - -/** AD_Table_ID=688 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Scheduler[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID < 1) throw new IllegalArgumentException ("AD_Process_ID is mandatory."); -set_ValueNoCheck ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Scheduler. -@param AD_Scheduler_ID Schedule Processes */ -public void setAD_Scheduler_ID (int AD_Scheduler_ID) -{ -if (AD_Scheduler_ID < 1) throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); -set_ValueNoCheck ("AD_Scheduler_ID", Integer.valueOf(AD_Scheduler_ID)); -} -/** Get Scheduler. -@return Schedule Processes */ -public int getAD_Scheduler_ID() -{ -Integer ii = (Integer)get_Value("AD_Scheduler_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Scheduler_ID */ -public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Scheduler (Properties ctx, int AD_Scheduler_ID, String trxName) + { + super (ctx, AD_Scheduler_ID, trxName); + /** if (AD_Scheduler_ID == 0) { setAD_Process_ID (0); + setAD_Scheduler_ID (0); + setFrequency (0); + setFrequencyType (null); + setKeepLogDays (0); +// 7 + setName (null); + setScheduleType (null); +// F + setSupervisor_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Scheduler (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Scheduler[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + throw new IllegalArgumentException ("AD_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Scheduler. + @param AD_Scheduler_ID + Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID) + { + if (AD_Scheduler_ID < 1) + throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + } + + /** Get Scheduler. + @return Schedule Processes + */ + public int getAD_Scheduler_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Scheduler_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=221 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=221; -/** Day = D */ -public static final String FREQUENCYTYPE_Day = "D"; -/** Hour = H */ -public static final String FREQUENCYTYPE_Hour = "H"; -/** Minute = M */ +public static final int FREQUENCYTYPE_AD_Reference_ID=221;/** Day = D */ +public static final String FREQUENCYTYPE_Day = "D";/** Hour = H */ +public static final String FREQUENCYTYPE_Hour = "H";/** Minute = M */ public static final String FREQUENCYTYPE_Minute = "M"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; -/** Set Day of the Month. -@param MonthDay Day of the month 1 to 28/29/30/31 */ -public void setMonthDay (int MonthDay) -{ -set_Value ("MonthDay", Integer.valueOf(MonthDay)); -} -/** Get Day of the Month. -@return Day of the month 1 to 28/29/30/31 */ -public int getMonthDay() -{ -Integer ii = (Integer)get_Value("MonthDay"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MonthDay */ -public static final String COLUMNNAME_MonthDay = "MonthDay"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Day of the Month. + @param MonthDay + Day of the month 1 to 28/29/30/31 + */ + public void setMonthDay (int MonthDay) + { + set_Value (COLUMNNAME_MonthDay, Integer.valueOf(MonthDay)); + } + + /** Get Day of the Month. + @return Day of the month 1 to 28/29/30/31 + */ + public int getMonthDay () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MonthDay); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** ScheduleType AD_Reference_ID=318 */ -public static final int SCHEDULETYPE_AD_Reference_ID=318; -/** Frequency = F */ -public static final String SCHEDULETYPE_Frequency = "F"; -/** Month Day = M */ -public static final String SCHEDULETYPE_MonthDay = "M"; -/** Week Day = W */ +public static final int SCHEDULETYPE_AD_Reference_ID=318;/** Frequency = F */ +public static final String SCHEDULETYPE_Frequency = "F";/** Month Day = M */ +public static final String SCHEDULETYPE_MonthDay = "M";/** Week Day = W */ public static final String SCHEDULETYPE_WeekDay = "W"; -/** Set Schedule Type. -@param ScheduleType Type of schedule */ -public void setScheduleType (String ScheduleType) -{ -if (ScheduleType == null) throw new IllegalArgumentException ("ScheduleType is mandatory"); -if (ScheduleType.equals("F") || ScheduleType.equals("M") || ScheduleType.equals("W")); - else throw new IllegalArgumentException ("ScheduleType Invalid value - " + ScheduleType + " - Reference_ID=318 - F - M - W"); -if (ScheduleType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ScheduleType = ScheduleType.substring(0,0); -} -set_Value ("ScheduleType", ScheduleType); -} -/** Get Schedule Type. -@return Type of schedule */ -public String getScheduleType() -{ -return (String)get_Value("ScheduleType"); -} -/** Column name ScheduleType */ -public static final String COLUMNNAME_ScheduleType = "ScheduleType"; + /** Set Schedule Type. + @param ScheduleType + Type of schedule + */ + public void setScheduleType (String ScheduleType) + { +if (ScheduleType == null) throw new IllegalArgumentException ("ScheduleType is mandatory");if (ScheduleType.equals("F") || ScheduleType.equals("M") || ScheduleType.equals("W")); else throw new IllegalArgumentException ("ScheduleType Invalid value - " + ScheduleType + " - Reference_ID=318 - F - M - W"); if (ScheduleType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ScheduleType = ScheduleType.substring(0, 0); + } + set_Value (COLUMNNAME_ScheduleType, ScheduleType); + } + + /** Get Schedule Type. + @return Type of schedule + */ + public String getScheduleType () + { + return (String)get_Value(COLUMNNAME_ScheduleType); + } /** Supervisor_ID AD_Reference_ID=316 */ public static final int SUPERVISOR_ID_AD_Reference_ID=316; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID < 1) throw new IllegalArgumentException ("Supervisor_ID is mandatory."); -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + throw new IllegalArgumentException ("Supervisor_ID is mandatory."); + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** WeekDay AD_Reference_ID=167 */ -public static final int WEEKDAY_AD_Reference_ID=167; -/** Monday = 1 */ -public static final String WEEKDAY_Monday = "1"; -/** Tuesday = 2 */ -public static final String WEEKDAY_Tuesday = "2"; -/** Wednesday = 3 */ -public static final String WEEKDAY_Wednesday = "3"; -/** Thursday = 4 */ -public static final String WEEKDAY_Thursday = "4"; -/** Friday = 5 */ -public static final String WEEKDAY_Friday = "5"; -/** Saturday = 6 */ -public static final String WEEKDAY_Saturday = "6"; -/** Sunday = 7 */ +public static final int WEEKDAY_AD_Reference_ID=167;/** Monday = 1 */ +public static final String WEEKDAY_Monday = "1";/** Tuesday = 2 */ +public static final String WEEKDAY_Tuesday = "2";/** Wednesday = 3 */ +public static final String WEEKDAY_Wednesday = "3";/** Thursday = 4 */ +public static final String WEEKDAY_Thursday = "4";/** Friday = 5 */ +public static final String WEEKDAY_Friday = "5";/** Saturday = 6 */ +public static final String WEEKDAY_Saturday = "6";/** Sunday = 7 */ public static final String WEEKDAY_Sunday = "7"; -/** Set Day of the Week. -@param WeekDay Day of the Week */ -public void setWeekDay (String WeekDay) -{ -if (WeekDay == null || WeekDay.equals("1") || WeekDay.equals("2") || WeekDay.equals("3") || WeekDay.equals("4") || WeekDay.equals("5") || WeekDay.equals("6") || WeekDay.equals("7")); - else throw new IllegalArgumentException ("WeekDay Invalid value - " + WeekDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); -if (WeekDay != null && WeekDay.length() > 1) -{ -log.warning("Length > 1 - truncated"); -WeekDay = WeekDay.substring(0,0); -} -set_Value ("WeekDay", WeekDay); -} -/** Get Day of the Week. -@return Day of the Week */ -public String getWeekDay() -{ -return (String)get_Value("WeekDay"); -} -/** Column name WeekDay */ -public static final String COLUMNNAME_WeekDay = "WeekDay"; -} + /** Set Day of the Week. + @param WeekDay + Day of the Week + */ + public void setWeekDay (String WeekDay) + { +if (WeekDay == null || WeekDay.equals("1") || WeekDay.equals("2") || WeekDay.equals("3") || WeekDay.equals("4") || WeekDay.equals("5") || WeekDay.equals("6") || WeekDay.equals("7")); else throw new IllegalArgumentException ("WeekDay Invalid value - " + WeekDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); if (WeekDay != null && WeekDay.length() > 1) + { + log.warning("Length > 1 - truncated"); + WeekDay = WeekDay.substring(0, 0); + } + set_Value (COLUMNNAME_WeekDay, WeekDay); + } + + /** Get Day of the Week. + @return Day of the Week + */ + public String getWeekDay () + { + return (String)get_Value(COLUMNNAME_WeekDay); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_SchedulerLog.java b/base/src/org/compiere/model/X_AD_SchedulerLog.java index 3499d7494e..cd1d1136c0 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerLog.java +++ b/base/src/org/compiere/model/X_AD_SchedulerLog.java @@ -1,234 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_SchedulerLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_SchedulerLog extends PO + +/** Generated Model for AD_SchedulerLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_SchedulerLog extends PO implements I_AD_SchedulerLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_SchedulerLog_ID id -@param trxName transaction -*/ -public X_AD_SchedulerLog (Properties ctx, int AD_SchedulerLog_ID, String trxName) -{ -super (ctx, AD_SchedulerLog_ID, trxName); -/** if (AD_SchedulerLog_ID == 0) -{ -setAD_SchedulerLog_ID (0); -setAD_Scheduler_ID (0); -setIsError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_SchedulerLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_SchedulerLog */ -public static final String Table_Name="AD_SchedulerLog"; - -/** AD_Table_ID=687 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_SchedulerLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Scheduler Log. -@param AD_SchedulerLog_ID Result of the execution of the Scheduler */ -public void setAD_SchedulerLog_ID (int AD_SchedulerLog_ID) -{ -if (AD_SchedulerLog_ID < 1) throw new IllegalArgumentException ("AD_SchedulerLog_ID is mandatory."); -set_ValueNoCheck ("AD_SchedulerLog_ID", Integer.valueOf(AD_SchedulerLog_ID)); -} -/** Get Scheduler Log. -@return Result of the execution of the Scheduler */ -public int getAD_SchedulerLog_ID() -{ -Integer ii = (Integer)get_Value("AD_SchedulerLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_SchedulerLog_ID */ -public static final String COLUMNNAME_AD_SchedulerLog_ID = "AD_SchedulerLog_ID"; -/** Set Scheduler. -@param AD_Scheduler_ID Schedule Processes */ -public void setAD_Scheduler_ID (int AD_Scheduler_ID) -{ -if (AD_Scheduler_ID < 1) throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); -set_ValueNoCheck ("AD_Scheduler_ID", Integer.valueOf(AD_Scheduler_ID)); -} -/** Get Scheduler. -@return Schedule Processes */ -public int getAD_Scheduler_ID() -{ -Integer ii = (Integer)get_Value("AD_Scheduler_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Scheduler_ID */ -public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_Value ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_SchedulerLog (Properties ctx, int AD_SchedulerLog_ID, String trxName) + { + super (ctx, AD_SchedulerLog_ID, trxName); + /** if (AD_SchedulerLog_ID == 0) { setAD_SchedulerLog_ID (0); + setAD_Scheduler_ID (0); + setIsError (false); +} */ + } + + /** Load Constructor */ + public X_AD_SchedulerLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_SchedulerLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Scheduler Log. + @param AD_SchedulerLog_ID + Result of the execution of the Scheduler + */ + public void setAD_SchedulerLog_ID (int AD_SchedulerLog_ID) + { + if (AD_SchedulerLog_ID < 1) + throw new IllegalArgumentException ("AD_SchedulerLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_SchedulerLog_ID, Integer.valueOf(AD_SchedulerLog_ID)); + } + + /** Get Scheduler Log. + @return Result of the execution of the Scheduler + */ + public int getAD_SchedulerLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_SchedulerLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Scheduler getI_AD_Scheduler() throws Exception + { + 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 e; + } + return result; + } + + /** Set Scheduler. + @param AD_Scheduler_ID + Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID) + { + if (AD_Scheduler_ID < 1) + throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + } + + /** Get Scheduler. + @return Schedule Processes + */ + public int getAD_Scheduler_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Scheduler_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_Value (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java index f42a725710..9420111a5e 100644 --- a/base/src/org/compiere/model/X_AD_SchedulerRecipient.java +++ b/base/src/org/compiere/model/X_AD_SchedulerRecipient.java @@ -1,165 +1,202 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_SchedulerRecipient - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_SchedulerRecipient extends PO + +/** Generated Model for AD_SchedulerRecipient + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_SchedulerRecipient extends PO implements I_AD_SchedulerRecipient, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_SchedulerRecipient_ID id -@param trxName transaction -*/ -public X_AD_SchedulerRecipient (Properties ctx, int AD_SchedulerRecipient_ID, String trxName) -{ -super (ctx, AD_SchedulerRecipient_ID, trxName); -/** if (AD_SchedulerRecipient_ID == 0) -{ -setAD_SchedulerRecipient_ID (0); -setAD_Scheduler_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_SchedulerRecipient (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_SchedulerRecipient */ -public static final String Table_Name="AD_SchedulerRecipient"; - -/** AD_Table_ID=704 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_SchedulerRecipient[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Scheduler Recipient. -@param AD_SchedulerRecipient_ID Recipient of the Scheduler Notification */ -public void setAD_SchedulerRecipient_ID (int AD_SchedulerRecipient_ID) -{ -if (AD_SchedulerRecipient_ID < 1) throw new IllegalArgumentException ("AD_SchedulerRecipient_ID is mandatory."); -set_ValueNoCheck ("AD_SchedulerRecipient_ID", Integer.valueOf(AD_SchedulerRecipient_ID)); -} -/** Get Scheduler Recipient. -@return Recipient of the Scheduler Notification */ -public int getAD_SchedulerRecipient_ID() -{ -Integer ii = (Integer)get_Value("AD_SchedulerRecipient_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_SchedulerRecipient_ID */ -public static final String COLUMNNAME_AD_SchedulerRecipient_ID = "AD_SchedulerRecipient_ID"; -/** Set Scheduler. -@param AD_Scheduler_ID Schedule Processes */ -public void setAD_Scheduler_ID (int AD_Scheduler_ID) -{ -if (AD_Scheduler_ID < 1) throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); -set_ValueNoCheck ("AD_Scheduler_ID", Integer.valueOf(AD_Scheduler_ID)); -} -/** Get Scheduler. -@return Schedule Processes */ -public int getAD_Scheduler_ID() -{ -Integer ii = (Integer)get_Value("AD_Scheduler_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Scheduler_ID */ -public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_SchedulerRecipient (Properties ctx, int AD_SchedulerRecipient_ID, String trxName) + { + super (ctx, AD_SchedulerRecipient_ID, trxName); + /** if (AD_SchedulerRecipient_ID == 0) { setAD_SchedulerRecipient_ID (0); + setAD_Scheduler_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_SchedulerRecipient (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_SchedulerRecipient[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Scheduler Recipient. + @param AD_SchedulerRecipient_ID + Recipient of the Scheduler Notification + */ + public void setAD_SchedulerRecipient_ID (int AD_SchedulerRecipient_ID) + { + if (AD_SchedulerRecipient_ID < 1) + throw new IllegalArgumentException ("AD_SchedulerRecipient_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_SchedulerRecipient_ID, Integer.valueOf(AD_SchedulerRecipient_ID)); + } + + /** Get Scheduler Recipient. + @return Recipient of the Scheduler Notification + */ + public int getAD_SchedulerRecipient_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_SchedulerRecipient_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Scheduler getI_AD_Scheduler() throws Exception + { + 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 e; + } + return result; + } + + /** Set Scheduler. + @param AD_Scheduler_ID + Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID) + { + if (AD_Scheduler_ID < 1) + throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + } + + /** Get Scheduler. + @return Schedule Processes + */ + public int getAD_Scheduler_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Scheduler_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } +} \ No newline at end of file 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 b605807e48..7262e06167 100644 --- a/base/src/org/compiere/model/X_AD_Scheduler_Para.java +++ b/base/src/org/compiere/model/X_AD_Scheduler_Para.java @@ -1,161 +1,191 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Scheduler_Para - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Scheduler_Para extends PO + +/** Generated Model for AD_Scheduler_Para + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Scheduler_Para extends PO implements I_AD_Scheduler_Para, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Scheduler_Para_ID id -@param trxName transaction -*/ -public X_AD_Scheduler_Para (Properties ctx, int AD_Scheduler_Para_ID, String trxName) -{ -super (ctx, AD_Scheduler_Para_ID, trxName); -/** if (AD_Scheduler_Para_ID == 0) -{ -setAD_Process_Para_ID (0); -setAD_Scheduler_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Scheduler_Para (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Scheduler_Para */ -public static final String Table_Name="AD_Scheduler_Para"; - -/** AD_Table_ID=698 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Scheduler_Para[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Parameter. -@param AD_Process_Para_ID Process Parameter */ -public void setAD_Process_Para_ID (int AD_Process_Para_ID) -{ -if (AD_Process_Para_ID < 1) throw new IllegalArgumentException ("AD_Process_Para_ID is mandatory."); -set_ValueNoCheck ("AD_Process_Para_ID", Integer.valueOf(AD_Process_Para_ID)); -} -/** Get Process Parameter. -@return Process Parameter */ -public int getAD_Process_Para_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_Para_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_Para_ID */ -public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; -/** Set Scheduler. -@param AD_Scheduler_ID Schedule Processes */ -public void setAD_Scheduler_ID (int AD_Scheduler_ID) -{ -if (AD_Scheduler_ID < 1) throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); -set_ValueNoCheck ("AD_Scheduler_ID", Integer.valueOf(AD_Scheduler_ID)); -} -/** Get Scheduler. -@return Schedule Processes */ -public int getAD_Scheduler_ID() -{ -Integer ii = (Integer)get_Value("AD_Scheduler_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Scheduler_ID */ -public static final String COLUMNNAME_AD_Scheduler_ID = "AD_Scheduler_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default Parameter. -@param ParameterDefault Default value of the parameter */ -public void setParameterDefault (String ParameterDefault) -{ -if (ParameterDefault != null && ParameterDefault.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ParameterDefault = ParameterDefault.substring(0,59); -} -set_Value ("ParameterDefault", ParameterDefault); -} -/** Get Default Parameter. -@return Default value of the parameter */ -public String getParameterDefault() -{ -return (String)get_Value("ParameterDefault"); -} -/** Column name ParameterDefault */ -public static final String COLUMNNAME_ParameterDefault = "ParameterDefault"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Scheduler_Para (Properties ctx, int AD_Scheduler_Para_ID, String trxName) + { + super (ctx, AD_Scheduler_Para_ID, trxName); + /** if (AD_Scheduler_Para_ID == 0) { setAD_Process_Para_ID (0); + setAD_Scheduler_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Scheduler_Para (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Scheduler_Para[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Process_Para getI_AD_Process_Para() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Parameter. + @param AD_Process_Para_ID Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID) + { + if (AD_Process_Para_ID < 1) + throw new IllegalArgumentException ("AD_Process_Para_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + } + + /** Get Process Parameter. +@return Process Parameter */ + public int getAD_Process_Para_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Scheduler getI_AD_Scheduler() throws Exception + { + 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 e; + } + return result; + } + + /** Set Scheduler. + @param AD_Scheduler_ID + Schedule Processes + */ + public void setAD_Scheduler_ID (int AD_Scheduler_ID) + { + if (AD_Scheduler_ID < 1) + throw new IllegalArgumentException ("AD_Scheduler_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Scheduler_ID, Integer.valueOf(AD_Scheduler_ID)); + } + + /** Get Scheduler. + @return Schedule Processes + */ + public int getAD_Scheduler_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Scheduler_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default Parameter. + @param ParameterDefault + Default value of the parameter + */ + public void setParameterDefault (String ParameterDefault) + { + if (ParameterDefault != null && ParameterDefault.length() > 60) + { + log.warning("Length > 60 - truncated"); + ParameterDefault = ParameterDefault.substring(0, 59); + } + set_Value (COLUMNNAME_ParameterDefault, ParameterDefault); + } + + /** Get Default Parameter. + @return Default value of the parameter + */ + public String getParameterDefault () + { + return (String)get_Value(COLUMNNAME_ParameterDefault); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Sequence.java b/base/src/org/compiere/model/X_AD_Sequence.java index 85f017f3d5..403bfe4deb 100644 --- a/base/src/org/compiere/model/X_AD_Sequence.java +++ b/base/src/org/compiere/model/X_AD_Sequence.java @@ -1,359 +1,401 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Sequence - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Sequence extends PO + +/** Generated Model for AD_Sequence + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Sequence extends PO implements I_AD_Sequence, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Sequence_ID id -@param trxName transaction -*/ -public X_AD_Sequence (Properties ctx, int AD_Sequence_ID, String trxName) -{ -super (ctx, AD_Sequence_ID, trxName); -/** if (AD_Sequence_ID == 0) -{ -setAD_Sequence_ID (0); -setCurrentNext (0); // 1000000 -setCurrentNextSys (0); // 100 -setIncrementNo (0); // 1 -setIsAutoSequence (false); -setName (null); -setStartNo (0); // 1000000 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Sequence (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Sequence */ -public static final String Table_Name="AD_Sequence"; - -/** AD_Table_ID=115 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Sequence[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Sequence. -@param AD_Sequence_ID Document Sequence */ -public void setAD_Sequence_ID (int AD_Sequence_ID) -{ -if (AD_Sequence_ID < 1) throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); -set_ValueNoCheck ("AD_Sequence_ID", Integer.valueOf(AD_Sequence_ID)); -} -/** Get Sequence. -@return Document Sequence */ -public int getAD_Sequence_ID() -{ -Integer ii = (Integer)get_Value("AD_Sequence_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Sequence_ID */ -public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; -/** Set Current Next. -@param CurrentNext The next number to be used */ -public void setCurrentNext (int CurrentNext) -{ -set_Value ("CurrentNext", Integer.valueOf(CurrentNext)); -} -/** Get Current Next. -@return The next number to be used */ -public int getCurrentNext() -{ -Integer ii = (Integer)get_Value("CurrentNext"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrentNext */ -public static final String COLUMNNAME_CurrentNext = "CurrentNext"; -/** Set Current Next (System). -@param CurrentNextSys Next sequence for system use */ -public void setCurrentNextSys (int CurrentNextSys) -{ -set_Value ("CurrentNextSys", Integer.valueOf(CurrentNextSys)); -} -/** Get Current Next (System). -@return Next sequence for system use */ -public int getCurrentNextSys() -{ -Integer ii = (Integer)get_Value("CurrentNextSys"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrentNextSys */ -public static final String COLUMNNAME_CurrentNextSys = "CurrentNextSys"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Increment. -@param IncrementNo The number to increment the last document number by */ -public void setIncrementNo (int IncrementNo) -{ -set_Value ("IncrementNo", Integer.valueOf(IncrementNo)); -} -/** Get Increment. -@return The number to increment the last document number by */ -public int getIncrementNo() -{ -Integer ii = (Integer)get_Value("IncrementNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IncrementNo */ -public static final String COLUMNNAME_IncrementNo = "IncrementNo"; -/** Set Activate Audit. -@param IsAudited Activate Audit Trail of what numbers are generated */ -public void setIsAudited (boolean IsAudited) -{ -set_Value ("IsAudited", Boolean.valueOf(IsAudited)); -} -/** Get Activate Audit. -@return Activate Audit Trail of what numbers are generated */ -public boolean isAudited() -{ -Object oo = get_Value("IsAudited"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAudited */ -public static final String COLUMNNAME_IsAudited = "IsAudited"; -/** Set Auto numbering. -@param IsAutoSequence Automatically assign the next number */ -public void setIsAutoSequence (boolean IsAutoSequence) -{ -set_Value ("IsAutoSequence", Boolean.valueOf(IsAutoSequence)); -} -/** Get Auto numbering. -@return Automatically assign the next number */ -public boolean isAutoSequence() -{ -Object oo = get_Value("IsAutoSequence"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAutoSequence */ -public static final String COLUMNNAME_IsAutoSequence = "IsAutoSequence"; -/** Set Used for Record ID. -@param IsTableID The document number will be used as the record key */ -public void setIsTableID (boolean IsTableID) -{ -set_Value ("IsTableID", Boolean.valueOf(IsTableID)); -} -/** Get Used for Record ID. -@return The document number will be used as the record key */ -public boolean isTableID() -{ -Object oo = get_Value("IsTableID"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTableID */ -public static final String COLUMNNAME_IsTableID = "IsTableID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Prefix. -@param Prefix Prefix before the sequence number */ -public void setPrefix (String Prefix) -{ -if (Prefix != null && Prefix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Prefix = Prefix.substring(0,9); -} -set_Value ("Prefix", Prefix); -} -/** Get Prefix. -@return Prefix before the sequence number */ -public String getPrefix() -{ -return (String)get_Value("Prefix"); -} -/** Column name Prefix */ -public static final String COLUMNNAME_Prefix = "Prefix"; -/** Set Restart sequence every Year. -@param StartNewYear Restart the sequence with Start on every 1/1 */ -public void setStartNewYear (boolean StartNewYear) -{ -set_Value ("StartNewYear", Boolean.valueOf(StartNewYear)); -} -/** Get Restart sequence every Year. -@return Restart the sequence with Start on every 1/1 */ -public boolean isStartNewYear() -{ -Object oo = get_Value("StartNewYear"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name StartNewYear */ -public static final String COLUMNNAME_StartNewYear = "StartNewYear"; -/** Set Start No. -@param StartNo Starting number/position */ -public void setStartNo (int StartNo) -{ -set_Value ("StartNo", Integer.valueOf(StartNo)); -} -/** Get Start No. -@return Starting number/position */ -public int getStartNo() -{ -Integer ii = (Integer)get_Value("StartNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StartNo */ -public static final String COLUMNNAME_StartNo = "StartNo"; -/** Set Suffix. -@param Suffix Suffix after the number */ -public void setSuffix (String Suffix) -{ -if (Suffix != null && Suffix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Suffix = Suffix.substring(0,9); -} -set_Value ("Suffix", Suffix); -} -/** Get Suffix. -@return Suffix after the number */ -public String getSuffix() -{ -return (String)get_Value("Suffix"); -} -/** Column name Suffix */ -public static final String COLUMNNAME_Suffix = "Suffix"; -/** Set Value Format. -@param VFormat Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setVFormat (String VFormat) -{ -if (VFormat != null && VFormat.length() > 40) -{ -log.warning("Length > 40 - truncated"); -VFormat = VFormat.substring(0,39); -} -set_Value ("VFormat", VFormat); -} -/** Get Value Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getVFormat() -{ -return (String)get_Value("VFormat"); -} -/** Column name VFormat */ -public static final String COLUMNNAME_VFormat = "VFormat"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Sequence (Properties ctx, int AD_Sequence_ID, String trxName) + { + super (ctx, AD_Sequence_ID, trxName); + /** if (AD_Sequence_ID == 0) { setAD_Sequence_ID (0); + setCurrentNext (0); +// 1000000 + setCurrentNextSys (0); +// 100 + setIncrementNo (0); +// 1 + setIsAutoSequence (false); + setName (null); + setStartNo (0); +// 1000000 +} */ + } + + /** Load Constructor */ + public X_AD_Sequence (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Sequence[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Sequence. + @param AD_Sequence_ID + Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID) + { + if (AD_Sequence_ID < 1) + throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + } + + /** Get Sequence. + @return Document Sequence + */ + public int getAD_Sequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Sequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Current Next. + @param CurrentNext + The next number to be used + */ + public void setCurrentNext (int CurrentNext) + { + set_Value (COLUMNNAME_CurrentNext, Integer.valueOf(CurrentNext)); + } + + /** Get Current Next. + @return The next number to be used + */ + public int getCurrentNext () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrentNext); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Current Next (System). + @param CurrentNextSys + Next sequence for system use + */ + public void setCurrentNextSys (int CurrentNextSys) + { + set_Value (COLUMNNAME_CurrentNextSys, Integer.valueOf(CurrentNextSys)); + } + + /** Get Current Next (System). + @return Next sequence for system use + */ + public int getCurrentNextSys () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrentNextSys); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Increment. + @param IncrementNo + The number to increment the last document number by + */ + public void setIncrementNo (int IncrementNo) + { + set_Value (COLUMNNAME_IncrementNo, Integer.valueOf(IncrementNo)); + } + + /** Get Increment. + @return The number to increment the last document number by + */ + public int getIncrementNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IncrementNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Activate Audit. + @param IsAudited + Activate Audit Trail of what numbers are generated + */ + public void setIsAudited (boolean IsAudited) + { + set_Value (COLUMNNAME_IsAudited, Boolean.valueOf(IsAudited)); + } + + /** Get Activate Audit. + @return Activate Audit Trail of what numbers are generated + */ + public boolean isAudited () + { + Object oo = get_Value(COLUMNNAME_IsAudited); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Auto numbering. + @param IsAutoSequence + Automatically assign the next number + */ + public void setIsAutoSequence (boolean IsAutoSequence) + { + set_Value (COLUMNNAME_IsAutoSequence, Boolean.valueOf(IsAutoSequence)); + } + + /** Get Auto numbering. + @return Automatically assign the next number + */ + public boolean isAutoSequence () + { + Object oo = get_Value(COLUMNNAME_IsAutoSequence); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Used for Record ID. + @param IsTableID + The document number will be used as the record key + */ + public void setIsTableID (boolean IsTableID) + { + set_Value (COLUMNNAME_IsTableID, Boolean.valueOf(IsTableID)); + } + + /** Get Used for Record ID. + @return The document number will be used as the record key + */ + public boolean isTableID () + { + Object oo = get_Value(COLUMNNAME_IsTableID); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Prefix. + @param Prefix + Prefix before the sequence number + */ + public void setPrefix (String Prefix) + { + if (Prefix != null && Prefix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Prefix = Prefix.substring(0, 9); + } + set_Value (COLUMNNAME_Prefix, Prefix); + } + + /** Get Prefix. + @return Prefix before the sequence number + */ + public String getPrefix () + { + return (String)get_Value(COLUMNNAME_Prefix); + } + + /** Set Restart sequence every Year. + @param StartNewYear + Restart the sequence with Start on every 1/1 + */ + public void setStartNewYear (boolean StartNewYear) + { + set_Value (COLUMNNAME_StartNewYear, Boolean.valueOf(StartNewYear)); + } + + /** Get Restart sequence every Year. + @return Restart the sequence with Start on every 1/1 + */ + public boolean isStartNewYear () + { + Object oo = get_Value(COLUMNNAME_StartNewYear); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Start No. + @param StartNo + Starting number/position + */ + public void setStartNo (int StartNo) + { + set_Value (COLUMNNAME_StartNo, Integer.valueOf(StartNo)); + } + + /** Get Start No. + @return Starting number/position + */ + public int getStartNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StartNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Suffix. + @param Suffix + Suffix after the number + */ + public void setSuffix (String Suffix) + { + if (Suffix != null && Suffix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Suffix = Suffix.substring(0, 9); + } + set_Value (COLUMNNAME_Suffix, Suffix); + } + + /** Get Suffix. + @return Suffix after the number + */ + public String getSuffix () + { + return (String)get_Value(COLUMNNAME_Suffix); + } + + /** Set Value Format. + @param VFormat + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat) + { + if (VFormat != null && VFormat.length() > 40) + { + log.warning("Length > 40 - truncated"); + VFormat = VFormat.substring(0, 39); + } + set_Value (COLUMNNAME_VFormat, VFormat); + } + + /** Get Value Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat () + { + return (String)get_Value(COLUMNNAME_VFormat); + } +} \ No newline at end of file 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 dba454b4b1..2aae1dcca9 100644 --- a/base/src/org/compiere/model/X_AD_Sequence_Audit.java +++ b/base/src/org/compiere/model/X_AD_Sequence_Audit.java @@ -1,162 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Sequence_Audit - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Sequence_Audit extends PO + +/** Generated Model for AD_Sequence_Audit + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Sequence_Audit extends PO implements I_AD_Sequence_Audit, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Sequence_Audit_ID id -@param trxName transaction -*/ -public X_AD_Sequence_Audit (Properties ctx, int AD_Sequence_Audit_ID, String trxName) -{ -super (ctx, AD_Sequence_Audit_ID, trxName); -/** if (AD_Sequence_Audit_ID == 0) -{ -setAD_Sequence_ID (0); -setAD_Table_ID (0); -setDocumentNo (null); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Sequence_Audit (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Sequence_Audit */ -public static final String Table_Name="AD_Sequence_Audit"; - -/** AD_Table_ID=121 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Sequence_Audit[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Sequence. -@param AD_Sequence_ID Document Sequence */ -public void setAD_Sequence_ID (int AD_Sequence_ID) -{ -if (AD_Sequence_ID < 1) throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); -set_ValueNoCheck ("AD_Sequence_ID", Integer.valueOf(AD_Sequence_ID)); -} -/** Get Sequence. -@return Document Sequence */ -public int getAD_Sequence_ID() -{ -Integer ii = (Integer)get_Value("AD_Sequence_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Sequence_ID */ -public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Sequence_Audit (Properties ctx, int AD_Sequence_Audit_ID, String trxName) + { + super (ctx, AD_Sequence_Audit_ID, trxName); + /** if (AD_Sequence_Audit_ID == 0) { setAD_Sequence_ID (0); + setAD_Table_ID (0); + setDocumentNo (null); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_Sequence_Audit (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Sequence_Audit[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Sequence getI_AD_Sequence() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sequence. + @param AD_Sequence_ID + Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID) + { + if (AD_Sequence_ID < 1) + throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + } + + /** Get Sequence. + @return Document Sequence + */ + public int getAD_Sequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Sequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 6a8d9ede72..e9f1cebe63 100644 --- a/base/src/org/compiere/model/X_AD_Sequence_No.java +++ b/base/src/org/compiere/model/X_AD_Sequence_No.java @@ -1,143 +1,157 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Sequence_No - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Sequence_No extends PO + +/** Generated Model for AD_Sequence_No + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Sequence_No extends PO implements I_AD_Sequence_No, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Sequence_No_ID id -@param trxName transaction -*/ -public X_AD_Sequence_No (Properties ctx, int AD_Sequence_No_ID, String trxName) -{ -super (ctx, AD_Sequence_No_ID, trxName); -/** if (AD_Sequence_No_ID == 0) -{ -setAD_Sequence_ID (0); -setCalendarYear (null); -setCurrentNext (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Sequence_No (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Sequence_No */ -public static final String Table_Name="AD_Sequence_No"; - -/** AD_Table_ID=122 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Sequence_No[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Sequence. -@param AD_Sequence_ID Document Sequence */ -public void setAD_Sequence_ID (int AD_Sequence_ID) -{ -if (AD_Sequence_ID < 1) throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); -set_ValueNoCheck ("AD_Sequence_ID", Integer.valueOf(AD_Sequence_ID)); -} -/** Get Sequence. -@return Document Sequence */ -public int getAD_Sequence_ID() -{ -Integer ii = (Integer)get_Value("AD_Sequence_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Sequence_ID */ -public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; -/** Set Year. -@param CalendarYear Calendar Year */ -public void setCalendarYear (String CalendarYear) -{ -if (CalendarYear == null) throw new IllegalArgumentException ("CalendarYear is mandatory."); -if (CalendarYear.length() > 4) -{ -log.warning("Length > 4 - truncated"); -CalendarYear = CalendarYear.substring(0,3); -} -set_ValueNoCheck ("CalendarYear", CalendarYear); -} -/** Get Year. -@return Calendar Year */ -public String getCalendarYear() -{ -return (String)get_Value("CalendarYear"); -} -/** Column name CalendarYear */ -public static final String COLUMNNAME_CalendarYear = "CalendarYear"; -/** Set Current Next. -@param CurrentNext The next number to be used */ -public void setCurrentNext (int CurrentNext) -{ -set_Value ("CurrentNext", Integer.valueOf(CurrentNext)); -} -/** Get Current Next. -@return The next number to be used */ -public int getCurrentNext() -{ -Integer ii = (Integer)get_Value("CurrentNext"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrentNext */ -public static final String COLUMNNAME_CurrentNext = "CurrentNext"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Sequence_No (Properties ctx, int AD_Sequence_No_ID, String trxName) + { + super (ctx, AD_Sequence_No_ID, trxName); + /** if (AD_Sequence_No_ID == 0) { setAD_Sequence_ID (0); + setCalendarYear (null); + setCurrentNext (0); +} */ + } + + /** Load Constructor */ + public X_AD_Sequence_No (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Sequence_No[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Sequence getI_AD_Sequence() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sequence. + @param AD_Sequence_ID + Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID) + { + if (AD_Sequence_ID < 1) + throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + } + + /** Get Sequence. + @return Document Sequence + */ + public int getAD_Sequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Sequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Year. + @param CalendarYear + Calendar Year + */ + public void setCalendarYear (String CalendarYear) + { + if (CalendarYear == null) + throw new IllegalArgumentException ("CalendarYear is mandatory."); + if (CalendarYear.length() > 4) + { + log.warning("Length > 4 - truncated"); + CalendarYear = CalendarYear.substring(0, 3); + } + set_ValueNoCheck (COLUMNNAME_CalendarYear, CalendarYear); + } + + /** Get Year. + @return Calendar Year + */ + public String getCalendarYear () + { + return (String)get_Value(COLUMNNAME_CalendarYear); + } + + /** Set Current Next. + @param CurrentNext + The next number to be used + */ + public void setCurrentNext (int CurrentNext) + { + set_Value (COLUMNNAME_CurrentNext, Integer.valueOf(CurrentNext)); + } + + /** Get Current Next. + @return The next number to be used + */ + public int getCurrentNext () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrentNext); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Session.java b/base/src/org/compiere/model/X_AD_Session.java index 6f4e1bb891..82634a29a6 100644 --- a/base/src/org/compiere/model/X_AD_Session.java +++ b/base/src/org/compiere/model/X_AD_Session.java @@ -1,189 +1,194 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Session - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Session extends PO + +/** Generated Model for AD_Session + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Session extends PO implements I_AD_Session, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Session_ID id -@param trxName transaction -*/ -public X_AD_Session (Properties ctx, int AD_Session_ID, String trxName) -{ -super (ctx, AD_Session_ID, trxName); -/** if (AD_Session_ID == 0) -{ -setAD_Session_ID (0); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Session (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Session */ -public static final String Table_Name="AD_Session"; - -/** AD_Table_ID=566 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Session[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Session. -@param AD_Session_ID User Session Online or Web */ -public void setAD_Session_ID (int AD_Session_ID) -{ -if (AD_Session_ID < 1) throw new IllegalArgumentException ("AD_Session_ID is mandatory."); -set_ValueNoCheck ("AD_Session_ID", Integer.valueOf(AD_Session_ID)); -} -/** Get Session. -@return User Session Online or Web */ -public int getAD_Session_ID() -{ -Integer ii = (Integer)get_Value("AD_Session_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Session_ID())); -} -/** Column name AD_Session_ID */ -public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_ValueNoCheck ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_ValueNoCheck ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Web Session. -@param WebSession Web Session ID */ -public void setWebSession (String WebSession) -{ -if (WebSession != null && WebSession.length() > 40) -{ -log.warning("Length > 40 - truncated"); -WebSession = WebSession.substring(0,39); -} -set_ValueNoCheck ("WebSession", WebSession); -} -/** Get Web Session. -@return Web Session ID */ -public String getWebSession() -{ -return (String)get_Value("WebSession"); -} -/** Column name WebSession */ -public static final String COLUMNNAME_WebSession = "WebSession"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Session (Properties ctx, int AD_Session_ID, String trxName) + { + super (ctx, AD_Session_ID, trxName); + /** if (AD_Session_ID == 0) { setAD_Session_ID (0); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_AD_Session (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Session[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Session. + @param AD_Session_ID + User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID) + { + if (AD_Session_ID < 1) + throw new IllegalArgumentException ("AD_Session_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); + } + + /** Get Session. + @return User Session Online or Web + */ + public int getAD_Session_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Session_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Session_ID())); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Web Session. + @param WebSession + Web Session ID + */ + public void setWebSession (String WebSession) + { + if (WebSession != null && WebSession.length() > 40) + { + log.warning("Length > 40 - truncated"); + WebSession = WebSession.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_WebSession, WebSession); + } + + /** Get Web Session. + @return Web Session ID + */ + public String getWebSession () + { + return (String)get_Value(COLUMNNAME_WebSession); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_SysConfig.java b/base/src/org/compiere/model/X_AD_SysConfig.java index 7d0c59bbb5..22067a0818 100644 --- a/base/src/org/compiere/model/X_AD_SysConfig.java +++ b/base/src/org/compiere/model/X_AD_SysConfig.java @@ -1,172 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_SysConfig - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_SysConfig extends PO + +/** Generated Model for AD_SysConfig + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_SysConfig extends PO implements I_AD_SysConfig, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_SysConfig_ID id -@param trxName transaction -*/ -public X_AD_SysConfig (Properties ctx, int AD_SysConfig_ID, String trxName) -{ -super (ctx, AD_SysConfig_ID, trxName); -/** if (AD_SysConfig_ID == 0) -{ -setAD_SysConfig_ID (0); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_SysConfig (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_SysConfig */ -public static final String Table_Name="AD_SysConfig"; - -/** AD_Table_ID=50009 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_SysConfig[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Configurator. -@param AD_SysConfig_ID System Configurator */ -public void setAD_SysConfig_ID (int AD_SysConfig_ID) -{ -if (AD_SysConfig_ID < 1) throw new IllegalArgumentException ("AD_SysConfig_ID is mandatory."); -set_ValueNoCheck ("AD_SysConfig_ID", Integer.valueOf(AD_SysConfig_ID)); -} -/** Get System Configurator. -@return System Configurator */ -public int getAD_SysConfig_ID() -{ -Integer ii = (Integer)get_Value("AD_SysConfig_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_SysConfig_ID */ -public static final String COLUMNNAME_AD_SysConfig_ID = "AD_SysConfig_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 100) -{ -log.warning("Length > 100 - truncated"); -Name = Name.substring(0,99); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Value = Value.substring(0,254); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_SysConfig (Properties ctx, int AD_SysConfig_ID, String trxName) + { + super (ctx, AD_SysConfig_ID, trxName); + /** if (AD_SysConfig_ID == 0) { setAD_SysConfig_ID (0); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_SysConfig (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_SysConfig[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Configurator. + @param AD_SysConfig_ID System Configurator */ + public void setAD_SysConfig_ID (int AD_SysConfig_ID) + { + if (AD_SysConfig_ID < 1) + throw new IllegalArgumentException ("AD_SysConfig_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_SysConfig_ID, Integer.valueOf(AD_SysConfig_ID)); + } + + /** Get System Configurator. +@return System Configurator */ + public int getAD_SysConfig_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_SysConfig_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 100) + { + log.warning("Length > 100 - truncated"); + Name = Name.substring(0, 99); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 255) + { + log.warning("Length > 255 - truncated"); + Value = Value.substring(0, 254); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_System.java b/base/src/org/compiere/model/X_AD_System.java index 9f74e2e8cc..4b98954400 100644 --- a/base/src/org/compiere/model/X_AD_System.java +++ b/base/src/org/compiere/model/X_AD_System.java @@ -1,705 +1,785 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_System - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_System extends PO -{ -/** Standard Constructor -@param ctx context -@param AD_System_ID id -@param trxName transaction -*/ -public X_AD_System (Properties ctx, int AD_System_ID, String trxName) -{ -super (ctx, AD_System_ID, trxName); -/** if (AD_System_ID == 0) -{ -setAD_System_ID (0); // 0 -setInfo (null); -setIsAllowStatistics (false); -setIsAutoErrorReport (true); // Y -setName (null); -setPassword (null); -setReplicationType (null); // L -setSystemStatus (null); // E -setUserName (null); -setVersion (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_System (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_System */ -public static final String Table_Name="AD_System"; - -/** AD_Table_ID=531 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_System[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System. -@param AD_System_ID System Definition */ -public void setAD_System_ID (int AD_System_ID) -{ -if (AD_System_ID < 1) throw new IllegalArgumentException ("AD_System_ID is mandatory."); -set_ValueNoCheck ("AD_System_ID", Integer.valueOf(AD_System_ID)); -} -/** Get System. -@return System Definition */ -public int getAD_System_ID() -{ -Integer ii = (Integer)get_Value("AD_System_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_System_ID */ -public static final String COLUMNNAME_AD_System_ID = "AD_System_ID"; -/** Set Custom Prefix. -@param CustomPrefix Prefix for Custom entities */ -public void setCustomPrefix (String CustomPrefix) -{ -if (CustomPrefix != null && CustomPrefix.length() > 60) -{ -log.warning("Length > 60 - truncated"); -CustomPrefix = CustomPrefix.substring(0,59); -} -set_Value ("CustomPrefix", CustomPrefix); -} -/** Get Custom Prefix. -@return Prefix for Custom entities */ -public String getCustomPrefix() -{ -return (String)get_Value("CustomPrefix"); -} -/** Column name CustomPrefix */ -public static final String COLUMNNAME_CustomPrefix = "CustomPrefix"; -/** Set DB Address. -@param DBAddress JDBC URL of the database server */ -public void setDBAddress (String DBAddress) -{ -if (DBAddress != null && DBAddress.length() > 255) -{ -log.warning("Length > 255 - truncated"); -DBAddress = DBAddress.substring(0,254); -} -set_Value ("DBAddress", DBAddress); -} -/** Get DB Address. -@return JDBC URL of the database server */ -public String getDBAddress() -{ -return (String)get_Value("DBAddress"); -} -/** Column name DBAddress */ -public static final String COLUMNNAME_DBAddress = "DBAddress"; -/** Set Database Name. -@param DBInstance Database Name */ -public void setDBInstance (String DBInstance) -{ -if (DBInstance != null && DBInstance.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DBInstance = DBInstance.substring(0,59); -} -set_Value ("DBInstance", DBInstance); -} -/** Get Database Name. -@return Database Name */ -public String getDBInstance() -{ -return (String)get_Value("DBInstance"); -} -/** Column name DBInstance */ -public static final String COLUMNNAME_DBInstance = "DBInstance"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Encryption Class. -@param EncryptionKey Encryption Class used for securing data content */ -public void setEncryptionKey (String EncryptionKey) -{ -if (EncryptionKey != null && EncryptionKey.length() > 255) -{ -log.warning("Length > 255 - truncated"); -EncryptionKey = EncryptionKey.substring(0,254); -} -set_ValueNoCheck ("EncryptionKey", EncryptionKey); -} -/** Get Encryption Class. -@return Encryption Class used for securing data content */ -public String getEncryptionKey() -{ -return (String)get_Value("EncryptionKey"); -} -/** Column name EncryptionKey */ -public static final String COLUMNNAME_EncryptionKey = "EncryptionKey"; -/** Set ID Range End. -@param IDRangeEnd End if the ID Range used */ -public void setIDRangeEnd (BigDecimal IDRangeEnd) -{ -set_Value ("IDRangeEnd", IDRangeEnd); -} -/** Get ID Range End. -@return End if the ID Range used */ -public BigDecimal getIDRangeEnd() -{ -BigDecimal bd = (BigDecimal)get_Value("IDRangeEnd"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name IDRangeEnd */ -public static final String COLUMNNAME_IDRangeEnd = "IDRangeEnd"; -/** Set ID Range Start. -@param IDRangeStart Start of the ID Range used */ -public void setIDRangeStart (BigDecimal IDRangeStart) -{ -set_Value ("IDRangeStart", IDRangeStart); -} -/** Get ID Range Start. -@return Start of the ID Range used */ -public BigDecimal getIDRangeStart() -{ -BigDecimal bd = (BigDecimal)get_Value("IDRangeStart"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name IDRangeStart */ -public static final String COLUMNNAME_IDRangeStart = "IDRangeStart"; -/** Set Info. -@param Info Information */ -public void setInfo (String Info) -{ -if (Info == null) throw new IllegalArgumentException ("Info is mandatory."); -if (Info.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Info = Info.substring(0,254); -} -set_ValueNoCheck ("Info", Info); -} -/** Get Info. -@return Information */ -public String getInfo() -{ -return (String)get_Value("Info"); -} -/** Column name Info */ -public static final String COLUMNNAME_Info = "Info"; -/** Set Maintain Statistics. -@param IsAllowStatistics Maintain general statistics */ -public void setIsAllowStatistics (boolean IsAllowStatistics) -{ -set_Value ("IsAllowStatistics", Boolean.valueOf(IsAllowStatistics)); -} -/** Get Maintain Statistics. -@return Maintain general statistics */ -public boolean isAllowStatistics() -{ -Object oo = get_Value("IsAllowStatistics"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllowStatistics */ -public static final String COLUMNNAME_IsAllowStatistics = "IsAllowStatistics"; -/** Set Error Reporting. -@param IsAutoErrorReport Automatically report Errors */ -public void setIsAutoErrorReport (boolean IsAutoErrorReport) -{ -set_Value ("IsAutoErrorReport", Boolean.valueOf(IsAutoErrorReport)); -} -/** Get Error Reporting. -@return Automatically report Errors */ -public boolean isAutoErrorReport() -{ -Object oo = get_Value("IsAutoErrorReport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAutoErrorReport */ -public static final String COLUMNNAME_IsAutoErrorReport = "IsAutoErrorReport"; -/** Set Just Migrated. -@param IsJustMigrated Value set by Migration for post-Migation tasks. */ -public void setIsJustMigrated (boolean IsJustMigrated) -{ -set_Value ("IsJustMigrated", Boolean.valueOf(IsJustMigrated)); -} -/** Get Just Migrated. -@return Value set by Migration for post-Migation tasks. */ -public boolean isJustMigrated() -{ -Object oo = get_Value("IsJustMigrated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsJustMigrated */ -public static final String COLUMNNAME_IsJustMigrated = "IsJustMigrated"; -/** Set LDAP Domain. -@param LDAPDomain Directory service domain name - e.g. adempiere.org */ -public void setLDAPDomain (String LDAPDomain) -{ -if (LDAPDomain != null && LDAPDomain.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LDAPDomain = LDAPDomain.substring(0,254); -} -set_Value ("LDAPDomain", LDAPDomain); -} -/** Get LDAP Domain. -@return Directory service domain name - e.g. adempiere.org */ -public String getLDAPDomain() -{ -return (String)get_Value("LDAPDomain"); -} -/** Column name LDAPDomain */ -public static final String COLUMNNAME_LDAPDomain = "LDAPDomain"; -/** Set LDAP URL. -@param LDAPHost Connection String to LDAP server starting with ldap:// */ -public void setLDAPHost (String LDAPHost) -{ -if (LDAPHost != null && LDAPHost.length() > 60) -{ -log.warning("Length > 60 - truncated"); -LDAPHost = LDAPHost.substring(0,59); -} -set_Value ("LDAPHost", LDAPHost); -} -/** Get LDAP URL. -@return Connection String to LDAP server starting with ldap:// */ -public String getLDAPHost() -{ -return (String)get_Value("LDAPHost"); -} -/** Column name LDAPHost */ -public static final String COLUMNNAME_LDAPHost = "LDAPHost"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processors. -@param NoProcessors Number of Database Processors */ -public void setNoProcessors (int NoProcessors) -{ -set_Value ("NoProcessors", Integer.valueOf(NoProcessors)); -} -/** Get Processors. -@return Number of Database Processors */ -public int getNoProcessors() -{ -Integer ii = (Integer)get_Value("NoProcessors"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NoProcessors */ -public static final String COLUMNNAME_NoProcessors = "NoProcessors"; -/** Set Old Name. -@param OldName Old Name */ -public void setOldName (String OldName) -{ -if (OldName != null && OldName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -OldName = OldName.substring(0,59); -} -set_ValueNoCheck ("OldName", OldName); -} -/** Get Old Name. -@return Old Name */ -public String getOldName() -{ -return (String)get_Value("OldName"); -} -/** Column name OldName */ -public static final String COLUMNNAME_OldName = "OldName"; -/** Set Password. -@param Password Password of any length (case sensitive) */ -public void setPassword (String Password) -{ -if (Password == null) throw new IllegalArgumentException ("Password is mandatory."); -if (Password.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Password = Password.substring(0,19); -} -set_Value ("Password", Password); -} -/** Get Password. -@return Password of any length (case sensitive) */ -public String getPassword() -{ -return (String)get_Value("Password"); -} -/** Column name Password */ -public static final String COLUMNNAME_Password = "Password"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Profile. -@param ProfileInfo Information to help profiling the system for solving support issues */ -public void setProfileInfo (String ProfileInfo) -{ -if (ProfileInfo != null && ProfileInfo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProfileInfo = ProfileInfo.substring(0,59); -} -set_ValueNoCheck ("ProfileInfo", ProfileInfo); -} -/** Get Profile. -@return Information to help profiling the system for solving support issues */ -public String getProfileInfo() -{ -return (String)get_Value("ProfileInfo"); -} -/** Column name ProfileInfo */ -public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_Value ("Record_ID", null); - else -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo != null && ReleaseNo.length() > 4) -{ -log.warning("Length > 4 - truncated"); -ReleaseNo = ReleaseNo.substring(0,3); -} -set_ValueNoCheck ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; + +/** Generated Model for AD_System + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_System extends PO implements I_AD_System, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_System (Properties ctx, int AD_System_ID, String trxName) + { + super (ctx, AD_System_ID, trxName); + /** if (AD_System_ID == 0) { setAD_System_ID (0); +// 0 + setInfo (null); + setIsAllowStatistics (false); + setIsAutoErrorReport (true); +// Y + setName (null); + setPassword (null); + setReplicationType (null); +// L + setSystemStatus (null); +// E + setUserName (null); + setVersion (null); +} */ + } + + /** Load Constructor */ + public X_AD_System (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_System[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System. + @param AD_System_ID + System Definition + */ + public void setAD_System_ID (int AD_System_ID) + { + if (AD_System_ID < 1) + throw new IllegalArgumentException ("AD_System_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_System_ID, Integer.valueOf(AD_System_ID)); + } + + /** Get System. + @return System Definition + */ + public int getAD_System_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_System_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Custom Prefix. + @param CustomPrefix + Prefix for Custom entities + */ + public void setCustomPrefix (String CustomPrefix) + { + if (CustomPrefix != null && CustomPrefix.length() > 60) + { + log.warning("Length > 60 - truncated"); + CustomPrefix = CustomPrefix.substring(0, 59); + } + set_Value (COLUMNNAME_CustomPrefix, CustomPrefix); + } + + /** Get Custom Prefix. + @return Prefix for Custom entities + */ + public String getCustomPrefix () + { + return (String)get_Value(COLUMNNAME_CustomPrefix); + } + + /** Set DB Address. + @param DBAddress + JDBC URL of the database server + */ + public void setDBAddress (String DBAddress) + { + if (DBAddress != null && DBAddress.length() > 255) + { + log.warning("Length > 255 - truncated"); + DBAddress = DBAddress.substring(0, 254); + } + set_Value (COLUMNNAME_DBAddress, DBAddress); + } + + /** Get DB Address. + @return JDBC URL of the database server + */ + public String getDBAddress () + { + return (String)get_Value(COLUMNNAME_DBAddress); + } + + /** Set Database Name. + @param DBInstance + Database Name + */ + public void setDBInstance (String DBInstance) + { + if (DBInstance != null && DBInstance.length() > 60) + { + log.warning("Length > 60 - truncated"); + DBInstance = DBInstance.substring(0, 59); + } + set_Value (COLUMNNAME_DBInstance, DBInstance); + } + + /** Get Database Name. + @return Database Name + */ + public String getDBInstance () + { + return (String)get_Value(COLUMNNAME_DBInstance); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Encryption Class. + @param EncryptionKey + Encryption Class used for securing data content + */ + public void setEncryptionKey (String EncryptionKey) + { + if (EncryptionKey != null && EncryptionKey.length() > 255) + { + log.warning("Length > 255 - truncated"); + EncryptionKey = EncryptionKey.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_EncryptionKey, EncryptionKey); + } + + /** Get Encryption Class. + @return Encryption Class used for securing data content + */ + public String getEncryptionKey () + { + return (String)get_Value(COLUMNNAME_EncryptionKey); + } + + /** Set ID Range End. + @param IDRangeEnd + End if the ID Range used + */ + public void setIDRangeEnd (BigDecimal IDRangeEnd) + { + set_Value (COLUMNNAME_IDRangeEnd, IDRangeEnd); + } + + /** Get ID Range End. + @return End if the ID Range used + */ + public BigDecimal getIDRangeEnd () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_IDRangeEnd); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set ID Range Start. + @param IDRangeStart + Start of the ID Range used + */ + public void setIDRangeStart (BigDecimal IDRangeStart) + { + set_Value (COLUMNNAME_IDRangeStart, IDRangeStart); + } + + /** Get ID Range Start. + @return Start of the ID Range used + */ + public BigDecimal getIDRangeStart () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_IDRangeStart); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Info. + @param Info + Information + */ + public void setInfo (String Info) + { + if (Info == null) + throw new IllegalArgumentException ("Info is mandatory."); + if (Info.length() > 255) + { + log.warning("Length > 255 - truncated"); + Info = Info.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Info, Info); + } + + /** Get Info. + @return Information + */ + public String getInfo () + { + return (String)get_Value(COLUMNNAME_Info); + } + + /** Set Maintain Statistics. + @param IsAllowStatistics + Maintain general statistics + */ + public void setIsAllowStatistics (boolean IsAllowStatistics) + { + set_Value (COLUMNNAME_IsAllowStatistics, Boolean.valueOf(IsAllowStatistics)); + } + + /** Get Maintain Statistics. + @return Maintain general statistics + */ + public boolean isAllowStatistics () + { + Object oo = get_Value(COLUMNNAME_IsAllowStatistics); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Error Reporting. + @param IsAutoErrorReport + Automatically report Errors + */ + public void setIsAutoErrorReport (boolean IsAutoErrorReport) + { + set_Value (COLUMNNAME_IsAutoErrorReport, Boolean.valueOf(IsAutoErrorReport)); + } + + /** Get Error Reporting. + @return Automatically report Errors + */ + public boolean isAutoErrorReport () + { + Object oo = get_Value(COLUMNNAME_IsAutoErrorReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Just Migrated. + @param IsJustMigrated + Value set by Migration for post-Migation tasks. + */ + public void setIsJustMigrated (boolean IsJustMigrated) + { + set_Value (COLUMNNAME_IsJustMigrated, Boolean.valueOf(IsJustMigrated)); + } + + /** Get Just Migrated. + @return Value set by Migration for post-Migation tasks. + */ + public boolean isJustMigrated () + { + Object oo = get_Value(COLUMNNAME_IsJustMigrated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set LDAP Domain. + @param LDAPDomain + Directory service domain name - e.g. adempiere.org + */ + public void setLDAPDomain (String LDAPDomain) + { + if (LDAPDomain != null && LDAPDomain.length() > 255) + { + log.warning("Length > 255 - truncated"); + LDAPDomain = LDAPDomain.substring(0, 254); + } + set_Value (COLUMNNAME_LDAPDomain, LDAPDomain); + } + + /** Get LDAP Domain. + @return Directory service domain name - e.g. adempiere.org + */ + public String getLDAPDomain () + { + return (String)get_Value(COLUMNNAME_LDAPDomain); + } + + /** Set LDAP URL. + @param LDAPHost + Connection String to LDAP server starting with ldap:// + */ + public void setLDAPHost (String LDAPHost) + { + if (LDAPHost != null && LDAPHost.length() > 60) + { + log.warning("Length > 60 - truncated"); + LDAPHost = LDAPHost.substring(0, 59); + } + set_Value (COLUMNNAME_LDAPHost, LDAPHost); + } + + /** Get LDAP URL. + @return Connection String to LDAP server starting with ldap:// + */ + public String getLDAPHost () + { + return (String)get_Value(COLUMNNAME_LDAPHost); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Processors. + @param NoProcessors + Number of Database Processors + */ + public void setNoProcessors (int NoProcessors) + { + set_Value (COLUMNNAME_NoProcessors, Integer.valueOf(NoProcessors)); + } + + /** Get Processors. + @return Number of Database Processors + */ + public int getNoProcessors () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NoProcessors); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Old Name. + @param OldName Old Name */ + public void setOldName (String OldName) + { + if (OldName != null && OldName.length() > 60) + { + log.warning("Length > 60 - truncated"); + OldName = OldName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_OldName, OldName); + } + + /** Get Old Name. +@return Old Name */ + public String getOldName () + { + return (String)get_Value(COLUMNNAME_OldName); + } + + /** Set Password. + @param Password + Password of any length (case sensitive) + */ + public void setPassword (String Password) + { + if (Password == null) + throw new IllegalArgumentException ("Password is mandatory."); + if (Password.length() > 20) + { + log.warning("Length > 20 - truncated"); + Password = Password.substring(0, 19); + } + set_Value (COLUMNNAME_Password, Password); + } + + /** Get Password. + @return Password of any length (case sensitive) + */ + public String getPassword () + { + return (String)get_Value(COLUMNNAME_Password); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Profile. + @param ProfileInfo + Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo) + { + if (ProfileInfo != null && ProfileInfo.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProfileInfo = ProfileInfo.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_ProfileInfo, ProfileInfo); + } + + /** Get Profile. + @return Information to help profiling the system for solving support issues + */ + public String getProfileInfo () + { + return (String)get_Value(COLUMNNAME_ProfileInfo); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { + if (ReleaseNo != null && ReleaseNo.length() > 4) + { + log.warning("Length > 4 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 3); + } + set_ValueNoCheck (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } /** ReplicationType AD_Reference_ID=126 */ -public static final int REPLICATIONTYPE_AD_Reference_ID=126; -/** Local = L */ -public static final String REPLICATIONTYPE_Local = "L"; -/** Merge = M */ -public static final String REPLICATIONTYPE_Merge = "M"; -/** Reference = R */ +public static final int REPLICATIONTYPE_AD_Reference_ID=126;/** Local = L */ +public static final String REPLICATIONTYPE_Local = "L";/** Merge = M */ +public static final String REPLICATIONTYPE_Merge = "M";/** Reference = R */ public static final String REPLICATIONTYPE_Reference = "R"; -/** Set Replication Type. -@param ReplicationType Type of Data Replication */ -public void setReplicationType (String ReplicationType) -{ -if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); -if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); - else throw new IllegalArgumentException ("ReplicationType Invalid value - " + ReplicationType + " - Reference_ID=126 - L - M - R"); -if (ReplicationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ReplicationType = ReplicationType.substring(0,0); -} -set_Value ("ReplicationType", ReplicationType); -} -/** Get Replication Type. -@return Type of Data Replication */ -public String getReplicationType() -{ -return (String)get_Value("ReplicationType"); -} -/** Column name ReplicationType */ -public static final String COLUMNNAME_ReplicationType = "ReplicationType"; -/** Set Statistics. -@param StatisticsInfo Information to help profiling the system for solving support issues */ -public void setStatisticsInfo (String StatisticsInfo) -{ -if (StatisticsInfo != null && StatisticsInfo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -StatisticsInfo = StatisticsInfo.substring(0,59); -} -set_ValueNoCheck ("StatisticsInfo", StatisticsInfo); -} -/** Get Statistics. -@return Information to help profiling the system for solving support issues */ -public String getStatisticsInfo() -{ -return (String)get_Value("StatisticsInfo"); -} -/** Column name StatisticsInfo */ -public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Summary = Summary.substring(0,254); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Support EMail. -@param SupportEMail EMail address to send support information and updates to */ -public void setSupportEMail (String SupportEMail) -{ -if (SupportEMail != null && SupportEMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SupportEMail = SupportEMail.substring(0,59); -} -set_Value ("SupportEMail", SupportEMail); -} -/** Get Support EMail. -@return EMail address to send support information and updates to */ -public String getSupportEMail() -{ -return (String)get_Value("SupportEMail"); -} -/** Column name SupportEMail */ -public static final String COLUMNNAME_SupportEMail = "SupportEMail"; -/** Set Support Expires. -@param SupportExpDate Date when the Adempiere support expires */ -public void setSupportExpDate (Timestamp SupportExpDate) -{ -set_ValueNoCheck ("SupportExpDate", SupportExpDate); -} -/** Get Support Expires. -@return Date when the Adempiere support expires */ -public Timestamp getSupportExpDate() -{ -return (Timestamp)get_Value("SupportExpDate"); -} -/** Column name SupportExpDate */ -public static final String COLUMNNAME_SupportExpDate = "SupportExpDate"; -/** Set Internal Users. -@param SupportUnits Number of Internal Users for Adempiere Support */ -public void setSupportUnits (int SupportUnits) -{ -set_ValueNoCheck ("SupportUnits", Integer.valueOf(SupportUnits)); -} -/** Get Internal Users. -@return Number of Internal Users for Adempiere Support */ -public int getSupportUnits() -{ -Integer ii = (Integer)get_Value("SupportUnits"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SupportUnits */ -public static final String COLUMNNAME_SupportUnits = "SupportUnits"; + /** Set Replication Type. + @param ReplicationType + Type of Data Replication + */ + public void setReplicationType (String ReplicationType) + { +if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory");if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); else throw new IllegalArgumentException ("ReplicationType Invalid value - " + ReplicationType + " - Reference_ID=126 - L - M - R"); if (ReplicationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplicationType = ReplicationType.substring(0, 0); + } + set_Value (COLUMNNAME_ReplicationType, ReplicationType); + } + + /** Get Replication Type. + @return Type of Data Replication + */ + public String getReplicationType () + { + return (String)get_Value(COLUMNNAME_ReplicationType); + } + + /** Set Statistics. + @param StatisticsInfo + Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo) + { + if (StatisticsInfo != null && StatisticsInfo.length() > 60) + { + log.warning("Length > 60 - truncated"); + StatisticsInfo = StatisticsInfo.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_StatisticsInfo, StatisticsInfo); + } + + /** Get Statistics. + @return Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo () + { + return (String)get_Value(COLUMNNAME_StatisticsInfo); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 255) + { + log.warning("Length > 255 - truncated"); + Summary = Summary.substring(0, 254); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Support EMail. + @param SupportEMail + EMail address to send support information and updates to + */ + public void setSupportEMail (String SupportEMail) + { + if (SupportEMail != null && SupportEMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + SupportEMail = SupportEMail.substring(0, 59); + } + set_Value (COLUMNNAME_SupportEMail, SupportEMail); + } + + /** Get Support EMail. + @return EMail address to send support information and updates to + */ + public String getSupportEMail () + { + return (String)get_Value(COLUMNNAME_SupportEMail); + } + + /** Set Support Expires. + @param SupportExpDate + Date when the Adempiere support expires + */ + public void setSupportExpDate (Timestamp SupportExpDate) + { + set_ValueNoCheck (COLUMNNAME_SupportExpDate, SupportExpDate); + } + + /** Get Support Expires. + @return Date when the Adempiere support expires + */ + public Timestamp getSupportExpDate () + { + return (Timestamp)get_Value(COLUMNNAME_SupportExpDate); + } + + /** Set Internal Users. + @param SupportUnits + Number of Internal Users for Adempiere Support + */ + public void setSupportUnits (int SupportUnits) + { + set_ValueNoCheck (COLUMNNAME_SupportUnits, Integer.valueOf(SupportUnits)); + } + + /** Get Internal Users. + @return Number of Internal Users for Adempiere Support + */ + public int getSupportUnits () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SupportUnits); + if (ii == null) + return 0; + return ii.intValue(); + } /** SystemStatus AD_Reference_ID=374 */ -public static final int SYSTEMSTATUS_AD_Reference_ID=374; -/** Evaluation = E */ -public static final String SYSTEMSTATUS_Evaluation = "E"; -/** Implementation = I */ -public static final String SYSTEMSTATUS_Implementation = "I"; -/** Production = P */ +public static final int SYSTEMSTATUS_AD_Reference_ID=374;/** Evaluation = E */ +public static final String SYSTEMSTATUS_Evaluation = "E";/** Implementation = I */ +public static final String SYSTEMSTATUS_Implementation = "I";/** Production = P */ public static final String SYSTEMSTATUS_Production = "P"; -/** Set System Status. -@param SystemStatus Status of the system - Support priority depends on system status */ -public void setSystemStatus (String SystemStatus) -{ -if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); -if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); - else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); -if (SystemStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SystemStatus = SystemStatus.substring(0,0); -} -set_Value ("SystemStatus", SystemStatus); -} -/** Get System Status. -@return Status of the system - Support priority depends on system status */ -public String getSystemStatus() -{ -return (String)get_Value("SystemStatus"); -} -/** Column name SystemStatus */ -public static final String COLUMNNAME_SystemStatus = "SystemStatus"; -/** Set Registered EMail. -@param UserName Email of the responsible for the System */ -public void setUserName (String UserName) -{ -if (UserName == null) throw new IllegalArgumentException ("UserName is mandatory."); -if (UserName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -UserName = UserName.substring(0,59); -} -set_Value ("UserName", UserName); -} -/** Get Registered EMail. -@return Email of the responsible for the System */ -public String getUserName() -{ -return (String)get_Value("UserName"); -} -/** Column name UserName */ -public static final String COLUMNNAME_UserName = "UserName"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (String Version) -{ -if (Version == null) throw new IllegalArgumentException ("Version is mandatory."); -if (Version.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Version = Version.substring(0,19); -} -set_ValueNoCheck ("Version", Version); -} -/** Get Version. -@return Version of the table definition */ -public String getVersion() -{ -return (String)get_Value("Version"); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -} + /** Set System Status. + @param SystemStatus + Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus) + { +if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory");if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); if (SystemStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SystemStatus = SystemStatus.substring(0, 0); + } + set_Value (COLUMNNAME_SystemStatus, SystemStatus); + } + + /** Get System Status. + @return Status of the system - Support priority depends on system status + */ + public String getSystemStatus () + { + return (String)get_Value(COLUMNNAME_SystemStatus); + } + + /** Set Registered EMail. + @param UserName + Email of the responsible for the System + */ + public void setUserName (String UserName) + { + if (UserName == null) + throw new IllegalArgumentException ("UserName is mandatory."); + if (UserName.length() > 60) + { + log.warning("Length > 60 - truncated"); + UserName = UserName.substring(0, 59); + } + set_Value (COLUMNNAME_UserName, UserName); + } + + /** Get Registered EMail. + @return Email of the responsible for the System + */ + public String getUserName () + { + return (String)get_Value(COLUMNNAME_UserName); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (String Version) + { + if (Version == null) + throw new IllegalArgumentException ("Version is mandatory."); + if (Version.length() > 20) + { + log.warning("Length > 20 - truncated"); + Version = Version.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_Version, Version); + } + + /** Get Version. + @return Version of the table definition + */ + public String getVersion () + { + return (String)get_Value(COLUMNNAME_Version); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Tab.java b/base/src/org/compiere/model/X_AD_Tab.java index 5869fab768..61b55faa33 100644 --- a/base/src/org/compiere/model/X_AD_Tab.java +++ b/base/src/org/compiere/model/X_AD_Tab.java @@ -1,685 +1,860 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Tab - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Tab extends PO + +/** Generated Model for AD_Tab + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Tab extends PO implements I_AD_Tab, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Tab_ID id -@param trxName transaction -*/ -public X_AD_Tab (Properties ctx, int AD_Tab_ID, String trxName) -{ -super (ctx, AD_Tab_ID, trxName); -/** if (AD_Tab_ID == 0) -{ -setAD_Tab_ID (0); -setAD_Table_ID (0); -setAD_Window_ID (0); -setEntityType (null); // U -setHasTree (false); -setIsAdvancedTab (false); // N -setIsInsertRecord (true); // Y -setIsReadOnly (false); -setIsSingleRow (false); -setIsSortTab (false); // N -setIsTranslationTab (false); -setName (null); -setSeqNo (0); // @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Tab WHERE AD_Window_ID=@AD_Window_ID@ -setTabLevel (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Tab (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Tab */ -public static final String Table_Name="AD_Tab"; - -/** AD_Table_ID=106 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Tab[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Tab (Properties ctx, int AD_Tab_ID, String trxName) + { + super (ctx, AD_Tab_ID, trxName); + /** if (AD_Tab_ID == 0) { setAD_Tab_ID (0); + setAD_Table_ID (0); + setAD_Window_ID (0); + setEntityType (null); +// U + setHasTree (false); + setIsAdvancedTab (false); +// N + setIsInsertRecord (true); +// Y + setIsReadOnly (false); + setIsSingleRow (false); + setIsSortTab (false); +// N + setIsTranslationTab (false); + setName (null); + setSeqNo (0); +// @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Tab WHERE AD_Window_ID=@AD_Window_ID@ + setTabLevel (0); +} */ + } + + /** Load Constructor */ + public X_AD_Tab (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Tab[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_ColumnSortOrder_ID AD_Reference_ID=257 */ public static final int AD_COLUMNSORTORDER_ID_AD_Reference_ID=257; -/** Set Order Column. -@param AD_ColumnSortOrder_ID Column determining the order */ -public void setAD_ColumnSortOrder_ID (int AD_ColumnSortOrder_ID) -{ -if (AD_ColumnSortOrder_ID <= 0) set_Value ("AD_ColumnSortOrder_ID", null); - else -set_Value ("AD_ColumnSortOrder_ID", Integer.valueOf(AD_ColumnSortOrder_ID)); -} -/** Get Order Column. -@return Column determining the order */ -public int getAD_ColumnSortOrder_ID() -{ -Integer ii = (Integer)get_Value("AD_ColumnSortOrder_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ColumnSortOrder_ID */ -public static final String COLUMNNAME_AD_ColumnSortOrder_ID = "AD_ColumnSortOrder_ID"; + /** Set Order Column. + @param AD_ColumnSortOrder_ID + Column determining the order + */ + public void setAD_ColumnSortOrder_ID (int AD_ColumnSortOrder_ID) + { + if (AD_ColumnSortOrder_ID <= 0) set_Value (COLUMNNAME_AD_ColumnSortOrder_ID, null); + else + set_Value (COLUMNNAME_AD_ColumnSortOrder_ID, Integer.valueOf(AD_ColumnSortOrder_ID)); + } + + /** Get Order Column. + @return Column determining the order + */ + public int getAD_ColumnSortOrder_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ColumnSortOrder_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_ColumnSortYesNo_ID AD_Reference_ID=258 */ public static final int AD_COLUMNSORTYESNO_ID_AD_Reference_ID=258; -/** Set Included Column. -@param AD_ColumnSortYesNo_ID Column determining if a Table Column is included in Ordering */ -public void setAD_ColumnSortYesNo_ID (int AD_ColumnSortYesNo_ID) -{ -if (AD_ColumnSortYesNo_ID <= 0) set_Value ("AD_ColumnSortYesNo_ID", null); - else -set_Value ("AD_ColumnSortYesNo_ID", Integer.valueOf(AD_ColumnSortYesNo_ID)); -} -/** Get Included Column. -@return Column determining if a Table Column is included in Ordering */ -public int getAD_ColumnSortYesNo_ID() -{ -Integer ii = (Integer)get_Value("AD_ColumnSortYesNo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_ColumnSortYesNo_ID */ -public static final String COLUMNNAME_AD_ColumnSortYesNo_ID = "AD_ColumnSortYesNo_ID"; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set Tab. -@param AD_Tab_ID Tab within a Window */ -public void setAD_Tab_ID (int AD_Tab_ID) -{ -if (AD_Tab_ID < 1) throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); -set_ValueNoCheck ("AD_Tab_ID", Integer.valueOf(AD_Tab_ID)); -} -/** Get Tab. -@return Tab within a Window */ -public int getAD_Tab_ID() -{ -Integer ii = (Integer)get_Value("AD_Tab_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tab_ID */ -public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID < 1) throw new IllegalArgumentException ("AD_Window_ID is mandatory."); -set_ValueNoCheck ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Commit Warning. -@param CommitWarning Warning displayed when saving */ -public void setCommitWarning (String CommitWarning) -{ -if (CommitWarning != null && CommitWarning.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -CommitWarning = CommitWarning.substring(0,1999); -} -set_Value ("CommitWarning", CommitWarning); -} -/** Get Commit Warning. -@return Warning displayed when saving */ -public String getCommitWarning() -{ -return (String)get_Value("CommitWarning"); -} -/** Column name CommitWarning */ -public static final String COLUMNNAME_CommitWarning = "CommitWarning"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Display Logic. -@param DisplayLogic If the Field is displayed, the result determines if the field is actually displayed */ -public void setDisplayLogic (String DisplayLogic) -{ -if (DisplayLogic != null && DisplayLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DisplayLogic = DisplayLogic.substring(0,1999); -} -set_Value ("DisplayLogic", DisplayLogic); -} -/** Get Display Logic. -@return If the Field is displayed, the result determines if the field is actually displayed */ -public String getDisplayLogic() -{ -return (String)get_Value("DisplayLogic"); -} -/** Column name DisplayLogic */ -public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; + /** Set Included Column. + @param AD_ColumnSortYesNo_ID + Column determining if a Table Column is included in Ordering + */ + public void setAD_ColumnSortYesNo_ID (int AD_ColumnSortYesNo_ID) + { + if (AD_ColumnSortYesNo_ID <= 0) set_Value (COLUMNNAME_AD_ColumnSortYesNo_ID, null); + else + set_Value (COLUMNNAME_AD_ColumnSortYesNo_ID, Integer.valueOf(AD_ColumnSortYesNo_ID)); + } + + /** Get Included Column. + @return Column determining if a Table Column is included in Ordering + */ + public int getAD_ColumnSortYesNo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ColumnSortYesNo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Image getI_AD_Image() throws Exception + { + 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 e; + } + return result; + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tab. + @param AD_Tab_ID + Tab within a Window + */ + public void setAD_Tab_ID (int AD_Tab_ID) + { + if (AD_Tab_ID < 1) + throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + } + + /** Get Tab. + @return Tab within a Window + */ + public int getAD_Tab_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID < 1) + throw new IllegalArgumentException ("AD_Window_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commit Warning. + @param CommitWarning + Warning displayed when saving + */ + public void setCommitWarning (String CommitWarning) + { + if (CommitWarning != null && CommitWarning.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + CommitWarning = CommitWarning.substring(0, 1999); + } + set_Value (COLUMNNAME_CommitWarning, CommitWarning); + } + + /** Get Commit Warning. + @return Warning displayed when saving + */ + public String getCommitWarning () + { + return (String)get_Value(COLUMNNAME_CommitWarning); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Display Logic. + @param DisplayLogic + If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic) + { + if (DisplayLogic != null && DisplayLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DisplayLogic = DisplayLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_DisplayLogic, DisplayLogic); + } + + /** Get Display Logic. + @return If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic () + { + return (String)get_Value(COLUMNNAME_DisplayLogic); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Has Tree. -@param HasTree Window has Tree Graph */ -public void setHasTree (boolean HasTree) -{ -set_Value ("HasTree", Boolean.valueOf(HasTree)); -} -/** Get Has Tree. -@return Window has Tree Graph */ -public boolean isHasTree() -{ -Object oo = get_Value("HasTree"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasTree */ -public static final String COLUMNNAME_HasTree = "HasTree"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Import Fields. -@param ImportFields Create Fields from Table Columns */ -public void setImportFields (String ImportFields) -{ -if (ImportFields != null && ImportFields.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ImportFields = ImportFields.substring(0,0); -} -set_Value ("ImportFields", ImportFields); -} -/** Get Import Fields. -@return Create Fields from Table Columns */ -public String getImportFields() -{ -return (String)get_Value("ImportFields"); -} -/** Column name ImportFields */ -public static final String COLUMNNAME_ImportFields = "ImportFields"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Has Tree. + @param HasTree + Window has Tree Graph + */ + public void setHasTree (boolean HasTree) + { + set_Value (COLUMNNAME_HasTree, Boolean.valueOf(HasTree)); + } + + /** Get Has Tree. + @return Window has Tree Graph + */ + public boolean isHasTree () + { + Object oo = get_Value(COLUMNNAME_HasTree); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Import Fields. + @param ImportFields + Create Fields from Table Columns + */ + public void setImportFields (String ImportFields) + { + if (ImportFields != null && ImportFields.length() > 1) + { + log.warning("Length > 1 - truncated"); + ImportFields = ImportFields.substring(0, 0); + } + set_Value (COLUMNNAME_ImportFields, ImportFields); + } + + /** Get Import Fields. + @return Create Fields from Table Columns + */ + public String getImportFields () + { + return (String)get_Value(COLUMNNAME_ImportFields); + } /** Included_Tab_ID AD_Reference_ID=278 */ public static final int INCLUDED_TAB_ID_AD_Reference_ID=278; -/** Set Included Tab. -@param Included_Tab_ID Included Tab in this Tab (Master Dateail) */ -public void setIncluded_Tab_ID (int Included_Tab_ID) -{ -if (Included_Tab_ID <= 0) set_Value ("Included_Tab_ID", null); - else -set_Value ("Included_Tab_ID", Integer.valueOf(Included_Tab_ID)); -} -/** Get Included Tab. -@return Included Tab in this Tab (Master Dateail) */ -public int getIncluded_Tab_ID() -{ -Integer ii = (Integer)get_Value("Included_Tab_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Included_Tab_ID */ -public static final String COLUMNNAME_Included_Tab_ID = "Included_Tab_ID"; -/** Set Advanced Tab. -@param IsAdvancedTab This Tab contains advanced Functionality */ -public void setIsAdvancedTab (boolean IsAdvancedTab) -{ -set_Value ("IsAdvancedTab", Boolean.valueOf(IsAdvancedTab)); -} -/** Get Advanced Tab. -@return This Tab contains advanced Functionality */ -public boolean isAdvancedTab() -{ -Object oo = get_Value("IsAdvancedTab"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAdvancedTab */ -public static final String COLUMNNAME_IsAdvancedTab = "IsAdvancedTab"; -/** Set Accounting Tab. -@param IsInfoTab This Tab contains accounting information */ -public void setIsInfoTab (boolean IsInfoTab) -{ -set_Value ("IsInfoTab", Boolean.valueOf(IsInfoTab)); -} -/** Get Accounting Tab. -@return This Tab contains accounting information */ -public boolean isInfoTab() -{ -Object oo = get_Value("IsInfoTab"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInfoTab */ -public static final String COLUMNNAME_IsInfoTab = "IsInfoTab"; -/** Set Insert Record. -@param IsInsertRecord The user can insert a new Record */ -public void setIsInsertRecord (boolean IsInsertRecord) -{ -set_Value ("IsInsertRecord", Boolean.valueOf(IsInsertRecord)); -} -/** Get Insert Record. -@return The user can insert a new Record */ -public boolean isInsertRecord() -{ -Object oo = get_Value("IsInsertRecord"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInsertRecord */ -public static final String COLUMNNAME_IsInsertRecord = "IsInsertRecord"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Single Row Layout. -@param IsSingleRow Default for toggle between Single- and Multi-Row (Grid) Layout */ -public void setIsSingleRow (boolean IsSingleRow) -{ -set_Value ("IsSingleRow", Boolean.valueOf(IsSingleRow)); -} -/** Get Single Row Layout. -@return Default for toggle between Single- and Multi-Row (Grid) Layout */ -public boolean isSingleRow() -{ -Object oo = get_Value("IsSingleRow"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSingleRow */ -public static final String COLUMNNAME_IsSingleRow = "IsSingleRow"; -/** Set Order Tab. -@param IsSortTab The Tab determines the Order */ -public void setIsSortTab (boolean IsSortTab) -{ -set_Value ("IsSortTab", Boolean.valueOf(IsSortTab)); -} -/** Get Order Tab. -@return The Tab determines the Order */ -public boolean isSortTab() -{ -Object oo = get_Value("IsSortTab"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSortTab */ -public static final String COLUMNNAME_IsSortTab = "IsSortTab"; -/** Set TranslationTab. -@param IsTranslationTab This Tab contains translation information */ -public void setIsTranslationTab (boolean IsTranslationTab) -{ -set_Value ("IsTranslationTab", Boolean.valueOf(IsTranslationTab)); -} -/** Get TranslationTab. -@return This Tab contains translation information */ -public boolean isTranslationTab() -{ -Object oo = get_Value("IsTranslationTab"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTranslationTab */ -public static final String COLUMNNAME_IsTranslationTab = "IsTranslationTab"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sql ORDER BY. -@param OrderByClause Fully qualified ORDER BY clause */ -public void setOrderByClause (String OrderByClause) -{ -if (OrderByClause != null && OrderByClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OrderByClause = OrderByClause.substring(0,1999); -} -set_Value ("OrderByClause", OrderByClause); -} -/** Get Sql ORDER BY. -@return Fully qualified ORDER BY clause */ -public String getOrderByClause() -{ -return (String)get_Value("OrderByClause"); -} -/** Column name OrderByClause */ -public static final String COLUMNNAME_OrderByClause = "OrderByClause"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Read Only Logic. -@param ReadOnlyLogic Logic to determine if field is read only (applies only when field is read-write) */ -public void setReadOnlyLogic (String ReadOnlyLogic) -{ -if (ReadOnlyLogic != null && ReadOnlyLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ReadOnlyLogic = ReadOnlyLogic.substring(0,1999); -} -set_Value ("ReadOnlyLogic", ReadOnlyLogic); -} -/** Get Read Only Logic. -@return Logic to determine if field is read only (applies only when field is read-write) */ -public String getReadOnlyLogic() -{ -return (String)get_Value("ReadOnlyLogic"); -} -/** Column name ReadOnlyLogic */ -public static final String COLUMNNAME_ReadOnlyLogic = "ReadOnlyLogic"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Tab Level. -@param TabLevel Hierarchical Tab Level (0 = top) */ -public void setTabLevel (int TabLevel) -{ -set_Value ("TabLevel", Integer.valueOf(TabLevel)); -} -/** Get Tab Level. -@return Hierarchical Tab Level (0 = top) */ -public int getTabLevel() -{ -Integer ii = (Integer)get_Value("TabLevel"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name TabLevel */ -public static final String COLUMNNAME_TabLevel = "TabLevel"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + /** Set Included Tab. + @param Included_Tab_ID + Included Tab in this Tab (Master Dateail) + */ + public void setIncluded_Tab_ID (int Included_Tab_ID) + { + if (Included_Tab_ID <= 0) set_Value (COLUMNNAME_Included_Tab_ID, null); + else + set_Value (COLUMNNAME_Included_Tab_ID, Integer.valueOf(Included_Tab_ID)); + } + + /** Get Included Tab. + @return Included Tab in this Tab (Master Dateail) + */ + public int getIncluded_Tab_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Included_Tab_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Advanced Tab. + @param IsAdvancedTab + This Tab contains advanced Functionality + */ + public void setIsAdvancedTab (boolean IsAdvancedTab) + { + set_Value (COLUMNNAME_IsAdvancedTab, Boolean.valueOf(IsAdvancedTab)); + } + + /** Get Advanced Tab. + @return This Tab contains advanced Functionality + */ + public boolean isAdvancedTab () + { + Object oo = get_Value(COLUMNNAME_IsAdvancedTab); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accounting Tab. + @param IsInfoTab + This Tab contains accounting information + */ + public void setIsInfoTab (boolean IsInfoTab) + { + set_Value (COLUMNNAME_IsInfoTab, Boolean.valueOf(IsInfoTab)); + } + + /** Get Accounting Tab. + @return This Tab contains accounting information + */ + public boolean isInfoTab () + { + Object oo = get_Value(COLUMNNAME_IsInfoTab); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Insert Record. + @param IsInsertRecord + The user can insert a new Record + */ + public void setIsInsertRecord (boolean IsInsertRecord) + { + set_Value (COLUMNNAME_IsInsertRecord, Boolean.valueOf(IsInsertRecord)); + } + + /** Get Insert Record. + @return The user can insert a new Record + */ + public boolean isInsertRecord () + { + Object oo = get_Value(COLUMNNAME_IsInsertRecord); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Single Row Layout. + @param IsSingleRow + Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public void setIsSingleRow (boolean IsSingleRow) + { + set_Value (COLUMNNAME_IsSingleRow, Boolean.valueOf(IsSingleRow)); + } + + /** Get Single Row Layout. + @return Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public boolean isSingleRow () + { + Object oo = get_Value(COLUMNNAME_IsSingleRow); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Order Tab. + @param IsSortTab + The Tab determines the Order + */ + public void setIsSortTab (boolean IsSortTab) + { + set_Value (COLUMNNAME_IsSortTab, Boolean.valueOf(IsSortTab)); + } + + /** Get Order Tab. + @return The Tab determines the Order + */ + public boolean isSortTab () + { + Object oo = get_Value(COLUMNNAME_IsSortTab); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set TranslationTab. + @param IsTranslationTab + This Tab contains translation information + */ + public void setIsTranslationTab (boolean IsTranslationTab) + { + set_Value (COLUMNNAME_IsTranslationTab, Boolean.valueOf(IsTranslationTab)); + } + + /** Get TranslationTab. + @return This Tab contains translation information + */ + public boolean isTranslationTab () + { + Object oo = get_Value(COLUMNNAME_IsTranslationTab); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sql ORDER BY. + @param OrderByClause + Fully qualified ORDER BY clause + */ + public void setOrderByClause (String OrderByClause) + { + if (OrderByClause != null && OrderByClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OrderByClause = OrderByClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OrderByClause, OrderByClause); + } + + /** Get Sql ORDER BY. + @return Fully qualified ORDER BY clause + */ + public String getOrderByClause () + { + return (String)get_Value(COLUMNNAME_OrderByClause); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only Logic. + @param ReadOnlyLogic + Logic to determine if field is read only (applies only when field is read-write) + */ + public void setReadOnlyLogic (String ReadOnlyLogic) + { + if (ReadOnlyLogic != null && ReadOnlyLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ReadOnlyLogic = ReadOnlyLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_ReadOnlyLogic, ReadOnlyLogic); + } + + /** Get Read Only Logic. + @return Logic to determine if field is read only (applies only when field is read-write) + */ + public String getReadOnlyLogic () + { + return (String)get_Value(COLUMNNAME_ReadOnlyLogic); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tab Level. + @param TabLevel + Hierarchical Tab Level (0 = top) + */ + public void setTabLevel (int TabLevel) + { + set_Value (COLUMNNAME_TabLevel, Integer.valueOf(TabLevel)); + } + + /** Get Tab Level. + @return Hierarchical Tab Level (0 = top) + */ + public int getTabLevel () + { + Integer ii = (Integer)get_Value(COLUMNNAME_TabLevel); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Table.java b/base/src/org/compiere/model/X_AD_Table.java index a90a0789b1..e8506aef4d 100644 --- a/base/src/org/compiere/model/X_AD_Table.java +++ b/base/src/org/compiere/model/X_AD_Table.java @@ -1,502 +1,569 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Table - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Table extends PO + +/** Generated Model for AD_Table + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Table extends PO implements I_AD_Table, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Table_ID id -@param trxName transaction -*/ -public X_AD_Table (Properties ctx, int AD_Table_ID, String trxName) -{ -super (ctx, AD_Table_ID, trxName); -/** if (AD_Table_ID == 0) -{ -setAD_Table_ID (0); -setAccessLevel (null); // 4 -setEntityType (null); // U -setIsChangeLog (false); -setIsDeleteable (true); // Y -setIsHighVolume (false); -setIsSecurityEnabled (false); -setIsView (false); // N -setName (null); -setReplicationType (null); // L -setTableName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Table (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Table */ -public static final String Table_Name="AD_Table"; - -/** AD_Table_ID=100 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Table[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Dynamic Validation. -@param AD_Val_Rule_ID Dynamic Validation Rule */ -public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) -{ -if (AD_Val_Rule_ID <= 0) set_Value ("AD_Val_Rule_ID", null); - else -set_Value ("AD_Val_Rule_ID", Integer.valueOf(AD_Val_Rule_ID)); -} -/** Get Dynamic Validation. -@return Dynamic Validation Rule */ -public int getAD_Val_Rule_ID() -{ -Integer ii = (Integer)get_Value("AD_Val_Rule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Val_Rule_ID */ -public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Table (Properties ctx, int AD_Table_ID, String trxName) + { + super (ctx, AD_Table_ID, trxName); + /** if (AD_Table_ID == 0) { setAD_Table_ID (0); + setAccessLevel (null); +// 4 + setEntityType (null); +// U + setIsChangeLog (false); + setIsDeleteable (true); +// Y + setIsHighVolume (false); + setIsSecurityEnabled (false); + setIsView (false); +// N + setName (null); + setReplicationType (null); +// L + setTableName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Table (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Table[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Val_Rule getI_AD_Val_Rule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dynamic Validation. + @param AD_Val_Rule_ID + Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) + { + if (AD_Val_Rule_ID <= 0) set_Value (COLUMNNAME_AD_Val_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + } + + /** Get Dynamic Validation. + @return Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AccessLevel AD_Reference_ID=5 */ -public static final int ACCESSLEVEL_AD_Reference_ID=5; -/** Organization = 1 */ -public static final String ACCESSLEVEL_Organization = "1"; -/** Client only = 2 */ -public static final String ACCESSLEVEL_ClientOnly = "2"; -/** Client+Organization = 3 */ -public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; -/** System only = 4 */ -public static final String ACCESSLEVEL_SystemOnly = "4"; -/** System+Client = 6 */ -public static final String ACCESSLEVEL_SystemPlusClient = "6"; -/** All = 7 */ +public static final int ACCESSLEVEL_AD_Reference_ID=5;/** Organization = 1 */ +public static final String ACCESSLEVEL_Organization = "1";/** Client only = 2 */ +public static final String ACCESSLEVEL_ClientOnly = "2";/** Client+Organization = 3 */ +public static final String ACCESSLEVEL_ClientPlusOrganization = "3";/** System only = 4 */ +public static final String ACCESSLEVEL_SystemOnly = "4";/** System+Client = 6 */ +public static final String ACCESSLEVEL_SystemPlusClient = "6";/** All = 7 */ public static final String ACCESSLEVEL_All = "7"; -/** Set Data Access Level. -@param AccessLevel Access Level required */ -public void setAccessLevel (String AccessLevel) -{ -if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); -if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); - else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); -if (AccessLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccessLevel = AccessLevel.substring(0,0); -} -set_Value ("AccessLevel", AccessLevel); -} -/** Get Data Access Level. -@return Access Level required */ -public String getAccessLevel() -{ -return (String)get_Value("AccessLevel"); -} -/** Column name AccessLevel */ -public static final String COLUMNNAME_AccessLevel = "AccessLevel"; -/** Set Copy Columns From Table. -@param CopyColumnsFromTable Copy Columns From Table */ -public void setCopyColumnsFromTable (String CopyColumnsFromTable) -{ -if (CopyColumnsFromTable != null && CopyColumnsFromTable.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CopyColumnsFromTable = CopyColumnsFromTable.substring(0,0); -} -set_Value ("CopyColumnsFromTable", CopyColumnsFromTable); -} -/** Get Copy Columns From Table. -@return Copy Columns From Table */ -public String getCopyColumnsFromTable() -{ -return (String)get_Value("CopyColumnsFromTable"); -} -/** Column name CopyColumnsFromTable */ -public static final String COLUMNNAME_CopyColumnsFromTable = "CopyColumnsFromTable"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Data Access Level. + @param AccessLevel + Access Level required + */ + public void setAccessLevel (String AccessLevel) + { +if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory");if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); if (AccessLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessLevel = AccessLevel.substring(0, 0); + } + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel () + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + + /** Set Copy Columns From Table. + @param CopyColumnsFromTable Copy Columns From Table */ + public void setCopyColumnsFromTable (String CopyColumnsFromTable) + { + if (CopyColumnsFromTable != null && CopyColumnsFromTable.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyColumnsFromTable = CopyColumnsFromTable.substring(0, 0); + } + set_Value (COLUMNNAME_CopyColumnsFromTable, CopyColumnsFromTable); + } + + /** Get Copy Columns From Table. +@return Copy Columns From Table */ + public String getCopyColumnsFromTable () + { + return (String)get_Value(COLUMNNAME_CopyColumnsFromTable); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Import Table. -@param ImportTable Import Table Columns from Database */ -public void setImportTable (String ImportTable) -{ -if (ImportTable != null && ImportTable.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ImportTable = ImportTable.substring(0,0); -} -set_Value ("ImportTable", ImportTable); -} -/** Get Import Table. -@return Import Table Columns from Database */ -public String getImportTable() -{ -return (String)get_Value("ImportTable"); -} -/** Column name ImportTable */ -public static final String COLUMNNAME_ImportTable = "ImportTable"; -/** Set Maintain Change Log. -@param IsChangeLog Maintain a log of changes */ -public void setIsChangeLog (boolean IsChangeLog) -{ -set_Value ("IsChangeLog", Boolean.valueOf(IsChangeLog)); -} -/** Get Maintain Change Log. -@return Maintain a log of changes */ -public boolean isChangeLog() -{ -Object oo = get_Value("IsChangeLog"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsChangeLog */ -public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; -/** Set Records deleteable. -@param IsDeleteable Indicates if records can be deleted from the database */ -public void setIsDeleteable (boolean IsDeleteable) -{ -set_Value ("IsDeleteable", Boolean.valueOf(IsDeleteable)); -} -/** Get Records deleteable. -@return Indicates if records can be deleted from the database */ -public boolean isDeleteable() -{ -Object oo = get_Value("IsDeleteable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDeleteable */ -public static final String COLUMNNAME_IsDeleteable = "IsDeleteable"; -/** Set High Volume. -@param IsHighVolume Use Search instead of Pick list */ -public void setIsHighVolume (boolean IsHighVolume) -{ -set_Value ("IsHighVolume", Boolean.valueOf(IsHighVolume)); -} -/** Get High Volume. -@return Use Search instead of Pick list */ -public boolean isHighVolume() -{ -Object oo = get_Value("IsHighVolume"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsHighVolume */ -public static final String COLUMNNAME_IsHighVolume = "IsHighVolume"; -/** Set Security enabled. -@param IsSecurityEnabled If security is enabled, user access to data can be restricted via Roles */ -public void setIsSecurityEnabled (boolean IsSecurityEnabled) -{ -set_Value ("IsSecurityEnabled", Boolean.valueOf(IsSecurityEnabled)); -} -/** Get Security enabled. -@return If security is enabled, user access to data can be restricted via Roles */ -public boolean isSecurityEnabled() -{ -Object oo = get_Value("IsSecurityEnabled"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSecurityEnabled */ -public static final String COLUMNNAME_IsSecurityEnabled = "IsSecurityEnabled"; -/** Set View. -@param IsView This is a view */ -public void setIsView (boolean IsView) -{ -set_Value ("IsView", Boolean.valueOf(IsView)); -} -/** Get View. -@return This is a view */ -public boolean isView() -{ -Object oo = get_Value("IsView"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsView */ -public static final String COLUMNNAME_IsView = "IsView"; -/** Set Sequence. -@param LoadSeq Sequence */ -public void setLoadSeq (int LoadSeq) -{ -set_ValueNoCheck ("LoadSeq", Integer.valueOf(LoadSeq)); -} -/** Get Sequence. -@return Sequence */ -public int getLoadSeq() -{ -Integer ii = (Integer)get_Value("LoadSeq"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LoadSeq */ -public static final String COLUMNNAME_LoadSeq = "LoadSeq"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Import Table. + @param ImportTable + Import Table Columns from Database + */ + public void setImportTable (String ImportTable) + { + if (ImportTable != null && ImportTable.length() > 1) + { + log.warning("Length > 1 - truncated"); + ImportTable = ImportTable.substring(0, 0); + } + set_Value (COLUMNNAME_ImportTable, ImportTable); + } + + /** Get Import Table. + @return Import Table Columns from Database + */ + public String getImportTable () + { + return (String)get_Value(COLUMNNAME_ImportTable); + } + + /** Set Maintain Change Log. + @param IsChangeLog + Maintain a log of changes + */ + public void setIsChangeLog (boolean IsChangeLog) + { + set_Value (COLUMNNAME_IsChangeLog, Boolean.valueOf(IsChangeLog)); + } + + /** Get Maintain Change Log. + @return Maintain a log of changes + */ + public boolean isChangeLog () + { + Object oo = get_Value(COLUMNNAME_IsChangeLog); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Records deleteable. + @param IsDeleteable + Indicates if records can be deleted from the database + */ + public void setIsDeleteable (boolean IsDeleteable) + { + set_Value (COLUMNNAME_IsDeleteable, Boolean.valueOf(IsDeleteable)); + } + + /** Get Records deleteable. + @return Indicates if records can be deleted from the database + */ + public boolean isDeleteable () + { + Object oo = get_Value(COLUMNNAME_IsDeleteable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set High Volume. + @param IsHighVolume + Use Search instead of Pick list + */ + public void setIsHighVolume (boolean IsHighVolume) + { + set_Value (COLUMNNAME_IsHighVolume, Boolean.valueOf(IsHighVolume)); + } + + /** Get High Volume. + @return Use Search instead of Pick list + */ + public boolean isHighVolume () + { + Object oo = get_Value(COLUMNNAME_IsHighVolume); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Security enabled. + @param IsSecurityEnabled + If security is enabled, user access to data can be restricted via Roles + */ + public void setIsSecurityEnabled (boolean IsSecurityEnabled) + { + set_Value (COLUMNNAME_IsSecurityEnabled, Boolean.valueOf(IsSecurityEnabled)); + } + + /** Get Security enabled. + @return If security is enabled, user access to data can be restricted via Roles + */ + public boolean isSecurityEnabled () + { + Object oo = get_Value(COLUMNNAME_IsSecurityEnabled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set View. + @param IsView + This is a view + */ + public void setIsView (boolean IsView) + { + set_Value (COLUMNNAME_IsView, Boolean.valueOf(IsView)); + } + + /** Get View. + @return This is a view + */ + public boolean isView () + { + Object oo = get_Value(COLUMNNAME_IsView); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sequence. + @param LoadSeq Sequence */ + public void setLoadSeq (int LoadSeq) + { + set_ValueNoCheck (COLUMNNAME_LoadSeq, Integer.valueOf(LoadSeq)); + } + + /** Get Sequence. +@return Sequence */ + public int getLoadSeq () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LoadSeq); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } /** PO_Window_ID AD_Reference_ID=284 */ public static final int PO_WINDOW_ID_AD_Reference_ID=284; -/** Set PO Window. -@param PO_Window_ID Purchase Order Window */ -public void setPO_Window_ID (int PO_Window_ID) -{ -if (PO_Window_ID <= 0) set_Value ("PO_Window_ID", null); - else -set_Value ("PO_Window_ID", Integer.valueOf(PO_Window_ID)); -} -/** Get PO Window. -@return Purchase Order Window */ -public int getPO_Window_ID() -{ -Integer ii = (Integer)get_Value("PO_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_Window_ID */ -public static final String COLUMNNAME_PO_Window_ID = "PO_Window_ID"; + /** Set PO Window. + @param PO_Window_ID + Purchase Order Window + */ + public void setPO_Window_ID (int PO_Window_ID) + { + if (PO_Window_ID <= 0) set_Value (COLUMNNAME_PO_Window_ID, null); + else + set_Value (COLUMNNAME_PO_Window_ID, Integer.valueOf(PO_Window_ID)); + } + + /** Get PO Window. + @return Purchase Order Window + */ + public int getPO_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** ReplicationType AD_Reference_ID=126 */ -public static final int REPLICATIONTYPE_AD_Reference_ID=126; -/** Local = L */ -public static final String REPLICATIONTYPE_Local = "L"; -/** Merge = M */ -public static final String REPLICATIONTYPE_Merge = "M"; -/** Reference = R */ +public static final int REPLICATIONTYPE_AD_Reference_ID=126;/** Local = L */ +public static final String REPLICATIONTYPE_Local = "L";/** Merge = M */ +public static final String REPLICATIONTYPE_Merge = "M";/** Reference = R */ public static final String REPLICATIONTYPE_Reference = "R"; -/** Set Replication Type. -@param ReplicationType Type of Data Replication */ -public void setReplicationType (String ReplicationType) -{ -if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); -if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); - else throw new IllegalArgumentException ("ReplicationType Invalid value - " + ReplicationType + " - Reference_ID=126 - L - M - R"); -if (ReplicationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ReplicationType = ReplicationType.substring(0,0); -} -set_Value ("ReplicationType", ReplicationType); -} -/** Get Replication Type. -@return Type of Data Replication */ -public String getReplicationType() -{ -return (String)get_Value("ReplicationType"); -} -/** Column name ReplicationType */ -public static final String COLUMNNAME_ReplicationType = "ReplicationType"; -/** Set DB Table Name. -@param TableName Name of the table in the database */ -public void setTableName (String TableName) -{ -if (TableName == null) throw new IllegalArgumentException ("TableName is mandatory."); -if (TableName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -TableName = TableName.substring(0,39); -} -set_Value ("TableName", TableName); -} -/** Get DB Table Name. -@return Name of the table in the database */ -public String getTableName() -{ -return (String)get_Value("TableName"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getTableName()); -} -/** Column name TableName */ -public static final String COLUMNNAME_TableName = "TableName"; -} + /** Set Replication Type. + @param ReplicationType + Type of Data Replication + */ + public void setReplicationType (String ReplicationType) + { +if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory");if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); else throw new IllegalArgumentException ("ReplicationType Invalid value - " + ReplicationType + " - Reference_ID=126 - L - M - R"); if (ReplicationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplicationType = ReplicationType.substring(0, 0); + } + set_Value (COLUMNNAME_ReplicationType, ReplicationType); + } + + /** Get Replication Type. + @return Type of Data Replication + */ + public String getReplicationType () + { + return (String)get_Value(COLUMNNAME_ReplicationType); + } + + /** Set DB Table Name. + @param TableName + Name of the table in the database + */ + public void setTableName (String TableName) + { + if (TableName == null) + throw new IllegalArgumentException ("TableName is mandatory."); + if (TableName.length() > 40) + { + log.warning("Length > 40 - truncated"); + TableName = TableName.substring(0, 39); + } + set_Value (COLUMNNAME_TableName, TableName); + } + + /** Get DB Table Name. + @return Name of the table in the database + */ + public String getTableName () + { + return (String)get_Value(COLUMNNAME_TableName); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getTableName()); + } +} \ No newline at end of file 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 8e42ca31aa..8b62c75f7e 100644 --- a/base/src/org/compiere/model/X_AD_Table_Access.java +++ b/base/src/org/compiere/model/X_AD_Table_Access.java @@ -1,245 +1,288 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Table_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Table_Access extends PO + +/** Generated Model for AD_Table_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Table_Access extends PO implements I_AD_Table_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Table_Access_ID id -@param trxName transaction -*/ -public X_AD_Table_Access (Properties ctx, int AD_Table_Access_ID, String trxName) -{ -super (ctx, AD_Table_Access_ID, trxName); -/** if (AD_Table_Access_ID == 0) -{ -setAD_Role_ID (0); -setAD_Table_ID (0); -setAccessTypeRule (null); // A -setIsCanExport (false); -setIsCanReport (false); -setIsExclude (true); // Y -setIsReadOnly (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Table_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Table_Access */ -public static final String Table_Name="AD_Table_Access"; - -/** AD_Table_ID=565 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Table_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Table_ID())); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Table_Access (Properties ctx, int AD_Table_Access_ID, String trxName) + { + super (ctx, AD_Table_Access_ID, trxName); + /** if (AD_Table_Access_ID == 0) { setAD_Role_ID (0); + setAD_Table_ID (0); + setAccessTypeRule (null); +// A + setIsCanExport (false); + setIsCanReport (false); + setIsExclude (true); +// Y + setIsReadOnly (false); +} */ + } + + /** Load Constructor */ + public X_AD_Table_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Table_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Table_ID())); + } /** AccessTypeRule AD_Reference_ID=293 */ -public static final int ACCESSTYPERULE_AD_Reference_ID=293; -/** Accessing = A */ -public static final String ACCESSTYPERULE_Accessing = "A"; -/** Exporting = E */ -public static final String ACCESSTYPERULE_Exporting = "E"; -/** Reporting = R */ +public static final int ACCESSTYPERULE_AD_Reference_ID=293;/** Accessing = A */ +public static final String ACCESSTYPERULE_Accessing = "A";/** Exporting = E */ +public static final String ACCESSTYPERULE_Exporting = "E";/** Reporting = R */ public static final String ACCESSTYPERULE_Reporting = "R"; -/** Set Access Type. -@param AccessTypeRule The type of access for this rule */ -public void setAccessTypeRule (String AccessTypeRule) -{ -if (AccessTypeRule == null) throw new IllegalArgumentException ("AccessTypeRule is mandatory"); -if (AccessTypeRule.equals("A") || AccessTypeRule.equals("E") || AccessTypeRule.equals("R")); - else throw new IllegalArgumentException ("AccessTypeRule Invalid value - " + AccessTypeRule + " - Reference_ID=293 - A - E - R"); -if (AccessTypeRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccessTypeRule = AccessTypeRule.substring(0,0); -} -set_ValueNoCheck ("AccessTypeRule", AccessTypeRule); -} -/** Get Access Type. -@return The type of access for this rule */ -public String getAccessTypeRule() -{ -return (String)get_Value("AccessTypeRule"); -} -/** Column name AccessTypeRule */ -public static final String COLUMNNAME_AccessTypeRule = "AccessTypeRule"; -/** Set Can Export. -@param IsCanExport Users with this role can export data */ -public void setIsCanExport (boolean IsCanExport) -{ -set_Value ("IsCanExport", Boolean.valueOf(IsCanExport)); -} -/** Get Can Export. -@return Users with this role can export data */ -public boolean isCanExport() -{ -Object oo = get_Value("IsCanExport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCanExport */ -public static final String COLUMNNAME_IsCanExport = "IsCanExport"; -/** Set Can Report. -@param IsCanReport Users with this role can create reports */ -public void setIsCanReport (boolean IsCanReport) -{ -set_Value ("IsCanReport", Boolean.valueOf(IsCanReport)); -} -/** Get Can Report. -@return Users with this role can create reports */ -public boolean isCanReport() -{ -Object oo = get_Value("IsCanReport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCanReport */ -public static final String COLUMNNAME_IsCanReport = "IsCanReport"; -/** Set Exclude. -@param IsExclude Exclude access to the data - if not selected Include access to the data */ -public void setIsExclude (boolean IsExclude) -{ -set_Value ("IsExclude", Boolean.valueOf(IsExclude)); -} -/** Get Exclude. -@return Exclude access to the data - if not selected Include access to the data */ -public boolean isExclude() -{ -Object oo = get_Value("IsExclude"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsExclude */ -public static final String COLUMNNAME_IsExclude = "IsExclude"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -} + /** Set Access Type. + @param AccessTypeRule + The type of access for this rule + */ + public void setAccessTypeRule (String AccessTypeRule) + { +if (AccessTypeRule == null) throw new IllegalArgumentException ("AccessTypeRule is mandatory");if (AccessTypeRule.equals("A") || AccessTypeRule.equals("E") || AccessTypeRule.equals("R")); else throw new IllegalArgumentException ("AccessTypeRule Invalid value - " + AccessTypeRule + " - Reference_ID=293 - A - E - R"); if (AccessTypeRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessTypeRule = AccessTypeRule.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_AccessTypeRule, AccessTypeRule); + } + + /** Get Access Type. + @return The type of access for this rule + */ + public String getAccessTypeRule () + { + return (String)get_Value(COLUMNNAME_AccessTypeRule); + } + + /** Set Can Export. + @param IsCanExport + Users with this role can export data + */ + public void setIsCanExport (boolean IsCanExport) + { + set_Value (COLUMNNAME_IsCanExport, Boolean.valueOf(IsCanExport)); + } + + /** Get Can Export. + @return Users with this role can export data + */ + public boolean isCanExport () + { + Object oo = get_Value(COLUMNNAME_IsCanExport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Can Report. + @param IsCanReport + Users with this role can create reports + */ + public void setIsCanReport (boolean IsCanReport) + { + set_Value (COLUMNNAME_IsCanReport, Boolean.valueOf(IsCanReport)); + } + + /** Get Can Report. + @return Users with this role can create reports + */ + public boolean isCanReport () + { + Object oo = get_Value(COLUMNNAME_IsCanReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude. + @param IsExclude + Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude) + { + set_Value (COLUMNNAME_IsExclude, Boolean.valueOf(IsExclude)); + } + + /** Get Exclude. + @return Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude () + { + Object oo = get_Value(COLUMNNAME_IsExclude); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Task.java b/base/src/org/compiere/model/X_AD_Task.java index 204e3c1d27..eb4d7447d8 100644 --- a/base/src/org/compiere/model/X_AD_Task.java +++ b/base/src/org/compiere/model/X_AD_Task.java @@ -1,275 +1,280 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Task - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Task extends PO + +/** Generated Model for AD_Task + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Task extends PO implements I_AD_Task, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Task_ID id -@param trxName transaction -*/ -public X_AD_Task (Properties ctx, int AD_Task_ID, String trxName) -{ -super (ctx, AD_Task_ID, trxName); -/** if (AD_Task_ID == 0) -{ -setAD_Task_ID (0); -setAccessLevel (null); -setEntityType (null); // U -setIsServerProcess (false); // N -setName (null); -setOS_Command (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Task (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Task */ -public static final String Table_Name="AD_Task"; - -/** AD_Table_ID=118 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Task[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set OS Task. -@param AD_Task_ID Operation System Task */ -public void setAD_Task_ID (int AD_Task_ID) -{ -if (AD_Task_ID < 1) throw new IllegalArgumentException ("AD_Task_ID is mandatory."); -set_ValueNoCheck ("AD_Task_ID", Integer.valueOf(AD_Task_ID)); -} -/** Get OS Task. -@return Operation System Task */ -public int getAD_Task_ID() -{ -Integer ii = (Integer)get_Value("AD_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Task_ID */ -public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Task (Properties ctx, int AD_Task_ID, String trxName) + { + super (ctx, AD_Task_ID, trxName); + /** if (AD_Task_ID == 0) { setAD_Task_ID (0); + setAccessLevel (null); + setEntityType (null); +// U + setIsServerProcess (false); +// N + setName (null); + setOS_Command (null); +} */ + } + + /** Load Constructor */ + public X_AD_Task (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Task[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID < 1) + throw new IllegalArgumentException ("AD_Task_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AccessLevel AD_Reference_ID=5 */ -public static final int ACCESSLEVEL_AD_Reference_ID=5; -/** Organization = 1 */ -public static final String ACCESSLEVEL_Organization = "1"; -/** Client only = 2 */ -public static final String ACCESSLEVEL_ClientOnly = "2"; -/** Client+Organization = 3 */ -public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; -/** System only = 4 */ -public static final String ACCESSLEVEL_SystemOnly = "4"; -/** System+Client = 6 */ -public static final String ACCESSLEVEL_SystemPlusClient = "6"; -/** All = 7 */ +public static final int ACCESSLEVEL_AD_Reference_ID=5;/** Organization = 1 */ +public static final String ACCESSLEVEL_Organization = "1";/** Client only = 2 */ +public static final String ACCESSLEVEL_ClientOnly = "2";/** Client+Organization = 3 */ +public static final String ACCESSLEVEL_ClientPlusOrganization = "3";/** System only = 4 */ +public static final String ACCESSLEVEL_SystemOnly = "4";/** System+Client = 6 */ +public static final String ACCESSLEVEL_SystemPlusClient = "6";/** All = 7 */ public static final String ACCESSLEVEL_All = "7"; -/** Set Data Access Level. -@param AccessLevel Access Level required */ -public void setAccessLevel (String AccessLevel) -{ -if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); -if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); - else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); -if (AccessLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccessLevel = AccessLevel.substring(0,0); -} -set_Value ("AccessLevel", AccessLevel); -} -/** Get Data Access Level. -@return Access Level required */ -public String getAccessLevel() -{ -return (String)get_Value("AccessLevel"); -} -/** Column name AccessLevel */ -public static final String COLUMNNAME_AccessLevel = "AccessLevel"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Data Access Level. + @param AccessLevel + Access Level required + */ + public void setAccessLevel (String AccessLevel) + { +if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory");if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); if (AccessLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessLevel = AccessLevel.substring(0, 0); + } + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel () + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Server Process. -@param IsServerProcess Run this Process on Server only */ -public void setIsServerProcess (boolean IsServerProcess) -{ -set_Value ("IsServerProcess", Boolean.valueOf(IsServerProcess)); -} -/** Get Server Process. -@return Run this Process on Server only */ -public boolean isServerProcess() -{ -Object oo = get_Value("IsServerProcess"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsServerProcess */ -public static final String COLUMNNAME_IsServerProcess = "IsServerProcess"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set OS Command. -@param OS_Command Operating System Command */ -public void setOS_Command (String OS_Command) -{ -if (OS_Command == null) throw new IllegalArgumentException ("OS_Command is mandatory."); -if (OS_Command.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OS_Command = OS_Command.substring(0,1999); -} -set_Value ("OS_Command", OS_Command); -} -/** Get OS Command. -@return Operating System Command */ -public String getOS_Command() -{ -return (String)get_Value("OS_Command"); -} -/** Column name OS_Command */ -public static final String COLUMNNAME_OS_Command = "OS_Command"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Server Process. + @param IsServerProcess + Run this Process on Server only + */ + public void setIsServerProcess (boolean IsServerProcess) + { + set_Value (COLUMNNAME_IsServerProcess, Boolean.valueOf(IsServerProcess)); + } + + /** Get Server Process. + @return Run this Process on Server only + */ + public boolean isServerProcess () + { + Object oo = get_Value(COLUMNNAME_IsServerProcess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set OS Command. + @param OS_Command + Operating System Command + */ + public void setOS_Command (String OS_Command) + { + if (OS_Command == null) + throw new IllegalArgumentException ("OS_Command is mandatory."); + if (OS_Command.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OS_Command = OS_Command.substring(0, 1999); + } + set_Value (COLUMNNAME_OS_Command, OS_Command); + } + + /** Get OS Command. + @return Operating System Command + */ + public String getOS_Command () + { + return (String)get_Value(COLUMNNAME_OS_Command); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TaskInstance.java b/base/src/org/compiere/model/X_AD_TaskInstance.java index 52edb754b5..eb69b585cf 100644 --- a/base/src/org/compiere/model/X_AD_TaskInstance.java +++ b/base/src/org/compiere/model/X_AD_TaskInstance.java @@ -1,129 +1,123 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TaskInstance - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TaskInstance extends PO + +/** Generated Model for AD_TaskInstance + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TaskInstance extends PO implements I_AD_TaskInstance, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TaskInstance_ID id -@param trxName transaction -*/ -public X_AD_TaskInstance (Properties ctx, int AD_TaskInstance_ID, String trxName) -{ -super (ctx, AD_TaskInstance_ID, trxName); -/** if (AD_TaskInstance_ID == 0) -{ -setAD_TaskInstance_ID (0); -setAD_Task_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TaskInstance (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TaskInstance */ -public static final String Table_Name="AD_TaskInstance"; - -/** AD_Table_ID=125 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TaskInstance[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Task Instance. -@param AD_TaskInstance_ID Task Instance */ -public void setAD_TaskInstance_ID (int AD_TaskInstance_ID) -{ -if (AD_TaskInstance_ID < 1) throw new IllegalArgumentException ("AD_TaskInstance_ID is mandatory."); -set_ValueNoCheck ("AD_TaskInstance_ID", Integer.valueOf(AD_TaskInstance_ID)); -} -/** Get Task Instance. -@return Task Instance */ -public int getAD_TaskInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_TaskInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_TaskInstance_ID())); -} -/** Column name AD_TaskInstance_ID */ -public static final String COLUMNNAME_AD_TaskInstance_ID = "AD_TaskInstance_ID"; -/** Set OS Task. -@param AD_Task_ID Operation System Task */ -public void setAD_Task_ID (int AD_Task_ID) -{ -if (AD_Task_ID < 1) throw new IllegalArgumentException ("AD_Task_ID is mandatory."); -set_Value ("AD_Task_ID", Integer.valueOf(AD_Task_ID)); -} -/** Get OS Task. -@return Operation System Task */ -public int getAD_Task_ID() -{ -Integer ii = (Integer)get_Value("AD_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Task_ID */ -public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TaskInstance (Properties ctx, int AD_TaskInstance_ID, String trxName) + { + super (ctx, AD_TaskInstance_ID, trxName); + /** if (AD_TaskInstance_ID == 0) { setAD_TaskInstance_ID (0); + setAD_Task_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_TaskInstance (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TaskInstance[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Task Instance. + @param AD_TaskInstance_ID Task Instance */ + public void setAD_TaskInstance_ID (int AD_TaskInstance_ID) + { + if (AD_TaskInstance_ID < 1) + throw new IllegalArgumentException ("AD_TaskInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_TaskInstance_ID, Integer.valueOf(AD_TaskInstance_ID)); + } + + /** Get Task Instance. +@return Task Instance */ + public int getAD_TaskInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_TaskInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_TaskInstance_ID())); + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID < 1) + throw new IllegalArgumentException ("AD_Task_ID is mandatory."); + set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 a5f6ce5214..d6d8078fc5 100644 --- a/base/src/org/compiere/model/X_AD_Task_Access.java +++ b/base/src/org/compiere/model/X_AD_Task_Access.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Task_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Task_Access extends PO + +/** Generated Model for AD_Task_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Task_Access extends PO implements I_AD_Task_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Task_Access_ID id -@param trxName transaction -*/ -public X_AD_Task_Access (Properties ctx, int AD_Task_Access_ID, String trxName) -{ -super (ctx, AD_Task_Access_ID, trxName); -/** if (AD_Task_Access_ID == 0) -{ -setAD_Role_ID (0); -setAD_Task_ID (0); -setIsReadWrite (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Task_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Task_Access */ -public static final String Table_Name="AD_Task_Access"; - -/** AD_Table_ID=199 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Task_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set OS Task. -@param AD_Task_ID Operation System Task */ -public void setAD_Task_ID (int AD_Task_ID) -{ -if (AD_Task_ID < 1) throw new IllegalArgumentException ("AD_Task_ID is mandatory."); -set_ValueNoCheck ("AD_Task_ID", Integer.valueOf(AD_Task_ID)); -} -/** Get OS Task. -@return Operation System Task */ -public int getAD_Task_ID() -{ -Integer ii = (Integer)get_Value("AD_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Task_ID */ -public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; -/** Set Read Write. -@param IsReadWrite Field is read / write */ -public void setIsReadWrite (boolean IsReadWrite) -{ -set_Value ("IsReadWrite", Boolean.valueOf(IsReadWrite)); -} -/** Get Read Write. -@return Field is read / write */ -public boolean isReadWrite() -{ -Object oo = get_Value("IsReadWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadWrite */ -public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Task_Access (Properties ctx, int AD_Task_Access_ID, String trxName) + { + super (ctx, AD_Task_Access_ID, trxName); + /** if (AD_Task_Access_ID == 0) { setAD_Role_ID (0); + setAD_Task_ID (0); + setIsReadWrite (false); +} */ + } + + /** Load Constructor */ + public X_AD_Task_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Task_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Task getI_AD_Task() throws Exception + { + 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 e; + } + return result; + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID < 1) + throw new IllegalArgumentException ("AD_Task_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Write. + @param IsReadWrite + Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite) + { + set_Value (COLUMNNAME_IsReadWrite, Boolean.valueOf(IsReadWrite)); + } + + /** Get Read Write. + @return Field is read / write + */ + public boolean isReadWrite () + { + Object oo = get_Value(COLUMNNAME_IsReadWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Tree.java b/base/src/org/compiere/model/X_AD_Tree.java index 4f524a7113..3ca34deb84 100644 --- a/base/src/org/compiere/model/X_AD_Tree.java +++ b/base/src/org/compiere/model/X_AD_Tree.java @@ -1,277 +1,266 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Tree - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Tree extends PO + +/** Generated Model for AD_Tree + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Tree extends PO implements I_AD_Tree, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Tree_ID id -@param trxName transaction -*/ -public X_AD_Tree (Properties ctx, int AD_Tree_ID, String trxName) -{ -super (ctx, AD_Tree_ID, trxName); -/** if (AD_Tree_ID == 0) -{ -setAD_Tree_ID (0); -setIsAllNodes (false); -setIsDefault (false); // N -setName (null); -setTreeType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Tree (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Tree */ -public static final String Table_Name="AD_Tree"; - -/** AD_Table_ID=288 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Tree[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set All Nodes. -@param IsAllNodes All Nodes are included (Complete Tree) */ -public void setIsAllNodes (boolean IsAllNodes) -{ -set_Value ("IsAllNodes", Boolean.valueOf(IsAllNodes)); -} -/** Get All Nodes. -@return All Nodes are included (Complete Tree) */ -public boolean isAllNodes() -{ -Object oo = get_Value("IsAllNodes"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllNodes */ -public static final String COLUMNNAME_IsAllNodes = "IsAllNodes"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Tree (Properties ctx, int AD_Tree_ID, String trxName) + { + super (ctx, AD_Tree_ID, trxName); + /** if (AD_Tree_ID == 0) { setAD_Tree_ID (0); + setIsAllNodes (false); + setIsDefault (false); +// N + setName (null); + setTreeType (null); +} */ + } + + /** Load Constructor */ + public X_AD_Tree (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Tree[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set All Nodes. + @param IsAllNodes + All Nodes are included (Complete Tree) + */ + public void setIsAllNodes (boolean IsAllNodes) + { + set_Value (COLUMNNAME_IsAllNodes, Boolean.valueOf(IsAllNodes)); + } + + /** Get All Nodes. + @return All Nodes are included (Complete Tree) + */ + public boolean isAllNodes () + { + Object oo = get_Value(COLUMNNAME_IsAllNodes); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** TreeType AD_Reference_ID=120 */ -public static final int TREETYPE_AD_Reference_ID=120; -/** Activity = AY */ -public static final String TREETYPE_Activity = "AY"; -/** BoM = BB */ -public static final String TREETYPE_BoM = "BB"; -/** BPartner = BP */ -public static final String TREETYPE_BPartner = "BP"; -/** CM Container = CC */ -public static final String TREETYPE_CMContainer = "CC"; -/** CM Media = CM */ -public static final String TREETYPE_CMMedia = "CM"; -/** CM Container Stage = CS */ -public static final String TREETYPE_CMContainerStage = "CS"; -/** CM Template = CT */ -public static final String TREETYPE_CMTemplate = "CT"; -/** Element Value = EV */ -public static final String TREETYPE_ElementValue = "EV"; -/** Campaign = MC */ -public static final String TREETYPE_Campaign = "MC"; -/** Menu = MM */ -public static final String TREETYPE_Menu = "MM"; -/** Organization = OO */ -public static final String TREETYPE_Organization = "OO"; -/** Product Category = PC */ -public static final String TREETYPE_ProductCategory = "PC"; -/** Project = PJ */ -public static final String TREETYPE_Project = "PJ"; -/** Product = PR */ -public static final String TREETYPE_Product = "PR"; -/** Sales Region = SR */ -public static final String TREETYPE_SalesRegion = "SR"; -/** User 1 = U1 */ -public static final String TREETYPE_User1 = "U1"; -/** User 2 = U2 */ -public static final String TREETYPE_User2 = "U2"; -/** User 3 = U3 */ -public static final String TREETYPE_User3 = "U3"; -/** User 4 = U4 */ +public static final int TREETYPE_AD_Reference_ID=120;/** Activity = AY */ +public static final String TREETYPE_Activity = "AY";/** BoM = BB */ +public static final String TREETYPE_BoM = "BB";/** BPartner = BP */ +public static final String TREETYPE_BPartner = "BP";/** CM Container = CC */ +public static final String TREETYPE_CMContainer = "CC";/** CM Media = CM */ +public static final String TREETYPE_CMMedia = "CM";/** CM Container Stage = CS */ +public static final String TREETYPE_CMContainerStage = "CS";/** CM Template = CT */ +public static final String TREETYPE_CMTemplate = "CT";/** Element Value = EV */ +public static final String TREETYPE_ElementValue = "EV";/** Campaign = MC */ +public static final String TREETYPE_Campaign = "MC";/** Menu = MM */ +public static final String TREETYPE_Menu = "MM";/** Organization = OO */ +public static final String TREETYPE_Organization = "OO";/** Product Category = PC */ +public static final String TREETYPE_ProductCategory = "PC";/** Project = PJ */ +public static final String TREETYPE_Project = "PJ";/** Product = PR */ +public static final String TREETYPE_Product = "PR";/** Sales Region = SR */ +public static final String TREETYPE_SalesRegion = "SR";/** User 1 = U1 */ +public static final String TREETYPE_User1 = "U1";/** User 2 = U2 */ +public static final String TREETYPE_User2 = "U2";/** User 3 = U3 */ +public static final String TREETYPE_User3 = "U3";/** User 4 = U4 */ public static final String TREETYPE_User4 = "U4"; -/** Set Type | Area. -@param TreeType Element this tree is built on (i.e Product, Business Partner) */ -public void setTreeType (String TreeType) -{ -if (TreeType == null) throw new IllegalArgumentException ("TreeType is mandatory"); -if (TreeType.equals("AY") || TreeType.equals("BB") || TreeType.equals("BP") || TreeType.equals("CC") || TreeType.equals("CM") || TreeType.equals("CS") || TreeType.equals("CT") || TreeType.equals("EV") || TreeType.equals("MC") || TreeType.equals("MM") || TreeType.equals("OO") || TreeType.equals("PC") || TreeType.equals("PJ") || TreeType.equals("PR") || TreeType.equals("SR") || TreeType.equals("U1") || TreeType.equals("U2") || TreeType.equals("U3") || TreeType.equals("U4")); - else throw new IllegalArgumentException ("TreeType Invalid value - " + TreeType + " - Reference_ID=120 - AY - BB - BP - CC - CM - CS - CT - EV - MC - MM - OO - PC - PJ - PR - SR - U1 - U2 - U3 - U4"); -if (TreeType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -TreeType = TreeType.substring(0,1); -} -set_ValueNoCheck ("TreeType", TreeType); -} -/** Get Type | Area. -@return Element this tree is built on (i.e Product, Business Partner) */ -public String getTreeType() -{ -return (String)get_Value("TreeType"); -} -/** Column name TreeType */ -public static final String COLUMNNAME_TreeType = "TreeType"; -} + /** Set Type | Area. + @param TreeType + Element this tree is built on (i.e Product, Business Partner) + */ + public void setTreeType (String TreeType) + { +if (TreeType == null) throw new IllegalArgumentException ("TreeType is mandatory");if (TreeType.equals("AY") || TreeType.equals("BB") || TreeType.equals("BP") || TreeType.equals("CC") || TreeType.equals("CM") || TreeType.equals("CS") || TreeType.equals("CT") || TreeType.equals("EV") || TreeType.equals("MC") || TreeType.equals("MM") || TreeType.equals("OO") || TreeType.equals("PC") || TreeType.equals("PJ") || TreeType.equals("PR") || TreeType.equals("SR") || TreeType.equals("U1") || TreeType.equals("U2") || TreeType.equals("U3") || TreeType.equals("U4")); else throw new IllegalArgumentException ("TreeType Invalid value - " + TreeType + " - Reference_ID=120 - AY - BB - BP - CC - CM - CS - CT - EV - MC - MM - OO - PC - PJ - PR - SR - U1 - U2 - U3 - U4"); if (TreeType.length() > 2) + { + log.warning("Length > 2 - truncated"); + TreeType = TreeType.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_TreeType, TreeType); + } + + /** Get Type | Area. + @return Element this tree is built on (i.e Product, Business Partner) + */ + public String getTreeType () + { + return (String)get_Value(COLUMNNAME_TreeType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeBar.java b/base/src/org/compiere/model/X_AD_TreeBar.java index 166bd8d98f..33f91ad214 100644 --- a/base/src/org/compiere/model/X_AD_TreeBar.java +++ b/base/src/org/compiere/model/X_AD_TreeBar.java @@ -1,147 +1,178 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeBar - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeBar extends PO + +/** Generated Model for AD_TreeBar + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeBar extends PO implements I_AD_TreeBar, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeBar_ID id -@param trxName transaction -*/ -public X_AD_TreeBar (Properties ctx, int AD_TreeBar_ID, String trxName) -{ -super (ctx, AD_TreeBar_ID, trxName); -/** if (AD_TreeBar_ID == 0) -{ -setAD_Tree_ID (0); -setAD_User_ID (0); -setNode_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeBar (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeBar */ -public static final String Table_Name="AD_TreeBar"; - -/** AD_Table_ID=456 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeBar[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_Value ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getNode_ID())); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeBar (Properties ctx, int AD_TreeBar_ID, String trxName) + { + super (ctx, AD_TreeBar_ID, trxName); + /** if (AD_TreeBar_ID == 0) { setAD_Tree_ID (0); + setAD_User_ID (0); + setNode_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeBar (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeBar[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_Value (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getNode_ID())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNode.java b/base/src/org/compiere/model/X_AD_TreeNode.java index bc76b5ff25..8e89909c26 100644 --- a/base/src/org/compiere/model/X_AD_TreeNode.java +++ b/base/src/org/compiere/model/X_AD_TreeNode.java @@ -1,160 +1,174 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNode - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNode extends PO + +/** Generated Model for AD_TreeNode + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNode extends PO implements I_AD_TreeNode, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNode_ID id -@param trxName transaction -*/ -public X_AD_TreeNode (Properties ctx, int AD_TreeNode_ID, String trxName) -{ -super (ctx, AD_TreeNode_ID, trxName); -/** if (AD_TreeNode_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNode (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNode */ -public static final String Table_Name="AD_TreeNode"; - -/** AD_Table_ID=289 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNode[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID <= 0) set_Value ("Parent_ID", null); - else -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNode (Properties ctx, int AD_TreeNode_ID, String trxName) + { + super (ctx, AD_TreeNode_ID, trxName); + /** if (AD_TreeNode_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNode (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNode[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID <= 0) set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeBP.java b/base/src/org/compiere/model/X_AD_TreeNodeBP.java index 804df330c5..cfdb493e36 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeBP.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeBP.java @@ -1,159 +1,173 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeBP - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeBP extends PO + +/** Generated Model for AD_TreeNodeBP + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeBP extends PO implements I_AD_TreeNodeBP, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeBP_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeBP (Properties ctx, int AD_TreeNodeBP_ID, String trxName) -{ -super (ctx, AD_TreeNodeBP_ID, trxName); -/** if (AD_TreeNodeBP_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeBP (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeBP */ -public static final String Table_Name="AD_TreeNodeBP"; - -/** AD_Table_ID=451 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeBP[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID <= 0) set_Value ("Parent_ID", null); - else -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeBP (Properties ctx, int AD_TreeNodeBP_ID, String trxName) + { + super (ctx, AD_TreeNodeBP_ID, trxName); + /** if (AD_TreeNodeBP_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeBP (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeBP[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID <= 0) set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMC.java b/base/src/org/compiere/model/X_AD_TreeNodeCMC.java index 8d718b5cde..754996fe6b 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMC.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMC.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeCMC - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeCMC extends PO + +/** Generated Model for AD_TreeNodeCMC + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeCMC extends PO implements I_AD_TreeNodeCMC, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeCMC_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeCMC (Properties ctx, int AD_TreeNodeCMC_ID, String trxName) -{ -super (ctx, AD_TreeNodeCMC_ID, trxName); -/** if (AD_TreeNodeCMC_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeCMC (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeCMC */ -public static final String Table_Name="AD_TreeNodeCMC"; - -/** AD_Table_ID=845 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMC[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeCMC (Properties ctx, int AD_TreeNodeCMC_ID, String trxName) + { + super (ctx, AD_TreeNodeCMC_ID, trxName); + /** if (AD_TreeNodeCMC_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeCMC (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMC[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMM.java b/base/src/org/compiere/model/X_AD_TreeNodeCMM.java index 9de34af623..e10a50e048 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMM.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMM.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeCMM - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeCMM extends PO + +/** Generated Model for AD_TreeNodeCMM + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeCMM extends PO implements I_AD_TreeNodeCMM, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeCMM_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeCMM (Properties ctx, int AD_TreeNodeCMM_ID, String trxName) -{ -super (ctx, AD_TreeNodeCMM_ID, trxName); -/** if (AD_TreeNodeCMM_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeCMM (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeCMM */ -public static final String Table_Name="AD_TreeNodeCMM"; - -/** AD_Table_ID=846 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMM[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeCMM (Properties ctx, int AD_TreeNodeCMM_ID, String trxName) + { + super (ctx, AD_TreeNodeCMM_ID, trxName); + /** if (AD_TreeNodeCMM_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeCMM (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMM[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMS.java b/base/src/org/compiere/model/X_AD_TreeNodeCMS.java index 6463084272..8b6959b109 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMS.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMS.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeCMS - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeCMS extends PO + +/** Generated Model for AD_TreeNodeCMS + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeCMS extends PO implements I_AD_TreeNodeCMS, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeCMS_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeCMS (Properties ctx, int AD_TreeNodeCMS_ID, String trxName) -{ -super (ctx, AD_TreeNodeCMS_ID, trxName); -/** if (AD_TreeNodeCMS_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeCMS (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeCMS */ -public static final String Table_Name="AD_TreeNodeCMS"; - -/** AD_Table_ID=847 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMS[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeCMS (Properties ctx, int AD_TreeNodeCMS_ID, String trxName) + { + super (ctx, AD_TreeNodeCMS_ID, trxName); + /** if (AD_TreeNodeCMS_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeCMS (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMS[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeCMT.java b/base/src/org/compiere/model/X_AD_TreeNodeCMT.java index fbc272696f..2830c60ad9 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeCMT.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeCMT.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeCMT - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeCMT extends PO + +/** Generated Model for AD_TreeNodeCMT + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeCMT extends PO implements I_AD_TreeNodeCMT, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeCMT_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeCMT (Properties ctx, int AD_TreeNodeCMT_ID, String trxName) -{ -super (ctx, AD_TreeNodeCMT_ID, trxName); -/** if (AD_TreeNodeCMT_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeCMT (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeCMT */ -public static final String Table_Name="AD_TreeNodeCMT"; - -/** AD_Table_ID=848 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMT[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeCMT (Properties ctx, int AD_TreeNodeCMT_ID, String trxName) + { + super (ctx, AD_TreeNodeCMT_ID, trxName); + /** if (AD_TreeNodeCMT_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeCMT (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeCMT[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeMM.java b/base/src/org/compiere/model/X_AD_TreeNodeMM.java index d4ce82d590..492eb491f3 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeMM.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeMM.java @@ -1,159 +1,173 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeMM - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeMM extends PO + +/** Generated Model for AD_TreeNodeMM + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeMM extends PO implements I_AD_TreeNodeMM, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeMM_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeMM (Properties ctx, int AD_TreeNodeMM_ID, String trxName) -{ -super (ctx, AD_TreeNodeMM_ID, trxName); -/** if (AD_TreeNodeMM_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeMM (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeMM */ -public static final String Table_Name="AD_TreeNodeMM"; - -/** AD_Table_ID=452 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeMM[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID <= 0) set_Value ("Parent_ID", null); - else -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeMM (Properties ctx, int AD_TreeNodeMM_ID, String trxName) + { + super (ctx, AD_TreeNodeMM_ID, trxName); + /** if (AD_TreeNodeMM_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeMM (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeMM[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID <= 0) set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodePR.java b/base/src/org/compiere/model/X_AD_TreeNodePR.java index 31d91e0610..622221f2c6 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodePR.java +++ b/base/src/org/compiere/model/X_AD_TreeNodePR.java @@ -1,159 +1,173 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodePR - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodePR extends PO + +/** Generated Model for AD_TreeNodePR + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodePR extends PO implements I_AD_TreeNodePR, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodePR_ID id -@param trxName transaction -*/ -public X_AD_TreeNodePR (Properties ctx, int AD_TreeNodePR_ID, String trxName) -{ -super (ctx, AD_TreeNodePR_ID, trxName); -/** if (AD_TreeNodePR_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodePR (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodePR */ -public static final String Table_Name="AD_TreeNodePR"; - -/** AD_Table_ID=453 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodePR[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID <= 0) set_Value ("Parent_ID", null); - else -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodePR (Properties ctx, int AD_TreeNodePR_ID, String trxName) + { + super (ctx, AD_TreeNodePR_ID, trxName); + /** if (AD_TreeNodePR_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodePR (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodePR[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID <= 0) set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU1.java b/base/src/org/compiere/model/X_AD_TreeNodeU1.java index 98c4607bb0..7facda2260 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU1.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU1.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeU1 - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeU1 extends PO + +/** Generated Model for AD_TreeNodeU1 + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeU1 extends PO implements I_AD_TreeNodeU1, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeU1_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeU1 (Properties ctx, int AD_TreeNodeU1_ID, String trxName) -{ -super (ctx, AD_TreeNodeU1_ID, trxName); -/** if (AD_TreeNodeU1_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeU1 (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeU1 */ -public static final String Table_Name="AD_TreeNodeU1"; - -/** AD_Table_ID=852 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU1[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeU1 (Properties ctx, int AD_TreeNodeU1_ID, String trxName) + { + super (ctx, AD_TreeNodeU1_ID, trxName); + /** if (AD_TreeNodeU1_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeU1 (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU1[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU2.java b/base/src/org/compiere/model/X_AD_TreeNodeU2.java index 375e4884cb..7bf5656790 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU2.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU2.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeU2 - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeU2 extends PO + +/** Generated Model for AD_TreeNodeU2 + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeU2 extends PO implements I_AD_TreeNodeU2, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeU2_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeU2 (Properties ctx, int AD_TreeNodeU2_ID, String trxName) -{ -super (ctx, AD_TreeNodeU2_ID, trxName); -/** if (AD_TreeNodeU2_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeU2 (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeU2 */ -public static final String Table_Name="AD_TreeNodeU2"; - -/** AD_Table_ID=851 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU2[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeU2 (Properties ctx, int AD_TreeNodeU2_ID, String trxName) + { + super (ctx, AD_TreeNodeU2_ID, trxName); + /** if (AD_TreeNodeU2_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeU2 (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU2[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU3.java b/base/src/org/compiere/model/X_AD_TreeNodeU3.java index cac5e02c60..967ed17f0e 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU3.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU3.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeU3 - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeU3 extends PO + +/** Generated Model for AD_TreeNodeU3 + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeU3 extends PO implements I_AD_TreeNodeU3, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeU3_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeU3 (Properties ctx, int AD_TreeNodeU3_ID, String trxName) -{ -super (ctx, AD_TreeNodeU3_ID, trxName); -/** if (AD_TreeNodeU3_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeU3 (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeU3 */ -public static final String Table_Name="AD_TreeNodeU3"; - -/** AD_Table_ID=850 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU3[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeU3 (Properties ctx, int AD_TreeNodeU3_ID, String trxName) + { + super (ctx, AD_TreeNodeU3_ID, trxName); + /** if (AD_TreeNodeU3_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeU3 (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU3[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_TreeNodeU4.java b/base/src/org/compiere/model/X_AD_TreeNodeU4.java index 0e7c514398..40896ebe76 100644 --- a/base/src/org/compiere/model/X_AD_TreeNodeU4.java +++ b/base/src/org/compiere/model/X_AD_TreeNodeU4.java @@ -1,160 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_TreeNodeU4 - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_TreeNodeU4 extends PO + +/** Generated Model for AD_TreeNodeU4 + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_TreeNodeU4 extends PO implements I_AD_TreeNodeU4, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_TreeNodeU4_ID id -@param trxName transaction -*/ -public X_AD_TreeNodeU4 (Properties ctx, int AD_TreeNodeU4_ID, String trxName) -{ -super (ctx, AD_TreeNodeU4_ID, trxName); -/** if (AD_TreeNodeU4_ID == 0) -{ -setAD_Tree_ID (0); -setNode_ID (0); -setParent_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_TreeNodeU4 (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_TreeNodeU4 */ -public static final String Table_Name="AD_TreeNodeU4"; - -/** AD_Table_ID=849 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU4[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Node_ID. -@param Node_ID Node_ID */ -public void setNode_ID (int Node_ID) -{ -if (Node_ID < 0) throw new IllegalArgumentException ("Node_ID is mandatory."); -set_ValueNoCheck ("Node_ID", Integer.valueOf(Node_ID)); -} -/** Get Node_ID. -@return Node_ID */ -public int getNode_ID() -{ -Integer ii = (Integer)get_Value("Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Node_ID */ -public static final String COLUMNNAME_Node_ID = "Node_ID"; -/** Set Parent. -@param Parent_ID Parent of Entity */ -public void setParent_ID (int Parent_ID) -{ -if (Parent_ID < 1) throw new IllegalArgumentException ("Parent_ID is mandatory."); -set_Value ("Parent_ID", Integer.valueOf(Parent_ID)); -} -/** Get Parent. -@return Parent of Entity */ -public int getParent_ID() -{ -Integer ii = (Integer)get_Value("Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_ID */ -public static final String COLUMNNAME_Parent_ID = "Parent_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_TreeNodeU4 (Properties ctx, int AD_TreeNodeU4_ID, String trxName) + { + super (ctx, AD_TreeNodeU4_ID, trxName); + /** if (AD_TreeNodeU4_ID == 0) { setAD_Tree_ID (0); + setNode_ID (0); + setParent_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_TreeNodeU4 (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_TreeNodeU4[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node_ID. + @param Node_ID Node_ID */ + public void setNode_ID (int Node_ID) + { + if (Node_ID < 0) + throw new IllegalArgumentException ("Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Node_ID, Integer.valueOf(Node_ID)); + } + + /** Get Node_ID. +@return Node_ID */ + public int getNode_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID < 1) + throw new IllegalArgumentException ("Parent_ID is mandatory."); + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_User.java b/base/src/org/compiere/model/X_AD_User.java index 446bb57b63..9f247ea53c 100644 --- a/base/src/org/compiere/model/X_AD_User.java +++ b/base/src/org/compiere/model/X_AD_User.java @@ -1,661 +1,776 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_User - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_User extends PO + +/** Generated Model for AD_User + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_User extends PO implements I_AD_User, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_User_ID id -@param trxName transaction -*/ -public X_AD_User (Properties ctx, int AD_User_ID, String trxName) -{ -super (ctx, AD_User_ID, trxName); -/** if (AD_User_ID == 0) -{ -setAD_User_ID (0); -setIsFullBPAccess (true); // Y -setName (null); -setNotificationType (null); // E -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_User (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_User */ -public static final String Table_Name="AD_User"; - -/** AD_Table_ID=114 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_User[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_User (Properties ctx, int AD_User_ID, String trxName) + { + super (ctx, AD_User_ID, trxName); + /** if (AD_User_ID == 0) { setAD_User_ID (0); + setIsFullBPAccess (true); +// Y + setName (null); + setNotificationType (null); +// E +} */ + } + + /** Load Constructor */ + public X_AD_User (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_User[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Birthday. -@param Birthday Birthday or Anniversary day */ -public void setBirthday (Timestamp Birthday) -{ -set_Value ("Birthday", Birthday); -} -/** Get Birthday. -@return Birthday or Anniversary day */ -public Timestamp getBirthday() -{ -return (Timestamp)get_Value("Birthday"); -} -/** Column name Birthday */ -public static final String COLUMNNAME_Birthday = "Birthday"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Greeting. -@param C_Greeting_ID Greeting to print on correspondence */ -public void setC_Greeting_ID (int C_Greeting_ID) -{ -if (C_Greeting_ID <= 0) set_Value ("C_Greeting_ID", null); - else -set_Value ("C_Greeting_ID", Integer.valueOf(C_Greeting_ID)); -} -/** Get Greeting. -@return Greeting to print on correspondence */ -public int getC_Greeting_ID() -{ -Integer ii = (Integer)get_Value("C_Greeting_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Greeting_ID */ -public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; -/** Set Position. -@param C_Job_ID Job Position */ -public void setC_Job_ID (int C_Job_ID) -{ -if (C_Job_ID <= 0) set_Value ("C_Job_ID", null); - else -set_Value ("C_Job_ID", Integer.valueOf(C_Job_ID)); -} -/** Get Position. -@return Job Position */ -public int getC_Job_ID() -{ -Integer ii = (Integer)get_Value("C_Job_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Job_ID */ -public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; -/** Set Comments. -@param Comments Comments or additional information */ -public void setComments (String Comments) -{ -if (Comments != null && Comments.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Comments = Comments.substring(0,1999); -} -set_Value ("Comments", Comments); -} -/** Get Comments. -@return Comments or additional information */ -public String getComments() -{ -return (String)get_Value("Comments"); -} -/** Column name Comments */ -public static final String COLUMNNAME_Comments = "Comments"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Birthday. + @param Birthday + Birthday or Anniversary day + */ + public void setBirthday (Timestamp Birthday) + { + set_Value (COLUMNNAME_Birthday, Birthday); + } + + /** Get Birthday. + @return Birthday or Anniversary day + */ + public Timestamp getBirthday () + { + return (Timestamp)get_Value(COLUMNNAME_Birthday); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Greeting getI_C_Greeting() throws Exception + { + 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 e; + } + return result; + } + + /** Set Greeting. + @param C_Greeting_ID + Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID) + { + if (C_Greeting_ID <= 0) set_Value (COLUMNNAME_C_Greeting_ID, null); + else + set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + } + + /** Get Greeting. + @return Greeting to print on correspondence + */ + public int getC_Greeting_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Job getI_C_Job() throws Exception + { + 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 e; + } + return result; + } + + /** Set Position. + @param C_Job_ID + Job Position + */ + public void setC_Job_ID (int C_Job_ID) + { + if (C_Job_ID <= 0) set_Value (COLUMNNAME_C_Job_ID, null); + else + set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + } + + /** Get Position. + @return Job Position + */ + public int getC_Job_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comments. + @param Comments + Comments or additional information + */ + public void setComments (String Comments) + { + if (Comments != null && Comments.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Comments = Comments.substring(0, 1999); + } + set_Value (COLUMNNAME_Comments, Comments); + } + + /** Get Comments. + @return Comments or additional information + */ + public String getComments () + { + return (String)get_Value(COLUMNNAME_Comments); + } /** ConnectionProfile AD_Reference_ID=364 */ -public static final int CONNECTIONPROFILE_AD_Reference_ID=364; -/** LAN = L */ -public static final String CONNECTIONPROFILE_LAN = "L"; -/** Terminal Server = T */ -public static final String CONNECTIONPROFILE_TerminalServer = "T"; -/** VPN = V */ -public static final String CONNECTIONPROFILE_VPN = "V"; -/** WAN = W */ +public static final int CONNECTIONPROFILE_AD_Reference_ID=364;/** LAN = L */ +public static final String CONNECTIONPROFILE_LAN = "L";/** Terminal Server = T */ +public static final String CONNECTIONPROFILE_TerminalServer = "T";/** VPN = V */ +public static final String CONNECTIONPROFILE_VPN = "V";/** WAN = W */ public static final String CONNECTIONPROFILE_WAN = "W"; -/** Set Connection Profile. -@param ConnectionProfile How a Java Client connects to the server(s) */ -public void setConnectionProfile (String ConnectionProfile) -{ -if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); - else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); -if (ConnectionProfile != null && ConnectionProfile.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConnectionProfile = ConnectionProfile.substring(0,0); -} -set_Value ("ConnectionProfile", ConnectionProfile); -} -/** Get Connection Profile. -@return How a Java Client connects to the server(s) */ -public String getConnectionProfile() -{ -return (String)get_Value("ConnectionProfile"); -} -/** Column name ConnectionProfile */ -public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set EMail User ID. -@param EMailUser User Name (ID) in the Mail System */ -public void setEMailUser (String EMailUser) -{ -if (EMailUser != null && EMailUser.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMailUser = EMailUser.substring(0,59); -} -set_Value ("EMailUser", EMailUser); -} -/** Get EMail User ID. -@return User Name (ID) in the Mail System */ -public String getEMailUser() -{ -return (String)get_Value("EMailUser"); -} -/** Column name EMailUser */ -public static final String COLUMNNAME_EMailUser = "EMailUser"; -/** Set EMail User Password. -@param EMailUserPW Password of your email user id */ -public void setEMailUserPW (String EMailUserPW) -{ -if (EMailUserPW != null && EMailUserPW.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EMailUserPW = EMailUserPW.substring(0,19); -} -set_Value ("EMailUserPW", EMailUserPW); -} -/** Get EMail User Password. -@return Password of your email user id */ -public String getEMailUserPW() -{ -return (String)get_Value("EMailUserPW"); -} -/** Column name EMailUserPW */ -public static final String COLUMNNAME_EMailUserPW = "EMailUserPW"; -/** Set Verification Info. -@param EMailVerify Verification information of EMail Address */ -public void setEMailVerify (String EMailVerify) -{ -if (EMailVerify != null && EMailVerify.length() > 40) -{ -log.warning("Length > 40 - truncated"); -EMailVerify = EMailVerify.substring(0,39); -} -set_ValueNoCheck ("EMailVerify", EMailVerify); -} -/** Get Verification Info. -@return Verification information of EMail Address */ -public String getEMailVerify() -{ -return (String)get_Value("EMailVerify"); -} -/** Column name EMailVerify */ -public static final String COLUMNNAME_EMailVerify = "EMailVerify"; -/** Set EMail Verify. -@param EMailVerifyDate Date Email was verified */ -public void setEMailVerifyDate (Timestamp EMailVerifyDate) -{ -set_ValueNoCheck ("EMailVerifyDate", EMailVerifyDate); -} -/** Get EMail Verify. -@return Date Email was verified */ -public Timestamp getEMailVerifyDate() -{ -return (Timestamp)get_Value("EMailVerifyDate"); -} -/** Column name EMailVerifyDate */ -public static final String COLUMNNAME_EMailVerifyDate = "EMailVerifyDate"; -/** Set Fax. -@param Fax Facsimile number */ -public void setFax (String Fax) -{ -if (Fax != null && Fax.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Fax = Fax.substring(0,39); -} -set_Value ("Fax", Fax); -} -/** Get Fax. -@return Facsimile number */ -public String getFax() -{ -return (String)get_Value("Fax"); -} -/** Column name Fax */ -public static final String COLUMNNAME_Fax = "Fax"; -/** Set Full BP Access. -@param IsFullBPAccess The user/concat has full access to Business Partner information and resources */ -public void setIsFullBPAccess (boolean IsFullBPAccess) -{ -set_Value ("IsFullBPAccess", Boolean.valueOf(IsFullBPAccess)); -} -/** Get Full BP Access. -@return The user/concat has full access to Business Partner information and resources */ -public boolean isFullBPAccess() -{ -Object oo = get_Value("IsFullBPAccess"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFullBPAccess */ -public static final String COLUMNNAME_IsFullBPAccess = "IsFullBPAccess"; -/** Set LDAP User Name. -@param LDAPUser User Name used for authorization via LDAP (directory) services */ -public void setLDAPUser (String LDAPUser) -{ -if (LDAPUser != null && LDAPUser.length() > 60) -{ -log.warning("Length > 60 - truncated"); -LDAPUser = LDAPUser.substring(0,59); -} -set_Value ("LDAPUser", LDAPUser); -} -/** Get LDAP User Name. -@return User Name used for authorization via LDAP (directory) services */ -public String getLDAPUser() -{ -return (String)get_Value("LDAPUser"); -} -/** Column name LDAPUser */ -public static final String COLUMNNAME_LDAPUser = "LDAPUser"; -/** Set Last Contact. -@param LastContact Date this individual was last contacted */ -public void setLastContact (Timestamp LastContact) -{ -set_Value ("LastContact", LastContact); -} -/** Get Last Contact. -@return Date this individual was last contacted */ -public Timestamp getLastContact() -{ -return (Timestamp)get_Value("LastContact"); -} -/** Column name LastContact */ -public static final String COLUMNNAME_LastContact = "LastContact"; -/** Set Last Result. -@param LastResult Result of last contact */ -public void setLastResult (String LastResult) -{ -if (LastResult != null && LastResult.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LastResult = LastResult.substring(0,254); -} -set_Value ("LastResult", LastResult); -} -/** Get Last Result. -@return Result of last contact */ -public String getLastResult() -{ -return (String)get_Value("LastResult"); -} -/** Column name LastResult */ -public static final String COLUMNNAME_LastResult = "LastResult"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Connection Profile. + @param ConnectionProfile + How a Java Client connects to the server(s) + */ + public void setConnectionProfile (String ConnectionProfile) + { +if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); if (ConnectionProfile != null && ConnectionProfile.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConnectionProfile = ConnectionProfile.substring(0, 0); + } + set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile); + } + + /** Get Connection Profile. + @return How a Java Client connects to the server(s) + */ + public String getConnectionProfile () + { + return (String)get_Value(COLUMNNAME_ConnectionProfile); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set EMail User ID. + @param EMailUser + User Name (ID) in the Mail System + */ + public void setEMailUser (String EMailUser) + { + if (EMailUser != null && EMailUser.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMailUser = EMailUser.substring(0, 59); + } + set_Value (COLUMNNAME_EMailUser, EMailUser); + } + + /** Get EMail User ID. + @return User Name (ID) in the Mail System + */ + public String getEMailUser () + { + return (String)get_Value(COLUMNNAME_EMailUser); + } + + /** Set EMail User Password. + @param EMailUserPW + Password of your email user id + */ + public void setEMailUserPW (String EMailUserPW) + { + if (EMailUserPW != null && EMailUserPW.length() > 20) + { + log.warning("Length > 20 - truncated"); + EMailUserPW = EMailUserPW.substring(0, 19); + } + set_Value (COLUMNNAME_EMailUserPW, EMailUserPW); + } + + /** Get EMail User Password. + @return Password of your email user id + */ + public String getEMailUserPW () + { + return (String)get_Value(COLUMNNAME_EMailUserPW); + } + + /** Set Verification Info. + @param EMailVerify + Verification information of EMail Address + */ + public void setEMailVerify (String EMailVerify) + { + if (EMailVerify != null && EMailVerify.length() > 40) + { + log.warning("Length > 40 - truncated"); + EMailVerify = EMailVerify.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_EMailVerify, EMailVerify); + } + + /** Get Verification Info. + @return Verification information of EMail Address + */ + public String getEMailVerify () + { + return (String)get_Value(COLUMNNAME_EMailVerify); + } + + /** Set EMail Verify. + @param EMailVerifyDate + Date Email was verified + */ + public void setEMailVerifyDate (Timestamp EMailVerifyDate) + { + set_ValueNoCheck (COLUMNNAME_EMailVerifyDate, EMailVerifyDate); + } + + /** Get EMail Verify. + @return Date Email was verified + */ + public Timestamp getEMailVerifyDate () + { + return (Timestamp)get_Value(COLUMNNAME_EMailVerifyDate); + } + + /** Set Fax. + @param Fax + Facsimile number + */ + public void setFax (String Fax) + { + if (Fax != null && Fax.length() > 40) + { + log.warning("Length > 40 - truncated"); + Fax = Fax.substring(0, 39); + } + set_Value (COLUMNNAME_Fax, Fax); + } + + /** Get Fax. + @return Facsimile number + */ + public String getFax () + { + return (String)get_Value(COLUMNNAME_Fax); + } + + /** Set Full BP Access. + @param IsFullBPAccess + The user/concat has full access to Business Partner information and resources + */ + public void setIsFullBPAccess (boolean IsFullBPAccess) + { + set_Value (COLUMNNAME_IsFullBPAccess, Boolean.valueOf(IsFullBPAccess)); + } + + /** Get Full BP Access. + @return The user/concat has full access to Business Partner information and resources + */ + public boolean isFullBPAccess () + { + Object oo = get_Value(COLUMNNAME_IsFullBPAccess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set LDAP User Name. + @param LDAPUser + User Name used for authorization via LDAP (directory) services + */ + public void setLDAPUser (String LDAPUser) + { + if (LDAPUser != null && LDAPUser.length() > 60) + { + log.warning("Length > 60 - truncated"); + LDAPUser = LDAPUser.substring(0, 59); + } + set_Value (COLUMNNAME_LDAPUser, LDAPUser); + } + + /** Get LDAP User Name. + @return User Name used for authorization via LDAP (directory) services + */ + public String getLDAPUser () + { + return (String)get_Value(COLUMNNAME_LDAPUser); + } + + /** Set Last Contact. + @param LastContact + Date this individual was last contacted + */ + public void setLastContact (Timestamp LastContact) + { + set_Value (COLUMNNAME_LastContact, LastContact); + } + + /** Get Last Contact. + @return Date this individual was last contacted + */ + public Timestamp getLastContact () + { + return (Timestamp)get_Value(COLUMNNAME_LastContact); + } + + /** Set Last Result. + @param LastResult + Result of last contact + */ + public void setLastResult (String LastResult) + { + if (LastResult != null && LastResult.length() > 255) + { + log.warning("Length > 255 - truncated"); + LastResult = LastResult.substring(0, 254); + } + set_Value (COLUMNNAME_LastResult, LastResult); + } + + /** Get Last Result. + @return Result of last contact + */ + public String getLastResult () + { + return (String)get_Value(COLUMNNAME_LastResult); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** NotificationType AD_Reference_ID=344 */ -public static final int NOTIFICATIONTYPE_AD_Reference_ID=344; -/** EMail+Notice = B */ -public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B"; -/** EMail = E */ -public static final String NOTIFICATIONTYPE_EMail = "E"; -/** Notice = N */ -public static final String NOTIFICATIONTYPE_Notice = "N"; -/** None = X */ +public static final int NOTIFICATIONTYPE_AD_Reference_ID=344;/** EMail+Notice = B */ +public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B";/** EMail = E */ +public static final String NOTIFICATIONTYPE_EMail = "E";/** Notice = N */ +public static final String NOTIFICATIONTYPE_Notice = "N";/** None = X */ public static final String NOTIFICATIONTYPE_None = "X"; -/** Set Notification Type. -@param NotificationType Type of Notifications */ -public void setNotificationType (String NotificationType) -{ -if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory"); -if (NotificationType.equals("B") || NotificationType.equals("E") || NotificationType.equals("N") || NotificationType.equals("X")); - else throw new IllegalArgumentException ("NotificationType Invalid value - " + NotificationType + " - Reference_ID=344 - B - E - N - X"); -if (NotificationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -NotificationType = NotificationType.substring(0,0); -} -set_Value ("NotificationType", NotificationType); -} -/** Get Notification Type. -@return Type of Notifications */ -public String getNotificationType() -{ -return (String)get_Value("NotificationType"); -} -/** Column name NotificationType */ -public static final String COLUMNNAME_NotificationType = "NotificationType"; -/** Set Password. -@param Password Password of any length (case sensitive) */ -public void setPassword (String Password) -{ -if (Password != null && Password.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Password = Password.substring(0,39); -} -set_Value ("Password", Password); -} -/** Get Password. -@return Password of any length (case sensitive) */ -public String getPassword() -{ -return (String)get_Value("Password"); -} -/** Column name Password */ -public static final String COLUMNNAME_Password = "Password"; -/** Set Phone. -@param Phone Identifies a telephone number */ -public void setPhone (String Phone) -{ -if (Phone != null && Phone.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone = Phone.substring(0,39); -} -set_Value ("Phone", Phone); -} -/** Get Phone. -@return Identifies a telephone number */ -public String getPhone() -{ -return (String)get_Value("Phone"); -} -/** Column name Phone */ -public static final String COLUMNNAME_Phone = "Phone"; -/** Set 2nd Phone. -@param Phone2 Identifies an alternate telephone number. */ -public void setPhone2 (String Phone2) -{ -if (Phone2 != null && Phone2.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone2 = Phone2.substring(0,39); -} -set_Value ("Phone2", Phone2); -} -/** Get 2nd Phone. -@return Identifies an alternate telephone number. */ -public String getPhone2() -{ -return (String)get_Value("Phone2"); -} -/** Column name Phone2 */ -public static final String COLUMNNAME_Phone2 = "Phone2"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Notification Type. + @param NotificationType + Type of Notifications + */ + public void setNotificationType (String NotificationType) + { +if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory");if (NotificationType.equals("B") || NotificationType.equals("E") || NotificationType.equals("N") || NotificationType.equals("X")); else throw new IllegalArgumentException ("NotificationType Invalid value - " + NotificationType + " - Reference_ID=344 - B - E - N - X"); if (NotificationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + NotificationType = NotificationType.substring(0, 0); + } + set_Value (COLUMNNAME_NotificationType, NotificationType); + } + + /** Get Notification Type. + @return Type of Notifications + */ + public String getNotificationType () + { + return (String)get_Value(COLUMNNAME_NotificationType); + } + + /** Set Password. + @param Password + Password of any length (case sensitive) + */ + public void setPassword (String Password) + { + if (Password != null && Password.length() > 40) + { + log.warning("Length > 40 - truncated"); + Password = Password.substring(0, 39); + } + set_Value (COLUMNNAME_Password, Password); + } + + /** Get Password. + @return Password of any length (case sensitive) + */ + public String getPassword () + { + return (String)get_Value(COLUMNNAME_Password); + } + + /** Set Phone. + @param Phone + Identifies a telephone number + */ + public void setPhone (String Phone) + { + if (Phone != null && Phone.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone = Phone.substring(0, 39); + } + set_Value (COLUMNNAME_Phone, Phone); + } + + /** Get Phone. + @return Identifies a telephone number + */ + public String getPhone () + { + return (String)get_Value(COLUMNNAME_Phone); + } + + /** Set 2nd Phone. + @param Phone2 + Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2) + { + if (Phone2 != null && Phone2.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone2 = Phone2.substring(0, 39); + } + set_Value (COLUMNNAME_Phone2, Phone2); + } + + /** Get 2nd Phone. + @return Identifies an alternate telephone number. + */ + public String getPhone2 () + { + return (String)get_Value(COLUMNNAME_Phone2); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** Supervisor_ID AD_Reference_ID=110 */ public static final int SUPERVISOR_ID_AD_Reference_ID=110; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID <= 0) set_Value ("Supervisor_ID", null); - else -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title != null && Title.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Title = Title.substring(0,39); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value != null && Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID <= 0) set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title != null && Title.length() > 40) + { + log.warning("Length > 40 - truncated"); + Title = Title.substring(0, 39); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value != null && Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserBPAccess.java b/base/src/org/compiere/model/X_AD_UserBPAccess.java index 664009ca42..2d1c309b1d 100644 --- a/base/src/org/compiere/model/X_AD_UserBPAccess.java +++ b/base/src/org/compiere/model/X_AD_UserBPAccess.java @@ -1,243 +1,231 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_UserBPAccess - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_UserBPAccess extends PO + +/** Generated Model for AD_UserBPAccess + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_UserBPAccess_ID id -@param trxName transaction -*/ -public X_AD_UserBPAccess (Properties ctx, int AD_UserBPAccess_ID, String trxName) -{ -super (ctx, AD_UserBPAccess_ID, trxName); -/** if (AD_UserBPAccess_ID == 0) -{ -setAD_UserBPAccess_ID (0); -setAD_User_ID (0); -setBPAccessType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_UserBPAccess (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_UserBPAccess */ -public static final String Table_Name="AD_UserBPAccess"; - -/** AD_Table_ID=813 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_UserBPAccess[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User BP Access. -@param AD_UserBPAccess_ID User/concat access to Business Partner information and resources */ -public void setAD_UserBPAccess_ID (int AD_UserBPAccess_ID) -{ -if (AD_UserBPAccess_ID < 1) throw new IllegalArgumentException ("AD_UserBPAccess_ID is mandatory."); -set_ValueNoCheck ("AD_UserBPAccess_ID", Integer.valueOf(AD_UserBPAccess_ID)); -} -/** Get User BP Access. -@return User/concat access to Business Partner information and resources */ -public int getAD_UserBPAccess_ID() -{ -Integer ii = (Integer)get_Value("AD_UserBPAccess_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserBPAccess_ID */ -public static final String COLUMNNAME_AD_UserBPAccess_ID = "AD_UserBPAccess_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserBPAccess (Properties ctx, int AD_UserBPAccess_ID, String trxName) + { + super (ctx, AD_UserBPAccess_ID, trxName); + /** if (AD_UserBPAccess_ID == 0) { setAD_UserBPAccess_ID (0); + setAD_User_ID (0); + setBPAccessType (null); +} */ + } + + /** Load Constructor */ + public X_AD_UserBPAccess (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_UserBPAccess[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User BP Access. + @param AD_UserBPAccess_ID + User/concat access to Business Partner information and resources + */ + public void setAD_UserBPAccess_ID (int AD_UserBPAccess_ID) + { + if (AD_UserBPAccess_ID < 1) + throw new IllegalArgumentException ("AD_UserBPAccess_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserBPAccess_ID, Integer.valueOf(AD_UserBPAccess_ID)); + } + + /** Get User BP Access. + @return User/concat access to Business Partner information and resources + */ + public int getAD_UserBPAccess_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserBPAccess_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** BPAccessType AD_Reference_ID=358 */ -public static final int BPACCESSTYPE_AD_Reference_ID=358; -/** Assets, Download = A */ -public static final String BPACCESSTYPE_AssetsDownload = "A"; -/** Business Documents = B */ -public static final String BPACCESSTYPE_BusinessDocuments = "B"; -/** Requests = R */ +public static final int BPACCESSTYPE_AD_Reference_ID=358;/** Assets, Download = A */ +public static final String BPACCESSTYPE_AssetsDownload = "A";/** Business Documents = B */ +public static final String BPACCESSTYPE_BusinessDocuments = "B";/** Requests = R */ public static final String BPACCESSTYPE_Requests = "R"; -/** Set Access Type. -@param BPAccessType Type of Access of the user/contact to Business Partner information and resources */ -public void setBPAccessType (String BPAccessType) -{ -if (BPAccessType == null) throw new IllegalArgumentException ("BPAccessType is mandatory"); -if (BPAccessType.equals("A") || BPAccessType.equals("B") || BPAccessType.equals("R")); - else throw new IllegalArgumentException ("BPAccessType Invalid value - " + BPAccessType + " - Reference_ID=358 - A - B - R"); -if (BPAccessType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BPAccessType = BPAccessType.substring(0,0); -} -set_Value ("BPAccessType", BPAccessType); -} -/** Get Access Type. -@return Type of Access of the user/contact to Business Partner information and resources */ -public String getBPAccessType() -{ -return (String)get_Value("BPAccessType"); -} -/** Column name BPAccessType */ -public static final String COLUMNNAME_BPAccessType = "BPAccessType"; + /** Set Access Type. + @param BPAccessType + Type of Access of the user/contact to Business Partner information and resources + */ + public void setBPAccessType (String BPAccessType) + { +if (BPAccessType == null) throw new IllegalArgumentException ("BPAccessType is mandatory");if (BPAccessType.equals("A") || BPAccessType.equals("B") || BPAccessType.equals("R")); else throw new IllegalArgumentException ("BPAccessType Invalid value - " + BPAccessType + " - Reference_ID=358 - A - B - R"); if (BPAccessType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BPAccessType = BPAccessType.substring(0, 0); + } + set_Value (COLUMNNAME_BPAccessType, BPAccessType); + } + + /** Get Access Type. + @return Type of Access of the user/contact to Business Partner information and resources + */ + public String getBPAccessType () + { + return (String)get_Value(COLUMNNAME_BPAccessType); + } /** DocBaseType AD_Reference_ID=183 */ -public static final int DOCBASETYPE_AD_Reference_ID=183; -/** AP Credit Memo = APC */ -public static final String DOCBASETYPE_APCreditMemo = "APC"; -/** AP Invoice = API */ -public static final String DOCBASETYPE_APInvoice = "API"; -/** AP Payment = APP */ -public static final String DOCBASETYPE_APPayment = "APP"; -/** AR Credit Memo = ARC */ -public static final String DOCBASETYPE_ARCreditMemo = "ARC"; -/** AR Pro Forma Invoice = ARF */ -public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; -/** AR Invoice = ARI */ -public static final String DOCBASETYPE_ARInvoice = "ARI"; -/** AR Receipt = ARR */ -public static final String DOCBASETYPE_ARReceipt = "ARR"; -/** Payment Allocation = CMA */ -public static final String DOCBASETYPE_PaymentAllocation = "CMA"; -/** Bank Statement = CMB */ -public static final String DOCBASETYPE_BankStatement = "CMB"; -/** Cash Journal = CMC */ -public static final String DOCBASETYPE_CashJournal = "CMC"; -/** GL Document = GLD */ -public static final String DOCBASETYPE_GLDocument = "GLD"; -/** GL Journal = GLJ */ -public static final String DOCBASETYPE_GLJournal = "GLJ"; -/** Material Physical Inventory = MMI */ -public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; -/** Material Movement = MMM */ -public static final String DOCBASETYPE_MaterialMovement = "MMM"; -/** Material Production = MMP */ -public static final String DOCBASETYPE_MaterialProduction = "MMP"; -/** Material Receipt = MMR */ -public static final String DOCBASETYPE_MaterialReceipt = "MMR"; -/** Material Delivery = MMS */ -public static final String DOCBASETYPE_MaterialDelivery = "MMS"; -/** Match Invoice = MXI */ -public static final String DOCBASETYPE_MatchInvoice = "MXI"; -/** Match PO = MXP */ -public static final String DOCBASETYPE_MatchPO = "MXP"; -/** Project Issue = PJI */ -public static final String DOCBASETYPE_ProjectIssue = "PJI"; -/** Purchase Order = POO */ -public static final String DOCBASETYPE_PurchaseOrder = "POO"; -/** Purchase Requisition = POR */ -public static final String DOCBASETYPE_PurchaseRequisition = "POR"; -/** Sales Order = SOO */ +public static final int DOCBASETYPE_AD_Reference_ID=183;/** AP Credit Memo = APC */ +public static final String DOCBASETYPE_APCreditMemo = "APC";/** AP Invoice = API */ +public static final String DOCBASETYPE_APInvoice = "API";/** AP Payment = APP */ +public static final String DOCBASETYPE_APPayment = "APP";/** AR Credit Memo = ARC */ +public static final String DOCBASETYPE_ARCreditMemo = "ARC";/** AR Pro Forma Invoice = ARF */ +public static final String DOCBASETYPE_ARProFormaInvoice = "ARF";/** AR Invoice = ARI */ +public static final String DOCBASETYPE_ARInvoice = "ARI";/** AR Receipt = ARR */ +public static final String DOCBASETYPE_ARReceipt = "ARR";/** Payment Allocation = CMA */ +public static final String DOCBASETYPE_PaymentAllocation = "CMA";/** Bank Statement = CMB */ +public static final String DOCBASETYPE_BankStatement = "CMB";/** Cash Journal = CMC */ +public static final String DOCBASETYPE_CashJournal = "CMC";/** GL Document = GLD */ +public static final String DOCBASETYPE_GLDocument = "GLD";/** GL Journal = GLJ */ +public static final String DOCBASETYPE_GLJournal = "GLJ";/** Material Physical Inventory = MMI */ +public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI";/** Material Movement = MMM */ +public static final String DOCBASETYPE_MaterialMovement = "MMM";/** Material Production = MMP */ +public static final String DOCBASETYPE_MaterialProduction = "MMP";/** Material Receipt = MMR */ +public static final String DOCBASETYPE_MaterialReceipt = "MMR";/** Material Delivery = MMS */ +public static final String DOCBASETYPE_MaterialDelivery = "MMS";/** Match Invoice = MXI */ +public static final String DOCBASETYPE_MatchInvoice = "MXI";/** Match PO = MXP */ +public static final String DOCBASETYPE_MatchPO = "MXP";/** Project Issue = PJI */ +public static final String DOCBASETYPE_ProjectIssue = "PJI";/** Purchase Order = POO */ +public static final String DOCBASETYPE_PurchaseOrder = "POO";/** Purchase Requisition = POR */ +public static final String DOCBASETYPE_PurchaseRequisition = "POR";/** Sales Order = SOO */ public static final String DOCBASETYPE_SalesOrder = "SOO"; -/** Set Document BaseType. -@param DocBaseType Logical type of document */ -public void setDocBaseType (String DocBaseType) -{ -if (DocBaseType == null || DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); - else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); -if (DocBaseType != null && DocBaseType.length() > 10) -{ -log.warning("Length > 10 - truncated"); -DocBaseType = DocBaseType.substring(0,9); -} -set_Value ("DocBaseType", DocBaseType); -} -/** Get Document BaseType. -@return Logical type of document */ -public String getDocBaseType() -{ -return (String)get_Value("DocBaseType"); -} -/** Column name DocBaseType */ -public static final String COLUMNNAME_DocBaseType = "DocBaseType"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_Value ("R_RequestType_ID", null); - else -set_Value ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -} + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { +if (DocBaseType == null || DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); if (DocBaseType != null && DocBaseType.length() > 10) + { + log.warning("Length > 10 - truncated"); + DocBaseType = DocBaseType.substring(0, 9); + } + set_Value (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserDef_Field.java b/base/src/org/compiere/model/X_AD_UserDef_Field.java index c93327a742..70164388ec 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Field.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Field.java @@ -1,382 +1,451 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_UserDef_Field - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_UserDef_Field extends PO + +/** Generated Model for AD_UserDef_Field + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_UserDef_Field_ID id -@param trxName transaction -*/ -public X_AD_UserDef_Field (Properties ctx, int AD_UserDef_Field_ID, String trxName) -{ -super (ctx, AD_UserDef_Field_ID, trxName); -/** if (AD_UserDef_Field_ID == 0) -{ -setAD_Field_ID (0); -setAD_UserDef_Field_ID (0); -setAD_UserDef_Tab_ID (0); -setDefaultValue (null); -setIsDisplayed (false); -setIsReadOnly (false); -setIsSameLine (false); -setName (null); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_UserDef_Field (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_UserDef_Field */ -public static final String Table_Name="AD_UserDef_Field"; - -/** AD_Table_ID=464 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_UserDef_Field[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Field. -@param AD_Field_ID Field on a database table */ -public void setAD_Field_ID (int AD_Field_ID) -{ -if (AD_Field_ID < 1) throw new IllegalArgumentException ("AD_Field_ID is mandatory."); -set_Value ("AD_Field_ID", Integer.valueOf(AD_Field_ID)); -} -/** Get Field. -@return Field on a database table */ -public int getAD_Field_ID() -{ -Integer ii = (Integer)get_Value("AD_Field_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Field_ID */ -public static final String COLUMNNAME_AD_Field_ID = "AD_Field_ID"; -/** Set User defined Field. -@param AD_UserDef_Field_ID User defined Field */ -public void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID) -{ -if (AD_UserDef_Field_ID < 1) throw new IllegalArgumentException ("AD_UserDef_Field_ID is mandatory."); -set_ValueNoCheck ("AD_UserDef_Field_ID", Integer.valueOf(AD_UserDef_Field_ID)); -} -/** Get User defined Field. -@return User defined Field */ -public int getAD_UserDef_Field_ID() -{ -Integer ii = (Integer)get_Value("AD_UserDef_Field_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserDef_Field_ID */ -public static final String COLUMNNAME_AD_UserDef_Field_ID = "AD_UserDef_Field_ID"; -/** Set User defined Tab. -@param AD_UserDef_Tab_ID User defined Tab */ -public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) -{ -if (AD_UserDef_Tab_ID < 1) throw new IllegalArgumentException ("AD_UserDef_Tab_ID is mandatory."); -set_ValueNoCheck ("AD_UserDef_Tab_ID", Integer.valueOf(AD_UserDef_Tab_ID)); -} -/** Get User defined Tab. -@return User defined Tab */ -public int getAD_UserDef_Tab_ID() -{ -Integer ii = (Integer)get_Value("AD_UserDef_Tab_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserDef_Tab_ID */ -public static final String COLUMNNAME_AD_UserDef_Tab_ID = "AD_UserDef_Tab_ID"; -/** Set Default Logic. -@param DefaultValue Default value hierarchy, separated by ; - */ -public void setDefaultValue (String DefaultValue) -{ -if (DefaultValue == null) throw new IllegalArgumentException ("DefaultValue is mandatory."); -if (DefaultValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DefaultValue = DefaultValue.substring(0,1999); -} -set_Value ("DefaultValue", DefaultValue); -} -/** Get Default Logic. -@return Default value hierarchy, separated by ; - */ -public String getDefaultValue() -{ -return (String)get_Value("DefaultValue"); -} -/** Column name DefaultValue */ -public static final String COLUMNNAME_DefaultValue = "DefaultValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Display Length. -@param DisplayLength Length of the display in characters */ -public void setDisplayLength (int DisplayLength) -{ -set_Value ("DisplayLength", Integer.valueOf(DisplayLength)); -} -/** Get Display Length. -@return Length of the display in characters */ -public int getDisplayLength() -{ -Integer ii = (Integer)get_Value("DisplayLength"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DisplayLength */ -public static final String COLUMNNAME_DisplayLength = "DisplayLength"; -/** Set Display Logic. -@param DisplayLogic If the Field is displayed, the result determines if the field is actually displayed */ -public void setDisplayLogic (String DisplayLogic) -{ -if (DisplayLogic != null && DisplayLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DisplayLogic = DisplayLogic.substring(0,1999); -} -set_Value ("DisplayLogic", DisplayLogic); -} -/** Get Display Logic. -@return If the Field is displayed, the result determines if the field is actually displayed */ -public String getDisplayLogic() -{ -return (String)get_Value("DisplayLogic"); -} -/** Column name DisplayLogic */ -public static final String COLUMNNAME_DisplayLogic = "DisplayLogic"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Displayed. -@param IsDisplayed Determines, if this field is displayed */ -public void setIsDisplayed (boolean IsDisplayed) -{ -set_Value ("IsDisplayed", Boolean.valueOf(IsDisplayed)); -} -/** Get Displayed. -@return Determines, if this field is displayed */ -public boolean isDisplayed() -{ -Object oo = get_Value("IsDisplayed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDisplayed */ -public static final String COLUMNNAME_IsDisplayed = "IsDisplayed"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Same Line. -@param IsSameLine Displayed on same line as previous field */ -public void setIsSameLine (boolean IsSameLine) -{ -set_Value ("IsSameLine", Boolean.valueOf(IsSameLine)); -} -/** Get Same Line. -@return Displayed on same line as previous field */ -public boolean isSameLine() -{ -Object oo = get_Value("IsSameLine"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSameLine */ -public static final String COLUMNNAME_IsSameLine = "IsSameLine"; -/** Set Updateable. -@param IsUpdateable Determines, if the field can be updated */ -public void setIsUpdateable (boolean IsUpdateable) -{ -set_Value ("IsUpdateable", Boolean.valueOf(IsUpdateable)); -} -/** Get Updateable. -@return Determines, if the field can be updated */ -public boolean isUpdateable() -{ -Object oo = get_Value("IsUpdateable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUpdateable */ -public static final String COLUMNNAME_IsUpdateable = "IsUpdateable"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Record Sort No. -@param SortNo Determines in what order the records are displayed */ -public void setSortNo (int SortNo) -{ -set_Value ("SortNo", Integer.valueOf(SortNo)); -} -/** Get Record Sort No. -@return Determines in what order the records are displayed */ -public int getSortNo() -{ -Integer ii = (Integer)get_Value("SortNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SortNo */ -public static final String COLUMNNAME_SortNo = "SortNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserDef_Field (Properties ctx, int AD_UserDef_Field_ID, String trxName) + { + super (ctx, AD_UserDef_Field_ID, trxName); + /** if (AD_UserDef_Field_ID == 0) { setAD_Field_ID (0); + setAD_UserDef_Field_ID (0); + setAD_UserDef_Tab_ID (0); + setDefaultValue (null); + setIsDisplayed (false); + setIsReadOnly (false); + setIsSameLine (false); + setName (null); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_UserDef_Field (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_UserDef_Field[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Field getI_AD_Field() throws Exception + { + 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 e; + } + return result; + } + + /** Set Field. + @param AD_Field_ID + Field on a database table + */ + public void setAD_Field_ID (int AD_Field_ID) + { + if (AD_Field_ID < 1) + throw new IllegalArgumentException ("AD_Field_ID is mandatory."); + set_Value (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); + } + + /** Get Field. + @return Field on a database table + */ + public int getAD_Field_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Field_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User defined Field. + @param AD_UserDef_Field_ID User defined Field */ + public void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID) + { + if (AD_UserDef_Field_ID < 1) + throw new IllegalArgumentException ("AD_UserDef_Field_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Field_ID, Integer.valueOf(AD_UserDef_Field_ID)); + } + + /** Get User defined Field. +@return User defined Field */ + public int getAD_UserDef_Field_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Field_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_UserDef_Tab getI_AD_UserDef_Tab() throws Exception + { + Class clazz = MTable.getClass(I_AD_UserDef_Tab.Table_Name); + I_AD_UserDef_Tab result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_UserDef_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_UserDef_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 e; + } + return result; + } + + /** Set User defined Tab. + @param AD_UserDef_Tab_ID User defined Tab */ + public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) + { + if (AD_UserDef_Tab_ID < 1) + throw new IllegalArgumentException ("AD_UserDef_Tab_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, Integer.valueOf(AD_UserDef_Tab_ID)); + } + + /** Get User defined Tab. +@return User defined Tab */ + public int getAD_UserDef_Tab_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Tab_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Default Logic. + @param DefaultValue + Default value hierarchy, separated by ; + */ + public void setDefaultValue (String DefaultValue) + { + if (DefaultValue == null) + throw new IllegalArgumentException ("DefaultValue is mandatory."); + if (DefaultValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DefaultValue = DefaultValue.substring(0, 1999); + } + set_Value (COLUMNNAME_DefaultValue, DefaultValue); + } + + /** Get Default Logic. + @return Default value hierarchy, separated by ; + */ + public String getDefaultValue () + { + return (String)get_Value(COLUMNNAME_DefaultValue); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Display Length. + @param DisplayLength + Length of the display in characters + */ + public void setDisplayLength (int DisplayLength) + { + set_Value (COLUMNNAME_DisplayLength, Integer.valueOf(DisplayLength)); + } + + /** Get Display Length. + @return Length of the display in characters + */ + public int getDisplayLength () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DisplayLength); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Display Logic. + @param DisplayLogic + If the Field is displayed, the result determines if the field is actually displayed + */ + public void setDisplayLogic (String DisplayLogic) + { + if (DisplayLogic != null && DisplayLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DisplayLogic = DisplayLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_DisplayLogic, DisplayLogic); + } + + /** Get Display Logic. + @return If the Field is displayed, the result determines if the field is actually displayed + */ + public String getDisplayLogic () + { + return (String)get_Value(COLUMNNAME_DisplayLogic); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Displayed. + @param IsDisplayed + Determines, if this field is displayed + */ + public void setIsDisplayed (boolean IsDisplayed) + { + set_Value (COLUMNNAME_IsDisplayed, Boolean.valueOf(IsDisplayed)); + } + + /** Get Displayed. + @return Determines, if this field is displayed + */ + public boolean isDisplayed () + { + Object oo = get_Value(COLUMNNAME_IsDisplayed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Same Line. + @param IsSameLine + Displayed on same line as previous field + */ + public void setIsSameLine (boolean IsSameLine) + { + set_Value (COLUMNNAME_IsSameLine, Boolean.valueOf(IsSameLine)); + } + + /** Get Same Line. + @return Displayed on same line as previous field + */ + public boolean isSameLine () + { + Object oo = get_Value(COLUMNNAME_IsSameLine); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Updateable. + @param IsUpdateable + Determines, if the field can be updated + */ + public void setIsUpdateable (boolean IsUpdateable) + { + set_Value (COLUMNNAME_IsUpdateable, Boolean.valueOf(IsUpdateable)); + } + + /** Get Updateable. + @return Determines, if the field can be updated + */ + public boolean isUpdateable () + { + Object oo = get_Value(COLUMNNAME_IsUpdateable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record Sort No. + @param SortNo + Determines in what order the records are displayed + */ + public void setSortNo (int SortNo) + { + set_Value (COLUMNNAME_SortNo, Integer.valueOf(SortNo)); + } + + /** Get Record Sort No. + @return Determines in what order the records are displayed + */ + public int getSortNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SortNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserDef_Tab.java b/base/src/org/compiere/model/X_AD_UserDef_Tab.java index a3e60edc8e..ef1f268ef2 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Tab.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Tab.java @@ -1,269 +1,319 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_UserDef_Tab - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_UserDef_Tab extends PO + +/** Generated Model for AD_UserDef_Tab + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_UserDef_Tab_ID id -@param trxName transaction -*/ -public X_AD_UserDef_Tab (Properties ctx, int AD_UserDef_Tab_ID, String trxName) -{ -super (ctx, AD_UserDef_Tab_ID, trxName); -/** if (AD_UserDef_Tab_ID == 0) -{ -setAD_Tab_ID (0); -setAD_UserDef_Tab_ID (0); -setAD_UserDef_Win_ID (0); -setIsMultiRowOnly (false); -setIsReadOnly (false); -setIsSingleRow (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_UserDef_Tab (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_UserDef_Tab */ -public static final String Table_Name="AD_UserDef_Tab"; - -/** AD_Table_ID=466 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_UserDef_Tab[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tab. -@param AD_Tab_ID Tab within a Window */ -public void setAD_Tab_ID (int AD_Tab_ID) -{ -if (AD_Tab_ID < 1) throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); -set_Value ("AD_Tab_ID", Integer.valueOf(AD_Tab_ID)); -} -/** Get Tab. -@return Tab within a Window */ -public int getAD_Tab_ID() -{ -Integer ii = (Integer)get_Value("AD_Tab_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tab_ID */ -public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID"; -/** Set User defined Tab. -@param AD_UserDef_Tab_ID User defined Tab */ -public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) -{ -if (AD_UserDef_Tab_ID < 1) throw new IllegalArgumentException ("AD_UserDef_Tab_ID is mandatory."); -set_ValueNoCheck ("AD_UserDef_Tab_ID", Integer.valueOf(AD_UserDef_Tab_ID)); -} -/** Get User defined Tab. -@return User defined Tab */ -public int getAD_UserDef_Tab_ID() -{ -Integer ii = (Integer)get_Value("AD_UserDef_Tab_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserDef_Tab_ID */ -public static final String COLUMNNAME_AD_UserDef_Tab_ID = "AD_UserDef_Tab_ID"; -/** Set User defined Window. -@param AD_UserDef_Win_ID User defined Window */ -public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) -{ -if (AD_UserDef_Win_ID < 1) throw new IllegalArgumentException ("AD_UserDef_Win_ID is mandatory."); -set_ValueNoCheck ("AD_UserDef_Win_ID", Integer.valueOf(AD_UserDef_Win_ID)); -} -/** Get User defined Window. -@return User defined Window */ -public int getAD_UserDef_Win_ID() -{ -Integer ii = (Integer)get_Value("AD_UserDef_Win_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserDef_Win_ID */ -public static final String COLUMNNAME_AD_UserDef_Win_ID = "AD_UserDef_Win_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Multi Row Only. -@param IsMultiRowOnly This applies to Multi-Row view only */ -public void setIsMultiRowOnly (boolean IsMultiRowOnly) -{ -set_Value ("IsMultiRowOnly", Boolean.valueOf(IsMultiRowOnly)); -} -/** Get Multi Row Only. -@return This applies to Multi-Row view only */ -public boolean isMultiRowOnly() -{ -Object oo = get_Value("IsMultiRowOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMultiRowOnly */ -public static final String COLUMNNAME_IsMultiRowOnly = "IsMultiRowOnly"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set Single Row Layout. -@param IsSingleRow Default for toggle between Single- and Multi-Row (Grid) Layout */ -public void setIsSingleRow (boolean IsSingleRow) -{ -set_Value ("IsSingleRow", Boolean.valueOf(IsSingleRow)); -} -/** Get Single Row Layout. -@return Default for toggle between Single- and Multi-Row (Grid) Layout */ -public boolean isSingleRow() -{ -Object oo = get_Value("IsSingleRow"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSingleRow */ -public static final String COLUMNNAME_IsSingleRow = "IsSingleRow"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserDef_Tab (Properties ctx, int AD_UserDef_Tab_ID, String trxName) + { + super (ctx, AD_UserDef_Tab_ID, trxName); + /** if (AD_UserDef_Tab_ID == 0) { setAD_Tab_ID (0); + setAD_UserDef_Tab_ID (0); + setAD_UserDef_Win_ID (0); + setIsMultiRowOnly (false); + setIsReadOnly (false); + setIsSingleRow (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_UserDef_Tab (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_UserDef_Tab[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tab getI_AD_Tab() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tab. + @param AD_Tab_ID + Tab within a Window + */ + public void setAD_Tab_ID (int AD_Tab_ID) + { + if (AD_Tab_ID < 1) + throw new IllegalArgumentException ("AD_Tab_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID)); + } + + /** Get Tab. + @return Tab within a Window + */ + public int getAD_Tab_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User defined Tab. + @param AD_UserDef_Tab_ID User defined Tab */ + public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) + { + if (AD_UserDef_Tab_ID < 1) + throw new IllegalArgumentException ("AD_UserDef_Tab_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Tab_ID, Integer.valueOf(AD_UserDef_Tab_ID)); + } + + /** Get User defined Tab. +@return User defined Tab */ + public int getAD_UserDef_Tab_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Tab_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_UserDef_Win getI_AD_UserDef_Win() throws Exception + { + Class clazz = MTable.getClass(I_AD_UserDef_Win.Table_Name); + I_AD_UserDef_Win result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_UserDef_Win)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_UserDef_Win_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set User defined Window. + @param AD_UserDef_Win_ID User defined Window */ + public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) + { + if (AD_UserDef_Win_ID < 1) + throw new IllegalArgumentException ("AD_UserDef_Win_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, Integer.valueOf(AD_UserDef_Win_ID)); + } + + /** Get User defined Window. +@return User defined Window */ + public int getAD_UserDef_Win_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Win_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Multi Row Only. + @param IsMultiRowOnly + This applies to Multi-Row view only + */ + public void setIsMultiRowOnly (boolean IsMultiRowOnly) + { + set_Value (COLUMNNAME_IsMultiRowOnly, Boolean.valueOf(IsMultiRowOnly)); + } + + /** Get Multi Row Only. + @return This applies to Multi-Row view only + */ + public boolean isMultiRowOnly () + { + Object oo = get_Value(COLUMNNAME_IsMultiRowOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Single Row Layout. + @param IsSingleRow + Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public void setIsSingleRow (boolean IsSingleRow) + { + set_Value (COLUMNNAME_IsSingleRow, Boolean.valueOf(IsSingleRow)); + } + + /** Get Single Row Layout. + @return Default for toggle between Single- and Multi-Row (Grid) Layout + */ + public boolean isSingleRow () + { + Object oo = get_Value(COLUMNNAME_IsSingleRow); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserDef_Win.java b/base/src/org/compiere/model/X_AD_UserDef_Win.java index 3cfc3672c5..7585af60a4 100644 --- a/base/src/org/compiere/model/X_AD_UserDef_Win.java +++ b/base/src/org/compiere/model/X_AD_UserDef_Win.java @@ -1,310 +1,384 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_UserDef_Win - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_UserDef_Win extends PO + +/** Generated Model for AD_UserDef_Win + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_UserDef_Win_ID id -@param trxName transaction -*/ -public X_AD_UserDef_Win (Properties ctx, int AD_UserDef_Win_ID, String trxName) -{ -super (ctx, AD_UserDef_Win_ID, trxName); -/** if (AD_UserDef_Win_ID == 0) -{ -setAD_Language (null); -setAD_UserDef_Win_ID (0); -setAD_Window_ID (0); -setIsDefault (false); -setIsReadOnly (false); -setIsUserUpdateable (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_UserDef_Win (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_UserDef_Win */ -public static final String Table_Name="AD_UserDef_Win"; - -/** AD_Table_ID=467 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_UserDef_Win[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserDef_Win (Properties ctx, int AD_UserDef_Win_ID, String trxName) + { + super (ctx, AD_UserDef_Win_ID, trxName); + /** if (AD_UserDef_Win_ID == 0) { setAD_Language (null); + setAD_UserDef_Win_ID (0); + setAD_Window_ID (0); + setIsDefault (false); + setIsReadOnly (false); + setIsUserUpdateable (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_UserDef_Win (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_UserDef_Win[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=106 */ public static final int AD_LANGUAGE_AD_Reference_ID=106; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set User defined Window. -@param AD_UserDef_Win_ID User defined Window */ -public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) -{ -if (AD_UserDef_Win_ID < 1) throw new IllegalArgumentException ("AD_UserDef_Win_ID is mandatory."); -set_ValueNoCheck ("AD_UserDef_Win_ID", Integer.valueOf(AD_UserDef_Win_ID)); -} -/** Get User defined Window. -@return User defined Window */ -public int getAD_UserDef_Win_ID() -{ -Integer ii = (Integer)get_Value("AD_UserDef_Win_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserDef_Win_ID */ -public static final String COLUMNNAME_AD_UserDef_Win_ID = "AD_UserDef_Win_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID < 1) throw new IllegalArgumentException ("AD_Window_ID is mandatory."); -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -/** Set User updateable. -@param IsUserUpdateable The field can be updated by the user */ -public void setIsUserUpdateable (boolean IsUserUpdateable) -{ -set_Value ("IsUserUpdateable", Boolean.valueOf(IsUserUpdateable)); -} -/** Get User updateable. -@return The field can be updated by the user */ -public boolean isUserUpdateable() -{ -Object oo = get_Value("IsUserUpdateable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUserUpdateable */ -public static final String COLUMNNAME_IsUserUpdateable = "IsUserUpdateable"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User defined Window. + @param AD_UserDef_Win_ID User defined Window */ + public void setAD_UserDef_Win_ID (int AD_UserDef_Win_ID) + { + if (AD_UserDef_Win_ID < 1) + throw new IllegalArgumentException ("AD_UserDef_Win_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserDef_Win_ID, Integer.valueOf(AD_UserDef_Win_ID)); + } + + /** Get User defined Window. +@return User defined Window */ + public int getAD_UserDef_Win_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Win_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID < 1) + throw new IllegalArgumentException ("AD_Window_ID is mandatory."); + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set User updateable. + @param IsUserUpdateable + The field can be updated by the user + */ + public void setIsUserUpdateable (boolean IsUserUpdateable) + { + set_Value (COLUMNNAME_IsUserUpdateable, Boolean.valueOf(IsUserUpdateable)); + } + + /** Get User updateable. + @return The field can be updated by the user + */ + public boolean isUserUpdateable () + { + Object oo = get_Value(COLUMNNAME_IsUserUpdateable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserMail.java b/base/src/org/compiere/model/X_AD_UserMail.java index 4172039405..79ac1042d1 100644 --- a/base/src/org/compiere/model/X_AD_UserMail.java +++ b/base/src/org/compiere/model/X_AD_UserMail.java @@ -1,269 +1,313 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_UserMail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_UserMail extends PO + +/** Generated Model for AD_UserMail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_UserMail extends PO implements I_AD_UserMail, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_UserMail_ID id -@param trxName transaction -*/ -public X_AD_UserMail (Properties ctx, int AD_UserMail_ID, String trxName) -{ -super (ctx, AD_UserMail_ID, trxName); -/** if (AD_UserMail_ID == 0) -{ -setAD_UserMail_ID (0); -setAD_User_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_UserMail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_UserMail */ -public static final String Table_Name="AD_UserMail"; - -/** AD_Table_ID=782 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_UserMail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User Mail. -@param AD_UserMail_ID Mail sent to the user */ -public void setAD_UserMail_ID (int AD_UserMail_ID) -{ -if (AD_UserMail_ID < 1) throw new IllegalArgumentException ("AD_UserMail_ID is mandatory."); -set_ValueNoCheck ("AD_UserMail_ID", Integer.valueOf(AD_UserMail_ID)); -} -/** Get User Mail. -@return Mail sent to the user */ -public int getAD_UserMail_ID() -{ -Integer ii = (Integer)get_Value("AD_UserMail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserMail_ID */ -public static final String COLUMNNAME_AD_UserMail_ID = "AD_UserMail_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Delivery Confirmation. -@param DeliveryConfirmation EMail Delivery confirmation */ -public void setDeliveryConfirmation (String DeliveryConfirmation) -{ -if (DeliveryConfirmation != null && DeliveryConfirmation.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DeliveryConfirmation = DeliveryConfirmation.substring(0,119); -} -set_ValueNoCheck ("DeliveryConfirmation", DeliveryConfirmation); -} -/** Get Delivery Confirmation. -@return EMail Delivery confirmation */ -public String getDeliveryConfirmation() -{ -return (String)get_Value("DeliveryConfirmation"); -} -/** Column name DeliveryConfirmation */ -public static final String COLUMNNAME_DeliveryConfirmation = "DeliveryConfirmation"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserMail (Properties ctx, int AD_UserMail_ID, String trxName) + { + super (ctx, AD_UserMail_ID, trxName); + /** if (AD_UserMail_ID == 0) { setAD_UserMail_ID (0); + setAD_User_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_UserMail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_UserMail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User Mail. + @param AD_UserMail_ID + Mail sent to the user + */ + public void setAD_UserMail_ID (int AD_UserMail_ID) + { + if (AD_UserMail_ID < 1) + throw new IllegalArgumentException ("AD_UserMail_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserMail_ID, Integer.valueOf(AD_UserMail_ID)); + } + + /** Get User Mail. + @return Mail sent to the user + */ + public int getAD_UserMail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserMail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } + + /** Set Delivery Confirmation. + @param DeliveryConfirmation + EMail Delivery confirmation + */ + public void setDeliveryConfirmation (String DeliveryConfirmation) + { + if (DeliveryConfirmation != null && DeliveryConfirmation.length() > 120) + { + log.warning("Length > 120 - truncated"); + DeliveryConfirmation = DeliveryConfirmation.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_DeliveryConfirmation, DeliveryConfirmation); + } + + /** Get Delivery Confirmation. + @return EMail Delivery confirmation + */ + public String getDeliveryConfirmation () + { + return (String)get_Value(COLUMNNAME_DeliveryConfirmation); + } /** IsDelivered AD_Reference_ID=319 */ -public static final int ISDELIVERED_AD_Reference_ID=319; -/** No = N */ -public static final String ISDELIVERED_No = "N"; -/** Yes = Y */ +public static final int ISDELIVERED_AD_Reference_ID=319;/** No = N */ +public static final String ISDELIVERED_No = "N";/** Yes = Y */ public static final String ISDELIVERED_Yes = "Y"; -/** Set Delivered. -@param IsDelivered Delivered */ -public void setIsDelivered (String IsDelivered) -{ -if (IsDelivered == null || IsDelivered.equals("N") || IsDelivered.equals("Y")); - else throw new IllegalArgumentException ("IsDelivered Invalid value - " + IsDelivered + " - Reference_ID=319 - N - Y"); -if (IsDelivered != null && IsDelivered.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsDelivered = IsDelivered.substring(0,0); -} -set_ValueNoCheck ("IsDelivered", IsDelivered); -} -/** Get Delivered. -@return Delivered */ -public String getIsDelivered() -{ -return (String)get_Value("IsDelivered"); -} -/** Column name IsDelivered */ -public static final String COLUMNNAME_IsDelivered = "IsDelivered"; -/** Set Mail Text. -@param MailText Text used for Mail message */ -public void setMailText (String MailText) -{ -if (MailText != null && MailText.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MailText = MailText.substring(0,1999); -} -set_Value ("MailText", MailText); -} -/** Get Mail Text. -@return Text used for Mail message */ -public String getMailText() -{ -return (String)get_Value("MailText"); -} -/** Column name MailText */ -public static final String COLUMNNAME_MailText = "MailText"; -/** Set Message ID. -@param MessageID EMail Message ID */ -public void setMessageID (String MessageID) -{ -if (MessageID != null && MessageID.length() > 120) -{ -log.warning("Length > 120 - truncated"); -MessageID = MessageID.substring(0,119); -} -set_ValueNoCheck ("MessageID", MessageID); -} -/** Get Message ID. -@return EMail Message ID */ -public String getMessageID() -{ -return (String)get_Value("MessageID"); -} -/** Column name MessageID */ -public static final String COLUMNNAME_MessageID = "MessageID"; -/** Set Mail Template. -@param R_MailText_ID Text templates for mailings */ -public void setR_MailText_ID (int R_MailText_ID) -{ -if (R_MailText_ID <= 0) set_ValueNoCheck ("R_MailText_ID", null); - else -set_ValueNoCheck ("R_MailText_ID", Integer.valueOf(R_MailText_ID)); -} -/** Get Mail Template. -@return Text templates for mailings */ -public int getR_MailText_ID() -{ -Integer ii = (Integer)get_Value("R_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_MailText_ID */ -public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; -/** Set Subject. -@param Subject Email Message Subject */ -public void setSubject (String Subject) -{ -if (Subject != null && Subject.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Subject = Subject.substring(0,254); -} -set_Value ("Subject", Subject); -} -/** Get Subject. -@return Email Message Subject */ -public String getSubject() -{ -return (String)get_Value("Subject"); -} -/** Column name Subject */ -public static final String COLUMNNAME_Subject = "Subject"; -/** Set Mail Message. -@param W_MailMsg_ID Web Store Mail Message Template */ -public void setW_MailMsg_ID (int W_MailMsg_ID) -{ -if (W_MailMsg_ID <= 0) set_ValueNoCheck ("W_MailMsg_ID", null); - else -set_ValueNoCheck ("W_MailMsg_ID", Integer.valueOf(W_MailMsg_ID)); -} -/** Get Mail Message. -@return Web Store Mail Message Template */ -public int getW_MailMsg_ID() -{ -Integer ii = (Integer)get_Value("W_MailMsg_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_MailMsg_ID */ -public static final String COLUMNNAME_W_MailMsg_ID = "W_MailMsg_ID"; -} + /** Set Delivered. + @param IsDelivered Delivered */ + public void setIsDelivered (String IsDelivered) + { +if (IsDelivered == null || IsDelivered.equals("N") || IsDelivered.equals("Y")); else throw new IllegalArgumentException ("IsDelivered Invalid value - " + IsDelivered + " - Reference_ID=319 - N - Y"); if (IsDelivered != null && IsDelivered.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsDelivered = IsDelivered.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_IsDelivered, IsDelivered); + } + + /** Get Delivered. +@return Delivered */ + public String getIsDelivered () + { + return (String)get_Value(COLUMNNAME_IsDelivered); + } + + /** Set Mail Text. + @param MailText + Text used for Mail message + */ + public void setMailText (String MailText) + { + if (MailText != null && MailText.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MailText = MailText.substring(0, 1999); + } + set_Value (COLUMNNAME_MailText, MailText); + } + + /** Get Mail Text. + @return Text used for Mail message + */ + public String getMailText () + { + return (String)get_Value(COLUMNNAME_MailText); + } + + /** Set Message ID. + @param MessageID + EMail Message ID + */ + public void setMessageID (String MessageID) + { + if (MessageID != null && MessageID.length() > 120) + { + log.warning("Length > 120 - truncated"); + MessageID = MessageID.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_MessageID, MessageID); + } + + /** Get Message ID. + @return EMail Message ID + */ + public String getMessageID () + { + return (String)get_Value(COLUMNNAME_MessageID); + } + + public I_R_MailText getI_R_MailText() throws Exception + { + 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 e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_MailText_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Subject. + @param Subject + Email Message Subject + */ + public void setSubject (String Subject) + { + if (Subject != null && Subject.length() > 255) + { + log.warning("Length > 255 - truncated"); + Subject = Subject.substring(0, 254); + } + set_Value (COLUMNNAME_Subject, Subject); + } + + /** Get Subject. + @return Email Message Subject + */ + public String getSubject () + { + return (String)get_Value(COLUMNNAME_Subject); + } + + public I_W_MailMsg getI_W_MailMsg() throws Exception + { + 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 e; + } + return result; + } + + /** Set Mail Message. + @param W_MailMsg_ID + Web Store Mail Message Template + */ + public void setW_MailMsg_ID (int W_MailMsg_ID) + { + if (W_MailMsg_ID <= 0) set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, Integer.valueOf(W_MailMsg_ID)); + } + + /** Get Mail Message. + @return Web Store Mail Message Template + */ + public int getW_MailMsg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_MailMsg_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserQuery.java b/base/src/org/compiere/model/X_AD_UserQuery.java index 83d5575879..b967354c88 100644 --- a/base/src/org/compiere/model/X_AD_UserQuery.java +++ b/base/src/org/compiere/model/X_AD_UserQuery.java @@ -1,201 +1,228 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_UserQuery - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_UserQuery extends PO + +/** Generated Model for AD_UserQuery + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_UserQuery extends PO implements I_AD_UserQuery, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_UserQuery_ID id -@param trxName transaction -*/ -public X_AD_UserQuery (Properties ctx, int AD_UserQuery_ID, String trxName) -{ -super (ctx, AD_UserQuery_ID, trxName); -/** if (AD_UserQuery_ID == 0) -{ -setAD_Table_ID (0); -setAD_UserQuery_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_UserQuery (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_UserQuery */ -public static final String Table_Name="AD_UserQuery"; - -/** AD_Table_ID=814 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_UserQuery[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set User Query. -@param AD_UserQuery_ID Saved User Query */ -public void setAD_UserQuery_ID (int AD_UserQuery_ID) -{ -if (AD_UserQuery_ID < 1) throw new IllegalArgumentException ("AD_UserQuery_ID is mandatory."); -set_ValueNoCheck ("AD_UserQuery_ID", Integer.valueOf(AD_UserQuery_ID)); -} -/** Get User Query. -@return Saved User Query */ -public int getAD_UserQuery_ID() -{ -Integer ii = (Integer)get_Value("AD_UserQuery_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_UserQuery_ID */ -public static final String COLUMNNAME_AD_UserQuery_ID = "AD_UserQuery_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Validation code. -@param Code Validation Code */ -public void setCode (String Code) -{ -set_Value ("Code", Code); -} -/** Get Validation code. -@return Validation Code */ -public String getCode() -{ -return (String)get_Value("Code"); -} -/** Column name Code */ -public static final String COLUMNNAME_Code = "Code"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserQuery (Properties ctx, int AD_UserQuery_ID, String trxName) + { + super (ctx, AD_UserQuery_ID, trxName); + /** if (AD_UserQuery_ID == 0) { setAD_Table_ID (0); + setAD_UserQuery_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_UserQuery (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_UserQuery[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Query. + @param AD_UserQuery_ID + Saved User Query + */ + public void setAD_UserQuery_ID (int AD_UserQuery_ID) + { + if (AD_UserQuery_ID < 1) + throw new IllegalArgumentException ("AD_UserQuery_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserQuery_ID, Integer.valueOf(AD_UserQuery_ID)); + } + + /** Get User Query. + @return Saved User Query + */ + public int getAD_UserQuery_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserQuery_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Validation code. + @param Code + Validation Code + */ + public void setCode (String Code) + { + set_Value (COLUMNNAME_Code, Code); + } + + /** Get Validation code. + @return Validation Code + */ + public String getCode () + { + return (String)get_Value(COLUMNNAME_Code); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 18f39e7f80..1636b5cb93 100644 --- a/base/src/org/compiere/model/X_AD_User_OrgAccess.java +++ b/base/src/org/compiere/model/X_AD_User_OrgAccess.java @@ -1,126 +1,137 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_User_OrgAccess - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_User_OrgAccess extends PO + +/** Generated Model for AD_User_OrgAccess + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_User_OrgAccess extends PO implements I_AD_User_OrgAccess, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_User_OrgAccess_ID id -@param trxName transaction -*/ -public X_AD_User_OrgAccess (Properties ctx, int AD_User_OrgAccess_ID, String trxName) -{ -super (ctx, AD_User_OrgAccess_ID, trxName); -/** if (AD_User_OrgAccess_ID == 0) -{ -setAD_User_ID (0); -setIsReadOnly (false); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_User_OrgAccess (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_User_OrgAccess */ -public static final String Table_Name="AD_User_OrgAccess"; - -/** AD_Table_ID=769 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_User_OrgAccess[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Read Only. -@param IsReadOnly Field is read only */ -public void setIsReadOnly (boolean IsReadOnly) -{ -set_Value ("IsReadOnly", Boolean.valueOf(IsReadOnly)); -} -/** Get Read Only. -@return Field is read only */ -public boolean isReadOnly() -{ -Object oo = get_Value("IsReadOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadOnly */ -public static final String COLUMNNAME_IsReadOnly = "IsReadOnly"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_User_OrgAccess (Properties ctx, int AD_User_OrgAccess_ID, String trxName) + { + super (ctx, AD_User_OrgAccess_ID, trxName); + /** if (AD_User_OrgAccess_ID == 0) { setAD_User_ID (0); + setIsReadOnly (false); +// N +} */ + } + + /** Load Constructor */ + public X_AD_User_OrgAccess (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_User_OrgAccess[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Only. + @param IsReadOnly + Field is read only + */ + public void setIsReadOnly (boolean IsReadOnly) + { + set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); + } + + /** Get Read Only. + @return Field is read only + */ + public boolean isReadOnly () + { + Object oo = get_Value(COLUMNNAME_IsReadOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file 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 924efda8c5..992a9aba38 100644 --- a/base/src/org/compiere/model/X_AD_User_Roles.java +++ b/base/src/org/compiere/model/X_AD_User_Roles.java @@ -1,123 +1,118 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_User_Roles - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_User_Roles extends PO + +/** Generated Model for AD_User_Roles + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_User_Roles extends PO implements I_AD_User_Roles, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_User_Roles_ID id -@param trxName transaction -*/ -public X_AD_User_Roles (Properties ctx, int AD_User_Roles_ID, String trxName) -{ -super (ctx, AD_User_Roles_ID, trxName); -/** if (AD_User_Roles_ID == 0) -{ -setAD_Role_ID (0); -setAD_User_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_User_Roles (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_User_Roles */ -public static final String Table_Name="AD_User_Roles"; - -/** AD_Table_ID=157 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_User_Roles[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_User_Roles (Properties ctx, int AD_User_Roles_ID, String trxName) + { + super (ctx, AD_User_Roles_ID, trxName); + /** if (AD_User_Roles_ID == 0) { setAD_Role_ID (0); + setAD_User_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_User_Roles (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_User_Roles[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 c7eafecf41..de21267de3 100644 --- a/base/src/org/compiere/model/X_AD_User_Substitute.java +++ b/base/src/org/compiere/model/X_AD_User_Substitute.java @@ -1,218 +1,232 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_User_Substitute - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_User_Substitute extends PO + +/** Generated Model for AD_User_Substitute + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_User_Substitute extends PO implements I_AD_User_Substitute, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_User_Substitute_ID id -@param trxName transaction -*/ -public X_AD_User_Substitute (Properties ctx, int AD_User_Substitute_ID, String trxName) -{ -super (ctx, AD_User_Substitute_ID, trxName); -/** if (AD_User_Substitute_ID == 0) -{ -setAD_User_ID (0); -setAD_User_Substitute_ID (0); -setName (null); -setSubstitute_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_User_Substitute (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_User_Substitute */ -public static final String Table_Name="AD_User_Substitute"; - -/** AD_Table_ID=642 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_User_Substitute[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set User Substitute. -@param AD_User_Substitute_ID Substitute of the user */ -public void setAD_User_Substitute_ID (int AD_User_Substitute_ID) -{ -if (AD_User_Substitute_ID < 1) throw new IllegalArgumentException ("AD_User_Substitute_ID is mandatory."); -set_ValueNoCheck ("AD_User_Substitute_ID", Integer.valueOf(AD_User_Substitute_ID)); -} -/** Get User Substitute. -@return Substitute of the user */ -public int getAD_User_Substitute_ID() -{ -Integer ii = (Integer)get_Value("AD_User_Substitute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_Substitute_ID */ -public static final String COLUMNNAME_AD_User_Substitute_ID = "AD_User_Substitute_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_User_Substitute (Properties ctx, int AD_User_Substitute_ID, String trxName) + { + super (ctx, AD_User_Substitute_ID, trxName); + /** if (AD_User_Substitute_ID == 0) { setAD_User_ID (0); + setAD_User_Substitute_ID (0); + setName (null); + setSubstitute_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_User_Substitute (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_User_Substitute[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Substitute. + @param AD_User_Substitute_ID + Substitute of the user + */ + public void setAD_User_Substitute_ID (int AD_User_Substitute_ID) + { + if (AD_User_Substitute_ID < 1) + throw new IllegalArgumentException ("AD_User_Substitute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_Substitute_ID, Integer.valueOf(AD_User_Substitute_ID)); + } + + /** Get User Substitute. + @return Substitute of the user + */ + public int getAD_User_Substitute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_Substitute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Substitute_ID AD_Reference_ID=110 */ public static final int SUBSTITUTE_ID_AD_Reference_ID=110; -/** Set Substitute. -@param Substitute_ID Entity which can be used in place of this entity */ -public void setSubstitute_ID (int Substitute_ID) -{ -if (Substitute_ID < 1) throw new IllegalArgumentException ("Substitute_ID is mandatory."); -set_Value ("Substitute_ID", Integer.valueOf(Substitute_ID)); -} -/** Get Substitute. -@return Entity which can be used in place of this entity */ -public int getSubstitute_ID() -{ -Integer ii = (Integer)get_Value("Substitute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Substitute_ID */ -public static final String COLUMNNAME_Substitute_ID = "Substitute_ID"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + /** Set Substitute. + @param Substitute_ID + Entity which can be used in place of this entity + */ + public void setSubstitute_ID (int Substitute_ID) + { + if (Substitute_ID < 1) + throw new IllegalArgumentException ("Substitute_ID is mandatory."); + set_Value (COLUMNNAME_Substitute_ID, Integer.valueOf(Substitute_ID)); + } + + /** Get Substitute. + @return Entity which can be used in place of this entity + */ + public int getSubstitute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Substitute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Val_Rule.java b/base/src/org/compiere/model/X_AD_Val_Rule.java index 25d2bc3ee3..2e9d0d0e97 100644 --- a/base/src/org/compiere/model/X_AD_Val_Rule.java +++ b/base/src/org/compiere/model/X_AD_Val_Rule.java @@ -1,227 +1,226 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Val_Rule - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Val_Rule extends PO + +/** Generated Model for AD_Val_Rule + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Val_Rule extends PO implements I_AD_Val_Rule, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Val_Rule_ID id -@param trxName transaction -*/ -public X_AD_Val_Rule (Properties ctx, int AD_Val_Rule_ID, String trxName) -{ -super (ctx, AD_Val_Rule_ID, trxName); -/** if (AD_Val_Rule_ID == 0) -{ -setAD_Val_Rule_ID (0); -setEntityType (null); // U -setName (null); -setType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Val_Rule (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Val_Rule */ -public static final String Table_Name="AD_Val_Rule"; - -/** AD_Table_ID=108 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Val_Rule[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Dynamic Validation. -@param AD_Val_Rule_ID Dynamic Validation Rule */ -public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) -{ -if (AD_Val_Rule_ID < 1) throw new IllegalArgumentException ("AD_Val_Rule_ID is mandatory."); -set_ValueNoCheck ("AD_Val_Rule_ID", Integer.valueOf(AD_Val_Rule_ID)); -} -/** Get Dynamic Validation. -@return Dynamic Validation Rule */ -public int getAD_Val_Rule_ID() -{ -Integer ii = (Integer)get_Value("AD_Val_Rule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Val_Rule_ID */ -public static final String COLUMNNAME_AD_Val_Rule_ID = "AD_Val_Rule_ID"; -/** Set Validation code. -@param Code Validation Code */ -public void setCode (String Code) -{ -if (Code != null && Code.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Code = Code.substring(0,1999); -} -set_Value ("Code", Code); -} -/** Get Validation code. -@return Validation Code */ -public String getCode() -{ -return (String)get_Value("Code"); -} -/** Column name Code */ -public static final String COLUMNNAME_Code = "Code"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Val_Rule (Properties ctx, int AD_Val_Rule_ID, String trxName) + { + super (ctx, AD_Val_Rule_ID, trxName); + /** if (AD_Val_Rule_ID == 0) { setAD_Val_Rule_ID (0); + setEntityType (null); +// U + setName (null); + setType (null); +} */ + } + + /** Load Constructor */ + public X_AD_Val_Rule (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Val_Rule[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Dynamic Validation. + @param AD_Val_Rule_ID + Dynamic Validation Rule + */ + public void setAD_Val_Rule_ID (int AD_Val_Rule_ID) + { + if (AD_Val_Rule_ID < 1) + throw new IllegalArgumentException ("AD_Val_Rule_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID)); + } + + /** Get Dynamic Validation. + @return Dynamic Validation Rule + */ + public int getAD_Val_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Validation code. + @param Code + Validation Code + */ + public void setCode (String Code) + { + if (Code != null && Code.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Code = Code.substring(0, 1999); + } + set_Value (COLUMNNAME_Code, Code); + } + + /** Get Validation code. + @return Validation Code + */ + public String getCode () + { + return (String)get_Value(COLUMNNAME_Code); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Type AD_Reference_ID=101 */ -public static final int TYPE_AD_Reference_ID=101; -/** Java Script = E */ -public static final String TYPE_JavaScript = "E"; -/** Java Language = J */ -public static final String TYPE_JavaLanguage = "J"; -/** SQL = S */ +public static final int TYPE_AD_Reference_ID=101;/** Java Script = E */ +public static final String TYPE_JavaScript = "E";/** Java Language = J */ +public static final String TYPE_JavaLanguage = "J";/** SQL = S */ public static final String TYPE_SQL = "S"; -/** Set Type. -@param Type Type of Validation (SQL, Java Script, Java Language) */ -public void setType (String Type) -{ -if (Type == null) throw new IllegalArgumentException ("Type is mandatory"); -if (Type.equals("E") || Type.equals("J") || Type.equals("S")); - else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=101 - E - J - S"); -if (Type.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Type = Type.substring(0,0); -} -set_Value ("Type", Type); -} -/** Get Type. -@return Type of Validation (SQL, Java Script, Java Language) */ -public String getType() -{ -return (String)get_Value("Type"); -} -/** Column name Type */ -public static final String COLUMNNAME_Type = "Type"; -} + /** Set Type. + @param Type + Type of Validation (SQL, Java Script, Java Language) + */ + public void setType (String Type) + { +if (Type == null) throw new IllegalArgumentException ("Type is mandatory");if (Type.equals("E") || Type.equals("J") || Type.equals("S")); else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=101 - E - J - S"); if (Type.length() > 1) + { + log.warning("Length > 1 - truncated"); + Type = Type.substring(0, 0); + } + set_Value (COLUMNNAME_Type, Type); + } + + /** Get Type. + @return Type of Validation (SQL, Java Script, Java Language) + */ + public String getType () + { + return (String)get_Value(COLUMNNAME_Type); + } +} \ No newline at end of file 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 b5ffeaaca2..a19dbb4908 100644 --- a/base/src/org/compiere/model/X_AD_WF_Activity.java +++ b/base/src/org/compiere/model/X_AD_WF_Activity.java @@ -1,416 +1,539 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_Activity - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_Activity extends PO + +/** Generated Model for AD_WF_Activity + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_Activity extends PO implements I_AD_WF_Activity, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_Activity_ID id -@param trxName transaction -*/ -public X_AD_WF_Activity (Properties ctx, int AD_WF_Activity_ID, String trxName) -{ -super (ctx, AD_WF_Activity_ID, trxName); -/** if (AD_WF_Activity_ID == 0) -{ -setAD_Table_ID (0); -setAD_WF_Activity_ID (0); -setAD_WF_Node_ID (0); -setAD_WF_Process_ID (0); -setAD_Workflow_ID (0); -setProcessed (false); -setRecord_ID (0); -setWFState (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_Activity (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_Activity */ -public static final String Table_Name="AD_WF_Activity"; - -/** AD_Table_ID=644 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_Activity[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Message. -@param AD_Message_ID System Message */ -public void setAD_Message_ID (int AD_Message_ID) -{ -if (AD_Message_ID <= 0) set_Value ("AD_Message_ID", null); - else -set_Value ("AD_Message_ID", Integer.valueOf(AD_Message_ID)); -} -/** Get Message. -@return System Message */ -public int getAD_Message_ID() -{ -Integer ii = (Integer)get_Value("AD_Message_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Message_ID */ -public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Activity (Properties ctx, int AD_WF_Activity_ID, String trxName) + { + super (ctx, AD_WF_Activity_ID, trxName); + /** if (AD_WF_Activity_ID == 0) { setAD_Table_ID (0); + setAD_WF_Activity_ID (0); + setAD_WF_Node_ID (0); + setAD_WF_Process_ID (0); + setAD_Workflow_ID (0); + setProcessed (false); + setRecord_ID (0); + setWFState (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_Activity (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_Activity[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Message getI_AD_Message() throws Exception + { + 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 e; + } + return result; + } + + /** Set Message. + @param AD_Message_ID + System Message + */ + public void setAD_Message_ID (int AD_Message_ID) + { + if (AD_Message_ID <= 0) set_Value (COLUMNNAME_AD_Message_ID, null); + else + set_Value (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + } + + /** Get Message. + @return System Message + */ + public int getAD_Message_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Message_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_User_ID AD_Reference_ID=286 */ public static final int AD_USER_ID_AD_Reference_ID=286; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Workflow Activity. -@param AD_WF_Activity_ID Workflow Activity */ -public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) -{ -if (AD_WF_Activity_ID < 1) throw new IllegalArgumentException ("AD_WF_Activity_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Activity_ID", Integer.valueOf(AD_WF_Activity_ID)); -} -/** Get Workflow Activity. -@return Workflow Activity */ -public int getAD_WF_Activity_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Activity_ID */ -public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; -/** Set Node. -@param AD_WF_Node_ID Workflow Node (activity), step or process */ -public void setAD_WF_Node_ID (int AD_WF_Node_ID) -{ -if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); -set_Value ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID)); -} -/** Get Node. -@return Workflow Node (activity), step or process */ -public int getAD_WF_Node_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); -} -/** Column name AD_WF_Node_ID */ -public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; -/** Set Workflow Process. -@param AD_WF_Process_ID Actual Workflow Process Instance */ -public void setAD_WF_Process_ID (int AD_WF_Process_ID) -{ -if (AD_WF_Process_ID < 1) throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Process_ID", Integer.valueOf(AD_WF_Process_ID)); -} -/** Get Workflow Process. -@return Actual Workflow Process Instance */ -public int getAD_WF_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Process_ID */ -public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; -/** Set Workflow Responsible. -@param AD_WF_Responsible_ID Responsible for Workflow Execution */ -public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) -{ -if (AD_WF_Responsible_ID <= 0) set_Value ("AD_WF_Responsible_ID", null); - else -set_Value ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID)); -} -/** Get Workflow Responsible. -@return Responsible for Workflow Execution */ -public int getAD_WF_Responsible_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Responsible_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Responsible_ID */ -public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); -set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; -/** Set Last Alert. -@param DateLastAlert Date when last alert were sent */ -public void setDateLastAlert (Timestamp DateLastAlert) -{ -set_Value ("DateLastAlert", DateLastAlert); -} -/** Get Last Alert. -@return Date when last alert were sent */ -public Timestamp getDateLastAlert() -{ -return (Timestamp)get_Value("DateLastAlert"); -} -/** Column name DateLastAlert */ -public static final String COLUMNNAME_DateLastAlert = "DateLastAlert"; -/** Set Dyn Priority Start. -@param DynPriorityStart Starting priority before changed dynamically */ -public void setDynPriorityStart (int DynPriorityStart) -{ -set_Value ("DynPriorityStart", Integer.valueOf(DynPriorityStart)); -} -/** Get Dyn Priority Start. -@return Starting priority before changed dynamically */ -public int getDynPriorityStart() -{ -Integer ii = (Integer)get_Value("DynPriorityStart"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DynPriorityStart */ -public static final String COLUMNNAME_DynPriorityStart = "DynPriorityStart"; -/** Set End Wait. -@param EndWaitTime End of sleep time */ -public void setEndWaitTime (Timestamp EndWaitTime) -{ -set_Value ("EndWaitTime", EndWaitTime); -} -/** Get End Wait. -@return End of sleep time */ -public Timestamp getEndWaitTime() -{ -return (Timestamp)get_Value("EndWaitTime"); -} -/** Column name EndWaitTime */ -public static final String COLUMNNAME_EndWaitTime = "EndWaitTime"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (int Priority) -{ -set_Value ("Priority", Integer.valueOf(Priority)); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public int getPriority() -{ -Integer ii = (Integer)get_Value("Priority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow Activity. + @param AD_WF_Activity_ID + Workflow Activity + */ + public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) + { + if (AD_WF_Activity_ID < 1) + throw new IllegalArgumentException ("AD_WF_Activity_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); + } + + /** Get Workflow Activity. + @return Workflow Activity + */ + public int getAD_WF_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception + { + 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 e; + } + return result; + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); + set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); + } + + public I_AD_WF_Process getI_AD_WF_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Process. + @param AD_WF_Process_ID + Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID) + { + if (AD_WF_Process_ID < 1) + throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + } + + /** Get Workflow Process. + @return Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID <= 0) set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Last Alert. + @param DateLastAlert + Date when last alert were sent + */ + public void setDateLastAlert (Timestamp DateLastAlert) + { + set_Value (COLUMNNAME_DateLastAlert, DateLastAlert); + } + + /** Get Last Alert. + @return Date when last alert were sent + */ + public Timestamp getDateLastAlert () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastAlert); + } + + /** Set Dyn Priority Start. + @param DynPriorityStart + Starting priority before changed dynamically + */ + public void setDynPriorityStart (int DynPriorityStart) + { + set_Value (COLUMNNAME_DynPriorityStart, Integer.valueOf(DynPriorityStart)); + } + + /** Get Dyn Priority Start. + @return Starting priority before changed dynamically + */ + public int getDynPriorityStart () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DynPriorityStart); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set End Wait. + @param EndWaitTime + End of sleep time + */ + public void setEndWaitTime (Timestamp EndWaitTime) + { + set_Value (COLUMNNAME_EndWaitTime, EndWaitTime); + } + + /** Get End Wait. + @return End of sleep time + */ + public Timestamp getEndWaitTime () + { + return (Timestamp)get_Value(COLUMNNAME_EndWaitTime); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } /** WFState AD_Reference_ID=305 */ -public static final int WFSTATE_AD_Reference_ID=305; -/** Aborted = CA */ -public static final String WFSTATE_Aborted = "CA"; -/** Completed = CC */ -public static final String WFSTATE_Completed = "CC"; -/** Terminated = CT */ -public static final String WFSTATE_Terminated = "CT"; -/** Not Started = ON */ -public static final String WFSTATE_NotStarted = "ON"; -/** Running = OR */ -public static final String WFSTATE_Running = "OR"; -/** Suspended = OS */ +public static final int WFSTATE_AD_Reference_ID=305;/** Aborted = CA */ +public static final String WFSTATE_Aborted = "CA";/** Completed = CC */ +public static final String WFSTATE_Completed = "CC";/** Terminated = CT */ +public static final String WFSTATE_Terminated = "CT";/** Not Started = ON */ +public static final String WFSTATE_NotStarted = "ON";/** Running = OR */ +public static final String WFSTATE_Running = "OR";/** Suspended = OS */ public static final String WFSTATE_Suspended = "OS"; -/** Set Workflow State. -@param WFState State of the execution of the workflow */ -public void setWFState (String WFState) -{ -if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory"); -if (WFState.equals("CA") || WFState.equals("CC") || WFState.equals("CT") || WFState.equals("ON") || WFState.equals("OR") || WFState.equals("OS")); - else throw new IllegalArgumentException ("WFState Invalid value - " + WFState + " - Reference_ID=305 - CA - CC - CT - ON - OR - OS"); -if (WFState.length() > 2) -{ -log.warning("Length > 2 - truncated"); -WFState = WFState.substring(0,1); -} -set_Value ("WFState", WFState); -} -/** Get Workflow State. -@return State of the execution of the workflow */ -public String getWFState() -{ -return (String)get_Value("WFState"); -} -/** Column name WFState */ -public static final String COLUMNNAME_WFState = "WFState"; -} + /** Set Workflow State. + @param WFState + State of the execution of the workflow + */ + public void setWFState (String WFState) + { +if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory");if (WFState.equals("CA") || WFState.equals("CC") || WFState.equals("CT") || WFState.equals("ON") || WFState.equals("OR") || WFState.equals("OS")); else throw new IllegalArgumentException ("WFState Invalid value - " + WFState + " - Reference_ID=305 - CA - CC - CT - ON - OR - OS"); if (WFState.length() > 2) + { + log.warning("Length > 2 - truncated"); + WFState = WFState.substring(0, 1); + } + set_Value (COLUMNNAME_WFState, WFState); + } + + /** Get Workflow State. + @return State of the execution of the workflow + */ + public String getWFState () + { + return (String)get_Value(COLUMNNAME_WFState); + } +} \ No newline at end of file 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 e4234805f4..4ca5421dd0 100644 --- a/base/src/org/compiere/model/X_AD_WF_ActivityResult.java +++ b/base/src/org/compiere/model/X_AD_WF_ActivityResult.java @@ -1,207 +1,233 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_ActivityResult - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_ActivityResult extends PO + +/** Generated Model for AD_WF_ActivityResult + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_ActivityResult extends PO implements I_AD_WF_ActivityResult, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_ActivityResult_ID id -@param trxName transaction -*/ -public X_AD_WF_ActivityResult (Properties ctx, int AD_WF_ActivityResult_ID, String trxName) -{ -super (ctx, AD_WF_ActivityResult_ID, trxName); -/** if (AD_WF_ActivityResult_ID == 0) -{ -setAD_WF_ActivityResult_ID (0); -setAD_WF_Activity_ID (0); -setAttributeName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_ActivityResult (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_ActivityResult */ -public static final String Table_Name="AD_WF_ActivityResult"; - -/** AD_Table_ID=650 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_ActivityResult[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Workflow Activity Result. -@param AD_WF_ActivityResult_ID Result of the Workflow Process Activity */ -public void setAD_WF_ActivityResult_ID (int AD_WF_ActivityResult_ID) -{ -if (AD_WF_ActivityResult_ID < 1) throw new IllegalArgumentException ("AD_WF_ActivityResult_ID is mandatory."); -set_ValueNoCheck ("AD_WF_ActivityResult_ID", Integer.valueOf(AD_WF_ActivityResult_ID)); -} -/** Get Workflow Activity Result. -@return Result of the Workflow Process Activity */ -public int getAD_WF_ActivityResult_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_ActivityResult_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_ActivityResult_ID */ -public static final String COLUMNNAME_AD_WF_ActivityResult_ID = "AD_WF_ActivityResult_ID"; -/** Set Workflow Activity. -@param AD_WF_Activity_ID Workflow Activity */ -public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) -{ -if (AD_WF_Activity_ID < 1) throw new IllegalArgumentException ("AD_WF_Activity_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Activity_ID", Integer.valueOf(AD_WF_Activity_ID)); -} -/** Get Workflow Activity. -@return Workflow Activity */ -public int getAD_WF_Activity_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Activity_ID())); -} -/** Column name AD_WF_Activity_ID */ -public static final String COLUMNNAME_AD_WF_Activity_ID = "AD_WF_Activity_ID"; -/** Set Attribute Name. -@param AttributeName Name of the Attribute */ -public void setAttributeName (String AttributeName) -{ -if (AttributeName == null) throw new IllegalArgumentException ("AttributeName is mandatory."); -if (AttributeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeName = AttributeName.substring(0,59); -} -set_Value ("AttributeName", AttributeName); -} -/** Get Attribute Name. -@return Name of the Attribute */ -public String getAttributeName() -{ -return (String)get_Value("AttributeName"); -} -/** Column name AttributeName */ -public static final String COLUMNNAME_AttributeName = "AttributeName"; -/** Set Attribute Value. -@param AttributeValue Value of the Attribute */ -public void setAttributeValue (String AttributeValue) -{ -if (AttributeValue != null && AttributeValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -AttributeValue = AttributeValue.substring(0,1999); -} -set_Value ("AttributeValue", AttributeValue); -} -/** Get Attribute Value. -@return Value of the Attribute */ -public String getAttributeValue() -{ -return (String)get_Value("AttributeValue"); -} -/** Column name AttributeValue */ -public static final String COLUMNNAME_AttributeValue = "AttributeValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_ActivityResult (Properties ctx, int AD_WF_ActivityResult_ID, String trxName) + { + super (ctx, AD_WF_ActivityResult_ID, trxName); + /** if (AD_WF_ActivityResult_ID == 0) { setAD_WF_ActivityResult_ID (0); + setAD_WF_Activity_ID (0); + setAttributeName (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_ActivityResult (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_ActivityResult[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Workflow Activity Result. + @param AD_WF_ActivityResult_ID + Result of the Workflow Process Activity + */ + public void setAD_WF_ActivityResult_ID (int AD_WF_ActivityResult_ID) + { + if (AD_WF_ActivityResult_ID < 1) + throw new IllegalArgumentException ("AD_WF_ActivityResult_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_ActivityResult_ID, Integer.valueOf(AD_WF_ActivityResult_ID)); + } + + /** Get Workflow Activity Result. + @return Result of the Workflow Process Activity + */ + public int getAD_WF_ActivityResult_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_ActivityResult_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Activity getI_AD_WF_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Activity. + @param AD_WF_Activity_ID + Workflow Activity + */ + public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) + { + if (AD_WF_Activity_ID < 1) + throw new IllegalArgumentException ("AD_WF_Activity_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); + } + + /** Get Workflow Activity. + @return Workflow Activity + */ + public int getAD_WF_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Activity_ID())); + } + + /** Set Attribute Name. + @param AttributeName + Name of the Attribute + */ + public void setAttributeName (String AttributeName) + { + if (AttributeName == null) + throw new IllegalArgumentException ("AttributeName is mandatory."); + if (AttributeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeName = AttributeName.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeName, AttributeName); + } + + /** Get Attribute Name. + @return Name of the Attribute + */ + public String getAttributeName () + { + return (String)get_Value(COLUMNNAME_AttributeName); + } + + /** Set Attribute Value. + @param AttributeValue + Value of the Attribute + */ + public void setAttributeValue (String AttributeValue) + { + if (AttributeValue != null && AttributeValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + AttributeValue = AttributeValue.substring(0, 1999); + } + set_Value (COLUMNNAME_AttributeValue, AttributeValue); + } + + /** Get Attribute Value. + @return Value of the Attribute + */ + public String getAttributeValue () + { + return (String)get_Value(COLUMNNAME_AttributeValue); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } +} \ No newline at end of file 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 a7d14dd070..f7e9bb5fd9 100644 --- a/base/src/org/compiere/model/X_AD_WF_Block.java +++ b/base/src/org/compiere/model/X_AD_WF_Block.java @@ -1,169 +1,189 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_Block - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_Block extends PO + +/** Generated Model for AD_WF_Block + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_Block extends PO implements I_AD_WF_Block, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_Block_ID id -@param trxName transaction -*/ -public X_AD_WF_Block (Properties ctx, int AD_WF_Block_ID, String trxName) -{ -super (ctx, AD_WF_Block_ID, trxName); -/** if (AD_WF_Block_ID == 0) -{ -setAD_WF_Block_ID (0); -setAD_Workflow_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_Block (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_Block */ -public static final String Table_Name="AD_WF_Block"; - -/** AD_Table_ID=647 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_Block[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Workflow Block. -@param AD_WF_Block_ID Workflow Transaction Execution Block */ -public void setAD_WF_Block_ID (int AD_WF_Block_ID) -{ -if (AD_WF_Block_ID < 1) throw new IllegalArgumentException ("AD_WF_Block_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Block_ID", Integer.valueOf(AD_WF_Block_ID)); -} -/** Get Workflow Block. -@return Workflow Transaction Execution Block */ -public int getAD_WF_Block_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Block_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Block_ID */ -public static final String COLUMNNAME_AD_WF_Block_ID = "AD_WF_Block_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); -set_ValueNoCheck ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Block (Properties ctx, int AD_WF_Block_ID, String trxName) + { + super (ctx, AD_WF_Block_ID, trxName); + /** if (AD_WF_Block_ID == 0) { setAD_WF_Block_ID (0); + setAD_Workflow_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_Block (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_Block[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Workflow Block. + @param AD_WF_Block_ID + Workflow Transaction Execution Block + */ + public void setAD_WF_Block_ID (int AD_WF_Block_ID) + { + if (AD_WF_Block_ID < 1) + throw new IllegalArgumentException ("AD_WF_Block_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Block_ID, Integer.valueOf(AD_WF_Block_ID)); + } + + /** Get Workflow Block. + @return Workflow Transaction Execution Block + */ + public int getAD_WF_Block_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Block_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 f1000972ff..eb7ae918fa 100644 --- a/base/src/org/compiere/model/X_AD_WF_EventAudit.java +++ b/base/src/org/compiere/model/X_AD_WF_EventAudit.java @@ -1,405 +1,498 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_EventAudit - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_EventAudit extends PO + +/** Generated Model for AD_WF_EventAudit + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_EventAudit extends PO implements I_AD_WF_EventAudit, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_EventAudit_ID id -@param trxName transaction -*/ -public X_AD_WF_EventAudit (Properties ctx, int AD_WF_EventAudit_ID, String trxName) -{ -super (ctx, AD_WF_EventAudit_ID, trxName); -/** if (AD_WF_EventAudit_ID == 0) -{ -setAD_Table_ID (0); -setAD_WF_EventAudit_ID (0); -setAD_WF_Node_ID (0); -setAD_WF_Process_ID (0); -setAD_WF_Responsible_ID (0); -setElapsedTimeMS (Env.ZERO); -setEventType (null); -setRecord_ID (0); -setWFState (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_EventAudit (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_EventAudit */ -public static final String Table_Name="AD_WF_EventAudit"; - -/** AD_Table_ID=649 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_EventAudit[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_EventAudit (Properties ctx, int AD_WF_EventAudit_ID, String trxName) + { + super (ctx, AD_WF_EventAudit_ID, trxName); + /** if (AD_WF_EventAudit_ID == 0) { setAD_Table_ID (0); + setAD_WF_EventAudit_ID (0); + setAD_WF_Node_ID (0); + setAD_WF_Process_ID (0); + setAD_WF_Responsible_ID (0); + setElapsedTimeMS (Env.ZERO); + setEventType (null); + setRecord_ID (0); + setWFState (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_EventAudit (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_EventAudit[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_User_ID AD_Reference_ID=110 */ public static final int AD_USER_ID_AD_Reference_ID=110; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Workflow Event Audit. -@param AD_WF_EventAudit_ID Workflow Process Activity Event Audit Information */ -public void setAD_WF_EventAudit_ID (int AD_WF_EventAudit_ID) -{ -if (AD_WF_EventAudit_ID < 1) throw new IllegalArgumentException ("AD_WF_EventAudit_ID is mandatory."); -set_ValueNoCheck ("AD_WF_EventAudit_ID", Integer.valueOf(AD_WF_EventAudit_ID)); -} -/** Get Workflow Event Audit. -@return Workflow Process Activity Event Audit Information */ -public int getAD_WF_EventAudit_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_EventAudit_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_EventAudit_ID())); -} -/** Column name AD_WF_EventAudit_ID */ -public static final String COLUMNNAME_AD_WF_EventAudit_ID = "AD_WF_EventAudit_ID"; -/** Set Node. -@param AD_WF_Node_ID Workflow Node (activity), step or process */ -public void setAD_WF_Node_ID (int AD_WF_Node_ID) -{ -if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); -set_Value ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID)); -} -/** Get Node. -@return Workflow Node (activity), step or process */ -public int getAD_WF_Node_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Node_ID */ -public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; -/** Set Workflow Process. -@param AD_WF_Process_ID Actual Workflow Process Instance */ -public void setAD_WF_Process_ID (int AD_WF_Process_ID) -{ -if (AD_WF_Process_ID < 1) throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); -set_Value ("AD_WF_Process_ID", Integer.valueOf(AD_WF_Process_ID)); -} -/** Get Workflow Process. -@return Actual Workflow Process Instance */ -public int getAD_WF_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Process_ID */ -public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; -/** Set Workflow Responsible. -@param AD_WF_Responsible_ID Responsible for Workflow Execution */ -public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) -{ -if (AD_WF_Responsible_ID < 1) throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); -set_Value ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID)); -} -/** Get Workflow Responsible. -@return Responsible for Workflow Execution */ -public int getAD_WF_Responsible_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Responsible_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Responsible_ID */ -public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; -/** Set Attribute Name. -@param AttributeName Name of the Attribute */ -public void setAttributeName (String AttributeName) -{ -if (AttributeName != null && AttributeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeName = AttributeName.substring(0,59); -} -set_Value ("AttributeName", AttributeName); -} -/** Get Attribute Name. -@return Name of the Attribute */ -public String getAttributeName() -{ -return (String)get_Value("AttributeName"); -} -/** Column name AttributeName */ -public static final String COLUMNNAME_AttributeName = "AttributeName"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Elapsed Time ms. -@param ElapsedTimeMS Elapsed Time in mili seconds */ -public void setElapsedTimeMS (BigDecimal ElapsedTimeMS) -{ -if (ElapsedTimeMS == null) throw new IllegalArgumentException ("ElapsedTimeMS is mandatory."); -set_Value ("ElapsedTimeMS", ElapsedTimeMS); -} -/** Get Elapsed Time ms. -@return Elapsed Time in mili seconds */ -public BigDecimal getElapsedTimeMS() -{ -BigDecimal bd = (BigDecimal)get_Value("ElapsedTimeMS"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ElapsedTimeMS */ -public static final String COLUMNNAME_ElapsedTimeMS = "ElapsedTimeMS"; + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow Event Audit. + @param AD_WF_EventAudit_ID + Workflow Process Activity Event Audit Information + */ + public void setAD_WF_EventAudit_ID (int AD_WF_EventAudit_ID) + { + if (AD_WF_EventAudit_ID < 1) + throw new IllegalArgumentException ("AD_WF_EventAudit_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_EventAudit_ID, Integer.valueOf(AD_WF_EventAudit_ID)); + } + + /** Get Workflow Event Audit. + @return Workflow Process Activity Event Audit Information + */ + public int getAD_WF_EventAudit_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_EventAudit_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_EventAudit_ID())); + } + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception + { + 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 e; + } + return result; + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); + set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Process getI_AD_WF_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Process. + @param AD_WF_Process_ID + Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID) + { + if (AD_WF_Process_ID < 1) + throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); + set_Value (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + } + + /** Get Workflow Process. + @return Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID < 1) + throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Name. + @param AttributeName + Name of the Attribute + */ + public void setAttributeName (String AttributeName) + { + if (AttributeName != null && AttributeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeName = AttributeName.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeName, AttributeName); + } + + /** Get Attribute Name. + @return Name of the Attribute + */ + public String getAttributeName () + { + return (String)get_Value(COLUMNNAME_AttributeName); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Elapsed Time ms. + @param ElapsedTimeMS + Elapsed Time in mili seconds + */ + public void setElapsedTimeMS (BigDecimal ElapsedTimeMS) + { + if (ElapsedTimeMS == null) + throw new IllegalArgumentException ("ElapsedTimeMS is mandatory."); + set_Value (COLUMNNAME_ElapsedTimeMS, ElapsedTimeMS); + } + + /** Get Elapsed Time ms. + @return Elapsed Time in mili seconds + */ + public BigDecimal getElapsedTimeMS () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ElapsedTimeMS); + if (bd == null) + return Env.ZERO; + return bd; + } /** EventType AD_Reference_ID=306 */ -public static final int EVENTTYPE_AD_Reference_ID=306; -/** Process Created = PC */ -public static final String EVENTTYPE_ProcessCreated = "PC"; -/** Process Completed = PX */ -public static final String EVENTTYPE_ProcessCompleted = "PX"; -/** State Changed = SC */ +public static final int EVENTTYPE_AD_Reference_ID=306;/** Process Created = PC */ +public static final String EVENTTYPE_ProcessCreated = "PC";/** Process Completed = PX */ +public static final String EVENTTYPE_ProcessCompleted = "PX";/** State Changed = SC */ public static final String EVENTTYPE_StateChanged = "SC"; -/** Set Event Type. -@param EventType Type of Event */ -public void setEventType (String EventType) -{ -if (EventType == null) throw new IllegalArgumentException ("EventType is mandatory"); -if (EventType.equals("PC") || EventType.equals("PX") || EventType.equals("SC")); - else throw new IllegalArgumentException ("EventType Invalid value - " + EventType + " - Reference_ID=306 - PC - PX - SC"); -if (EventType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -EventType = EventType.substring(0,1); -} -set_Value ("EventType", EventType); -} -/** Get Event Type. -@return Type of Event */ -public String getEventType() -{ -return (String)get_Value("EventType"); -} -/** Column name EventType */ -public static final String COLUMNNAME_EventType = "EventType"; -/** Set New Value. -@param NewValue New field value */ -public void setNewValue (String NewValue) -{ -if (NewValue != null && NewValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -NewValue = NewValue.substring(0,1999); -} -set_Value ("NewValue", NewValue); -} -/** Get New Value. -@return New field value */ -public String getNewValue() -{ -return (String)get_Value("NewValue"); -} -/** Column name NewValue */ -public static final String COLUMNNAME_NewValue = "NewValue"; -/** Set Old Value. -@param OldValue The old file data */ -public void setOldValue (String OldValue) -{ -if (OldValue != null && OldValue.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OldValue = OldValue.substring(0,1999); -} -set_Value ("OldValue", OldValue); -} -/** Get Old Value. -@return The old file data */ -public String getOldValue() -{ -return (String)get_Value("OldValue"); -} -/** Column name OldValue */ -public static final String COLUMNNAME_OldValue = "OldValue"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; + /** Set Event Type. + @param EventType + Type of Event + */ + public void setEventType (String EventType) + { +if (EventType == null) throw new IllegalArgumentException ("EventType is mandatory");if (EventType.equals("PC") || EventType.equals("PX") || EventType.equals("SC")); else throw new IllegalArgumentException ("EventType Invalid value - " + EventType + " - Reference_ID=306 - PC - PX - SC"); if (EventType.length() > 2) + { + log.warning("Length > 2 - truncated"); + EventType = EventType.substring(0, 1); + } + set_Value (COLUMNNAME_EventType, EventType); + } + + /** Get Event Type. + @return Type of Event + */ + public String getEventType () + { + return (String)get_Value(COLUMNNAME_EventType); + } + + /** Set New Value. + @param NewValue + New field value + */ + public void setNewValue (String NewValue) + { + if (NewValue != null && NewValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + NewValue = NewValue.substring(0, 1999); + } + set_Value (COLUMNNAME_NewValue, NewValue); + } + + /** Get New Value. + @return New field value + */ + public String getNewValue () + { + return (String)get_Value(COLUMNNAME_NewValue); + } + + /** Set Old Value. + @param OldValue + The old file data + */ + public void setOldValue (String OldValue) + { + if (OldValue != null && OldValue.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OldValue = OldValue.substring(0, 1999); + } + set_Value (COLUMNNAME_OldValue, OldValue); + } + + /** Get Old Value. + @return The old file data + */ + public String getOldValue () + { + return (String)get_Value(COLUMNNAME_OldValue); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } /** WFState AD_Reference_ID=305 */ -public static final int WFSTATE_AD_Reference_ID=305; -/** Aborted = CA */ -public static final String WFSTATE_Aborted = "CA"; -/** Completed = CC */ -public static final String WFSTATE_Completed = "CC"; -/** Terminated = CT */ -public static final String WFSTATE_Terminated = "CT"; -/** Not Started = ON */ -public static final String WFSTATE_NotStarted = "ON"; -/** Running = OR */ -public static final String WFSTATE_Running = "OR"; -/** Suspended = OS */ +public static final int WFSTATE_AD_Reference_ID=305;/** Aborted = CA */ +public static final String WFSTATE_Aborted = "CA";/** Completed = CC */ +public static final String WFSTATE_Completed = "CC";/** Terminated = CT */ +public static final String WFSTATE_Terminated = "CT";/** Not Started = ON */ +public static final String WFSTATE_NotStarted = "ON";/** Running = OR */ +public static final String WFSTATE_Running = "OR";/** Suspended = OS */ public static final String WFSTATE_Suspended = "OS"; -/** Set Workflow State. -@param WFState State of the execution of the workflow */ -public void setWFState (String WFState) -{ -if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory"); -if (WFState.equals("CA") || WFState.equals("CC") || WFState.equals("CT") || WFState.equals("ON") || WFState.equals("OR") || WFState.equals("OS")); - else throw new IllegalArgumentException ("WFState Invalid value - " + WFState + " - Reference_ID=305 - CA - CC - CT - ON - OR - OS"); -if (WFState.length() > 2) -{ -log.warning("Length > 2 - truncated"); -WFState = WFState.substring(0,1); -} -set_Value ("WFState", WFState); -} -/** Get Workflow State. -@return State of the execution of the workflow */ -public String getWFState() -{ -return (String)get_Value("WFState"); -} -/** Column name WFState */ -public static final String COLUMNNAME_WFState = "WFState"; -} + /** Set Workflow State. + @param WFState + State of the execution of the workflow + */ + public void setWFState (String WFState) + { +if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory");if (WFState.equals("CA") || WFState.equals("CC") || WFState.equals("CT") || WFState.equals("ON") || WFState.equals("OR") || WFState.equals("OS")); else throw new IllegalArgumentException ("WFState Invalid value - " + WFState + " - Reference_ID=305 - CA - CC - CT - ON - OR - OS"); if (WFState.length() > 2) + { + log.warning("Length > 2 - truncated"); + WFState = WFState.substring(0, 1); + } + set_Value (COLUMNNAME_WFState, WFState); + } + + /** Get Workflow State. + @return State of the execution of the workflow + */ + public String getWFState () + { + return (String)get_Value(COLUMNNAME_WFState); + } +} \ No newline at end of file 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 807470f523..071ba1b681 100644 --- a/base/src/org/compiere/model/X_AD_WF_NextCondition.java +++ b/base/src/org/compiere/model/X_AD_WF_NextCondition.java @@ -1,305 +1,338 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_NextCondition - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_NextCondition extends PO + +/** Generated Model for AD_WF_NextCondition + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_NextCondition extends PO implements I_AD_WF_NextCondition, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_NextCondition_ID id -@param trxName transaction -*/ -public X_AD_WF_NextCondition (Properties ctx, int AD_WF_NextCondition_ID, String trxName) -{ -super (ctx, AD_WF_NextCondition_ID, trxName); -/** if (AD_WF_NextCondition_ID == 0) -{ -setAD_Column_ID (0); -setAD_WF_NextCondition_ID (0); -setAD_WF_NodeNext_ID (0); -setAndOr (null); // O -setEntityType (null); // U -setOperation (null); -setSeqNo (0); // @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_WF_NextCondition WHERE AD_WF_NodeNext_ID=@AD_WF_NodeNext_ID@ -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_NextCondition (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_NextCondition */ -public static final String Table_Name="AD_WF_NextCondition"; - -/** AD_Table_ID=706 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_NextCondition[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Transition Condition. -@param AD_WF_NextCondition_ID Workflow Node Transition Condition */ -public void setAD_WF_NextCondition_ID (int AD_WF_NextCondition_ID) -{ -if (AD_WF_NextCondition_ID < 1) throw new IllegalArgumentException ("AD_WF_NextCondition_ID is mandatory."); -set_ValueNoCheck ("AD_WF_NextCondition_ID", Integer.valueOf(AD_WF_NextCondition_ID)); -} -/** Get Transition Condition. -@return Workflow Node Transition Condition */ -public int getAD_WF_NextCondition_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_NextCondition_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_NextCondition_ID */ -public static final String COLUMNNAME_AD_WF_NextCondition_ID = "AD_WF_NextCondition_ID"; -/** Set Node Transition. -@param AD_WF_NodeNext_ID Workflow Node Transition */ -public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID) -{ -if (AD_WF_NodeNext_ID < 1) throw new IllegalArgumentException ("AD_WF_NodeNext_ID is mandatory."); -set_ValueNoCheck ("AD_WF_NodeNext_ID", Integer.valueOf(AD_WF_NodeNext_ID)); -} -/** Get Node Transition. -@return Workflow Node Transition */ -public int getAD_WF_NodeNext_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_NodeNext_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_NodeNext_ID */ -public static final String COLUMNNAME_AD_WF_NodeNext_ID = "AD_WF_NodeNext_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_NextCondition (Properties ctx, int AD_WF_NextCondition_ID, String trxName) + { + super (ctx, AD_WF_NextCondition_ID, trxName); + /** if (AD_WF_NextCondition_ID == 0) { setAD_Column_ID (0); + setAD_WF_NextCondition_ID (0); + setAD_WF_NodeNext_ID (0); + setAndOr (null); +// O + setEntityType (null); +// U + setOperation (null); + setSeqNo (0); +// @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_WF_NextCondition WHERE AD_WF_NodeNext_ID=@AD_WF_NodeNext_ID@ + setValue (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_NextCondition (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_NextCondition[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Transition Condition. + @param AD_WF_NextCondition_ID + Workflow Node Transition Condition + */ + public void setAD_WF_NextCondition_ID (int AD_WF_NextCondition_ID) + { + if (AD_WF_NextCondition_ID < 1) + throw new IllegalArgumentException ("AD_WF_NextCondition_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_NextCondition_ID, Integer.valueOf(AD_WF_NextCondition_ID)); + } + + /** Get Transition Condition. + @return Workflow Node Transition Condition + */ + public int getAD_WF_NextCondition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_NextCondition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_NodeNext getI_AD_WF_NodeNext() throws Exception + { + 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 e; + } + return result; + } + + /** Set Node Transition. + @param AD_WF_NodeNext_ID + Workflow Node Transition + */ + public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID) + { + if (AD_WF_NodeNext_ID < 1) + throw new IllegalArgumentException ("AD_WF_NodeNext_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, Integer.valueOf(AD_WF_NodeNext_ID)); + } + + /** Get Node Transition. + @return Workflow Node Transition + */ + public int getAD_WF_NodeNext_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_NodeNext_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AndOr AD_Reference_ID=204 */ -public static final int ANDOR_AD_Reference_ID=204; -/** And = A */ -public static final String ANDOR_And = "A"; -/** Or = O */ +public static final int ANDOR_AD_Reference_ID=204;/** And = A */ +public static final String ANDOR_And = "A";/** Or = O */ public static final String ANDOR_Or = "O"; -/** Set And/Or. -@param AndOr Logical operation: AND or OR */ -public void setAndOr (String AndOr) -{ -if (AndOr == null) throw new IllegalArgumentException ("AndOr is mandatory"); -if (AndOr.equals("A") || AndOr.equals("O")); - else throw new IllegalArgumentException ("AndOr Invalid value - " + AndOr + " - Reference_ID=204 - A - O"); -if (AndOr.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AndOr = AndOr.substring(0,0); -} -set_Value ("AndOr", AndOr); -} -/** Get And/Or. -@return Logical operation: AND or OR */ -public String getAndOr() -{ -return (String)get_Value("AndOr"); -} -/** Column name AndOr */ -public static final String COLUMNNAME_AndOr = "AndOr"; + /** Set And/Or. + @param AndOr + Logical operation: AND or OR + */ + public void setAndOr (String AndOr) + { +if (AndOr == null) throw new IllegalArgumentException ("AndOr is mandatory");if (AndOr.equals("A") || AndOr.equals("O")); else throw new IllegalArgumentException ("AndOr Invalid value - " + AndOr + " - Reference_ID=204 - A - O"); if (AndOr.length() > 1) + { + log.warning("Length > 1 - truncated"); + AndOr = AndOr.substring(0, 0); + } + set_Value (COLUMNNAME_AndOr, AndOr); + } + + /** Get And/Or. + @return Logical operation: AND or OR + */ + public String getAndOr () + { + return (String)get_Value(COLUMNNAME_AndOr); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } /** Operation AD_Reference_ID=205 */ -public static final int OPERATION_AD_Reference_ID=205; -/** != = != */ -public static final String OPERATION_NotEq = "!="; -/** < = << */ -public static final String OPERATION_Le = "<<"; -/** <= = <= */ -public static final String OPERATION_LeEq = "<="; -/** = = == */ -public static final String OPERATION_Eq = "=="; -/** >= = >= */ -public static final String OPERATION_GtEq = ">="; -/** > = >> */ -public static final String OPERATION_Gt = ">>"; -/** || = AB */ -public static final String OPERATION_X = "AB"; -/** sql = SQ */ -public static final String OPERATION_Sql = "SQ"; -/** ~ = ~~ */ +public static final int OPERATION_AD_Reference_ID=205;/** != = != */ +public static final String OPERATION_NotEq = "!=";/** < = << */ +public static final String OPERATION_Le = "<<";/** <= = <= */ +public static final String OPERATION_LeEq = "<=";/** = = == */ +public static final String OPERATION_Eq = "==";/** >= = >= */ +public static final String OPERATION_GtEq = ">=";/** > = >> */ +public static final String OPERATION_Gt = ">>";/** || = AB */ +public static final String OPERATION_X = "AB";/** sql = SQ */ +public static final String OPERATION_Sql = "SQ";/** ~ = ~~ */ public static final String OPERATION_Like = "~~"; -/** Set Operation. -@param Operation Compare Operation */ -public void setOperation (String Operation) -{ -if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory"); -if (Operation.equals("!=") || Operation.equals("<<") || Operation.equals("<=") || Operation.equals("==") || Operation.equals(">=") || Operation.equals(">>") || Operation.equals("AB") || Operation.equals("SQ") || Operation.equals("~~")); - else throw new IllegalArgumentException ("Operation Invalid value - " + Operation + " - Reference_ID=205 - != - << - <= - == - >= - >> - AB - SQ - ~~"); -if (Operation.length() > 2) -{ -log.warning("Length > 2 - truncated"); -Operation = Operation.substring(0,1); -} -set_Value ("Operation", Operation); -} -/** Get Operation. -@return Compare Operation */ -public String getOperation() -{ -return (String)get_Value("Operation"); -} -/** Column name Operation */ -public static final String COLUMNNAME_Operation = "Operation"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Value To. -@param Value2 Value To */ -public void setValue2 (String Value2) -{ -if (Value2 != null && Value2.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value2 = Value2.substring(0,39); -} -set_Value ("Value2", Value2); -} -/** Get Value To. -@return Value To */ -public String getValue2() -{ -return (String)get_Value("Value2"); -} -/** Column name Value2 */ -public static final String COLUMNNAME_Value2 = "Value2"; -} + /** Set Operation. + @param Operation + Compare Operation + */ + public void setOperation (String Operation) + { +if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory");if (Operation.equals("!=") || Operation.equals("<<") || Operation.equals("<=") || Operation.equals("==") || Operation.equals(">=") || Operation.equals(">>") || Operation.equals("AB") || Operation.equals("SQ") || Operation.equals("~~")); else throw new IllegalArgumentException ("Operation Invalid value - " + Operation + " - Reference_ID=205 - != - << - <= - == - >= - >> - AB - SQ - ~~"); if (Operation.length() > 2) + { + log.warning("Length > 2 - truncated"); + Operation = Operation.substring(0, 1); + } + set_Value (COLUMNNAME_Operation, Operation); + } + + /** Get Operation. + @return Compare Operation + */ + public String getOperation () + { + return (String)get_Value(COLUMNNAME_Operation); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } + + /** Set Value To. + @param Value2 + Value To + */ + public void setValue2 (String Value2) + { + if (Value2 != null && Value2.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value2 = Value2.substring(0, 39); + } + set_Value (COLUMNNAME_Value2, Value2); + } + + /** Get Value To. + @return Value To + */ + public String getValue2 () + { + return (String)get_Value(COLUMNNAME_Value2); + } +} \ No newline at end of file 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 fe742589a0..e7f939b2de 100644 --- a/base/src/org/compiere/model/X_AD_WF_Node.java +++ b/base/src/org/compiere/model/X_AD_WF_Node.java @@ -1,968 +1,1191 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_Node - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_Node extends PO + +/** Generated Model for AD_WF_Node + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_Node_ID id -@param trxName transaction -*/ -public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID, String trxName) -{ -super (ctx, AD_WF_Node_ID, trxName); -/** if (AD_WF_Node_ID == 0) -{ -setAD_WF_Node_ID (0); -setAD_Workflow_ID (0); -setAction (null); // N -setCost (Env.ZERO); -setDuration (0); -setEntityType (null); // U -setIsCentrallyMaintained (true); // Y -setJoinElement (null); // X -setLimit (0); -setName (null); -setSplitElement (null); // X -setValue (null); -setWaitingTime (0); -setXPosition (0); -setYPosition (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_Node (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_Node */ -public static final String Table_Name="AD_WF_Node"; - -/** AD_Table_ID=129 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_Node[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null); - else -set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set OS Task. -@param AD_Task_ID Operation System Task */ -public void setAD_Task_ID (int AD_Task_ID) -{ -if (AD_Task_ID <= 0) set_Value ("AD_Task_ID", null); - else -set_Value ("AD_Task_ID", Integer.valueOf(AD_Task_ID)); -} -/** Get OS Task. -@return Operation System Task */ -public int getAD_Task_ID() -{ -Integer ii = (Integer)get_Value("AD_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Task_ID */ -public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; -/** Set Workflow Block. -@param AD_WF_Block_ID Workflow Transaction Execution Block */ -public void setAD_WF_Block_ID (int AD_WF_Block_ID) -{ -if (AD_WF_Block_ID <= 0) set_Value ("AD_WF_Block_ID", null); - else -set_Value ("AD_WF_Block_ID", Integer.valueOf(AD_WF_Block_ID)); -} -/** Get Workflow Block. -@return Workflow Transaction Execution Block */ -public int getAD_WF_Block_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Block_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Block_ID */ -public static final String COLUMNNAME_AD_WF_Block_ID = "AD_WF_Block_ID"; -/** Set Node. -@param AD_WF_Node_ID Workflow Node (activity), step or process */ -public void setAD_WF_Node_ID (int AD_WF_Node_ID) -{ -if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID)); -} -/** Get Node. -@return Workflow Node (activity), step or process */ -public int getAD_WF_Node_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Node_ID */ -public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; -/** Set Workflow Responsible. -@param AD_WF_Responsible_ID Responsible for Workflow Execution */ -public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) -{ -if (AD_WF_Responsible_ID <= 0) set_Value ("AD_WF_Responsible_ID", null); - else -set_Value ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID)); -} -/** Get Workflow Responsible. -@return Responsible for Workflow Execution */ -public int getAD_WF_Responsible_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Responsible_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Responsible_ID */ -public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); -set_ValueNoCheck ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID, String trxName) + { + super (ctx, AD_WF_Node_ID, trxName); + /** if (AD_WF_Node_ID == 0) { setAD_WF_Node_ID (0); + setAD_Workflow_ID (0); + setAction (null); +// N + setCost (Env.ZERO); + setDuration (0); + setEntityType (null); +// U + setIsCentrallyMaintained (true); +// Y + setJoinElement (null); +// X + setLimit (0); + setName (null); + setSplitElement (null); +// X + setValue (null); + setWaitingTime (0); + setXPosition (0); + setYPosition (0); +} */ + } + + /** Load Constructor */ + public X_AD_WF_Node (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_Node[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Form getI_AD_Form() throws Exception + { + 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 e; + } + return result; + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID <= 0) set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Image getI_AD_Image() throws Exception + { + 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 e; + } + return result; + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Task getI_AD_Task() throws Exception + { + 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 e; + } + return result; + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID <= 0) set_Value (COLUMNNAME_AD_Task_ID, null); + else + set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Block getI_AD_WF_Block() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Block. + @param AD_WF_Block_ID + Workflow Transaction Execution Block + */ + public void setAD_WF_Block_ID (int AD_WF_Block_ID) + { + if (AD_WF_Block_ID <= 0) set_Value (COLUMNNAME_AD_WF_Block_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Block_ID, Integer.valueOf(AD_WF_Block_ID)); + } + + /** Get Workflow Block. + @return Workflow Transaction Execution Block + */ + public int getAD_WF_Block_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Block_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID <= 0) set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Action AD_Reference_ID=302 */ -public static final int ACTION_AD_Reference_ID=302; -/** User Workbench = B */ -public static final String ACTION_UserWorkbench = "B"; -/** User Choice = C */ -public static final String ACTION_UserChoice = "C"; -/** Document Action = D */ -public static final String ACTION_DocumentAction = "D"; -/** Sub Workflow = F */ -public static final String ACTION_SubWorkflow = "F"; -/** EMail = M */ -public static final String ACTION_EMail = "M"; -/** Apps Process = P */ -public static final String ACTION_AppsProcess = "P"; -/** Apps Report = R */ -public static final String ACTION_AppsReport = "R"; -/** Apps Task = T */ -public static final String ACTION_AppsTask = "T"; -/** Set Variable = V */ -public static final String ACTION_SetVariable = "V"; -/** User Window = W */ -public static final String ACTION_UserWindow = "W"; -/** User Form = X */ -public static final String ACTION_UserForm = "X"; -/** Wait (Sleep) = Z */ +public static final int ACTION_AD_Reference_ID=302;/** User Choice = C */ +public static final String ACTION_UserChoice = "C";/** Document Action = D */ +public static final String ACTION_DocumentAction = "D";/** Sub Workflow = F */ +public static final String ACTION_SubWorkflow = "F";/** EMail = M */ +public static final String ACTION_EMail = "M";/** Apps Process = P */ +public static final String ACTION_AppsProcess = "P";/** Apps Report = R */ +public static final String ACTION_AppsReport = "R";/** Apps Task = T */ +public static final String ACTION_AppsTask = "T";/** Set Variable = V */ +public static final String ACTION_SetVariable = "V";/** User Window = W */ +public static final String ACTION_UserWindow = "W";/** User Form = X */ +public static final String ACTION_UserForm = "X";/** Wait (Sleep) = Z */ public static final String ACTION_WaitSleep = "Z"; -/** Set Action. -@param Action Indicates the Action to be performed */ -public void setAction (String Action) -{ -if (Action == null) throw new IllegalArgumentException ("Action is mandatory"); -if (Action.equals("B") || Action.equals("C") || Action.equals("D") || Action.equals("F") || Action.equals("M") || Action.equals("P") || Action.equals("R") || Action.equals("T") || Action.equals("V") || Action.equals("W") || Action.equals("X") || Action.equals("Z")); - else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - B - C - D - F - M - P - R - T - V - W - X - Z"); -if (Action.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Action = Action.substring(0,0); -} -set_Value ("Action", Action); -} -/** Get Action. -@return Indicates the Action to be performed */ -public String getAction() -{ -return (String)get_Value("Action"); -} -/** Column name Action */ -public static final String COLUMNNAME_Action = "Action"; -/** Set Attribute Name. -@param AttributeName Name of the Attribute */ -public void setAttributeName (String AttributeName) -{ -if (AttributeName != null && AttributeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeName = AttributeName.substring(0,59); -} -set_Value ("AttributeName", AttributeName); -} -/** Get Attribute Name. -@return Name of the Attribute */ -public String getAttributeName() -{ -return (String)get_Value("AttributeName"); -} -/** Column name AttributeName */ -public static final String COLUMNNAME_AttributeName = "AttributeName"; -/** Set Attribute Value. -@param AttributeValue Value of the Attribute */ -public void setAttributeValue (String AttributeValue) -{ -if (AttributeValue != null && AttributeValue.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeValue = AttributeValue.substring(0,59); -} -set_Value ("AttributeValue", AttributeValue); -} -/** Get Attribute Value. -@return Value of the Attribute */ -public String getAttributeValue() -{ -return (String)get_Value("AttributeValue"); -} -/** Column name AttributeValue */ -public static final String COLUMNNAME_AttributeValue = "AttributeValue"; -/** Set Cost. -@param Cost Cost information */ -public void setCost (BigDecimal Cost) -{ -if (Cost == null) throw new IllegalArgumentException ("Cost is mandatory."); -set_Value ("Cost", Cost); -} -/** Get Cost. -@return Cost information */ -public BigDecimal getCost() -{ -BigDecimal bd = (BigDecimal)get_Value("Cost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Cost */ -public static final String COLUMNNAME_Cost = "Cost"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Action. + @param Action + Indicates the Action to be performed + */ + public void setAction (String Action) + { +if (Action == null) throw new IllegalArgumentException ("Action is mandatory");if (Action.equals("C") || Action.equals("D") || Action.equals("F") || Action.equals("M") || Action.equals("P") || Action.equals("R") || Action.equals("T") || Action.equals("V") || Action.equals("W") || Action.equals("X") || Action.equals("Z")); else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - C - D - F - M - P - R - T - V - W - X - Z"); if (Action.length() > 1) + { + log.warning("Length > 1 - truncated"); + Action = Action.substring(0, 0); + } + set_Value (COLUMNNAME_Action, Action); + } + + /** Get Action. + @return Indicates the Action to be performed + */ + public String getAction () + { + return (String)get_Value(COLUMNNAME_Action); + } + + /** Set Attribute Name. + @param AttributeName + Name of the Attribute + */ + public void setAttributeName (String AttributeName) + { + if (AttributeName != null && AttributeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeName = AttributeName.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeName, AttributeName); + } + + /** Get Attribute Name. + @return Name of the Attribute + */ + public String getAttributeName () + { + return (String)get_Value(COLUMNNAME_AttributeName); + } + + /** Set Attribute Value. + @param AttributeValue + Value of the Attribute + */ + public void setAttributeValue (String AttributeValue) + { + if (AttributeValue != null && AttributeValue.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeValue = AttributeValue.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeValue, AttributeValue); + } + + /** Get Attribute Value. + @return Value of the Attribute + */ + public String getAttributeValue () + { + return (String)get_Value(COLUMNNAME_AttributeValue); + } + + /** Set Cost. + @param Cost + Cost information + */ + public void setCost (BigDecimal Cost) + { + if (Cost == null) + throw new IllegalArgumentException ("Cost is mandatory."); + set_Value (COLUMNNAME_Cost, Cost); + } + + /** Get Cost. + @return Cost information + */ + public BigDecimal getCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null || DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction != null && DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; -/** Set Duration. -@param Duration Normal Duration in Duration Unit */ -public void setDuration (int Duration) -{ -set_Value ("Duration", Integer.valueOf(Duration)); -} -/** Get Duration. -@return Normal Duration in Duration Unit */ -public int getDuration() -{ -Integer ii = (Integer)get_Value("Duration"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Duration */ -public static final String COLUMNNAME_Duration = "Duration"; -/** Set Dynamic Priority Change. -@param DynPriorityChange Change of priority when Activity is suspended waiting for user */ -public void setDynPriorityChange (BigDecimal DynPriorityChange) -{ -set_Value ("DynPriorityChange", DynPriorityChange); -} -/** Get Dynamic Priority Change. -@return Change of priority when Activity is suspended waiting for user */ -public BigDecimal getDynPriorityChange() -{ -BigDecimal bd = (BigDecimal)get_Value("DynPriorityChange"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DynPriorityChange */ -public static final String COLUMNNAME_DynPriorityChange = "DynPriorityChange"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null || DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction != null && DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** Set Duration. + @param Duration + Normal Duration in Duration Unit + */ + public void setDuration (int Duration) + { + set_Value (COLUMNNAME_Duration, Integer.valueOf(Duration)); + } + + /** Get Duration. + @return Normal Duration in Duration Unit + */ + public int getDuration () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Duration); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dynamic Priority Change. + @param DynPriorityChange + Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityChange (BigDecimal DynPriorityChange) + { + set_Value (COLUMNNAME_DynPriorityChange, DynPriorityChange); + } + + /** Get Dynamic Priority Change. + @return Change of priority when Activity is suspended waiting for user + */ + public BigDecimal getDynPriorityChange () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DynPriorityChange); + if (bd == null) + return Env.ZERO; + return bd; + } /** DynPriorityUnit AD_Reference_ID=221 */ -public static final int DYNPRIORITYUNIT_AD_Reference_ID=221; -/** Day = D */ -public static final String DYNPRIORITYUNIT_Day = "D"; -/** Hour = H */ -public static final String DYNPRIORITYUNIT_Hour = "H"; -/** Minute = M */ +public static final int DYNPRIORITYUNIT_AD_Reference_ID=221;/** Day = D */ +public static final String DYNPRIORITYUNIT_Day = "D";/** Hour = H */ +public static final String DYNPRIORITYUNIT_Hour = "H";/** Minute = M */ public static final String DYNPRIORITYUNIT_Minute = "M"; -/** Set Dynamic Priority Unit. -@param DynPriorityUnit Change of priority when Activity is suspended waiting for user */ -public void setDynPriorityUnit (String DynPriorityUnit) -{ -if (DynPriorityUnit == null || DynPriorityUnit.equals("D") || DynPriorityUnit.equals("H") || DynPriorityUnit.equals("M")); - else throw new IllegalArgumentException ("DynPriorityUnit Invalid value - " + DynPriorityUnit + " - Reference_ID=221 - D - H - M"); -if (DynPriorityUnit != null && DynPriorityUnit.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DynPriorityUnit = DynPriorityUnit.substring(0,0); -} -set_Value ("DynPriorityUnit", DynPriorityUnit); -} -/** Get Dynamic Priority Unit. -@return Change of priority when Activity is suspended waiting for user */ -public String getDynPriorityUnit() -{ -return (String)get_Value("DynPriorityUnit"); -} -/** Column name DynPriorityUnit */ -public static final String COLUMNNAME_DynPriorityUnit = "DynPriorityUnit"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; + /** Set Dynamic Priority Unit. + @param DynPriorityUnit + Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityUnit (String DynPriorityUnit) + { +if (DynPriorityUnit == null || DynPriorityUnit.equals("D") || DynPriorityUnit.equals("H") || DynPriorityUnit.equals("M")); else throw new IllegalArgumentException ("DynPriorityUnit Invalid value - " + DynPriorityUnit + " - Reference_ID=221 - D - H - M"); if (DynPriorityUnit != null && DynPriorityUnit.length() > 1) + { + log.warning("Length > 1 - truncated"); + DynPriorityUnit = DynPriorityUnit.substring(0, 0); + } + set_Value (COLUMNNAME_DynPriorityUnit, DynPriorityUnit); + } + + /** Get Dynamic Priority Unit. + @return Change of priority when Activity is suspended waiting for user + */ + public String getDynPriorityUnit () + { + return (String)get_Value(COLUMNNAME_DynPriorityUnit); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } /** EMailRecipient AD_Reference_ID=363 */ -public static final int EMAILRECIPIENT_AD_Reference_ID=363; -/** Document Business Partner = B */ -public static final String EMAILRECIPIENT_DocumentBusinessPartner = "B"; -/** Document Owner = D */ -public static final String EMAILRECIPIENT_DocumentOwner = "D"; -/** WF Responsible = R */ +public static final int EMAILRECIPIENT_AD_Reference_ID=363;/** Document Business Partner = B */ +public static final String EMAILRECIPIENT_DocumentBusinessPartner = "B";/** Document Owner = D */ +public static final String EMAILRECIPIENT_DocumentOwner = "D";/** WF Responsible = R */ public static final String EMAILRECIPIENT_WFResponsible = "R"; -/** Set EMail Recipient. -@param EMailRecipient Recipient of the EMail */ -public void setEMailRecipient (String EMailRecipient) -{ -if (EMailRecipient == null || EMailRecipient.equals("B") || EMailRecipient.equals("D") || EMailRecipient.equals("R")); - else throw new IllegalArgumentException ("EMailRecipient Invalid value - " + EMailRecipient + " - Reference_ID=363 - B - D - R"); -if (EMailRecipient != null && EMailRecipient.length() > 1) -{ -log.warning("Length > 1 - truncated"); -EMailRecipient = EMailRecipient.substring(0,0); -} -set_Value ("EMailRecipient", EMailRecipient); -} -/** Get EMail Recipient. -@return Recipient of the EMail */ -public String getEMailRecipient() -{ -return (String)get_Value("EMailRecipient"); -} -/** Column name EMailRecipient */ -public static final String COLUMNNAME_EMailRecipient = "EMailRecipient"; + /** Set EMail Recipient. + @param EMailRecipient + Recipient of the EMail + */ + public void setEMailRecipient (String EMailRecipient) + { +if (EMailRecipient == null || EMailRecipient.equals("B") || EMailRecipient.equals("D") || EMailRecipient.equals("R")); else throw new IllegalArgumentException ("EMailRecipient Invalid value - " + EMailRecipient + " - Reference_ID=363 - B - D - R"); if (EMailRecipient != null && EMailRecipient.length() > 1) + { + log.warning("Length > 1 - truncated"); + EMailRecipient = EMailRecipient.substring(0, 0); + } + set_Value (COLUMNNAME_EMailRecipient, EMailRecipient); + } + + /** Get EMail Recipient. + @return Recipient of the EMail + */ + public String getEMailRecipient () + { + return (String)get_Value(COLUMNNAME_EMailRecipient); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } /** FinishMode AD_Reference_ID=303 */ -public static final int FINISHMODE_AD_Reference_ID=303; -/** Automatic = A */ -public static final String FINISHMODE_Automatic = "A"; -/** Manual = M */ +public static final int FINISHMODE_AD_Reference_ID=303;/** Automatic = A */ +public static final String FINISHMODE_Automatic = "A";/** Manual = M */ public static final String FINISHMODE_Manual = "M"; -/** Set Finish Mode. -@param FinishMode Workflow Activity Finish Mode */ -public void setFinishMode (String FinishMode) -{ -if (FinishMode == null || FinishMode.equals("A") || FinishMode.equals("M")); - else throw new IllegalArgumentException ("FinishMode Invalid value - " + FinishMode + " - Reference_ID=303 - A - M"); -if (FinishMode != null && FinishMode.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FinishMode = FinishMode.substring(0,0); -} -set_Value ("FinishMode", FinishMode); -} -/** Get Finish Mode. -@return Workflow Activity Finish Mode */ -public String getFinishMode() -{ -return (String)get_Value("FinishMode"); -} -/** Column name FinishMode */ -public static final String COLUMNNAME_FinishMode = "FinishMode"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Centrally maintained. -@param IsCentrallyMaintained Information maintained in System Element table */ -public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) -{ -set_Value ("IsCentrallyMaintained", Boolean.valueOf(IsCentrallyMaintained)); -} -/** Get Centrally maintained. -@return Information maintained in System Element table */ -public boolean isCentrallyMaintained() -{ -Object oo = get_Value("IsCentrallyMaintained"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCentrallyMaintained */ -public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; + /** Set Finish Mode. + @param FinishMode + Workflow Activity Finish Mode + */ + public void setFinishMode (String FinishMode) + { +if (FinishMode == null || FinishMode.equals("A") || FinishMode.equals("M")); else throw new IllegalArgumentException ("FinishMode Invalid value - " + FinishMode + " - Reference_ID=303 - A - M"); if (FinishMode != null && FinishMode.length() > 1) + { + log.warning("Length > 1 - truncated"); + FinishMode = FinishMode.substring(0, 0); + } + set_Value (COLUMNNAME_FinishMode, FinishMode); + } + + /** Get Finish Mode. + @return Workflow Activity Finish Mode + */ + public String getFinishMode () + { + return (String)get_Value(COLUMNNAME_FinishMode); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Centrally maintained. + @param IsCentrallyMaintained + Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) + { + set_Value (COLUMNNAME_IsCentrallyMaintained, Boolean.valueOf(IsCentrallyMaintained)); + } + + /** Get Centrally maintained. + @return Information maintained in System Element table + */ + public boolean isCentrallyMaintained () + { + Object oo = get_Value(COLUMNNAME_IsCentrallyMaintained); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** JoinElement AD_Reference_ID=301 */ -public static final int JOINELEMENT_AD_Reference_ID=301; -/** AND = A */ -public static final String JOINELEMENT_AND = "A"; -/** XOR = X */ +public static final int JOINELEMENT_AD_Reference_ID=301;/** AND = A */ +public static final String JOINELEMENT_AND = "A";/** XOR = X */ public static final String JOINELEMENT_XOR = "X"; -/** Set Join Element. -@param JoinElement Semantics for multiple incoming Transitions */ -public void setJoinElement (String JoinElement) -{ -if (JoinElement == null) throw new IllegalArgumentException ("JoinElement is mandatory"); -if (JoinElement.equals("A") || JoinElement.equals("X")); - else throw new IllegalArgumentException ("JoinElement Invalid value - " + JoinElement + " - Reference_ID=301 - A - X"); -if (JoinElement.length() > 1) -{ -log.warning("Length > 1 - truncated"); -JoinElement = JoinElement.substring(0,0); -} -set_Value ("JoinElement", JoinElement); -} -/** Get Join Element. -@return Semantics for multiple incoming Transitions */ -public String getJoinElement() -{ -return (String)get_Value("JoinElement"); -} -/** Column name JoinElement */ -public static final String COLUMNNAME_JoinElement = "JoinElement"; -/** Set Duration Limit. -@param Limit Maximum Duration in Duration Unit */ -public void setLimit (int Limit) -{ -set_Value ("Limit", Integer.valueOf(Limit)); -} -/** Get Duration Limit. -@return Maximum Duration in Duration Unit */ -public int getLimit() -{ -Integer ii = (Integer)get_Value("Limit"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Limit */ -public static final String COLUMNNAME_Limit = "Limit"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (int Priority) -{ -set_Value ("Priority", Integer.valueOf(Priority)); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public int getPriority() -{ -Integer ii = (Integer)get_Value("Priority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; -/** Set Mail Template. -@param R_MailText_ID Text templates for mailings */ -public void setR_MailText_ID (int R_MailText_ID) -{ -if (R_MailText_ID <= 0) set_Value ("R_MailText_ID", null); - else -set_Value ("R_MailText_ID", Integer.valueOf(R_MailText_ID)); -} -/** Get Mail Template. -@return Text templates for mailings */ -public int getR_MailText_ID() -{ -Integer ii = (Integer)get_Value("R_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_MailText_ID */ -public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + /** Set Join Element. + @param JoinElement + Semantics for multiple incoming Transitions + */ + public void setJoinElement (String JoinElement) + { +if (JoinElement == null) throw new IllegalArgumentException ("JoinElement is mandatory");if (JoinElement.equals("A") || JoinElement.equals("X")); else throw new IllegalArgumentException ("JoinElement Invalid value - " + JoinElement + " - Reference_ID=301 - A - X"); if (JoinElement.length() > 1) + { + log.warning("Length > 1 - truncated"); + JoinElement = JoinElement.substring(0, 0); + } + set_Value (COLUMNNAME_JoinElement, JoinElement); + } + + /** Get Join Element. + @return Semantics for multiple incoming Transitions + */ + public String getJoinElement () + { + return (String)get_Value(COLUMNNAME_JoinElement); + } + + /** Set Duration Limit. + @param Limit + Maximum Duration in Duration Unit + */ + public void setLimit (int Limit) + { + set_Value (COLUMNNAME_Limit, Integer.valueOf(Limit)); + } + + /** Get Duration Limit. + @return Maximum Duration in Duration Unit + */ + public int getLimit () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Limit); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_MailText getI_R_MailText() throws Exception + { + 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 e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID <= 0) set_Value (COLUMNNAME_R_MailText_ID, null); + else + set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** SplitElement AD_Reference_ID=301 */ -public static final int SPLITELEMENT_AD_Reference_ID=301; -/** AND = A */ -public static final String SPLITELEMENT_AND = "A"; -/** XOR = X */ +public static final int SPLITELEMENT_AD_Reference_ID=301;/** AND = A */ +public static final String SPLITELEMENT_AND = "A";/** XOR = X */ public static final String SPLITELEMENT_XOR = "X"; -/** Set Split Element. -@param SplitElement Semantics for multiple outgoing Transitions */ -public void setSplitElement (String SplitElement) -{ -if (SplitElement == null) throw new IllegalArgumentException ("SplitElement is mandatory"); -if (SplitElement.equals("A") || SplitElement.equals("X")); - else throw new IllegalArgumentException ("SplitElement Invalid value - " + SplitElement + " - Reference_ID=301 - A - X"); -if (SplitElement.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SplitElement = SplitElement.substring(0,0); -} -set_Value ("SplitElement", SplitElement); -} -/** Get Split Element. -@return Semantics for multiple outgoing Transitions */ -public String getSplitElement() -{ -return (String)get_Value("SplitElement"); -} -/** Column name SplitElement */ -public static final String COLUMNNAME_SplitElement = "SplitElement"; + /** Set Split Element. + @param SplitElement + Semantics for multiple outgoing Transitions + */ + public void setSplitElement (String SplitElement) + { +if (SplitElement == null) throw new IllegalArgumentException ("SplitElement is mandatory");if (SplitElement.equals("A") || SplitElement.equals("X")); else throw new IllegalArgumentException ("SplitElement Invalid value - " + SplitElement + " - Reference_ID=301 - A - X"); if (SplitElement.length() > 1) + { + log.warning("Length > 1 - truncated"); + SplitElement = SplitElement.substring(0, 0); + } + set_Value (COLUMNNAME_SplitElement, SplitElement); + } + + /** Get Split Element. + @return Semantics for multiple outgoing Transitions + */ + public String getSplitElement () + { + return (String)get_Value(COLUMNNAME_SplitElement); + } /** StartMode AD_Reference_ID=303 */ -public static final int STARTMODE_AD_Reference_ID=303; -/** Automatic = A */ -public static final String STARTMODE_Automatic = "A"; -/** Manual = M */ +public static final int STARTMODE_AD_Reference_ID=303;/** Automatic = A */ +public static final String STARTMODE_Automatic = "A";/** Manual = M */ public static final String STARTMODE_Manual = "M"; -/** Set Start Mode. -@param StartMode Workflow Activity Start Mode */ -public void setStartMode (String StartMode) -{ -if (StartMode == null || StartMode.equals("A") || StartMode.equals("M")); - else throw new IllegalArgumentException ("StartMode Invalid value - " + StartMode + " - Reference_ID=303 - A - M"); -if (StartMode != null && StartMode.length() > 1) -{ -log.warning("Length > 1 - truncated"); -StartMode = StartMode.substring(0,0); -} -set_Value ("StartMode", StartMode); -} -/** Get Start Mode. -@return Workflow Activity Start Mode */ -public String getStartMode() -{ -return (String)get_Value("StartMode"); -} -/** Column name StartMode */ -public static final String COLUMNNAME_StartMode = "StartMode"; + /** Set Start Mode. + @param StartMode + Workflow Activity Start Mode + */ + public void setStartMode (String StartMode) + { +if (StartMode == null || StartMode.equals("A") || StartMode.equals("M")); else throw new IllegalArgumentException ("StartMode Invalid value - " + StartMode + " - Reference_ID=303 - A - M"); if (StartMode != null && StartMode.length() > 1) + { + log.warning("Length > 1 - truncated"); + StartMode = StartMode.substring(0, 0); + } + set_Value (COLUMNNAME_StartMode, StartMode); + } + + /** Get Start Mode. + @return Workflow Activity Start Mode + */ + public String getStartMode () + { + return (String)get_Value(COLUMNNAME_StartMode); + } /** SubflowExecution AD_Reference_ID=307 */ -public static final int SUBFLOWEXECUTION_AD_Reference_ID=307; -/** Asynchronously = A */ -public static final String SUBFLOWEXECUTION_Asynchronously = "A"; -/** Synchronously = S */ +public static final int SUBFLOWEXECUTION_AD_Reference_ID=307;/** Asynchronously = A */ +public static final String SUBFLOWEXECUTION_Asynchronously = "A";/** Synchronously = S */ public static final String SUBFLOWEXECUTION_Synchronously = "S"; -/** Set Subflow Execution. -@param SubflowExecution Mode how the sub-workflow is executed */ -public void setSubflowExecution (String SubflowExecution) -{ -if (SubflowExecution == null || SubflowExecution.equals("A") || SubflowExecution.equals("S")); - else throw new IllegalArgumentException ("SubflowExecution Invalid value - " + SubflowExecution + " - Reference_ID=307 - A - S"); -if (SubflowExecution != null && SubflowExecution.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SubflowExecution = SubflowExecution.substring(0,0); -} -set_Value ("SubflowExecution", SubflowExecution); -} -/** Get Subflow Execution. -@return Mode how the sub-workflow is executed */ -public String getSubflowExecution() -{ -return (String)get_Value("SubflowExecution"); -} -/** Column name SubflowExecution */ -public static final String COLUMNNAME_SubflowExecution = "SubflowExecution"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Wait Time. -@param WaitTime Time in minutes to wait (sleep) */ -public void setWaitTime (int WaitTime) -{ -set_Value ("WaitTime", Integer.valueOf(WaitTime)); -} -/** Get Wait Time. -@return Time in minutes to wait (sleep) */ -public int getWaitTime() -{ -Integer ii = (Integer)get_Value("WaitTime"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WaitTime */ -public static final String COLUMNNAME_WaitTime = "WaitTime"; -/** Set Waiting Time. -@param WaitingTime Workflow Simulation Waiting time */ -public void setWaitingTime (int WaitingTime) -{ -set_Value ("WaitingTime", Integer.valueOf(WaitingTime)); -} -/** Get Waiting Time. -@return Workflow Simulation Waiting time */ -public int getWaitingTime() -{ -Integer ii = (Integer)get_Value("WaitingTime"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WaitingTime */ -public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + /** Set Subflow Execution. + @param SubflowExecution + Mode how the sub-workflow is executed + */ + public void setSubflowExecution (String SubflowExecution) + { +if (SubflowExecution == null || SubflowExecution.equals("A") || SubflowExecution.equals("S")); else throw new IllegalArgumentException ("SubflowExecution Invalid value - " + SubflowExecution + " - Reference_ID=307 - A - S"); if (SubflowExecution != null && SubflowExecution.length() > 1) + { + log.warning("Length > 1 - truncated"); + SubflowExecution = SubflowExecution.substring(0, 0); + } + set_Value (COLUMNNAME_SubflowExecution, SubflowExecution); + } + + /** Get Subflow Execution. + @return Mode how the sub-workflow is executed + */ + public String getSubflowExecution () + { + return (String)get_Value(COLUMNNAME_SubflowExecution); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Wait Time. + @param WaitTime + Time in minutes to wait (sleep) + */ + public void setWaitTime (int WaitTime) + { + set_Value (COLUMNNAME_WaitTime, Integer.valueOf(WaitTime)); + } + + /** Get Wait Time. + @return Time in minutes to wait (sleep) + */ + public int getWaitTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WaitTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Waiting Time. + @param WaitingTime + Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime) + { + set_Value (COLUMNNAME_WaitingTime, Integer.valueOf(WaitingTime)); + } + + /** Get Waiting Time. + @return Workflow Simulation Waiting time + */ + public int getWaitingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WaitingTime); + if (ii == null) + return 0; + return ii.intValue(); + } /** Workflow_ID AD_Reference_ID=174 */ public static final int WORKFLOW_ID_AD_Reference_ID=174; -/** Set Workflow. -@param Workflow_ID Workflow or tasks */ -public void setWorkflow_ID (int Workflow_ID) -{ -if (Workflow_ID <= 0) set_Value ("Workflow_ID", null); - else -set_Value ("Workflow_ID", Integer.valueOf(Workflow_ID)); -} -/** Get Workflow. -@return Workflow or tasks */ -public int getWorkflow_ID() -{ -Integer ii = (Integer)get_Value("Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Workflow_ID */ -public static final String COLUMNNAME_Workflow_ID = "Workflow_ID"; -/** Set Working Time. -@param WorkingTime Workflow Simulation Execution Time */ -public void setWorkingTime (int WorkingTime) -{ -set_Value ("WorkingTime", Integer.valueOf(WorkingTime)); -} -/** Get Working Time. -@return Workflow Simulation Execution Time */ -public int getWorkingTime() -{ -Integer ii = (Integer)get_Value("WorkingTime"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WorkingTime */ -public static final String COLUMNNAME_WorkingTime = "WorkingTime"; -/** Set X Position. -@param XPosition Absolute X (horizontal) position in 1/72 of an inch */ -public void setXPosition (int XPosition) -{ -set_Value ("XPosition", Integer.valueOf(XPosition)); -} -/** Get X Position. -@return Absolute X (horizontal) position in 1/72 of an inch */ -public int getXPosition() -{ -Integer ii = (Integer)get_Value("XPosition"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name XPosition */ -public static final String COLUMNNAME_XPosition = "XPosition"; -/** Set Y Position. -@param YPosition Absolute Y (vertical) position in 1/72 of an inch */ -public void setYPosition (int YPosition) -{ -set_Value ("YPosition", Integer.valueOf(YPosition)); -} -/** Get Y Position. -@return Absolute Y (vertical) position in 1/72 of an inch */ -public int getYPosition() -{ -Integer ii = (Integer)get_Value("YPosition"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name YPosition */ -public static final String COLUMNNAME_YPosition = "YPosition"; -} + /** Set Workflow. + @param Workflow_ID + Workflow or tasks + */ + public void setWorkflow_ID (int Workflow_ID) + { + if (Workflow_ID <= 0) set_Value (COLUMNNAME_Workflow_ID, null); + else + set_Value (COLUMNNAME_Workflow_ID, Integer.valueOf(Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or tasks + */ + public int getWorkflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Working Time. + @param WorkingTime + Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime) + { + set_Value (COLUMNNAME_WorkingTime, Integer.valueOf(WorkingTime)); + } + + /** Get Working Time. + @return Workflow Simulation Execution Time + */ + public int getWorkingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WorkingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set X Position. + @param XPosition + Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition) + { + set_Value (COLUMNNAME_XPosition, Integer.valueOf(XPosition)); + } + + /** Get X Position. + @return Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_XPosition); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Y Position. + @param YPosition + Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition) + { + set_Value (COLUMNNAME_YPosition, Integer.valueOf(YPosition)); + } + + /** Get Y Position. + @return Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_YPosition); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 b7eda08f65..730109c6b8 100644 --- a/base/src/org/compiere/model/X_AD_WF_NodeNext.java +++ b/base/src/org/compiere/model/X_AD_WF_NodeNext.java @@ -1,253 +1,284 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_NodeNext - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_NodeNext extends PO + +/** Generated Model for AD_WF_NodeNext + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_NodeNext extends PO implements I_AD_WF_NodeNext, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_NodeNext_ID id -@param trxName transaction -*/ -public X_AD_WF_NodeNext (Properties ctx, int AD_WF_NodeNext_ID, String trxName) -{ -super (ctx, AD_WF_NodeNext_ID, trxName); -/** if (AD_WF_NodeNext_ID == 0) -{ -setAD_WF_Next_ID (0); -setAD_WF_NodeNext_ID (0); -setAD_WF_Node_ID (0); -setEntityType (null); // U -setIsStdUserWorkflow (false); -setSeqNo (0); // 10 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_NodeNext (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_NodeNext */ -public static final String Table_Name="AD_WF_NodeNext"; - -/** AD_Table_ID=131 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_NodeNext[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_NodeNext (Properties ctx, int AD_WF_NodeNext_ID, String trxName) + { + super (ctx, AD_WF_NodeNext_ID, trxName); + /** if (AD_WF_NodeNext_ID == 0) { setAD_WF_Next_ID (0); + setAD_WF_NodeNext_ID (0); + setAD_WF_Node_ID (0); + setEntityType (null); +// U + setIsStdUserWorkflow (false); + setSeqNo (0); +// 10 +} */ + } + + /** Load Constructor */ + public X_AD_WF_NodeNext (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_NodeNext[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_WF_Next_ID AD_Reference_ID=109 */ public static final int AD_WF_NEXT_ID_AD_Reference_ID=109; -/** Set Next Node. -@param AD_WF_Next_ID Next Node in workflow */ -public void setAD_WF_Next_ID (int AD_WF_Next_ID) -{ -if (AD_WF_Next_ID < 1) throw new IllegalArgumentException ("AD_WF_Next_ID is mandatory."); -set_Value ("AD_WF_Next_ID", Integer.valueOf(AD_WF_Next_ID)); -} -/** Get Next Node. -@return Next Node in workflow */ -public int getAD_WF_Next_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Next_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Next_ID */ -public static final String COLUMNNAME_AD_WF_Next_ID = "AD_WF_Next_ID"; -/** Set Node Transition. -@param AD_WF_NodeNext_ID Workflow Node Transition */ -public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID) -{ -if (AD_WF_NodeNext_ID < 1) throw new IllegalArgumentException ("AD_WF_NodeNext_ID is mandatory."); -set_ValueNoCheck ("AD_WF_NodeNext_ID", Integer.valueOf(AD_WF_NodeNext_ID)); -} -/** Get Node Transition. -@return Workflow Node Transition */ -public int getAD_WF_NodeNext_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_NodeNext_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_NodeNext_ID */ -public static final String COLUMNNAME_AD_WF_NodeNext_ID = "AD_WF_NodeNext_ID"; -/** Set Node. -@param AD_WF_Node_ID Workflow Node (activity), step or process */ -public void setAD_WF_Node_ID (int AD_WF_Node_ID) -{ -if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID)); -} -/** Get Node. -@return Workflow Node (activity), step or process */ -public int getAD_WF_Node_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); -} -/** Column name AD_WF_Node_ID */ -public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Next Node. + @param AD_WF_Next_ID + Next Node in workflow + */ + public void setAD_WF_Next_ID (int AD_WF_Next_ID) + { + if (AD_WF_Next_ID < 1) + throw new IllegalArgumentException ("AD_WF_Next_ID is mandatory."); + set_Value (COLUMNNAME_AD_WF_Next_ID, Integer.valueOf(AD_WF_Next_ID)); + } + + /** Get Next Node. + @return Next Node in workflow + */ + public int getAD_WF_Next_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Next_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node Transition. + @param AD_WF_NodeNext_ID + Workflow Node Transition + */ + public void setAD_WF_NodeNext_ID (int AD_WF_NodeNext_ID) + { + if (AD_WF_NodeNext_ID < 1) + throw new IllegalArgumentException ("AD_WF_NodeNext_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_NodeNext_ID, Integer.valueOf(AD_WF_NodeNext_ID)); + } + + /** Get Node Transition. + @return Workflow Node Transition + */ + public int getAD_WF_NodeNext_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_NodeNext_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception + { + 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 e; + } + return result; + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Std User Workflow. -@param IsStdUserWorkflow Standard Manual User Approval Workflow */ -public void setIsStdUserWorkflow (boolean IsStdUserWorkflow) -{ -set_Value ("IsStdUserWorkflow", Boolean.valueOf(IsStdUserWorkflow)); -} -/** Get Std User Workflow. -@return Standard Manual User Approval Workflow */ -public boolean isStdUserWorkflow() -{ -Object oo = get_Value("IsStdUserWorkflow"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsStdUserWorkflow */ -public static final String COLUMNNAME_IsStdUserWorkflow = "IsStdUserWorkflow"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Transition Code. -@param TransitionCode Code resulting in TRUE of FALSE */ -public void setTransitionCode (String TransitionCode) -{ -if (TransitionCode != null && TransitionCode.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TransitionCode = TransitionCode.substring(0,1999); -} -set_Value ("TransitionCode", TransitionCode); -} -/** Get Transition Code. -@return Code resulting in TRUE of FALSE */ -public String getTransitionCode() -{ -return (String)get_Value("TransitionCode"); -} -/** Column name TransitionCode */ -public static final String COLUMNNAME_TransitionCode = "TransitionCode"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Std User Workflow. + @param IsStdUserWorkflow + Standard Manual User Approval Workflow + */ + public void setIsStdUserWorkflow (boolean IsStdUserWorkflow) + { + set_Value (COLUMNNAME_IsStdUserWorkflow, Boolean.valueOf(IsStdUserWorkflow)); + } + + /** Get Std User Workflow. + @return Standard Manual User Approval Workflow + */ + public boolean isStdUserWorkflow () + { + Object oo = get_Value(COLUMNNAME_IsStdUserWorkflow); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Transition Code. + @param TransitionCode + Code resulting in TRUE of FALSE + */ + public void setTransitionCode (String TransitionCode) + { + if (TransitionCode != null && TransitionCode.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TransitionCode = TransitionCode.substring(0, 1999); + } + set_Value (COLUMNNAME_TransitionCode, TransitionCode); + } + + /** Get Transition Code. + @return Code resulting in TRUE of FALSE + */ + public String getTransitionCode () + { + return (String)get_Value(COLUMNNAME_TransitionCode); + } +} \ No newline at end of file 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 e30afe77da..0446408275 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 @@ -1,229 +1,269 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_Node_Para - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_Node_Para extends PO + +/** Generated Model for AD_WF_Node_Para + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_Node_Para extends PO implements I_AD_WF_Node_Para, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_Node_Para_ID id -@param trxName transaction -*/ -public X_AD_WF_Node_Para (Properties ctx, int AD_WF_Node_Para_ID, String trxName) -{ -super (ctx, AD_WF_Node_Para_ID, trxName); -/** if (AD_WF_Node_Para_ID == 0) -{ -setAD_WF_Node_ID (0); -setAD_WF_Node_Para_ID (0); -setEntityType (null); // U -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_Node_Para (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_Node_Para */ -public static final String Table_Name="AD_WF_Node_Para"; - -/** AD_Table_ID=643 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_Node_Para[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Parameter. -@param AD_Process_Para_ID Process Parameter */ -public void setAD_Process_Para_ID (int AD_Process_Para_ID) -{ -if (AD_Process_Para_ID <= 0) set_Value ("AD_Process_Para_ID", null); - else -set_Value ("AD_Process_Para_ID", Integer.valueOf(AD_Process_Para_ID)); -} -/** Get Process Parameter. -@return Process Parameter */ -public int getAD_Process_Para_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_Para_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_Para_ID */ -public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; -/** Set Node. -@param AD_WF_Node_ID Workflow Node (activity), step or process */ -public void setAD_WF_Node_ID (int AD_WF_Node_ID) -{ -if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID)); -} -/** Get Node. -@return Workflow Node (activity), step or process */ -public int getAD_WF_Node_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); -} -/** Column name AD_WF_Node_ID */ -public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; -/** Set Workflow Node Parameter. -@param AD_WF_Node_Para_ID Workflow Node Execution Parameter */ -public void setAD_WF_Node_Para_ID (int AD_WF_Node_Para_ID) -{ -if (AD_WF_Node_Para_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_Para_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Node_Para_ID", Integer.valueOf(AD_WF_Node_Para_ID)); -} -/** Get Workflow Node Parameter. -@return Workflow Node Execution Parameter */ -public int getAD_WF_Node_Para_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_Para_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Node_Para_ID */ -public static final String COLUMNNAME_AD_WF_Node_Para_ID = "AD_WF_Node_Para_ID"; -/** Set Attribute Name. -@param AttributeName Name of the Attribute */ -public void setAttributeName (String AttributeName) -{ -if (AttributeName != null && AttributeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeName = AttributeName.substring(0,59); -} -set_Value ("AttributeName", AttributeName); -} -/** Get Attribute Name. -@return Name of the Attribute */ -public String getAttributeName() -{ -return (String)get_Value("AttributeName"); -} -/** Column name AttributeName */ -public static final String COLUMNNAME_AttributeName = "AttributeName"; -/** Set Attribute Value. -@param AttributeValue Value of the Attribute */ -public void setAttributeValue (String AttributeValue) -{ -if (AttributeValue != null && AttributeValue.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeValue = AttributeValue.substring(0,59); -} -set_Value ("AttributeValue", AttributeValue); -} -/** Get Attribute Value. -@return Value of the Attribute */ -public String getAttributeValue() -{ -return (String)get_Value("AttributeValue"); -} -/** Column name AttributeValue */ -public static final String COLUMNNAME_AttributeValue = "AttributeValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Node_Para (Properties ctx, int AD_WF_Node_Para_ID, String trxName) + { + super (ctx, AD_WF_Node_Para_ID, trxName); + /** if (AD_WF_Node_Para_ID == 0) { setAD_WF_Node_ID (0); + setAD_WF_Node_Para_ID (0); + setEntityType (null); +// U +} */ + } + + /** Load Constructor */ + public X_AD_WF_Node_Para (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_Node_Para[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Process_Para getI_AD_Process_Para() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Parameter. + @param AD_Process_Para_ID Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID) + { + if (AD_Process_Para_ID <= 0) set_Value (COLUMNNAME_AD_Process_Para_ID, null); + else + set_Value (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + } + + /** Get Process Parameter. +@return Process Parameter */ + public int getAD_Process_Para_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception + { + 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 e; + } + return result; + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Node_ID())); + } + + /** Set Workflow Node Parameter. + @param AD_WF_Node_Para_ID + Workflow Node Execution Parameter + */ + public void setAD_WF_Node_Para_ID (int AD_WF_Node_Para_ID) + { + if (AD_WF_Node_Para_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_Para_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_Para_ID, Integer.valueOf(AD_WF_Node_Para_ID)); + } + + /** Get Workflow Node Parameter. + @return Workflow Node Execution Parameter + */ + public int getAD_WF_Node_Para_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_Para_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Name. + @param AttributeName + Name of the Attribute + */ + public void setAttributeName (String AttributeName) + { + if (AttributeName != null && AttributeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeName = AttributeName.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeName, AttributeName); + } + + /** Get Attribute Name. + @return Name of the Attribute + */ + public String getAttributeName () + { + return (String)get_Value(COLUMNNAME_AttributeName); + } + + /** Set Attribute Value. + @param AttributeValue + Value of the Attribute + */ + public void setAttributeValue (String AttributeValue) + { + if (AttributeValue != null && AttributeValue.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeValue = AttributeValue.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeValue, AttributeValue); + } + + /** Get Attribute Value. + @return Value of the Attribute + */ + public String getAttributeValue () + { + return (String)get_Value(COLUMNNAME_AttributeValue); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } +} \ No newline at end of file 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 515e734f40..69f6cf0f16 100644 --- a/base/src/org/compiere/model/X_AD_WF_Process.java +++ b/base/src/org/compiere/model/X_AD_WF_Process.java @@ -1,336 +1,408 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_Process - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_Process extends PO + +/** Generated Model for AD_WF_Process + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_Process extends PO implements I_AD_WF_Process, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_Process_ID id -@param trxName transaction -*/ -public X_AD_WF_Process (Properties ctx, int AD_WF_Process_ID, String trxName) -{ -super (ctx, AD_WF_Process_ID, trxName); -/** if (AD_WF_Process_ID == 0) -{ -setAD_Table_ID (0); -setAD_WF_Process_ID (0); -setAD_WF_Responsible_ID (0); -setAD_Workflow_ID (0); -setProcessed (false); -setRecord_ID (0); -setWFState (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_Process (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_Process */ -public static final String Table_Name="AD_WF_Process"; - -/** AD_Table_ID=645 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_Process[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Message. -@param AD_Message_ID System Message */ -public void setAD_Message_ID (int AD_Message_ID) -{ -if (AD_Message_ID <= 0) set_Value ("AD_Message_ID", null); - else -set_Value ("AD_Message_ID", Integer.valueOf(AD_Message_ID)); -} -/** Get Message. -@return System Message */ -public int getAD_Message_ID() -{ -Integer ii = (Integer)get_Value("AD_Message_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Message_ID */ -public static final String COLUMNNAME_AD_Message_ID = "AD_Message_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Process (Properties ctx, int AD_WF_Process_ID, String trxName) + { + super (ctx, AD_WF_Process_ID, trxName); + /** if (AD_WF_Process_ID == 0) { setAD_Table_ID (0); + setAD_WF_Process_ID (0); + setAD_WF_Responsible_ID (0); + setAD_Workflow_ID (0); + setProcessed (false); + setRecord_ID (0); + setWFState (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_Process (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_Process[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Message getI_AD_Message() throws Exception + { + 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 e; + } + return result; + } + + /** Set Message. + @param AD_Message_ID + System Message + */ + public void setAD_Message_ID (int AD_Message_ID) + { + if (AD_Message_ID <= 0) set_Value (COLUMNNAME_AD_Message_ID, null); + else + set_Value (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); + } + + /** Get Message. + @return System Message + */ + public int getAD_Message_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Message_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_User_ID AD_Reference_ID=286 */ public static final int AD_USER_ID_AD_Reference_ID=286; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Workflow Process. -@param AD_WF_Process_ID Actual Workflow Process Instance */ -public void setAD_WF_Process_ID (int AD_WF_Process_ID) -{ -if (AD_WF_Process_ID < 1) throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Process_ID", Integer.valueOf(AD_WF_Process_ID)); -} -/** Get Workflow Process. -@return Actual Workflow Process Instance */ -public int getAD_WF_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Process_ID */ -public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; -/** Set Workflow Responsible. -@param AD_WF_Responsible_ID Responsible for Workflow Execution */ -public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) -{ -if (AD_WF_Responsible_ID < 1) throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); -set_Value ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID)); -} -/** Get Workflow Responsible. -@return Responsible for Workflow Execution */ -public int getAD_WF_Responsible_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Responsible_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Responsible_ID */ -public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); -set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_Workflow_ID())); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (int Priority) -{ -set_Value ("Priority", Integer.valueOf(Priority)); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public int getPriority() -{ -Integer ii = (Integer)get_Value("Priority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow Process. + @param AD_WF_Process_ID + Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID) + { + if (AD_WF_Process_ID < 1) + throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + } + + /** Get Workflow Process. + @return Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID < 1) + throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Workflow_ID())); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } /** WFState AD_Reference_ID=305 */ -public static final int WFSTATE_AD_Reference_ID=305; -/** Aborted = CA */ -public static final String WFSTATE_Aborted = "CA"; -/** Completed = CC */ -public static final String WFSTATE_Completed = "CC"; -/** Terminated = CT */ -public static final String WFSTATE_Terminated = "CT"; -/** Not Started = ON */ -public static final String WFSTATE_NotStarted = "ON"; -/** Running = OR */ -public static final String WFSTATE_Running = "OR"; -/** Suspended = OS */ +public static final int WFSTATE_AD_Reference_ID=305;/** Aborted = CA */ +public static final String WFSTATE_Aborted = "CA";/** Completed = CC */ +public static final String WFSTATE_Completed = "CC";/** Terminated = CT */ +public static final String WFSTATE_Terminated = "CT";/** Not Started = ON */ +public static final String WFSTATE_NotStarted = "ON";/** Running = OR */ +public static final String WFSTATE_Running = "OR";/** Suspended = OS */ public static final String WFSTATE_Suspended = "OS"; -/** Set Workflow State. -@param WFState State of the execution of the workflow */ -public void setWFState (String WFState) -{ -if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory"); -if (WFState.equals("CA") || WFState.equals("CC") || WFState.equals("CT") || WFState.equals("ON") || WFState.equals("OR") || WFState.equals("OS")); - else throw new IllegalArgumentException ("WFState Invalid value - " + WFState + " - Reference_ID=305 - CA - CC - CT - ON - OR - OS"); -if (WFState.length() > 2) -{ -log.warning("Length > 2 - truncated"); -WFState = WFState.substring(0,1); -} -set_Value ("WFState", WFState); -} -/** Get Workflow State. -@return State of the execution of the workflow */ -public String getWFState() -{ -return (String)get_Value("WFState"); -} -/** Column name WFState */ -public static final String COLUMNNAME_WFState = "WFState"; -} + /** Set Workflow State. + @param WFState + State of the execution of the workflow + */ + public void setWFState (String WFState) + { +if (WFState == null) throw new IllegalArgumentException ("WFState is mandatory");if (WFState.equals("CA") || WFState.equals("CC") || WFState.equals("CT") || WFState.equals("ON") || WFState.equals("OR") || WFState.equals("OS")); else throw new IllegalArgumentException ("WFState Invalid value - " + WFState + " - Reference_ID=305 - CA - CC - CT - ON - OR - OS"); if (WFState.length() > 2) + { + log.warning("Length > 2 - truncated"); + WFState = WFState.substring(0, 1); + } + set_Value (COLUMNNAME_WFState, WFState); + } + + /** Get Workflow State. + @return State of the execution of the workflow + */ + public String getWFState () + { + return (String)get_Value(COLUMNNAME_WFState); + } +} \ No newline at end of file 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 1f7646d212..03976de657 100644 --- a/base/src/org/compiere/model/X_AD_WF_ProcessData.java +++ b/base/src/org/compiere/model/X_AD_WF_ProcessData.java @@ -1,169 +1,189 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_ProcessData - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_ProcessData extends PO + +/** Generated Model for AD_WF_ProcessData + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_ProcessData extends PO implements I_AD_WF_ProcessData, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_ProcessData_ID id -@param trxName transaction -*/ -public X_AD_WF_ProcessData (Properties ctx, int AD_WF_ProcessData_ID, String trxName) -{ -super (ctx, AD_WF_ProcessData_ID, trxName); -/** if (AD_WF_ProcessData_ID == 0) -{ -setAD_WF_ProcessData_ID (0); -setAD_WF_Process_ID (0); -setAttributeName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_ProcessData (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_ProcessData */ -public static final String Table_Name="AD_WF_ProcessData"; - -/** AD_Table_ID=648 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_ProcessData[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Workflow Process Data. -@param AD_WF_ProcessData_ID Workflow Process Context */ -public void setAD_WF_ProcessData_ID (int AD_WF_ProcessData_ID) -{ -if (AD_WF_ProcessData_ID < 1) throw new IllegalArgumentException ("AD_WF_ProcessData_ID is mandatory."); -set_ValueNoCheck ("AD_WF_ProcessData_ID", Integer.valueOf(AD_WF_ProcessData_ID)); -} -/** Get Workflow Process Data. -@return Workflow Process Context */ -public int getAD_WF_ProcessData_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_ProcessData_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_ProcessData_ID */ -public static final String COLUMNNAME_AD_WF_ProcessData_ID = "AD_WF_ProcessData_ID"; -/** Set Workflow Process. -@param AD_WF_Process_ID Actual Workflow Process Instance */ -public void setAD_WF_Process_ID (int AD_WF_Process_ID) -{ -if (AD_WF_Process_ID < 1) throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Process_ID", Integer.valueOf(AD_WF_Process_ID)); -} -/** Get Workflow Process. -@return Actual Workflow Process Instance */ -public int getAD_WF_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Process_ID())); -} -/** Column name AD_WF_Process_ID */ -public static final String COLUMNNAME_AD_WF_Process_ID = "AD_WF_Process_ID"; -/** Set Attribute Name. -@param AttributeName Name of the Attribute */ -public void setAttributeName (String AttributeName) -{ -if (AttributeName == null) throw new IllegalArgumentException ("AttributeName is mandatory."); -if (AttributeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeName = AttributeName.substring(0,59); -} -set_Value ("AttributeName", AttributeName); -} -/** Get Attribute Name. -@return Name of the Attribute */ -public String getAttributeName() -{ -return (String)get_Value("AttributeName"); -} -/** Column name AttributeName */ -public static final String COLUMNNAME_AttributeName = "AttributeName"; -/** Set Attribute Value. -@param AttributeValue Value of the Attribute */ -public void setAttributeValue (String AttributeValue) -{ -if (AttributeValue != null && AttributeValue.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AttributeValue = AttributeValue.substring(0,59); -} -set_Value ("AttributeValue", AttributeValue); -} -/** Get Attribute Value. -@return Value of the Attribute */ -public String getAttributeValue() -{ -return (String)get_Value("AttributeValue"); -} -/** Column name AttributeValue */ -public static final String COLUMNNAME_AttributeValue = "AttributeValue"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_ProcessData (Properties ctx, int AD_WF_ProcessData_ID, String trxName) + { + super (ctx, AD_WF_ProcessData_ID, trxName); + /** if (AD_WF_ProcessData_ID == 0) { setAD_WF_ProcessData_ID (0); + setAD_WF_Process_ID (0); + setAttributeName (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_ProcessData (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_ProcessData[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Workflow Process Data. + @param AD_WF_ProcessData_ID + Workflow Process Context + */ + public void setAD_WF_ProcessData_ID (int AD_WF_ProcessData_ID) + { + if (AD_WF_ProcessData_ID < 1) + throw new IllegalArgumentException ("AD_WF_ProcessData_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_ProcessData_ID, Integer.valueOf(AD_WF_ProcessData_ID)); + } + + /** Get Workflow Process Data. + @return Workflow Process Context + */ + public int getAD_WF_ProcessData_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_ProcessData_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Process getI_AD_WF_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Process. + @param AD_WF_Process_ID + Actual Workflow Process Instance + */ + public void setAD_WF_Process_ID (int AD_WF_Process_ID) + { + if (AD_WF_Process_ID < 1) + throw new IllegalArgumentException ("AD_WF_Process_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Process_ID, Integer.valueOf(AD_WF_Process_ID)); + } + + /** Get Workflow Process. + @return Actual Workflow Process Instance + */ + public int getAD_WF_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WF_Process_ID())); + } + + /** Set Attribute Name. + @param AttributeName + Name of the Attribute + */ + public void setAttributeName (String AttributeName) + { + if (AttributeName == null) + throw new IllegalArgumentException ("AttributeName is mandatory."); + if (AttributeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeName = AttributeName.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeName, AttributeName); + } + + /** Get Attribute Name. + @return Name of the Attribute + */ + public String getAttributeName () + { + return (String)get_Value(COLUMNNAME_AttributeName); + } + + /** Set Attribute Value. + @param AttributeValue + Value of the Attribute + */ + public void setAttributeValue (String AttributeValue) + { + if (AttributeValue != null && AttributeValue.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeValue = AttributeValue.substring(0, 59); + } + set_Value (COLUMNNAME_AttributeValue, AttributeValue); + } + + /** Get Attribute Value. + @return Value of the Attribute + */ + public String getAttributeValue () + { + return (String)get_Value(COLUMNNAME_AttributeValue); + } +} \ No newline at end of file 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 3b89e836ff..df06f2e1cb 100644 --- a/base/src/org/compiere/model/X_AD_WF_Responsible.java +++ b/base/src/org/compiere/model/X_AD_WF_Responsible.java @@ -1,249 +1,268 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WF_Responsible - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WF_Responsible extends PO + +/** Generated Model for AD_WF_Responsible + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WF_Responsible extends PO implements I_AD_WF_Responsible, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WF_Responsible_ID id -@param trxName transaction -*/ -public X_AD_WF_Responsible (Properties ctx, int AD_WF_Responsible_ID, String trxName) -{ -super (ctx, AD_WF_Responsible_ID, trxName); -/** if (AD_WF_Responsible_ID == 0) -{ -setAD_Role_ID (0); -setAD_WF_Responsible_ID (0); -setEntityType (null); // U -setName (null); -setResponsibleType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WF_Responsible (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WF_Responsible */ -public static final String Table_Name="AD_WF_Responsible"; - -/** AD_Table_ID=646 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WF_Responsible[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Responsible (Properties ctx, int AD_WF_Responsible_ID, String trxName) + { + super (ctx, AD_WF_Responsible_ID, trxName); + /** if (AD_WF_Responsible_ID == 0) { setAD_Role_ID (0); + setAD_WF_Responsible_ID (0); + setEntityType (null); +// U + setName (null); + setResponsibleType (null); +} */ + } + + /** Load Constructor */ + public X_AD_WF_Responsible (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WF_Responsible[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_User_ID AD_Reference_ID=286 */ public static final int AD_USER_ID_AD_Reference_ID=286; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Workflow Responsible. -@param AD_WF_Responsible_ID Responsible for Workflow Execution */ -public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) -{ -if (AD_WF_Responsible_ID < 1) throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); -set_ValueNoCheck ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID)); -} -/** Get Workflow Responsible. -@return Responsible for Workflow Execution */ -public int getAD_WF_Responsible_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Responsible_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Responsible_ID */ -public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID < 1) + throw new IllegalArgumentException ("AD_WF_Responsible_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** ResponsibleType AD_Reference_ID=304 */ -public static final int RESPONSIBLETYPE_AD_Reference_ID=304; -/** Human = H */ -public static final String RESPONSIBLETYPE_Human = "H"; -/** Organization = O */ -public static final String RESPONSIBLETYPE_Organization = "O"; -/** Role = R */ -public static final String RESPONSIBLETYPE_Role = "R"; -/** System Resource = S */ +public static final int RESPONSIBLETYPE_AD_Reference_ID=304;/** Human = H */ +public static final String RESPONSIBLETYPE_Human = "H";/** Organization = O */ +public static final String RESPONSIBLETYPE_Organization = "O";/** Role = R */ +public static final String RESPONSIBLETYPE_Role = "R";/** System Resource = S */ public static final String RESPONSIBLETYPE_SystemResource = "S"; -/** Set Responsible Type. -@param ResponsibleType Type of the Responsibility for a workflow */ -public void setResponsibleType (String ResponsibleType) -{ -if (ResponsibleType == null) throw new IllegalArgumentException ("ResponsibleType is mandatory"); -if (ResponsibleType.equals("H") || ResponsibleType.equals("O") || ResponsibleType.equals("R") || ResponsibleType.equals("S")); - else throw new IllegalArgumentException ("ResponsibleType Invalid value - " + ResponsibleType + " - Reference_ID=304 - H - O - R - S"); -if (ResponsibleType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ResponsibleType = ResponsibleType.substring(0,0); -} -set_Value ("ResponsibleType", ResponsibleType); -} -/** Get Responsible Type. -@return Type of the Responsibility for a workflow */ -public String getResponsibleType() -{ -return (String)get_Value("ResponsibleType"); -} -/** Column name ResponsibleType */ -public static final String COLUMNNAME_ResponsibleType = "ResponsibleType"; -} + /** Set Responsible Type. + @param ResponsibleType + Type of the Responsibility for a workflow + */ + public void setResponsibleType (String ResponsibleType) + { +if (ResponsibleType == null) throw new IllegalArgumentException ("ResponsibleType is mandatory");if (ResponsibleType.equals("H") || ResponsibleType.equals("O") || ResponsibleType.equals("R") || ResponsibleType.equals("S")); else throw new IllegalArgumentException ("ResponsibleType Invalid value - " + ResponsibleType + " - Reference_ID=304 - H - O - R - S"); if (ResponsibleType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ResponsibleType = ResponsibleType.substring(0, 0); + } + set_Value (COLUMNNAME_ResponsibleType, ResponsibleType); + } + + /** Get Responsible Type. + @return Type of the Responsibility for a workflow + */ + public String getResponsibleType () + { + return (String)get_Value(COLUMNNAME_ResponsibleType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Window.java b/base/src/org/compiere/model/X_AD_Window.java index d393b3c410..477275ed62 100644 --- a/base/src/org/compiere/model/X_AD_Window.java +++ b/base/src/org/compiere/model/X_AD_Window.java @@ -1,380 +1,435 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Window - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Window extends PO + +/** Generated Model for AD_Window + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Window extends PO implements I_AD_Window, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Window_ID id -@param trxName transaction -*/ -public X_AD_Window (Properties ctx, int AD_Window_ID, String trxName) -{ -super (ctx, AD_Window_ID, trxName); -/** if (AD_Window_ID == 0) -{ -setAD_Window_ID (0); -setEntityType (null); // U -setIsBetaFunctionality (false); -setIsDefault (false); -setIsSOTrx (true); // Y -setName (null); -setWindowType (null); // M -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Window (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Window */ -public static final String Table_Name="AD_Window"; - -/** AD_Table_ID=105 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Window[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Color. -@param AD_Color_ID Color for backgrounds or indicators */ -public void setAD_Color_ID (int AD_Color_ID) -{ -if (AD_Color_ID <= 0) set_Value ("AD_Color_ID", null); - else -set_Value ("AD_Color_ID", Integer.valueOf(AD_Color_ID)); -} -/** Get System Color. -@return Color for backgrounds or indicators */ -public int getAD_Color_ID() -{ -Integer ii = (Integer)get_Value("AD_Color_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Color_ID */ -public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID < 1) throw new IllegalArgumentException ("AD_Window_ID is mandatory."); -set_ValueNoCheck ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Window (Properties ctx, int AD_Window_ID, String trxName) + { + super (ctx, AD_Window_ID, trxName); + /** if (AD_Window_ID == 0) { setAD_Window_ID (0); + setEntityType (null); +// U + setIsBetaFunctionality (false); + setIsDefault (false); + setIsSOTrx (true); +// Y + setName (null); + setWindowType (null); +// M +} */ + } + + /** Load Constructor */ + public X_AD_Window (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Window[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Color getI_AD_Color() throws Exception + { + 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 e; + } + return result; + } + + /** Set System Color. + @param AD_Color_ID + Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID) + { + if (AD_Color_ID <= 0) set_Value (COLUMNNAME_AD_Color_ID, null); + else + set_Value (COLUMNNAME_AD_Color_ID, Integer.valueOf(AD_Color_ID)); + } + + /** Get System Color. + @return Color for backgrounds or indicators + */ + public int getAD_Color_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Color_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Image getI_AD_Image() throws Exception + { + 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 e; + } + return result; + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID < 1) + throw new IllegalArgumentException ("AD_Window_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Beta Functionality. -@param IsBetaFunctionality This functionality is considered Beta */ -public void setIsBetaFunctionality (boolean IsBetaFunctionality) -{ -set_Value ("IsBetaFunctionality", Boolean.valueOf(IsBetaFunctionality)); -} -/** Get Beta Functionality. -@return This functionality is considered Beta */ -public boolean isBetaFunctionality() -{ -Object oo = get_Value("IsBetaFunctionality"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBetaFunctionality */ -public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Window Height. -@param WinHeight Window Height */ -public void setWinHeight (int WinHeight) -{ -set_Value ("WinHeight", Integer.valueOf(WinHeight)); -} -/** Get Window Height. -@return Window Height */ -public int getWinHeight() -{ -Integer ii = (Integer)get_Value("WinHeight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WinHeight */ -public static final String COLUMNNAME_WinHeight = "WinHeight"; -/** Set Window Width. -@param WinWidth Window Width */ -public void setWinWidth (int WinWidth) -{ -set_Value ("WinWidth", Integer.valueOf(WinWidth)); -} -/** Get Window Width. -@return Window Width */ -public int getWinWidth() -{ -Integer ii = (Integer)get_Value("WinWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WinWidth */ -public static final String COLUMNNAME_WinWidth = "WinWidth"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Beta Functionality. + @param IsBetaFunctionality + This functionality is considered Beta + */ + public void setIsBetaFunctionality (boolean IsBetaFunctionality) + { + set_Value (COLUMNNAME_IsBetaFunctionality, Boolean.valueOf(IsBetaFunctionality)); + } + + /** Get Beta Functionality. + @return This functionality is considered Beta + */ + public boolean isBetaFunctionality () + { + Object oo = get_Value(COLUMNNAME_IsBetaFunctionality); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Window Height. + @param WinHeight Window Height */ + public void setWinHeight (int WinHeight) + { + set_Value (COLUMNNAME_WinHeight, Integer.valueOf(WinHeight)); + } + + /** Get Window Height. +@return Window Height */ + public int getWinHeight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WinHeight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Window Width. + @param WinWidth Window Width */ + public void setWinWidth (int WinWidth) + { + set_Value (COLUMNNAME_WinWidth, Integer.valueOf(WinWidth)); + } + + /** Get Window Width. +@return Window Width */ + public int getWinWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WinWidth); + if (ii == null) + return 0; + return ii.intValue(); + } /** WindowType AD_Reference_ID=108 */ -public static final int WINDOWTYPE_AD_Reference_ID=108; -/** Maintain = M */ -public static final String WINDOWTYPE_Maintain = "M"; -/** Query Only = Q */ -public static final String WINDOWTYPE_QueryOnly = "Q"; -/** Single Record = S */ -public static final String WINDOWTYPE_SingleRecord = "S"; -/** Transaction = T */ +public static final int WINDOWTYPE_AD_Reference_ID=108;/** Maintain = M */ +public static final String WINDOWTYPE_Maintain = "M";/** Query Only = Q */ +public static final String WINDOWTYPE_QueryOnly = "Q";/** Single Record = S */ +public static final String WINDOWTYPE_SingleRecord = "S";/** Transaction = T */ public static final String WINDOWTYPE_Transaction = "T"; -/** Set WindowType. -@param WindowType Type or classification of a Window */ -public void setWindowType (String WindowType) -{ -if (WindowType == null) throw new IllegalArgumentException ("WindowType is mandatory"); -if (WindowType.equals("M") || WindowType.equals("Q") || WindowType.equals("S") || WindowType.equals("T")); - else throw new IllegalArgumentException ("WindowType Invalid value - " + WindowType + " - Reference_ID=108 - M - Q - S - T"); -if (WindowType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -WindowType = WindowType.substring(0,0); -} -set_Value ("WindowType", WindowType); -} -/** Get WindowType. -@return Type or classification of a Window */ -public String getWindowType() -{ -return (String)get_Value("WindowType"); -} -/** Column name WindowType */ -public static final String COLUMNNAME_WindowType = "WindowType"; -} + /** Set WindowType. + @param WindowType + Type or classification of a Window + */ + public void setWindowType (String WindowType) + { +if (WindowType == null) throw new IllegalArgumentException ("WindowType is mandatory");if (WindowType.equals("M") || WindowType.equals("Q") || WindowType.equals("S") || WindowType.equals("T")); else throw new IllegalArgumentException ("WindowType Invalid value - " + WindowType + " - Reference_ID=108 - M - Q - S - T"); if (WindowType.length() > 1) + { + log.warning("Length > 1 - truncated"); + WindowType = WindowType.substring(0, 0); + } + set_Value (COLUMNNAME_WindowType, WindowType); + } + + /** Get WindowType. + @return Type or classification of a Window + */ + public String getWindowType () + { + return (String)get_Value(COLUMNNAME_WindowType); + } +} \ No newline at end of file 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 43735feef3..06ef8a99c9 100644 --- a/base/src/org/compiere/model/X_AD_Window_Access.java +++ b/base/src/org/compiere/model/X_AD_Window_Access.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Window_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Window_Access extends PO + +/** Generated Model for AD_Window_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Window_Access extends PO implements I_AD_Window_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Window_Access_ID id -@param trxName transaction -*/ -public X_AD_Window_Access (Properties ctx, int AD_Window_Access_ID, String trxName) -{ -super (ctx, AD_Window_Access_ID, trxName); -/** if (AD_Window_Access_ID == 0) -{ -setAD_Role_ID (0); -setAD_Window_ID (0); -setIsReadWrite (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Window_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Window_Access */ -public static final String Table_Name="AD_Window_Access"; - -/** AD_Table_ID=201 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Window_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID < 1) throw new IllegalArgumentException ("AD_Window_ID is mandatory."); -set_ValueNoCheck ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Read Write. -@param IsReadWrite Field is read / write */ -public void setIsReadWrite (boolean IsReadWrite) -{ -set_Value ("IsReadWrite", Boolean.valueOf(IsReadWrite)); -} -/** Get Read Write. -@return Field is read / write */ -public boolean isReadWrite() -{ -Object oo = get_Value("IsReadWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadWrite */ -public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Window_Access (Properties ctx, int AD_Window_Access_ID, String trxName) + { + super (ctx, AD_Window_Access_ID, trxName); + /** if (AD_Window_Access_ID == 0) { setAD_Role_ID (0); + setAD_Window_ID (0); + setIsReadWrite (false); +} */ + } + + /** Load Constructor */ + public X_AD_Window_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Window_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID < 1) + throw new IllegalArgumentException ("AD_Window_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Write. + @param IsReadWrite + Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite) + { + set_Value (COLUMNNAME_IsReadWrite, Boolean.valueOf(IsReadWrite)); + } + + /** Get Read Write. + @return Field is read / write + */ + public boolean isReadWrite () + { + Object oo = get_Value(COLUMNNAME_IsReadWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Workbench.java b/base/src/org/compiere/model/X_AD_Workbench.java index 080292c10d..05d733515c 100644 --- a/base/src/org/compiere/model/X_AD_Workbench.java +++ b/base/src/org/compiere/model/X_AD_Workbench.java @@ -1,252 +1,267 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Workbench - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Workbench extends PO + +/** Generated Model for AD_Workbench + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Workbench extends PO implements I_AD_Workbench, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Workbench_ID id -@param trxName transaction -*/ -public X_AD_Workbench (Properties ctx, int AD_Workbench_ID, String trxName) -{ -super (ctx, AD_Workbench_ID, trxName); -/** if (AD_Workbench_ID == 0) -{ -setAD_Column_ID (0); -setAD_Workbench_ID (0); -setEntityType (null); // U -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Workbench (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Workbench */ -public static final String Table_Name="AD_Workbench"; - -/** AD_Table_ID=468 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Workbench[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set System Color. -@param AD_Color_ID Color for backgrounds or indicators */ -public void setAD_Color_ID (int AD_Color_ID) -{ -if (AD_Color_ID <= 0) set_Value ("AD_Color_ID", null); - else -set_Value ("AD_Color_ID", Integer.valueOf(AD_Color_ID)); -} -/** Get System Color. -@return Color for backgrounds or indicators */ -public int getAD_Color_ID() -{ -Integer ii = (Integer)get_Value("AD_Color_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Color_ID */ -public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Workbench (Properties ctx, int AD_Workbench_ID, String trxName) + { + super (ctx, AD_Workbench_ID, trxName); + /** if (AD_Workbench_ID == 0) { setAD_Column_ID (0); + setAD_Workbench_ID (0); + setEntityType (null); +// U + setName (null); +} */ + } + + /** Load Constructor */ + public X_AD_Workbench (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Workbench[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Color. + @param AD_Color_ID + Color for backgrounds or indicators + */ + public void setAD_Color_ID (int AD_Color_ID) + { + if (AD_Color_ID <= 0) set_Value (COLUMNNAME_AD_Color_ID, null); + else + set_Value (COLUMNNAME_AD_Color_ID, Integer.valueOf(AD_Color_ID)); + } + + /** Get System Color. + @return Color for backgrounds or indicators + */ + public int getAD_Color_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Color_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Column_ID AD_Reference_ID=244 */ public static final int AD_COLUMN_ID_AD_Reference_ID=244; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID < 1) throw new IllegalArgumentException ("AD_Column_ID is mandatory."); -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Workbench. -@param AD_Workbench_ID Collection of windows, reports */ -public void setAD_Workbench_ID (int AD_Workbench_ID) -{ -if (AD_Workbench_ID < 1) throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); -set_ValueNoCheck ("AD_Workbench_ID", Integer.valueOf(AD_Workbench_ID)); -} -/** Get Workbench. -@return Collection of windows, reports */ -public int getAD_Workbench_ID() -{ -Integer ii = (Integer)get_Value("AD_Workbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workbench_ID */ -public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + throw new IllegalArgumentException ("AD_Column_ID is mandatory."); + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workbench. + @param AD_Workbench_ID + Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID) + { + if (AD_Workbench_ID < 1) + throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + } + + /** Get Workbench. + @return Collection of windows, reports + */ + public int getAD_Workbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java index d3dd0233ab..a405e30122 100644 --- a/base/src/org/compiere/model/X_AD_WorkbenchWindow.java +++ b/base/src/org/compiere/model/X_AD_WorkbenchWindow.java @@ -1,266 +1,363 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WorkbenchWindow - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WorkbenchWindow extends PO + +/** Generated Model for AD_WorkbenchWindow + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WorkbenchWindow_ID id -@param trxName transaction -*/ -public X_AD_WorkbenchWindow (Properties ctx, int AD_WorkbenchWindow_ID, String trxName) -{ -super (ctx, AD_WorkbenchWindow_ID, trxName); -/** if (AD_WorkbenchWindow_ID == 0) -{ -setAD_WorkbenchWindow_ID (0); -setAD_Workbench_ID (0); -setEntityType (null); // U -setIsPrimary (false); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WorkbenchWindow (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WorkbenchWindow */ -public static final String Table_Name="AD_WorkbenchWindow"; - -/** AD_Table_ID=469 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WorkbenchWindow[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Special Form. -@param AD_Form_ID Special Form */ -public void setAD_Form_ID (int AD_Form_ID) -{ -if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null); - else -set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID)); -} -/** Get Special Form. -@return Special Form */ -public int getAD_Form_ID() -{ -Integer ii = (Integer)get_Value("AD_Form_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Form_ID */ -public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; -/** Set Process. -@param AD_Process_ID Process or Report */ -public void setAD_Process_ID (int AD_Process_ID) -{ -if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null); - else -set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); -} -/** Get Process. -@return Process or Report */ -public int getAD_Process_ID() -{ -Integer ii = (Integer)get_Value("AD_Process_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Process_ID */ -public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; -/** Set OS Task. -@param AD_Task_ID Operation System Task */ -public void setAD_Task_ID (int AD_Task_ID) -{ -if (AD_Task_ID <= 0) set_Value ("AD_Task_ID", null); - else -set_Value ("AD_Task_ID", Integer.valueOf(AD_Task_ID)); -} -/** Get OS Task. -@return Operation System Task */ -public int getAD_Task_ID() -{ -Integer ii = (Integer)get_Value("AD_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Task_ID */ -public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Workbench Window. -@param AD_WorkbenchWindow_ID Workbench Window */ -public void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID) -{ -if (AD_WorkbenchWindow_ID < 1) throw new IllegalArgumentException ("AD_WorkbenchWindow_ID is mandatory."); -set_ValueNoCheck ("AD_WorkbenchWindow_ID", Integer.valueOf(AD_WorkbenchWindow_ID)); -} -/** Get Workbench Window. -@return Workbench Window */ -public int getAD_WorkbenchWindow_ID() -{ -Integer ii = (Integer)get_Value("AD_WorkbenchWindow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_WorkbenchWindow_ID())); -} -/** Column name AD_WorkbenchWindow_ID */ -public static final String COLUMNNAME_AD_WorkbenchWindow_ID = "AD_WorkbenchWindow_ID"; -/** Set Workbench. -@param AD_Workbench_ID Collection of windows, reports */ -public void setAD_Workbench_ID (int AD_Workbench_ID) -{ -if (AD_Workbench_ID < 1) throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); -set_ValueNoCheck ("AD_Workbench_ID", Integer.valueOf(AD_Workbench_ID)); -} -/** Get Workbench. -@return Collection of windows, reports */ -public int getAD_Workbench_ID() -{ -Integer ii = (Integer)get_Value("AD_Workbench_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workbench_ID */ -public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WorkbenchWindow (Properties ctx, int AD_WorkbenchWindow_ID, String trxName) + { + super (ctx, AD_WorkbenchWindow_ID, trxName); + /** if (AD_WorkbenchWindow_ID == 0) { setAD_WorkbenchWindow_ID (0); + setAD_Workbench_ID (0); + setEntityType (null); +// U + setIsPrimary (false); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_AD_WorkbenchWindow (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WorkbenchWindow[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Form getI_AD_Form() throws Exception + { + 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 e; + } + return result; + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID <= 0) set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getI_AD_Process() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID <= 0) set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Task getI_AD_Task() throws Exception + { + 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 e; + } + return result; + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID <= 0) set_Value (COLUMNNAME_AD_Task_ID, null); + else + set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workbench Window. + @param AD_WorkbenchWindow_ID Workbench Window */ + public void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID) + { + if (AD_WorkbenchWindow_ID < 1) + throw new IllegalArgumentException ("AD_WorkbenchWindow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WorkbenchWindow_ID, Integer.valueOf(AD_WorkbenchWindow_ID)); + } + + /** Get Workbench Window. +@return Workbench Window */ + public int getAD_WorkbenchWindow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkbenchWindow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_WorkbenchWindow_ID())); + } + + public I_AD_Workbench getI_AD_Workbench() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workbench. + @param AD_Workbench_ID + Collection of windows, reports + */ + public void setAD_Workbench_ID (int AD_Workbench_ID) + { + if (AD_Workbench_ID < 1) + throw new IllegalArgumentException ("AD_Workbench_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); + } + + /** Get Workbench. + @return Collection of windows, reports + */ + public int getAD_Workbench_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Primary. -@param IsPrimary Indicates if this is the primary budget */ -public void setIsPrimary (boolean IsPrimary) -{ -set_Value ("IsPrimary", Boolean.valueOf(IsPrimary)); -} -/** Get Primary. -@return Indicates if this is the primary budget */ -public boolean isPrimary() -{ -Object oo = get_Value("IsPrimary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrimary */ -public static final String COLUMNNAME_IsPrimary = "IsPrimary"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Primary. + @param IsPrimary + Indicates if this is the primary budget + */ + public void setIsPrimary (boolean IsPrimary) + { + set_Value (COLUMNNAME_IsPrimary, Boolean.valueOf(IsPrimary)); + } + + /** Get Primary. + @return Indicates if this is the primary budget + */ + public boolean isPrimary () + { + Object oo = get_Value(COLUMNNAME_IsPrimary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Workflow.java b/base/src/org/compiere/model/X_AD_Workflow.java index 30d545c586..600b288659 100644 --- a/base/src/org/compiere/model/X_AD_Workflow.java +++ b/base/src/org/compiere/model/X_AD_Workflow.java @@ -1,674 +1,774 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Workflow - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Workflow extends PO + +/** Generated Model for AD_Workflow + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Workflow_ID id -@param trxName transaction -*/ -public X_AD_Workflow (Properties ctx, int AD_Workflow_ID, String trxName) -{ -super (ctx, AD_Workflow_ID, trxName); -/** if (AD_Workflow_ID == 0) -{ -setAD_Workflow_ID (0); -setAccessLevel (null); -setAuthor (null); -setCost (0); -setDuration (0); -setEntityType (null); // U -setIsDefault (false); -setIsValid (false); -setName (null); -setPublishStatus (null); // U -setValue (null); -setVersion (0); -setWaitingTime (0); -setWorkflowType (null); // G -setWorkingTime (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Workflow (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Workflow */ -public static final String Table_Name="AD_Workflow"; - -/** AD_Table_ID=117 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Workflow[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Node. -@param AD_WF_Node_ID Workflow Node (activity), step or process */ -public void setAD_WF_Node_ID (int AD_WF_Node_ID) -{ -if (AD_WF_Node_ID <= 0) set_Value ("AD_WF_Node_ID", null); - else -set_Value ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID)); -} -/** Get Node. -@return Workflow Node (activity), step or process */ -public int getAD_WF_Node_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Node_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Node_ID */ -public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; -/** Set Workflow Responsible. -@param AD_WF_Responsible_ID Responsible for Workflow Execution */ -public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) -{ -if (AD_WF_Responsible_ID <= 0) set_Value ("AD_WF_Responsible_ID", null); - else -set_Value ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID)); -} -/** Get Workflow Responsible. -@return Responsible for Workflow Execution */ -public int getAD_WF_Responsible_ID() -{ -Integer ii = (Integer)get_Value("AD_WF_Responsible_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WF_Responsible_ID */ -public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; -/** Set Workflow Processor. -@param AD_WorkflowProcessor_ID Workflow Processor Server */ -public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) -{ -if (AD_WorkflowProcessor_ID <= 0) set_Value ("AD_WorkflowProcessor_ID", null); - else -set_Value ("AD_WorkflowProcessor_ID", Integer.valueOf(AD_WorkflowProcessor_ID)); -} -/** Get Workflow Processor. -@return Workflow Processor Server */ -public int getAD_WorkflowProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_WorkflowProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WorkflowProcessor_ID */ -public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); -set_ValueNoCheck ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Workflow (Properties ctx, int AD_Workflow_ID, String trxName) + { + super (ctx, AD_Workflow_ID, trxName); + /** if (AD_Workflow_ID == 0) { setAD_Workflow_ID (0); + setAccessLevel (null); + setAuthor (null); + setCost (0); + setDuration (0); + setEntityType (null); +// U + setIsDefault (false); + setIsValid (false); + setName (null); + setPublishStatus (null); +// U + setValue (null); + setVersion (0); + setWaitingTime (0); + setWorkflowType (null); +// G + setWorkingTime (0); +} */ + } + + /** Load Constructor */ + public X_AD_Workflow (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Workflow[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Node getI_AD_WF_Node() throws Exception + { + 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 e; + } + return result; + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID <= 0) set_Value (COLUMNNAME_AD_WF_Node_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getI_AD_WF_Responsible() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID <= 0) set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WorkflowProcessor getI_AD_WorkflowProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Processor. + @param AD_WorkflowProcessor_ID + Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) + { + if (AD_WorkflowProcessor_ID <= 0) set_Value (COLUMNNAME_AD_WorkflowProcessor_ID, null); + else + set_Value (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); + } + + /** Get Workflow Processor. + @return Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkflowProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AccessLevel AD_Reference_ID=5 */ -public static final int ACCESSLEVEL_AD_Reference_ID=5; -/** Organization = 1 */ -public static final String ACCESSLEVEL_Organization = "1"; -/** Client only = 2 */ -public static final String ACCESSLEVEL_ClientOnly = "2"; -/** Client+Organization = 3 */ -public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; -/** System only = 4 */ -public static final String ACCESSLEVEL_SystemOnly = "4"; -/** System+Client = 6 */ -public static final String ACCESSLEVEL_SystemPlusClient = "6"; -/** All = 7 */ +public static final int ACCESSLEVEL_AD_Reference_ID=5;/** Organization = 1 */ +public static final String ACCESSLEVEL_Organization = "1";/** Client only = 2 */ +public static final String ACCESSLEVEL_ClientOnly = "2";/** Client+Organization = 3 */ +public static final String ACCESSLEVEL_ClientPlusOrganization = "3";/** System only = 4 */ +public static final String ACCESSLEVEL_SystemOnly = "4";/** System+Client = 6 */ +public static final String ACCESSLEVEL_SystemPlusClient = "6";/** All = 7 */ public static final String ACCESSLEVEL_All = "7"; -/** Set Data Access Level. -@param AccessLevel Access Level required */ -public void setAccessLevel (String AccessLevel) -{ -if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); -if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); - else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); -if (AccessLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccessLevel = AccessLevel.substring(0,0); -} -set_Value ("AccessLevel", AccessLevel); -} -/** Get Data Access Level. -@return Access Level required */ -public String getAccessLevel() -{ -return (String)get_Value("AccessLevel"); -} -/** Column name AccessLevel */ -public static final String COLUMNNAME_AccessLevel = "AccessLevel"; -/** Set Author. -@param Author Author/Creator of the Entity */ -public void setAuthor (String Author) -{ -if (Author == null) throw new IllegalArgumentException ("Author is mandatory."); -if (Author.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Author = Author.substring(0,19); -} -set_Value ("Author", Author); -} -/** Get Author. -@return Author/Creator of the Entity */ -public String getAuthor() -{ -return (String)get_Value("Author"); -} -/** Column name Author */ -public static final String COLUMNNAME_Author = "Author"; -/** Set Cost. -@param Cost Cost information */ -public void setCost (int Cost) -{ -set_Value ("Cost", Integer.valueOf(Cost)); -} -/** Get Cost. -@return Cost information */ -public int getCost() -{ -Integer ii = (Integer)get_Value("Cost"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Cost */ -public static final String COLUMNNAME_Cost = "Cost"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Value Logic. -@param DocValueLogic Logic to determine Workflow Start - If true, a workflow process is started for the document */ -public void setDocValueLogic (String DocValueLogic) -{ -if (DocValueLogic != null && DocValueLogic.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DocValueLogic = DocValueLogic.substring(0,1999); -} -set_Value ("DocValueLogic", DocValueLogic); -} -/** Get Document Value Logic. -@return Logic to determine Workflow Start - If true, a workflow process is started for the document */ -public String getDocValueLogic() -{ -return (String)get_Value("DocValueLogic"); -} -/** Column name DocValueLogic */ -public static final String COLUMNNAME_DocValueLogic = "DocValueLogic"; -/** Set Duration. -@param Duration Normal Duration in Duration Unit */ -public void setDuration (int Duration) -{ -set_Value ("Duration", Integer.valueOf(Duration)); -} -/** Get Duration. -@return Normal Duration in Duration Unit */ -public int getDuration() -{ -Integer ii = (Integer)get_Value("Duration"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Duration */ -public static final String COLUMNNAME_Duration = "Duration"; + /** Set Data Access Level. + @param AccessLevel + Access Level required + */ + public void setAccessLevel (String AccessLevel) + { +if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory");if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); if (AccessLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessLevel = AccessLevel.substring(0, 0); + } + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel () + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + + /** Set Author. + @param Author + Author/Creator of the Entity + */ + public void setAuthor (String Author) + { + if (Author == null) + throw new IllegalArgumentException ("Author is mandatory."); + if (Author.length() > 20) + { + log.warning("Length > 20 - truncated"); + Author = Author.substring(0, 19); + } + set_Value (COLUMNNAME_Author, Author); + } + + /** Get Author. + @return Author/Creator of the Entity + */ + public String getAuthor () + { + return (String)get_Value(COLUMNNAME_Author); + } + + /** Set Cost. + @param Cost + Cost information + */ + public void setCost (int Cost) + { + set_Value (COLUMNNAME_Cost, Integer.valueOf(Cost)); + } + + /** Get Cost. + @return Cost information + */ + public int getCost () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Cost); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Value Logic. + @param DocValueLogic + Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public void setDocValueLogic (String DocValueLogic) + { + if (DocValueLogic != null && DocValueLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocValueLogic = DocValueLogic.substring(0, 1999); + } + set_Value (COLUMNNAME_DocValueLogic, DocValueLogic); + } + + /** Get Document Value Logic. + @return Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public String getDocValueLogic () + { + return (String)get_Value(COLUMNNAME_DocValueLogic); + } + + /** Set Duration. + @param Duration + Normal Duration in Duration Unit + */ + public void setDuration (int Duration) + { + set_Value (COLUMNNAME_Duration, Integer.valueOf(Duration)); + } + + /** Get Duration. + @return Normal Duration in Duration Unit + */ + public int getDuration () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Duration); + if (ii == null) + return 0; + return ii.intValue(); + } /** DurationUnit AD_Reference_ID=299 */ -public static final int DURATIONUNIT_AD_Reference_ID=299; -/** Day = D */ -public static final String DURATIONUNIT_Day = "D"; -/** Month = M */ -public static final String DURATIONUNIT_Month = "M"; -/** Year = Y */ -public static final String DURATIONUNIT_Year = "Y"; -/** hour = h */ -public static final String DURATIONUNIT_Hour = "h"; -/** minute = m */ -public static final String DURATIONUNIT_Minute = "m"; -/** second = s */ +public static final int DURATIONUNIT_AD_Reference_ID=299;/** Day = D */ +public static final String DURATIONUNIT_Day = "D";/** Month = M */ +public static final String DURATIONUNIT_Month = "M";/** Year = Y */ +public static final String DURATIONUNIT_Year = "Y";/** hour = h */ +public static final String DURATIONUNIT_Hour = "h";/** minute = m */ +public static final String DURATIONUNIT_Minute = "m";/** second = s */ public static final String DURATIONUNIT_Second = "s"; -/** Set Duration Unit. -@param DurationUnit Unit of Duration */ -public void setDurationUnit (String DurationUnit) -{ -if (DurationUnit == null || DurationUnit.equals("D") || DurationUnit.equals("M") || DurationUnit.equals("Y") || DurationUnit.equals("h") || DurationUnit.equals("m") || DurationUnit.equals("s")); - else throw new IllegalArgumentException ("DurationUnit Invalid value - " + DurationUnit + " - Reference_ID=299 - D - M - Y - h - m - s"); -if (DurationUnit != null && DurationUnit.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DurationUnit = DurationUnit.substring(0,0); -} -set_Value ("DurationUnit", DurationUnit); -} -/** Get Duration Unit. -@return Unit of Duration */ -public String getDurationUnit() -{ -return (String)get_Value("DurationUnit"); -} -/** Column name DurationUnit */ -public static final String COLUMNNAME_DurationUnit = "DurationUnit"; + /** Set Duration Unit. + @param DurationUnit + Unit of Duration + */ + public void setDurationUnit (String DurationUnit) + { +if (DurationUnit == null || DurationUnit.equals("D") || DurationUnit.equals("M") || DurationUnit.equals("Y") || DurationUnit.equals("h") || DurationUnit.equals("m") || DurationUnit.equals("s")); else throw new IllegalArgumentException ("DurationUnit Invalid value - " + DurationUnit + " - Reference_ID=299 - D - M - Y - h - m - s"); if (DurationUnit != null && DurationUnit.length() > 1) + { + log.warning("Length > 1 - truncated"); + DurationUnit = DurationUnit.substring(0, 0); + } + set_Value (COLUMNNAME_DurationUnit, DurationUnit); + } + + /** Get Duration Unit. + @return Unit of Duration + */ + public String getDurationUnit () + { + return (String)get_Value(COLUMNNAME_DurationUnit); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Duration Limit. -@param Limit Maximum Duration in Duration Unit */ -public void setLimit (int Limit) -{ -set_Value ("Limit", Integer.valueOf(Limit)); -} -/** Get Duration Limit. -@return Maximum Duration in Duration Unit */ -public int getLimit() -{ -Integer ii = (Integer)get_Value("Limit"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Limit */ -public static final String COLUMNNAME_Limit = "Limit"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (int Priority) -{ -set_Value ("Priority", Integer.valueOf(Priority)); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public int getPriority() -{ -Integer ii = (Integer)get_Value("Priority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Duration Limit. + @param Limit + Maximum Duration in Duration Unit + */ + public void setLimit (int Limit) + { + set_Value (COLUMNNAME_Limit, Integer.valueOf(Limit)); + } + + /** Get Duration Limit. + @return Maximum Duration in Duration Unit + */ + public int getLimit () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Limit); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } /** PublishStatus AD_Reference_ID=310 */ -public static final int PUBLISHSTATUS_AD_Reference_ID=310; -/** Released = R */ -public static final String PUBLISHSTATUS_Released = "R"; -/** Test = T */ -public static final String PUBLISHSTATUS_Test = "T"; -/** Under Revision = U */ -public static final String PUBLISHSTATUS_UnderRevision = "U"; -/** Void = V */ +public static final int PUBLISHSTATUS_AD_Reference_ID=310;/** Released = R */ +public static final String PUBLISHSTATUS_Released = "R";/** Test = T */ +public static final String PUBLISHSTATUS_Test = "T";/** Under Revision = U */ +public static final String PUBLISHSTATUS_UnderRevision = "U";/** Void = V */ public static final String PUBLISHSTATUS_Void = "V"; -/** Set Publication Status. -@param PublishStatus Status of Publication */ -public void setPublishStatus (String PublishStatus) -{ -if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory"); -if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V")); - else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V"); -if (PublishStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PublishStatus = PublishStatus.substring(0,0); -} -set_Value ("PublishStatus", PublishStatus); -} -/** Get Publication Status. -@return Status of Publication */ -public String getPublishStatus() -{ -return (String)get_Value("PublishStatus"); -} -/** Column name PublishStatus */ -public static final String COLUMNNAME_PublishStatus = "PublishStatus"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -/** Set Validate Workflow. -@param ValidateWorkflow Validate Workflow */ -public void setValidateWorkflow (String ValidateWorkflow) -{ -if (ValidateWorkflow != null && ValidateWorkflow.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ValidateWorkflow = ValidateWorkflow.substring(0,0); -} -set_Value ("ValidateWorkflow", ValidateWorkflow); -} -/** Get Validate Workflow. -@return Validate Workflow */ -public String getValidateWorkflow() -{ -return (String)get_Value("ValidateWorkflow"); -} -/** Column name ValidateWorkflow */ -public static final String COLUMNNAME_ValidateWorkflow = "ValidateWorkflow"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (int Version) -{ -set_Value ("Version", Integer.valueOf(Version)); -} -/** Get Version. -@return Version of the table definition */ -public int getVersion() -{ -Integer ii = (Integer)get_Value("Version"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -/** Set Waiting Time. -@param WaitingTime Workflow Simulation Waiting time */ -public void setWaitingTime (int WaitingTime) -{ -set_Value ("WaitingTime", Integer.valueOf(WaitingTime)); -} -/** Get Waiting Time. -@return Workflow Simulation Waiting time */ -public int getWaitingTime() -{ -Integer ii = (Integer)get_Value("WaitingTime"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WaitingTime */ -public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + /** Set Publication Status. + @param PublishStatus + Status of Publication + */ + public void setPublishStatus (String PublishStatus) + { +if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory");if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V")); else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V"); if (PublishStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + PublishStatus = PublishStatus.substring(0, 0); + } + set_Value (COLUMNNAME_PublishStatus, PublishStatus); + } + + /** Get Publication Status. + @return Status of Publication + */ + public String getPublishStatus () + { + return (String)get_Value(COLUMNNAME_PublishStatus); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } + + /** Set Validate Workflow. + @param ValidateWorkflow Validate Workflow */ + public void setValidateWorkflow (String ValidateWorkflow) + { + if (ValidateWorkflow != null && ValidateWorkflow.length() > 1) + { + log.warning("Length > 1 - truncated"); + ValidateWorkflow = ValidateWorkflow.substring(0, 0); + } + set_Value (COLUMNNAME_ValidateWorkflow, ValidateWorkflow); + } + + /** Get Validate Workflow. +@return Validate Workflow */ + public String getValidateWorkflow () + { + return (String)get_Value(COLUMNNAME_ValidateWorkflow); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (int Version) + { + set_Value (COLUMNNAME_Version, Integer.valueOf(Version)); + } + + /** Get Version. + @return Version of the table definition + */ + public int getVersion () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Version); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Waiting Time. + @param WaitingTime + Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime) + { + set_Value (COLUMNNAME_WaitingTime, Integer.valueOf(WaitingTime)); + } + + /** Get Waiting Time. + @return Workflow Simulation Waiting time + */ + public int getWaitingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WaitingTime); + if (ii == null) + return 0; + return ii.intValue(); + } /** WorkflowType AD_Reference_ID=328 */ -public static final int WORKFLOWTYPE_AD_Reference_ID=328; -/** General = G */ -public static final String WORKFLOWTYPE_General = "G"; -/** Document Process = P */ -public static final String WORKFLOWTYPE_DocumentProcess = "P"; -/** Document Value = V */ +public static final int WORKFLOWTYPE_AD_Reference_ID=328;/** General = G */ +public static final String WORKFLOWTYPE_General = "G";/** Document Process = P */ +public static final String WORKFLOWTYPE_DocumentProcess = "P";/** Document Value = V */ public static final String WORKFLOWTYPE_DocumentValue = "V"; -/** Set Workflow Type. -@param WorkflowType Type of Worflow */ -public void setWorkflowType (String WorkflowType) -{ -if (WorkflowType == null) throw new IllegalArgumentException ("WorkflowType is mandatory"); -if (WorkflowType.equals("G") || WorkflowType.equals("P") || WorkflowType.equals("V")); - else throw new IllegalArgumentException ("WorkflowType Invalid value - " + WorkflowType + " - Reference_ID=328 - G - P - V"); -if (WorkflowType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -WorkflowType = WorkflowType.substring(0,0); -} -set_Value ("WorkflowType", WorkflowType); -} -/** Get Workflow Type. -@return Type of Worflow */ -public String getWorkflowType() -{ -return (String)get_Value("WorkflowType"); -} -/** Column name WorkflowType */ -public static final String COLUMNNAME_WorkflowType = "WorkflowType"; -/** Set Working Time. -@param WorkingTime Workflow Simulation Execution Time */ -public void setWorkingTime (int WorkingTime) -{ -set_Value ("WorkingTime", Integer.valueOf(WorkingTime)); -} -/** Get Working Time. -@return Workflow Simulation Execution Time */ -public int getWorkingTime() -{ -Integer ii = (Integer)get_Value("WorkingTime"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WorkingTime */ -public static final String COLUMNNAME_WorkingTime = "WorkingTime"; -} + /** Set Workflow Type. + @param WorkflowType + Type of Worflow + */ + public void setWorkflowType (String WorkflowType) + { +if (WorkflowType == null) throw new IllegalArgumentException ("WorkflowType is mandatory");if (WorkflowType.equals("G") || WorkflowType.equals("P") || WorkflowType.equals("V")); else throw new IllegalArgumentException ("WorkflowType Invalid value - " + WorkflowType + " - Reference_ID=328 - G - P - V"); if (WorkflowType.length() > 1) + { + log.warning("Length > 1 - truncated"); + WorkflowType = WorkflowType.substring(0, 0); + } + set_Value (COLUMNNAME_WorkflowType, WorkflowType); + } + + /** Get Workflow Type. + @return Type of Worflow + */ + public String getWorkflowType () + { + return (String)get_Value(COLUMNNAME_WorkflowType); + } + + /** Set Working Time. + @param WorkingTime + Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime) + { + set_Value (COLUMNNAME_WorkingTime, Integer.valueOf(WorkingTime)); + } + + /** Get Working Time. + @return Workflow Simulation Execution Time + */ + public int getWorkingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WorkingTime); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_WorkflowProcessor.java b/base/src/org/compiere/model/X_AD_WorkflowProcessor.java index edeb29a478..7438ed80d3 100644 --- a/base/src/org/compiere/model/X_AD_WorkflowProcessor.java +++ b/base/src/org/compiere/model/X_AD_WorkflowProcessor.java @@ -1,334 +1,361 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WorkflowProcessor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WorkflowProcessor extends PO + +/** Generated Model for AD_WorkflowProcessor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WorkflowProcessor extends PO implements I_AD_WorkflowProcessor, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WorkflowProcessor_ID id -@param trxName transaction -*/ -public X_AD_WorkflowProcessor (Properties ctx, int AD_WorkflowProcessor_ID, String trxName) -{ -super (ctx, AD_WorkflowProcessor_ID, trxName); -/** if (AD_WorkflowProcessor_ID == 0) -{ -setAD_WorkflowProcessor_ID (0); -setFrequency (0); -setFrequencyType (null); -setKeepLogDays (0); // 7 -setName (null); -setSupervisor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WorkflowProcessor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WorkflowProcessor */ -public static final String Table_Name="AD_WorkflowProcessor"; - -/** AD_Table_ID=697 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WorkflowProcessor[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Workflow Processor. -@param AD_WorkflowProcessor_ID Workflow Processor Server */ -public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) -{ -if (AD_WorkflowProcessor_ID < 1) throw new IllegalArgumentException ("AD_WorkflowProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_WorkflowProcessor_ID", Integer.valueOf(AD_WorkflowProcessor_ID)); -} -/** Get Workflow Processor. -@return Workflow Processor Server */ -public int getAD_WorkflowProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_WorkflowProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WorkflowProcessor_ID */ -public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; -/** Set Alert over Priority. -@param AlertOverPriority Send alert email when over priority */ -public void setAlertOverPriority (int AlertOverPriority) -{ -set_Value ("AlertOverPriority", Integer.valueOf(AlertOverPriority)); -} -/** Get Alert over Priority. -@return Send alert email when over priority */ -public int getAlertOverPriority() -{ -Integer ii = (Integer)get_Value("AlertOverPriority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AlertOverPriority */ -public static final String COLUMNNAME_AlertOverPriority = "AlertOverPriority"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WorkflowProcessor (Properties ctx, int AD_WorkflowProcessor_ID, String trxName) + { + super (ctx, AD_WorkflowProcessor_ID, trxName); + /** if (AD_WorkflowProcessor_ID == 0) { setAD_WorkflowProcessor_ID (0); + setFrequency (0); + setFrequencyType (null); + setKeepLogDays (0); +// 7 + setName (null); + setSupervisor_ID (0); +} */ + } + + /** Load Constructor */ + public X_AD_WorkflowProcessor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WorkflowProcessor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Workflow Processor. + @param AD_WorkflowProcessor_ID + Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) + { + if (AD_WorkflowProcessor_ID < 1) + throw new IllegalArgumentException ("AD_WorkflowProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); + } + + /** Get Workflow Processor. + @return Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkflowProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Alert over Priority. + @param AlertOverPriority + Send alert email when over priority + */ + public void setAlertOverPriority (int AlertOverPriority) + { + set_Value (COLUMNNAME_AlertOverPriority, Integer.valueOf(AlertOverPriority)); + } + + /** Get Alert over Priority. + @return Send alert email when over priority + */ + public int getAlertOverPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AlertOverPriority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=221 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=221; -/** Day = D */ -public static final String FREQUENCYTYPE_Day = "D"; -/** Hour = H */ -public static final String FREQUENCYTYPE_Hour = "H"; -/** Minute = M */ +public static final int FREQUENCYTYPE_AD_Reference_ID=221;/** Day = D */ +public static final String FREQUENCYTYPE_Day = "D";/** Hour = H */ +public static final String FREQUENCYTYPE_Hour = "H";/** Minute = M */ public static final String FREQUENCYTYPE_Minute = "M"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Inactivity Alert Days. -@param InactivityAlertDays Send Alert when there is no activity after days (0= no alert) */ -public void setInactivityAlertDays (int InactivityAlertDays) -{ -set_Value ("InactivityAlertDays", Integer.valueOf(InactivityAlertDays)); -} -/** Get Inactivity Alert Days. -@return Send Alert when there is no activity after days (0= no alert) */ -public int getInactivityAlertDays() -{ -Integer ii = (Integer)get_Value("InactivityAlertDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name InactivityAlertDays */ -public static final String COLUMNNAME_InactivityAlertDays = "InactivityAlertDays"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Reminder Days. -@param RemindDays Days between sending Reminder Emails for a due or inactive Document */ -public void setRemindDays (int RemindDays) -{ -set_Value ("RemindDays", Integer.valueOf(RemindDays)); -} -/** Get Reminder Days. -@return Days between sending Reminder Emails for a due or inactive Document */ -public int getRemindDays() -{ -Integer ii = (Integer)get_Value("RemindDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RemindDays */ -public static final String COLUMNNAME_RemindDays = "RemindDays"; + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Inactivity Alert Days. + @param InactivityAlertDays + Send Alert when there is no activity after days (0= no alert) + */ + public void setInactivityAlertDays (int InactivityAlertDays) + { + set_Value (COLUMNNAME_InactivityAlertDays, Integer.valueOf(InactivityAlertDays)); + } + + /** Get Inactivity Alert Days. + @return Send Alert when there is no activity after days (0= no alert) + */ + public int getInactivityAlertDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_InactivityAlertDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reminder Days. + @param RemindDays + Days between sending Reminder Emails for a due or inactive Document + */ + public void setRemindDays (int RemindDays) + { + set_Value (COLUMNNAME_RemindDays, Integer.valueOf(RemindDays)); + } + + /** Get Reminder Days. + @return Days between sending Reminder Emails for a due or inactive Document + */ + public int getRemindDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RemindDays); + if (ii == null) + return 0; + return ii.intValue(); + } /** Supervisor_ID AD_Reference_ID=316 */ public static final int SUPERVISOR_ID_AD_Reference_ID=316; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID < 1) throw new IllegalArgumentException ("Supervisor_ID is mandatory."); -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + throw new IllegalArgumentException ("Supervisor_ID is mandatory."); + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java b/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java index d7e5d31372..df6aeb4536 100644 --- a/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java +++ b/base/src/org/compiere/model/X_AD_WorkflowProcessorLog.java @@ -1,234 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_WorkflowProcessorLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_WorkflowProcessorLog extends PO + +/** Generated Model for AD_WorkflowProcessorLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_WorkflowProcessorLog extends PO implements I_AD_WorkflowProcessorLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_WorkflowProcessorLog_ID id -@param trxName transaction -*/ -public X_AD_WorkflowProcessorLog (Properties ctx, int AD_WorkflowProcessorLog_ID, String trxName) -{ -super (ctx, AD_WorkflowProcessorLog_ID, trxName); -/** if (AD_WorkflowProcessorLog_ID == 0) -{ -setAD_WorkflowProcessorLog_ID (0); -setAD_WorkflowProcessor_ID (0); -setIsError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_WorkflowProcessorLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_WorkflowProcessorLog */ -public static final String Table_Name="AD_WorkflowProcessorLog"; - -/** AD_Table_ID=696 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_WorkflowProcessorLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Workflow Processorl Log. -@param AD_WorkflowProcessorLog_ID Result of the execution of the Workflow Processor */ -public void setAD_WorkflowProcessorLog_ID (int AD_WorkflowProcessorLog_ID) -{ -if (AD_WorkflowProcessorLog_ID < 1) throw new IllegalArgumentException ("AD_WorkflowProcessorLog_ID is mandatory."); -set_ValueNoCheck ("AD_WorkflowProcessorLog_ID", Integer.valueOf(AD_WorkflowProcessorLog_ID)); -} -/** Get Workflow Processorl Log. -@return Result of the execution of the Workflow Processor */ -public int getAD_WorkflowProcessorLog_ID() -{ -Integer ii = (Integer)get_Value("AD_WorkflowProcessorLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WorkflowProcessorLog_ID */ -public static final String COLUMNNAME_AD_WorkflowProcessorLog_ID = "AD_WorkflowProcessorLog_ID"; -/** Set Workflow Processor. -@param AD_WorkflowProcessor_ID Workflow Processor Server */ -public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) -{ -if (AD_WorkflowProcessor_ID < 1) throw new IllegalArgumentException ("AD_WorkflowProcessor_ID is mandatory."); -set_ValueNoCheck ("AD_WorkflowProcessor_ID", Integer.valueOf(AD_WorkflowProcessor_ID)); -} -/** Get Workflow Processor. -@return Workflow Processor Server */ -public int getAD_WorkflowProcessor_ID() -{ -Integer ii = (Integer)get_Value("AD_WorkflowProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_WorkflowProcessor_ID */ -public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_Value ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WorkflowProcessorLog (Properties ctx, int AD_WorkflowProcessorLog_ID, String trxName) + { + super (ctx, AD_WorkflowProcessorLog_ID, trxName); + /** if (AD_WorkflowProcessorLog_ID == 0) { setAD_WorkflowProcessorLog_ID (0); + setAD_WorkflowProcessor_ID (0); + setIsError (false); +} */ + } + + /** Load Constructor */ + public X_AD_WorkflowProcessorLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_WorkflowProcessorLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Workflow Processorl Log. + @param AD_WorkflowProcessorLog_ID + Result of the execution of the Workflow Processor + */ + public void setAD_WorkflowProcessorLog_ID (int AD_WorkflowProcessorLog_ID) + { + if (AD_WorkflowProcessorLog_ID < 1) + throw new IllegalArgumentException ("AD_WorkflowProcessorLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessorLog_ID, Integer.valueOf(AD_WorkflowProcessorLog_ID)); + } + + /** Get Workflow Processorl Log. + @return Result of the execution of the Workflow Processor + */ + public int getAD_WorkflowProcessorLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkflowProcessorLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WorkflowProcessor getI_AD_WorkflowProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow Processor. + @param AD_WorkflowProcessor_ID + Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) + { + if (AD_WorkflowProcessor_ID < 1) + throw new IllegalArgumentException ("AD_WorkflowProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); + } + + /** Get Workflow Processor. + @return Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkflowProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_Value (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file 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 8e315fd70b..78964c75af 100644 --- a/base/src/org/compiere/model/X_AD_Workflow_Access.java +++ b/base/src/org/compiere/model/X_AD_Workflow_Access.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for AD_Workflow_Access - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_AD_Workflow_Access extends PO + +/** Generated Model for AD_Workflow_Access + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_AD_Workflow_Access extends PO implements I_AD_Workflow_Access, I_Persistent { -/** Standard Constructor -@param ctx context -@param AD_Workflow_Access_ID id -@param trxName transaction -*/ -public X_AD_Workflow_Access (Properties ctx, int AD_Workflow_Access_ID, String trxName) -{ -super (ctx, AD_Workflow_Access_ID, trxName); -/** if (AD_Workflow_Access_ID == 0) -{ -setAD_Role_ID (0); -setAD_Workflow_ID (0); -setIsReadWrite (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_AD_Workflow_Access (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=AD_Workflow_Access */ -public static final String Table_Name="AD_Workflow_Access"; - -/** AD_Table_ID=202 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_AD_Workflow_Access[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Workflow. -@param AD_Workflow_ID Workflow or combination of tasks */ -public void setAD_Workflow_ID (int AD_Workflow_ID) -{ -if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); -set_ValueNoCheck ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); -} -/** Get Workflow. -@return Workflow or combination of tasks */ -public int getAD_Workflow_ID() -{ -Integer ii = (Integer)get_Value("AD_Workflow_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Workflow_ID */ -public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; -/** Set Read Write. -@param IsReadWrite Field is read / write */ -public void setIsReadWrite (boolean IsReadWrite) -{ -set_Value ("IsReadWrite", Boolean.valueOf(IsReadWrite)); -} -/** Get Read Write. -@return Field is read / write */ -public boolean isReadWrite() -{ -Object oo = get_Value("IsReadWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReadWrite */ -public static final String COLUMNNAME_IsReadWrite = "IsReadWrite"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Workflow_Access (Properties ctx, int AD_Workflow_Access_ID, String trxName) + { + super (ctx, AD_Workflow_Access_ID, trxName); + /** if (AD_Workflow_Access_ID == 0) { setAD_Role_ID (0); + setAD_Workflow_ID (0); + setIsReadWrite (false); +} */ + } + + /** Load Constructor */ + public X_AD_Workflow_Access (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_AD_Workflow_Access[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getI_AD_Workflow() throws Exception + { + 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 e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Read Write. + @param IsReadWrite + Field is read / write + */ + public void setIsReadWrite (boolean IsReadWrite) + { + set_Value (COLUMNNAME_IsReadWrite, Boolean.valueOf(IsReadWrite)); + } + + /** Get Read Write. + @return Field is read / write + */ + public boolean isReadWrite () + { + Object oo = get_Value(COLUMNNAME_IsReadWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_A_Asset.java b/base/src/org/compiere/model/X_A_Asset.java index d3842df426..baa08288ed 100644 --- a/base/src/org/compiere/model/X_A_Asset.java +++ b/base/src/org/compiere/model/X_A_Asset.java @@ -1,823 +1,1079 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_Asset - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_Asset extends PO + +/** Generated Model for A_Asset + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_Asset extends PO implements I_A_Asset, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_Asset_ID id -@param trxName transaction -*/ -public X_A_Asset (Properties ctx, int A_Asset_ID, String trxName) -{ -super (ctx, A_Asset_ID, trxName); -/** if (A_Asset_ID == 0) -{ -setA_Asset_Group_ID (0); -setA_Asset_ID (0); -setIsDepreciated (false); -setIsDisposed (false); -setIsFullyDepreciated (false); // N -setIsInPosession (false); -setIsOwned (false); -setM_AttributeSetInstance_ID (0); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_Asset (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_Asset */ -public static final String Table_Name="A_Asset"; - -/** AD_Table_ID=539 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_Asset[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Asset Group. -@param A_Asset_Group_ID Group of Assets */ -public void setA_Asset_Group_ID (int A_Asset_Group_ID) -{ -if (A_Asset_Group_ID < 1) throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); -set_Value ("A_Asset_Group_ID", Integer.valueOf(A_Asset_Group_ID)); -} -/** Get Asset Group. -@return Group of Assets */ -public int getA_Asset_Group_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_Group_ID */ -public static final String COLUMNNAME_A_Asset_Group_ID = "A_Asset_Group_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID < 1) throw new IllegalArgumentException ("A_Asset_ID is mandatory."); -set_ValueNoCheck ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Asset Depreciation Date. -@param AssetDepreciationDate Date of last depreciation */ -public void setAssetDepreciationDate (Timestamp AssetDepreciationDate) -{ -set_Value ("AssetDepreciationDate", AssetDepreciationDate); -} -/** Get Asset Depreciation Date. -@return Date of last depreciation */ -public Timestamp getAssetDepreciationDate() -{ -return (Timestamp)get_Value("AssetDepreciationDate"); -} -/** Column name AssetDepreciationDate */ -public static final String COLUMNNAME_AssetDepreciationDate = "AssetDepreciationDate"; -/** Set Asset Disposal Date. -@param AssetDisposalDate Date when the asset is/was disposed */ -public void setAssetDisposalDate (Timestamp AssetDisposalDate) -{ -set_Value ("AssetDisposalDate", AssetDisposalDate); -} -/** Get Asset Disposal Date. -@return Date when the asset is/was disposed */ -public Timestamp getAssetDisposalDate() -{ -return (Timestamp)get_Value("AssetDisposalDate"); -} -/** Column name AssetDisposalDate */ -public static final String COLUMNNAME_AssetDisposalDate = "AssetDisposalDate"; -/** Set In Service Date. -@param AssetServiceDate Date when Asset was put into service */ -public void setAssetServiceDate (Timestamp AssetServiceDate) -{ -set_Value ("AssetServiceDate", AssetServiceDate); -} -/** Get In Service Date. -@return Date when Asset was put into service */ -public Timestamp getAssetServiceDate() -{ -return (Timestamp)get_Value("AssetServiceDate"); -} -/** Column name AssetServiceDate */ -public static final String COLUMNNAME_AssetServiceDate = "AssetServiceDate"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_Asset (Properties ctx, int A_Asset_ID, String trxName) + { + super (ctx, A_Asset_ID, trxName); + /** if (A_Asset_ID == 0) { setA_Asset_Group_ID (0); + setA_Asset_ID (0); + setIsDepreciated (false); + setIsDisposed (false); + setIsFullyDepreciated (false); +// N + setIsInPosession (false); + setIsOwned (false); + setM_AttributeSetInstance_ID (0); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_A_Asset (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_Asset[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_A_Asset_Group getI_A_Asset_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset Group. + @param A_Asset_Group_ID + Group of Assets + */ + public void setA_Asset_Group_ID (int A_Asset_Group_ID) + { + if (A_Asset_Group_ID < 1) + throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); + set_Value (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); + } + + /** Get Asset Group. + @return Group of Assets + */ + public int getA_Asset_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID < 1) + throw new IllegalArgumentException ("A_Asset_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset Depreciation Date. + @param AssetDepreciationDate + Date of last depreciation + */ + public void setAssetDepreciationDate (Timestamp AssetDepreciationDate) + { + set_Value (COLUMNNAME_AssetDepreciationDate, AssetDepreciationDate); + } + + /** Get Asset Depreciation Date. + @return Date of last depreciation + */ + public Timestamp getAssetDepreciationDate () + { + return (Timestamp)get_Value(COLUMNNAME_AssetDepreciationDate); + } + + /** Set Asset Disposal Date. + @param AssetDisposalDate + Date when the asset is/was disposed + */ + public void setAssetDisposalDate (Timestamp AssetDisposalDate) + { + set_Value (COLUMNNAME_AssetDisposalDate, AssetDisposalDate); + } + + /** Get Asset Disposal Date. + @return Date when the asset is/was disposed + */ + public Timestamp getAssetDisposalDate () + { + return (Timestamp)get_Value(COLUMNNAME_AssetDisposalDate); + } + + /** Set In Service Date. + @param AssetServiceDate + Date when Asset was put into service + */ + public void setAssetServiceDate (Timestamp AssetServiceDate) + { + set_Value (COLUMNNAME_AssetServiceDate, AssetServiceDate); + } + + /** Get In Service Date. + @return Date when Asset was put into service + */ + public Timestamp getAssetServiceDate () + { + return (Timestamp)get_Value(COLUMNNAME_AssetServiceDate); + } /** C_BPartnerSR_ID AD_Reference_ID=353 */ public static final int C_BPARTNERSR_ID_AD_Reference_ID=353; -/** Set BPartner (Agent). -@param C_BPartnerSR_ID Business Partner (Agent or Sales Rep) */ -public void setC_BPartnerSR_ID (int C_BPartnerSR_ID) -{ -if (C_BPartnerSR_ID <= 0) set_Value ("C_BPartnerSR_ID", null); - else -set_Value ("C_BPartnerSR_ID", Integer.valueOf(C_BPartnerSR_ID)); -} -/** Get BPartner (Agent). -@return Business Partner (Agent or Sales Rep) */ -public int getC_BPartnerSR_ID() -{ -Integer ii = (Integer)get_Value("C_BPartnerSR_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartnerSR_ID */ -public static final String COLUMNNAME_C_BPartnerSR_ID = "C_BPartnerSR_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Guarantee Date. -@param GuaranteeDate Date when guarantee expires */ -public void setGuaranteeDate (Timestamp GuaranteeDate) -{ -set_Value ("GuaranteeDate", GuaranteeDate); -} -/** Get Guarantee Date. -@return Date when guarantee expires */ -public Timestamp getGuaranteeDate() -{ -return (Timestamp)get_Value("GuaranteeDate"); -} -/** Column name GuaranteeDate */ -public static final String COLUMNNAME_GuaranteeDate = "GuaranteeDate"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Depreciate. -@param IsDepreciated The asset will be depreciated */ -public void setIsDepreciated (boolean IsDepreciated) -{ -set_Value ("IsDepreciated", Boolean.valueOf(IsDepreciated)); -} -/** Get Depreciate. -@return The asset will be depreciated */ -public boolean isDepreciated() -{ -Object oo = get_Value("IsDepreciated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDepreciated */ -public static final String COLUMNNAME_IsDepreciated = "IsDepreciated"; -/** Set Disposed. -@param IsDisposed The asset is disposed */ -public void setIsDisposed (boolean IsDisposed) -{ -set_Value ("IsDisposed", Boolean.valueOf(IsDisposed)); -} -/** Get Disposed. -@return The asset is disposed */ -public boolean isDisposed() -{ -Object oo = get_Value("IsDisposed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDisposed */ -public static final String COLUMNNAME_IsDisposed = "IsDisposed"; -/** Set Fully depreciated. -@param IsFullyDepreciated The asset is fully depreciated */ -public void setIsFullyDepreciated (boolean IsFullyDepreciated) -{ -set_ValueNoCheck ("IsFullyDepreciated", Boolean.valueOf(IsFullyDepreciated)); -} -/** Get Fully depreciated. -@return The asset is fully depreciated */ -public boolean isFullyDepreciated() -{ -Object oo = get_Value("IsFullyDepreciated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFullyDepreciated */ -public static final String COLUMNNAME_IsFullyDepreciated = "IsFullyDepreciated"; -/** Set In Possession. -@param IsInPosession The asset is in the possession of the organization */ -public void setIsInPosession (boolean IsInPosession) -{ -set_Value ("IsInPosession", Boolean.valueOf(IsInPosession)); -} -/** Get In Possession. -@return The asset is in the possession of the organization */ -public boolean isInPosession() -{ -Object oo = get_Value("IsInPosession"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInPosession */ -public static final String COLUMNNAME_IsInPosession = "IsInPosession"; -/** Set Owned. -@param IsOwned The asset is owned by the organization */ -public void setIsOwned (boolean IsOwned) -{ -set_Value ("IsOwned", Boolean.valueOf(IsOwned)); -} -/** Get Owned. -@return The asset is owned by the organization */ -public boolean isOwned() -{ -Object oo = get_Value("IsOwned"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOwned */ -public static final String COLUMNNAME_IsOwned = "IsOwned"; -/** Set Last Maintenance. -@param LastMaintenanceDate Last Maintenance Date */ -public void setLastMaintenanceDate (Timestamp LastMaintenanceDate) -{ -set_Value ("LastMaintenanceDate", LastMaintenanceDate); -} -/** Get Last Maintenance. -@return Last Maintenance Date */ -public Timestamp getLastMaintenanceDate() -{ -return (Timestamp)get_Value("LastMaintenanceDate"); -} -/** Column name LastMaintenanceDate */ -public static final String COLUMNNAME_LastMaintenanceDate = "LastMaintenanceDate"; -/** Set Last Note. -@param LastMaintenanceNote Last Maintenance Note */ -public void setLastMaintenanceNote (String LastMaintenanceNote) -{ -if (LastMaintenanceNote != null && LastMaintenanceNote.length() > 60) -{ -log.warning("Length > 60 - truncated"); -LastMaintenanceNote = LastMaintenanceNote.substring(0,59); -} -set_Value ("LastMaintenanceNote", LastMaintenanceNote); -} -/** Get Last Note. -@return Last Maintenance Note */ -public String getLastMaintenanceNote() -{ -return (String)get_Value("LastMaintenanceNote"); -} -/** Column name LastMaintenanceNote */ -public static final String COLUMNNAME_LastMaintenanceNote = "LastMaintenanceNote"; -/** Set Last Unit. -@param LastMaintenanceUnit Last Maintenance Unit */ -public void setLastMaintenanceUnit (int LastMaintenanceUnit) -{ -set_Value ("LastMaintenanceUnit", Integer.valueOf(LastMaintenanceUnit)); -} -/** Get Last Unit. -@return Last Maintenance Unit */ -public int getLastMaintenanceUnit() -{ -Integer ii = (Integer)get_Value("LastMaintenanceUnit"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LastMaintenanceUnit */ -public static final String COLUMNNAME_LastMaintenanceUnit = "LastMaintenanceUnit"; -/** Set Lease Termination. -@param LeaseTerminationDate Lease Termination Date */ -public void setLeaseTerminationDate (Timestamp LeaseTerminationDate) -{ -set_Value ("LeaseTerminationDate", LeaseTerminationDate); -} -/** Get Lease Termination. -@return Lease Termination Date */ -public Timestamp getLeaseTerminationDate() -{ -return (Timestamp)get_Value("LeaseTerminationDate"); -} -/** Column name LeaseTerminationDate */ -public static final String COLUMNNAME_LeaseTerminationDate = "LeaseTerminationDate"; + /** Set BPartner (Agent). + @param C_BPartnerSR_ID + Business Partner (Agent or Sales Rep) + */ + public void setC_BPartnerSR_ID (int C_BPartnerSR_ID) + { + if (C_BPartnerSR_ID <= 0) set_Value (COLUMNNAME_C_BPartnerSR_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerSR_ID, Integer.valueOf(C_BPartnerSR_ID)); + } + + /** Get BPartner (Agent). + @return Business Partner (Agent or Sales Rep) + */ + public int getC_BPartnerSR_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerSR_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Guarantee Date. + @param GuaranteeDate + Date when guarantee expires + */ + public void setGuaranteeDate (Timestamp GuaranteeDate) + { + set_Value (COLUMNNAME_GuaranteeDate, GuaranteeDate); + } + + /** Get Guarantee Date. + @return Date when guarantee expires + */ + public Timestamp getGuaranteeDate () + { + return (Timestamp)get_Value(COLUMNNAME_GuaranteeDate); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Depreciate. + @param IsDepreciated + The asset will be depreciated + */ + public void setIsDepreciated (boolean IsDepreciated) + { + set_Value (COLUMNNAME_IsDepreciated, Boolean.valueOf(IsDepreciated)); + } + + /** Get Depreciate. + @return The asset will be depreciated + */ + public boolean isDepreciated () + { + Object oo = get_Value(COLUMNNAME_IsDepreciated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Disposed. + @param IsDisposed + The asset is disposed + */ + public void setIsDisposed (boolean IsDisposed) + { + set_Value (COLUMNNAME_IsDisposed, Boolean.valueOf(IsDisposed)); + } + + /** Get Disposed. + @return The asset is disposed + */ + public boolean isDisposed () + { + Object oo = get_Value(COLUMNNAME_IsDisposed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Fully depreciated. + @param IsFullyDepreciated + The asset is fully depreciated + */ + public void setIsFullyDepreciated (boolean IsFullyDepreciated) + { + set_ValueNoCheck (COLUMNNAME_IsFullyDepreciated, Boolean.valueOf(IsFullyDepreciated)); + } + + /** Get Fully depreciated. + @return The asset is fully depreciated + */ + public boolean isFullyDepreciated () + { + Object oo = get_Value(COLUMNNAME_IsFullyDepreciated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Possession. + @param IsInPosession + The asset is in the possession of the organization + */ + public void setIsInPosession (boolean IsInPosession) + { + set_Value (COLUMNNAME_IsInPosession, Boolean.valueOf(IsInPosession)); + } + + /** Get In Possession. + @return The asset is in the possession of the organization + */ + public boolean isInPosession () + { + Object oo = get_Value(COLUMNNAME_IsInPosession); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Owned. + @param IsOwned + The asset is owned by the organization + */ + public void setIsOwned (boolean IsOwned) + { + set_Value (COLUMNNAME_IsOwned, Boolean.valueOf(IsOwned)); + } + + /** Get Owned. + @return The asset is owned by the organization + */ + public boolean isOwned () + { + Object oo = get_Value(COLUMNNAME_IsOwned); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Last Maintenance. + @param LastMaintenanceDate + Last Maintenance Date + */ + public void setLastMaintenanceDate (Timestamp LastMaintenanceDate) + { + set_Value (COLUMNNAME_LastMaintenanceDate, LastMaintenanceDate); + } + + /** Get Last Maintenance. + @return Last Maintenance Date + */ + public Timestamp getLastMaintenanceDate () + { + return (Timestamp)get_Value(COLUMNNAME_LastMaintenanceDate); + } + + /** Set Last Note. + @param LastMaintenanceNote + Last Maintenance Note + */ + public void setLastMaintenanceNote (String LastMaintenanceNote) + { + if (LastMaintenanceNote != null && LastMaintenanceNote.length() > 60) + { + log.warning("Length > 60 - truncated"); + LastMaintenanceNote = LastMaintenanceNote.substring(0, 59); + } + set_Value (COLUMNNAME_LastMaintenanceNote, LastMaintenanceNote); + } + + /** Get Last Note. + @return Last Maintenance Note + */ + public String getLastMaintenanceNote () + { + return (String)get_Value(COLUMNNAME_LastMaintenanceNote); + } + + /** Set Last Unit. + @param LastMaintenanceUnit + Last Maintenance Unit + */ + public void setLastMaintenanceUnit (int LastMaintenanceUnit) + { + set_Value (COLUMNNAME_LastMaintenanceUnit, Integer.valueOf(LastMaintenanceUnit)); + } + + /** Get Last Unit. + @return Last Maintenance Unit + */ + public int getLastMaintenanceUnit () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LastMaintenanceUnit); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Lease Termination. + @param LeaseTerminationDate + Lease Termination Date + */ + public void setLeaseTerminationDate (Timestamp LeaseTerminationDate) + { + set_Value (COLUMNNAME_LeaseTerminationDate, LeaseTerminationDate); + } + + /** Get Lease Termination. + @return Lease Termination Date + */ + public Timestamp getLeaseTerminationDate () + { + return (Timestamp)get_Value(COLUMNNAME_LeaseTerminationDate); + } /** Lease_BPartner_ID AD_Reference_ID=192 */ public static final int LEASE_BPARTNER_ID_AD_Reference_ID=192; -/** Set Lessor. -@param Lease_BPartner_ID The Business Partner who rents or leases */ -public void setLease_BPartner_ID (int Lease_BPartner_ID) -{ -if (Lease_BPartner_ID <= 0) set_Value ("Lease_BPartner_ID", null); - else -set_Value ("Lease_BPartner_ID", Integer.valueOf(Lease_BPartner_ID)); -} -/** Get Lessor. -@return The Business Partner who rents or leases */ -public int getLease_BPartner_ID() -{ -Integer ii = (Integer)get_Value("Lease_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Lease_BPartner_ID */ -public static final String COLUMNNAME_Lease_BPartner_ID = "Lease_BPartner_ID"; -/** Set Life use. -@param LifeUseUnits Units of use until the asset is not usable anymore */ -public void setLifeUseUnits (int LifeUseUnits) -{ -set_Value ("LifeUseUnits", Integer.valueOf(LifeUseUnits)); -} -/** Get Life use. -@return Units of use until the asset is not usable anymore */ -public int getLifeUseUnits() -{ -Integer ii = (Integer)get_Value("LifeUseUnits"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LifeUseUnits */ -public static final String COLUMNNAME_LifeUseUnits = "LifeUseUnits"; -/** Set Location comment. -@param LocationComment Additional comments or remarks concerning the location */ -public void setLocationComment (String LocationComment) -{ -if (LocationComment != null && LocationComment.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LocationComment = LocationComment.substring(0,254); -} -set_Value ("LocationComment", LocationComment); -} -/** Get Location comment. -@return Additional comments or remarks concerning the location */ -public String getLocationComment() -{ -return (String)get_Value("LocationComment"); -} -/** Column name LocationComment */ -public static final String COLUMNNAME_LocationComment = "LocationComment"; -/** Set Lot No. -@param Lot Lot number (alphanumeric) */ -public void setLot (String Lot) -{ -if (Lot != null && Lot.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Lot = Lot.substring(0,254); -} -set_Value ("Lot", Lot); -} -/** Get Lot No. -@return Lot number (alphanumeric) */ -public String getLot() -{ -return (String)get_Value("Lot"); -} -/** Column name Lot */ -public static final String COLUMNNAME_Lot = "Lot"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null); - else -set_Value ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID <= 0) set_Value ("M_Locator_ID", null); - else -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_ValueNoCheck ("M_Product_ID", null); - else -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Next Maintenence. -@param NextMaintenenceDate Next Maintenence Date */ -public void setNextMaintenenceDate (Timestamp NextMaintenenceDate) -{ -set_Value ("NextMaintenenceDate", NextMaintenenceDate); -} -/** Get Next Maintenence. -@return Next Maintenence Date */ -public Timestamp getNextMaintenenceDate() -{ -return (Timestamp)get_Value("NextMaintenenceDate"); -} -/** Column name NextMaintenenceDate */ -public static final String COLUMNNAME_NextMaintenenceDate = "NextMaintenenceDate"; -/** Set Next Unit. -@param NextMaintenenceUnit Next Maintenence Unit */ -public void setNextMaintenenceUnit (int NextMaintenenceUnit) -{ -set_Value ("NextMaintenenceUnit", Integer.valueOf(NextMaintenenceUnit)); -} -/** Get Next Unit. -@return Next Maintenence Unit */ -public int getNextMaintenenceUnit() -{ -Integer ii = (Integer)get_Value("NextMaintenenceUnit"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NextMaintenenceUnit */ -public static final String COLUMNNAME_NextMaintenenceUnit = "NextMaintenenceUnit"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Serial No. -@param SerNo Product Serial Number */ -public void setSerNo (String SerNo) -{ -if (SerNo != null && SerNo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -SerNo = SerNo.substring(0,254); -} -set_Value ("SerNo", SerNo); -} -/** Get Serial No. -@return Product Serial Number */ -public String getSerNo() -{ -return (String)get_Value("SerNo"); -} -/** Column name SerNo */ -public static final String COLUMNNAME_SerNo = "SerNo"; -/** Set Usable Life - Months. -@param UseLifeMonths Months of the usable life of the asset */ -public void setUseLifeMonths (int UseLifeMonths) -{ -set_Value ("UseLifeMonths", Integer.valueOf(UseLifeMonths)); -} -/** Get Usable Life - Months. -@return Months of the usable life of the asset */ -public int getUseLifeMonths() -{ -Integer ii = (Integer)get_Value("UseLifeMonths"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UseLifeMonths */ -public static final String COLUMNNAME_UseLifeMonths = "UseLifeMonths"; -/** Set Usable Life - Years. -@param UseLifeYears Years of the usable life of the asset */ -public void setUseLifeYears (int UseLifeYears) -{ -set_Value ("UseLifeYears", Integer.valueOf(UseLifeYears)); -} -/** Get Usable Life - Years. -@return Years of the usable life of the asset */ -public int getUseLifeYears() -{ -Integer ii = (Integer)get_Value("UseLifeYears"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UseLifeYears */ -public static final String COLUMNNAME_UseLifeYears = "UseLifeYears"; -/** Set Use units. -@param UseUnits Currently used units of the assets */ -public void setUseUnits (int UseUnits) -{ -set_ValueNoCheck ("UseUnits", Integer.valueOf(UseUnits)); -} -/** Get Use units. -@return Currently used units of the assets */ -public int getUseUnits() -{ -Integer ii = (Integer)get_Value("UseUnits"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UseUnits */ -public static final String COLUMNNAME_UseUnits = "UseUnits"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Version No. -@param VersionNo Version Number */ -public void setVersionNo (String VersionNo) -{ -if (VersionNo != null && VersionNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -VersionNo = VersionNo.substring(0,19); -} -set_Value ("VersionNo", VersionNo); -} -/** Get Version No. -@return Version Number */ -public String getVersionNo() -{ -return (String)get_Value("VersionNo"); -} -/** Column name VersionNo */ -public static final String COLUMNNAME_VersionNo = "VersionNo"; -} + /** Set Lessor. + @param Lease_BPartner_ID + The Business Partner who rents or leases + */ + public void setLease_BPartner_ID (int Lease_BPartner_ID) + { + if (Lease_BPartner_ID <= 0) set_Value (COLUMNNAME_Lease_BPartner_ID, null); + else + set_Value (COLUMNNAME_Lease_BPartner_ID, Integer.valueOf(Lease_BPartner_ID)); + } + + /** Get Lessor. + @return The Business Partner who rents or leases + */ + public int getLease_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Lease_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Life use. + @param LifeUseUnits + Units of use until the asset is not usable anymore + */ + public void setLifeUseUnits (int LifeUseUnits) + { + set_Value (COLUMNNAME_LifeUseUnits, Integer.valueOf(LifeUseUnits)); + } + + /** Get Life use. + @return Units of use until the asset is not usable anymore + */ + public int getLifeUseUnits () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LifeUseUnits); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Location comment. + @param LocationComment + Additional comments or remarks concerning the location + */ + public void setLocationComment (String LocationComment) + { + if (LocationComment != null && LocationComment.length() > 255) + { + log.warning("Length > 255 - truncated"); + LocationComment = LocationComment.substring(0, 254); + } + set_Value (COLUMNNAME_LocationComment, LocationComment); + } + + /** Get Location comment. + @return Additional comments or remarks concerning the location + */ + public String getLocationComment () + { + return (String)get_Value(COLUMNNAME_LocationComment); + } + + /** Set Lot No. + @param Lot + Lot number (alphanumeric) + */ + public void setLot (String Lot) + { + if (Lot != null && Lot.length() > 255) + { + log.warning("Length > 255 - truncated"); + Lot = Lot.substring(0, 254); + } + set_Value (COLUMNNAME_Lot, Lot); + } + + /** Get Lot No. + @return Lot number (alphanumeric) + */ + public String getLot () + { + return (String)get_Value(COLUMNNAME_Lot); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_InOutLine getI_M_InOutLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_Value (COLUMNNAME_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Locator getI_M_Locator() throws Exception + { + 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 e; + } + return result; + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID <= 0) set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Next Maintenence. + @param NextMaintenenceDate + Next Maintenence Date + */ + public void setNextMaintenenceDate (Timestamp NextMaintenenceDate) + { + set_Value (COLUMNNAME_NextMaintenenceDate, NextMaintenenceDate); + } + + /** Get Next Maintenence. + @return Next Maintenence Date + */ + public Timestamp getNextMaintenenceDate () + { + return (Timestamp)get_Value(COLUMNNAME_NextMaintenenceDate); + } + + /** Set Next Unit. + @param NextMaintenenceUnit + Next Maintenence Unit + */ + public void setNextMaintenenceUnit (int NextMaintenenceUnit) + { + set_Value (COLUMNNAME_NextMaintenenceUnit, Integer.valueOf(NextMaintenenceUnit)); + } + + /** Get Next Unit. + @return Next Maintenence Unit + */ + public int getNextMaintenenceUnit () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NextMaintenenceUnit); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Serial No. + @param SerNo + Product Serial Number + */ + public void setSerNo (String SerNo) + { + if (SerNo != null && SerNo.length() > 255) + { + log.warning("Length > 255 - truncated"); + SerNo = SerNo.substring(0, 254); + } + set_Value (COLUMNNAME_SerNo, SerNo); + } + + /** Get Serial No. + @return Product Serial Number + */ + public String getSerNo () + { + return (String)get_Value(COLUMNNAME_SerNo); + } + + /** Set Usable Life - Months. + @param UseLifeMonths + Months of the usable life of the asset + */ + public void setUseLifeMonths (int UseLifeMonths) + { + set_Value (COLUMNNAME_UseLifeMonths, Integer.valueOf(UseLifeMonths)); + } + + /** Get Usable Life - Months. + @return Months of the usable life of the asset + */ + public int getUseLifeMonths () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UseLifeMonths); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Usable Life - Years. + @param UseLifeYears + Years of the usable life of the asset + */ + public void setUseLifeYears (int UseLifeYears) + { + set_Value (COLUMNNAME_UseLifeYears, Integer.valueOf(UseLifeYears)); + } + + /** Get Usable Life - Years. + @return Years of the usable life of the asset + */ + public int getUseLifeYears () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UseLifeYears); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Use units. + @param UseUnits + Currently used units of the assets + */ + public void setUseUnits (int UseUnits) + { + set_ValueNoCheck (COLUMNNAME_UseUnits, Integer.valueOf(UseUnits)); + } + + /** Get Use units. + @return Currently used units of the assets + */ + public int getUseUnits () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UseUnits); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Version No. + @param VersionNo + Version Number + */ + public void setVersionNo (String VersionNo) + { + if (VersionNo != null && VersionNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + VersionNo = VersionNo.substring(0, 19); + } + set_Value (COLUMNNAME_VersionNo, VersionNo); + } + + /** Get Version No. + @return Version Number + */ + public String getVersionNo () + { + return (String)get_Value(COLUMNNAME_VersionNo); + } +} \ No newline at end of file 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 2915ade3b0..ab28c3e014 100644 --- a/base/src/org/compiere/model/X_A_Asset_Delivery.java +++ b/base/src/org/compiere/model/X_A_Asset_Delivery.java @@ -1,408 +1,486 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_Asset_Delivery - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_Asset_Delivery extends PO + +/** Generated Model for A_Asset_Delivery + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_Asset_Delivery extends PO implements I_A_Asset_Delivery, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_Asset_Delivery_ID id -@param trxName transaction -*/ -public X_A_Asset_Delivery (Properties ctx, int A_Asset_Delivery_ID, String trxName) -{ -super (ctx, A_Asset_Delivery_ID, trxName); -/** if (A_Asset_Delivery_ID == 0) -{ -setA_Asset_Delivery_ID (0); -setA_Asset_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_Asset_Delivery (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_Asset_Delivery */ -public static final String Table_Name="A_Asset_Delivery"; - -/** AD_Table_ID=541 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_Asset_Delivery[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_ValueNoCheck ("AD_User_ID", null); - else -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Asset Delivery. -@param A_Asset_Delivery_ID Delivery of Asset */ -public void setA_Asset_Delivery_ID (int A_Asset_Delivery_ID) -{ -if (A_Asset_Delivery_ID < 1) throw new IllegalArgumentException ("A_Asset_Delivery_ID is mandatory."); -set_ValueNoCheck ("A_Asset_Delivery_ID", Integer.valueOf(A_Asset_Delivery_ID)); -} -/** Get Asset Delivery. -@return Delivery of Asset */ -public int getA_Asset_Delivery_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_Delivery_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_Delivery_ID */ -public static final String COLUMNNAME_A_Asset_Delivery_ID = "A_Asset_Delivery_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID < 1) throw new IllegalArgumentException ("A_Asset_ID is mandatory."); -set_ValueNoCheck ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Delivery Confirmation. -@param DeliveryConfirmation EMail Delivery confirmation */ -public void setDeliveryConfirmation (String DeliveryConfirmation) -{ -if (DeliveryConfirmation != null && DeliveryConfirmation.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DeliveryConfirmation = DeliveryConfirmation.substring(0,119); -} -set_Value ("DeliveryConfirmation", DeliveryConfirmation); -} -/** Get Delivery Confirmation. -@return EMail Delivery confirmation */ -public String getDeliveryConfirmation() -{ -return (String)get_Value("DeliveryConfirmation"); -} -/** Column name DeliveryConfirmation */ -public static final String COLUMNNAME_DeliveryConfirmation = "DeliveryConfirmation"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_ValueNoCheck ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Lot No. -@param Lot Lot number (alphanumeric) */ -public void setLot (String Lot) -{ -if (Lot != null && Lot.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Lot = Lot.substring(0,39); -} -set_ValueNoCheck ("Lot", Lot); -} -/** Get Lot No. -@return Lot number (alphanumeric) */ -public String getLot() -{ -return (String)get_Value("Lot"); -} -/** Column name Lot */ -public static final String COLUMNNAME_Lot = "Lot"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_ValueNoCheck ("M_InOutLine_ID", null); - else -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Product Download. -@param M_ProductDownload_ID Product downloads */ -public void setM_ProductDownload_ID (int M_ProductDownload_ID) -{ -if (M_ProductDownload_ID <= 0) set_Value ("M_ProductDownload_ID", null); - else -set_Value ("M_ProductDownload_ID", Integer.valueOf(M_ProductDownload_ID)); -} -/** Get Product Download. -@return Product downloads */ -public int getM_ProductDownload_ID() -{ -Integer ii = (Integer)get_Value("M_ProductDownload_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductDownload_ID */ -public static final String COLUMNNAME_M_ProductDownload_ID = "M_ProductDownload_ID"; -/** Set Message ID. -@param MessageID EMail Message ID */ -public void setMessageID (String MessageID) -{ -if (MessageID != null && MessageID.length() > 120) -{ -log.warning("Length > 120 - truncated"); -MessageID = MessageID.substring(0,119); -} -set_ValueNoCheck ("MessageID", MessageID); -} -/** Get Message ID. -@return EMail Message ID */ -public String getMessageID() -{ -return (String)get_Value("MessageID"); -} -/** Column name MessageID */ -public static final String COLUMNNAME_MessageID = "MessageID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_ValueNoCheck ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getMovementDate())); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Referrer. -@param Referrer Referring web address */ -public void setReferrer (String Referrer) -{ -if (Referrer != null && Referrer.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Referrer = Referrer.substring(0,254); -} -set_ValueNoCheck ("Referrer", Referrer); -} -/** Get Referrer. -@return Referring web address */ -public String getReferrer() -{ -return (String)get_Value("Referrer"); -} -/** Column name Referrer */ -public static final String COLUMNNAME_Referrer = "Referrer"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_ValueNoCheck ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Host = Remote_Host.substring(0,59); -} -set_ValueNoCheck ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Serial No. -@param SerNo Product Serial Number */ -public void setSerNo (String SerNo) -{ -if (SerNo != null && SerNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -SerNo = SerNo.substring(0,39); -} -set_ValueNoCheck ("SerNo", SerNo); -} -/** Get Serial No. -@return Product Serial Number */ -public String getSerNo() -{ -return (String)get_Value("SerNo"); -} -/** Column name SerNo */ -public static final String COLUMNNAME_SerNo = "SerNo"; -/** Set URL. -@param URL Full URL address - e.g. http://www.adempiere.org */ -public void setURL (String URL) -{ -if (URL != null && URL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -URL = URL.substring(0,119); -} -set_ValueNoCheck ("URL", URL); -} -/** Get URL. -@return Full URL address - e.g. http://www.adempiere.org */ -public String getURL() -{ -return (String)get_Value("URL"); -} -/** Column name URL */ -public static final String COLUMNNAME_URL = "URL"; -/** Set Version No. -@param VersionNo Version Number */ -public void setVersionNo (String VersionNo) -{ -if (VersionNo != null && VersionNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -VersionNo = VersionNo.substring(0,19); -} -set_ValueNoCheck ("VersionNo", VersionNo); -} -/** Get Version No. -@return Version Number */ -public String getVersionNo() -{ -return (String)get_Value("VersionNo"); -} -/** Column name VersionNo */ -public static final String COLUMNNAME_VersionNo = "VersionNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_Asset_Delivery (Properties ctx, int A_Asset_Delivery_ID, String trxName) + { + super (ctx, A_Asset_Delivery_ID, trxName); + /** if (A_Asset_Delivery_ID == 0) { setA_Asset_Delivery_ID (0); + setA_Asset_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_A_Asset_Delivery (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_Asset_Delivery[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset Delivery. + @param A_Asset_Delivery_ID + Delivery of Asset + */ + public void setA_Asset_Delivery_ID (int A_Asset_Delivery_ID) + { + if (A_Asset_Delivery_ID < 1) + throw new IllegalArgumentException ("A_Asset_Delivery_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Asset_Delivery_ID, Integer.valueOf(A_Asset_Delivery_ID)); + } + + /** Get Asset Delivery. + @return Delivery of Asset + */ + public int getA_Asset_Delivery_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_Delivery_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_A_Asset getI_A_Asset() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID < 1) + throw new IllegalArgumentException ("A_Asset_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Delivery Confirmation. + @param DeliveryConfirmation + EMail Delivery confirmation + */ + public void setDeliveryConfirmation (String DeliveryConfirmation) + { + if (DeliveryConfirmation != null && DeliveryConfirmation.length() > 120) + { + log.warning("Length > 120 - truncated"); + DeliveryConfirmation = DeliveryConfirmation.substring(0, 119); + } + set_Value (COLUMNNAME_DeliveryConfirmation, DeliveryConfirmation); + } + + /** Get Delivery Confirmation. + @return EMail Delivery confirmation + */ + public String getDeliveryConfirmation () + { + return (String)get_Value(COLUMNNAME_DeliveryConfirmation); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Lot No. + @param Lot + Lot number (alphanumeric) + */ + public void setLot (String Lot) + { + if (Lot != null && Lot.length() > 40) + { + log.warning("Length > 40 - truncated"); + Lot = Lot.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Lot, Lot); + } + + /** Get Lot No. + @return Lot number (alphanumeric) + */ + public String getLot () + { + return (String)get_Value(COLUMNNAME_Lot); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ProductDownload getI_M_ProductDownload() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Download. + @param M_ProductDownload_ID + Product downloads + */ + public void setM_ProductDownload_ID (int M_ProductDownload_ID) + { + if (M_ProductDownload_ID <= 0) set_Value (COLUMNNAME_M_ProductDownload_ID, null); + else + set_Value (COLUMNNAME_M_ProductDownload_ID, Integer.valueOf(M_ProductDownload_ID)); + } + + /** Get Product Download. + @return Product downloads + */ + public int getM_ProductDownload_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductDownload_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Message ID. + @param MessageID + EMail Message ID + */ + public void setMessageID (String MessageID) + { + if (MessageID != null && MessageID.length() > 120) + { + log.warning("Length > 120 - truncated"); + MessageID = MessageID.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_MessageID, MessageID); + } + + /** Get Message ID. + @return EMail Message ID + */ + public String getMessageID () + { + return (String)get_Value(COLUMNNAME_MessageID); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_ValueNoCheck (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getMovementDate())); + } + + /** Set Referrer. + @param Referrer + Referring web address + */ + public void setReferrer (String Referrer) + { + if (Referrer != null && Referrer.length() > 255) + { + log.warning("Length > 255 - truncated"); + Referrer = Referrer.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Referrer, Referrer); + } + + /** Get Referrer. + @return Referring web address + */ + public String getReferrer () + { + return (String)get_Value(COLUMNNAME_Referrer); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Host = Remote_Host.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Serial No. + @param SerNo + Product Serial Number + */ + public void setSerNo (String SerNo) + { + if (SerNo != null && SerNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + SerNo = SerNo.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_SerNo, SerNo); + } + + /** Get Serial No. + @return Product Serial Number + */ + public String getSerNo () + { + return (String)get_Value(COLUMNNAME_SerNo); + } + + /** Set URL. + @param URL + Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL) + { + if (URL != null && URL.length() > 120) + { + log.warning("Length > 120 - truncated"); + URL = URL.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_URL, URL); + } + + /** Get URL. + @return Full URL address - e.g. http://www.adempiere.org + */ + public String getURL () + { + return (String)get_Value(COLUMNNAME_URL); + } + + /** Set Version No. + @param VersionNo + Version Number + */ + public void setVersionNo (String VersionNo) + { + if (VersionNo != null && VersionNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + VersionNo = VersionNo.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_VersionNo, VersionNo); + } + + /** Get Version No. + @return Version Number + */ + public String getVersionNo () + { + return (String)get_Value(COLUMNNAME_VersionNo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_A_Asset_Group.java b/base/src/org/compiere/model/X_A_Asset_Group.java index 92f19830cf..0b6b9e3b0c 100644 --- a/base/src/org/compiere/model/X_A_Asset_Group.java +++ b/base/src/org/compiere/model/X_A_Asset_Group.java @@ -1,275 +1,299 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_Asset_Group - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_Asset_Group extends PO + +/** Generated Model for A_Asset_Group + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_Asset_Group extends PO implements I_A_Asset_Group, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_Asset_Group_ID id -@param trxName transaction -*/ -public X_A_Asset_Group (Properties ctx, int A_Asset_Group_ID, String trxName) -{ -super (ctx, A_Asset_Group_ID, trxName); -/** if (A_Asset_Group_ID == 0) -{ -setA_Asset_Group_ID (0); -setIsCreateAsActive (true); // Y -setIsDepreciated (false); -setIsOneAssetPerUOM (false); -setIsOwned (false); -setIsTrackIssues (false); // N -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_Asset_Group (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_Asset_Group */ -public static final String Table_Name="A_Asset_Group"; - -/** AD_Table_ID=542 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_Asset_Group[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Asset Group. -@param A_Asset_Group_ID Group of Assets */ -public void setA_Asset_Group_ID (int A_Asset_Group_ID) -{ -if (A_Asset_Group_ID < 1) throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); -set_ValueNoCheck ("A_Asset_Group_ID", Integer.valueOf(A_Asset_Group_ID)); -} -/** Get Asset Group. -@return Group of Assets */ -public int getA_Asset_Group_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_Group_ID */ -public static final String COLUMNNAME_A_Asset_Group_ID = "A_Asset_Group_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Create As Active. -@param IsCreateAsActive Create Asset and activate it */ -public void setIsCreateAsActive (boolean IsCreateAsActive) -{ -set_Value ("IsCreateAsActive", Boolean.valueOf(IsCreateAsActive)); -} -/** Get Create As Active. -@return Create Asset and activate it */ -public boolean isCreateAsActive() -{ -Object oo = get_Value("IsCreateAsActive"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreateAsActive */ -public static final String COLUMNNAME_IsCreateAsActive = "IsCreateAsActive"; -/** Set Depreciate. -@param IsDepreciated The asset will be depreciated */ -public void setIsDepreciated (boolean IsDepreciated) -{ -set_Value ("IsDepreciated", Boolean.valueOf(IsDepreciated)); -} -/** Get Depreciate. -@return The asset will be depreciated */ -public boolean isDepreciated() -{ -Object oo = get_Value("IsDepreciated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDepreciated */ -public static final String COLUMNNAME_IsDepreciated = "IsDepreciated"; -/** Set One Asset Per UOM. -@param IsOneAssetPerUOM Create one asset per UOM */ -public void setIsOneAssetPerUOM (boolean IsOneAssetPerUOM) -{ -set_Value ("IsOneAssetPerUOM", Boolean.valueOf(IsOneAssetPerUOM)); -} -/** Get One Asset Per UOM. -@return Create one asset per UOM */ -public boolean isOneAssetPerUOM() -{ -Object oo = get_Value("IsOneAssetPerUOM"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOneAssetPerUOM */ -public static final String COLUMNNAME_IsOneAssetPerUOM = "IsOneAssetPerUOM"; -/** Set Owned. -@param IsOwned The asset is owned by the organization */ -public void setIsOwned (boolean IsOwned) -{ -set_Value ("IsOwned", Boolean.valueOf(IsOwned)); -} -/** Get Owned. -@return The asset is owned by the organization */ -public boolean isOwned() -{ -Object oo = get_Value("IsOwned"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOwned */ -public static final String COLUMNNAME_IsOwned = "IsOwned"; -/** Set Track Issues. -@param IsTrackIssues Enable tracking issues for this asset */ -public void setIsTrackIssues (boolean IsTrackIssues) -{ -set_Value ("IsTrackIssues", Boolean.valueOf(IsTrackIssues)); -} -/** Get Track Issues. -@return Enable tracking issues for this asset */ -public boolean isTrackIssues() -{ -Object oo = get_Value("IsTrackIssues"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTrackIssues */ -public static final String COLUMNNAME_IsTrackIssues = "IsTrackIssues"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_Asset_Group (Properties ctx, int A_Asset_Group_ID, String trxName) + { + super (ctx, A_Asset_Group_ID, trxName); + /** if (A_Asset_Group_ID == 0) { setA_Asset_Group_ID (0); + setIsCreateAsActive (true); +// Y + setIsDepreciated (false); + setIsOneAssetPerUOM (false); + setIsOwned (false); + setIsTrackIssues (false); +// N + setName (null); +} */ + } + + /** Load Constructor */ + public X_A_Asset_Group (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_Asset_Group[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Asset Group. + @param A_Asset_Group_ID + Group of Assets + */ + public void setA_Asset_Group_ID (int A_Asset_Group_ID) + { + if (A_Asset_Group_ID < 1) + throw new IllegalArgumentException ("A_Asset_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); + } + + /** Get Asset Group. + @return Group of Assets + */ + public int getA_Asset_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Create As Active. + @param IsCreateAsActive + Create Asset and activate it + */ + public void setIsCreateAsActive (boolean IsCreateAsActive) + { + set_Value (COLUMNNAME_IsCreateAsActive, Boolean.valueOf(IsCreateAsActive)); + } + + /** Get Create As Active. + @return Create Asset and activate it + */ + public boolean isCreateAsActive () + { + Object oo = get_Value(COLUMNNAME_IsCreateAsActive); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Depreciate. + @param IsDepreciated + The asset will be depreciated + */ + public void setIsDepreciated (boolean IsDepreciated) + { + set_Value (COLUMNNAME_IsDepreciated, Boolean.valueOf(IsDepreciated)); + } + + /** Get Depreciate. + @return The asset will be depreciated + */ + public boolean isDepreciated () + { + Object oo = get_Value(COLUMNNAME_IsDepreciated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set One Asset Per UOM. + @param IsOneAssetPerUOM + Create one asset per UOM + */ + public void setIsOneAssetPerUOM (boolean IsOneAssetPerUOM) + { + set_Value (COLUMNNAME_IsOneAssetPerUOM, Boolean.valueOf(IsOneAssetPerUOM)); + } + + /** Get One Asset Per UOM. + @return Create one asset per UOM + */ + public boolean isOneAssetPerUOM () + { + Object oo = get_Value(COLUMNNAME_IsOneAssetPerUOM); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Owned. + @param IsOwned + The asset is owned by the organization + */ + public void setIsOwned (boolean IsOwned) + { + set_Value (COLUMNNAME_IsOwned, Boolean.valueOf(IsOwned)); + } + + /** Get Owned. + @return The asset is owned by the organization + */ + public boolean isOwned () + { + Object oo = get_Value(COLUMNNAME_IsOwned); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Track Issues. + @param IsTrackIssues + Enable tracking issues for this asset + */ + public void setIsTrackIssues (boolean IsTrackIssues) + { + set_Value (COLUMNNAME_IsTrackIssues, Boolean.valueOf(IsTrackIssues)); + } + + /** Get Track Issues. + @return Enable tracking issues for this asset + */ + public boolean isTrackIssues () + { + Object oo = get_Value(COLUMNNAME_IsTrackIssues); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 ff86975b0b..758eee3b4a 100644 --- a/base/src/org/compiere/model/X_A_Asset_Retirement.java +++ b/base/src/org/compiere/model/X_A_Asset_Retirement.java @@ -1,183 +1,210 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_Asset_Retirement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_Asset_Retirement extends PO + +/** Generated Model for A_Asset_Retirement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_Asset_Retirement extends PO implements I_A_Asset_Retirement, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_Asset_Retirement_ID id -@param trxName transaction -*/ -public X_A_Asset_Retirement (Properties ctx, int A_Asset_Retirement_ID, String trxName) -{ -super (ctx, A_Asset_Retirement_ID, trxName); -/** if (A_Asset_Retirement_ID == 0) -{ -setA_Asset_ID (0); -setA_Asset_Retirement_ID (0); -setAssetMarketValueAmt (Env.ZERO); -setAssetValueAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_Asset_Retirement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_Asset_Retirement */ -public static final String Table_Name="A_Asset_Retirement"; - -/** AD_Table_ID=540 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_Asset_Retirement[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID < 1) throw new IllegalArgumentException ("A_Asset_ID is mandatory."); -set_ValueNoCheck ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Asset Retirement. -@param A_Asset_Retirement_ID Internally used asset is not longer used. */ -public void setA_Asset_Retirement_ID (int A_Asset_Retirement_ID) -{ -if (A_Asset_Retirement_ID < 1) throw new IllegalArgumentException ("A_Asset_Retirement_ID is mandatory."); -set_ValueNoCheck ("A_Asset_Retirement_ID", Integer.valueOf(A_Asset_Retirement_ID)); -} -/** Get Asset Retirement. -@return Internally used asset is not longer used. */ -public int getA_Asset_Retirement_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_Retirement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getA_Asset_Retirement_ID())); -} -/** Column name A_Asset_Retirement_ID */ -public static final String COLUMNNAME_A_Asset_Retirement_ID = "A_Asset_Retirement_ID"; -/** Set Market value Amount. -@param AssetMarketValueAmt Market value of the asset */ -public void setAssetMarketValueAmt (BigDecimal AssetMarketValueAmt) -{ -if (AssetMarketValueAmt == null) throw new IllegalArgumentException ("AssetMarketValueAmt is mandatory."); -set_Value ("AssetMarketValueAmt", AssetMarketValueAmt); -} -/** Get Market value Amount. -@return Market value of the asset */ -public BigDecimal getAssetMarketValueAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("AssetMarketValueAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AssetMarketValueAmt */ -public static final String COLUMNNAME_AssetMarketValueAmt = "AssetMarketValueAmt"; -/** Set Asset value. -@param AssetValueAmt Book Value of the asset */ -public void setAssetValueAmt (BigDecimal AssetValueAmt) -{ -if (AssetValueAmt == null) throw new IllegalArgumentException ("AssetValueAmt is mandatory."); -set_Value ("AssetValueAmt", AssetValueAmt); -} -/** Get Asset value. -@return Book Value of the asset */ -public BigDecimal getAssetValueAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("AssetValueAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AssetValueAmt */ -public static final String COLUMNNAME_AssetValueAmt = "AssetValueAmt"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_Value ("C_InvoiceLine_ID", null); - else -set_Value ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_Asset_Retirement (Properties ctx, int A_Asset_Retirement_ID, String trxName) + { + super (ctx, A_Asset_Retirement_ID, trxName); + /** if (A_Asset_Retirement_ID == 0) { setA_Asset_ID (0); + setA_Asset_Retirement_ID (0); + setAssetMarketValueAmt (Env.ZERO); + setAssetValueAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_A_Asset_Retirement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_Asset_Retirement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_A_Asset getI_A_Asset() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID < 1) + throw new IllegalArgumentException ("A_Asset_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset Retirement. + @param A_Asset_Retirement_ID + Internally used asset is not longer used. + */ + public void setA_Asset_Retirement_ID (int A_Asset_Retirement_ID) + { + if (A_Asset_Retirement_ID < 1) + throw new IllegalArgumentException ("A_Asset_Retirement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Asset_Retirement_ID, Integer.valueOf(A_Asset_Retirement_ID)); + } + + /** Get Asset Retirement. + @return Internally used asset is not longer used. + */ + public int getA_Asset_Retirement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_Retirement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getA_Asset_Retirement_ID())); + } + + /** Set Market value Amount. + @param AssetMarketValueAmt + Market value of the asset + */ + public void setAssetMarketValueAmt (BigDecimal AssetMarketValueAmt) + { + if (AssetMarketValueAmt == null) + throw new IllegalArgumentException ("AssetMarketValueAmt is mandatory."); + set_Value (COLUMNNAME_AssetMarketValueAmt, AssetMarketValueAmt); + } + + /** Get Market value Amount. + @return Market value of the asset + */ + public BigDecimal getAssetMarketValueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AssetMarketValueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Asset value. + @param AssetValueAmt + Book Value of the asset + */ + public void setAssetValueAmt (BigDecimal AssetValueAmt) + { + if (AssetValueAmt == null) + throw new IllegalArgumentException ("AssetValueAmt is mandatory."); + set_Value (COLUMNNAME_AssetValueAmt, AssetValueAmt); + } + + /** Get Asset value. + @return Book Value of the asset + */ + public BigDecimal getAssetValueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AssetValueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_Value (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_Value (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_A_Registration.java b/base/src/org/compiere/model/X_A_Registration.java index 250030abeb..f3b44640cc 100644 --- a/base/src/org/compiere/model/X_A_Registration.java +++ b/base/src/org/compiere/model/X_A_Registration.java @@ -1,398 +1,458 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_Registration - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_Registration extends PO + +/** Generated Model for A_Registration + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_Registration extends PO implements I_A_Registration, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_Registration_ID id -@param trxName transaction -*/ -public X_A_Registration (Properties ctx, int A_Registration_ID, String trxName) -{ -super (ctx, A_Registration_ID, trxName); -/** if (A_Registration_ID == 0) -{ -setA_Registration_ID (0); -setAssetServiceDate (new Timestamp(System.currentTimeMillis())); -setIsAllowPublish (false); -setIsInProduction (false); -setIsRegistered (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_Registration (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_Registration */ -public static final String Table_Name="A_Registration"; - -/** AD_Table_ID=651 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_Registration[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Registration. -@param A_Registration_ID User Asset Registration */ -public void setA_Registration_ID (int A_Registration_ID) -{ -if (A_Registration_ID < 1) throw new IllegalArgumentException ("A_Registration_ID is mandatory."); -set_ValueNoCheck ("A_Registration_ID", Integer.valueOf(A_Registration_ID)); -} -/** Get Registration. -@return User Asset Registration */ -public int getA_Registration_ID() -{ -Integer ii = (Integer)get_Value("A_Registration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Registration_ID */ -public static final String COLUMNNAME_A_Registration_ID = "A_Registration_ID"; -/** Set In Service Date. -@param AssetServiceDate Date when Asset was put into service */ -public void setAssetServiceDate (Timestamp AssetServiceDate) -{ -if (AssetServiceDate == null) throw new IllegalArgumentException ("AssetServiceDate is mandatory."); -set_ValueNoCheck ("AssetServiceDate", AssetServiceDate); -} -/** Get In Service Date. -@return Date when Asset was put into service */ -public Timestamp getAssetServiceDate() -{ -return (Timestamp)get_Value("AssetServiceDate"); -} -/** Column name AssetServiceDate */ -public static final String COLUMNNAME_AssetServiceDate = "AssetServiceDate"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Allowed to be Published. -@param IsAllowPublish You allow to publish the information, not just statistical summary info */ -public void setIsAllowPublish (boolean IsAllowPublish) -{ -set_Value ("IsAllowPublish", Boolean.valueOf(IsAllowPublish)); -} -/** Get Allowed to be Published. -@return You allow to publish the information, not just statistical summary info */ -public boolean isAllowPublish() -{ -Object oo = get_Value("IsAllowPublish"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllowPublish */ -public static final String COLUMNNAME_IsAllowPublish = "IsAllowPublish"; -/** Set In Production. -@param IsInProduction The system is in production */ -public void setIsInProduction (boolean IsInProduction) -{ -set_Value ("IsInProduction", Boolean.valueOf(IsInProduction)); -} -/** Get In Production. -@return The system is in production */ -public boolean isInProduction() -{ -Object oo = get_Value("IsInProduction"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInProduction */ -public static final String COLUMNNAME_IsInProduction = "IsInProduction"; -/** Set Registered. -@param IsRegistered The application is registered. */ -public void setIsRegistered (boolean IsRegistered) -{ -set_Value ("IsRegistered", Boolean.valueOf(IsRegistered)); -} -/** Get Registered. -@return The application is registered. */ -public boolean isRegistered() -{ -Object oo = get_Value("IsRegistered"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRegistered */ -public static final String COLUMNNAME_IsRegistered = "IsRegistered"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Note = Note.substring(0,1999); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_Value ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_Value ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_Registration (Properties ctx, int A_Registration_ID, String trxName) + { + super (ctx, A_Registration_ID, trxName); + /** if (A_Registration_ID == 0) { setA_Registration_ID (0); + setAssetServiceDate (new Timestamp(System.currentTimeMillis())); + setIsAllowPublish (false); + setIsInProduction (false); + setIsRegistered (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_A_Registration (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_Registration[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Registration. + @param A_Registration_ID + User Asset Registration + */ + public void setA_Registration_ID (int A_Registration_ID) + { + if (A_Registration_ID < 1) + throw new IllegalArgumentException ("A_Registration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); + } + + /** Get Registration. + @return User Asset Registration + */ + public int getA_Registration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Registration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set In Service Date. + @param AssetServiceDate + Date when Asset was put into service + */ + public void setAssetServiceDate (Timestamp AssetServiceDate) + { + if (AssetServiceDate == null) + throw new IllegalArgumentException ("AssetServiceDate is mandatory."); + set_ValueNoCheck (COLUMNNAME_AssetServiceDate, AssetServiceDate); + } + + /** Get In Service Date. + @return Date when Asset was put into service + */ + public Timestamp getAssetServiceDate () + { + return (Timestamp)get_Value(COLUMNNAME_AssetServiceDate); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Allowed to be Published. + @param IsAllowPublish + You allow to publish the information, not just statistical summary info + */ + public void setIsAllowPublish (boolean IsAllowPublish) + { + set_Value (COLUMNNAME_IsAllowPublish, Boolean.valueOf(IsAllowPublish)); + } + + /** Get Allowed to be Published. + @return You allow to publish the information, not just statistical summary info + */ + public boolean isAllowPublish () + { + Object oo = get_Value(COLUMNNAME_IsAllowPublish); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Production. + @param IsInProduction + The system is in production + */ + public void setIsInProduction (boolean IsInProduction) + { + set_Value (COLUMNNAME_IsInProduction, Boolean.valueOf(IsInProduction)); + } + + /** Get In Production. + @return The system is in production + */ + public boolean isInProduction () + { + Object oo = get_Value(COLUMNNAME_IsInProduction); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Registered. + @param IsRegistered + The application is registered. + */ + public void setIsRegistered (boolean IsRegistered) + { + set_Value (COLUMNNAME_IsRegistered, Boolean.valueOf(IsRegistered)); + } + + /** Get Registered. + @return The application is registered. + */ + public boolean isRegistered () + { + Object oo = get_Value(COLUMNNAME_IsRegistered); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Note = Note.substring(0, 1999); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_Value (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_A_RegistrationAttribute.java b/base/src/org/compiere/model/X_A_RegistrationAttribute.java index cea902169f..53fbd63cac 100644 --- a/base/src/org/compiere/model/X_A_RegistrationAttribute.java +++ b/base/src/org/compiere/model/X_A_RegistrationAttribute.java @@ -1,252 +1,268 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_RegistrationAttribute - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_RegistrationAttribute extends PO + +/** Generated Model for A_RegistrationAttribute + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_RegistrationAttribute extends PO implements I_A_RegistrationAttribute, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_RegistrationAttribute_ID id -@param trxName transaction -*/ -public X_A_RegistrationAttribute (Properties ctx, int A_RegistrationAttribute_ID, String trxName) -{ -super (ctx, A_RegistrationAttribute_ID, trxName); -/** if (A_RegistrationAttribute_ID == 0) -{ -setAD_Reference_ID (0); -setA_RegistrationAttribute_ID (0); -setIsSelfService (true); // Y -setName (null); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_RegistrationAttribute (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_RegistrationAttribute */ -public static final String Table_Name="A_RegistrationAttribute"; - -/** AD_Table_ID=652 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_RegistrationAttribute[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_RegistrationAttribute (Properties ctx, int A_RegistrationAttribute_ID, String trxName) + { + super (ctx, A_RegistrationAttribute_ID, trxName); + /** if (A_RegistrationAttribute_ID == 0) { setAD_Reference_ID (0); + setA_RegistrationAttribute_ID (0); + setIsSelfService (true); +// Y + setName (null); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_A_RegistrationAttribute (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_RegistrationAttribute[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Reference_ID AD_Reference_ID=1 */ public static final int AD_REFERENCE_ID_AD_Reference_ID=1; -/** Set Reference. -@param AD_Reference_ID System Reference and Validation */ -public void setAD_Reference_ID (int AD_Reference_ID) -{ -if (AD_Reference_ID < 1) throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); -set_Value ("AD_Reference_ID", Integer.valueOf(AD_Reference_ID)); -} -/** Get Reference. -@return System Reference and Validation */ -public int getAD_Reference_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_ID */ -public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID"; + /** Set Reference. + @param AD_Reference_ID + System Reference and Validation + */ + public void setAD_Reference_ID (int AD_Reference_ID) + { + if (AD_Reference_ID < 1) + throw new IllegalArgumentException ("AD_Reference_ID is mandatory."); + set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID)); + } + + /** Get Reference. + @return System Reference and Validation + */ + public int getAD_Reference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Reference_Value_ID AD_Reference_ID=4 */ public static final int AD_REFERENCE_VALUE_ID_AD_Reference_ID=4; -/** Set Reference Key. -@param AD_Reference_Value_ID Required to specify, if data type is Table or List */ -public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) -{ -if (AD_Reference_Value_ID <= 0) set_Value ("AD_Reference_Value_ID", null); - else -set_Value ("AD_Reference_Value_ID", Integer.valueOf(AD_Reference_Value_ID)); -} -/** Get Reference Key. -@return Required to specify, if data type is Table or List */ -public int getAD_Reference_Value_ID() -{ -Integer ii = (Integer)get_Value("AD_Reference_Value_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Reference_Value_ID */ -public static final String COLUMNNAME_AD_Reference_Value_ID = "AD_Reference_Value_ID"; -/** Set Registration Attribute. -@param A_RegistrationAttribute_ID Asset Registration Attribute */ -public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) -{ -if (A_RegistrationAttribute_ID < 1) throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); -set_ValueNoCheck ("A_RegistrationAttribute_ID", Integer.valueOf(A_RegistrationAttribute_ID)); -} -/** Get Registration Attribute. -@return Asset Registration Attribute */ -public int getA_RegistrationAttribute_ID() -{ -Integer ii = (Integer)get_Value("A_RegistrationAttribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_RegistrationAttribute_ID */ -public static final String COLUMNNAME_A_RegistrationAttribute_ID = "A_RegistrationAttribute_ID"; -/** Set DB Column Name. -@param ColumnName Name of the column in the database */ -public void setColumnName (String ColumnName) -{ -if (ColumnName != null && ColumnName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ColumnName = ColumnName.substring(0,39); -} -set_Value ("ColumnName", ColumnName); -} -/** Get DB Column Name. -@return Name of the column in the database */ -public String getColumnName() -{ -return (String)get_Value("ColumnName"); -} -/** Column name ColumnName */ -public static final String COLUMNNAME_ColumnName = "ColumnName"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Reference Key. + @param AD_Reference_Value_ID + Required to specify, if data type is Table or List + */ + public void setAD_Reference_Value_ID (int AD_Reference_Value_ID) + { + if (AD_Reference_Value_ID <= 0) set_Value (COLUMNNAME_AD_Reference_Value_ID, null); + else + set_Value (COLUMNNAME_AD_Reference_Value_ID, Integer.valueOf(AD_Reference_Value_ID)); + } + + /** Get Reference Key. + @return Required to specify, if data type is Table or List + */ + public int getAD_Reference_Value_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_Value_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Registration Attribute. + @param A_RegistrationAttribute_ID + Asset Registration Attribute + */ + public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) + { + if (A_RegistrationAttribute_ID < 1) + throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); + } + + /** Get Registration Attribute. + @return Asset Registration Attribute + */ + public int getA_RegistrationAttribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_RegistrationAttribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set DB Column Name. + @param ColumnName + Name of the column in the database + */ + public void setColumnName (String ColumnName) + { + if (ColumnName != null && ColumnName.length() > 40) + { + log.warning("Length > 40 - truncated"); + ColumnName = ColumnName.substring(0, 39); + } + set_Value (COLUMNNAME_ColumnName, ColumnName); + } + + /** Get DB Column Name. + @return Name of the column in the database + */ + public String getColumnName () + { + return (String)get_Value(COLUMNNAME_ColumnName); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_A_RegistrationProduct.java b/base/src/org/compiere/model/X_A_RegistrationProduct.java index 0a1e883a10..4d4e695825 100644 --- a/base/src/org/compiere/model/X_A_RegistrationProduct.java +++ b/base/src/org/compiere/model/X_A_RegistrationProduct.java @@ -1,142 +1,156 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_RegistrationProduct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_RegistrationProduct extends PO + +/** Generated Model for A_RegistrationProduct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_RegistrationProduct extends PO implements I_A_RegistrationProduct, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_RegistrationProduct_ID id -@param trxName transaction -*/ -public X_A_RegistrationProduct (Properties ctx, int A_RegistrationProduct_ID, String trxName) -{ -super (ctx, A_RegistrationProduct_ID, trxName); -/** if (A_RegistrationProduct_ID == 0) -{ -setA_RegistrationAttribute_ID (0); -setM_Product_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_RegistrationProduct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_RegistrationProduct */ -public static final String Table_Name="A_RegistrationProduct"; - -/** AD_Table_ID=715 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_RegistrationProduct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Registration Attribute. -@param A_RegistrationAttribute_ID Asset Registration Attribute */ -public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) -{ -if (A_RegistrationAttribute_ID < 1) throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); -set_ValueNoCheck ("A_RegistrationAttribute_ID", Integer.valueOf(A_RegistrationAttribute_ID)); -} -/** Get Registration Attribute. -@return Asset Registration Attribute */ -public int getA_RegistrationAttribute_ID() -{ -Integer ii = (Integer)get_Value("A_RegistrationAttribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_RegistrationAttribute_ID */ -public static final String COLUMNNAME_A_RegistrationAttribute_ID = "A_RegistrationAttribute_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_RegistrationProduct (Properties ctx, int A_RegistrationProduct_ID, String trxName) + { + super (ctx, A_RegistrationProduct_ID, trxName); + /** if (A_RegistrationProduct_ID == 0) { setA_RegistrationAttribute_ID (0); + setM_Product_ID (0); +} */ + } + + /** Load Constructor */ + public X_A_RegistrationProduct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_RegistrationProduct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_A_RegistrationAttribute getI_A_RegistrationAttribute() throws Exception + { + 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 e; + } + return result; + } + + /** Set Registration Attribute. + @param A_RegistrationAttribute_ID + Asset Registration Attribute + */ + public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) + { + if (A_RegistrationAttribute_ID < 1) + throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); + } + + /** Get Registration Attribute. + @return Asset Registration Attribute + */ + public int getA_RegistrationAttribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_RegistrationAttribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_A_RegistrationValue.java b/base/src/org/compiere/model/X_A_RegistrationValue.java index 62ad5bb43c..c92e5230d0 100644 --- a/base/src/org/compiere/model/X_A_RegistrationValue.java +++ b/base/src/org/compiere/model/X_A_RegistrationValue.java @@ -1,169 +1,205 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for A_RegistrationValue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_A_RegistrationValue extends PO + +/** Generated Model for A_RegistrationValue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_A_RegistrationValue extends PO implements I_A_RegistrationValue, I_Persistent { -/** Standard Constructor -@param ctx context -@param A_RegistrationValue_ID id -@param trxName transaction -*/ -public X_A_RegistrationValue (Properties ctx, int A_RegistrationValue_ID, String trxName) -{ -super (ctx, A_RegistrationValue_ID, trxName); -/** if (A_RegistrationValue_ID == 0) -{ -setA_RegistrationAttribute_ID (0); -setA_Registration_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_A_RegistrationValue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=A_RegistrationValue */ -public static final String Table_Name="A_RegistrationValue"; - -/** AD_Table_ID=653 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_A_RegistrationValue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Registration Attribute. -@param A_RegistrationAttribute_ID Asset Registration Attribute */ -public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) -{ -if (A_RegistrationAttribute_ID < 1) throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); -set_ValueNoCheck ("A_RegistrationAttribute_ID", Integer.valueOf(A_RegistrationAttribute_ID)); -} -/** Get Registration Attribute. -@return Asset Registration Attribute */ -public int getA_RegistrationAttribute_ID() -{ -Integer ii = (Integer)get_Value("A_RegistrationAttribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getA_RegistrationAttribute_ID())); -} -/** Column name A_RegistrationAttribute_ID */ -public static final String COLUMNNAME_A_RegistrationAttribute_ID = "A_RegistrationAttribute_ID"; -/** Set Registration. -@param A_Registration_ID User Asset Registration */ -public void setA_Registration_ID (int A_Registration_ID) -{ -if (A_Registration_ID < 1) throw new IllegalArgumentException ("A_Registration_ID is mandatory."); -set_ValueNoCheck ("A_Registration_ID", Integer.valueOf(A_Registration_ID)); -} -/** Get Registration. -@return User Asset Registration */ -public int getA_Registration_ID() -{ -Integer ii = (Integer)get_Value("A_Registration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Registration_ID */ -public static final String COLUMNNAME_A_Registration_ID = "A_Registration_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_A_RegistrationValue (Properties ctx, int A_RegistrationValue_ID, String trxName) + { + super (ctx, A_RegistrationValue_ID, trxName); + /** if (A_RegistrationValue_ID == 0) { setA_RegistrationAttribute_ID (0); + setA_Registration_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_A_RegistrationValue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_A_RegistrationValue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_A_RegistrationAttribute getI_A_RegistrationAttribute() throws Exception + { + 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 e; + } + return result; + } + + /** Set Registration Attribute. + @param A_RegistrationAttribute_ID + Asset Registration Attribute + */ + public void setA_RegistrationAttribute_ID (int A_RegistrationAttribute_ID) + { + if (A_RegistrationAttribute_ID < 1) + throw new IllegalArgumentException ("A_RegistrationAttribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_RegistrationAttribute_ID, Integer.valueOf(A_RegistrationAttribute_ID)); + } + + /** Get Registration Attribute. + @return Asset Registration Attribute + */ + public int getA_RegistrationAttribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_RegistrationAttribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getA_RegistrationAttribute_ID())); + } + + public I_A_Registration getI_A_Registration() throws Exception + { + 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 e; + } + return result; + } + + /** Set Registration. + @param A_Registration_ID + User Asset Registration + */ + public void setA_Registration_ID (int A_Registration_ID) + { + if (A_Registration_ID < 1) + throw new IllegalArgumentException ("A_Registration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); + } + + /** Get Registration. + @return User Asset Registration + */ + public int getA_Registration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Registration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_Bid.java b/base/src/org/compiere/model/X_B_Bid.java index 9032863bce..68966724bb 100644 --- a/base/src/org/compiere/model/X_B_Bid.java +++ b/base/src/org/compiere/model/X_B_Bid.java @@ -1,245 +1,311 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_Bid - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_Bid extends PO + +/** Generated Model for B_Bid + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_Bid extends PO implements I_B_Bid, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_Bid_ID id -@param trxName transaction -*/ -public X_B_Bid (Properties ctx, int B_Bid_ID, String trxName) -{ -super (ctx, B_Bid_ID, trxName); -/** if (B_Bid_ID == 0) -{ -setAD_User_ID (0); -setB_Bid_ID (0); -setB_BuyerFunds_ID (0); -setB_Topic_ID (0); -setIsWillingToCommit (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_Bid (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_Bid */ -public static final String Table_Name="B_Bid"; - -/** AD_Table_ID=686 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_Bid[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Bid. -@param B_Bid_ID Bid for a Topic */ -public void setB_Bid_ID (int B_Bid_ID) -{ -if (B_Bid_ID < 1) throw new IllegalArgumentException ("B_Bid_ID is mandatory."); -set_ValueNoCheck ("B_Bid_ID", Integer.valueOf(B_Bid_ID)); -} -/** Get Bid. -@return Bid for a Topic */ -public int getB_Bid_ID() -{ -Integer ii = (Integer)get_Value("B_Bid_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Bid_ID */ -public static final String COLUMNNAME_B_Bid_ID = "B_Bid_ID"; -/** Set Buyer Funds. -@param B_BuyerFunds_ID Buyer Funds for Bids on Topics */ -public void setB_BuyerFunds_ID (int B_BuyerFunds_ID) -{ -if (B_BuyerFunds_ID < 1) throw new IllegalArgumentException ("B_BuyerFunds_ID is mandatory."); -set_Value ("B_BuyerFunds_ID", Integer.valueOf(B_BuyerFunds_ID)); -} -/** Get Buyer Funds. -@return Buyer Funds for Bids on Topics */ -public int getB_BuyerFunds_ID() -{ -Integer ii = (Integer)get_Value("B_BuyerFunds_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_BuyerFunds_ID */ -public static final String COLUMNNAME_B_BuyerFunds_ID = "B_BuyerFunds_ID"; -/** Set Topic. -@param B_Topic_ID Auction Topic */ -public void setB_Topic_ID (int B_Topic_ID) -{ -if (B_Topic_ID < 1) throw new IllegalArgumentException ("B_Topic_ID is mandatory."); -set_Value ("B_Topic_ID", Integer.valueOf(B_Topic_ID)); -} -/** Get Topic. -@return Auction Topic */ -public int getB_Topic_ID() -{ -Integer ii = (Integer)get_Value("B_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Topic_ID */ -public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; -/** Set Willing to commit. -@param IsWillingToCommit Willing to commit */ -public void setIsWillingToCommit (boolean IsWillingToCommit) -{ -set_Value ("IsWillingToCommit", Boolean.valueOf(IsWillingToCommit)); -} -/** Get Willing to commit. -@return Willing to commit */ -public boolean isWillingToCommit() -{ -Object oo = get_Value("IsWillingToCommit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsWillingToCommit */ -public static final String COLUMNNAME_IsWillingToCommit = "IsWillingToCommit"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Private Note. -@param PrivateNote Private Note - not visible to the other parties */ -public void setPrivateNote (String PrivateNote) -{ -if (PrivateNote != null && PrivateNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -PrivateNote = PrivateNote.substring(0,1999); -} -set_Value ("PrivateNote", PrivateNote); -} -/** Get Private Note. -@return Private Note - not visible to the other parties */ -public String getPrivateNote() -{ -return (String)get_Value("PrivateNote"); -} -/** Column name PrivateNote */ -public static final String COLUMNNAME_PrivateNote = "PrivateNote"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_Bid (Properties ctx, int B_Bid_ID, String trxName) + { + super (ctx, B_Bid_ID, trxName); + /** if (B_Bid_ID == 0) { setAD_User_ID (0); + setB_Bid_ID (0); + setB_BuyerFunds_ID (0); + setB_Topic_ID (0); + setIsWillingToCommit (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_B_Bid (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_Bid[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bid. + @param B_Bid_ID + Bid for a Topic + */ + public void setB_Bid_ID (int B_Bid_ID) + { + if (B_Bid_ID < 1) + throw new IllegalArgumentException ("B_Bid_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_Bid_ID, Integer.valueOf(B_Bid_ID)); + } + + /** Get Bid. + @return Bid for a Topic + */ + public int getB_Bid_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Bid_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_BuyerFunds getI_B_BuyerFunds() throws Exception + { + 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 e; + } + return result; + } + + /** Set Buyer Funds. + @param B_BuyerFunds_ID + Buyer Funds for Bids on Topics + */ + public void setB_BuyerFunds_ID (int B_BuyerFunds_ID) + { + if (B_BuyerFunds_ID < 1) + throw new IllegalArgumentException ("B_BuyerFunds_ID is mandatory."); + set_Value (COLUMNNAME_B_BuyerFunds_ID, Integer.valueOf(B_BuyerFunds_ID)); + } + + /** Get Buyer Funds. + @return Buyer Funds for Bids on Topics + */ + public int getB_BuyerFunds_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_BuyerFunds_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_Topic getI_B_Topic() throws Exception + { + 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 e; + } + return result; + } + + /** Set Topic. + @param B_Topic_ID + Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID) + { + if (B_Topic_ID < 1) + throw new IllegalArgumentException ("B_Topic_ID is mandatory."); + set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + } + + /** Get Topic. + @return Auction Topic + */ + public int getB_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Willing to commit. + @param IsWillingToCommit Willing to commit */ + public void setIsWillingToCommit (boolean IsWillingToCommit) + { + set_Value (COLUMNNAME_IsWillingToCommit, Boolean.valueOf(IsWillingToCommit)); + } + + /** Get Willing to commit. +@return Willing to commit */ + public boolean isWillingToCommit () + { + Object oo = get_Value(COLUMNNAME_IsWillingToCommit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Private Note. + @param PrivateNote + Private Note - not visible to the other parties + */ + public void setPrivateNote (String PrivateNote) + { + if (PrivateNote != null && PrivateNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + PrivateNote = PrivateNote.substring(0, 1999); + } + set_Value (COLUMNNAME_PrivateNote, PrivateNote); + } + + /** Get Private Note. + @return Private Note - not visible to the other parties + */ + public String getPrivateNote () + { + return (String)get_Value(COLUMNNAME_PrivateNote); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_BidComment.java b/base/src/org/compiere/model/X_B_BidComment.java index 752bbfc9e9..15f26e1ede 100644 --- a/base/src/org/compiere/model/X_B_BidComment.java +++ b/base/src/org/compiere/model/X_B_BidComment.java @@ -1,162 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_BidComment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_BidComment extends PO + +/** Generated Model for B_BidComment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_BidComment extends PO implements I_B_BidComment, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_BidComment_ID id -@param trxName transaction -*/ -public X_B_BidComment (Properties ctx, int B_BidComment_ID, String trxName) -{ -super (ctx, B_BidComment_ID, trxName); -/** if (B_BidComment_ID == 0) -{ -setAD_User_ID (0); -setB_BidComment_ID (0); -setB_Topic_ID (0); -setTextMsg (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_BidComment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_BidComment */ -public static final String Table_Name="B_BidComment"; - -/** AD_Table_ID=685 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_BidComment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Bid Comment. -@param B_BidComment_ID Make a comment to a Bid Topic */ -public void setB_BidComment_ID (int B_BidComment_ID) -{ -if (B_BidComment_ID < 1) throw new IllegalArgumentException ("B_BidComment_ID is mandatory."); -set_ValueNoCheck ("B_BidComment_ID", Integer.valueOf(B_BidComment_ID)); -} -/** Get Bid Comment. -@return Make a comment to a Bid Topic */ -public int getB_BidComment_ID() -{ -Integer ii = (Integer)get_Value("B_BidComment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_BidComment_ID */ -public static final String COLUMNNAME_B_BidComment_ID = "B_BidComment_ID"; -/** Set Topic. -@param B_Topic_ID Auction Topic */ -public void setB_Topic_ID (int B_Topic_ID) -{ -if (B_Topic_ID < 1) throw new IllegalArgumentException ("B_Topic_ID is mandatory."); -set_Value ("B_Topic_ID", Integer.valueOf(B_Topic_ID)); -} -/** Get Topic. -@return Auction Topic */ -public int getB_Topic_ID() -{ -Integer ii = (Integer)get_Value("B_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Topic_ID */ -public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg == null) throw new IllegalArgumentException ("TextMsg is mandatory."); -if (TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_BidComment (Properties ctx, int B_BidComment_ID, String trxName) + { + super (ctx, B_BidComment_ID, trxName); + /** if (B_BidComment_ID == 0) { setAD_User_ID (0); + setB_BidComment_ID (0); + setB_Topic_ID (0); + setTextMsg (null); +} */ + } + + /** Load Constructor */ + public X_B_BidComment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_BidComment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bid Comment. + @param B_BidComment_ID + Make a comment to a Bid Topic + */ + public void setB_BidComment_ID (int B_BidComment_ID) + { + if (B_BidComment_ID < 1) + throw new IllegalArgumentException ("B_BidComment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_BidComment_ID, Integer.valueOf(B_BidComment_ID)); + } + + /** Get Bid Comment. + @return Make a comment to a Bid Topic + */ + public int getB_BidComment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_BidComment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_Topic getI_B_Topic() throws Exception + { + 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 e; + } + return result; + } + + /** Set Topic. + @param B_Topic_ID + Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID) + { + if (B_Topic_ID < 1) + throw new IllegalArgumentException ("B_Topic_ID is mandatory."); + set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + } + + /** Get Topic. + @return Auction Topic + */ + public int getB_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg == null) + throw new IllegalArgumentException ("TextMsg is mandatory."); + if (TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_Buyer.java b/base/src/org/compiere/model/X_B_Buyer.java index 1183af716d..7615bd7a0d 100644 --- a/base/src/org/compiere/model/X_B_Buyer.java +++ b/base/src/org/compiere/model/X_B_Buyer.java @@ -1,167 +1,186 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_Buyer - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_Buyer extends PO + +/** Generated Model for B_Buyer + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_Buyer extends PO implements I_B_Buyer, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_Buyer_ID id -@param trxName transaction -*/ -public X_B_Buyer (Properties ctx, int B_Buyer_ID, String trxName) -{ -super (ctx, B_Buyer_ID, trxName); -/** if (B_Buyer_ID == 0) -{ -setAD_User_ID (0); -setName (null); -setValidTo (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_Buyer (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_Buyer */ -public static final String Table_Name="B_Buyer"; - -/** AD_Table_ID=684 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_Buyer[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -if (ValidTo == null) throw new IllegalArgumentException ("ValidTo is mandatory."); -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_Buyer (Properties ctx, int B_Buyer_ID, String trxName) + { + super (ctx, B_Buyer_ID, trxName); + /** if (B_Buyer_ID == 0) { setAD_User_ID (0); + setName (null); + setValidTo (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_B_Buyer (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_Buyer[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + if (ValidTo == null) + throw new IllegalArgumentException ("ValidTo is mandatory."); + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_BuyerFunds.java b/base/src/org/compiere/model/X_B_BuyerFunds.java index 892f2b78a9..6f3a416461 100644 --- a/base/src/org/compiere/model/X_B_BuyerFunds.java +++ b/base/src/org/compiere/model/X_B_BuyerFunds.java @@ -1,201 +1,232 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_BuyerFunds - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_BuyerFunds extends PO + +/** Generated Model for B_BuyerFunds + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_BuyerFunds extends PO implements I_B_BuyerFunds, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_BuyerFunds_ID id -@param trxName transaction -*/ -public X_B_BuyerFunds (Properties ctx, int B_BuyerFunds_ID, String trxName) -{ -super (ctx, B_BuyerFunds_ID, trxName); -/** if (B_BuyerFunds_ID == 0) -{ -setAD_User_ID (0); -setB_BuyerFunds_ID (0); -setCommittedAmt (Env.ZERO); -setNonCommittedAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_BuyerFunds (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_BuyerFunds */ -public static final String Table_Name="B_BuyerFunds"; - -/** AD_Table_ID=683 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_BuyerFunds[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Buyer Funds. -@param B_BuyerFunds_ID Buyer Funds for Bids on Topics */ -public void setB_BuyerFunds_ID (int B_BuyerFunds_ID) -{ -if (B_BuyerFunds_ID < 1) throw new IllegalArgumentException ("B_BuyerFunds_ID is mandatory."); -set_ValueNoCheck ("B_BuyerFunds_ID", Integer.valueOf(B_BuyerFunds_ID)); -} -/** Get Buyer Funds. -@return Buyer Funds for Bids on Topics */ -public int getB_BuyerFunds_ID() -{ -Integer ii = (Integer)get_Value("B_BuyerFunds_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_BuyerFunds_ID */ -public static final String COLUMNNAME_B_BuyerFunds_ID = "B_BuyerFunds_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_ValueNoCheck ("C_Payment_ID", null); - else -set_ValueNoCheck ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Committed Amount. -@param CommittedAmt The (legal) commitment amount */ -public void setCommittedAmt (BigDecimal CommittedAmt) -{ -if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory."); -set_Value ("CommittedAmt", CommittedAmt); -} -/** Get Committed Amount. -@return The (legal) commitment amount */ -public BigDecimal getCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedAmt */ -public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; -/** Set Not Committed Aount. -@param NonCommittedAmt Amount not committed yet */ -public void setNonCommittedAmt (BigDecimal NonCommittedAmt) -{ -if (NonCommittedAmt == null) throw new IllegalArgumentException ("NonCommittedAmt is mandatory."); -set_Value ("NonCommittedAmt", NonCommittedAmt); -} -/** Get Not Committed Aount. -@return Amount not committed yet */ -public BigDecimal getNonCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("NonCommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name NonCommittedAmt */ -public static final String COLUMNNAME_NonCommittedAmt = "NonCommittedAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_BuyerFunds (Properties ctx, int B_BuyerFunds_ID, String trxName) + { + super (ctx, B_BuyerFunds_ID, trxName); + /** if (B_BuyerFunds_ID == 0) { setAD_User_ID (0); + setB_BuyerFunds_ID (0); + setCommittedAmt (Env.ZERO); + setNonCommittedAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_B_BuyerFunds (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_BuyerFunds[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } + + /** Set Buyer Funds. + @param B_BuyerFunds_ID + Buyer Funds for Bids on Topics + */ + public void setB_BuyerFunds_ID (int B_BuyerFunds_ID) + { + if (B_BuyerFunds_ID < 1) + throw new IllegalArgumentException ("B_BuyerFunds_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_BuyerFunds_ID, Integer.valueOf(B_BuyerFunds_ID)); + } + + /** Get Buyer Funds. + @return Buyer Funds for Bids on Topics + */ + public int getB_BuyerFunds_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_BuyerFunds_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Committed Amount. + @param CommittedAmt + The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt) + { + if (CommittedAmt == null) + throw new IllegalArgumentException ("CommittedAmt is mandatory."); + set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); + } + + /** Get Committed Amount. + @return The (legal) commitment amount + */ + public BigDecimal getCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Not Committed Aount. + @param NonCommittedAmt + Amount not committed yet + */ + public void setNonCommittedAmt (BigDecimal NonCommittedAmt) + { + if (NonCommittedAmt == null) + throw new IllegalArgumentException ("NonCommittedAmt is mandatory."); + set_Value (COLUMNNAME_NonCommittedAmt, NonCommittedAmt); + } + + /** Get Not Committed Aount. + @return Amount not committed yet + */ + public BigDecimal getNonCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_NonCommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_Offer.java b/base/src/org/compiere/model/X_B_Offer.java index 3d9866d815..8f28c0d33b 100644 --- a/base/src/org/compiere/model/X_B_Offer.java +++ b/base/src/org/compiere/model/X_B_Offer.java @@ -1,245 +1,311 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_Offer - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_Offer extends PO + +/** Generated Model for B_Offer + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_Offer extends PO implements I_B_Offer, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_Offer_ID id -@param trxName transaction -*/ -public X_B_Offer (Properties ctx, int B_Offer_ID, String trxName) -{ -super (ctx, B_Offer_ID, trxName); -/** if (B_Offer_ID == 0) -{ -setAD_User_ID (0); -setB_Offer_ID (0); -setB_SellerFunds_ID (0); -setB_Topic_ID (0); -setIsWillingToCommit (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_Offer (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_Offer */ -public static final String Table_Name="B_Offer"; - -/** AD_Table_ID=682 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_Offer[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Offer. -@param B_Offer_ID Offer for a Topic */ -public void setB_Offer_ID (int B_Offer_ID) -{ -if (B_Offer_ID < 1) throw new IllegalArgumentException ("B_Offer_ID is mandatory."); -set_ValueNoCheck ("B_Offer_ID", Integer.valueOf(B_Offer_ID)); -} -/** Get Offer. -@return Offer for a Topic */ -public int getB_Offer_ID() -{ -Integer ii = (Integer)get_Value("B_Offer_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Offer_ID */ -public static final String COLUMNNAME_B_Offer_ID = "B_Offer_ID"; -/** Set Seller Funds. -@param B_SellerFunds_ID Seller Funds from Offers on Topics */ -public void setB_SellerFunds_ID (int B_SellerFunds_ID) -{ -if (B_SellerFunds_ID < 1) throw new IllegalArgumentException ("B_SellerFunds_ID is mandatory."); -set_Value ("B_SellerFunds_ID", Integer.valueOf(B_SellerFunds_ID)); -} -/** Get Seller Funds. -@return Seller Funds from Offers on Topics */ -public int getB_SellerFunds_ID() -{ -Integer ii = (Integer)get_Value("B_SellerFunds_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_SellerFunds_ID */ -public static final String COLUMNNAME_B_SellerFunds_ID = "B_SellerFunds_ID"; -/** Set Topic. -@param B_Topic_ID Auction Topic */ -public void setB_Topic_ID (int B_Topic_ID) -{ -if (B_Topic_ID < 1) throw new IllegalArgumentException ("B_Topic_ID is mandatory."); -set_Value ("B_Topic_ID", Integer.valueOf(B_Topic_ID)); -} -/** Get Topic. -@return Auction Topic */ -public int getB_Topic_ID() -{ -Integer ii = (Integer)get_Value("B_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Topic_ID */ -public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; -/** Set Willing to commit. -@param IsWillingToCommit Willing to commit */ -public void setIsWillingToCommit (boolean IsWillingToCommit) -{ -set_Value ("IsWillingToCommit", Boolean.valueOf(IsWillingToCommit)); -} -/** Get Willing to commit. -@return Willing to commit */ -public boolean isWillingToCommit() -{ -Object oo = get_Value("IsWillingToCommit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsWillingToCommit */ -public static final String COLUMNNAME_IsWillingToCommit = "IsWillingToCommit"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Private Note. -@param PrivateNote Private Note - not visible to the other parties */ -public void setPrivateNote (String PrivateNote) -{ -if (PrivateNote != null && PrivateNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -PrivateNote = PrivateNote.substring(0,1999); -} -set_Value ("PrivateNote", PrivateNote); -} -/** Get Private Note. -@return Private Note - not visible to the other parties */ -public String getPrivateNote() -{ -return (String)get_Value("PrivateNote"); -} -/** Column name PrivateNote */ -public static final String COLUMNNAME_PrivateNote = "PrivateNote"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_Offer (Properties ctx, int B_Offer_ID, String trxName) + { + super (ctx, B_Offer_ID, trxName); + /** if (B_Offer_ID == 0) { setAD_User_ID (0); + setB_Offer_ID (0); + setB_SellerFunds_ID (0); + setB_Topic_ID (0); + setIsWillingToCommit (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_B_Offer (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_Offer[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Offer. + @param B_Offer_ID + Offer for a Topic + */ + public void setB_Offer_ID (int B_Offer_ID) + { + if (B_Offer_ID < 1) + throw new IllegalArgumentException ("B_Offer_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_Offer_ID, Integer.valueOf(B_Offer_ID)); + } + + /** Get Offer. + @return Offer for a Topic + */ + public int getB_Offer_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Offer_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_SellerFunds getI_B_SellerFunds() throws Exception + { + 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 e; + } + return result; + } + + /** Set Seller Funds. + @param B_SellerFunds_ID + Seller Funds from Offers on Topics + */ + public void setB_SellerFunds_ID (int B_SellerFunds_ID) + { + if (B_SellerFunds_ID < 1) + throw new IllegalArgumentException ("B_SellerFunds_ID is mandatory."); + set_Value (COLUMNNAME_B_SellerFunds_ID, Integer.valueOf(B_SellerFunds_ID)); + } + + /** Get Seller Funds. + @return Seller Funds from Offers on Topics + */ + public int getB_SellerFunds_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_SellerFunds_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_Topic getI_B_Topic() throws Exception + { + 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 e; + } + return result; + } + + /** Set Topic. + @param B_Topic_ID + Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID) + { + if (B_Topic_ID < 1) + throw new IllegalArgumentException ("B_Topic_ID is mandatory."); + set_Value (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + } + + /** Get Topic. + @return Auction Topic + */ + public int getB_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Willing to commit. + @param IsWillingToCommit Willing to commit */ + public void setIsWillingToCommit (boolean IsWillingToCommit) + { + set_Value (COLUMNNAME_IsWillingToCommit, Boolean.valueOf(IsWillingToCommit)); + } + + /** Get Willing to commit. +@return Willing to commit */ + public boolean isWillingToCommit () + { + Object oo = get_Value(COLUMNNAME_IsWillingToCommit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Private Note. + @param PrivateNote + Private Note - not visible to the other parties + */ + public void setPrivateNote (String PrivateNote) + { + if (PrivateNote != null && PrivateNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + PrivateNote = PrivateNote.substring(0, 1999); + } + set_Value (COLUMNNAME_PrivateNote, PrivateNote); + } + + /** Get Private Note. + @return Private Note - not visible to the other parties + */ + public String getPrivateNote () + { + return (String)get_Value(COLUMNNAME_PrivateNote); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_Seller.java b/base/src/org/compiere/model/X_B_Seller.java index 3c02f18856..e35b8c7970 100644 --- a/base/src/org/compiere/model/X_B_Seller.java +++ b/base/src/org/compiere/model/X_B_Seller.java @@ -1,188 +1,211 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_Seller - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_Seller extends PO + +/** Generated Model for B_Seller + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_Seller extends PO implements I_B_Seller, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_Seller_ID id -@param trxName transaction -*/ -public X_B_Seller (Properties ctx, int B_Seller_ID, String trxName) -{ -super (ctx, B_Seller_ID, trxName); -/** if (B_Seller_ID == 0) -{ -setAD_User_ID (0); -setIsInternal (false); -setName (null); -setValidTo (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_Seller (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_Seller */ -public static final String Table_Name="B_Seller"; - -/** AD_Table_ID=681 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_Seller[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Internal. -@param IsInternal Internal Organization */ -public void setIsInternal (boolean IsInternal) -{ -set_Value ("IsInternal", Boolean.valueOf(IsInternal)); -} -/** Get Internal. -@return Internal Organization */ -public boolean isInternal() -{ -Object oo = get_Value("IsInternal"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInternal */ -public static final String COLUMNNAME_IsInternal = "IsInternal"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -if (ValidTo == null) throw new IllegalArgumentException ("ValidTo is mandatory."); -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_Seller (Properties ctx, int B_Seller_ID, String trxName) + { + super (ctx, B_Seller_ID, trxName); + /** if (B_Seller_ID == 0) { setAD_User_ID (0); + setIsInternal (false); + setName (null); + setValidTo (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_B_Seller (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_Seller[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Internal. + @param IsInternal + Internal Organization + */ + public void setIsInternal (boolean IsInternal) + { + set_Value (COLUMNNAME_IsInternal, Boolean.valueOf(IsInternal)); + } + + /** Get Internal. + @return Internal Organization + */ + public boolean isInternal () + { + Object oo = get_Value(COLUMNNAME_IsInternal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + if (ValidTo == null) + throw new IllegalArgumentException ("ValidTo is mandatory."); + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_SellerFunds.java b/base/src/org/compiere/model/X_B_SellerFunds.java index d63396a01d..48382cb31e 100644 --- a/base/src/org/compiere/model/X_B_SellerFunds.java +++ b/base/src/org/compiere/model/X_B_SellerFunds.java @@ -1,201 +1,232 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_SellerFunds - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_SellerFunds extends PO + +/** Generated Model for B_SellerFunds + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_SellerFunds extends PO implements I_B_SellerFunds, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_SellerFunds_ID id -@param trxName transaction -*/ -public X_B_SellerFunds (Properties ctx, int B_SellerFunds_ID, String trxName) -{ -super (ctx, B_SellerFunds_ID, trxName); -/** if (B_SellerFunds_ID == 0) -{ -setAD_User_ID (0); -setB_SellerFunds_ID (0); -setCommittedAmt (Env.ZERO); -setNonCommittedAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_SellerFunds (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_SellerFunds */ -public static final String Table_Name="B_SellerFunds"; - -/** AD_Table_ID=680 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_SellerFunds[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Seller Funds. -@param B_SellerFunds_ID Seller Funds from Offers on Topics */ -public void setB_SellerFunds_ID (int B_SellerFunds_ID) -{ -if (B_SellerFunds_ID < 1) throw new IllegalArgumentException ("B_SellerFunds_ID is mandatory."); -set_ValueNoCheck ("B_SellerFunds_ID", Integer.valueOf(B_SellerFunds_ID)); -} -/** Get Seller Funds. -@return Seller Funds from Offers on Topics */ -public int getB_SellerFunds_ID() -{ -Integer ii = (Integer)get_Value("B_SellerFunds_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_SellerFunds_ID */ -public static final String COLUMNNAME_B_SellerFunds_ID = "B_SellerFunds_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Committed Amount. -@param CommittedAmt The (legal) commitment amount */ -public void setCommittedAmt (BigDecimal CommittedAmt) -{ -if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory."); -set_Value ("CommittedAmt", CommittedAmt); -} -/** Get Committed Amount. -@return The (legal) commitment amount */ -public BigDecimal getCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedAmt */ -public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; -/** Set Not Committed Aount. -@param NonCommittedAmt Amount not committed yet */ -public void setNonCommittedAmt (BigDecimal NonCommittedAmt) -{ -if (NonCommittedAmt == null) throw new IllegalArgumentException ("NonCommittedAmt is mandatory."); -set_Value ("NonCommittedAmt", NonCommittedAmt); -} -/** Get Not Committed Aount. -@return Amount not committed yet */ -public BigDecimal getNonCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("NonCommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name NonCommittedAmt */ -public static final String COLUMNNAME_NonCommittedAmt = "NonCommittedAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_SellerFunds (Properties ctx, int B_SellerFunds_ID, String trxName) + { + super (ctx, B_SellerFunds_ID, trxName); + /** if (B_SellerFunds_ID == 0) { setAD_User_ID (0); + setB_SellerFunds_ID (0); + setCommittedAmt (Env.ZERO); + setNonCommittedAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_B_SellerFunds (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_SellerFunds[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } + + /** Set Seller Funds. + @param B_SellerFunds_ID + Seller Funds from Offers on Topics + */ + public void setB_SellerFunds_ID (int B_SellerFunds_ID) + { + if (B_SellerFunds_ID < 1) + throw new IllegalArgumentException ("B_SellerFunds_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_SellerFunds_ID, Integer.valueOf(B_SellerFunds_ID)); + } + + /** Get Seller Funds. + @return Seller Funds from Offers on Topics + */ + public int getB_SellerFunds_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_SellerFunds_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Committed Amount. + @param CommittedAmt + The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt) + { + if (CommittedAmt == null) + throw new IllegalArgumentException ("CommittedAmt is mandatory."); + set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); + } + + /** Get Committed Amount. + @return The (legal) commitment amount + */ + public BigDecimal getCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Not Committed Aount. + @param NonCommittedAmt + Amount not committed yet + */ + public void setNonCommittedAmt (BigDecimal NonCommittedAmt) + { + if (NonCommittedAmt == null) + throw new IllegalArgumentException ("NonCommittedAmt is mandatory."); + set_Value (COLUMNNAME_NonCommittedAmt, NonCommittedAmt); + } + + /** Get Not Committed Aount. + @return Amount not committed yet + */ + public BigDecimal getNonCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_NonCommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_Topic.java b/base/src/org/compiere/model/X_B_Topic.java index 4dfd7e4216..526350bfeb 100644 --- a/base/src/org/compiere/model/X_B_Topic.java +++ b/base/src/org/compiere/model/X_B_Topic.java @@ -1,366 +1,426 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_Topic - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_Topic extends PO + +/** Generated Model for B_Topic + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_Topic extends PO implements I_B_Topic, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_Topic_ID id -@param trxName transaction -*/ -public X_B_Topic (Properties ctx, int B_Topic_ID, String trxName) -{ -super (ctx, B_Topic_ID, trxName); -/** if (B_Topic_ID == 0) -{ -setB_TopicCategory_ID (0); -setB_TopicType_ID (0); -setB_Topic_ID (0); -setDecisionDate (new Timestamp(System.currentTimeMillis())); -setDocumentNo (null); -setIsPublished (false); -setName (null); -setProcessed (false); -setTopicAction (null); -setTopicStatus (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_Topic (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_Topic */ -public static final String Table_Name="B_Topic"; - -/** AD_Table_ID=679 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_Topic[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Topic Category. -@param B_TopicCategory_ID Auction Topic Category */ -public void setB_TopicCategory_ID (int B_TopicCategory_ID) -{ -if (B_TopicCategory_ID < 1) throw new IllegalArgumentException ("B_TopicCategory_ID is mandatory."); -set_ValueNoCheck ("B_TopicCategory_ID", Integer.valueOf(B_TopicCategory_ID)); -} -/** Get Topic Category. -@return Auction Topic Category */ -public int getB_TopicCategory_ID() -{ -Integer ii = (Integer)get_Value("B_TopicCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_TopicCategory_ID */ -public static final String COLUMNNAME_B_TopicCategory_ID = "B_TopicCategory_ID"; -/** Set Topic Type. -@param B_TopicType_ID Auction Topic Type */ -public void setB_TopicType_ID (int B_TopicType_ID) -{ -if (B_TopicType_ID < 1) throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); -set_ValueNoCheck ("B_TopicType_ID", Integer.valueOf(B_TopicType_ID)); -} -/** Get Topic Type. -@return Auction Topic Type */ -public int getB_TopicType_ID() -{ -Integer ii = (Integer)get_Value("B_TopicType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_TopicType_ID */ -public static final String COLUMNNAME_B_TopicType_ID = "B_TopicType_ID"; -/** Set Topic. -@param B_Topic_ID Auction Topic */ -public void setB_Topic_ID (int B_Topic_ID) -{ -if (B_Topic_ID < 1) throw new IllegalArgumentException ("B_Topic_ID is mandatory."); -set_ValueNoCheck ("B_Topic_ID", Integer.valueOf(B_Topic_ID)); -} -/** Get Topic. -@return Auction Topic */ -public int getB_Topic_ID() -{ -Integer ii = (Integer)get_Value("B_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Topic_ID */ -public static final String COLUMNNAME_B_Topic_ID = "B_Topic_ID"; -/** Set Decision date. -@param DecisionDate Decision date */ -public void setDecisionDate (Timestamp DecisionDate) -{ -if (DecisionDate == null) throw new IllegalArgumentException ("DecisionDate is mandatory."); -set_Value ("DecisionDate", DecisionDate); -} -/** Get Decision date. -@return Decision date */ -public Timestamp getDecisionDate() -{ -return (Timestamp)get_Value("DecisionDate"); -} -/** Column name DecisionDate */ -public static final String COLUMNNAME_DecisionDate = "DecisionDate"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Published. -@param IsPublished The Topic is published and can be viewed */ -public void setIsPublished (boolean IsPublished) -{ -set_Value ("IsPublished", Boolean.valueOf(IsPublished)); -} -/** Get Published. -@return The Topic is published and can be viewed */ -public boolean isPublished() -{ -Object oo = get_Value("IsPublished"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublished */ -public static final String COLUMNNAME_IsPublished = "IsPublished"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Details. -@param TextDetails Details */ -public void setTextDetails (String TextDetails) -{ -if (TextDetails != null && TextDetails.length() > 4000) -{ -log.warning("Length > 4000 - truncated"); -TextDetails = TextDetails.substring(0,3999); -} -set_Value ("TextDetails", TextDetails); -} -/** Get Details. -@return Details */ -public String getTextDetails() -{ -return (String)get_Value("TextDetails"); -} -/** Column name TextDetails */ -public static final String COLUMNNAME_TextDetails = "TextDetails"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -/** Set Topic Action. -@param TopicAction Topic Action */ -public void setTopicAction (String TopicAction) -{ -if (TopicAction == null) throw new IllegalArgumentException ("TopicAction is mandatory."); -if (TopicAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -TopicAction = TopicAction.substring(0,1); -} -set_Value ("TopicAction", TopicAction); -} -/** Get Topic Action. -@return Topic Action */ -public String getTopicAction() -{ -return (String)get_Value("TopicAction"); -} -/** Column name TopicAction */ -public static final String COLUMNNAME_TopicAction = "TopicAction"; -/** Set Topic Status. -@param TopicStatus Topic Status */ -public void setTopicStatus (String TopicStatus) -{ -if (TopicStatus == null) throw new IllegalArgumentException ("TopicStatus is mandatory."); -if (TopicStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -TopicStatus = TopicStatus.substring(0,1); -} -set_Value ("TopicStatus", TopicStatus); -} -/** Get Topic Status. -@return Topic Status */ -public String getTopicStatus() -{ -return (String)get_Value("TopicStatus"); -} -/** Column name TopicStatus */ -public static final String COLUMNNAME_TopicStatus = "TopicStatus"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_Topic (Properties ctx, int B_Topic_ID, String trxName) + { + super (ctx, B_Topic_ID, trxName); + /** if (B_Topic_ID == 0) { setB_TopicCategory_ID (0); + setB_TopicType_ID (0); + setB_Topic_ID (0); + setDecisionDate (new Timestamp(System.currentTimeMillis())); + setDocumentNo (null); + setIsPublished (false); + setName (null); + setProcessed (false); + setTopicAction (null); + setTopicStatus (null); +} */ + } + + /** Load Constructor */ + public X_B_Topic (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_Topic[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_B_TopicCategory getI_B_TopicCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Topic Category. + @param B_TopicCategory_ID + Auction Topic Category + */ + public void setB_TopicCategory_ID (int B_TopicCategory_ID) + { + if (B_TopicCategory_ID < 1) + throw new IllegalArgumentException ("B_TopicCategory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, Integer.valueOf(B_TopicCategory_ID)); + } + + /** Get Topic Category. + @return Auction Topic Category + */ + public int getB_TopicCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_TopicCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_TopicType getI_B_TopicType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Topic Type. + @param B_TopicType_ID + Auction Topic Type + */ + public void setB_TopicType_ID (int B_TopicType_ID) + { + if (B_TopicType_ID < 1) + throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); + } + + /** Get Topic Type. + @return Auction Topic Type + */ + public int getB_TopicType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_TopicType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Topic. + @param B_Topic_ID + Auction Topic + */ + public void setB_Topic_ID (int B_Topic_ID) + { + if (B_Topic_ID < 1) + throw new IllegalArgumentException ("B_Topic_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_Topic_ID, Integer.valueOf(B_Topic_ID)); + } + + /** Get Topic. + @return Auction Topic + */ + public int getB_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Decision date. + @param DecisionDate Decision date */ + public void setDecisionDate (Timestamp DecisionDate) + { + if (DecisionDate == null) + throw new IllegalArgumentException ("DecisionDate is mandatory."); + set_Value (COLUMNNAME_DecisionDate, DecisionDate); + } + + /** Get Decision date. +@return Decision date */ + public Timestamp getDecisionDate () + { + return (Timestamp)get_Value(COLUMNNAME_DecisionDate); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set Published. + @param IsPublished + The Topic is published and can be viewed + */ + public void setIsPublished (boolean IsPublished) + { + set_Value (COLUMNNAME_IsPublished, Boolean.valueOf(IsPublished)); + } + + /** Get Published. + @return The Topic is published and can be viewed + */ + public boolean isPublished () + { + Object oo = get_Value(COLUMNNAME_IsPublished); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Details. + @param TextDetails Details */ + public void setTextDetails (String TextDetails) + { + if (TextDetails != null && TextDetails.length() > 4000) + { + log.warning("Length > 4000 - truncated"); + TextDetails = TextDetails.substring(0, 3999); + } + set_Value (COLUMNNAME_TextDetails, TextDetails); + } + + /** Get Details. +@return Details */ + public String getTextDetails () + { + return (String)get_Value(COLUMNNAME_TextDetails); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } + + /** Set Topic Action. + @param TopicAction Topic Action */ + public void setTopicAction (String TopicAction) + { + if (TopicAction == null) + throw new IllegalArgumentException ("TopicAction is mandatory."); + if (TopicAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + TopicAction = TopicAction.substring(0, 1); + } + set_Value (COLUMNNAME_TopicAction, TopicAction); + } + + /** Get Topic Action. +@return Topic Action */ + public String getTopicAction () + { + return (String)get_Value(COLUMNNAME_TopicAction); + } + + /** Set Topic Status. + @param TopicStatus Topic Status */ + public void setTopicStatus (String TopicStatus) + { + if (TopicStatus == null) + throw new IllegalArgumentException ("TopicStatus is mandatory."); + if (TopicStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + TopicStatus = TopicStatus.substring(0, 1); + } + set_Value (COLUMNNAME_TopicStatus, TopicStatus); + } + + /** Get Topic Status. +@return Topic Status */ + public String getTopicStatus () + { + return (String)get_Value(COLUMNNAME_TopicStatus); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_TopicCategory.java b/base/src/org/compiere/model/X_B_TopicCategory.java index 925edb3329..52ea31602b 100644 --- a/base/src/org/compiere/model/X_B_TopicCategory.java +++ b/base/src/org/compiere/model/X_B_TopicCategory.java @@ -1,169 +1,189 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_TopicCategory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_TopicCategory extends PO + +/** Generated Model for B_TopicCategory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_TopicCategory extends PO implements I_B_TopicCategory, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_TopicCategory_ID id -@param trxName transaction -*/ -public X_B_TopicCategory (Properties ctx, int B_TopicCategory_ID, String trxName) -{ -super (ctx, B_TopicCategory_ID, trxName); -/** if (B_TopicCategory_ID == 0) -{ -setB_TopicCategory_ID (0); -setB_TopicType_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_TopicCategory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_TopicCategory */ -public static final String Table_Name="B_TopicCategory"; - -/** AD_Table_ID=691 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_TopicCategory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Topic Category. -@param B_TopicCategory_ID Auction Topic Category */ -public void setB_TopicCategory_ID (int B_TopicCategory_ID) -{ -if (B_TopicCategory_ID < 1) throw new IllegalArgumentException ("B_TopicCategory_ID is mandatory."); -set_ValueNoCheck ("B_TopicCategory_ID", Integer.valueOf(B_TopicCategory_ID)); -} -/** Get Topic Category. -@return Auction Topic Category */ -public int getB_TopicCategory_ID() -{ -Integer ii = (Integer)get_Value("B_TopicCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_TopicCategory_ID */ -public static final String COLUMNNAME_B_TopicCategory_ID = "B_TopicCategory_ID"; -/** Set Topic Type. -@param B_TopicType_ID Auction Topic Type */ -public void setB_TopicType_ID (int B_TopicType_ID) -{ -if (B_TopicType_ID < 1) throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); -set_ValueNoCheck ("B_TopicType_ID", Integer.valueOf(B_TopicType_ID)); -} -/** Get Topic Type. -@return Auction Topic Type */ -public int getB_TopicType_ID() -{ -Integer ii = (Integer)get_Value("B_TopicType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_TopicType_ID */ -public static final String COLUMNNAME_B_TopicType_ID = "B_TopicType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_TopicCategory (Properties ctx, int B_TopicCategory_ID, String trxName) + { + super (ctx, B_TopicCategory_ID, trxName); + /** if (B_TopicCategory_ID == 0) { setB_TopicCategory_ID (0); + setB_TopicType_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_B_TopicCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_TopicCategory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Topic Category. + @param B_TopicCategory_ID + Auction Topic Category + */ + public void setB_TopicCategory_ID (int B_TopicCategory_ID) + { + if (B_TopicCategory_ID < 1) + throw new IllegalArgumentException ("B_TopicCategory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_TopicCategory_ID, Integer.valueOf(B_TopicCategory_ID)); + } + + /** Get Topic Category. + @return Auction Topic Category + */ + public int getB_TopicCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_TopicCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_B_TopicType getI_B_TopicType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Topic Type. + @param B_TopicType_ID + Auction Topic Type + */ + public void setB_TopicType_ID (int B_TopicType_ID) + { + if (B_TopicType_ID < 1) + throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); + } + + /** Get Topic Type. + @return Auction Topic Type + */ + public int getB_TopicType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_TopicType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_B_TopicType.java b/base/src/org/compiere/model/X_B_TopicType.java index 427f6dec0d..965e39de4d 100644 --- a/base/src/org/compiere/model/X_B_TopicType.java +++ b/base/src/org/compiere/model/X_B_TopicType.java @@ -1,248 +1,281 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for B_TopicType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_B_TopicType extends PO + +/** Generated Model for B_TopicType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_B_TopicType extends PO implements I_B_TopicType, I_Persistent { -/** Standard Constructor -@param ctx context -@param B_TopicType_ID id -@param trxName transaction -*/ -public X_B_TopicType (Properties ctx, int B_TopicType_ID, String trxName) -{ -super (ctx, B_TopicType_ID, trxName); -/** if (B_TopicType_ID == 0) -{ -setAuctionType (null); -setB_TopicType_ID (0); -setM_PriceList_ID (0); -setM_ProductMember_ID (0); -setM_Product_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_B_TopicType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=B_TopicType */ -public static final String Table_Name="B_TopicType"; - -/** AD_Table_ID=690 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_B_TopicType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Auction Type. -@param AuctionType Auction Type */ -public void setAuctionType (String AuctionType) -{ -if (AuctionType == null) throw new IllegalArgumentException ("AuctionType is mandatory."); -if (AuctionType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AuctionType = AuctionType.substring(0,0); -} -set_Value ("AuctionType", AuctionType); -} -/** Get Auction Type. -@return Auction Type */ -public String getAuctionType() -{ -return (String)get_Value("AuctionType"); -} -/** Column name AuctionType */ -public static final String COLUMNNAME_AuctionType = "AuctionType"; -/** Set Topic Type. -@param B_TopicType_ID Auction Topic Type */ -public void setB_TopicType_ID (int B_TopicType_ID) -{ -if (B_TopicType_ID < 1) throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); -set_ValueNoCheck ("B_TopicType_ID", Integer.valueOf(B_TopicType_ID)); -} -/** Get Topic Type. -@return Auction Topic Type */ -public int getB_TopicType_ID() -{ -Integer ii = (Integer)get_Value("B_TopicType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_TopicType_ID */ -public static final String COLUMNNAME_B_TopicType_ID = "B_TopicType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_B_TopicType (Properties ctx, int B_TopicType_ID, String trxName) + { + super (ctx, B_TopicType_ID, trxName); + /** if (B_TopicType_ID == 0) { setAuctionType (null); + setB_TopicType_ID (0); + setM_PriceList_ID (0); + setM_ProductMember_ID (0); + setM_Product_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_B_TopicType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_B_TopicType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Auction Type. + @param AuctionType Auction Type */ + public void setAuctionType (String AuctionType) + { + if (AuctionType == null) + throw new IllegalArgumentException ("AuctionType is mandatory."); + if (AuctionType.length() > 1) + { + log.warning("Length > 1 - truncated"); + AuctionType = AuctionType.substring(0, 0); + } + set_Value (COLUMNNAME_AuctionType, AuctionType); + } + + /** Get Auction Type. +@return Auction Type */ + public String getAuctionType () + { + return (String)get_Value(COLUMNNAME_AuctionType); + } + + /** Set Topic Type. + @param B_TopicType_ID + Auction Topic Type + */ + public void setB_TopicType_ID (int B_TopicType_ID) + { + if (B_TopicType_ID < 1) + throw new IllegalArgumentException ("B_TopicType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_B_TopicType_ID, Integer.valueOf(B_TopicType_ID)); + } + + /** Get Topic Type. + @return Auction Topic Type + */ + public int getB_TopicType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_TopicType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_ProductMember_ID AD_Reference_ID=162 */ public static final int M_PRODUCTMEMBER_ID_AD_Reference_ID=162; -/** Set Membership. -@param M_ProductMember_ID Product used to deternine the price of the membership for the topic type */ -public void setM_ProductMember_ID (int M_ProductMember_ID) -{ -if (M_ProductMember_ID < 1) throw new IllegalArgumentException ("M_ProductMember_ID is mandatory."); -set_Value ("M_ProductMember_ID", Integer.valueOf(M_ProductMember_ID)); -} -/** Get Membership. -@return Product used to deternine the price of the membership for the topic type */ -public int getM_ProductMember_ID() -{ -Integer ii = (Integer)get_Value("M_ProductMember_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductMember_ID */ -public static final String COLUMNNAME_M_ProductMember_ID = "M_ProductMember_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Membership. + @param M_ProductMember_ID + Product used to deternine the price of the membership for the topic type + */ + public void setM_ProductMember_ID (int M_ProductMember_ID) + { + if (M_ProductMember_ID < 1) + throw new IllegalArgumentException ("M_ProductMember_ID is mandatory."); + set_Value (COLUMNNAME_M_ProductMember_ID, Integer.valueOf(M_ProductMember_ID)); + } + + /** Get Membership. + @return Product used to deternine the price of the membership for the topic type + */ + public int getM_ProductMember_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductMember_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessContainer.java b/base/src/org/compiere/model/X_CM_AccessContainer.java index 5c6190d5cf..1657d87408 100644 --- a/base/src/org/compiere/model/X_CM_AccessContainer.java +++ b/base/src/org/compiere/model/X_CM_AccessContainer.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessContainer - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessContainer extends PO + +/** Generated Model for CM_AccessContainer + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessContainer extends PO implements I_CM_AccessContainer, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessContainer_ID id -@param trxName transaction -*/ -public X_CM_AccessContainer (Properties ctx, int CM_AccessContainer_ID, String trxName) -{ -super (ctx, CM_AccessContainer_ID, trxName); -/** if (CM_AccessContainer_ID == 0) -{ -setCM_AccessProfile_ID (0); -setCM_Container_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessContainer (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessContainer */ -public static final String Table_Name="CM_AccessContainer"; - -/** AD_Table_ID=888 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessContainer[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -/** Set Web Container. -@param CM_Container_ID Web Container contains content like images, text etc. */ -public void setCM_Container_ID (int CM_Container_ID) -{ -if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory."); -set_ValueNoCheck ("CM_Container_ID", Integer.valueOf(CM_Container_ID)); -} -/** Get Web Container. -@return Web Container contains content like images, text etc. */ -public int getCM_Container_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_ID */ -public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessContainer (Properties ctx, int CM_AccessContainer_ID, String trxName) + { + super (ctx, CM_AccessContainer_ID, trxName); + /** if (CM_AccessContainer_ID == 0) { setCM_AccessProfile_ID (0); + setCM_Container_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_AccessContainer (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessContainer[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Container getI_CM_Container() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container. + @param CM_Container_ID + Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID) + { + if (CM_Container_ID < 1) + throw new IllegalArgumentException ("CM_Container_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + } + + /** Get Web Container. + @return Web Container contains content like images, text etc. + */ + public int getCM_Container_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessListBPGroup.java b/base/src/org/compiere/model/X_CM_AccessListBPGroup.java index cd57ff0b64..fc4c5538ba 100644 --- a/base/src/org/compiere/model/X_CM_AccessListBPGroup.java +++ b/base/src/org/compiere/model/X_CM_AccessListBPGroup.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessListBPGroup - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessListBPGroup extends PO + +/** Generated Model for CM_AccessListBPGroup + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessListBPGroup extends PO implements I_CM_AccessListBPGroup, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessListBPGroup_ID id -@param trxName transaction -*/ -public X_CM_AccessListBPGroup (Properties ctx, int CM_AccessListBPGroup_ID, String trxName) -{ -super (ctx, CM_AccessListBPGroup_ID, trxName); -/** if (CM_AccessListBPGroup_ID == 0) -{ -setCM_AccessProfile_ID (0); -setC_BP_Group_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessListBPGroup (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessListBPGroup */ -public static final String Table_Name="CM_AccessListBPGroup"; - -/** AD_Table_ID=886 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessListBPGroup[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID < 1) throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); -set_ValueNoCheck ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessListBPGroup (Properties ctx, int CM_AccessListBPGroup_ID, String trxName) + { + super (ctx, CM_AccessListBPGroup_ID, trxName); + /** if (CM_AccessListBPGroup_ID == 0) { setCM_AccessProfile_ID (0); + setC_BP_Group_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_AccessListBPGroup (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessListBPGroup[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessListRole.java b/base/src/org/compiere/model/X_CM_AccessListRole.java index aefc6e2669..04310fe9ab 100644 --- a/base/src/org/compiere/model/X_CM_AccessListRole.java +++ b/base/src/org/compiere/model/X_CM_AccessListRole.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessListRole - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessListRole extends PO + +/** Generated Model for CM_AccessListRole + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessListRole extends PO implements I_CM_AccessListRole, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessListRole_ID id -@param trxName transaction -*/ -public X_CM_AccessListRole (Properties ctx, int CM_AccessListRole_ID, String trxName) -{ -super (ctx, CM_AccessListRole_ID, trxName); -/** if (CM_AccessListRole_ID == 0) -{ -setAD_Role_ID (0); -setCM_AccessProfile_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessListRole (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessListRole */ -public static final String Table_Name="CM_AccessListRole"; - -/** AD_Table_ID=887 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessListRole[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID < 0) throw new IllegalArgumentException ("AD_Role_ID is mandatory."); -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessListRole (Properties ctx, int CM_AccessListRole_ID, String trxName) + { + super (ctx, CM_AccessListRole_ID, trxName); + /** if (CM_AccessListRole_ID == 0) { setAD_Role_ID (0); + setCM_AccessProfile_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_AccessListRole (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessListRole[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessMedia.java b/base/src/org/compiere/model/X_CM_AccessMedia.java index 11024c408b..eb17eaabfb 100644 --- a/base/src/org/compiere/model/X_CM_AccessMedia.java +++ b/base/src/org/compiere/model/X_CM_AccessMedia.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessMedia - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessMedia extends PO + +/** Generated Model for CM_AccessMedia + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessMedia extends PO implements I_CM_AccessMedia, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessMedia_ID id -@param trxName transaction -*/ -public X_CM_AccessMedia (Properties ctx, int CM_AccessMedia_ID, String trxName) -{ -super (ctx, CM_AccessMedia_ID, trxName); -/** if (CM_AccessMedia_ID == 0) -{ -setCM_AccessProfile_ID (0); -setCM_Media_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessMedia (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessMedia */ -public static final String Table_Name="CM_AccessMedia"; - -/** AD_Table_ID=890 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessMedia[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -/** Set Media Item. -@param CM_Media_ID Contains media content like images, flash movies etc. */ -public void setCM_Media_ID (int CM_Media_ID) -{ -if (CM_Media_ID < 1) throw new IllegalArgumentException ("CM_Media_ID is mandatory."); -set_ValueNoCheck ("CM_Media_ID", Integer.valueOf(CM_Media_ID)); -} -/** Get Media Item. -@return Contains media content like images, flash movies etc. */ -public int getCM_Media_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_ID */ -public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessMedia (Properties ctx, int CM_AccessMedia_ID, String trxName) + { + super (ctx, CM_AccessMedia_ID, trxName); + /** if (CM_AccessMedia_ID == 0) { setCM_AccessProfile_ID (0); + setCM_Media_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_AccessMedia (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessMedia[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Media getI_CM_Media() throws Exception + { + 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 e; + } + return result; + } + + /** Set Media Item. + @param CM_Media_ID + Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID) + { + if (CM_Media_ID < 1) + throw new IllegalArgumentException ("CM_Media_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + } + + /** Get Media Item. + @return Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessNewsChannel.java b/base/src/org/compiere/model/X_CM_AccessNewsChannel.java index ab71d6047c..8aba20edb6 100644 --- a/base/src/org/compiere/model/X_CM_AccessNewsChannel.java +++ b/base/src/org/compiere/model/X_CM_AccessNewsChannel.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessNewsChannel - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessNewsChannel extends PO + +/** Generated Model for CM_AccessNewsChannel + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessNewsChannel extends PO implements I_CM_AccessNewsChannel, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessNewsChannel_ID id -@param trxName transaction -*/ -public X_CM_AccessNewsChannel (Properties ctx, int CM_AccessNewsChannel_ID, String trxName) -{ -super (ctx, CM_AccessNewsChannel_ID, trxName); -/** if (CM_AccessNewsChannel_ID == 0) -{ -setCM_AccessProfile_ID (0); -setCM_NewsChannel_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessNewsChannel (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessNewsChannel */ -public static final String Table_Name="CM_AccessNewsChannel"; - -/** AD_Table_ID=891 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessNewsChannel[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -/** Set News Channel. -@param CM_NewsChannel_ID News channel for rss feed */ -public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) -{ -if (CM_NewsChannel_ID < 1) throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); -set_ValueNoCheck ("CM_NewsChannel_ID", Integer.valueOf(CM_NewsChannel_ID)); -} -/** Get News Channel. -@return News channel for rss feed */ -public int getCM_NewsChannel_ID() -{ -Integer ii = (Integer)get_Value("CM_NewsChannel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_NewsChannel_ID */ -public static final String COLUMNNAME_CM_NewsChannel_ID = "CM_NewsChannel_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessNewsChannel (Properties ctx, int CM_AccessNewsChannel_ID, String trxName) + { + super (ctx, CM_AccessNewsChannel_ID, trxName); + /** if (CM_AccessNewsChannel_ID == 0) { setCM_AccessProfile_ID (0); + setCM_NewsChannel_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_AccessNewsChannel (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessNewsChannel[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_NewsChannel getI_CM_NewsChannel() throws Exception + { + 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 e; + } + return result; + } + + /** Set News Channel. + @param CM_NewsChannel_ID + News channel for rss feed + */ + public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) + { + if (CM_NewsChannel_ID < 1) + throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); + } + + /** Get News Channel. + @return News channel for rss feed + */ + public int getCM_NewsChannel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_NewsChannel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessProfile.java b/base/src/org/compiere/model/X_CM_AccessProfile.java index a32a12df8f..239e4597c3 100644 --- a/base/src/org/compiere/model/X_CM_AccessProfile.java +++ b/base/src/org/compiere/model/X_CM_AccessProfile.java @@ -1,191 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessProfile - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessProfile extends PO + +/** Generated Model for CM_AccessProfile + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessProfile extends PO implements I_CM_AccessProfile, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessProfile_ID id -@param trxName transaction -*/ -public X_CM_AccessProfile (Properties ctx, int CM_AccessProfile_ID, String trxName) -{ -super (ctx, CM_AccessProfile_ID, trxName); -/** if (CM_AccessProfile_ID == 0) -{ -setCM_AccessProfile_ID (0); -setIsExclude (true); // Y -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessProfile (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessProfile */ -public static final String Table_Name="CM_AccessProfile"; - -/** AD_Table_ID=885 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessProfile[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Exclude. -@param IsExclude Exclude access to the data - if not selected Include access to the data */ -public void setIsExclude (boolean IsExclude) -{ -set_Value ("IsExclude", Boolean.valueOf(IsExclude)); -} -/** Get Exclude. -@return Exclude access to the data - if not selected Include access to the data */ -public boolean isExclude() -{ -Object oo = get_Value("IsExclude"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsExclude */ -public static final String COLUMNNAME_IsExclude = "IsExclude"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessProfile (Properties ctx, int CM_AccessProfile_ID, String trxName) + { + super (ctx, CM_AccessProfile_ID, trxName); + /** if (CM_AccessProfile_ID == 0) { setCM_AccessProfile_ID (0); + setIsExclude (true); +// Y + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_AccessProfile (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessProfile[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Exclude. + @param IsExclude + Exclude access to the data - if not selected Include access to the data + */ + public void setIsExclude (boolean IsExclude) + { + set_Value (COLUMNNAME_IsExclude, Boolean.valueOf(IsExclude)); + } + + /** Get Exclude. + @return Exclude access to the data - if not selected Include access to the data + */ + public boolean isExclude () + { + Object oo = get_Value(COLUMNNAME_IsExclude); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_AccessStage.java b/base/src/org/compiere/model/X_CM_AccessStage.java index ce46bc40cb..95627165de 100644 --- a/base/src/org/compiere/model/X_CM_AccessStage.java +++ b/base/src/org/compiere/model/X_CM_AccessStage.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_AccessStage - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_AccessStage extends PO + +/** Generated Model for CM_AccessStage + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_AccessStage extends PO implements I_CM_AccessStage, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_AccessStage_ID id -@param trxName transaction -*/ -public X_CM_AccessStage (Properties ctx, int CM_AccessStage_ID, String trxName) -{ -super (ctx, CM_AccessStage_ID, trxName); -/** if (CM_AccessStage_ID == 0) -{ -setCM_AccessProfile_ID (0); -setCM_CStage_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_AccessStage (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_AccessStage */ -public static final String Table_Name="CM_AccessStage"; - -/** AD_Table_ID=889 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_AccessStage[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Access Profile. -@param CM_AccessProfile_ID Web Access Profile */ -public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) -{ -if (CM_AccessProfile_ID < 1) throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); -set_ValueNoCheck ("CM_AccessProfile_ID", Integer.valueOf(CM_AccessProfile_ID)); -} -/** Get Web Access Profile. -@return Web Access Profile */ -public int getCM_AccessProfile_ID() -{ -Integer ii = (Integer)get_Value("CM_AccessProfile_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_AccessProfile_ID */ -public static final String COLUMNNAME_CM_AccessProfile_ID = "CM_AccessProfile_ID"; -/** Set Web Container Stage. -@param CM_CStage_ID Web Container Stage contains the staging content like images, text etc. */ -public void setCM_CStage_ID (int CM_CStage_ID) -{ -if (CM_CStage_ID < 1) throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); -set_ValueNoCheck ("CM_CStage_ID", Integer.valueOf(CM_CStage_ID)); -} -/** Get Web Container Stage. -@return Web Container Stage contains the staging content like images, text etc. */ -public int getCM_CStage_ID() -{ -Integer ii = (Integer)get_Value("CM_CStage_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStage_ID */ -public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_AccessStage (Properties ctx, int CM_AccessStage_ID, String trxName) + { + super (ctx, CM_AccessStage_ID, trxName); + /** if (CM_AccessStage_ID == 0) { setCM_AccessProfile_ID (0); + setCM_CStage_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_AccessStage (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_AccessStage[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_AccessProfile getI_CM_AccessProfile() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Access Profile. + @param CM_AccessProfile_ID + Web Access Profile + */ + public void setCM_AccessProfile_ID (int CM_AccessProfile_ID) + { + if (CM_AccessProfile_ID < 1) + throw new IllegalArgumentException ("CM_AccessProfile_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_AccessProfile_ID, Integer.valueOf(CM_AccessProfile_ID)); + } + + /** Get Web Access Profile. + @return Web Access Profile + */ + public int getCM_AccessProfile_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_CStage getI_CM_CStage() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container Stage. + @param CM_CStage_ID + Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID) + { + if (CM_CStage_ID < 1) + throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + } + + /** Get Web Container Stage. + @return Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStage_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_Ad.java b/base/src/org/compiere/model/X_CM_Ad.java index fe24821014..120859e0b5 100644 --- a/base/src/org/compiere/model/X_CM_Ad.java +++ b/base/src/org/compiere/model/X_CM_Ad.java @@ -1,422 +1,511 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Ad - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Ad extends PO + +/** Generated Model for CM_Ad + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Ad extends PO implements I_CM_Ad, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Ad_ID id -@param trxName transaction -*/ -public X_CM_Ad (Properties ctx, int CM_Ad_ID, String trxName) -{ -super (ctx, CM_Ad_ID, trxName); -/** if (CM_Ad_ID == 0) -{ -setActualClick (0); -setActualImpression (0); -setCM_Ad_Cat_ID (0); -setCM_Ad_ID (0); -setCM_Media_ID (0); -setIsAdFlag (false); -setIsLogged (false); -setMaxClick (0); -setMaxImpression (0); -setName (null); -setStartDate (new Timestamp(System.currentTimeMillis())); -setStartImpression (0); -setTarget_Frame (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Ad (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Ad */ -public static final String Table_Name="CM_Ad"; - -/** AD_Table_ID=858 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Ad[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Actual Click Count. -@param ActualClick How many clicks have been counted */ -public void setActualClick (int ActualClick) -{ -set_Value ("ActualClick", Integer.valueOf(ActualClick)); -} -/** Get Actual Click Count. -@return How many clicks have been counted */ -public int getActualClick() -{ -Integer ii = (Integer)get_Value("ActualClick"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ActualClick */ -public static final String COLUMNNAME_ActualClick = "ActualClick"; -/** Set Actual Impression Count. -@param ActualImpression How many impressions have been counted */ -public void setActualImpression (int ActualImpression) -{ -set_Value ("ActualImpression", Integer.valueOf(ActualImpression)); -} -/** Get Actual Impression Count. -@return How many impressions have been counted */ -public int getActualImpression() -{ -Integer ii = (Integer)get_Value("ActualImpression"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ActualImpression */ -public static final String COLUMNNAME_ActualImpression = "ActualImpression"; -/** Set Advertisement Category. -@param CM_Ad_Cat_ID Advertisement Category like Banner Homepage */ -public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) -{ -if (CM_Ad_Cat_ID < 1) throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); -set_ValueNoCheck ("CM_Ad_Cat_ID", Integer.valueOf(CM_Ad_Cat_ID)); -} -/** Get Advertisement Category. -@return Advertisement Category like Banner Homepage */ -public int getCM_Ad_Cat_ID() -{ -Integer ii = (Integer)get_Value("CM_Ad_Cat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Ad_Cat_ID */ -public static final String COLUMNNAME_CM_Ad_Cat_ID = "CM_Ad_Cat_ID"; -/** Set Advertisement. -@param CM_Ad_ID An Advertisement is something like a banner */ -public void setCM_Ad_ID (int CM_Ad_ID) -{ -if (CM_Ad_ID < 1) throw new IllegalArgumentException ("CM_Ad_ID is mandatory."); -set_ValueNoCheck ("CM_Ad_ID", Integer.valueOf(CM_Ad_ID)); -} -/** Get Advertisement. -@return An Advertisement is something like a banner */ -public int getCM_Ad_ID() -{ -Integer ii = (Integer)get_Value("CM_Ad_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Ad_ID */ -public static final String COLUMNNAME_CM_Ad_ID = "CM_Ad_ID"; -/** Set Media Item. -@param CM_Media_ID Contains media content like images, flash movies etc. */ -public void setCM_Media_ID (int CM_Media_ID) -{ -if (CM_Media_ID < 1) throw new IllegalArgumentException ("CM_Media_ID is mandatory."); -set_Value ("CM_Media_ID", Integer.valueOf(CM_Media_ID)); -} -/** Get Media Item. -@return Contains media content like images, flash movies etc. */ -public int getCM_Media_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_ID */ -public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; -/** Set Content HTML. -@param ContentHTML Contains the content itself */ -public void setContentHTML (String ContentHTML) -{ -if (ContentHTML != null && ContentHTML.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ContentHTML = ContentHTML.substring(0,1999); -} -set_Value ("ContentHTML", ContentHTML); -} -/** Get Content HTML. -@return Contains the content itself */ -public String getContentHTML() -{ -return (String)get_Value("ContentHTML"); -} -/** Column name ContentHTML */ -public static final String COLUMNNAME_ContentHTML = "ContentHTML"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set End Date. -@param EndDate Last effective date (inclusive) */ -public void setEndDate (Timestamp EndDate) -{ -set_Value ("EndDate", EndDate); -} -/** Get End Date. -@return Last effective date (inclusive) */ -public Timestamp getEndDate() -{ -return (Timestamp)get_Value("EndDate"); -} -/** Column name EndDate */ -public static final String COLUMNNAME_EndDate = "EndDate"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Special AD Flag. -@param IsAdFlag Do we need to specially mention this ad? */ -public void setIsAdFlag (boolean IsAdFlag) -{ -set_Value ("IsAdFlag", Boolean.valueOf(IsAdFlag)); -} -/** Get Special AD Flag. -@return Do we need to specially mention this ad? */ -public boolean isAdFlag() -{ -Object oo = get_Value("IsAdFlag"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAdFlag */ -public static final String COLUMNNAME_IsAdFlag = "IsAdFlag"; -/** Set Logging. -@param IsLogged Do we need to log the banner impressions and clicks? (needs much performance) */ -public void setIsLogged (boolean IsLogged) -{ -set_Value ("IsLogged", Boolean.valueOf(IsLogged)); -} -/** Get Logging. -@return Do we need to log the banner impressions and clicks? (needs much performance) */ -public boolean isLogged() -{ -Object oo = get_Value("IsLogged"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsLogged */ -public static final String COLUMNNAME_IsLogged = "IsLogged"; -/** Set Max Click Count. -@param MaxClick Maximum Click Count until banner is deactivated */ -public void setMaxClick (int MaxClick) -{ -set_Value ("MaxClick", Integer.valueOf(MaxClick)); -} -/** Get Max Click Count. -@return Maximum Click Count until banner is deactivated */ -public int getMaxClick() -{ -Integer ii = (Integer)get_Value("MaxClick"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MaxClick */ -public static final String COLUMNNAME_MaxClick = "MaxClick"; -/** Set Max Impression Count. -@param MaxImpression Maximum Impression Count until banner is deactivated */ -public void setMaxImpression (int MaxImpression) -{ -set_Value ("MaxImpression", Integer.valueOf(MaxImpression)); -} -/** Get Max Impression Count. -@return Maximum Impression Count until banner is deactivated */ -public int getMaxImpression() -{ -Integer ii = (Integer)get_Value("MaxImpression"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name MaxImpression */ -public static final String COLUMNNAME_MaxImpression = "MaxImpression"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -if (StartDate == null) throw new IllegalArgumentException ("StartDate is mandatory."); -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -/** Set Start Count Impression. -@param StartImpression For rotation we need a start count */ -public void setStartImpression (int StartImpression) -{ -set_Value ("StartImpression", Integer.valueOf(StartImpression)); -} -/** Get Start Count Impression. -@return For rotation we need a start count */ -public int getStartImpression() -{ -Integer ii = (Integer)get_Value("StartImpression"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StartImpression */ -public static final String COLUMNNAME_StartImpression = "StartImpression"; -/** Set Target URL. -@param TargetURL URL for the Target */ -public void setTargetURL (String TargetURL) -{ -if (TargetURL != null && TargetURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -TargetURL = TargetURL.substring(0,119); -} -set_Value ("TargetURL", TargetURL); -} -/** Get Target URL. -@return URL for the Target */ -public String getTargetURL() -{ -return (String)get_Value("TargetURL"); -} -/** Column name TargetURL */ -public static final String COLUMNNAME_TargetURL = "TargetURL"; -/** Set Target Frame. -@param Target_Frame Which target should be used if user clicks? */ -public void setTarget_Frame (String Target_Frame) -{ -if (Target_Frame == null) throw new IllegalArgumentException ("Target_Frame is mandatory."); -if (Target_Frame.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Target_Frame = Target_Frame.substring(0,19); -} -set_Value ("Target_Frame", Target_Frame); -} -/** Get Target Frame. -@return Which target should be used if user clicks? */ -public String getTarget_Frame() -{ -return (String)get_Value("Target_Frame"); -} -/** Column name Target_Frame */ -public static final String COLUMNNAME_Target_Frame = "Target_Frame"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Ad (Properties ctx, int CM_Ad_ID, String trxName) + { + super (ctx, CM_Ad_ID, trxName); + /** if (CM_Ad_ID == 0) { setActualClick (0); + setActualImpression (0); + setCM_Ad_Cat_ID (0); + setCM_Ad_ID (0); + setCM_Media_ID (0); + setIsAdFlag (false); + setIsLogged (false); + setMaxClick (0); + setMaxImpression (0); + setName (null); + setStartDate (new Timestamp(System.currentTimeMillis())); + setStartImpression (0); + setTarget_Frame (null); +} */ + } + + /** Load Constructor */ + public X_CM_Ad (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Ad[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Actual Click Count. + @param ActualClick + How many clicks have been counted + */ + public void setActualClick (int ActualClick) + { + set_Value (COLUMNNAME_ActualClick, Integer.valueOf(ActualClick)); + } + + /** Get Actual Click Count. + @return How many clicks have been counted + */ + public int getActualClick () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ActualClick); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Actual Impression Count. + @param ActualImpression + How many impressions have been counted + */ + public void setActualImpression (int ActualImpression) + { + set_Value (COLUMNNAME_ActualImpression, Integer.valueOf(ActualImpression)); + } + + /** Get Actual Impression Count. + @return How many impressions have been counted + */ + public int getActualImpression () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ActualImpression); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Ad_Cat getI_CM_Ad_Cat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Advertisement Category. + @param CM_Ad_Cat_ID + Advertisement Category like Banner Homepage + */ + public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) + { + if (CM_Ad_Cat_ID < 1) + throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); + } + + /** Get Advertisement Category. + @return Advertisement Category like Banner Homepage + */ + public int getCM_Ad_Cat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Ad_Cat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Advertisement. + @param CM_Ad_ID + An Advertisement is something like a banner + */ + public void setCM_Ad_ID (int CM_Ad_ID) + { + if (CM_Ad_ID < 1) + throw new IllegalArgumentException ("CM_Ad_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Ad_ID, Integer.valueOf(CM_Ad_ID)); + } + + /** Get Advertisement. + @return An Advertisement is something like a banner + */ + public int getCM_Ad_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Ad_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Media getI_CM_Media() throws Exception + { + 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 e; + } + return result; + } + + /** Set Media Item. + @param CM_Media_ID + Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID) + { + if (CM_Media_ID < 1) + throw new IllegalArgumentException ("CM_Media_ID is mandatory."); + set_Value (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + } + + /** Get Media Item. + @return Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Content HTML. + @param ContentHTML + Contains the content itself + */ + public void setContentHTML (String ContentHTML) + { + if (ContentHTML != null && ContentHTML.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ContentHTML = ContentHTML.substring(0, 1999); + } + set_Value (COLUMNNAME_ContentHTML, ContentHTML); + } + + /** Get Content HTML. + @return Contains the content itself + */ + public String getContentHTML () + { + return (String)get_Value(COLUMNNAME_ContentHTML); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set End Date. + @param EndDate + Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate) + { + set_Value (COLUMNNAME_EndDate, EndDate); + } + + /** Get End Date. + @return Last effective date (inclusive) + */ + public Timestamp getEndDate () + { + return (Timestamp)get_Value(COLUMNNAME_EndDate); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Special AD Flag. + @param IsAdFlag + Do we need to specially mention this ad? + */ + public void setIsAdFlag (boolean IsAdFlag) + { + set_Value (COLUMNNAME_IsAdFlag, Boolean.valueOf(IsAdFlag)); + } + + /** Get Special AD Flag. + @return Do we need to specially mention this ad? + */ + public boolean isAdFlag () + { + Object oo = get_Value(COLUMNNAME_IsAdFlag); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Logging. + @param IsLogged + Do we need to log the banner impressions and clicks? (needs much performance) + */ + public void setIsLogged (boolean IsLogged) + { + set_Value (COLUMNNAME_IsLogged, Boolean.valueOf(IsLogged)); + } + + /** Get Logging. + @return Do we need to log the banner impressions and clicks? (needs much performance) + */ + public boolean isLogged () + { + Object oo = get_Value(COLUMNNAME_IsLogged); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Max Click Count. + @param MaxClick + Maximum Click Count until banner is deactivated + */ + public void setMaxClick (int MaxClick) + { + set_Value (COLUMNNAME_MaxClick, Integer.valueOf(MaxClick)); + } + + /** Get Max Click Count. + @return Maximum Click Count until banner is deactivated + */ + public int getMaxClick () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MaxClick); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Max Impression Count. + @param MaxImpression + Maximum Impression Count until banner is deactivated + */ + public void setMaxImpression (int MaxImpression) + { + set_Value (COLUMNNAME_MaxImpression, Integer.valueOf(MaxImpression)); + } + + /** Get Max Impression Count. + @return Maximum Impression Count until banner is deactivated + */ + public int getMaxImpression () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MaxImpression); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + if (StartDate == null) + throw new IllegalArgumentException ("StartDate is mandatory."); + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } + + /** Set Start Count Impression. + @param StartImpression + For rotation we need a start count + */ + public void setStartImpression (int StartImpression) + { + set_Value (COLUMNNAME_StartImpression, Integer.valueOf(StartImpression)); + } + + /** Get Start Count Impression. + @return For rotation we need a start count + */ + public int getStartImpression () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StartImpression); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Target URL. + @param TargetURL + URL for the Target + */ + public void setTargetURL (String TargetURL) + { + if (TargetURL != null && TargetURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + TargetURL = TargetURL.substring(0, 119); + } + set_Value (COLUMNNAME_TargetURL, TargetURL); + } + + /** Get Target URL. + @return URL for the Target + */ + public String getTargetURL () + { + return (String)get_Value(COLUMNNAME_TargetURL); + } + + /** Set Target Frame. + @param Target_Frame + Which target should be used if user clicks? + */ + public void setTarget_Frame (String Target_Frame) + { + if (Target_Frame == null) + throw new IllegalArgumentException ("Target_Frame is mandatory."); + if (Target_Frame.length() > 20) + { + log.warning("Length > 20 - truncated"); + Target_Frame = Target_Frame.substring(0, 19); + } + set_Value (COLUMNNAME_Target_Frame, Target_Frame); + } + + /** Get Target Frame. + @return Which target should be used if user clicks? + */ + public String getTarget_Frame () + { + return (String)get_Value(COLUMNNAME_Target_Frame); + } +} \ No newline at end of file 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 18a13e82b2..7d10c837b5 100644 --- a/base/src/org/compiere/model/X_CM_Ad_Cat.java +++ b/base/src/org/compiere/model/X_CM_Ad_Cat.java @@ -1,188 +1,211 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Ad_Cat - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Ad_Cat extends PO + +/** Generated Model for CM_Ad_Cat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Ad_Cat extends PO implements I_CM_Ad_Cat, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Ad_Cat_ID id -@param trxName transaction -*/ -public X_CM_Ad_Cat (Properties ctx, int CM_Ad_Cat_ID, String trxName) -{ -super (ctx, CM_Ad_Cat_ID, trxName); -/** if (CM_Ad_Cat_ID == 0) -{ -setCM_Ad_Cat_ID (0); -setCM_WebProject_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Ad_Cat (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Ad_Cat */ -public static final String Table_Name="CM_Ad_Cat"; - -/** AD_Table_ID=856 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Ad_Cat[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Advertisement Category. -@param CM_Ad_Cat_ID Advertisement Category like Banner Homepage */ -public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) -{ -if (CM_Ad_Cat_ID < 1) throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); -set_ValueNoCheck ("CM_Ad_Cat_ID", Integer.valueOf(CM_Ad_Cat_ID)); -} -/** Get Advertisement Category. -@return Advertisement Category like Banner Homepage */ -public int getCM_Ad_Cat_ID() -{ -Integer ii = (Integer)get_Value("CM_Ad_Cat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Ad_Cat_ID */ -public static final String COLUMNNAME_CM_Ad_Cat_ID = "CM_Ad_Cat_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_Value ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Ad_Cat (Properties ctx, int CM_Ad_Cat_ID, String trxName) + { + super (ctx, CM_Ad_Cat_ID, trxName); + /** if (CM_Ad_Cat_ID == 0) { setCM_Ad_Cat_ID (0); + setCM_WebProject_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_Ad_Cat (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Ad_Cat[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Advertisement Category. + @param CM_Ad_Cat_ID + Advertisement Category like Banner Homepage + */ + public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) + { + if (CM_Ad_Cat_ID < 1) + throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); + } + + /** Get Advertisement Category. + @return Advertisement Category like Banner Homepage + */ + public int getCM_Ad_Cat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Ad_Cat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_BroadcastServer.java b/base/src/org/compiere/model/X_CM_BroadcastServer.java index d058ae0786..0217c79598 100644 --- a/base/src/org/compiere/model/X_CM_BroadcastServer.java +++ b/base/src/org/compiere/model/X_CM_BroadcastServer.java @@ -1,223 +1,252 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_BroadcastServer - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_BroadcastServer extends PO + +/** Generated Model for CM_BroadcastServer + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_BroadcastServer extends PO implements I_CM_BroadcastServer, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_BroadcastServer_ID id -@param trxName transaction -*/ -public X_CM_BroadcastServer (Properties ctx, int CM_BroadcastServer_ID, String trxName) -{ -super (ctx, CM_BroadcastServer_ID, trxName); -/** if (CM_BroadcastServer_ID == 0) -{ -setCM_BroadcastServer_ID (0); -setIP_Address (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_BroadcastServer (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_BroadcastServer */ -public static final String Table_Name="CM_BroadcastServer"; - -/** AD_Table_ID=893 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_BroadcastServer[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Broadcast Server. -@param CM_BroadcastServer_ID Web Broadcast Server */ -public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID) -{ -if (CM_BroadcastServer_ID < 1) throw new IllegalArgumentException ("CM_BroadcastServer_ID is mandatory."); -set_ValueNoCheck ("CM_BroadcastServer_ID", Integer.valueOf(CM_BroadcastServer_ID)); -} -/** Get Broadcast Server. -@return Web Broadcast Server */ -public int getCM_BroadcastServer_ID() -{ -Integer ii = (Integer)get_Value("CM_BroadcastServer_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_BroadcastServer_ID */ -public static final String COLUMNNAME_CM_BroadcastServer_ID = "CM_BroadcastServer_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID <= 0) set_Value ("CM_WebProject_ID", null); - else -set_Value ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set IP Address. -@param IP_Address Defines the IP address to transfer data to */ -public void setIP_Address (String IP_Address) -{ -if (IP_Address == null) throw new IllegalArgumentException ("IP_Address is mandatory."); -if (IP_Address.length() > 20) -{ -log.warning("Length > 20 - truncated"); -IP_Address = IP_Address.substring(0,19); -} -set_Value ("IP_Address", IP_Address); -} -/** Get IP Address. -@return Defines the IP address to transfer data to */ -public String getIP_Address() -{ -return (String)get_Value("IP_Address"); -} -/** Column name IP_Address */ -public static final String COLUMNNAME_IP_Address = "IP_Address"; -/** Set Last Synchronized. -@param LastSynchronized Date when last synchronized */ -public void setLastSynchronized (Timestamp LastSynchronized) -{ -set_Value ("LastSynchronized", LastSynchronized); -} -/** Get Last Synchronized. -@return Date when last synchronized */ -public Timestamp getLastSynchronized() -{ -return (Timestamp)get_Value("LastSynchronized"); -} -/** Column name LastSynchronized */ -public static final String COLUMNNAME_LastSynchronized = "LastSynchronized"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_BroadcastServer (Properties ctx, int CM_BroadcastServer_ID, String trxName) + { + super (ctx, CM_BroadcastServer_ID, trxName); + /** if (CM_BroadcastServer_ID == 0) { setCM_BroadcastServer_ID (0); + setIP_Address (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_BroadcastServer (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_BroadcastServer[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Broadcast Server. + @param CM_BroadcastServer_ID + Web Broadcast Server + */ + public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID) + { + if (CM_BroadcastServer_ID < 1) + throw new IllegalArgumentException ("CM_BroadcastServer_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_BroadcastServer_ID, Integer.valueOf(CM_BroadcastServer_ID)); + } + + /** Get Broadcast Server. + @return Web Broadcast Server + */ + public int getCM_BroadcastServer_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_BroadcastServer_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID <= 0) set_Value (COLUMNNAME_CM_WebProject_ID, null); + else + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set IP Address. + @param IP_Address + Defines the IP address to transfer data to + */ + public void setIP_Address (String IP_Address) + { + if (IP_Address == null) + throw new IllegalArgumentException ("IP_Address is mandatory."); + if (IP_Address.length() > 20) + { + log.warning("Length > 20 - truncated"); + IP_Address = IP_Address.substring(0, 19); + } + set_Value (COLUMNNAME_IP_Address, IP_Address); + } + + /** Get IP Address. + @return Defines the IP address to transfer data to + */ + public String getIP_Address () + { + return (String)get_Value(COLUMNNAME_IP_Address); + } + + /** Set Last Synchronized. + @param LastSynchronized + Date when last synchronized + */ + public void setLastSynchronized (Timestamp LastSynchronized) + { + set_Value (COLUMNNAME_LastSynchronized, LastSynchronized); + } + + /** Get Last Synchronized. + @return Date when last synchronized + */ + public Timestamp getLastSynchronized () + { + return (Timestamp)get_Value(COLUMNNAME_LastSynchronized); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_CStage.java b/base/src/org/compiere/model/X_CM_CStage.java index 82e518ce04..00818c1531 100644 --- a/base/src/org/compiere/model/X_CM_CStage.java +++ b/base/src/org/compiere/model/X_CM_CStage.java @@ -1,676 +1,789 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_CStage - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_CStage extends PO + +/** Generated Model for CM_CStage + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_CStage extends PO implements I_CM_CStage, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_CStage_ID id -@param trxName transaction -*/ -public X_CM_CStage (Properties ctx, int CM_CStage_ID, String trxName) -{ -super (ctx, CM_CStage_ID, trxName); -/** if (CM_CStage_ID == 0) -{ -setCM_CStage_ID (0); -setCM_WebProject_ID (0); -setContainerType (null); // D -setIsIndexed (true); // Y -setIsModified (false); -setIsSecure (false); -setIsSummary (false); -setMeta_Description (null); -setMeta_Keywords (null); -setName (null); -setNotice (null); -setPriority (0); -setRelativeURL (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_CStage (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_CStage */ -public static final String Table_Name="CM_CStage"; - -/** AD_Table_ID=866 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_CStage[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_CStage (Properties ctx, int CM_CStage_ID, String trxName) + { + super (ctx, CM_CStage_ID, trxName); + /** if (CM_CStage_ID == 0) { setCM_CStage_ID (0); + setCM_WebProject_ID (0); + setContainerType (null); +// D + setIsIndexed (true); +// Y + setIsModified (false); + setIsSecure (false); + setIsSummary (false); + setMeta_Description (null); + setMeta_Keywords (null); + setName (null); + setNotice (null); + setPriority (0); + setRelativeURL (null); +} */ + } + + /** Load Constructor */ + public X_CM_CStage (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_CStage[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** CM_CStageLink_ID AD_Reference_ID=387 */ public static final int CM_CSTAGELINK_ID_AD_Reference_ID=387; -/** Set Container Link. -@param CM_CStageLink_ID Stage Link to another Container in the Web Project */ -public void setCM_CStageLink_ID (int CM_CStageLink_ID) -{ -if (CM_CStageLink_ID <= 0) set_Value ("CM_CStageLink_ID", null); - else -set_Value ("CM_CStageLink_ID", Integer.valueOf(CM_CStageLink_ID)); -} -/** Get Container Link. -@return Stage Link to another Container in the Web Project */ -public int getCM_CStageLink_ID() -{ -Integer ii = (Integer)get_Value("CM_CStageLink_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStageLink_ID */ -public static final String COLUMNNAME_CM_CStageLink_ID = "CM_CStageLink_ID"; -/** Set Web Container Stage. -@param CM_CStage_ID Web Container Stage contains the staging content like images, text etc. */ -public void setCM_CStage_ID (int CM_CStage_ID) -{ -if (CM_CStage_ID < 1) throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); -set_ValueNoCheck ("CM_CStage_ID", Integer.valueOf(CM_CStage_ID)); -} -/** Get Web Container Stage. -@return Web Container Stage contains the staging content like images, text etc. */ -public int getCM_CStage_ID() -{ -Integer ii = (Integer)get_Value("CM_CStage_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStage_ID */ -public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; -/** Set Template. -@param CM_Template_ID Template defines how content is displayed */ -public void setCM_Template_ID (int CM_Template_ID) -{ -if (CM_Template_ID <= 0) set_Value ("CM_Template_ID", null); - else -set_Value ("CM_Template_ID", Integer.valueOf(CM_Template_ID)); -} -/** Get Template. -@return Template defines how content is displayed */ -public int getCM_Template_ID() -{ -Integer ii = (Integer)get_Value("CM_Template_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Template_ID */ -public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set External Link (URL). -@param ContainerLinkURL External Link (IRL) for the Container */ -public void setContainerLinkURL (String ContainerLinkURL) -{ -if (ContainerLinkURL != null && ContainerLinkURL.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ContainerLinkURL = ContainerLinkURL.substring(0,59); -} -set_Value ("ContainerLinkURL", ContainerLinkURL); -} -/** Get External Link (URL). -@return External Link (IRL) for the Container */ -public String getContainerLinkURL() -{ -return (String)get_Value("ContainerLinkURL"); -} -/** Column name ContainerLinkURL */ -public static final String COLUMNNAME_ContainerLinkURL = "ContainerLinkURL"; + /** Set Container Link. + @param CM_CStageLink_ID + Stage Link to another Container in the Web Project + */ + public void setCM_CStageLink_ID (int CM_CStageLink_ID) + { + if (CM_CStageLink_ID <= 0) set_Value (COLUMNNAME_CM_CStageLink_ID, null); + else + set_Value (COLUMNNAME_CM_CStageLink_ID, Integer.valueOf(CM_CStageLink_ID)); + } + + /** Get Container Link. + @return Stage Link to another Container in the Web Project + */ + public int getCM_CStageLink_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStageLink_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Container Stage. + @param CM_CStage_ID + Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID) + { + if (CM_CStage_ID < 1) + throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + } + + /** Get Web Container Stage. + @return Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStage_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Template getI_CM_Template() throws Exception + { + 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 e; + } + return result; + } + + /** Set Template. + @param CM_Template_ID + Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID) + { + if (CM_Template_ID <= 0) set_Value (COLUMNNAME_CM_Template_ID, null); + else + set_Value (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + } + + /** Get Template. + @return Template defines how content is displayed + */ + public int getCM_Template_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Template_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set External Link (URL). + @param ContainerLinkURL + External Link (IRL) for the Container + */ + public void setContainerLinkURL (String ContainerLinkURL) + { + if (ContainerLinkURL != null && ContainerLinkURL.length() > 60) + { + log.warning("Length > 60 - truncated"); + ContainerLinkURL = ContainerLinkURL.substring(0, 59); + } + set_Value (COLUMNNAME_ContainerLinkURL, ContainerLinkURL); + } + + /** Get External Link (URL). + @return External Link (IRL) for the Container + */ + public String getContainerLinkURL () + { + return (String)get_Value(COLUMNNAME_ContainerLinkURL); + } /** ContainerType AD_Reference_ID=385 */ -public static final int CONTAINERTYPE_AD_Reference_ID=385; -/** Document = D */ -public static final String CONTAINERTYPE_Document = "D"; -/** Internal Link = L */ -public static final String CONTAINERTYPE_InternalLink = "L"; -/** External URL = U */ +public static final int CONTAINERTYPE_AD_Reference_ID=385;/** Document = D */ +public static final String CONTAINERTYPE_Document = "D";/** Internal Link = L */ +public static final String CONTAINERTYPE_InternalLink = "L";/** External URL = U */ public static final String CONTAINERTYPE_ExternalURL = "U"; -/** Set Web Container Type. -@param ContainerType Web Container Type */ -public void setContainerType (String ContainerType) -{ -if (ContainerType == null) throw new IllegalArgumentException ("ContainerType is mandatory"); -if (ContainerType.equals("D") || ContainerType.equals("L") || ContainerType.equals("U")); - else throw new IllegalArgumentException ("ContainerType Invalid value - " + ContainerType + " - Reference_ID=385 - D - L - U"); -if (ContainerType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ContainerType = ContainerType.substring(0,0); -} -set_Value ("ContainerType", ContainerType); -} -/** Get Web Container Type. -@return Web Container Type */ -public String getContainerType() -{ -return (String)get_Value("ContainerType"); -} -/** Column name ContainerType */ -public static final String COLUMNNAME_ContainerType = "ContainerType"; -/** Set ContainerXML. -@param ContainerXML Autogenerated Containerdefinition as XML Code */ -public void setContainerXML (String ContainerXML) -{ -if (ContainerXML != null && ContainerXML.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ContainerXML = ContainerXML.substring(0,1999); -} -set_ValueNoCheck ("ContainerXML", ContainerXML); -} -/** Get ContainerXML. -@return Autogenerated Containerdefinition as XML Code */ -public String getContainerXML() -{ -return (String)get_Value("ContainerXML"); -} -/** Column name ContainerXML */ -public static final String COLUMNNAME_ContainerXML = "ContainerXML"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Description = Description.substring(0,1999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Indexed. -@param IsIndexed Index the document for the internal search engine */ -public void setIsIndexed (boolean IsIndexed) -{ -set_Value ("IsIndexed", Boolean.valueOf(IsIndexed)); -} -/** Get Indexed. -@return Index the document for the internal search engine */ -public boolean isIndexed() -{ -Object oo = get_Value("IsIndexed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsIndexed */ -public static final String COLUMNNAME_IsIndexed = "IsIndexed"; -/** Set Modified. -@param IsModified The record is modified */ -public void setIsModified (boolean IsModified) -{ -set_ValueNoCheck ("IsModified", Boolean.valueOf(IsModified)); -} -/** Get Modified. -@return The record is modified */ -public boolean isModified() -{ -Object oo = get_Value("IsModified"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsModified */ -public static final String COLUMNNAME_IsModified = "IsModified"; -/** Set Secure content. -@param IsSecure Defines whether content needs to get encrypted */ -public void setIsSecure (boolean IsSecure) -{ -set_Value ("IsSecure", Boolean.valueOf(IsSecure)); -} -/** Get Secure content. -@return Defines whether content needs to get encrypted */ -public boolean isSecure() -{ -Object oo = get_Value("IsSecure"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSecure */ -public static final String COLUMNNAME_IsSecure = "IsSecure"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_ValueNoCheck ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Meta Author. -@param Meta_Author Author of the content */ -public void setMeta_Author (String Meta_Author) -{ -if (Meta_Author != null && Meta_Author.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Author = Meta_Author.substring(0,1999); -} -set_Value ("Meta_Author", Meta_Author); -} -/** Get Meta Author. -@return Author of the content */ -public String getMeta_Author() -{ -return (String)get_Value("Meta_Author"); -} -/** Column name Meta_Author */ -public static final String COLUMNNAME_Meta_Author = "Meta_Author"; -/** Set Meta Content Type. -@param Meta_Content Defines the type of content i.e. "text/html; - charset=UTF-8" */ -public void setMeta_Content (String Meta_Content) -{ -if (Meta_Content != null && Meta_Content.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Content = Meta_Content.substring(0,1999); -} -set_Value ("Meta_Content", Meta_Content); -} -/** Get Meta Content Type. -@return Defines the type of content i.e. "text/html; - charset=UTF-8" */ -public String getMeta_Content() -{ -return (String)get_Value("Meta_Content"); -} -/** Column name Meta_Content */ -public static final String COLUMNNAME_Meta_Content = "Meta_Content"; -/** Set Meta Copyright. -@param Meta_Copyright Contains Copyright information for the content */ -public void setMeta_Copyright (String Meta_Copyright) -{ -if (Meta_Copyright != null && Meta_Copyright.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Copyright = Meta_Copyright.substring(0,1999); -} -set_Value ("Meta_Copyright", Meta_Copyright); -} -/** Get Meta Copyright. -@return Contains Copyright information for the content */ -public String getMeta_Copyright() -{ -return (String)get_Value("Meta_Copyright"); -} -/** Column name Meta_Copyright */ -public static final String COLUMNNAME_Meta_Copyright = "Meta_Copyright"; -/** Set Meta Description. -@param Meta_Description Meta info describing the contents of the page */ -public void setMeta_Description (String Meta_Description) -{ -if (Meta_Description == null) throw new IllegalArgumentException ("Meta_Description is mandatory."); -if (Meta_Description.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Description = Meta_Description.substring(0,1999); -} -set_Value ("Meta_Description", Meta_Description); -} -/** Get Meta Description. -@return Meta info describing the contents of the page */ -public String getMeta_Description() -{ -return (String)get_Value("Meta_Description"); -} -/** Column name Meta_Description */ -public static final String COLUMNNAME_Meta_Description = "Meta_Description"; -/** Set Meta Keywords. -@param Meta_Keywords Contains the keywords for the content */ -public void setMeta_Keywords (String Meta_Keywords) -{ -if (Meta_Keywords == null) throw new IllegalArgumentException ("Meta_Keywords is mandatory."); -if (Meta_Keywords.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Keywords = Meta_Keywords.substring(0,1999); -} -set_Value ("Meta_Keywords", Meta_Keywords); -} -/** Get Meta Keywords. -@return Contains the keywords for the content */ -public String getMeta_Keywords() -{ -return (String)get_Value("Meta_Keywords"); -} -/** Column name Meta_Keywords */ -public static final String COLUMNNAME_Meta_Keywords = "Meta_Keywords"; -/** Set Meta Language. -@param Meta_Language Language HTML Meta Tag */ -public void setMeta_Language (String Meta_Language) -{ -if (Meta_Language != null && Meta_Language.length() > 2) -{ -log.warning("Length > 2 - truncated"); -Meta_Language = Meta_Language.substring(0,1); -} -set_Value ("Meta_Language", Meta_Language); -} -/** Get Meta Language. -@return Language HTML Meta Tag */ -public String getMeta_Language() -{ -return (String)get_Value("Meta_Language"); -} -/** Column name Meta_Language */ -public static final String COLUMNNAME_Meta_Language = "Meta_Language"; -/** Set Meta Publisher. -@param Meta_Publisher Meta Publisher defines the publisher of the content */ -public void setMeta_Publisher (String Meta_Publisher) -{ -if (Meta_Publisher != null && Meta_Publisher.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Publisher = Meta_Publisher.substring(0,1999); -} -set_Value ("Meta_Publisher", Meta_Publisher); -} -/** Get Meta Publisher. -@return Meta Publisher defines the publisher of the content */ -public String getMeta_Publisher() -{ -return (String)get_Value("Meta_Publisher"); -} -/** Column name Meta_Publisher */ -public static final String COLUMNNAME_Meta_Publisher = "Meta_Publisher"; -/** Set Meta RobotsTag. -@param Meta_RobotsTag RobotsTag defines how search robots should handle this content */ -public void setMeta_RobotsTag (String Meta_RobotsTag) -{ -if (Meta_RobotsTag != null && Meta_RobotsTag.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_RobotsTag = Meta_RobotsTag.substring(0,1999); -} -set_Value ("Meta_RobotsTag", Meta_RobotsTag); -} -/** Get Meta RobotsTag. -@return RobotsTag defines how search robots should handle this content */ -public String getMeta_RobotsTag() -{ -return (String)get_Value("Meta_RobotsTag"); -} -/** Column name Meta_RobotsTag */ -public static final String COLUMNNAME_Meta_RobotsTag = "Meta_RobotsTag"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Notice. -@param Notice Contains last write notice */ -public void setNotice (String Notice) -{ -if (Notice == null) throw new IllegalArgumentException ("Notice is mandatory."); -if (Notice.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Notice = Notice.substring(0,1999); -} -set_Value ("Notice", Notice); -} -/** Get Notice. -@return Contains last write notice */ -public String getNotice() -{ -return (String)get_Value("Notice"); -} -/** Column name Notice */ -public static final String COLUMNNAME_Notice = "Notice"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (int Priority) -{ -set_Value ("Priority", Integer.valueOf(Priority)); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public int getPriority() -{ -Integer ii = (Integer)get_Value("Priority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Relative URL. -@param RelativeURL Contains the relative URL for the container */ -public void setRelativeURL (String RelativeURL) -{ -if (RelativeURL == null) throw new IllegalArgumentException ("RelativeURL is mandatory."); -if (RelativeURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -RelativeURL = RelativeURL.substring(0,119); -} -set_Value ("RelativeURL", RelativeURL); -} -/** Get Relative URL. -@return Contains the relative URL for the container */ -public String getRelativeURL() -{ -return (String)get_Value("RelativeURL"); -} -/** Column name RelativeURL */ -public static final String COLUMNNAME_RelativeURL = "RelativeURL"; -/** Set StructureXML. -@param StructureXML Autogenerated Containerdefinition as XML Code */ -public void setStructureXML (String StructureXML) -{ -if (StructureXML != null && StructureXML.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -StructureXML = StructureXML.substring(0,1999); -} -set_Value ("StructureXML", StructureXML); -} -/** Get StructureXML. -@return Autogenerated Containerdefinition as XML Code */ -public String getStructureXML() -{ -return (String)get_Value("StructureXML"); -} -/** Column name StructureXML */ -public static final String COLUMNNAME_StructureXML = "StructureXML"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title != null && Title.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Title = Title.substring(0,59); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -} + /** Set Web Container Type. + @param ContainerType + Web Container Type + */ + public void setContainerType (String ContainerType) + { +if (ContainerType == null) throw new IllegalArgumentException ("ContainerType is mandatory");if (ContainerType.equals("D") || ContainerType.equals("L") || ContainerType.equals("U")); else throw new IllegalArgumentException ("ContainerType Invalid value - " + ContainerType + " - Reference_ID=385 - D - L - U"); if (ContainerType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ContainerType = ContainerType.substring(0, 0); + } + set_Value (COLUMNNAME_ContainerType, ContainerType); + } + + /** Get Web Container Type. + @return Web Container Type + */ + public String getContainerType () + { + return (String)get_Value(COLUMNNAME_ContainerType); + } + + /** Set ContainerXML. + @param ContainerXML + Autogenerated Containerdefinition as XML Code + */ + public void setContainerXML (String ContainerXML) + { + if (ContainerXML != null && ContainerXML.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ContainerXML = ContainerXML.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_ContainerXML, ContainerXML); + } + + /** Get ContainerXML. + @return Autogenerated Containerdefinition as XML Code + */ + public String getContainerXML () + { + return (String)get_Value(COLUMNNAME_ContainerXML); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Description = Description.substring(0, 1999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Indexed. + @param IsIndexed + Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed) + { + set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); + } + + /** Get Indexed. + @return Index the document for the internal search engine + */ + public boolean isIndexed () + { + Object oo = get_Value(COLUMNNAME_IsIndexed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Modified. + @param IsModified + The record is modified + */ + public void setIsModified (boolean IsModified) + { + set_ValueNoCheck (COLUMNNAME_IsModified, Boolean.valueOf(IsModified)); + } + + /** Get Modified. + @return The record is modified + */ + public boolean isModified () + { + Object oo = get_Value(COLUMNNAME_IsModified); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Secure content. + @param IsSecure + Defines whether content needs to get encrypted + */ + public void setIsSecure (boolean IsSecure) + { + set_Value (COLUMNNAME_IsSecure, Boolean.valueOf(IsSecure)); + } + + /** Get Secure content. + @return Defines whether content needs to get encrypted + */ + public boolean isSecure () + { + Object oo = get_Value(COLUMNNAME_IsSecure); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_ValueNoCheck (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Meta Author. + @param Meta_Author + Author of the content + */ + public void setMeta_Author (String Meta_Author) + { + if (Meta_Author != null && Meta_Author.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Author = Meta_Author.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Author, Meta_Author); + } + + /** Get Meta Author. + @return Author of the content + */ + public String getMeta_Author () + { + return (String)get_Value(COLUMNNAME_Meta_Author); + } + + /** Set Meta Content Type. + @param Meta_Content + Defines the type of content i.e. "text/html; charset=UTF-8" + */ + public void setMeta_Content (String Meta_Content) + { + if (Meta_Content != null && Meta_Content.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Content = Meta_Content.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Content, Meta_Content); + } + + /** Get Meta Content Type. + @return Defines the type of content i.e. "text/html; charset=UTF-8" + */ + public String getMeta_Content () + { + return (String)get_Value(COLUMNNAME_Meta_Content); + } + + /** Set Meta Copyright. + @param Meta_Copyright + Contains Copyright information for the content + */ + public void setMeta_Copyright (String Meta_Copyright) + { + if (Meta_Copyright != null && Meta_Copyright.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Copyright = Meta_Copyright.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Copyright, Meta_Copyright); + } + + /** Get Meta Copyright. + @return Contains Copyright information for the content + */ + public String getMeta_Copyright () + { + return (String)get_Value(COLUMNNAME_Meta_Copyright); + } + + /** Set Meta Description. + @param Meta_Description + Meta info describing the contents of the page + */ + public void setMeta_Description (String Meta_Description) + { + if (Meta_Description == null) + throw new IllegalArgumentException ("Meta_Description is mandatory."); + if (Meta_Description.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Description = Meta_Description.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Description, Meta_Description); + } + + /** Get Meta Description. + @return Meta info describing the contents of the page + */ + public String getMeta_Description () + { + return (String)get_Value(COLUMNNAME_Meta_Description); + } + + /** Set Meta Keywords. + @param Meta_Keywords + Contains the keywords for the content + */ + public void setMeta_Keywords (String Meta_Keywords) + { + if (Meta_Keywords == null) + throw new IllegalArgumentException ("Meta_Keywords is mandatory."); + if (Meta_Keywords.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Keywords = Meta_Keywords.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Keywords, Meta_Keywords); + } + + /** Get Meta Keywords. + @return Contains the keywords for the content + */ + public String getMeta_Keywords () + { + return (String)get_Value(COLUMNNAME_Meta_Keywords); + } + + /** Set Meta Language. + @param Meta_Language + Language HTML Meta Tag + */ + public void setMeta_Language (String Meta_Language) + { + if (Meta_Language != null && Meta_Language.length() > 2) + { + log.warning("Length > 2 - truncated"); + Meta_Language = Meta_Language.substring(0, 1); + } + set_Value (COLUMNNAME_Meta_Language, Meta_Language); + } + + /** Get Meta Language. + @return Language HTML Meta Tag + */ + public String getMeta_Language () + { + return (String)get_Value(COLUMNNAME_Meta_Language); + } + + /** Set Meta Publisher. + @param Meta_Publisher + Meta Publisher defines the publisher of the content + */ + public void setMeta_Publisher (String Meta_Publisher) + { + if (Meta_Publisher != null && Meta_Publisher.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Publisher = Meta_Publisher.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Publisher, Meta_Publisher); + } + + /** Get Meta Publisher. + @return Meta Publisher defines the publisher of the content + */ + public String getMeta_Publisher () + { + return (String)get_Value(COLUMNNAME_Meta_Publisher); + } + + /** Set Meta RobotsTag. + @param Meta_RobotsTag + RobotsTag defines how search robots should handle this content + */ + public void setMeta_RobotsTag (String Meta_RobotsTag) + { + if (Meta_RobotsTag != null && Meta_RobotsTag.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_RobotsTag = Meta_RobotsTag.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_RobotsTag, Meta_RobotsTag); + } + + /** Get Meta RobotsTag. + @return RobotsTag defines how search robots should handle this content + */ + public String getMeta_RobotsTag () + { + return (String)get_Value(COLUMNNAME_Meta_RobotsTag); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Notice. + @param Notice + Contains last write notice + */ + public void setNotice (String Notice) + { + if (Notice == null) + throw new IllegalArgumentException ("Notice is mandatory."); + if (Notice.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Notice = Notice.substring(0, 1999); + } + set_Value (COLUMNNAME_Notice, Notice); + } + + /** Get Notice. + @return Contains last write notice + */ + public String getNotice () + { + return (String)get_Value(COLUMNNAME_Notice); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Relative URL. + @param RelativeURL + Contains the relative URL for the container + */ + public void setRelativeURL (String RelativeURL) + { + if (RelativeURL == null) + throw new IllegalArgumentException ("RelativeURL is mandatory."); + if (RelativeURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + RelativeURL = RelativeURL.substring(0, 119); + } + set_Value (COLUMNNAME_RelativeURL, RelativeURL); + } + + /** Get Relative URL. + @return Contains the relative URL for the container + */ + public String getRelativeURL () + { + return (String)get_Value(COLUMNNAME_RelativeURL); + } + + /** Set StructureXML. + @param StructureXML + Autogenerated Containerdefinition as XML Code + */ + public void setStructureXML (String StructureXML) + { + if (StructureXML != null && StructureXML.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + StructureXML = StructureXML.substring(0, 1999); + } + set_Value (COLUMNNAME_StructureXML, StructureXML); + } + + /** Get StructureXML. + @return Autogenerated Containerdefinition as XML Code + */ + public String getStructureXML () + { + return (String)get_Value(COLUMNNAME_StructureXML); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title != null && Title.length() > 60) + { + log.warning("Length > 60 - truncated"); + Title = Title.substring(0, 59); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_CStageTTable.java b/base/src/org/compiere/model/X_CM_CStageTTable.java index 0eb8203843..b122159413 100644 --- a/base/src/org/compiere/model/X_CM_CStageTTable.java +++ b/base/src/org/compiere/model/X_CM_CStageTTable.java @@ -1,243 +1,294 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_CStageTTable - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_CStageTTable extends PO + +/** Generated Model for CM_CStageTTable + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_CStageTTable extends PO implements I_CM_CStageTTable, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_CStageTTable_ID id -@param trxName transaction -*/ -public X_CM_CStageTTable (Properties ctx, int CM_CStageTTable_ID, String trxName) -{ -super (ctx, CM_CStageTTable_ID, trxName); -/** if (CM_CStageTTable_ID == 0) -{ -setCM_CStageTTable_ID (0); -setCM_CStage_ID (0); -setCM_TemplateTable_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_CStageTTable (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_CStageTTable */ -public static final String Table_Name="CM_CStageTTable"; - -/** AD_Table_ID=881 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_CStageTTable[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Stage T.Table. -@param CM_CStageTTable_ID Containet Stage Template Table */ -public void setCM_CStageTTable_ID (int CM_CStageTTable_ID) -{ -if (CM_CStageTTable_ID < 1) throw new IllegalArgumentException ("CM_CStageTTable_ID is mandatory."); -set_ValueNoCheck ("CM_CStageTTable_ID", Integer.valueOf(CM_CStageTTable_ID)); -} -/** Get Stage T.Table. -@return Containet Stage Template Table */ -public int getCM_CStageTTable_ID() -{ -Integer ii = (Integer)get_Value("CM_CStageTTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStageTTable_ID */ -public static final String COLUMNNAME_CM_CStageTTable_ID = "CM_CStageTTable_ID"; -/** Set Web Container Stage. -@param CM_CStage_ID Web Container Stage contains the staging content like images, text etc. */ -public void setCM_CStage_ID (int CM_CStage_ID) -{ -if (CM_CStage_ID < 1) throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); -set_ValueNoCheck ("CM_CStage_ID", Integer.valueOf(CM_CStage_ID)); -} -/** Get Web Container Stage. -@return Web Container Stage contains the staging content like images, text etc. */ -public int getCM_CStage_ID() -{ -Integer ii = (Integer)get_Value("CM_CStage_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStage_ID */ -public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; -/** Set Template Table. -@param CM_TemplateTable_ID CM Template Table Link */ -public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) -{ -if (CM_TemplateTable_ID < 1) throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); -set_ValueNoCheck ("CM_TemplateTable_ID", Integer.valueOf(CM_TemplateTable_ID)); -} -/** Get Template Table. -@return CM Template Table Link */ -public int getCM_TemplateTable_ID() -{ -Integer ii = (Integer)get_Value("CM_TemplateTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_TemplateTable_ID */ -public static final String COLUMNNAME_CM_TemplateTable_ID = "CM_TemplateTable_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Other SQL Clause. -@param OtherClause Other SQL Clause */ -public void setOtherClause (String OtherClause) -{ -if (OtherClause != null && OtherClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OtherClause = OtherClause.substring(0,1999); -} -set_Value ("OtherClause", OtherClause); -} -/** Get Other SQL Clause. -@return Other SQL Clause */ -public String getOtherClause() -{ -return (String)get_Value("OtherClause"); -} -/** Column name OtherClause */ -public static final String COLUMNNAME_OtherClause = "OtherClause"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null); - else -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_CStageTTable (Properties ctx, int CM_CStageTTable_ID, String trxName) + { + super (ctx, CM_CStageTTable_ID, trxName); + /** if (CM_CStageTTable_ID == 0) { setCM_CStageTTable_ID (0); + setCM_CStage_ID (0); + setCM_TemplateTable_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_CStageTTable (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_CStageTTable[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Stage T.Table. + @param CM_CStageTTable_ID + Containet Stage Template Table + */ + public void setCM_CStageTTable_ID (int CM_CStageTTable_ID) + { + if (CM_CStageTTable_ID < 1) + throw new IllegalArgumentException ("CM_CStageTTable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_CStageTTable_ID, Integer.valueOf(CM_CStageTTable_ID)); + } + + /** Get Stage T.Table. + @return Containet Stage Template Table + */ + public int getCM_CStageTTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStageTTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_CStage getI_CM_CStage() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container Stage. + @param CM_CStage_ID + Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID) + { + if (CM_CStage_ID < 1) + throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + } + + /** Get Web Container Stage. + @return Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStage_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_TemplateTable getI_CM_TemplateTable() throws Exception + { + 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 e; + } + return result; + } + + /** Set Template Table. + @param CM_TemplateTable_ID + CM Template Table Link + */ + public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) + { + if (CM_TemplateTable_ID < 1) + throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); + } + + /** Get Template Table. + @return CM Template Table Link + */ + public int getCM_TemplateTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_TemplateTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Other SQL Clause. + @param OtherClause + Other SQL Clause + */ + public void setOtherClause (String OtherClause) + { + if (OtherClause != null && OtherClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OtherClause = OtherClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OtherClause, OtherClause); + } + + /** Get Other SQL Clause. + @return Other SQL Clause + */ + public String getOtherClause () + { + return (String)get_Value(COLUMNNAME_OtherClause); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file 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 70a6f24e0b..581fd88d62 100644 --- a/base/src/org/compiere/model/X_CM_CStage_Element.java +++ b/base/src/org/compiere/model/X_CM_CStage_Element.java @@ -1,222 +1,252 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_CStage_Element - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_CStage_Element extends PO + +/** Generated Model for CM_CStage_Element + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_CStage_Element extends PO implements I_CM_CStage_Element, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_CStage_Element_ID id -@param trxName transaction -*/ -public X_CM_CStage_Element (Properties ctx, int CM_CStage_Element_ID, String trxName) -{ -super (ctx, CM_CStage_Element_ID, trxName); -/** if (CM_CStage_Element_ID == 0) -{ -setCM_CStage_Element_ID (0); -setCM_CStage_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_CStage_Element (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_CStage_Element */ -public static final String Table_Name="CM_CStage_Element"; - -/** AD_Table_ID=867 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_CStage_Element[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Container Stage Element. -@param CM_CStage_Element_ID Container element i.e. Headline, Content, Footer etc. */ -public void setCM_CStage_Element_ID (int CM_CStage_Element_ID) -{ -if (CM_CStage_Element_ID < 1) throw new IllegalArgumentException ("CM_CStage_Element_ID is mandatory."); -set_ValueNoCheck ("CM_CStage_Element_ID", Integer.valueOf(CM_CStage_Element_ID)); -} -/** Get Container Stage Element. -@return Container element i.e. Headline, Content, Footer etc. */ -public int getCM_CStage_Element_ID() -{ -Integer ii = (Integer)get_Value("CM_CStage_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStage_Element_ID */ -public static final String COLUMNNAME_CM_CStage_Element_ID = "CM_CStage_Element_ID"; -/** Set Web Container Stage. -@param CM_CStage_ID Web Container Stage contains the staging content like images, text etc. */ -public void setCM_CStage_ID (int CM_CStage_ID) -{ -if (CM_CStage_ID < 1) throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); -set_ValueNoCheck ("CM_CStage_ID", Integer.valueOf(CM_CStage_ID)); -} -/** Get Web Container Stage. -@return Web Container Stage contains the staging content like images, text etc. */ -public int getCM_CStage_ID() -{ -Integer ii = (Integer)get_Value("CM_CStage_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_CStage_ID */ -public static final String COLUMNNAME_CM_CStage_ID = "CM_CStage_ID"; -/** Set Content HTML. -@param ContentHTML Contains the content itself */ -public void setContentHTML (String ContentHTML) -{ -set_Value ("ContentHTML", ContentHTML); -} -/** Get Content HTML. -@return Contains the content itself */ -public String getContentHTML() -{ -return (String)get_Value("ContentHTML"); -} -/** Column name ContentHTML */ -public static final String COLUMNNAME_ContentHTML = "ContentHTML"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_CStage_Element (Properties ctx, int CM_CStage_Element_ID, String trxName) + { + super (ctx, CM_CStage_Element_ID, trxName); + /** if (CM_CStage_Element_ID == 0) { setCM_CStage_Element_ID (0); + setCM_CStage_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_CStage_Element (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_CStage_Element[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Container Stage Element. + @param CM_CStage_Element_ID + Container element i.e. Headline, Content, Footer etc. + */ + public void setCM_CStage_Element_ID (int CM_CStage_Element_ID) + { + if (CM_CStage_Element_ID < 1) + throw new IllegalArgumentException ("CM_CStage_Element_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_CStage_Element_ID, Integer.valueOf(CM_CStage_Element_ID)); + } + + /** Get Container Stage Element. + @return Container element i.e. Headline, Content, Footer etc. + */ + public int getCM_CStage_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStage_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_CStage getI_CM_CStage() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container Stage. + @param CM_CStage_ID + Web Container Stage contains the staging content like images, text etc. + */ + public void setCM_CStage_ID (int CM_CStage_ID) + { + if (CM_CStage_ID < 1) + throw new IllegalArgumentException ("CM_CStage_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_CStage_ID, Integer.valueOf(CM_CStage_ID)); + } + + /** Get Web Container Stage. + @return Web Container Stage contains the staging content like images, text etc. + */ + public int getCM_CStage_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_CStage_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Content HTML. + @param ContentHTML + Contains the content itself + */ + public void setContentHTML (String ContentHTML) + { + set_Value (COLUMNNAME_ContentHTML, ContentHTML); + } + + /** Get Content HTML. + @return Contains the content itself + */ + public String getContentHTML () + { + return (String)get_Value(COLUMNNAME_ContentHTML); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_Chat.java b/base/src/org/compiere/model/X_CM_Chat.java index 858065d78d..cca4ec2bc5 100644 --- a/base/src/org/compiere/model/X_CM_Chat.java +++ b/base/src/org/compiere/model/X_CM_Chat.java @@ -1,250 +1,284 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Chat - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Chat extends PO + +/** Generated Model for CM_Chat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Chat extends PO implements I_CM_Chat, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Chat_ID id -@param trxName transaction -*/ -public X_CM_Chat (Properties ctx, int CM_Chat_ID, String trxName) -{ -super (ctx, CM_Chat_ID, trxName); -/** if (CM_Chat_ID == 0) -{ -setAD_Table_ID (0); -setCM_Chat_ID (0); -setConfidentialType (null); -setDescription (null); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Chat (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Chat */ -public static final String Table_Name="CM_Chat"; - -/** AD_Table_ID=876 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Chat[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Chat Type. -@param CM_ChatType_ID Type of discussion / chat */ -public void setCM_ChatType_ID (int CM_ChatType_ID) -{ -if (CM_ChatType_ID <= 0) set_Value ("CM_ChatType_ID", null); - else -set_Value ("CM_ChatType_ID", Integer.valueOf(CM_ChatType_ID)); -} -/** Get Chat Type. -@return Type of discussion / chat */ -public int getCM_ChatType_ID() -{ -Integer ii = (Integer)get_Value("CM_ChatType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ChatType_ID */ -public static final String COLUMNNAME_CM_ChatType_ID = "CM_ChatType_ID"; -/** Set Chat. -@param CM_Chat_ID Chat or discussion thread */ -public void setCM_Chat_ID (int CM_Chat_ID) -{ -if (CM_Chat_ID < 1) throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); -set_ValueNoCheck ("CM_Chat_ID", Integer.valueOf(CM_Chat_ID)); -} -/** Get Chat. -@return Chat or discussion thread */ -public int getCM_Chat_ID() -{ -Integer ii = (Integer)get_Value("CM_Chat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Chat_ID */ -public static final String COLUMNNAME_CM_Chat_ID = "CM_Chat_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Chat (Properties ctx, int CM_Chat_ID, String trxName) + { + super (ctx, CM_Chat_ID, trxName); + /** if (CM_Chat_ID == 0) { setAD_Table_ID (0); + setCM_Chat_ID (0); + setConfidentialType (null); + setDescription (null); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_Chat (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Chat[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_ChatType getI_CM_ChatType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Chat Type. + @param CM_ChatType_ID + Type of discussion / chat + */ + public void setCM_ChatType_ID (int CM_ChatType_ID) + { + if (CM_ChatType_ID <= 0) set_Value (COLUMNNAME_CM_ChatType_ID, null); + else + set_Value (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); + } + + /** Get Chat Type. + @return Type of discussion / chat + */ + public int getCM_ChatType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Chat. + @param CM_Chat_ID + Chat or discussion thread + */ + public void setCM_Chat_ID (int CM_Chat_ID) + { + if (CM_Chat_ID < 1) + throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); + } + + /** Get Chat. + @return Chat or discussion thread + */ + public int getCM_Chat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Chat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** ConfidentialType AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPE_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPE_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPE_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPE_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPE_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPE_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPE_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPE_PrivateInformation = "P"; -/** Set Confidentiality. -@param ConfidentialType Type of Confidentiality */ -public void setConfidentialType (String ConfidentialType) -{ -if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); -if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); - else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialType = ConfidentialType.substring(0,0); -} -set_Value ("ConfidentialType", ConfidentialType); -} -/** Get Confidentiality. -@return Type of Confidentiality */ -public String getConfidentialType() -{ -return (String)get_Value("ConfidentialType"); -} -/** Column name ConfidentialType */ -public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDescription()); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Confidentiality. + @param ConfidentialType + Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType) + { +if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory");if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialType = ConfidentialType.substring(0, 0); + } + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); + } + + /** Get Confidentiality. + @return Type of Confidentiality + */ + public String getConfidentialType () + { + return (String)get_Value(COLUMNNAME_ConfidentialType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDescription()); + } /** ModerationType AD_Reference_ID=395 */ -public static final int MODERATIONTYPE_AD_Reference_ID=395; -/** After Publishing = A */ -public static final String MODERATIONTYPE_AfterPublishing = "A"; -/** Before Publishing = B */ -public static final String MODERATIONTYPE_BeforePublishing = "B"; -/** Not moderated = N */ +public static final int MODERATIONTYPE_AD_Reference_ID=395;/** After Publishing = A */ +public static final String MODERATIONTYPE_AfterPublishing = "A";/** Before Publishing = B */ +public static final String MODERATIONTYPE_BeforePublishing = "B";/** Not moderated = N */ public static final String MODERATIONTYPE_NotModerated = "N"; -/** Set Moderation Type. -@param ModerationType Type of moderation */ -public void setModerationType (String ModerationType) -{ -if (ModerationType == null || ModerationType.equals("A") || ModerationType.equals("B") || ModerationType.equals("N")); - else throw new IllegalArgumentException ("ModerationType Invalid value - " + ModerationType + " - Reference_ID=395 - A - B - N"); -if (ModerationType != null && ModerationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ModerationType = ModerationType.substring(0,0); -} -set_Value ("ModerationType", ModerationType); -} -/** Get Moderation Type. -@return Type of moderation */ -public String getModerationType() -{ -return (String)get_Value("ModerationType"); -} -/** Column name ModerationType */ -public static final String COLUMNNAME_ModerationType = "ModerationType"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -} + /** Set Moderation Type. + @param ModerationType + Type of moderation + */ + public void setModerationType (String ModerationType) + { +if (ModerationType == null || ModerationType.equals("A") || ModerationType.equals("B") || ModerationType.equals("N")); else throw new IllegalArgumentException ("ModerationType Invalid value - " + ModerationType + " - Reference_ID=395 - A - B - N"); if (ModerationType != null && ModerationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ModerationType = ModerationType.substring(0, 0); + } + set_Value (COLUMNNAME_ModerationType, ModerationType); + } + + /** Get Moderation Type. + @return Type of moderation + */ + public String getModerationType () + { + return (String)get_Value(COLUMNNAME_ModerationType); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_ChatEntry.java b/base/src/org/compiere/model/X_CM_ChatEntry.java index a501b2e10a..9abbcc8a18 100644 --- a/base/src/org/compiere/model/X_CM_ChatEntry.java +++ b/base/src/org/compiere/model/X_CM_ChatEntry.java @@ -1,322 +1,356 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_ChatEntry - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_ChatEntry extends PO + +/** Generated Model for CM_ChatEntry + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_ChatEntry extends PO implements I_CM_ChatEntry, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_ChatEntry_ID id -@param trxName transaction -*/ -public X_CM_ChatEntry (Properties ctx, int CM_ChatEntry_ID, String trxName) -{ -super (ctx, CM_ChatEntry_ID, trxName); -/** if (CM_ChatEntry_ID == 0) -{ -setCM_ChatEntry_ID (0); -setCM_Chat_ID (0); -setCharacterData (null); -setChatEntryType (null); // N -setConfidentialType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_ChatEntry (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_ChatEntry */ -public static final String Table_Name="CM_ChatEntry"; - -/** AD_Table_ID=877 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_ChatEntry[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_ChatEntry (Properties ctx, int CM_ChatEntry_ID, String trxName) + { + super (ctx, CM_ChatEntry_ID, trxName); + /** if (CM_ChatEntry_ID == 0) { setCM_ChatEntry_ID (0); + setCM_Chat_ID (0); + setCharacterData (null); + setChatEntryType (null); +// N + setConfidentialType (null); +} */ + } + + /** Load Constructor */ + public X_CM_ChatEntry (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_ChatEntry[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CM_ChatEntryGrandParent_ID AD_Reference_ID=399 */ public static final int CM_CHATENTRYGRANDPARENT_ID_AD_Reference_ID=399; -/** Set Chat Entry Grandparent. -@param CM_ChatEntryGrandParent_ID Link to Grand Parent (root level) */ -public void setCM_ChatEntryGrandParent_ID (int CM_ChatEntryGrandParent_ID) -{ -if (CM_ChatEntryGrandParent_ID <= 0) set_Value ("CM_ChatEntryGrandParent_ID", null); - else -set_Value ("CM_ChatEntryGrandParent_ID", Integer.valueOf(CM_ChatEntryGrandParent_ID)); -} -/** Get Chat Entry Grandparent. -@return Link to Grand Parent (root level) */ -public int getCM_ChatEntryGrandParent_ID() -{ -Integer ii = (Integer)get_Value("CM_ChatEntryGrandParent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ChatEntryGrandParent_ID */ -public static final String COLUMNNAME_CM_ChatEntryGrandParent_ID = "CM_ChatEntryGrandParent_ID"; + /** Set Chat Entry Grandparent. + @param CM_ChatEntryGrandParent_ID + Link to Grand Parent (root level) + */ + public void setCM_ChatEntryGrandParent_ID (int CM_ChatEntryGrandParent_ID) + { + if (CM_ChatEntryGrandParent_ID <= 0) set_Value (COLUMNNAME_CM_ChatEntryGrandParent_ID, null); + else + set_Value (COLUMNNAME_CM_ChatEntryGrandParent_ID, Integer.valueOf(CM_ChatEntryGrandParent_ID)); + } + + /** Get Chat Entry Grandparent. + @return Link to Grand Parent (root level) + */ + public int getCM_ChatEntryGrandParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatEntryGrandParent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CM_ChatEntryParent_ID AD_Reference_ID=399 */ public static final int CM_CHATENTRYPARENT_ID_AD_Reference_ID=399; -/** Set Chat Entry Parent. -@param CM_ChatEntryParent_ID Link to direct Parent */ -public void setCM_ChatEntryParent_ID (int CM_ChatEntryParent_ID) -{ -if (CM_ChatEntryParent_ID <= 0) set_Value ("CM_ChatEntryParent_ID", null); - else -set_Value ("CM_ChatEntryParent_ID", Integer.valueOf(CM_ChatEntryParent_ID)); -} -/** Get Chat Entry Parent. -@return Link to direct Parent */ -public int getCM_ChatEntryParent_ID() -{ -Integer ii = (Integer)get_Value("CM_ChatEntryParent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ChatEntryParent_ID */ -public static final String COLUMNNAME_CM_ChatEntryParent_ID = "CM_ChatEntryParent_ID"; -/** Set Chat Entry. -@param CM_ChatEntry_ID Individual Chat / Discussion Entry */ -public void setCM_ChatEntry_ID (int CM_ChatEntry_ID) -{ -if (CM_ChatEntry_ID < 1) throw new IllegalArgumentException ("CM_ChatEntry_ID is mandatory."); -set_ValueNoCheck ("CM_ChatEntry_ID", Integer.valueOf(CM_ChatEntry_ID)); -} -/** Get Chat Entry. -@return Individual Chat / Discussion Entry */ -public int getCM_ChatEntry_ID() -{ -Integer ii = (Integer)get_Value("CM_ChatEntry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getCM_ChatEntry_ID())); -} -/** Column name CM_ChatEntry_ID */ -public static final String COLUMNNAME_CM_ChatEntry_ID = "CM_ChatEntry_ID"; -/** Set Chat. -@param CM_Chat_ID Chat or discussion thread */ -public void setCM_Chat_ID (int CM_Chat_ID) -{ -if (CM_Chat_ID < 1) throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); -set_ValueNoCheck ("CM_Chat_ID", Integer.valueOf(CM_Chat_ID)); -} -/** Get Chat. -@return Chat or discussion thread */ -public int getCM_Chat_ID() -{ -Integer ii = (Integer)get_Value("CM_Chat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Chat_ID */ -public static final String COLUMNNAME_CM_Chat_ID = "CM_Chat_ID"; -/** Set Character Data. -@param CharacterData Long Character Field */ -public void setCharacterData (String CharacterData) -{ -if (CharacterData == null) throw new IllegalArgumentException ("CharacterData is mandatory."); -set_ValueNoCheck ("CharacterData", CharacterData); -} -/** Get Character Data. -@return Long Character Field */ -public String getCharacterData() -{ -return (String)get_Value("CharacterData"); -} -/** Column name CharacterData */ -public static final String COLUMNNAME_CharacterData = "CharacterData"; + /** Set Chat Entry Parent. + @param CM_ChatEntryParent_ID + Link to direct Parent + */ + public void setCM_ChatEntryParent_ID (int CM_ChatEntryParent_ID) + { + if (CM_ChatEntryParent_ID <= 0) set_Value (COLUMNNAME_CM_ChatEntryParent_ID, null); + else + set_Value (COLUMNNAME_CM_ChatEntryParent_ID, Integer.valueOf(CM_ChatEntryParent_ID)); + } + + /** Get Chat Entry Parent. + @return Link to direct Parent + */ + public int getCM_ChatEntryParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatEntryParent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Chat Entry. + @param CM_ChatEntry_ID + Individual Chat / Discussion Entry + */ + public void setCM_ChatEntry_ID (int CM_ChatEntry_ID) + { + if (CM_ChatEntry_ID < 1) + throw new IllegalArgumentException ("CM_ChatEntry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_ChatEntry_ID, Integer.valueOf(CM_ChatEntry_ID)); + } + + /** Get Chat Entry. + @return Individual Chat / Discussion Entry + */ + public int getCM_ChatEntry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatEntry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getCM_ChatEntry_ID())); + } + + public I_CM_Chat getI_CM_Chat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Chat. + @param CM_Chat_ID + Chat or discussion thread + */ + public void setCM_Chat_ID (int CM_Chat_ID) + { + if (CM_Chat_ID < 1) + throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); + } + + /** Get Chat. + @return Chat or discussion thread + */ + public int getCM_Chat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Chat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Character Data. + @param CharacterData + Long Character Field + */ + public void setCharacterData (String CharacterData) + { + if (CharacterData == null) + throw new IllegalArgumentException ("CharacterData is mandatory."); + set_ValueNoCheck (COLUMNNAME_CharacterData, CharacterData); + } + + /** Get Character Data. + @return Long Character Field + */ + public String getCharacterData () + { + return (String)get_Value(COLUMNNAME_CharacterData); + } /** ChatEntryType AD_Reference_ID=398 */ -public static final int CHATENTRYTYPE_AD_Reference_ID=398; -/** Forum (threaded) = F */ -public static final String CHATENTRYTYPE_ForumThreaded = "F"; -/** Note (flat) = N */ -public static final String CHATENTRYTYPE_NoteFlat = "N"; -/** Wiki = W */ +public static final int CHATENTRYTYPE_AD_Reference_ID=398;/** Forum (threaded) = F */ +public static final String CHATENTRYTYPE_ForumThreaded = "F";/** Note (flat) = N */ +public static final String CHATENTRYTYPE_NoteFlat = "N";/** Wiki = W */ public static final String CHATENTRYTYPE_Wiki = "W"; -/** Set Chat Entry Type. -@param ChatEntryType Type of Chat/Forum Entry */ -public void setChatEntryType (String ChatEntryType) -{ -if (ChatEntryType == null) throw new IllegalArgumentException ("ChatEntryType is mandatory"); -if (ChatEntryType.equals("F") || ChatEntryType.equals("N") || ChatEntryType.equals("W")); - else throw new IllegalArgumentException ("ChatEntryType Invalid value - " + ChatEntryType + " - Reference_ID=398 - F - N - W"); -if (ChatEntryType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ChatEntryType = ChatEntryType.substring(0,0); -} -set_Value ("ChatEntryType", ChatEntryType); -} -/** Get Chat Entry Type. -@return Type of Chat/Forum Entry */ -public String getChatEntryType() -{ -return (String)get_Value("ChatEntryType"); -} -/** Column name ChatEntryType */ -public static final String COLUMNNAME_ChatEntryType = "ChatEntryType"; + /** Set Chat Entry Type. + @param ChatEntryType + Type of Chat/Forum Entry + */ + public void setChatEntryType (String ChatEntryType) + { +if (ChatEntryType == null) throw new IllegalArgumentException ("ChatEntryType is mandatory");if (ChatEntryType.equals("F") || ChatEntryType.equals("N") || ChatEntryType.equals("W")); else throw new IllegalArgumentException ("ChatEntryType Invalid value - " + ChatEntryType + " - Reference_ID=398 - F - N - W"); if (ChatEntryType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ChatEntryType = ChatEntryType.substring(0, 0); + } + set_Value (COLUMNNAME_ChatEntryType, ChatEntryType); + } + + /** Get Chat Entry Type. + @return Type of Chat/Forum Entry + */ + public String getChatEntryType () + { + return (String)get_Value(COLUMNNAME_ChatEntryType); + } /** ConfidentialType AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPE_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPE_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPE_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPE_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPE_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPE_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPE_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPE_PrivateInformation = "P"; -/** Set Confidentiality. -@param ConfidentialType Type of Confidentiality */ -public void setConfidentialType (String ConfidentialType) -{ -if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); -if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); - else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialType = ConfidentialType.substring(0,0); -} -set_Value ("ConfidentialType", ConfidentialType); -} -/** Get Confidentiality. -@return Type of Confidentiality */ -public String getConfidentialType() -{ -return (String)get_Value("ConfidentialType"); -} -/** Column name ConfidentialType */ -public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + /** Set Confidentiality. + @param ConfidentialType + Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType) + { +if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory");if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialType = ConfidentialType.substring(0, 0); + } + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); + } + + /** Get Confidentiality. + @return Type of Confidentiality + */ + public String getConfidentialType () + { + return (String)get_Value(COLUMNNAME_ConfidentialType); + } /** ModeratorStatus AD_Reference_ID=396 */ -public static final int MODERATORSTATUS_AD_Reference_ID=396; -/** Not Displayed = N */ -public static final String MODERATORSTATUS_NotDisplayed = "N"; -/** Published = P */ -public static final String MODERATORSTATUS_Published = "P"; -/** To be reviewed = R */ -public static final String MODERATORSTATUS_ToBeReviewed = "R"; -/** Suspicious = S */ +public static final int MODERATORSTATUS_AD_Reference_ID=396;/** Not Displayed = N */ +public static final String MODERATORSTATUS_NotDisplayed = "N";/** Published = P */ +public static final String MODERATORSTATUS_Published = "P";/** To be reviewed = R */ +public static final String MODERATORSTATUS_ToBeReviewed = "R";/** Suspicious = S */ public static final String MODERATORSTATUS_Suspicious = "S"; -/** Set Moderation Status. -@param ModeratorStatus Status of Moderation */ -public void setModeratorStatus (String ModeratorStatus) -{ -if (ModeratorStatus == null || ModeratorStatus.equals("N") || ModeratorStatus.equals("P") || ModeratorStatus.equals("R") || ModeratorStatus.equals("S")); - else throw new IllegalArgumentException ("ModeratorStatus Invalid value - " + ModeratorStatus + " - Reference_ID=396 - N - P - R - S"); -if (ModeratorStatus != null && ModeratorStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ModeratorStatus = ModeratorStatus.substring(0,0); -} -set_Value ("ModeratorStatus", ModeratorStatus); -} -/** Get Moderation Status. -@return Status of Moderation */ -public String getModeratorStatus() -{ -return (String)get_Value("ModeratorStatus"); -} -/** Column name ModeratorStatus */ -public static final String COLUMNNAME_ModeratorStatus = "ModeratorStatus"; -/** Set Subject. -@param Subject Email Message Subject */ -public void setSubject (String Subject) -{ -if (Subject != null && Subject.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Subject = Subject.substring(0,254); -} -set_Value ("Subject", Subject); -} -/** Get Subject. -@return Email Message Subject */ -public String getSubject() -{ -return (String)get_Value("Subject"); -} -/** Column name Subject */ -public static final String COLUMNNAME_Subject = "Subject"; -} + /** Set Moderation Status. + @param ModeratorStatus + Status of Moderation + */ + public void setModeratorStatus (String ModeratorStatus) + { +if (ModeratorStatus == null || ModeratorStatus.equals("N") || ModeratorStatus.equals("P") || ModeratorStatus.equals("R") || ModeratorStatus.equals("S")); else throw new IllegalArgumentException ("ModeratorStatus Invalid value - " + ModeratorStatus + " - Reference_ID=396 - N - P - R - S"); if (ModeratorStatus != null && ModeratorStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + ModeratorStatus = ModeratorStatus.substring(0, 0); + } + set_Value (COLUMNNAME_ModeratorStatus, ModeratorStatus); + } + + /** Get Moderation Status. + @return Status of Moderation + */ + public String getModeratorStatus () + { + return (String)get_Value(COLUMNNAME_ModeratorStatus); + } + + /** Set Subject. + @param Subject + Email Message Subject + */ + public void setSubject (String Subject) + { + if (Subject != null && Subject.length() > 255) + { + log.warning("Length > 255 - truncated"); + Subject = Subject.substring(0, 254); + } + set_Value (COLUMNNAME_Subject, Subject); + } + + /** Get Subject. + @return Email Message Subject + */ + public String getSubject () + { + return (String)get_Value(COLUMNNAME_Subject); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_ChatType.java b/base/src/org/compiere/model/X_CM_ChatType.java index 29e4b9cdf4..21c71a087c 100644 --- a/base/src/org/compiere/model/X_CM_ChatType.java +++ b/base/src/org/compiere/model/X_CM_ChatType.java @@ -1,199 +1,216 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_ChatType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_ChatType extends PO + +/** Generated Model for CM_ChatType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_ChatType extends PO implements I_CM_ChatType, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_ChatType_ID id -@param trxName transaction -*/ -public X_CM_ChatType (Properties ctx, int CM_ChatType_ID, String trxName) -{ -super (ctx, CM_ChatType_ID, trxName); -/** if (CM_ChatType_ID == 0) -{ -setAD_Table_ID (0); -setCM_ChatType_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_ChatType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_ChatType */ -public static final String Table_Name="CM_ChatType"; - -/** AD_Table_ID=874 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_ChatType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Chat Type. -@param CM_ChatType_ID Type of discussion / chat */ -public void setCM_ChatType_ID (int CM_ChatType_ID) -{ -if (CM_ChatType_ID < 1) throw new IllegalArgumentException ("CM_ChatType_ID is mandatory."); -set_ValueNoCheck ("CM_ChatType_ID", Integer.valueOf(CM_ChatType_ID)); -} -/** Get Chat Type. -@return Type of discussion / chat */ -public int getCM_ChatType_ID() -{ -Integer ii = (Integer)get_Value("CM_ChatType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ChatType_ID */ -public static final String COLUMNNAME_CM_ChatType_ID = "CM_ChatType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_ChatType (Properties ctx, int CM_ChatType_ID, String trxName) + { + super (ctx, CM_ChatType_ID, trxName); + /** if (CM_ChatType_ID == 0) { setAD_Table_ID (0); + setCM_ChatType_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_ChatType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_ChatType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Chat Type. + @param CM_ChatType_ID + Type of discussion / chat + */ + public void setCM_ChatType_ID (int CM_ChatType_ID) + { + if (CM_ChatType_ID < 1) + throw new IllegalArgumentException ("CM_ChatType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); + } + + /** Get Chat Type. + @return Type of discussion / chat + */ + public int getCM_ChatType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** ModerationType AD_Reference_ID=395 */ -public static final int MODERATIONTYPE_AD_Reference_ID=395; -/** After Publishing = A */ -public static final String MODERATIONTYPE_AfterPublishing = "A"; -/** Before Publishing = B */ -public static final String MODERATIONTYPE_BeforePublishing = "B"; -/** Not moderated = N */ +public static final int MODERATIONTYPE_AD_Reference_ID=395;/** After Publishing = A */ +public static final String MODERATIONTYPE_AfterPublishing = "A";/** Before Publishing = B */ +public static final String MODERATIONTYPE_BeforePublishing = "B";/** Not moderated = N */ public static final String MODERATIONTYPE_NotModerated = "N"; -/** Set Moderation Type. -@param ModerationType Type of moderation */ -public void setModerationType (String ModerationType) -{ -if (ModerationType == null || ModerationType.equals("A") || ModerationType.equals("B") || ModerationType.equals("N")); - else throw new IllegalArgumentException ("ModerationType Invalid value - " + ModerationType + " - Reference_ID=395 - A - B - N"); -if (ModerationType != null && ModerationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ModerationType = ModerationType.substring(0,0); -} -set_Value ("ModerationType", ModerationType); -} -/** Get Moderation Type. -@return Type of moderation */ -public String getModerationType() -{ -return (String)get_Value("ModerationType"); -} -/** Column name ModerationType */ -public static final String COLUMNNAME_ModerationType = "ModerationType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Moderation Type. + @param ModerationType + Type of moderation + */ + public void setModerationType (String ModerationType) + { +if (ModerationType == null || ModerationType.equals("A") || ModerationType.equals("B") || ModerationType.equals("N")); else throw new IllegalArgumentException ("ModerationType Invalid value - " + ModerationType + " - Reference_ID=395 - A - B - N"); if (ModerationType != null && ModerationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ModerationType = ModerationType.substring(0, 0); + } + set_Value (COLUMNNAME_ModerationType, ModerationType); + } + + /** Get Moderation Type. + @return Type of moderation + */ + public String getModerationType () + { + return (String)get_Value(COLUMNNAME_ModerationType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java index 595a5f7143..05dc786361 100644 --- a/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatTypeUpdate.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_ChatTypeUpdate - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_ChatTypeUpdate extends PO + +/** Generated Model for CM_ChatTypeUpdate + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_ChatTypeUpdate extends PO implements I_CM_ChatTypeUpdate, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_ChatTypeUpdate_ID id -@param trxName transaction -*/ -public X_CM_ChatTypeUpdate (Properties ctx, int CM_ChatTypeUpdate_ID, String trxName) -{ -super (ctx, CM_ChatTypeUpdate_ID, trxName); -/** if (CM_ChatTypeUpdate_ID == 0) -{ -setAD_User_ID (0); -setCM_ChatType_ID (0); -setIsSelfService (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_ChatTypeUpdate (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_ChatTypeUpdate */ -public static final String Table_Name="CM_ChatTypeUpdate"; - -/** AD_Table_ID=875 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_ChatTypeUpdate[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Chat Type. -@param CM_ChatType_ID Type of discussion / chat */ -public void setCM_ChatType_ID (int CM_ChatType_ID) -{ -if (CM_ChatType_ID < 1) throw new IllegalArgumentException ("CM_ChatType_ID is mandatory."); -set_ValueNoCheck ("CM_ChatType_ID", Integer.valueOf(CM_ChatType_ID)); -} -/** Get Chat Type. -@return Type of discussion / chat */ -public int getCM_ChatType_ID() -{ -Integer ii = (Integer)get_Value("CM_ChatType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ChatType_ID */ -public static final String COLUMNNAME_CM_ChatType_ID = "CM_ChatType_ID"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_ChatTypeUpdate (Properties ctx, int CM_ChatTypeUpdate_ID, String trxName) + { + super (ctx, CM_ChatTypeUpdate_ID, trxName); + /** if (CM_ChatTypeUpdate_ID == 0) { setAD_User_ID (0); + setCM_ChatType_ID (0); + setIsSelfService (false); +} */ + } + + /** Load Constructor */ + public X_CM_ChatTypeUpdate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_ChatTypeUpdate[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_ChatType getI_CM_ChatType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Chat Type. + @param CM_ChatType_ID + Type of discussion / chat + */ + public void setCM_ChatType_ID (int CM_ChatType_ID) + { + if (CM_ChatType_ID < 1) + throw new IllegalArgumentException ("CM_ChatType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_ChatType_ID, Integer.valueOf(CM_ChatType_ID)); + } + + /** Get Chat Type. + @return Type of discussion / chat + */ + public int getCM_ChatType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_ChatUpdate.java b/base/src/org/compiere/model/X_CM_ChatUpdate.java index 405f24eac1..8f8e3d5f65 100644 --- a/base/src/org/compiere/model/X_CM_ChatUpdate.java +++ b/base/src/org/compiere/model/X_CM_ChatUpdate.java @@ -1,144 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_ChatUpdate - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_ChatUpdate extends PO + +/** Generated Model for CM_ChatUpdate + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_ChatUpdate extends PO implements I_CM_ChatUpdate, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_ChatUpdate_ID id -@param trxName transaction -*/ -public X_CM_ChatUpdate (Properties ctx, int CM_ChatUpdate_ID, String trxName) -{ -super (ctx, CM_ChatUpdate_ID, trxName); -/** if (CM_ChatUpdate_ID == 0) -{ -setAD_User_ID (0); -setCM_Chat_ID (0); -setIsSelfService (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_ChatUpdate (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_ChatUpdate */ -public static final String Table_Name="CM_ChatUpdate"; - -/** AD_Table_ID=878 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_ChatUpdate[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Chat. -@param CM_Chat_ID Chat or discussion thread */ -public void setCM_Chat_ID (int CM_Chat_ID) -{ -if (CM_Chat_ID < 1) throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); -set_ValueNoCheck ("CM_Chat_ID", Integer.valueOf(CM_Chat_ID)); -} -/** Get Chat. -@return Chat or discussion thread */ -public int getCM_Chat_ID() -{ -Integer ii = (Integer)get_Value("CM_Chat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Chat_ID */ -public static final String COLUMNNAME_CM_Chat_ID = "CM_Chat_ID"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_ChatUpdate (Properties ctx, int CM_ChatUpdate_ID, String trxName) + { + super (ctx, CM_ChatUpdate_ID, trxName); + /** if (CM_ChatUpdate_ID == 0) { setAD_User_ID (0); + setCM_Chat_ID (0); + setIsSelfService (false); +} */ + } + + /** Load Constructor */ + public X_CM_ChatUpdate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_ChatUpdate[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Chat getI_CM_Chat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Chat. + @param CM_Chat_ID + Chat or discussion thread + */ + public void setCM_Chat_ID (int CM_Chat_ID) + { + if (CM_Chat_ID < 1) + throw new IllegalArgumentException ("CM_Chat_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Chat_ID, Integer.valueOf(CM_Chat_ID)); + } + + /** Get Chat. + @return Chat or discussion thread + */ + public int getCM_Chat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Chat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_Container.java b/base/src/org/compiere/model/X_CM_Container.java index 86707e2541..7908692e9d 100644 --- a/base/src/org/compiere/model/X_CM_Container.java +++ b/base/src/org/compiere/model/X_CM_Container.java @@ -1,633 +1,740 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Container - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Container extends PO + +/** Generated Model for CM_Container + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Container extends PO implements I_CM_Container, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Container_ID id -@param trxName transaction -*/ -public X_CM_Container (Properties ctx, int CM_Container_ID, String trxName) -{ -super (ctx, CM_Container_ID, trxName); -/** if (CM_Container_ID == 0) -{ -setCM_Container_ID (0); -setCM_Template_ID (0); -setCM_WebProject_ID (0); -setContainerType (null); // D -setIsIndexed (false); -setIsSecure (false); -setIsSummary (false); -setMeta_Description (null); -setMeta_Keywords (null); -setName (null); -setNotice (null); -setPriority (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Container (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Container */ -public static final String Table_Name="CM_Container"; - -/** AD_Table_ID=855 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Container[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Container (Properties ctx, int CM_Container_ID, String trxName) + { + super (ctx, CM_Container_ID, trxName); + /** if (CM_Container_ID == 0) { setCM_Container_ID (0); + setCM_Template_ID (0); + setCM_WebProject_ID (0); + setContainerType (null); +// D + setIsIndexed (false); + setIsSecure (false); + setIsSummary (false); + setMeta_Description (null); + setMeta_Keywords (null); + setName (null); + setNotice (null); + setPriority (0); +} */ + } + + /** Load Constructor */ + public X_CM_Container (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Container[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** CM_ContainerLink_ID AD_Reference_ID=386 */ public static final int CM_CONTAINERLINK_ID_AD_Reference_ID=386; -/** Set Container Link. -@param CM_ContainerLink_ID Link to another Container in the Web Project */ -public void setCM_ContainerLink_ID (int CM_ContainerLink_ID) -{ -if (CM_ContainerLink_ID <= 0) set_Value ("CM_ContainerLink_ID", null); - else -set_Value ("CM_ContainerLink_ID", Integer.valueOf(CM_ContainerLink_ID)); -} -/** Get Container Link. -@return Link to another Container in the Web Project */ -public int getCM_ContainerLink_ID() -{ -Integer ii = (Integer)get_Value("CM_ContainerLink_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ContainerLink_ID */ -public static final String COLUMNNAME_CM_ContainerLink_ID = "CM_ContainerLink_ID"; -/** Set Web Container. -@param CM_Container_ID Web Container contains content like images, text etc. */ -public void setCM_Container_ID (int CM_Container_ID) -{ -if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory."); -set_ValueNoCheck ("CM_Container_ID", Integer.valueOf(CM_Container_ID)); -} -/** Get Web Container. -@return Web Container contains content like images, text etc. */ -public int getCM_Container_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_ID */ -public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; -/** Set Template. -@param CM_Template_ID Template defines how content is displayed */ -public void setCM_Template_ID (int CM_Template_ID) -{ -if (CM_Template_ID < 1) throw new IllegalArgumentException ("CM_Template_ID is mandatory."); -set_ValueNoCheck ("CM_Template_ID", Integer.valueOf(CM_Template_ID)); -} -/** Get Template. -@return Template defines how content is displayed */ -public int getCM_Template_ID() -{ -Integer ii = (Integer)get_Value("CM_Template_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Template_ID */ -public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set External Link (URL). -@param ContainerLinkURL External Link (IRL) for the Container */ -public void setContainerLinkURL (String ContainerLinkURL) -{ -if (ContainerLinkURL != null && ContainerLinkURL.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ContainerLinkURL = ContainerLinkURL.substring(0,59); -} -set_Value ("ContainerLinkURL", ContainerLinkURL); -} -/** Get External Link (URL). -@return External Link (IRL) for the Container */ -public String getContainerLinkURL() -{ -return (String)get_Value("ContainerLinkURL"); -} -/** Column name ContainerLinkURL */ -public static final String COLUMNNAME_ContainerLinkURL = "ContainerLinkURL"; + /** Set Container Link. + @param CM_ContainerLink_ID + Link to another Container in the Web Project + */ + public void setCM_ContainerLink_ID (int CM_ContainerLink_ID) + { + if (CM_ContainerLink_ID <= 0) set_Value (COLUMNNAME_CM_ContainerLink_ID, null); + else + set_Value (COLUMNNAME_CM_ContainerLink_ID, Integer.valueOf(CM_ContainerLink_ID)); + } + + /** Get Container Link. + @return Link to another Container in the Web Project + */ + public int getCM_ContainerLink_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ContainerLink_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Container. + @param CM_Container_ID + Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID) + { + if (CM_Container_ID < 1) + throw new IllegalArgumentException ("CM_Container_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + } + + /** Get Web Container. + @return Web Container contains content like images, text etc. + */ + public int getCM_Container_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Template getI_CM_Template() throws Exception + { + 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 e; + } + return result; + } + + /** Set Template. + @param CM_Template_ID + Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID) + { + if (CM_Template_ID < 1) + throw new IllegalArgumentException ("CM_Template_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + } + + /** Get Template. + @return Template defines how content is displayed + */ + public int getCM_Template_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Template_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set External Link (URL). + @param ContainerLinkURL + External Link (IRL) for the Container + */ + public void setContainerLinkURL (String ContainerLinkURL) + { + if (ContainerLinkURL != null && ContainerLinkURL.length() > 60) + { + log.warning("Length > 60 - truncated"); + ContainerLinkURL = ContainerLinkURL.substring(0, 59); + } + set_Value (COLUMNNAME_ContainerLinkURL, ContainerLinkURL); + } + + /** Get External Link (URL). + @return External Link (IRL) for the Container + */ + public String getContainerLinkURL () + { + return (String)get_Value(COLUMNNAME_ContainerLinkURL); + } /** ContainerType AD_Reference_ID=385 */ -public static final int CONTAINERTYPE_AD_Reference_ID=385; -/** Document = D */ -public static final String CONTAINERTYPE_Document = "D"; -/** Internal Link = L */ -public static final String CONTAINERTYPE_InternalLink = "L"; -/** External URL = U */ +public static final int CONTAINERTYPE_AD_Reference_ID=385;/** Document = D */ +public static final String CONTAINERTYPE_Document = "D";/** Internal Link = L */ +public static final String CONTAINERTYPE_InternalLink = "L";/** External URL = U */ public static final String CONTAINERTYPE_ExternalURL = "U"; -/** Set Web Container Type. -@param ContainerType Web Container Type */ -public void setContainerType (String ContainerType) -{ -if (ContainerType == null) throw new IllegalArgumentException ("ContainerType is mandatory"); -if (ContainerType.equals("D") || ContainerType.equals("L") || ContainerType.equals("U")); - else throw new IllegalArgumentException ("ContainerType Invalid value - " + ContainerType + " - Reference_ID=385 - D - L - U"); -if (ContainerType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ContainerType = ContainerType.substring(0,0); -} -set_Value ("ContainerType", ContainerType); -} -/** Get Web Container Type. -@return Web Container Type */ -public String getContainerType() -{ -return (String)get_Value("ContainerType"); -} -/** Column name ContainerType */ -public static final String COLUMNNAME_ContainerType = "ContainerType"; -/** Set ContainerXML. -@param ContainerXML Autogenerated Containerdefinition as XML Code */ -public void setContainerXML (String ContainerXML) -{ -if (ContainerXML != null && ContainerXML.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ContainerXML = ContainerXML.substring(0,1999); -} -set_ValueNoCheck ("ContainerXML", ContainerXML); -} -/** Get ContainerXML. -@return Autogenerated Containerdefinition as XML Code */ -public String getContainerXML() -{ -return (String)get_Value("ContainerXML"); -} -/** Column name ContainerXML */ -public static final String COLUMNNAME_ContainerXML = "ContainerXML"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Description = Description.substring(0,1999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Indexed. -@param IsIndexed Index the document for the internal search engine */ -public void setIsIndexed (boolean IsIndexed) -{ -set_Value ("IsIndexed", Boolean.valueOf(IsIndexed)); -} -/** Get Indexed. -@return Index the document for the internal search engine */ -public boolean isIndexed() -{ -Object oo = get_Value("IsIndexed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsIndexed */ -public static final String COLUMNNAME_IsIndexed = "IsIndexed"; -/** Set Secure content. -@param IsSecure Defines whether content needs to get encrypted */ -public void setIsSecure (boolean IsSecure) -{ -set_Value ("IsSecure", Boolean.valueOf(IsSecure)); -} -/** Get Secure content. -@return Defines whether content needs to get encrypted */ -public boolean isSecure() -{ -Object oo = get_Value("IsSecure"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSecure */ -public static final String COLUMNNAME_IsSecure = "IsSecure"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_ValueNoCheck ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Meta Author. -@param Meta_Author Author of the content */ -public void setMeta_Author (String Meta_Author) -{ -if (Meta_Author != null && Meta_Author.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Author = Meta_Author.substring(0,1999); -} -set_Value ("Meta_Author", Meta_Author); -} -/** Get Meta Author. -@return Author of the content */ -public String getMeta_Author() -{ -return (String)get_Value("Meta_Author"); -} -/** Column name Meta_Author */ -public static final String COLUMNNAME_Meta_Author = "Meta_Author"; -/** Set Meta Content Type. -@param Meta_Content Defines the type of content i.e. "text/html; - charset=UTF-8" */ -public void setMeta_Content (String Meta_Content) -{ -if (Meta_Content != null && Meta_Content.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Content = Meta_Content.substring(0,1999); -} -set_Value ("Meta_Content", Meta_Content); -} -/** Get Meta Content Type. -@return Defines the type of content i.e. "text/html; - charset=UTF-8" */ -public String getMeta_Content() -{ -return (String)get_Value("Meta_Content"); -} -/** Column name Meta_Content */ -public static final String COLUMNNAME_Meta_Content = "Meta_Content"; -/** Set Meta Copyright. -@param Meta_Copyright Contains Copyright information for the content */ -public void setMeta_Copyright (String Meta_Copyright) -{ -if (Meta_Copyright != null && Meta_Copyright.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Copyright = Meta_Copyright.substring(0,1999); -} -set_Value ("Meta_Copyright", Meta_Copyright); -} -/** Get Meta Copyright. -@return Contains Copyright information for the content */ -public String getMeta_Copyright() -{ -return (String)get_Value("Meta_Copyright"); -} -/** Column name Meta_Copyright */ -public static final String COLUMNNAME_Meta_Copyright = "Meta_Copyright"; -/** Set Meta Description. -@param Meta_Description Meta info describing the contents of the page */ -public void setMeta_Description (String Meta_Description) -{ -if (Meta_Description == null) throw new IllegalArgumentException ("Meta_Description is mandatory."); -if (Meta_Description.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Description = Meta_Description.substring(0,1999); -} -set_Value ("Meta_Description", Meta_Description); -} -/** Get Meta Description. -@return Meta info describing the contents of the page */ -public String getMeta_Description() -{ -return (String)get_Value("Meta_Description"); -} -/** Column name Meta_Description */ -public static final String COLUMNNAME_Meta_Description = "Meta_Description"; -/** Set Meta Keywords. -@param Meta_Keywords Contains the keywords for the content */ -public void setMeta_Keywords (String Meta_Keywords) -{ -if (Meta_Keywords == null) throw new IllegalArgumentException ("Meta_Keywords is mandatory."); -if (Meta_Keywords.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Keywords = Meta_Keywords.substring(0,1999); -} -set_Value ("Meta_Keywords", Meta_Keywords); -} -/** Get Meta Keywords. -@return Contains the keywords for the content */ -public String getMeta_Keywords() -{ -return (String)get_Value("Meta_Keywords"); -} -/** Column name Meta_Keywords */ -public static final String COLUMNNAME_Meta_Keywords = "Meta_Keywords"; -/** Set Meta Language. -@param Meta_Language Language HTML Meta Tag */ -public void setMeta_Language (String Meta_Language) -{ -if (Meta_Language != null && Meta_Language.length() > 2) -{ -log.warning("Length > 2 - truncated"); -Meta_Language = Meta_Language.substring(0,1); -} -set_Value ("Meta_Language", Meta_Language); -} -/** Get Meta Language. -@return Language HTML Meta Tag */ -public String getMeta_Language() -{ -return (String)get_Value("Meta_Language"); -} -/** Column name Meta_Language */ -public static final String COLUMNNAME_Meta_Language = "Meta_Language"; -/** Set Meta Publisher. -@param Meta_Publisher Meta Publisher defines the publisher of the content */ -public void setMeta_Publisher (String Meta_Publisher) -{ -if (Meta_Publisher != null && Meta_Publisher.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Publisher = Meta_Publisher.substring(0,1999); -} -set_Value ("Meta_Publisher", Meta_Publisher); -} -/** Get Meta Publisher. -@return Meta Publisher defines the publisher of the content */ -public String getMeta_Publisher() -{ -return (String)get_Value("Meta_Publisher"); -} -/** Column name Meta_Publisher */ -public static final String COLUMNNAME_Meta_Publisher = "Meta_Publisher"; -/** Set Meta RobotsTag. -@param Meta_RobotsTag RobotsTag defines how search robots should handle this content */ -public void setMeta_RobotsTag (String Meta_RobotsTag) -{ -if (Meta_RobotsTag != null && Meta_RobotsTag.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_RobotsTag = Meta_RobotsTag.substring(0,1999); -} -set_Value ("Meta_RobotsTag", Meta_RobotsTag); -} -/** Get Meta RobotsTag. -@return RobotsTag defines how search robots should handle this content */ -public String getMeta_RobotsTag() -{ -return (String)get_Value("Meta_RobotsTag"); -} -/** Column name Meta_RobotsTag */ -public static final String COLUMNNAME_Meta_RobotsTag = "Meta_RobotsTag"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Notice. -@param Notice Contains last write notice */ -public void setNotice (String Notice) -{ -if (Notice == null) throw new IllegalArgumentException ("Notice is mandatory."); -if (Notice.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Notice = Notice.substring(0,1999); -} -set_Value ("Notice", Notice); -} -/** Get Notice. -@return Contains last write notice */ -public String getNotice() -{ -return (String)get_Value("Notice"); -} -/** Column name Notice */ -public static final String COLUMNNAME_Notice = "Notice"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (int Priority) -{ -set_Value ("Priority", Integer.valueOf(Priority)); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public int getPriority() -{ -Integer ii = (Integer)get_Value("Priority"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; -/** Set Relative URL. -@param RelativeURL Contains the relative URL for the container */ -public void setRelativeURL (String RelativeURL) -{ -if (RelativeURL != null && RelativeURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -RelativeURL = RelativeURL.substring(0,119); -} -set_Value ("RelativeURL", RelativeURL); -} -/** Get Relative URL. -@return Contains the relative URL for the container */ -public String getRelativeURL() -{ -return (String)get_Value("RelativeURL"); -} -/** Column name RelativeURL */ -public static final String COLUMNNAME_RelativeURL = "RelativeURL"; -/** Set StructureXML. -@param StructureXML Autogenerated Containerdefinition as XML Code */ -public void setStructureXML (String StructureXML) -{ -if (StructureXML != null && StructureXML.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -StructureXML = StructureXML.substring(0,1999); -} -set_Value ("StructureXML", StructureXML); -} -/** Get StructureXML. -@return Autogenerated Containerdefinition as XML Code */ -public String getStructureXML() -{ -return (String)get_Value("StructureXML"); -} -/** Column name StructureXML */ -public static final String COLUMNNAME_StructureXML = "StructureXML"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title != null && Title.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Title = Title.substring(0,59); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -} + /** Set Web Container Type. + @param ContainerType + Web Container Type + */ + public void setContainerType (String ContainerType) + { +if (ContainerType == null) throw new IllegalArgumentException ("ContainerType is mandatory");if (ContainerType.equals("D") || ContainerType.equals("L") || ContainerType.equals("U")); else throw new IllegalArgumentException ("ContainerType Invalid value - " + ContainerType + " - Reference_ID=385 - D - L - U"); if (ContainerType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ContainerType = ContainerType.substring(0, 0); + } + set_Value (COLUMNNAME_ContainerType, ContainerType); + } + + /** Get Web Container Type. + @return Web Container Type + */ + public String getContainerType () + { + return (String)get_Value(COLUMNNAME_ContainerType); + } + + /** Set ContainerXML. + @param ContainerXML + Autogenerated Containerdefinition as XML Code + */ + public void setContainerXML (String ContainerXML) + { + if (ContainerXML != null && ContainerXML.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ContainerXML = ContainerXML.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_ContainerXML, ContainerXML); + } + + /** Get ContainerXML. + @return Autogenerated Containerdefinition as XML Code + */ + public String getContainerXML () + { + return (String)get_Value(COLUMNNAME_ContainerXML); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Description = Description.substring(0, 1999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Indexed. + @param IsIndexed + Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed) + { + set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); + } + + /** Get Indexed. + @return Index the document for the internal search engine + */ + public boolean isIndexed () + { + Object oo = get_Value(COLUMNNAME_IsIndexed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Secure content. + @param IsSecure + Defines whether content needs to get encrypted + */ + public void setIsSecure (boolean IsSecure) + { + set_Value (COLUMNNAME_IsSecure, Boolean.valueOf(IsSecure)); + } + + /** Get Secure content. + @return Defines whether content needs to get encrypted + */ + public boolean isSecure () + { + Object oo = get_Value(COLUMNNAME_IsSecure); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_ValueNoCheck (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Meta Author. + @param Meta_Author + Author of the content + */ + public void setMeta_Author (String Meta_Author) + { + if (Meta_Author != null && Meta_Author.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Author = Meta_Author.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Author, Meta_Author); + } + + /** Get Meta Author. + @return Author of the content + */ + public String getMeta_Author () + { + return (String)get_Value(COLUMNNAME_Meta_Author); + } + + /** Set Meta Content Type. + @param Meta_Content + Defines the type of content i.e. "text/html; charset=UTF-8" + */ + public void setMeta_Content (String Meta_Content) + { + if (Meta_Content != null && Meta_Content.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Content = Meta_Content.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Content, Meta_Content); + } + + /** Get Meta Content Type. + @return Defines the type of content i.e. "text/html; charset=UTF-8" + */ + public String getMeta_Content () + { + return (String)get_Value(COLUMNNAME_Meta_Content); + } + + /** Set Meta Copyright. + @param Meta_Copyright + Contains Copyright information for the content + */ + public void setMeta_Copyright (String Meta_Copyright) + { + if (Meta_Copyright != null && Meta_Copyright.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Copyright = Meta_Copyright.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Copyright, Meta_Copyright); + } + + /** Get Meta Copyright. + @return Contains Copyright information for the content + */ + public String getMeta_Copyright () + { + return (String)get_Value(COLUMNNAME_Meta_Copyright); + } + + /** Set Meta Description. + @param Meta_Description + Meta info describing the contents of the page + */ + public void setMeta_Description (String Meta_Description) + { + if (Meta_Description == null) + throw new IllegalArgumentException ("Meta_Description is mandatory."); + if (Meta_Description.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Description = Meta_Description.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Description, Meta_Description); + } + + /** Get Meta Description. + @return Meta info describing the contents of the page + */ + public String getMeta_Description () + { + return (String)get_Value(COLUMNNAME_Meta_Description); + } + + /** Set Meta Keywords. + @param Meta_Keywords + Contains the keywords for the content + */ + public void setMeta_Keywords (String Meta_Keywords) + { + if (Meta_Keywords == null) + throw new IllegalArgumentException ("Meta_Keywords is mandatory."); + if (Meta_Keywords.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Keywords = Meta_Keywords.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Keywords, Meta_Keywords); + } + + /** Get Meta Keywords. + @return Contains the keywords for the content + */ + public String getMeta_Keywords () + { + return (String)get_Value(COLUMNNAME_Meta_Keywords); + } + + /** Set Meta Language. + @param Meta_Language + Language HTML Meta Tag + */ + public void setMeta_Language (String Meta_Language) + { + if (Meta_Language != null && Meta_Language.length() > 2) + { + log.warning("Length > 2 - truncated"); + Meta_Language = Meta_Language.substring(0, 1); + } + set_Value (COLUMNNAME_Meta_Language, Meta_Language); + } + + /** Get Meta Language. + @return Language HTML Meta Tag + */ + public String getMeta_Language () + { + return (String)get_Value(COLUMNNAME_Meta_Language); + } + + /** Set Meta Publisher. + @param Meta_Publisher + Meta Publisher defines the publisher of the content + */ + public void setMeta_Publisher (String Meta_Publisher) + { + if (Meta_Publisher != null && Meta_Publisher.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Publisher = Meta_Publisher.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Publisher, Meta_Publisher); + } + + /** Get Meta Publisher. + @return Meta Publisher defines the publisher of the content + */ + public String getMeta_Publisher () + { + return (String)get_Value(COLUMNNAME_Meta_Publisher); + } + + /** Set Meta RobotsTag. + @param Meta_RobotsTag + RobotsTag defines how search robots should handle this content + */ + public void setMeta_RobotsTag (String Meta_RobotsTag) + { + if (Meta_RobotsTag != null && Meta_RobotsTag.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_RobotsTag = Meta_RobotsTag.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_RobotsTag, Meta_RobotsTag); + } + + /** Get Meta RobotsTag. + @return RobotsTag defines how search robots should handle this content + */ + public String getMeta_RobotsTag () + { + return (String)get_Value(COLUMNNAME_Meta_RobotsTag); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Notice. + @param Notice + Contains last write notice + */ + public void setNotice (String Notice) + { + if (Notice == null) + throw new IllegalArgumentException ("Notice is mandatory."); + if (Notice.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Notice = Notice.substring(0, 1999); + } + set_Value (COLUMNNAME_Notice, Notice); + } + + /** Get Notice. + @return Contains last write notice + */ + public String getNotice () + { + return (String)get_Value(COLUMNNAME_Notice); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Relative URL. + @param RelativeURL + Contains the relative URL for the container + */ + public void setRelativeURL (String RelativeURL) + { + if (RelativeURL != null && RelativeURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + RelativeURL = RelativeURL.substring(0, 119); + } + set_Value (COLUMNNAME_RelativeURL, RelativeURL); + } + + /** Get Relative URL. + @return Contains the relative URL for the container + */ + public String getRelativeURL () + { + return (String)get_Value(COLUMNNAME_RelativeURL); + } + + /** Set StructureXML. + @param StructureXML + Autogenerated Containerdefinition as XML Code + */ + public void setStructureXML (String StructureXML) + { + if (StructureXML != null && StructureXML.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + StructureXML = StructureXML.substring(0, 1999); + } + set_Value (COLUMNNAME_StructureXML, StructureXML); + } + + /** Get StructureXML. + @return Autogenerated Containerdefinition as XML Code + */ + public String getStructureXML () + { + return (String)get_Value(COLUMNNAME_StructureXML); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title != null && Title.length() > 60) + { + log.warning("Length > 60 - truncated"); + Title = Title.substring(0, 59); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_ContainerTTable.java b/base/src/org/compiere/model/X_CM_ContainerTTable.java index 9dcd00246c..56dc19d6c2 100644 --- a/base/src/org/compiere/model/X_CM_ContainerTTable.java +++ b/base/src/org/compiere/model/X_CM_ContainerTTable.java @@ -1,243 +1,294 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_ContainerTTable - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_ContainerTTable extends PO + +/** Generated Model for CM_ContainerTTable + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_ContainerTTable extends PO implements I_CM_ContainerTTable, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_ContainerTTable_ID id -@param trxName transaction -*/ -public X_CM_ContainerTTable (Properties ctx, int CM_ContainerTTable_ID, String trxName) -{ -super (ctx, CM_ContainerTTable_ID, trxName); -/** if (CM_ContainerTTable_ID == 0) -{ -setCM_ContainerTTable_ID (0); -setCM_Container_ID (0); -setCM_TemplateTable_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_ContainerTTable (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_ContainerTTable */ -public static final String Table_Name="CM_ContainerTTable"; - -/** AD_Table_ID=880 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_ContainerTTable[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Container T.Table. -@param CM_ContainerTTable_ID Container Template Table */ -public void setCM_ContainerTTable_ID (int CM_ContainerTTable_ID) -{ -if (CM_ContainerTTable_ID < 1) throw new IllegalArgumentException ("CM_ContainerTTable_ID is mandatory."); -set_ValueNoCheck ("CM_ContainerTTable_ID", Integer.valueOf(CM_ContainerTTable_ID)); -} -/** Get Container T.Table. -@return Container Template Table */ -public int getCM_ContainerTTable_ID() -{ -Integer ii = (Integer)get_Value("CM_ContainerTTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_ContainerTTable_ID */ -public static final String COLUMNNAME_CM_ContainerTTable_ID = "CM_ContainerTTable_ID"; -/** Set Web Container. -@param CM_Container_ID Web Container contains content like images, text etc. */ -public void setCM_Container_ID (int CM_Container_ID) -{ -if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory."); -set_ValueNoCheck ("CM_Container_ID", Integer.valueOf(CM_Container_ID)); -} -/** Get Web Container. -@return Web Container contains content like images, text etc. */ -public int getCM_Container_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_ID */ -public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; -/** Set Template Table. -@param CM_TemplateTable_ID CM Template Table Link */ -public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) -{ -if (CM_TemplateTable_ID < 1) throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); -set_ValueNoCheck ("CM_TemplateTable_ID", Integer.valueOf(CM_TemplateTable_ID)); -} -/** Get Template Table. -@return CM Template Table Link */ -public int getCM_TemplateTable_ID() -{ -Integer ii = (Integer)get_Value("CM_TemplateTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_TemplateTable_ID */ -public static final String COLUMNNAME_CM_TemplateTable_ID = "CM_TemplateTable_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Other SQL Clause. -@param OtherClause Other SQL Clause */ -public void setOtherClause (String OtherClause) -{ -if (OtherClause != null && OtherClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OtherClause = OtherClause.substring(0,1999); -} -set_Value ("OtherClause", OtherClause); -} -/** Get Other SQL Clause. -@return Other SQL Clause */ -public String getOtherClause() -{ -return (String)get_Value("OtherClause"); -} -/** Column name OtherClause */ -public static final String COLUMNNAME_OtherClause = "OtherClause"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null); - else -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_ContainerTTable (Properties ctx, int CM_ContainerTTable_ID, String trxName) + { + super (ctx, CM_ContainerTTable_ID, trxName); + /** if (CM_ContainerTTable_ID == 0) { setCM_ContainerTTable_ID (0); + setCM_Container_ID (0); + setCM_TemplateTable_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_ContainerTTable (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_ContainerTTable[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Container T.Table. + @param CM_ContainerTTable_ID + Container Template Table + */ + public void setCM_ContainerTTable_ID (int CM_ContainerTTable_ID) + { + if (CM_ContainerTTable_ID < 1) + throw new IllegalArgumentException ("CM_ContainerTTable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_ContainerTTable_ID, Integer.valueOf(CM_ContainerTTable_ID)); + } + + /** Get Container T.Table. + @return Container Template Table + */ + public int getCM_ContainerTTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_ContainerTTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Container getI_CM_Container() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container. + @param CM_Container_ID + Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID) + { + if (CM_Container_ID < 1) + throw new IllegalArgumentException ("CM_Container_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + } + + /** Get Web Container. + @return Web Container contains content like images, text etc. + */ + public int getCM_Container_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_TemplateTable getI_CM_TemplateTable() throws Exception + { + 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 e; + } + return result; + } + + /** Set Template Table. + @param CM_TemplateTable_ID + CM Template Table Link + */ + public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) + { + if (CM_TemplateTable_ID < 1) + throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); + } + + /** Get Template Table. + @return CM Template Table Link + */ + public int getCM_TemplateTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_TemplateTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Other SQL Clause. + @param OtherClause + Other SQL Clause + */ + public void setOtherClause (String OtherClause) + { + if (OtherClause != null && OtherClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OtherClause = OtherClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OtherClause, OtherClause); + } + + /** Get Other SQL Clause. + @return Other SQL Clause + */ + public String getOtherClause () + { + return (String)get_Value(COLUMNNAME_OtherClause); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file 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 5d1123899f..82290866ac 100644 --- a/base/src/org/compiere/model/X_CM_Container_Element.java +++ b/base/src/org/compiere/model/X_CM_Container_Element.java @@ -1,222 +1,252 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Container_Element - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Container_Element extends PO + +/** Generated Model for CM_Container_Element + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Container_Element extends PO implements I_CM_Container_Element, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Container_Element_ID id -@param trxName transaction -*/ -public X_CM_Container_Element (Properties ctx, int CM_Container_Element_ID, String trxName) -{ -super (ctx, CM_Container_Element_ID, trxName); -/** if (CM_Container_Element_ID == 0) -{ -setCM_Container_Element_ID (0); -setCM_Container_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Container_Element (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Container_Element */ -public static final String Table_Name="CM_Container_Element"; - -/** AD_Table_ID=860 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Container_Element[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Container Element. -@param CM_Container_Element_ID Container element i.e. Headline, Content, Footer etc. */ -public void setCM_Container_Element_ID (int CM_Container_Element_ID) -{ -if (CM_Container_Element_ID < 1) throw new IllegalArgumentException ("CM_Container_Element_ID is mandatory."); -set_ValueNoCheck ("CM_Container_Element_ID", Integer.valueOf(CM_Container_Element_ID)); -} -/** Get Container Element. -@return Container element i.e. Headline, Content, Footer etc. */ -public int getCM_Container_Element_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_Element_ID */ -public static final String COLUMNNAME_CM_Container_Element_ID = "CM_Container_Element_ID"; -/** Set Web Container. -@param CM_Container_ID Web Container contains content like images, text etc. */ -public void setCM_Container_ID (int CM_Container_ID) -{ -if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory."); -set_ValueNoCheck ("CM_Container_ID", Integer.valueOf(CM_Container_ID)); -} -/** Get Web Container. -@return Web Container contains content like images, text etc. */ -public int getCM_Container_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_ID */ -public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; -/** Set Content HTML. -@param ContentHTML Contains the content itself */ -public void setContentHTML (String ContentHTML) -{ -set_Value ("ContentHTML", ContentHTML); -} -/** Get Content HTML. -@return Contains the content itself */ -public String getContentHTML() -{ -return (String)get_Value("ContentHTML"); -} -/** Column name ContentHTML */ -public static final String COLUMNNAME_ContentHTML = "ContentHTML"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Container_Element (Properties ctx, int CM_Container_Element_ID, String trxName) + { + super (ctx, CM_Container_Element_ID, trxName); + /** if (CM_Container_Element_ID == 0) { setCM_Container_Element_ID (0); + setCM_Container_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_Container_Element (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Container_Element[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Container Element. + @param CM_Container_Element_ID + Container element i.e. Headline, Content, Footer etc. + */ + public void setCM_Container_Element_ID (int CM_Container_Element_ID) + { + if (CM_Container_Element_ID < 1) + throw new IllegalArgumentException ("CM_Container_Element_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Container_Element_ID, Integer.valueOf(CM_Container_Element_ID)); + } + + /** Get Container Element. + @return Container element i.e. Headline, Content, Footer etc. + */ + public int getCM_Container_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Container getI_CM_Container() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container. + @param CM_Container_ID + Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID) + { + if (CM_Container_ID < 1) + throw new IllegalArgumentException ("CM_Container_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + } + + /** Get Web Container. + @return Web Container contains content like images, text etc. + */ + public int getCM_Container_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Content HTML. + @param ContentHTML + Contains the content itself + */ + public void setContentHTML (String ContentHTML) + { + set_Value (COLUMNNAME_ContentHTML, ContentHTML); + } + + /** Get Content HTML. + @return Contains the content itself + */ + public String getContentHTML () + { + return (String)get_Value(COLUMNNAME_ContentHTML); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 883ce6eb7a..5bcace0c60 100644 --- a/base/src/org/compiere/model/X_CM_Container_URL.java +++ b/base/src/org/compiere/model/X_CM_Container_URL.java @@ -1,181 +1,204 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Container_URL - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Container_URL extends PO + +/** Generated Model for CM_Container_URL + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Container_URL extends PO implements I_CM_Container_URL, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Container_URL_ID id -@param trxName transaction -*/ -public X_CM_Container_URL (Properties ctx, int CM_Container_URL_ID, String trxName) -{ -super (ctx, CM_Container_URL_ID, trxName); -/** if (CM_Container_URL_ID == 0) -{ -setCM_Container_ID (0); -setCM_Container_URL_ID (0); -setChecked (new Timestamp(System.currentTimeMillis())); -setLast_Result (null); -setStatus (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Container_URL (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Container_URL */ -public static final String Table_Name="CM_Container_URL"; - -/** AD_Table_ID=865 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Container_URL[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Container. -@param CM_Container_ID Web Container contains content like images, text etc. */ -public void setCM_Container_ID (int CM_Container_ID) -{ -if (CM_Container_ID < 1) throw new IllegalArgumentException ("CM_Container_ID is mandatory."); -set_Value ("CM_Container_ID", Integer.valueOf(CM_Container_ID)); -} -/** Get Web Container. -@return Web Container contains content like images, text etc. */ -public int getCM_Container_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_ID */ -public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; -/** Set Container URL. -@param CM_Container_URL_ID Contains info on used URLs */ -public void setCM_Container_URL_ID (int CM_Container_URL_ID) -{ -if (CM_Container_URL_ID < 1) throw new IllegalArgumentException ("CM_Container_URL_ID is mandatory."); -set_ValueNoCheck ("CM_Container_URL_ID", Integer.valueOf(CM_Container_URL_ID)); -} -/** Get Container URL. -@return Contains info on used URLs */ -public int getCM_Container_URL_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_URL_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_URL_ID */ -public static final String COLUMNNAME_CM_Container_URL_ID = "CM_Container_URL_ID"; -/** Set Last Checked. -@param Checked Info when we did the last check */ -public void setChecked (Timestamp Checked) -{ -if (Checked == null) throw new IllegalArgumentException ("Checked is mandatory."); -set_Value ("Checked", Checked); -} -/** Get Last Checked. -@return Info when we did the last check */ -public Timestamp getChecked() -{ -return (Timestamp)get_Value("Checked"); -} -/** Column name Checked */ -public static final String COLUMNNAME_Checked = "Checked"; -/** Set Last Result. -@param Last_Result Contains data on the last check result */ -public void setLast_Result (String Last_Result) -{ -if (Last_Result == null) throw new IllegalArgumentException ("Last_Result is mandatory."); -if (Last_Result.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Last_Result = Last_Result.substring(0,1999); -} -set_Value ("Last_Result", Last_Result); -} -/** Get Last Result. -@return Contains data on the last check result */ -public String getLast_Result() -{ -return (String)get_Value("Last_Result"); -} -/** Column name Last_Result */ -public static final String COLUMNNAME_Last_Result = "Last_Result"; -/** Set Status. -@param Status Status of the currently running check */ -public void setStatus (String Status) -{ -if (Status == null) throw new IllegalArgumentException ("Status is mandatory."); -if (Status.length() > 2) -{ -log.warning("Length > 2 - truncated"); -Status = Status.substring(0,1); -} -set_Value ("Status", Status); -} -/** Get Status. -@return Status of the currently running check */ -public String getStatus() -{ -return (String)get_Value("Status"); -} -/** Column name Status */ -public static final String COLUMNNAME_Status = "Status"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Container_URL (Properties ctx, int CM_Container_URL_ID, String trxName) + { + super (ctx, CM_Container_URL_ID, trxName); + /** if (CM_Container_URL_ID == 0) { setCM_Container_ID (0); + setCM_Container_URL_ID (0); + setChecked (new Timestamp(System.currentTimeMillis())); + setLast_Result (null); + setStatus (null); +} */ + } + + /** Load Constructor */ + public X_CM_Container_URL (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Container_URL[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_Container getI_CM_Container() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container. + @param CM_Container_ID + Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID) + { + if (CM_Container_ID < 1) + throw new IllegalArgumentException ("CM_Container_ID is mandatory."); + set_Value (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + } + + /** Get Web Container. + @return Web Container contains content like images, text etc. + */ + public int getCM_Container_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Container URL. + @param CM_Container_URL_ID + Contains info on used URLs + */ + public void setCM_Container_URL_ID (int CM_Container_URL_ID) + { + if (CM_Container_URL_ID < 1) + throw new IllegalArgumentException ("CM_Container_URL_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Container_URL_ID, Integer.valueOf(CM_Container_URL_ID)); + } + + /** Get Container URL. + @return Contains info on used URLs + */ + public int getCM_Container_URL_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_URL_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Last Checked. + @param Checked + Info when we did the last check + */ + public void setChecked (Timestamp Checked) + { + if (Checked == null) + throw new IllegalArgumentException ("Checked is mandatory."); + set_Value (COLUMNNAME_Checked, Checked); + } + + /** Get Last Checked. + @return Info when we did the last check + */ + public Timestamp getChecked () + { + return (Timestamp)get_Value(COLUMNNAME_Checked); + } + + /** Set Last Result. + @param Last_Result + Contains data on the last check result + */ + public void setLast_Result (String Last_Result) + { + if (Last_Result == null) + throw new IllegalArgumentException ("Last_Result is mandatory."); + if (Last_Result.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Last_Result = Last_Result.substring(0, 1999); + } + set_Value (COLUMNNAME_Last_Result, Last_Result); + } + + /** Get Last Result. + @return Contains data on the last check result + */ + public String getLast_Result () + { + return (String)get_Value(COLUMNNAME_Last_Result); + } + + /** Set Status. + @param Status + Status of the currently running check + */ + public void setStatus (String Status) + { + if (Status == null) + throw new IllegalArgumentException ("Status is mandatory."); + if (Status.length() > 2) + { + log.warning("Length > 2 - truncated"); + Status = Status.substring(0, 1); + } + set_Value (COLUMNNAME_Status, Status); + } + + /** Get Status. + @return Status of the currently running check + */ + public String getStatus () + { + return (String)get_Value(COLUMNNAME_Status); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_Media.java b/base/src/org/compiere/model/X_CM_Media.java index df600c42a5..0a22f60963 100644 --- a/base/src/org/compiere/model/X_CM_Media.java +++ b/base/src/org/compiere/model/X_CM_Media.java @@ -1,296 +1,321 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Media - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Media extends PO + +/** Generated Model for CM_Media + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Media extends PO implements I_CM_Media, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Media_ID id -@param trxName transaction -*/ -public X_CM_Media (Properties ctx, int CM_Media_ID, String trxName) -{ -super (ctx, CM_Media_ID, trxName); -/** if (CM_Media_ID == 0) -{ -setCM_Media_ID (0); -setCM_WebProject_ID (0); -setIsSummary (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Media (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Media */ -public static final String Table_Name="CM_Media"; - -/** AD_Table_ID=857 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Media[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Image. -@param AD_Image_ID Image or Icon */ -public void setAD_Image_ID (int AD_Image_ID) -{ -if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null); - else -set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID)); -} -/** Get Image. -@return Image or Icon */ -public int getAD_Image_ID() -{ -Integer ii = (Integer)get_Value("AD_Image_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Image_ID */ -public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; -/** Set Media Item. -@param CM_Media_ID Contains media content like images, flash movies etc. */ -public void setCM_Media_ID (int CM_Media_ID) -{ -if (CM_Media_ID < 1) throw new IllegalArgumentException ("CM_Media_ID is mandatory."); -set_ValueNoCheck ("CM_Media_ID", Integer.valueOf(CM_Media_ID)); -} -/** Get Media Item. -@return Contains media content like images, flash movies etc. */ -public int getCM_Media_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_ID */ -public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Content. -@param ContentText Content */ -public void setContentText (String ContentText) -{ -set_Value ("ContentText", ContentText); -} -/** Get Content. -@return Content */ -public String getContentText() -{ -return (String)get_Value("ContentText"); -} -/** Column name ContentText */ -public static final String COLUMNNAME_ContentText = "ContentText"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Direct Deploy. -@param DirectDeploy Direct Deploy */ -public void setDirectDeploy (String DirectDeploy) -{ -if (DirectDeploy != null && DirectDeploy.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DirectDeploy = DirectDeploy.substring(0,0); -} -set_Value ("DirectDeploy", DirectDeploy); -} -/** Get Direct Deploy. -@return Direct Deploy */ -public String getDirectDeploy() -{ -return (String)get_Value("DirectDeploy"); -} -/** Column name DirectDeploy */ -public static final String COLUMNNAME_DirectDeploy = "DirectDeploy"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Media (Properties ctx, int CM_Media_ID, String trxName) + { + super (ctx, CM_Media_ID, trxName); + /** if (CM_Media_ID == 0) { setCM_Media_ID (0); + setCM_WebProject_ID (0); + setIsSummary (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_Media (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Media[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID <= 0) set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Media Item. + @param CM_Media_ID + Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID) + { + if (CM_Media_ID < 1) + throw new IllegalArgumentException ("CM_Media_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + } + + /** Get Media Item. + @return Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Content. + @param ContentText Content */ + public void setContentText (String ContentText) + { + set_Value (COLUMNNAME_ContentText, ContentText); + } + + /** Get Content. +@return Content */ + public String getContentText () + { + return (String)get_Value(COLUMNNAME_ContentText); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Direct Deploy. + @param DirectDeploy Direct Deploy */ + public void setDirectDeploy (String DirectDeploy) + { + if (DirectDeploy != null && DirectDeploy.length() > 1) + { + log.warning("Length > 1 - truncated"); + DirectDeploy = DirectDeploy.substring(0, 0); + } + set_Value (COLUMNNAME_DirectDeploy, DirectDeploy); + } + + /** Get Direct Deploy. +@return Direct Deploy */ + public String getDirectDeploy () + { + return (String)get_Value(COLUMNNAME_DirectDeploy); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** MediaType AD_Reference_ID=388 */ -public static final int MEDIATYPE_AD_Reference_ID=388; -/** text/css = CSS */ -public static final String MEDIATYPE_TextCss = "CSS"; -/** image/gif = GIF */ -public static final String MEDIATYPE_ImageGif = "GIF"; -/** image/jpeg = JPG */ -public static final String MEDIATYPE_ImageJpeg = "JPG"; -/** text/js = JS */ -public static final String MEDIATYPE_TextJs = "JS"; -/** application/pdf = PDF */ -public static final String MEDIATYPE_ApplicationPdf = "PDF"; -/** image/png = PNG */ +public static final int MEDIATYPE_AD_Reference_ID=388;/** text/css = CSS */ +public static final String MEDIATYPE_TextCss = "CSS";/** image/gif = GIF */ +public static final String MEDIATYPE_ImageGif = "GIF";/** image/jpeg = JPG */ +public static final String MEDIATYPE_ImageJpeg = "JPG";/** text/js = JS */ +public static final String MEDIATYPE_TextJs = "JS";/** application/pdf = PDF */ +public static final String MEDIATYPE_ApplicationPdf = "PDF";/** image/png = PNG */ public static final String MEDIATYPE_ImagePng = "PNG"; -/** Set Media Type. -@param MediaType Defines the media type for the browser */ -public void setMediaType (String MediaType) -{ -if (MediaType == null || MediaType.equals("CSS") || MediaType.equals("GIF") || MediaType.equals("JPG") || MediaType.equals("JS") || MediaType.equals("PDF") || MediaType.equals("PNG")); - else throw new IllegalArgumentException ("MediaType Invalid value - " + MediaType + " - Reference_ID=388 - CSS - GIF - JPG - JS - PDF - PNG"); -if (MediaType != null && MediaType.length() > 3) -{ -log.warning("Length > 3 - truncated"); -MediaType = MediaType.substring(0,2); -} -set_Value ("MediaType", MediaType); -} -/** Get Media Type. -@return Defines the media type for the browser */ -public String getMediaType() -{ -return (String)get_Value("MediaType"); -} -/** Column name MediaType */ -public static final String COLUMNNAME_MediaType = "MediaType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Media Type. + @param MediaType + Defines the media type for the browser + */ + public void setMediaType (String MediaType) + { +if (MediaType == null || MediaType.equals("CSS") || MediaType.equals("GIF") || MediaType.equals("JPG") || MediaType.equals("JS") || MediaType.equals("PDF") || MediaType.equals("PNG")); else throw new IllegalArgumentException ("MediaType Invalid value - " + MediaType + " - Reference_ID=388 - CSS - GIF - JPG - JS - PDF - PNG"); if (MediaType != null && MediaType.length() > 3) + { + log.warning("Length > 3 - truncated"); + MediaType = MediaType.substring(0, 2); + } + set_Value (COLUMNNAME_MediaType, MediaType); + } + + /** Get Media Type. + @return Defines the media type for the browser + */ + public String getMediaType () + { + return (String)get_Value(COLUMNNAME_MediaType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_MediaDeploy.java b/base/src/org/compiere/model/X_CM_MediaDeploy.java index a0bbcb2fb5..d761bd7bec 100644 --- a/base/src/org/compiere/model/X_CM_MediaDeploy.java +++ b/base/src/org/compiere/model/X_CM_MediaDeploy.java @@ -1,195 +1,237 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_MediaDeploy - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_MediaDeploy extends PO + +/** Generated Model for CM_MediaDeploy + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_MediaDeploy extends PO implements I_CM_MediaDeploy, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_MediaDeploy_ID id -@param trxName transaction -*/ -public X_CM_MediaDeploy (Properties ctx, int CM_MediaDeploy_ID, String trxName) -{ -super (ctx, CM_MediaDeploy_ID, trxName); -/** if (CM_MediaDeploy_ID == 0) -{ -setCM_MediaDeploy_ID (0); -setCM_Media_ID (0); -setCM_Media_Server_ID (0); -setIsDeployed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_MediaDeploy (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_MediaDeploy */ -public static final String Table_Name="CM_MediaDeploy"; - -/** AD_Table_ID=892 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_MediaDeploy[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Media Deploy. -@param CM_MediaDeploy_ID Media Deployment Log */ -public void setCM_MediaDeploy_ID (int CM_MediaDeploy_ID) -{ -if (CM_MediaDeploy_ID < 1) throw new IllegalArgumentException ("CM_MediaDeploy_ID is mandatory."); -set_ValueNoCheck ("CM_MediaDeploy_ID", Integer.valueOf(CM_MediaDeploy_ID)); -} -/** Get Media Deploy. -@return Media Deployment Log */ -public int getCM_MediaDeploy_ID() -{ -Integer ii = (Integer)get_Value("CM_MediaDeploy_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_MediaDeploy_ID */ -public static final String COLUMNNAME_CM_MediaDeploy_ID = "CM_MediaDeploy_ID"; -/** Set Media Item. -@param CM_Media_ID Contains media content like images, flash movies etc. */ -public void setCM_Media_ID (int CM_Media_ID) -{ -if (CM_Media_ID < 1) throw new IllegalArgumentException ("CM_Media_ID is mandatory."); -set_ValueNoCheck ("CM_Media_ID", Integer.valueOf(CM_Media_ID)); -} -/** Get Media Item. -@return Contains media content like images, flash movies etc. */ -public int getCM_Media_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_ID */ -public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; -/** Set Media Server. -@param CM_Media_Server_ID Media Server list to which content should get transfered */ -public void setCM_Media_Server_ID (int CM_Media_Server_ID) -{ -if (CM_Media_Server_ID < 1) throw new IllegalArgumentException ("CM_Media_Server_ID is mandatory."); -set_ValueNoCheck ("CM_Media_Server_ID", Integer.valueOf(CM_Media_Server_ID)); -} -/** Get Media Server. -@return Media Server list to which content should get transfered */ -public int getCM_Media_Server_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_Server_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_Server_ID */ -public static final String COLUMNNAME_CM_Media_Server_ID = "CM_Media_Server_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Deployed. -@param IsDeployed Entity is deployed */ -public void setIsDeployed (boolean IsDeployed) -{ -set_Value ("IsDeployed", Boolean.valueOf(IsDeployed)); -} -/** Get Deployed. -@return Entity is deployed */ -public boolean isDeployed() -{ -Object oo = get_Value("IsDeployed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDeployed */ -public static final String COLUMNNAME_IsDeployed = "IsDeployed"; -/** Set Last Synchronized. -@param LastSynchronized Date when last synchronized */ -public void setLastSynchronized (Timestamp LastSynchronized) -{ -set_Value ("LastSynchronized", LastSynchronized); -} -/** Get Last Synchronized. -@return Date when last synchronized */ -public Timestamp getLastSynchronized() -{ -return (Timestamp)get_Value("LastSynchronized"); -} -/** Column name LastSynchronized */ -public static final String COLUMNNAME_LastSynchronized = "LastSynchronized"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_MediaDeploy (Properties ctx, int CM_MediaDeploy_ID, String trxName) + { + super (ctx, CM_MediaDeploy_ID, trxName); + /** if (CM_MediaDeploy_ID == 0) { setCM_MediaDeploy_ID (0); + setCM_Media_ID (0); + setCM_Media_Server_ID (0); + setIsDeployed (false); +} */ + } + + /** Load Constructor */ + public X_CM_MediaDeploy (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_MediaDeploy[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Media Deploy. + @param CM_MediaDeploy_ID + Media Deployment Log + */ + public void setCM_MediaDeploy_ID (int CM_MediaDeploy_ID) + { + if (CM_MediaDeploy_ID < 1) + throw new IllegalArgumentException ("CM_MediaDeploy_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_MediaDeploy_ID, Integer.valueOf(CM_MediaDeploy_ID)); + } + + /** Get Media Deploy. + @return Media Deployment Log + */ + public int getCM_MediaDeploy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_MediaDeploy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Media getI_CM_Media() throws Exception + { + 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 e; + } + return result; + } + + /** Set Media Item. + @param CM_Media_ID + Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID) + { + if (CM_Media_ID < 1) + throw new IllegalArgumentException ("CM_Media_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + } + + /** Get Media Item. + @return Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Media_Server getI_CM_Media_Server() throws Exception + { + 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 e; + } + return result; + } + + /** Set Media Server. + @param CM_Media_Server_ID + Media Server list to which content should get transfered + */ + public void setCM_Media_Server_ID (int CM_Media_Server_ID) + { + if (CM_Media_Server_ID < 1) + throw new IllegalArgumentException ("CM_Media_Server_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, Integer.valueOf(CM_Media_Server_ID)); + } + + /** Get Media Server. + @return Media Server list to which content should get transfered + */ + public int getCM_Media_Server_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_Server_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Deployed. + @param IsDeployed + Entity is deployed + */ + public void setIsDeployed (boolean IsDeployed) + { + set_Value (COLUMNNAME_IsDeployed, Boolean.valueOf(IsDeployed)); + } + + /** Get Deployed. + @return Entity is deployed + */ + public boolean isDeployed () + { + Object oo = get_Value(COLUMNNAME_IsDeployed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Last Synchronized. + @param LastSynchronized + Date when last synchronized + */ + public void setLastSynchronized (Timestamp LastSynchronized) + { + set_Value (COLUMNNAME_LastSynchronized, LastSynchronized); + } + + /** Get Last Synchronized. + @return Date when last synchronized + */ + public Timestamp getLastSynchronized () + { + return (Timestamp)get_Value(COLUMNNAME_LastSynchronized); + } +} \ No newline at end of file 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 2f61e59375..7de593f93e 100644 --- a/base/src/org/compiere/model/X_CM_Media_Server.java +++ b/base/src/org/compiere/model/X_CM_Media_Server.java @@ -1,304 +1,346 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Media_Server - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Media_Server extends PO + +/** Generated Model for CM_Media_Server + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Media_Server extends PO implements I_CM_Media_Server, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Media_Server_ID id -@param trxName transaction -*/ -public X_CM_Media_Server (Properties ctx, int CM_Media_Server_ID, String trxName) -{ -super (ctx, CM_Media_Server_ID, trxName); -/** if (CM_Media_Server_ID == 0) -{ -setCM_Media_Server_ID (0); -setCM_WebProject_ID (0); -setIsPassive (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Media_Server (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Media_Server */ -public static final String Table_Name="CM_Media_Server"; - -/** AD_Table_ID=859 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Media_Server[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Media Server. -@param CM_Media_Server_ID Media Server list to which content should get transfered */ -public void setCM_Media_Server_ID (int CM_Media_Server_ID) -{ -if (CM_Media_Server_ID < 1) throw new IllegalArgumentException ("CM_Media_Server_ID is mandatory."); -set_ValueNoCheck ("CM_Media_Server_ID", Integer.valueOf(CM_Media_Server_ID)); -} -/** Get Media Server. -@return Media Server list to which content should get transfered */ -public int getCM_Media_Server_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_Server_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_Server_ID */ -public static final String COLUMNNAME_CM_Media_Server_ID = "CM_Media_Server_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Folder. -@param Folder A folder on a local or remote system to store data into */ -public void setFolder (String Folder) -{ -if (Folder != null && Folder.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Folder = Folder.substring(0,59); -} -set_Value ("Folder", Folder); -} -/** Get Folder. -@return A folder on a local or remote system to store data into */ -public String getFolder() -{ -return (String)get_Value("Folder"); -} -/** Column name Folder */ -public static final String COLUMNNAME_Folder = "Folder"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set IP Address. -@param IP_Address Defines the IP address to transfer data to */ -public void setIP_Address (String IP_Address) -{ -if (IP_Address != null && IP_Address.length() > 20) -{ -log.warning("Length > 20 - truncated"); -IP_Address = IP_Address.substring(0,19); -} -set_Value ("IP_Address", IP_Address); -} -/** Get IP Address. -@return Defines the IP address to transfer data to */ -public String getIP_Address() -{ -return (String)get_Value("IP_Address"); -} -/** Column name IP_Address */ -public static final String COLUMNNAME_IP_Address = "IP_Address"; -/** Set Transfer passive. -@param IsPassive FTP passive transfer */ -public void setIsPassive (boolean IsPassive) -{ -set_Value ("IsPassive", Boolean.valueOf(IsPassive)); -} -/** Get Transfer passive. -@return FTP passive transfer */ -public boolean isPassive() -{ -Object oo = get_Value("IsPassive"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPassive */ -public static final String COLUMNNAME_IsPassive = "IsPassive"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Password. -@param Password Password of any length (case sensitive) */ -public void setPassword (String Password) -{ -if (Password != null && Password.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Password = Password.substring(0,39); -} -set_Value ("Password", Password); -} -/** Get Password. -@return Password of any length (case sensitive) */ -public String getPassword() -{ -return (String)get_Value("Password"); -} -/** Column name Password */ -public static final String COLUMNNAME_Password = "Password"; -/** Set URL. -@param URL Full URL address - e.g. http://www.adempiere.org */ -public void setURL (String URL) -{ -if (URL != null && URL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -URL = URL.substring(0,119); -} -set_Value ("URL", URL); -} -/** Get URL. -@return Full URL address - e.g. http://www.adempiere.org */ -public String getURL() -{ -return (String)get_Value("URL"); -} -/** Column name URL */ -public static final String COLUMNNAME_URL = "URL"; -/** Set Registered EMail. -@param UserName Email of the responsible for the System */ -public void setUserName (String UserName) -{ -if (UserName != null && UserName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -UserName = UserName.substring(0,39); -} -set_Value ("UserName", UserName); -} -/** Get Registered EMail. -@return Email of the responsible for the System */ -public String getUserName() -{ -return (String)get_Value("UserName"); -} -/** Column name UserName */ -public static final String COLUMNNAME_UserName = "UserName"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Media_Server (Properties ctx, int CM_Media_Server_ID, String trxName) + { + super (ctx, CM_Media_Server_ID, trxName); + /** if (CM_Media_Server_ID == 0) { setCM_Media_Server_ID (0); + setCM_WebProject_ID (0); + setIsPassive (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_Media_Server (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Media_Server[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Media Server. + @param CM_Media_Server_ID + Media Server list to which content should get transfered + */ + public void setCM_Media_Server_ID (int CM_Media_Server_ID) + { + if (CM_Media_Server_ID < 1) + throw new IllegalArgumentException ("CM_Media_Server_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Media_Server_ID, Integer.valueOf(CM_Media_Server_ID)); + } + + /** Get Media Server. + @return Media Server list to which content should get transfered + */ + public int getCM_Media_Server_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_Server_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Folder. + @param Folder + A folder on a local or remote system to store data into + */ + public void setFolder (String Folder) + { + if (Folder != null && Folder.length() > 60) + { + log.warning("Length > 60 - truncated"); + Folder = Folder.substring(0, 59); + } + set_Value (COLUMNNAME_Folder, Folder); + } + + /** Get Folder. + @return A folder on a local or remote system to store data into + */ + public String getFolder () + { + return (String)get_Value(COLUMNNAME_Folder); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set IP Address. + @param IP_Address + Defines the IP address to transfer data to + */ + public void setIP_Address (String IP_Address) + { + if (IP_Address != null && IP_Address.length() > 20) + { + log.warning("Length > 20 - truncated"); + IP_Address = IP_Address.substring(0, 19); + } + set_Value (COLUMNNAME_IP_Address, IP_Address); + } + + /** Get IP Address. + @return Defines the IP address to transfer data to + */ + public String getIP_Address () + { + return (String)get_Value(COLUMNNAME_IP_Address); + } + + /** Set Transfer passive. + @param IsPassive + FTP passive transfer + */ + public void setIsPassive (boolean IsPassive) + { + set_Value (COLUMNNAME_IsPassive, Boolean.valueOf(IsPassive)); + } + + /** Get Transfer passive. + @return FTP passive transfer + */ + public boolean isPassive () + { + Object oo = get_Value(COLUMNNAME_IsPassive); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Password. + @param Password + Password of any length (case sensitive) + */ + public void setPassword (String Password) + { + if (Password != null && Password.length() > 40) + { + log.warning("Length > 40 - truncated"); + Password = Password.substring(0, 39); + } + set_Value (COLUMNNAME_Password, Password); + } + + /** Get Password. + @return Password of any length (case sensitive) + */ + public String getPassword () + { + return (String)get_Value(COLUMNNAME_Password); + } + + /** Set URL. + @param URL + Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL) + { + if (URL != null && URL.length() > 120) + { + log.warning("Length > 120 - truncated"); + URL = URL.substring(0, 119); + } + set_Value (COLUMNNAME_URL, URL); + } + + /** Get URL. + @return Full URL address - e.g. http://www.adempiere.org + */ + public String getURL () + { + return (String)get_Value(COLUMNNAME_URL); + } + + /** Set Registered EMail. + @param UserName + Email of the responsible for the System + */ + public void setUserName (String UserName) + { + if (UserName != null && UserName.length() > 40) + { + log.warning("Length > 40 - truncated"); + UserName = UserName.substring(0, 39); + } + set_Value (COLUMNNAME_UserName, UserName); + } + + /** Get Registered EMail. + @return Email of the responsible for the System + */ + public String getUserName () + { + return (String)get_Value(COLUMNNAME_UserName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_NewsChannel.java b/base/src/org/compiere/model/X_CM_NewsChannel.java index aa768bf67a..84fb562d30 100644 --- a/base/src/org/compiere/model/X_CM_NewsChannel.java +++ b/base/src/org/compiere/model/X_CM_NewsChannel.java @@ -1,231 +1,260 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_NewsChannel - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_NewsChannel extends PO + +/** Generated Model for CM_NewsChannel + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_NewsChannel extends PO implements I_CM_NewsChannel, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_NewsChannel_ID id -@param trxName transaction -*/ -public X_CM_NewsChannel (Properties ctx, int CM_NewsChannel_ID, String trxName) -{ -super (ctx, CM_NewsChannel_ID, trxName); -/** if (CM_NewsChannel_ID == 0) -{ -setCM_NewsChannel_ID (0); -setCM_WebProject_ID (0); -setDescription (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_NewsChannel (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_NewsChannel */ -public static final String Table_Name="CM_NewsChannel"; - -/** AD_Table_ID=870 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_NewsChannel[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_NewsChannel (Properties ctx, int CM_NewsChannel_ID, String trxName) + { + super (ctx, CM_NewsChannel_ID, trxName); + /** if (CM_NewsChannel_ID == 0) { setCM_NewsChannel_ID (0); + setCM_WebProject_ID (0); + setDescription (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_NewsChannel (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_NewsChannel[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=106 */ public static final int AD_LANGUAGE_AD_Reference_ID=106; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language != null && AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set News Channel. -@param CM_NewsChannel_ID News channel for rss feed */ -public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) -{ -if (CM_NewsChannel_ID < 1) throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); -set_ValueNoCheck ("CM_NewsChannel_ID", Integer.valueOf(CM_NewsChannel_ID)); -} -/** Get News Channel. -@return News channel for rss feed */ -public int getCM_NewsChannel_ID() -{ -Integer ii = (Integer)get_Value("CM_NewsChannel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_NewsChannel_ID */ -public static final String COLUMNNAME_CM_NewsChannel_ID = "CM_NewsChannel_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_Value ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Description = Description.substring(0,1999); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Link. -@param Link Contains URL to a target */ -public void setLink (String Link) -{ -if (Link != null && Link.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Link = Link.substring(0,254); -} -set_Value ("Link", Link); -} -/** Get Link. -@return Contains URL to a target */ -public String getLink() -{ -return (String)get_Value("Link"); -} -/** Column name Link */ -public static final String COLUMNNAME_Link = "Link"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set News Channel. + @param CM_NewsChannel_ID + News channel for rss feed + */ + public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) + { + if (CM_NewsChannel_ID < 1) + throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); + } + + /** Get News Channel. + @return News channel for rss feed + */ + public int getCM_NewsChannel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_NewsChannel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Description = Description.substring(0, 1999); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Link. + @param Link + Contains URL to a target + */ + public void setLink (String Link) + { + if (Link != null && Link.length() > 255) + { + log.warning("Length > 255 - truncated"); + Link = Link.substring(0, 254); + } + set_Value (COLUMNNAME_Link, Link); + } + + /** Get Link. + @return Contains URL to a target + */ + public String getLink () + { + return (String)get_Value(COLUMNNAME_Link); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_NewsItem.java b/base/src/org/compiere/model/X_CM_NewsItem.java index 3b2ba714f3..d72665eec2 100644 --- a/base/src/org/compiere/model/X_CM_NewsItem.java +++ b/base/src/org/compiere/model/X_CM_NewsItem.java @@ -1,227 +1,256 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_NewsItem - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_NewsItem extends PO + +/** Generated Model for CM_NewsItem + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_NewsItem extends PO implements I_CM_NewsItem, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_NewsItem_ID id -@param trxName transaction -*/ -public X_CM_NewsItem (Properties ctx, int CM_NewsItem_ID, String trxName) -{ -super (ctx, CM_NewsItem_ID, trxName); -/** if (CM_NewsItem_ID == 0) -{ -setCM_NewsChannel_ID (0); -setCM_NewsItem_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_NewsItem (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_NewsItem */ -public static final String Table_Name="CM_NewsItem"; - -/** AD_Table_ID=871 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_NewsItem[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Author. -@param Author Author/Creator of the Entity */ -public void setAuthor (String Author) -{ -if (Author != null && Author.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Author = Author.substring(0,254); -} -set_Value ("Author", Author); -} -/** Get Author. -@return Author/Creator of the Entity */ -public String getAuthor() -{ -return (String)get_Value("Author"); -} -/** Column name Author */ -public static final String COLUMNNAME_Author = "Author"; -/** Set News Channel. -@param CM_NewsChannel_ID News channel for rss feed */ -public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) -{ -if (CM_NewsChannel_ID < 1) throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); -set_Value ("CM_NewsChannel_ID", Integer.valueOf(CM_NewsChannel_ID)); -} -/** Get News Channel. -@return News channel for rss feed */ -public int getCM_NewsChannel_ID() -{ -Integer ii = (Integer)get_Value("CM_NewsChannel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_NewsChannel_ID */ -public static final String COLUMNNAME_CM_NewsChannel_ID = "CM_NewsChannel_ID"; -/** Set News Item / Article. -@param CM_NewsItem_ID News item or article defines base content */ -public void setCM_NewsItem_ID (int CM_NewsItem_ID) -{ -if (CM_NewsItem_ID < 1) throw new IllegalArgumentException ("CM_NewsItem_ID is mandatory."); -set_ValueNoCheck ("CM_NewsItem_ID", Integer.valueOf(CM_NewsItem_ID)); -} -/** Get News Item / Article. -@return News item or article defines base content */ -public int getCM_NewsItem_ID() -{ -Integer ii = (Integer)get_Value("CM_NewsItem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_NewsItem_ID */ -public static final String COLUMNNAME_CM_NewsItem_ID = "CM_NewsItem_ID"; -/** Set Content HTML. -@param ContentHTML Contains the content itself */ -public void setContentHTML (String ContentHTML) -{ -set_Value ("ContentHTML", ContentHTML); -} -/** Get Content HTML. -@return Contains the content itself */ -public String getContentHTML() -{ -return (String)get_Value("ContentHTML"); -} -/** Column name ContentHTML */ -public static final String COLUMNNAME_ContentHTML = "ContentHTML"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set LinkURL. -@param LinkURL Contains URL to a target */ -public void setLinkURL (String LinkURL) -{ -if (LinkURL != null && LinkURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -LinkURL = LinkURL.substring(0,119); -} -set_Value ("LinkURL", LinkURL); -} -/** Get LinkURL. -@return Contains URL to a target */ -public String getLinkURL() -{ -return (String)get_Value("LinkURL"); -} -/** Column name LinkURL */ -public static final String COLUMNNAME_LinkURL = "LinkURL"; -/** Set Publication Date. -@param PubDate Date on which this article will / should get published */ -public void setPubDate (Timestamp PubDate) -{ -set_Value ("PubDate", PubDate); -} -/** Get Publication Date. -@return Date on which this article will / should get published */ -public Timestamp getPubDate() -{ -return (Timestamp)get_Value("PubDate"); -} -/** Column name PubDate */ -public static final String COLUMNNAME_PubDate = "PubDate"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title != null && Title.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Title = Title.substring(0,254); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_NewsItem (Properties ctx, int CM_NewsItem_ID, String trxName) + { + super (ctx, CM_NewsItem_ID, trxName); + /** if (CM_NewsItem_ID == 0) { setCM_NewsChannel_ID (0); + setCM_NewsItem_ID (0); +} */ + } + + /** Load Constructor */ + public X_CM_NewsItem (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_NewsItem[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Author. + @param Author + Author/Creator of the Entity + */ + public void setAuthor (String Author) + { + if (Author != null && Author.length() > 255) + { + log.warning("Length > 255 - truncated"); + Author = Author.substring(0, 254); + } + set_Value (COLUMNNAME_Author, Author); + } + + /** Get Author. + @return Author/Creator of the Entity + */ + public String getAuthor () + { + return (String)get_Value(COLUMNNAME_Author); + } + + public I_CM_NewsChannel getI_CM_NewsChannel() throws Exception + { + 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 e; + } + return result; + } + + /** Set News Channel. + @param CM_NewsChannel_ID + News channel for rss feed + */ + public void setCM_NewsChannel_ID (int CM_NewsChannel_ID) + { + if (CM_NewsChannel_ID < 1) + throw new IllegalArgumentException ("CM_NewsChannel_ID is mandatory."); + set_Value (COLUMNNAME_CM_NewsChannel_ID, Integer.valueOf(CM_NewsChannel_ID)); + } + + /** Get News Channel. + @return News channel for rss feed + */ + public int getCM_NewsChannel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_NewsChannel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set News Item / Article. + @param CM_NewsItem_ID + News item or article defines base content + */ + public void setCM_NewsItem_ID (int CM_NewsItem_ID) + { + if (CM_NewsItem_ID < 1) + throw new IllegalArgumentException ("CM_NewsItem_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_NewsItem_ID, Integer.valueOf(CM_NewsItem_ID)); + } + + /** Get News Item / Article. + @return News item or article defines base content + */ + public int getCM_NewsItem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_NewsItem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Content HTML. + @param ContentHTML + Contains the content itself + */ + public void setContentHTML (String ContentHTML) + { + set_Value (COLUMNNAME_ContentHTML, ContentHTML); + } + + /** Get Content HTML. + @return Contains the content itself + */ + public String getContentHTML () + { + return (String)get_Value(COLUMNNAME_ContentHTML); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set LinkURL. + @param LinkURL + Contains URL to a target + */ + public void setLinkURL (String LinkURL) + { + if (LinkURL != null && LinkURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + LinkURL = LinkURL.substring(0, 119); + } + set_Value (COLUMNNAME_LinkURL, LinkURL); + } + + /** Get LinkURL. + @return Contains URL to a target + */ + public String getLinkURL () + { + return (String)get_Value(COLUMNNAME_LinkURL); + } + + /** Set Publication Date. + @param PubDate + Date on which this article will / should get published + */ + public void setPubDate (Timestamp PubDate) + { + set_Value (COLUMNNAME_PubDate, PubDate); + } + + /** Get Publication Date. + @return Date on which this article will / should get published + */ + public Timestamp getPubDate () + { + return (Timestamp)get_Value(COLUMNNAME_PubDate); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title != null && Title.length() > 255) + { + log.warning("Length > 255 - truncated"); + Title = Title.substring(0, 254); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_Template.java b/base/src/org/compiere/model/X_CM_Template.java index e71c998e8d..1d783d5b0c 100644 --- a/base/src/org/compiere/model/X_CM_Template.java +++ b/base/src/org/compiere/model/X_CM_Template.java @@ -1,367 +1,420 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Template - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Template extends PO + +/** Generated Model for CM_Template + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Template extends PO implements I_CM_Template, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Template_ID id -@param trxName transaction -*/ -public X_CM_Template (Properties ctx, int CM_Template_ID, String trxName) -{ -super (ctx, CM_Template_ID, trxName); -/** if (CM_Template_ID == 0) -{ -setCM_Template_ID (0); -setIsInclude (false); -setIsNews (false); -setIsSummary (false); -setIsUseAd (false); -setIsValid (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Template (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Template */ -public static final String Table_Name="CM_Template"; - -/** AD_Table_ID=854 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Template[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Template. -@param CM_Template_ID Template defines how content is displayed */ -public void setCM_Template_ID (int CM_Template_ID) -{ -if (CM_Template_ID < 1) throw new IllegalArgumentException ("CM_Template_ID is mandatory."); -set_ValueNoCheck ("CM_Template_ID", Integer.valueOf(CM_Template_ID)); -} -/** Get Template. -@return Template defines how content is displayed */ -public int getCM_Template_ID() -{ -Integer ii = (Integer)get_Value("CM_Template_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Template_ID */ -public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID <= 0) set_ValueNoCheck ("CM_WebProject_ID", null); - else -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Elements. -@param Elements Contains list of elements seperated by CR */ -public void setElements (String Elements) -{ -if (Elements != null && Elements.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Elements = Elements.substring(0,1999); -} -set_Value ("Elements", Elements); -} -/** Get Elements. -@return Contains list of elements seperated by CR */ -public String getElements() -{ -return (String)get_Value("Elements"); -} -/** Column name Elements */ -public static final String COLUMNNAME_Elements = "Elements"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Included. -@param IsInclude Defines whether this content / template is included into another one */ -public void setIsInclude (boolean IsInclude) -{ -set_Value ("IsInclude", Boolean.valueOf(IsInclude)); -} -/** Get Included. -@return Defines whether this content / template is included into another one */ -public boolean isInclude() -{ -Object oo = get_Value("IsInclude"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInclude */ -public static final String COLUMNNAME_IsInclude = "IsInclude"; -/** Set Uses News. -@param IsNews Template or container uses news channels */ -public void setIsNews (boolean IsNews) -{ -set_Value ("IsNews", Boolean.valueOf(IsNews)); -} -/** Get Uses News. -@return Template or container uses news channels */ -public boolean isNews() -{ -Object oo = get_Value("IsNews"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsNews */ -public static final String COLUMNNAME_IsNews = "IsNews"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Use Ad. -@param IsUseAd Whether or not this templates uses Ad's */ -public void setIsUseAd (boolean IsUseAd) -{ -set_Value ("IsUseAd", Boolean.valueOf(IsUseAd)); -} -/** Get Use Ad. -@return Whether or not this templates uses Ad's */ -public boolean isUseAd() -{ -Object oo = get_Value("IsUseAd"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsUseAd */ -public static final String COLUMNNAME_IsUseAd = "IsUseAd"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set TemplateXST. -@param TemplateXST Contains the template code itself */ -public void setTemplateXST (String TemplateXST) -{ -set_Value ("TemplateXST", TemplateXST); -} -/** Get TemplateXST. -@return Contains the template code itself */ -public String getTemplateXST() -{ -return (String)get_Value("TemplateXST"); -} -/** Column name TemplateXST */ -public static final String COLUMNNAME_TemplateXST = "TemplateXST"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Template (Properties ctx, int CM_Template_ID, String trxName) + { + super (ctx, CM_Template_ID, trxName); + /** if (CM_Template_ID == 0) { setCM_Template_ID (0); + setIsInclude (false); + setIsNews (false); + setIsSummary (false); + setIsUseAd (false); + setIsValid (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_CM_Template (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Template[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Template. + @param CM_Template_ID + Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID) + { + if (CM_Template_ID < 1) + throw new IllegalArgumentException ("CM_Template_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + } + + /** Get Template. + @return Template defines how content is displayed + */ + public int getCM_Template_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Template_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID <= 0) set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Elements. + @param Elements + Contains list of elements seperated by CR + */ + public void setElements (String Elements) + { + if (Elements != null && Elements.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Elements = Elements.substring(0, 1999); + } + set_Value (COLUMNNAME_Elements, Elements); + } + + /** Get Elements. + @return Contains list of elements seperated by CR + */ + public String getElements () + { + return (String)get_Value(COLUMNNAME_Elements); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Included. + @param IsInclude + Defines whether this content / template is included into another one + */ + public void setIsInclude (boolean IsInclude) + { + set_Value (COLUMNNAME_IsInclude, Boolean.valueOf(IsInclude)); + } + + /** Get Included. + @return Defines whether this content / template is included into another one + */ + public boolean isInclude () + { + Object oo = get_Value(COLUMNNAME_IsInclude); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Uses News. + @param IsNews + Template or container uses news channels + */ + public void setIsNews (boolean IsNews) + { + set_Value (COLUMNNAME_IsNews, Boolean.valueOf(IsNews)); + } + + /** Get Uses News. + @return Template or container uses news channels + */ + public boolean isNews () + { + Object oo = get_Value(COLUMNNAME_IsNews); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Ad. + @param IsUseAd + Whether or not this templates uses Ad's + */ + public void setIsUseAd (boolean IsUseAd) + { + set_Value (COLUMNNAME_IsUseAd, Boolean.valueOf(IsUseAd)); + } + + /** Get Use Ad. + @return Whether or not this templates uses Ad's + */ + public boolean isUseAd () + { + Object oo = get_Value(COLUMNNAME_IsUseAd); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set TemplateXST. + @param TemplateXST + Contains the template code itself + */ + public void setTemplateXST (String TemplateXST) + { + set_Value (COLUMNNAME_TemplateXST, TemplateXST); + } + + /** Get TemplateXST. + @return Contains the template code itself + */ + public String getTemplateXST () + { + return (String)get_Value(COLUMNNAME_TemplateXST); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_TemplateTable.java b/base/src/org/compiere/model/X_CM_TemplateTable.java index e03f1d1efa..3442d8131e 100644 --- a/base/src/org/compiere/model/X_CM_TemplateTable.java +++ b/base/src/org/compiere/model/X_CM_TemplateTable.java @@ -1,225 +1,272 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_TemplateTable - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_TemplateTable extends PO + +/** Generated Model for CM_TemplateTable + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_TemplateTable extends PO implements I_CM_TemplateTable, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_TemplateTable_ID id -@param trxName transaction -*/ -public X_CM_TemplateTable (Properties ctx, int CM_TemplateTable_ID, String trxName) -{ -super (ctx, CM_TemplateTable_ID, trxName); -/** if (CM_TemplateTable_ID == 0) -{ -setAD_Table_ID (0); -setCM_TemplateTable_ID (0); -setCM_Template_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_TemplateTable (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_TemplateTable */ -public static final String Table_Name="CM_TemplateTable"; - -/** AD_Table_ID=879 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_TemplateTable[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Template Table. -@param CM_TemplateTable_ID CM Template Table Link */ -public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) -{ -if (CM_TemplateTable_ID < 1) throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); -set_ValueNoCheck ("CM_TemplateTable_ID", Integer.valueOf(CM_TemplateTable_ID)); -} -/** Get Template Table. -@return CM Template Table Link */ -public int getCM_TemplateTable_ID() -{ -Integer ii = (Integer)get_Value("CM_TemplateTable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_TemplateTable_ID */ -public static final String COLUMNNAME_CM_TemplateTable_ID = "CM_TemplateTable_ID"; -/** Set Template. -@param CM_Template_ID Template defines how content is displayed */ -public void setCM_Template_ID (int CM_Template_ID) -{ -if (CM_Template_ID < 1) throw new IllegalArgumentException ("CM_Template_ID is mandatory."); -set_ValueNoCheck ("CM_Template_ID", Integer.valueOf(CM_Template_ID)); -} -/** Get Template. -@return Template defines how content is displayed */ -public int getCM_Template_ID() -{ -Integer ii = (Integer)get_Value("CM_Template_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Template_ID */ -public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Other SQL Clause. -@param OtherClause Other SQL Clause */ -public void setOtherClause (String OtherClause) -{ -if (OtherClause != null && OtherClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -OtherClause = OtherClause.substring(0,1999); -} -set_Value ("OtherClause", OtherClause); -} -/** Get Other SQL Clause. -@return Other SQL Clause */ -public String getOtherClause() -{ -return (String)get_Value("OtherClause"); -} -/** Column name OtherClause */ -public static final String COLUMNNAME_OtherClause = "OtherClause"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_TemplateTable (Properties ctx, int CM_TemplateTable_ID, String trxName) + { + super (ctx, CM_TemplateTable_ID, trxName); + /** if (CM_TemplateTable_ID == 0) { setAD_Table_ID (0); + setCM_TemplateTable_ID (0); + setCM_Template_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_TemplateTable (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_TemplateTable[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Template Table. + @param CM_TemplateTable_ID + CM Template Table Link + */ + public void setCM_TemplateTable_ID (int CM_TemplateTable_ID) + { + if (CM_TemplateTable_ID < 1) + throw new IllegalArgumentException ("CM_TemplateTable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_TemplateTable_ID, Integer.valueOf(CM_TemplateTable_ID)); + } + + /** Get Template Table. + @return CM Template Table Link + */ + public int getCM_TemplateTable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_TemplateTable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Template getI_CM_Template() throws Exception + { + 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 e; + } + return result; + } + + /** Set Template. + @param CM_Template_ID + Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID) + { + if (CM_Template_ID < 1) + throw new IllegalArgumentException ("CM_Template_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + } + + /** Get Template. + @return Template defines how content is displayed + */ + public int getCM_Template_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Template_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Other SQL Clause. + @param OtherClause + Other SQL Clause + */ + public void setOtherClause (String OtherClause) + { + if (OtherClause != null && OtherClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + OtherClause = OtherClause.substring(0, 1999); + } + set_Value (COLUMNNAME_OtherClause, OtherClause); + } + + /** Get Other SQL Clause. + @return Other SQL Clause + */ + public String getOtherClause () + { + return (String)get_Value(COLUMNNAME_OtherClause); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file 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 2301d04b89..acc51c99da 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 @@ -1,169 +1,205 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_Template_Ad_Cat - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_Template_Ad_Cat extends PO + +/** Generated Model for CM_Template_Ad_Cat + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_Template_Ad_Cat extends PO implements I_CM_Template_Ad_Cat, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_Template_Ad_Cat_ID id -@param trxName transaction -*/ -public X_CM_Template_Ad_Cat (Properties ctx, int CM_Template_Ad_Cat_ID, String trxName) -{ -super (ctx, CM_Template_Ad_Cat_ID, trxName); -/** if (CM_Template_Ad_Cat_ID == 0) -{ -setCM_Ad_Cat_ID (0); -setCM_Template_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_Template_Ad_Cat (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_Template_Ad_Cat */ -public static final String Table_Name="CM_Template_Ad_Cat"; - -/** AD_Table_ID=872 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_Template_Ad_Cat[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Advertisement Category. -@param CM_Ad_Cat_ID Advertisement Category like Banner Homepage */ -public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) -{ -if (CM_Ad_Cat_ID < 1) throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); -set_Value ("CM_Ad_Cat_ID", Integer.valueOf(CM_Ad_Cat_ID)); -} -/** Get Advertisement Category. -@return Advertisement Category like Banner Homepage */ -public int getCM_Ad_Cat_ID() -{ -Integer ii = (Integer)get_Value("CM_Ad_Cat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Ad_Cat_ID */ -public static final String COLUMNNAME_CM_Ad_Cat_ID = "CM_Ad_Cat_ID"; -/** Set Template. -@param CM_Template_ID Template defines how content is displayed */ -public void setCM_Template_ID (int CM_Template_ID) -{ -if (CM_Template_ID < 1) throw new IllegalArgumentException ("CM_Template_ID is mandatory."); -set_Value ("CM_Template_ID", Integer.valueOf(CM_Template_ID)); -} -/** Get Template. -@return Template defines how content is displayed */ -public int getCM_Template_ID() -{ -Integer ii = (Integer)get_Value("CM_Template_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Template_ID */ -public static final String COLUMNNAME_CM_Template_ID = "CM_Template_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_Template_Ad_Cat (Properties ctx, int CM_Template_Ad_Cat_ID, String trxName) + { + super (ctx, CM_Template_Ad_Cat_ID, trxName); + /** if (CM_Template_Ad_Cat_ID == 0) { setCM_Ad_Cat_ID (0); + setCM_Template_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_Template_Ad_Cat (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_Template_Ad_Cat[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_Ad_Cat getI_CM_Ad_Cat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Advertisement Category. + @param CM_Ad_Cat_ID + Advertisement Category like Banner Homepage + */ + public void setCM_Ad_Cat_ID (int CM_Ad_Cat_ID) + { + if (CM_Ad_Cat_ID < 1) + throw new IllegalArgumentException ("CM_Ad_Cat_ID is mandatory."); + set_Value (COLUMNNAME_CM_Ad_Cat_ID, Integer.valueOf(CM_Ad_Cat_ID)); + } + + /** Get Advertisement Category. + @return Advertisement Category like Banner Homepage + */ + public int getCM_Ad_Cat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Ad_Cat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Template getI_CM_Template() throws Exception + { + 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 e; + } + return result; + } + + /** Set Template. + @param CM_Template_ID + Template defines how content is displayed + */ + public void setCM_Template_ID (int CM_Template_ID) + { + if (CM_Template_ID < 1) + throw new IllegalArgumentException ("CM_Template_ID is mandatory."); + set_Value (COLUMNNAME_CM_Template_ID, Integer.valueOf(CM_Template_ID)); + } + + /** Get Template. + @return Template defines how content is displayed + */ + public int getCM_Template_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Template_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_WebAccessLog.java b/base/src/org/compiere/model/X_CM_WebAccessLog.java index 9a7a4a071e..24ea24016f 100644 --- a/base/src/org/compiere/model/X_CM_WebAccessLog.java +++ b/base/src/org/compiere/model/X_CM_WebAccessLog.java @@ -1,456 +1,554 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_WebAccessLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_WebAccessLog extends PO + +/** Generated Model for CM_WebAccessLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_WebAccessLog extends PO implements I_CM_WebAccessLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_WebAccessLog_ID id -@param trxName transaction -*/ -public X_CM_WebAccessLog (Properties ctx, int CM_WebAccessLog_ID, String trxName) -{ -super (ctx, CM_WebAccessLog_ID, trxName); -/** if (CM_WebAccessLog_ID == 0) -{ -setCM_WebAccessLog_ID (0); -setIP_Address (null); -setLogType (null); -setProtocol (null); -setRequestType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_WebAccessLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_WebAccessLog */ -public static final String Table_Name="CM_WebAccessLog"; - -/** AD_Table_ID=894 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_WebAccessLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Accept Language. -@param AcceptLanguage Language accepted based on browser information */ -public void setAcceptLanguage (String AcceptLanguage) -{ -if (AcceptLanguage != null && AcceptLanguage.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AcceptLanguage = AcceptLanguage.substring(0,59); -} -set_Value ("AcceptLanguage", AcceptLanguage); -} -/** Get Accept Language. -@return Language accepted based on browser information */ -public String getAcceptLanguage() -{ -return (String)get_Value("AcceptLanguage"); -} -/** Column name AcceptLanguage */ -public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage"; -/** Set Broadcast Server. -@param CM_BroadcastServer_ID Web Broadcast Server */ -public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID) -{ -if (CM_BroadcastServer_ID <= 0) set_Value ("CM_BroadcastServer_ID", null); - else -set_Value ("CM_BroadcastServer_ID", Integer.valueOf(CM_BroadcastServer_ID)); -} -/** Get Broadcast Server. -@return Web Broadcast Server */ -public int getCM_BroadcastServer_ID() -{ -Integer ii = (Integer)get_Value("CM_BroadcastServer_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_BroadcastServer_ID */ -public static final String COLUMNNAME_CM_BroadcastServer_ID = "CM_BroadcastServer_ID"; -/** Set Media Item. -@param CM_Media_ID Contains media content like images, flash movies etc. */ -public void setCM_Media_ID (int CM_Media_ID) -{ -if (CM_Media_ID <= 0) set_Value ("CM_Media_ID", null); - else -set_Value ("CM_Media_ID", Integer.valueOf(CM_Media_ID)); -} -/** Get Media Item. -@return Contains media content like images, flash movies etc. */ -public int getCM_Media_ID() -{ -Integer ii = (Integer)get_Value("CM_Media_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Media_ID */ -public static final String COLUMNNAME_CM_Media_ID = "CM_Media_ID"; -/** Set Web Access Log. -@param CM_WebAccessLog_ID Web Access Log Information */ -public void setCM_WebAccessLog_ID (int CM_WebAccessLog_ID) -{ -if (CM_WebAccessLog_ID < 1) throw new IllegalArgumentException ("CM_WebAccessLog_ID is mandatory."); -set_ValueNoCheck ("CM_WebAccessLog_ID", Integer.valueOf(CM_WebAccessLog_ID)); -} -/** Get Web Access Log. -@return Web Access Log Information */ -public int getCM_WebAccessLog_ID() -{ -Integer ii = (Integer)get_Value("CM_WebAccessLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebAccessLog_ID */ -public static final String COLUMNNAME_CM_WebAccessLog_ID = "CM_WebAccessLog_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID <= 0) set_Value ("CM_WebProject_ID", null); - else -set_Value ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set File Size. -@param FileSize Size of the File in bytes */ -public void setFileSize (BigDecimal FileSize) -{ -set_Value ("FileSize", FileSize); -} -/** Get File Size. -@return Size of the File in bytes */ -public BigDecimal getFileSize() -{ -BigDecimal bd = (BigDecimal)get_Value("FileSize"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FileSize */ -public static final String COLUMNNAME_FileSize = "FileSize"; -/** Set Hyphen. -@param Hyphen Hyphen */ -public void setHyphen (String Hyphen) -{ -if (Hyphen != null && Hyphen.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Hyphen = Hyphen.substring(0,19); -} -set_Value ("Hyphen", Hyphen); -} -/** Get Hyphen. -@return Hyphen */ -public String getHyphen() -{ -return (String)get_Value("Hyphen"); -} -/** Column name Hyphen */ -public static final String COLUMNNAME_Hyphen = "Hyphen"; -/** Set IP Address. -@param IP_Address Defines the IP address to transfer data to */ -public void setIP_Address (String IP_Address) -{ -if (IP_Address == null) throw new IllegalArgumentException ("IP_Address is mandatory."); -if (IP_Address.length() > 20) -{ -log.warning("Length > 20 - truncated"); -IP_Address = IP_Address.substring(0,19); -} -set_Value ("IP_Address", IP_Address); -} -/** Get IP Address. -@return Defines the IP address to transfer data to */ -public String getIP_Address() -{ -return (String)get_Value("IP_Address"); -} -/** Column name IP_Address */ -public static final String COLUMNNAME_IP_Address = "IP_Address"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_WebAccessLog (Properties ctx, int CM_WebAccessLog_ID, String trxName) + { + super (ctx, CM_WebAccessLog_ID, trxName); + /** if (CM_WebAccessLog_ID == 0) { setCM_WebAccessLog_ID (0); + setIP_Address (null); + setLogType (null); + setProtocol (null); + setRequestType (null); +} */ + } + + /** Load Constructor */ + public X_CM_WebAccessLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_WebAccessLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accept Language. + @param AcceptLanguage + Language accepted based on browser information + */ + public void setAcceptLanguage (String AcceptLanguage) + { + if (AcceptLanguage != null && AcceptLanguage.length() > 60) + { + log.warning("Length > 60 - truncated"); + AcceptLanguage = AcceptLanguage.substring(0, 59); + } + set_Value (COLUMNNAME_AcceptLanguage, AcceptLanguage); + } + + /** Get Accept Language. + @return Language accepted based on browser information + */ + public String getAcceptLanguage () + { + return (String)get_Value(COLUMNNAME_AcceptLanguage); + } + + public I_CM_BroadcastServer getI_CM_BroadcastServer() throws Exception + { + 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 e; + } + return result; + } + + /** Set Broadcast Server. + @param CM_BroadcastServer_ID + Web Broadcast Server + */ + public void setCM_BroadcastServer_ID (int CM_BroadcastServer_ID) + { + if (CM_BroadcastServer_ID <= 0) set_Value (COLUMNNAME_CM_BroadcastServer_ID, null); + else + set_Value (COLUMNNAME_CM_BroadcastServer_ID, Integer.valueOf(CM_BroadcastServer_ID)); + } + + /** Get Broadcast Server. + @return Web Broadcast Server + */ + public int getCM_BroadcastServer_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_BroadcastServer_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_Media getI_CM_Media() throws Exception + { + 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 e; + } + return result; + } + + /** Set Media Item. + @param CM_Media_ID + Contains media content like images, flash movies etc. + */ + public void setCM_Media_ID (int CM_Media_ID) + { + if (CM_Media_ID <= 0) set_Value (COLUMNNAME_CM_Media_ID, null); + else + set_Value (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); + } + + /** Get Media Item. + @return Contains media content like images, flash movies etc. + */ + public int getCM_Media_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Media_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Access Log. + @param CM_WebAccessLog_ID + Web Access Log Information + */ + public void setCM_WebAccessLog_ID (int CM_WebAccessLog_ID) + { + if (CM_WebAccessLog_ID < 1) + throw new IllegalArgumentException ("CM_WebAccessLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebAccessLog_ID, Integer.valueOf(CM_WebAccessLog_ID)); + } + + /** Get Web Access Log. + @return Web Access Log Information + */ + public int getCM_WebAccessLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebAccessLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID <= 0) set_Value (COLUMNNAME_CM_WebProject_ID, null); + else + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set File Size. + @param FileSize + Size of the File in bytes + */ + public void setFileSize (BigDecimal FileSize) + { + set_Value (COLUMNNAME_FileSize, FileSize); + } + + /** Get File Size. + @return Size of the File in bytes + */ + public BigDecimal getFileSize () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FileSize); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Hyphen. + @param Hyphen Hyphen */ + public void setHyphen (String Hyphen) + { + if (Hyphen != null && Hyphen.length() > 20) + { + log.warning("Length > 20 - truncated"); + Hyphen = Hyphen.substring(0, 19); + } + set_Value (COLUMNNAME_Hyphen, Hyphen); + } + + /** Get Hyphen. +@return Hyphen */ + public String getHyphen () + { + return (String)get_Value(COLUMNNAME_Hyphen); + } + + /** Set IP Address. + @param IP_Address + Defines the IP address to transfer data to + */ + public void setIP_Address (String IP_Address) + { + if (IP_Address == null) + throw new IllegalArgumentException ("IP_Address is mandatory."); + if (IP_Address.length() > 20) + { + log.warning("Length > 20 - truncated"); + IP_Address = IP_Address.substring(0, 19); + } + set_Value (COLUMNNAME_IP_Address, IP_Address); + } + + /** Get IP Address. + @return Defines the IP address to transfer data to + */ + public String getIP_Address () + { + return (String)get_Value(COLUMNNAME_IP_Address); + } /** LogType AD_Reference_ID=390 */ -public static final int LOGTYPE_AD_Reference_ID=390; -/** Ad display = A */ -public static final String LOGTYPE_AdDisplay = "A"; -/** Redirect = R */ -public static final String LOGTYPE_Redirect = "R"; -/** Web Access = W */ +public static final int LOGTYPE_AD_Reference_ID=390;/** Ad display = A */ +public static final String LOGTYPE_AdDisplay = "A";/** Redirect = R */ +public static final String LOGTYPE_Redirect = "R";/** Web Access = W */ public static final String LOGTYPE_WebAccess = "W"; -/** Set Log Type. -@param LogType Web Log Type */ -public void setLogType (String LogType) -{ -if (LogType == null) throw new IllegalArgumentException ("LogType is mandatory"); -if (LogType.equals("A") || LogType.equals("R") || LogType.equals("W")); - else throw new IllegalArgumentException ("LogType Invalid value - " + LogType + " - Reference_ID=390 - A - R - W"); -if (LogType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LogType = LogType.substring(0,0); -} -set_Value ("LogType", LogType); -} -/** Get Log Type. -@return Web Log Type */ -public String getLogType() -{ -return (String)get_Value("LogType"); -} -/** Column name LogType */ -public static final String COLUMNNAME_LogType = "LogType"; -/** Set Page URL. -@param PageURL Page URL */ -public void setPageURL (String PageURL) -{ -if (PageURL != null && PageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -PageURL = PageURL.substring(0,119); -} -set_Value ("PageURL", PageURL); -} -/** Get Page URL. -@return Page URL */ -public String getPageURL() -{ -return (String)get_Value("PageURL"); -} -/** Column name PageURL */ -public static final String COLUMNNAME_PageURL = "PageURL"; -/** Set Protocol. -@param Protocol Protocol */ -public void setProtocol (String Protocol) -{ -if (Protocol == null) throw new IllegalArgumentException ("Protocol is mandatory."); -if (Protocol.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Protocol = Protocol.substring(0,19); -} -set_Value ("Protocol", Protocol); -} -/** Get Protocol. -@return Protocol */ -public String getProtocol() -{ -return (String)get_Value("Protocol"); -} -/** Column name Protocol */ -public static final String COLUMNNAME_Protocol = "Protocol"; -/** Set Referrer. -@param Referrer Referring web address */ -public void setReferrer (String Referrer) -{ -if (Referrer != null && Referrer.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Referrer = Referrer.substring(0,119); -} -set_Value ("Referrer", Referrer); -} -/** Get Referrer. -@return Referring web address */ -public String getReferrer() -{ -return (String)get_Value("Referrer"); -} -/** Column name Referrer */ -public static final String COLUMNNAME_Referrer = "Referrer"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_Value ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_Value ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Request Type. -@param RequestType Request Type */ -public void setRequestType (String RequestType) -{ -if (RequestType == null) throw new IllegalArgumentException ("RequestType is mandatory."); -if (RequestType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -RequestType = RequestType.substring(0,3); -} -set_Value ("RequestType", RequestType); -} -/** Get Request Type. -@return Request Type */ -public String getRequestType() -{ -return (String)get_Value("RequestType"); -} -/** Column name RequestType */ -public static final String COLUMNNAME_RequestType = "RequestType"; -/** Set Status Code. -@param StatusCode Status Code */ -public void setStatusCode (int StatusCode) -{ -set_Value ("StatusCode", Integer.valueOf(StatusCode)); -} -/** Get Status Code. -@return Status Code */ -public int getStatusCode() -{ -Integer ii = (Integer)get_Value("StatusCode"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StatusCode */ -public static final String COLUMNNAME_StatusCode = "StatusCode"; -/** Set User Agent. -@param UserAgent Browser Used */ -public void setUserAgent (String UserAgent) -{ -if (UserAgent != null && UserAgent.length() > 255) -{ -log.warning("Length > 255 - truncated"); -UserAgent = UserAgent.substring(0,254); -} -set_Value ("UserAgent", UserAgent); -} -/** Get User Agent. -@return Browser Used */ -public String getUserAgent() -{ -return (String)get_Value("UserAgent"); -} -/** Column name UserAgent */ -public static final String COLUMNNAME_UserAgent = "UserAgent"; -/** Set Web Session. -@param WebSession Web Session ID */ -public void setWebSession (String WebSession) -{ -if (WebSession != null && WebSession.length() > 40) -{ -log.warning("Length > 40 - truncated"); -WebSession = WebSession.substring(0,39); -} -set_Value ("WebSession", WebSession); -} -/** Get Web Session. -@return Web Session ID */ -public String getWebSession() -{ -return (String)get_Value("WebSession"); -} -/** Column name WebSession */ -public static final String COLUMNNAME_WebSession = "WebSession"; -} + /** Set Log Type. + @param LogType + Web Log Type + */ + public void setLogType (String LogType) + { +if (LogType == null) throw new IllegalArgumentException ("LogType is mandatory");if (LogType.equals("A") || LogType.equals("R") || LogType.equals("W")); else throw new IllegalArgumentException ("LogType Invalid value - " + LogType + " - Reference_ID=390 - A - R - W"); if (LogType.length() > 1) + { + log.warning("Length > 1 - truncated"); + LogType = LogType.substring(0, 0); + } + set_Value (COLUMNNAME_LogType, LogType); + } + + /** Get Log Type. + @return Web Log Type + */ + public String getLogType () + { + return (String)get_Value(COLUMNNAME_LogType); + } + + /** Set Page URL. + @param PageURL Page URL */ + public void setPageURL (String PageURL) + { + if (PageURL != null && PageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + PageURL = PageURL.substring(0, 119); + } + set_Value (COLUMNNAME_PageURL, PageURL); + } + + /** Get Page URL. +@return Page URL */ + public String getPageURL () + { + return (String)get_Value(COLUMNNAME_PageURL); + } + + /** Set Protocol. + @param Protocol + Protocol + */ + public void setProtocol (String Protocol) + { + if (Protocol == null) + throw new IllegalArgumentException ("Protocol is mandatory."); + if (Protocol.length() > 20) + { + log.warning("Length > 20 - truncated"); + Protocol = Protocol.substring(0, 19); + } + set_Value (COLUMNNAME_Protocol, Protocol); + } + + /** Get Protocol. + @return Protocol + */ + public String getProtocol () + { + return (String)get_Value(COLUMNNAME_Protocol); + } + + /** Set Referrer. + @param Referrer + Referring web address + */ + public void setReferrer (String Referrer) + { + if (Referrer != null && Referrer.length() > 120) + { + log.warning("Length > 120 - truncated"); + Referrer = Referrer.substring(0, 119); + } + set_Value (COLUMNNAME_Referrer, Referrer); + } + + /** Get Referrer. + @return Referring web address + */ + public String getReferrer () + { + return (String)get_Value(COLUMNNAME_Referrer); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_Value (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Request Type. + @param RequestType Request Type */ + public void setRequestType (String RequestType) + { + if (RequestType == null) + throw new IllegalArgumentException ("RequestType is mandatory."); + if (RequestType.length() > 4) + { + log.warning("Length > 4 - truncated"); + RequestType = RequestType.substring(0, 3); + } + set_Value (COLUMNNAME_RequestType, RequestType); + } + + /** Get Request Type. +@return Request Type */ + public String getRequestType () + { + return (String)get_Value(COLUMNNAME_RequestType); + } + + /** Set Status Code. + @param StatusCode Status Code */ + public void setStatusCode (int StatusCode) + { + set_Value (COLUMNNAME_StatusCode, Integer.valueOf(StatusCode)); + } + + /** Get Status Code. +@return Status Code */ + public int getStatusCode () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StatusCode); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Agent. + @param UserAgent + Browser Used + */ + public void setUserAgent (String UserAgent) + { + if (UserAgent != null && UserAgent.length() > 255) + { + log.warning("Length > 255 - truncated"); + UserAgent = UserAgent.substring(0, 254); + } + set_Value (COLUMNNAME_UserAgent, UserAgent); + } + + /** Get User Agent. + @return Browser Used + */ + public String getUserAgent () + { + return (String)get_Value(COLUMNNAME_UserAgent); + } + + /** Set Web Session. + @param WebSession + Web Session ID + */ + public void setWebSession (String WebSession) + { + if (WebSession != null && WebSession.length() > 40) + { + log.warning("Length > 40 - truncated"); + WebSession = WebSession.substring(0, 39); + } + set_Value (COLUMNNAME_WebSession, WebSession); + } + + /** Get Web Session. + @return Web Session ID + */ + public String getWebSession () + { + return (String)get_Value(COLUMNNAME_WebSession); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_WebProject.java b/base/src/org/compiere/model/X_CM_WebProject.java index 59a299efa6..75cb065324 100644 --- a/base/src/org/compiere/model/X_CM_WebProject.java +++ b/base/src/org/compiere/model/X_CM_WebProject.java @@ -1,362 +1,398 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_WebProject - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_WebProject extends PO + +/** Generated Model for CM_WebProject + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_WebProject extends PO implements I_CM_WebProject, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_WebProject_ID id -@param trxName transaction -*/ -public X_CM_WebProject (Properties ctx, int CM_WebProject_ID, String trxName) -{ -super (ctx, CM_WebProject_ID, trxName); -/** if (CM_WebProject_ID == 0) -{ -setCM_WebProject_ID (0); -setMeta_Author (null); // @AD_User_Name@ -setMeta_Content (null); // 'text/html; - charset=UTF-8' -setMeta_Copyright (null); // @AD_Client_Name@ -setMeta_Publisher (null); // @AD_Client_Name@ -setMeta_RobotsTag (null); // 'INDEX,FOLLOW' -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_WebProject (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_WebProject */ -public static final String Table_Name="CM_WebProject"; - -/** AD_Table_ID=853 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_WebProject[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_WebProject (Properties ctx, int CM_WebProject_ID, String trxName) + { + super (ctx, CM_WebProject_ID, trxName); + /** if (CM_WebProject_ID == 0) { setCM_WebProject_ID (0); + setMeta_Author (null); +// @AD_User_Name@ + setMeta_Content (null); +// 'text/html; charset=UTF-8' + setMeta_Copyright (null); +// @AD_Client_Name@ + setMeta_Publisher (null); +// @AD_Client_Name@ + setMeta_RobotsTag (null); +// 'INDEX,FOLLOW' + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_WebProject (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_WebProject[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_TreeCMC_ID AD_Reference_ID=184 */ public static final int AD_TREECMC_ID_AD_Reference_ID=184; -/** Set Container Tree. -@param AD_TreeCMC_ID Container Tree */ -public void setAD_TreeCMC_ID (int AD_TreeCMC_ID) -{ -if (AD_TreeCMC_ID <= 0) set_ValueNoCheck ("AD_TreeCMC_ID", null); - else -set_ValueNoCheck ("AD_TreeCMC_ID", Integer.valueOf(AD_TreeCMC_ID)); -} -/** Get Container Tree. -@return Container Tree */ -public int getAD_TreeCMC_ID() -{ -Integer ii = (Integer)get_Value("AD_TreeCMC_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_TreeCMC_ID */ -public static final String COLUMNNAME_AD_TreeCMC_ID = "AD_TreeCMC_ID"; + /** Set Container Tree. + @param AD_TreeCMC_ID + Container Tree + */ + public void setAD_TreeCMC_ID (int AD_TreeCMC_ID) + { + if (AD_TreeCMC_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_TreeCMC_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_TreeCMC_ID, Integer.valueOf(AD_TreeCMC_ID)); + } + + /** Get Container Tree. + @return Container Tree + */ + public int getAD_TreeCMC_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_TreeCMC_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_TreeCMM_ID AD_Reference_ID=184 */ public static final int AD_TREECMM_ID_AD_Reference_ID=184; -/** Set Media Tree. -@param AD_TreeCMM_ID Media Tree */ -public void setAD_TreeCMM_ID (int AD_TreeCMM_ID) -{ -if (AD_TreeCMM_ID <= 0) set_ValueNoCheck ("AD_TreeCMM_ID", null); - else -set_ValueNoCheck ("AD_TreeCMM_ID", Integer.valueOf(AD_TreeCMM_ID)); -} -/** Get Media Tree. -@return Media Tree */ -public int getAD_TreeCMM_ID() -{ -Integer ii = (Integer)get_Value("AD_TreeCMM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_TreeCMM_ID */ -public static final String COLUMNNAME_AD_TreeCMM_ID = "AD_TreeCMM_ID"; + /** Set Media Tree. + @param AD_TreeCMM_ID + Media Tree + */ + public void setAD_TreeCMM_ID (int AD_TreeCMM_ID) + { + if (AD_TreeCMM_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_TreeCMM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_TreeCMM_ID, Integer.valueOf(AD_TreeCMM_ID)); + } + + /** Get Media Tree. + @return Media Tree + */ + public int getAD_TreeCMM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_TreeCMM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_TreeCMS_ID AD_Reference_ID=184 */ public static final int AD_TREECMS_ID_AD_Reference_ID=184; -/** Set Stage Tree. -@param AD_TreeCMS_ID Stage Tree */ -public void setAD_TreeCMS_ID (int AD_TreeCMS_ID) -{ -if (AD_TreeCMS_ID <= 0) set_ValueNoCheck ("AD_TreeCMS_ID", null); - else -set_ValueNoCheck ("AD_TreeCMS_ID", Integer.valueOf(AD_TreeCMS_ID)); -} -/** Get Stage Tree. -@return Stage Tree */ -public int getAD_TreeCMS_ID() -{ -Integer ii = (Integer)get_Value("AD_TreeCMS_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_TreeCMS_ID */ -public static final String COLUMNNAME_AD_TreeCMS_ID = "AD_TreeCMS_ID"; + /** Set Stage Tree. + @param AD_TreeCMS_ID + Stage Tree + */ + public void setAD_TreeCMS_ID (int AD_TreeCMS_ID) + { + if (AD_TreeCMS_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_TreeCMS_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_TreeCMS_ID, Integer.valueOf(AD_TreeCMS_ID)); + } + + /** Get Stage Tree. + @return Stage Tree + */ + public int getAD_TreeCMS_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_TreeCMS_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_TreeCMT_ID AD_Reference_ID=184 */ public static final int AD_TREECMT_ID_AD_Reference_ID=184; -/** Set Template Tree. -@param AD_TreeCMT_ID Template Tree */ -public void setAD_TreeCMT_ID (int AD_TreeCMT_ID) -{ -if (AD_TreeCMT_ID <= 0) set_ValueNoCheck ("AD_TreeCMT_ID", null); - else -set_ValueNoCheck ("AD_TreeCMT_ID", Integer.valueOf(AD_TreeCMT_ID)); -} -/** Get Template Tree. -@return Template Tree */ -public int getAD_TreeCMT_ID() -{ -Integer ii = (Integer)get_Value("AD_TreeCMT_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_TreeCMT_ID */ -public static final String COLUMNNAME_AD_TreeCMT_ID = "AD_TreeCMT_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Meta Author. -@param Meta_Author Author of the content */ -public void setMeta_Author (String Meta_Author) -{ -if (Meta_Author == null) throw new IllegalArgumentException ("Meta_Author is mandatory."); -if (Meta_Author.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Author = Meta_Author.substring(0,1999); -} -set_Value ("Meta_Author", Meta_Author); -} -/** Get Meta Author. -@return Author of the content */ -public String getMeta_Author() -{ -return (String)get_Value("Meta_Author"); -} -/** Column name Meta_Author */ -public static final String COLUMNNAME_Meta_Author = "Meta_Author"; -/** Set Meta Content Type. -@param Meta_Content Defines the type of content i.e. "text/html; - charset=UTF-8" */ -public void setMeta_Content (String Meta_Content) -{ -if (Meta_Content == null) throw new IllegalArgumentException ("Meta_Content is mandatory."); -if (Meta_Content.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Content = Meta_Content.substring(0,1999); -} -set_Value ("Meta_Content", Meta_Content); -} -/** Get Meta Content Type. -@return Defines the type of content i.e. "text/html; - charset=UTF-8" */ -public String getMeta_Content() -{ -return (String)get_Value("Meta_Content"); -} -/** Column name Meta_Content */ -public static final String COLUMNNAME_Meta_Content = "Meta_Content"; -/** Set Meta Copyright. -@param Meta_Copyright Contains Copyright information for the content */ -public void setMeta_Copyright (String Meta_Copyright) -{ -if (Meta_Copyright == null) throw new IllegalArgumentException ("Meta_Copyright is mandatory."); -if (Meta_Copyright.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Copyright = Meta_Copyright.substring(0,1999); -} -set_Value ("Meta_Copyright", Meta_Copyright); -} -/** Get Meta Copyright. -@return Contains Copyright information for the content */ -public String getMeta_Copyright() -{ -return (String)get_Value("Meta_Copyright"); -} -/** Column name Meta_Copyright */ -public static final String COLUMNNAME_Meta_Copyright = "Meta_Copyright"; -/** Set Meta Publisher. -@param Meta_Publisher Meta Publisher defines the publisher of the content */ -public void setMeta_Publisher (String Meta_Publisher) -{ -if (Meta_Publisher == null) throw new IllegalArgumentException ("Meta_Publisher is mandatory."); -if (Meta_Publisher.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_Publisher = Meta_Publisher.substring(0,1999); -} -set_Value ("Meta_Publisher", Meta_Publisher); -} -/** Get Meta Publisher. -@return Meta Publisher defines the publisher of the content */ -public String getMeta_Publisher() -{ -return (String)get_Value("Meta_Publisher"); -} -/** Column name Meta_Publisher */ -public static final String COLUMNNAME_Meta_Publisher = "Meta_Publisher"; -/** Set Meta RobotsTag. -@param Meta_RobotsTag RobotsTag defines how search robots should handle this content */ -public void setMeta_RobotsTag (String Meta_RobotsTag) -{ -if (Meta_RobotsTag == null) throw new IllegalArgumentException ("Meta_RobotsTag is mandatory."); -if (Meta_RobotsTag.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Meta_RobotsTag = Meta_RobotsTag.substring(0,1999); -} -set_Value ("Meta_RobotsTag", Meta_RobotsTag); -} -/** Get Meta RobotsTag. -@return RobotsTag defines how search robots should handle this content */ -public String getMeta_RobotsTag() -{ -return (String)get_Value("Meta_RobotsTag"); -} -/** Column name Meta_RobotsTag */ -public static final String COLUMNNAME_Meta_RobotsTag = "Meta_RobotsTag"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Template Tree. + @param AD_TreeCMT_ID + Template Tree + */ + public void setAD_TreeCMT_ID (int AD_TreeCMT_ID) + { + if (AD_TreeCMT_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_TreeCMT_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_TreeCMT_ID, Integer.valueOf(AD_TreeCMT_ID)); + } + + /** Get Template Tree. + @return Template Tree + */ + public int getAD_TreeCMT_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_TreeCMT_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Meta Author. + @param Meta_Author + Author of the content + */ + public void setMeta_Author (String Meta_Author) + { + if (Meta_Author == null) + throw new IllegalArgumentException ("Meta_Author is mandatory."); + if (Meta_Author.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Author = Meta_Author.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Author, Meta_Author); + } + + /** Get Meta Author. + @return Author of the content + */ + public String getMeta_Author () + { + return (String)get_Value(COLUMNNAME_Meta_Author); + } + + /** Set Meta Content Type. + @param Meta_Content + Defines the type of content i.e. "text/html; charset=UTF-8" + */ + public void setMeta_Content (String Meta_Content) + { + if (Meta_Content == null) + throw new IllegalArgumentException ("Meta_Content is mandatory."); + if (Meta_Content.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Content = Meta_Content.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Content, Meta_Content); + } + + /** Get Meta Content Type. + @return Defines the type of content i.e. "text/html; charset=UTF-8" + */ + public String getMeta_Content () + { + return (String)get_Value(COLUMNNAME_Meta_Content); + } + + /** Set Meta Copyright. + @param Meta_Copyright + Contains Copyright information for the content + */ + public void setMeta_Copyright (String Meta_Copyright) + { + if (Meta_Copyright == null) + throw new IllegalArgumentException ("Meta_Copyright is mandatory."); + if (Meta_Copyright.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Copyright = Meta_Copyright.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Copyright, Meta_Copyright); + } + + /** Get Meta Copyright. + @return Contains Copyright information for the content + */ + public String getMeta_Copyright () + { + return (String)get_Value(COLUMNNAME_Meta_Copyright); + } + + /** Set Meta Publisher. + @param Meta_Publisher + Meta Publisher defines the publisher of the content + */ + public void setMeta_Publisher (String Meta_Publisher) + { + if (Meta_Publisher == null) + throw new IllegalArgumentException ("Meta_Publisher is mandatory."); + if (Meta_Publisher.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_Publisher = Meta_Publisher.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_Publisher, Meta_Publisher); + } + + /** Get Meta Publisher. + @return Meta Publisher defines the publisher of the content + */ + public String getMeta_Publisher () + { + return (String)get_Value(COLUMNNAME_Meta_Publisher); + } + + /** Set Meta RobotsTag. + @param Meta_RobotsTag + RobotsTag defines how search robots should handle this content + */ + public void setMeta_RobotsTag (String Meta_RobotsTag) + { + if (Meta_RobotsTag == null) + throw new IllegalArgumentException ("Meta_RobotsTag is mandatory."); + if (Meta_RobotsTag.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Meta_RobotsTag = Meta_RobotsTag.substring(0, 1999); + } + set_Value (COLUMNNAME_Meta_RobotsTag, Meta_RobotsTag); + } + + /** Get Meta RobotsTag. + @return RobotsTag defines how search robots should handle this content + */ + public String getMeta_RobotsTag () + { + return (String)get_Value(COLUMNNAME_Meta_RobotsTag); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 8fe642fb33..70c9c0c270 100644 --- a/base/src/org/compiere/model/X_CM_WebProject_Domain.java +++ b/base/src/org/compiere/model/X_CM_WebProject_Domain.java @@ -1,227 +1,274 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_WebProject_Domain - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_WebProject_Domain extends PO + +/** Generated Model for CM_WebProject_Domain + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_WebProject_Domain extends PO implements I_CM_WebProject_Domain, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_WebProject_Domain_ID id -@param trxName transaction -*/ -public X_CM_WebProject_Domain (Properties ctx, int CM_WebProject_Domain_ID, String trxName) -{ -super (ctx, CM_WebProject_Domain_ID, trxName); -/** if (CM_WebProject_Domain_ID == 0) -{ -setCM_WebProject_Domain_ID (0); -setCM_WebProject_ID (0); -setFQDN (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_WebProject_Domain (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_WebProject_Domain */ -public static final String Table_Name="CM_WebProject_Domain"; - -/** AD_Table_ID=873 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_WebProject_Domain[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Container. -@param CM_Container_ID Web Container contains content like images, text etc. */ -public void setCM_Container_ID (int CM_Container_ID) -{ -if (CM_Container_ID <= 0) set_Value ("CM_Container_ID", null); - else -set_Value ("CM_Container_ID", Integer.valueOf(CM_Container_ID)); -} -/** Get Web Container. -@return Web Container contains content like images, text etc. */ -public int getCM_Container_ID() -{ -Integer ii = (Integer)get_Value("CM_Container_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_Container_ID */ -public static final String COLUMNNAME_CM_Container_ID = "CM_Container_ID"; -/** Set WebProject Domain. -@param CM_WebProject_Domain_ID Definition of Domainhandling */ -public void setCM_WebProject_Domain_ID (int CM_WebProject_Domain_ID) -{ -if (CM_WebProject_Domain_ID < 1) throw new IllegalArgumentException ("CM_WebProject_Domain_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_Domain_ID", Integer.valueOf(CM_WebProject_Domain_ID)); -} -/** Get WebProject Domain. -@return Definition of Domainhandling */ -public int getCM_WebProject_Domain_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_Domain_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_Domain_ID */ -public static final String COLUMNNAME_CM_WebProject_Domain_ID = "CM_WebProject_Domain_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID < 1) throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Fully Qualified Domain Name. -@param FQDN Fully Qualified Domain Name i.e. www.comdivision.com */ -public void setFQDN (String FQDN) -{ -if (FQDN == null) throw new IllegalArgumentException ("FQDN is mandatory."); -if (FQDN.length() > 120) -{ -log.warning("Length > 120 - truncated"); -FQDN = FQDN.substring(0,119); -} -set_Value ("FQDN", FQDN); -} -/** Get Fully Qualified Domain Name. -@return Fully Qualified Domain Name i.e. www.comdivision.com */ -public String getFQDN() -{ -return (String)get_Value("FQDN"); -} -/** Column name FQDN */ -public static final String COLUMNNAME_FQDN = "FQDN"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_WebProject_Domain (Properties ctx, int CM_WebProject_Domain_ID, String trxName) + { + super (ctx, CM_WebProject_Domain_ID, trxName); + /** if (CM_WebProject_Domain_ID == 0) { setCM_WebProject_Domain_ID (0); + setCM_WebProject_ID (0); + setFQDN (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_CM_WebProject_Domain (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_WebProject_Domain[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_Container getI_CM_Container() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Container. + @param CM_Container_ID + Web Container contains content like images, text etc. + */ + public void setCM_Container_ID (int CM_Container_ID) + { + if (CM_Container_ID <= 0) set_Value (COLUMNNAME_CM_Container_ID, null); + else + set_Value (COLUMNNAME_CM_Container_ID, Integer.valueOf(CM_Container_ID)); + } + + /** Get Web Container. + @return Web Container contains content like images, text etc. + */ + public int getCM_Container_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_Container_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set WebProject Domain. + @param CM_WebProject_Domain_ID + Definition of Domainhandling + */ + public void setCM_WebProject_Domain_ID (int CM_WebProject_Domain_ID) + { + if (CM_WebProject_Domain_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_Domain_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_Domain_ID, Integer.valueOf(CM_WebProject_Domain_ID)); + } + + /** Get WebProject Domain. + @return Definition of Domainhandling + */ + public int getCM_WebProject_Domain_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_Domain_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID < 1) + throw new IllegalArgumentException ("CM_WebProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Fully Qualified Domain Name. + @param FQDN + Fully Qualified Domain Name i.e. www.comdivision.com + */ + public void setFQDN (String FQDN) + { + if (FQDN == null) + throw new IllegalArgumentException ("FQDN is mandatory."); + if (FQDN.length() > 120) + { + log.warning("Length > 120 - truncated"); + FQDN = FQDN.substring(0, 119); + } + set_Value (COLUMNNAME_FQDN, FQDN); + } + + /** Get Fully Qualified Domain Name. + @return Fully Qualified Domain Name i.e. www.comdivision.com + */ + public String getFQDN () + { + return (String)get_Value(COLUMNNAME_FQDN); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_CM_WikiToken.java b/base/src/org/compiere/model/X_CM_WikiToken.java index d64025773c..189cdf77bb 100755 --- a/base/src/org/compiere/model/X_CM_WikiToken.java +++ b/base/src/org/compiere/model/X_CM_WikiToken.java @@ -1,260 +1,284 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for CM_WikiToken - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_CM_WikiToken extends PO + +/** Generated Model for CM_WikiToken + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_CM_WikiToken extends PO implements I_CM_WikiToken, I_Persistent { -/** Standard Constructor -@param ctx context -@param CM_WikiToken_ID id -@param trxName transaction -*/ -public X_CM_WikiToken (Properties ctx, int CM_WikiToken_ID, String trxName) -{ -super (ctx, CM_WikiToken_ID, trxName); -/** if (CM_WikiToken_ID == 0) -{ -setCM_WikiToken_ID (0); -setName (null); -setTokenType (null); // I -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_CM_WikiToken (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=CM_WikiToken */ -public static final String Table_Name="CM_WikiToken"; - -/** AD_Table_ID=905 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_CM_WikiToken[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_ValueNoCheck ("AD_Table_ID", null); - else -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Wiki Token. -@param CM_WikiToken_ID Wiki Token */ -public void setCM_WikiToken_ID (int CM_WikiToken_ID) -{ -if (CM_WikiToken_ID < 1) throw new IllegalArgumentException ("CM_WikiToken_ID is mandatory."); -set_ValueNoCheck ("CM_WikiToken_ID", Integer.valueOf(CM_WikiToken_ID)); -} -/** Get Wiki Token. -@return Wiki Token */ -public int getCM_WikiToken_ID() -{ -Integer ii = (Integer)get_Value("CM_WikiToken_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WikiToken_ID */ -public static final String COLUMNNAME_CM_WikiToken_ID = "CM_WikiToken_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Macro. -@param Macro Macro */ -public void setMacro (String Macro) -{ -if (Macro != null && Macro.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Macro = Macro.substring(0,1999); -} -set_Value ("Macro", Macro); -} -/** Get Macro. -@return Macro */ -public String getMacro() -{ -return (String)get_Value("Macro"); -} -/** Column name Macro */ -public static final String COLUMNNAME_Macro = "Macro"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sql SELECT. -@param SelectClause SQL SELECT clause */ -public void setSelectClause (String SelectClause) -{ -if (SelectClause != null && SelectClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -SelectClause = SelectClause.substring(0,1999); -} -set_Value ("SelectClause", SelectClause); -} -/** Get Sql SELECT. -@return SQL SELECT clause */ -public String getSelectClause() -{ -return (String)get_Value("SelectClause"); -} -/** Column name SelectClause */ -public static final String COLUMNNAME_SelectClause = "SelectClause"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_CM_WikiToken (Properties ctx, int CM_WikiToken_ID, String trxName) + { + super (ctx, CM_WikiToken_ID, trxName); + /** if (CM_WikiToken_ID == 0) { setCM_WikiToken_ID (0); + setName (null); + setTokenType (null); +// I +} */ + } + + /** Load Constructor */ + public X_CM_WikiToken (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_CM_WikiToken[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Wiki Token. + @param CM_WikiToken_ID + Wiki Token + */ + public void setCM_WikiToken_ID (int CM_WikiToken_ID) + { + if (CM_WikiToken_ID < 1) + throw new IllegalArgumentException ("CM_WikiToken_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_CM_WikiToken_ID, Integer.valueOf(CM_WikiToken_ID)); + } + + /** Get Wiki Token. + @return Wiki Token + */ + public int getCM_WikiToken_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WikiToken_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Macro. + @param Macro + Macro + */ + public void setMacro (String Macro) + { + if (Macro != null && Macro.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Macro = Macro.substring(0, 1999); + } + set_Value (COLUMNNAME_Macro, Macro); + } + + /** Get Macro. + @return Macro + */ + public String getMacro () + { + return (String)get_Value(COLUMNNAME_Macro); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sql SELECT. + @param SelectClause + SQL SELECT clause + */ + public void setSelectClause (String SelectClause) + { + if (SelectClause != null && SelectClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + SelectClause = SelectClause.substring(0, 1999); + } + set_Value (COLUMNNAME_SelectClause, SelectClause); + } + + /** Get Sql SELECT. + @return SQL SELECT clause + */ + public String getSelectClause () + { + return (String)get_Value(COLUMNNAME_SelectClause); + } /** TokenType AD_Reference_ID=397 */ -public static final int TOKENTYPE_AD_Reference_ID=397; -/** External Link = E */ -public static final String TOKENTYPE_ExternalLink = "E"; -/** Internal Link = I */ -public static final String TOKENTYPE_InternalLink = "I"; -/** SQL Command = Q */ -public static final String TOKENTYPE_SQLCommand = "Q"; -/** Style = S */ +public static final int TOKENTYPE_AD_Reference_ID=397;/** External Link = E */ +public static final String TOKENTYPE_ExternalLink = "E";/** Internal Link = I */ +public static final String TOKENTYPE_InternalLink = "I";/** SQL Command = Q */ +public static final String TOKENTYPE_SQLCommand = "Q";/** Style = S */ public static final String TOKENTYPE_Style = "S"; -/** Set TokenType. -@param TokenType Wiki Token Type */ -public void setTokenType (String TokenType) -{ -if (TokenType == null) throw new IllegalArgumentException ("TokenType is mandatory"); -if (TokenType.equals("E") || TokenType.equals("I") || TokenType.equals("Q") || TokenType.equals("S")); - else throw new IllegalArgumentException ("TokenType Invalid value - " + TokenType + " - Reference_ID=397 - E - I - Q - S"); -if (TokenType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TokenType = TokenType.substring(0,0); -} -set_Value ("TokenType", TokenType); -} -/** Get TokenType. -@return Wiki Token Type */ -public String getTokenType() -{ -return (String)get_Value("TokenType"); -} -/** Column name TokenType */ -public static final String COLUMNNAME_TokenType = "TokenType"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause != null && WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + /** Set TokenType. + @param TokenType + Wiki Token Type + */ + public void setTokenType (String TokenType) + { +if (TokenType == null) throw new IllegalArgumentException ("TokenType is mandatory");if (TokenType.equals("E") || TokenType.equals("I") || TokenType.equals("Q") || TokenType.equals("S")); else throw new IllegalArgumentException ("TokenType Invalid value - " + TokenType + " - Reference_ID=397 - E - I - Q - S"); if (TokenType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TokenType = TokenType.substring(0, 0); + } + set_Value (COLUMNNAME_TokenType, TokenType); + } + + /** Get TokenType. + @return Wiki Token Type + */ + public String getTokenType () + { + return (String)get_Value(COLUMNNAME_TokenType); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause != null && WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_AcctProcessor.java b/base/src/org/compiere/model/X_C_AcctProcessor.java index 8d3928a950..925d089934 100644 --- a/base/src/org/compiere/model/X_C_AcctProcessor.java +++ b/base/src/org/compiere/model/X_C_AcctProcessor.java @@ -1,322 +1,377 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AcctProcessor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AcctProcessor extends PO + +/** Generated Model for C_AcctProcessor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AcctProcessor extends PO implements I_C_AcctProcessor, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AcctProcessor_ID id -@param trxName transaction -*/ -public X_C_AcctProcessor (Properties ctx, int C_AcctProcessor_ID, String trxName) -{ -super (ctx, C_AcctProcessor_ID, trxName); -/** if (C_AcctProcessor_ID == 0) -{ -setC_AcctProcessor_ID (0); -setFrequency (0); -setFrequencyType (null); -setKeepLogDays (0); // 7 -setName (null); -setSupervisor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AcctProcessor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AcctProcessor */ -public static final String Table_Name="C_AcctProcessor"; - -/** AD_Table_ID=695 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AcctProcessor[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Accounting Processor. -@param C_AcctProcessor_ID Accounting Processor/Server Parameters */ -public void setC_AcctProcessor_ID (int C_AcctProcessor_ID) -{ -if (C_AcctProcessor_ID < 1) throw new IllegalArgumentException ("C_AcctProcessor_ID is mandatory."); -set_ValueNoCheck ("C_AcctProcessor_ID", Integer.valueOf(C_AcctProcessor_ID)); -} -/** Get Accounting Processor. -@return Accounting Processor/Server Parameters */ -public int getC_AcctProcessor_ID() -{ -Integer ii = (Integer)get_Value("C_AcctProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctProcessor_ID */ -public static final String COLUMNNAME_C_AcctProcessor_ID = "C_AcctProcessor_ID"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID <= 0) set_Value ("C_AcctSchema_ID", null); - else -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctProcessor (Properties ctx, int C_AcctProcessor_ID, String trxName) + { + super (ctx, C_AcctProcessor_ID, trxName); + /** if (C_AcctProcessor_ID == 0) { setC_AcctProcessor_ID (0); + setFrequency (0); + setFrequencyType (null); + setKeepLogDays (0); +// 7 + setName (null); + setSupervisor_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_AcctProcessor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AcctProcessor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accounting Processor. + @param C_AcctProcessor_ID + Accounting Processor/Server Parameters + */ + public void setC_AcctProcessor_ID (int C_AcctProcessor_ID) + { + if (C_AcctProcessor_ID < 1) + throw new IllegalArgumentException ("C_AcctProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, Integer.valueOf(C_AcctProcessor_ID)); + } + + /** Get Accounting Processor. + @return Accounting Processor/Server Parameters + */ + public int getC_AcctProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID <= 0) set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=221 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=221; -/** Day = D */ -public static final String FREQUENCYTYPE_Day = "D"; -/** Hour = H */ -public static final String FREQUENCYTYPE_Hour = "H"; -/** Minute = M */ +public static final int FREQUENCYTYPE_AD_Reference_ID=221;/** Day = D */ +public static final String FREQUENCYTYPE_Day = "D";/** Hour = H */ +public static final String FREQUENCYTYPE_Hour = "H";/** Minute = M */ public static final String FREQUENCYTYPE_Minute = "M"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** Supervisor_ID AD_Reference_ID=286 */ public static final int SUPERVISOR_ID_AD_Reference_ID=286; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID < 1) throw new IllegalArgumentException ("Supervisor_ID is mandatory."); -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + throw new IllegalArgumentException ("Supervisor_ID is mandatory."); + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_AcctProcessorLog.java b/base/src/org/compiere/model/X_C_AcctProcessorLog.java index e9e7055663..5800b25b4c 100644 --- a/base/src/org/compiere/model/X_C_AcctProcessorLog.java +++ b/base/src/org/compiere/model/X_C_AcctProcessorLog.java @@ -1,234 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AcctProcessorLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AcctProcessorLog extends PO + +/** Generated Model for C_AcctProcessorLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AcctProcessorLog extends PO implements I_C_AcctProcessorLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AcctProcessorLog_ID id -@param trxName transaction -*/ -public X_C_AcctProcessorLog (Properties ctx, int C_AcctProcessorLog_ID, String trxName) -{ -super (ctx, C_AcctProcessorLog_ID, trxName); -/** if (C_AcctProcessorLog_ID == 0) -{ -setC_AcctProcessorLog_ID (0); -setC_AcctProcessor_ID (0); -setIsError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AcctProcessorLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AcctProcessorLog */ -public static final String Table_Name="C_AcctProcessorLog"; - -/** AD_Table_ID=694 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AcctProcessorLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Accounting Processor Log. -@param C_AcctProcessorLog_ID Result of the execution of the Accounting Processor */ -public void setC_AcctProcessorLog_ID (int C_AcctProcessorLog_ID) -{ -if (C_AcctProcessorLog_ID < 1) throw new IllegalArgumentException ("C_AcctProcessorLog_ID is mandatory."); -set_ValueNoCheck ("C_AcctProcessorLog_ID", Integer.valueOf(C_AcctProcessorLog_ID)); -} -/** Get Accounting Processor Log. -@return Result of the execution of the Accounting Processor */ -public int getC_AcctProcessorLog_ID() -{ -Integer ii = (Integer)get_Value("C_AcctProcessorLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctProcessorLog_ID */ -public static final String COLUMNNAME_C_AcctProcessorLog_ID = "C_AcctProcessorLog_ID"; -/** Set Accounting Processor. -@param C_AcctProcessor_ID Accounting Processor/Server Parameters */ -public void setC_AcctProcessor_ID (int C_AcctProcessor_ID) -{ -if (C_AcctProcessor_ID < 1) throw new IllegalArgumentException ("C_AcctProcessor_ID is mandatory."); -set_ValueNoCheck ("C_AcctProcessor_ID", Integer.valueOf(C_AcctProcessor_ID)); -} -/** Get Accounting Processor. -@return Accounting Processor/Server Parameters */ -public int getC_AcctProcessor_ID() -{ -Integer ii = (Integer)get_Value("C_AcctProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctProcessor_ID */ -public static final String COLUMNNAME_C_AcctProcessor_ID = "C_AcctProcessor_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_Value ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctProcessorLog (Properties ctx, int C_AcctProcessorLog_ID, String trxName) + { + super (ctx, C_AcctProcessorLog_ID, trxName); + /** if (C_AcctProcessorLog_ID == 0) { setC_AcctProcessorLog_ID (0); + setC_AcctProcessor_ID (0); + setIsError (false); +} */ + } + + /** Load Constructor */ + public X_C_AcctProcessorLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AcctProcessorLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Accounting Processor Log. + @param C_AcctProcessorLog_ID + Result of the execution of the Accounting Processor + */ + public void setC_AcctProcessorLog_ID (int C_AcctProcessorLog_ID) + { + if (C_AcctProcessorLog_ID < 1) + throw new IllegalArgumentException ("C_AcctProcessorLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctProcessorLog_ID, Integer.valueOf(C_AcctProcessorLog_ID)); + } + + /** Get Accounting Processor Log. + @return Result of the execution of the Accounting Processor + */ + public int getC_AcctProcessorLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctProcessorLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctProcessor getI_C_AcctProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Processor. + @param C_AcctProcessor_ID + Accounting Processor/Server Parameters + */ + public void setC_AcctProcessor_ID (int C_AcctProcessor_ID) + { + if (C_AcctProcessor_ID < 1) + throw new IllegalArgumentException ("C_AcctProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctProcessor_ID, Integer.valueOf(C_AcctProcessor_ID)); + } + + /** Get Accounting Processor. + @return Accounting Processor/Server Parameters + */ + public int getC_AcctProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_Value (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_AcctSchema.java b/base/src/org/compiere/model/X_C_AcctSchema.java index 43721ca1a2..ea9a0d12a7 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema.java +++ b/base/src/org/compiere/model/X_C_AcctSchema.java @@ -1,686 +1,781 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AcctSchema - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AcctSchema extends PO + +/** Generated Model for C_AcctSchema + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AcctSchema_ID id -@param trxName transaction -*/ -public X_C_AcctSchema (Properties ctx, int C_AcctSchema_ID, String trxName) -{ -super (ctx, C_AcctSchema_ID, trxName); -/** if (C_AcctSchema_ID == 0) -{ -setAutoPeriodControl (false); -setC_AcctSchema_ID (0); -setC_Currency_ID (0); -setCommitmentType (null); // N -setCostingLevel (null); // C -setCostingMethod (null); // S -setGAAP (null); -setHasAlias (false); -setHasCombination (false); -setIsAccrual (true); // Y -setIsAdjustCOGS (false); -setIsDiscountCorrectsTax (false); -setIsExplicitCostAdjustment (false); // N -setIsPostServices (false); // N -setIsTradeDiscountPosted (false); -setM_CostType_ID (0); -setName (null); -setSeparator (null); // - -setTaxCorrectionType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AcctSchema (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AcctSchema */ -public static final String Table_Name="C_AcctSchema"; - -/** AD_Table_ID=265 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AcctSchema[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctSchema (Properties ctx, int C_AcctSchema_ID, String trxName) + { + super (ctx, C_AcctSchema_ID, trxName); + /** if (C_AcctSchema_ID == 0) { setAutoPeriodControl (false); + setC_AcctSchema_ID (0); + setC_Currency_ID (0); + setCommitmentType (null); +// N + setCostingLevel (null); +// C + setCostingMethod (null); +// S + setGAAP (null); + setHasAlias (false); + setHasCombination (false); + setIsAccrual (true); +// Y + setIsAdjustCOGS (false); + setIsDiscountCorrectsTax (false); + setIsExplicitCostAdjustment (false); +// N + setIsPostServices (false); +// N + setIsTradeDiscountPosted (false); + setM_CostType_ID (0); + setName (null); + setSeparator (null); +// - + setTaxCorrectionType (null); +} */ + } + + /** Load Constructor */ + public X_C_AcctSchema (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AcctSchema[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgOnly_ID AD_Reference_ID=322 */ public static final int AD_ORGONLY_ID_AD_Reference_ID=322; -/** Set Only Organization. -@param AD_OrgOnly_ID Create posting entries only for this organization */ -public void setAD_OrgOnly_ID (int AD_OrgOnly_ID) -{ -if (AD_OrgOnly_ID <= 0) set_Value ("AD_OrgOnly_ID", null); - else -set_Value ("AD_OrgOnly_ID", Integer.valueOf(AD_OrgOnly_ID)); -} -/** Get Only Organization. -@return Create posting entries only for this organization */ -public int getAD_OrgOnly_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgOnly_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgOnly_ID */ -public static final String COLUMNNAME_AD_OrgOnly_ID = "AD_OrgOnly_ID"; -/** Set Automatic Period Control. -@param AutoPeriodControl If selected, the periods are automatically opened and closed */ -public void setAutoPeriodControl (boolean AutoPeriodControl) -{ -set_Value ("AutoPeriodControl", Boolean.valueOf(AutoPeriodControl)); -} -/** Get Automatic Period Control. -@return If selected, the periods are automatically opened and closed */ -public boolean isAutoPeriodControl() -{ -Object oo = get_Value("AutoPeriodControl"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AutoPeriodControl */ -public static final String COLUMNNAME_AutoPeriodControl = "AutoPeriodControl"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID <= 0) set_ValueNoCheck ("C_Period_ID", null); - else -set_ValueNoCheck ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + /** Set Only Organization. + @param AD_OrgOnly_ID + Create posting entries only for this organization + */ + public void setAD_OrgOnly_ID (int AD_OrgOnly_ID) + { + if (AD_OrgOnly_ID <= 0) set_Value (COLUMNNAME_AD_OrgOnly_ID, null); + else + set_Value (COLUMNNAME_AD_OrgOnly_ID, Integer.valueOf(AD_OrgOnly_ID)); + } + + /** Get Only Organization. + @return Create posting entries only for this organization + */ + public int getAD_OrgOnly_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgOnly_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Automatic Period Control. + @param AutoPeriodControl + If selected, the periods are automatically opened and closed + */ + public void setAutoPeriodControl (boolean AutoPeriodControl) + { + set_Value (COLUMNNAME_AutoPeriodControl, Boolean.valueOf(AutoPeriodControl)); + } + + /** Get Automatic Period Control. + @return If selected, the periods are automatically opened and closed + */ + public boolean isAutoPeriodControl () + { + Object oo = get_Value(COLUMNNAME_AutoPeriodControl); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Period getI_C_Period() throws Exception + { + 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 e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CommitmentType AD_Reference_ID=359 */ -public static final int COMMITMENTTYPE_AD_Reference_ID=359; -/** Commitment & Reservation = B */ -public static final String COMMITMENTTYPE_CommitmentReservation = "B"; -/** Commitment only = C */ -public static final String COMMITMENTTYPE_CommitmentOnly = "C"; -/** None = N */ +public static final int COMMITMENTTYPE_AD_Reference_ID=359;/** Commitment & Reservation = B */ +public static final String COMMITMENTTYPE_CommitmentReservation = "B";/** Commitment only = C */ +public static final String COMMITMENTTYPE_CommitmentOnly = "C";/** None = N */ public static final String COMMITMENTTYPE_None = "N"; -/** Set Commitment Type. -@param CommitmentType Create Commitment and/or Reservations for Budget Control */ -public void setCommitmentType (String CommitmentType) -{ -if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory"); -if (CommitmentType.equals("B") || CommitmentType.equals("C") || CommitmentType.equals("N")); - else throw new IllegalArgumentException ("CommitmentType Invalid value - " + CommitmentType + " - Reference_ID=359 - B - C - N"); -if (CommitmentType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CommitmentType = CommitmentType.substring(0,0); -} -set_Value ("CommitmentType", CommitmentType); -} -/** Get Commitment Type. -@return Create Commitment and/or Reservations for Budget Control */ -public String getCommitmentType() -{ -return (String)get_Value("CommitmentType"); -} -/** Column name CommitmentType */ -public static final String COLUMNNAME_CommitmentType = "CommitmentType"; + /** Set Commitment Type. + @param CommitmentType + Create Commitment and/or Reservations for Budget Control + */ + public void setCommitmentType (String CommitmentType) + { +if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory");if (CommitmentType.equals("B") || CommitmentType.equals("C") || CommitmentType.equals("N")); else throw new IllegalArgumentException ("CommitmentType Invalid value - " + CommitmentType + " - Reference_ID=359 - B - C - N"); if (CommitmentType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CommitmentType = CommitmentType.substring(0, 0); + } + set_Value (COLUMNNAME_CommitmentType, CommitmentType); + } + + /** Get Commitment Type. + @return Create Commitment and/or Reservations for Budget Control + */ + public String getCommitmentType () + { + return (String)get_Value(COLUMNNAME_CommitmentType); + } /** CostingLevel AD_Reference_ID=355 */ -public static final int COSTINGLEVEL_AD_Reference_ID=355; -/** Batch/Lot = B */ -public static final String COSTINGLEVEL_BatchLot = "B"; -/** Client = C */ -public static final String COSTINGLEVEL_Client = "C"; -/** Organization = O */ +public static final int COSTINGLEVEL_AD_Reference_ID=355;/** Batch/Lot = B */ +public static final String COSTINGLEVEL_BatchLot = "B";/** Client = C */ +public static final String COSTINGLEVEL_Client = "C";/** Organization = O */ public static final String COSTINGLEVEL_Organization = "O"; -/** Set Costing Level. -@param CostingLevel The lowest level to accumulate Costing Information */ -public void setCostingLevel (String CostingLevel) -{ -if (CostingLevel == null) throw new IllegalArgumentException ("CostingLevel is mandatory"); -if (CostingLevel.equals("B") || CostingLevel.equals("C") || CostingLevel.equals("O")); - else throw new IllegalArgumentException ("CostingLevel Invalid value - " + CostingLevel + " - Reference_ID=355 - B - C - O"); -if (CostingLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CostingLevel = CostingLevel.substring(0,0); -} -set_Value ("CostingLevel", CostingLevel); -} -/** Get Costing Level. -@return The lowest level to accumulate Costing Information */ -public String getCostingLevel() -{ -return (String)get_Value("CostingLevel"); -} -/** Column name CostingLevel */ -public static final String COLUMNNAME_CostingLevel = "CostingLevel"; + /** Set Costing Level. + @param CostingLevel + The lowest level to accumulate Costing Information + */ + public void setCostingLevel (String CostingLevel) + { +if (CostingLevel == null) throw new IllegalArgumentException ("CostingLevel is mandatory");if (CostingLevel.equals("B") || CostingLevel.equals("C") || CostingLevel.equals("O")); else throw new IllegalArgumentException ("CostingLevel Invalid value - " + CostingLevel + " - Reference_ID=355 - B - C - O"); if (CostingLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingLevel = CostingLevel.substring(0, 0); + } + set_Value (COLUMNNAME_CostingLevel, CostingLevel); + } + + /** Get Costing Level. + @return The lowest level to accumulate Costing Information + */ + public String getCostingLevel () + { + return (String)get_Value(COLUMNNAME_CostingLevel); + } /** CostingMethod AD_Reference_ID=122 */ -public static final int COSTINGMETHOD_AD_Reference_ID=122; -/** Average PO = A */ -public static final String COSTINGMETHOD_AveragePO = "A"; -/** Fifo = F */ -public static final String COSTINGMETHOD_Fifo = "F"; -/** Average Invoice = I */ -public static final String COSTINGMETHOD_AverageInvoice = "I"; -/** Lifo = L */ -public static final String COSTINGMETHOD_Lifo = "L"; -/** Standard Costing = S */ -public static final String COSTINGMETHOD_StandardCosting = "S"; -/** User Defined = U */ -public static final String COSTINGMETHOD_UserDefined = "U"; -/** Last Invoice = i */ -public static final String COSTINGMETHOD_LastInvoice = "i"; -/** Last PO Price = p */ -public static final String COSTINGMETHOD_LastPOPrice = "p"; -/** _ = x */ +public static final int COSTINGMETHOD_AD_Reference_ID=122;/** Average PO = A */ +public static final String COSTINGMETHOD_AveragePO = "A";/** Fifo = F */ +public static final String COSTINGMETHOD_Fifo = "F";/** Average Invoice = I */ +public static final String COSTINGMETHOD_AverageInvoice = "I";/** Lifo = L */ +public static final String COSTINGMETHOD_Lifo = "L";/** Standard Costing = S */ +public static final String COSTINGMETHOD_StandardCosting = "S";/** User Defined = U */ +public static final String COSTINGMETHOD_UserDefined = "U";/** Last Invoice = i */ +public static final String COSTINGMETHOD_LastInvoice = "i";/** Last PO Price = p */ +public static final String COSTINGMETHOD_LastPOPrice = "p";/** _ = x */ public static final String COSTINGMETHOD__ = "x"; -/** Set Costing Method. -@param CostingMethod Indicates how Costs will be calculated */ -public void setCostingMethod (String CostingMethod) -{ -if (CostingMethod == null) throw new IllegalArgumentException ("CostingMethod is mandatory"); -if (CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); - else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); -if (CostingMethod.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CostingMethod = CostingMethod.substring(0,0); -} -set_Value ("CostingMethod", CostingMethod); -} -/** Get Costing Method. -@return Indicates how Costs will be calculated */ -public String getCostingMethod() -{ -return (String)get_Value("CostingMethod"); -} -/** Column name CostingMethod */ -public static final String COLUMNNAME_CostingMethod = "CostingMethod"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Costing Method. + @param CostingMethod + Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod) + { +if (CostingMethod == null) throw new IllegalArgumentException ("CostingMethod is mandatory");if (CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); if (CostingMethod.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingMethod = CostingMethod.substring(0, 0); + } + set_Value (COLUMNNAME_CostingMethod, CostingMethod); + } + + /** Get Costing Method. + @return Indicates how Costs will be calculated + */ + public String getCostingMethod () + { + return (String)get_Value(COLUMNNAME_CostingMethod); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** GAAP AD_Reference_ID=123 */ -public static final int GAAP_AD_Reference_ID=123; -/** German HGB = DE */ -public static final String GAAP_GermanHGB = "DE"; -/** French Accounting Standard = FR */ -public static final String GAAP_FrenchAccountingStandard = "FR"; -/** International GAAP = UN */ -public static final String GAAP_InternationalGAAP = "UN"; -/** US GAAP = US */ -public static final String GAAP_USGAAP = "US"; -/** Custom Accounting Rules = XX */ +public static final int GAAP_AD_Reference_ID=123;/** German HGB = DE */ +public static final String GAAP_GermanHGB = "DE";/** French Accounting Standard = FR */ +public static final String GAAP_FrenchAccountingStandard = "FR";/** International GAAP = UN */ +public static final String GAAP_InternationalGAAP = "UN";/** US GAAP = US */ +public static final String GAAP_USGAAP = "US";/** Custom Accounting Rules = XX */ public static final String GAAP_CustomAccountingRules = "XX"; -/** Set GAAP. -@param GAAP Generally Accepted Accounting Principles */ -public void setGAAP (String GAAP) -{ -if (GAAP == null) throw new IllegalArgumentException ("GAAP is mandatory"); -if (GAAP.equals("DE") || GAAP.equals("FR") || GAAP.equals("UN") || GAAP.equals("US") || GAAP.equals("XX")); - else throw new IllegalArgumentException ("GAAP Invalid value - " + GAAP + " - Reference_ID=123 - DE - FR - UN - US - XX"); -if (GAAP.length() > 2) -{ -log.warning("Length > 2 - truncated"); -GAAP = GAAP.substring(0,1); -} -set_Value ("GAAP", GAAP); -} -/** Get GAAP. -@return Generally Accepted Accounting Principles */ -public String getGAAP() -{ -return (String)get_Value("GAAP"); -} -/** Column name GAAP */ -public static final String COLUMNNAME_GAAP = "GAAP"; -/** Set Use Account Alias. -@param HasAlias Ability to select (partial) account combinations by an Alias */ -public void setHasAlias (boolean HasAlias) -{ -set_Value ("HasAlias", Boolean.valueOf(HasAlias)); -} -/** Get Use Account Alias. -@return Ability to select (partial) account combinations by an Alias */ -public boolean isHasAlias() -{ -Object oo = get_Value("HasAlias"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasAlias */ -public static final String COLUMNNAME_HasAlias = "HasAlias"; -/** Set Use Account Combination Control. -@param HasCombination Combination of account elements are checked */ -public void setHasCombination (boolean HasCombination) -{ -set_Value ("HasCombination", Boolean.valueOf(HasCombination)); -} -/** Get Use Account Combination Control. -@return Combination of account elements are checked */ -public boolean isHasCombination() -{ -Object oo = get_Value("HasCombination"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasCombination */ -public static final String COLUMNNAME_HasCombination = "HasCombination"; -/** Set Accrual. -@param IsAccrual Indicates if Accrual or Cash Based accounting will be used */ -public void setIsAccrual (boolean IsAccrual) -{ -set_Value ("IsAccrual", Boolean.valueOf(IsAccrual)); -} -/** Get Accrual. -@return Indicates if Accrual or Cash Based accounting will be used */ -public boolean isAccrual() -{ -Object oo = get_Value("IsAccrual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAccrual */ -public static final String COLUMNNAME_IsAccrual = "IsAccrual"; -/** Set Adjust COGS. -@param IsAdjustCOGS Adjust Cost of Good Sold */ -public void setIsAdjustCOGS (boolean IsAdjustCOGS) -{ -set_Value ("IsAdjustCOGS", Boolean.valueOf(IsAdjustCOGS)); -} -/** Get Adjust COGS. -@return Adjust Cost of Good Sold */ -public boolean isAdjustCOGS() -{ -Object oo = get_Value("IsAdjustCOGS"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAdjustCOGS */ -public static final String COLUMNNAME_IsAdjustCOGS = "IsAdjustCOGS"; -/** Set Allow Negative Posting. -@param IsAllowNegativePosting Allow to post negative accounting values */ -public void setIsAllowNegativePosting (boolean IsAllowNegativePosting) -{ -set_Value ("IsAllowNegativePosting", Boolean.valueOf(IsAllowNegativePosting)); -} -/** Get Allow Negative Posting. -@return Allow to post negative accounting values */ -public boolean isAllowNegativePosting() -{ -Object oo = get_Value("IsAllowNegativePosting"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllowNegativePosting */ -public static final String COLUMNNAME_IsAllowNegativePosting = "IsAllowNegativePosting"; -/** Set Correct tax for Discounts/Charges. -@param IsDiscountCorrectsTax Correct the tax for payment discount and charges */ -public void setIsDiscountCorrectsTax (boolean IsDiscountCorrectsTax) -{ -set_Value ("IsDiscountCorrectsTax", Boolean.valueOf(IsDiscountCorrectsTax)); -} -/** Get Correct tax for Discounts/Charges. -@return Correct the tax for payment discount and charges */ -public boolean isDiscountCorrectsTax() -{ -Object oo = get_Value("IsDiscountCorrectsTax"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDiscountCorrectsTax */ -public static final String COLUMNNAME_IsDiscountCorrectsTax = "IsDiscountCorrectsTax"; -/** Set Explicit Cost Adjustment. -@param IsExplicitCostAdjustment Post the cost adjustment explicitly */ -public void setIsExplicitCostAdjustment (boolean IsExplicitCostAdjustment) -{ -set_Value ("IsExplicitCostAdjustment", Boolean.valueOf(IsExplicitCostAdjustment)); -} -/** Get Explicit Cost Adjustment. -@return Post the cost adjustment explicitly */ -public boolean isExplicitCostAdjustment() -{ -Object oo = get_Value("IsExplicitCostAdjustment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsExplicitCostAdjustment */ -public static final String COLUMNNAME_IsExplicitCostAdjustment = "IsExplicitCostAdjustment"; -/** Set Post Services Separately. -@param IsPostServices Differentiate between Services and Product Receivable/Payables */ -public void setIsPostServices (boolean IsPostServices) -{ -set_Value ("IsPostServices", Boolean.valueOf(IsPostServices)); -} -/** Get Post Services Separately. -@return Differentiate between Services and Product Receivable/Payables */ -public boolean isPostServices() -{ -Object oo = get_Value("IsPostServices"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPostServices */ -public static final String COLUMNNAME_IsPostServices = "IsPostServices"; -/** Set Post Trade Discount. -@param IsTradeDiscountPosted Generate postings for trade discounts */ -public void setIsTradeDiscountPosted (boolean IsTradeDiscountPosted) -{ -set_Value ("IsTradeDiscountPosted", Boolean.valueOf(IsTradeDiscountPosted)); -} -/** Get Post Trade Discount. -@return Generate postings for trade discounts */ -public boolean isTradeDiscountPosted() -{ -Object oo = get_Value("IsTradeDiscountPosted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTradeDiscountPosted */ -public static final String COLUMNNAME_IsTradeDiscountPosted = "IsTradeDiscountPosted"; -/** Set Cost Type. -@param M_CostType_ID Type of Cost (e.g. Current, Plan, Future) */ -public void setM_CostType_ID (int M_CostType_ID) -{ -if (M_CostType_ID < 1) throw new IllegalArgumentException ("M_CostType_ID is mandatory."); -set_Value ("M_CostType_ID", Integer.valueOf(M_CostType_ID)); -} -/** Get Cost Type. -@return Type of Cost (e.g. Current, Plan, Future) */ -public int getM_CostType_ID() -{ -Integer ii = (Integer)get_Value("M_CostType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostType_ID */ -public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Future Days. -@param Period_OpenFuture Number of days to be able to post to a future date (based on system date) */ -public void setPeriod_OpenFuture (int Period_OpenFuture) -{ -set_Value ("Period_OpenFuture", Integer.valueOf(Period_OpenFuture)); -} -/** Get Future Days. -@return Number of days to be able to post to a future date (based on system date) */ -public int getPeriod_OpenFuture() -{ -Integer ii = (Integer)get_Value("Period_OpenFuture"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Period_OpenFuture */ -public static final String COLUMNNAME_Period_OpenFuture = "Period_OpenFuture"; -/** Set History Days. -@param Period_OpenHistory Number of days to be able to post in the past (based on system date) */ -public void setPeriod_OpenHistory (int Period_OpenHistory) -{ -set_Value ("Period_OpenHistory", Integer.valueOf(Period_OpenHistory)); -} -/** Get History Days. -@return Number of days to be able to post in the past (based on system date) */ -public int getPeriod_OpenHistory() -{ -Integer ii = (Integer)get_Value("Period_OpenHistory"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Period_OpenHistory */ -public static final String COLUMNNAME_Period_OpenHistory = "Period_OpenHistory"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Element Separator. -@param Separator Element Separator */ -public void setSeparator (String Separator) -{ -if (Separator == null) throw new IllegalArgumentException ("Separator is mandatory."); -if (Separator.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Separator = Separator.substring(0,0); -} -set_Value ("Separator", Separator); -} -/** Get Element Separator. -@return Element Separator */ -public String getSeparator() -{ -return (String)get_Value("Separator"); -} -/** Column name Separator */ -public static final String COLUMNNAME_Separator = "Separator"; + /** Set GAAP. + @param GAAP + Generally Accepted Accounting Principles + */ + public void setGAAP (String GAAP) + { +if (GAAP == null) throw new IllegalArgumentException ("GAAP is mandatory");if (GAAP.equals("DE") || GAAP.equals("FR") || GAAP.equals("UN") || GAAP.equals("US") || GAAP.equals("XX")); else throw new IllegalArgumentException ("GAAP Invalid value - " + GAAP + " - Reference_ID=123 - DE - FR - UN - US - XX"); if (GAAP.length() > 2) + { + log.warning("Length > 2 - truncated"); + GAAP = GAAP.substring(0, 1); + } + set_Value (COLUMNNAME_GAAP, GAAP); + } + + /** Get GAAP. + @return Generally Accepted Accounting Principles + */ + public String getGAAP () + { + return (String)get_Value(COLUMNNAME_GAAP); + } + + /** Set Use Account Alias. + @param HasAlias + Ability to select (partial) account combinations by an Alias + */ + public void setHasAlias (boolean HasAlias) + { + set_Value (COLUMNNAME_HasAlias, Boolean.valueOf(HasAlias)); + } + + /** Get Use Account Alias. + @return Ability to select (partial) account combinations by an Alias + */ + public boolean isHasAlias () + { + Object oo = get_Value(COLUMNNAME_HasAlias); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Account Combination Control. + @param HasCombination + Combination of account elements are checked + */ + public void setHasCombination (boolean HasCombination) + { + set_Value (COLUMNNAME_HasCombination, Boolean.valueOf(HasCombination)); + } + + /** Get Use Account Combination Control. + @return Combination of account elements are checked + */ + public boolean isHasCombination () + { + Object oo = get_Value(COLUMNNAME_HasCombination); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accrual. + @param IsAccrual + Indicates if Accrual or Cash Based accounting will be used + */ + public void setIsAccrual (boolean IsAccrual) + { + set_Value (COLUMNNAME_IsAccrual, Boolean.valueOf(IsAccrual)); + } + + /** Get Accrual. + @return Indicates if Accrual or Cash Based accounting will be used + */ + public boolean isAccrual () + { + Object oo = get_Value(COLUMNNAME_IsAccrual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Adjust COGS. + @param IsAdjustCOGS + Adjust Cost of Good Sold + */ + public void setIsAdjustCOGS (boolean IsAdjustCOGS) + { + set_Value (COLUMNNAME_IsAdjustCOGS, Boolean.valueOf(IsAdjustCOGS)); + } + + /** Get Adjust COGS. + @return Adjust Cost of Good Sold + */ + public boolean isAdjustCOGS () + { + Object oo = get_Value(COLUMNNAME_IsAdjustCOGS); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Negative Posting. + @param IsAllowNegativePosting + Allow to post negative accounting values + */ + public void setIsAllowNegativePosting (boolean IsAllowNegativePosting) + { + set_Value (COLUMNNAME_IsAllowNegativePosting, Boolean.valueOf(IsAllowNegativePosting)); + } + + /** Get Allow Negative Posting. + @return Allow to post negative accounting values + */ + public boolean isAllowNegativePosting () + { + Object oo = get_Value(COLUMNNAME_IsAllowNegativePosting); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Correct tax for Discounts/Charges. + @param IsDiscountCorrectsTax + Correct the tax for payment discount and charges + */ + public void setIsDiscountCorrectsTax (boolean IsDiscountCorrectsTax) + { + set_Value (COLUMNNAME_IsDiscountCorrectsTax, Boolean.valueOf(IsDiscountCorrectsTax)); + } + + /** Get Correct tax for Discounts/Charges. + @return Correct the tax for payment discount and charges + */ + public boolean isDiscountCorrectsTax () + { + Object oo = get_Value(COLUMNNAME_IsDiscountCorrectsTax); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Explicit Cost Adjustment. + @param IsExplicitCostAdjustment + Post the cost adjustment explicitly + */ + public void setIsExplicitCostAdjustment (boolean IsExplicitCostAdjustment) + { + set_Value (COLUMNNAME_IsExplicitCostAdjustment, Boolean.valueOf(IsExplicitCostAdjustment)); + } + + /** Get Explicit Cost Adjustment. + @return Post the cost adjustment explicitly + */ + public boolean isExplicitCostAdjustment () + { + Object oo = get_Value(COLUMNNAME_IsExplicitCostAdjustment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Services Separately. + @param IsPostServices + Differentiate between Services and Product Receivable/Payables + */ + public void setIsPostServices (boolean IsPostServices) + { + set_Value (COLUMNNAME_IsPostServices, Boolean.valueOf(IsPostServices)); + } + + /** Get Post Services Separately. + @return Differentiate between Services and Product Receivable/Payables + */ + public boolean isPostServices () + { + Object oo = get_Value(COLUMNNAME_IsPostServices); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Trade Discount. + @param IsTradeDiscountPosted + Generate postings for trade discounts + */ + public void setIsTradeDiscountPosted (boolean IsTradeDiscountPosted) + { + set_Value (COLUMNNAME_IsTradeDiscountPosted, Boolean.valueOf(IsTradeDiscountPosted)); + } + + /** Get Post Trade Discount. + @return Generate postings for trade discounts + */ + public boolean isTradeDiscountPosted () + { + Object oo = get_Value(COLUMNNAME_IsTradeDiscountPosted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_CostType getI_M_CostType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Type. + @param M_CostType_ID + Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID) + { + if (M_CostType_ID < 1) + throw new IllegalArgumentException ("M_CostType_ID is mandatory."); + set_Value (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + } + + /** Get Cost Type. + @return Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Future Days. + @param Period_OpenFuture + Number of days to be able to post to a future date (based on system date) + */ + public void setPeriod_OpenFuture (int Period_OpenFuture) + { + set_Value (COLUMNNAME_Period_OpenFuture, Integer.valueOf(Period_OpenFuture)); + } + + /** Get Future Days. + @return Number of days to be able to post to a future date (based on system date) + */ + public int getPeriod_OpenFuture () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Period_OpenFuture); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set History Days. + @param Period_OpenHistory + Number of days to be able to post in the past (based on system date) + */ + public void setPeriod_OpenHistory (int Period_OpenHistory) + { + set_Value (COLUMNNAME_Period_OpenHistory, Integer.valueOf(Period_OpenHistory)); + } + + /** Get History Days. + @return Number of days to be able to post in the past (based on system date) + */ + public int getPeriod_OpenHistory () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Period_OpenHistory); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Element Separator. + @param Separator + Element Separator + */ + public void setSeparator (String Separator) + { + if (Separator == null) + throw new IllegalArgumentException ("Separator is mandatory."); + if (Separator.length() > 1) + { + log.warning("Length > 1 - truncated"); + Separator = Separator.substring(0, 0); + } + set_Value (COLUMNNAME_Separator, Separator); + } + + /** Get Element Separator. + @return Element Separator + */ + public String getSeparator () + { + return (String)get_Value(COLUMNNAME_Separator); + } /** TaxCorrectionType AD_Reference_ID=392 */ -public static final int TAXCORRECTIONTYPE_AD_Reference_ID=392; -/** Write-off and Discount = B */ -public static final String TAXCORRECTIONTYPE_Write_OffAndDiscount = "B"; -/** Discount only = D */ -public static final String TAXCORRECTIONTYPE_DiscountOnly = "D"; -/** None = N */ -public static final String TAXCORRECTIONTYPE_None = "N"; -/** Write-off only = W */ +public static final int TAXCORRECTIONTYPE_AD_Reference_ID=392;/** Write-off and Discount = B */ +public static final String TAXCORRECTIONTYPE_Write_OffAndDiscount = "B";/** Discount only = D */ +public static final String TAXCORRECTIONTYPE_DiscountOnly = "D";/** None = N */ +public static final String TAXCORRECTIONTYPE_None = "N";/** Write-off only = W */ public static final String TAXCORRECTIONTYPE_Write_OffOnly = "W"; -/** Set Tax Correction. -@param TaxCorrectionType Type of Tax Correction */ -public void setTaxCorrectionType (String TaxCorrectionType) -{ -if (TaxCorrectionType == null) throw new IllegalArgumentException ("TaxCorrectionType is mandatory"); -if (TaxCorrectionType.equals("B") || TaxCorrectionType.equals("D") || TaxCorrectionType.equals("N") || TaxCorrectionType.equals("W")); - else throw new IllegalArgumentException ("TaxCorrectionType Invalid value - " + TaxCorrectionType + " - Reference_ID=392 - B - D - N - W"); -if (TaxCorrectionType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TaxCorrectionType = TaxCorrectionType.substring(0,0); -} -set_Value ("TaxCorrectionType", TaxCorrectionType); -} -/** Get Tax Correction. -@return Type of Tax Correction */ -public String getTaxCorrectionType() -{ -return (String)get_Value("TaxCorrectionType"); -} -/** Column name TaxCorrectionType */ -public static final String COLUMNNAME_TaxCorrectionType = "TaxCorrectionType"; -} + /** Set Tax Correction. + @param TaxCorrectionType + Type of Tax Correction + */ + public void setTaxCorrectionType (String TaxCorrectionType) + { +if (TaxCorrectionType == null) throw new IllegalArgumentException ("TaxCorrectionType is mandatory");if (TaxCorrectionType.equals("B") || TaxCorrectionType.equals("D") || TaxCorrectionType.equals("N") || TaxCorrectionType.equals("W")); else throw new IllegalArgumentException ("TaxCorrectionType Invalid value - " + TaxCorrectionType + " - Reference_ID=392 - B - D - N - W"); if (TaxCorrectionType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TaxCorrectionType = TaxCorrectionType.substring(0, 0); + } + set_Value (COLUMNNAME_TaxCorrectionType, TaxCorrectionType); + } + + /** Get Tax Correction. + @return Type of Tax Correction + */ + public String getTaxCorrectionType () + { + return (String)get_Value(COLUMNNAME_TaxCorrectionType); + } +} \ No newline at end of file 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 1612c331d4..08b5fda952 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_Default.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_Default.java @@ -1,1151 +1,1400 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AcctSchema_Default - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AcctSchema_Default extends PO -{ -/** Standard Constructor -@param ctx context -@param C_AcctSchema_Default_ID id -@param trxName transaction -*/ -public X_C_AcctSchema_Default (Properties ctx, int C_AcctSchema_Default_ID, String trxName) -{ -super (ctx, C_AcctSchema_Default_ID, trxName); -/** if (C_AcctSchema_Default_ID == 0) -{ -setB_Asset_Acct (0); -setB_Expense_Acct (0); -setB_InTransit_Acct (0); -setB_InterestExp_Acct (0); -setB_InterestRev_Acct (0); -setB_PaymentSelect_Acct (0); -setB_RevaluationGain_Acct (0); -setB_RevaluationLoss_Acct (0); -setB_SettlementGain_Acct (0); -setB_SettlementLoss_Acct (0); -setB_UnallocatedCash_Acct (0); -setB_Unidentified_Acct (0); -setCB_Asset_Acct (0); -setCB_CashTransfer_Acct (0); -setCB_Differences_Acct (0); -setCB_Expense_Acct (0); -setCB_Receipt_Acct (0); -setC_AcctSchema_ID (0); -setC_Prepayment_Acct (0); -setC_Receivable_Acct (0); -setC_Receivable_Services_Acct (0); -setCh_Expense_Acct (0); -setCh_Revenue_Acct (0); -setE_Expense_Acct (0); -setE_Prepayment_Acct (0); -setNotInvoicedReceipts_Acct (0); -setNotInvoicedReceivables_Acct (0); -setNotInvoicedRevenue_Acct (0); -setPJ_Asset_Acct (0); -setPJ_WIP_Acct (0); -setP_Asset_Acct (0); -setP_COGS_Acct (0); -setP_CostAdjustment_Acct (0); -setP_Expense_Acct (0); -setP_InventoryClearing_Acct (0); -setP_InvoicePriceVariance_Acct (0); -setP_PurchasePriceVariance_Acct (0); -setP_Revenue_Acct (0); -setP_TradeDiscountGrant_Acct (0); -setP_TradeDiscountRec_Acct (0); -setPayDiscount_Exp_Acct (0); -setPayDiscount_Rev_Acct (0); -setRealizedGain_Acct (0); -setRealizedLoss_Acct (0); -setT_Credit_Acct (0); -setT_Due_Acct (0); -setT_Expense_Acct (0); -setT_Liability_Acct (0); -setT_Receivables_Acct (0); -setUnEarnedRevenue_Acct (0); -setUnrealizedGain_Acct (0); -setUnrealizedLoss_Acct (0); -setV_Liability_Acct (0); -setV_Liability_Services_Acct (0); -setV_Prepayment_Acct (0); -setW_Differences_Acct (0); -setW_InvActualAdjust_Acct (0); -setW_Inventory_Acct (0); -setW_Revaluation_Acct (0); -setWithholding_Acct (0); -setWriteOff_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AcctSchema_Default (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AcctSchema_Default */ -public static final String Table_Name="C_AcctSchema_Default"; - -/** AD_Table_ID=315 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AcctSchema_Default[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Bank Asset. -@param B_Asset_Acct Bank Asset Account */ -public void setB_Asset_Acct (int B_Asset_Acct) -{ -set_Value ("B_Asset_Acct", Integer.valueOf(B_Asset_Acct)); -} -/** Get Bank Asset. -@return Bank Asset Account */ -public int getB_Asset_Acct() -{ -Integer ii = (Integer)get_Value("B_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Asset_Acct */ -public static final String COLUMNNAME_B_Asset_Acct = "B_Asset_Acct"; -/** Set Bank Expense. -@param B_Expense_Acct Bank Expense Account */ -public void setB_Expense_Acct (int B_Expense_Acct) -{ -set_Value ("B_Expense_Acct", Integer.valueOf(B_Expense_Acct)); -} -/** Get Bank Expense. -@return Bank Expense Account */ -public int getB_Expense_Acct() -{ -Integer ii = (Integer)get_Value("B_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Expense_Acct */ -public static final String COLUMNNAME_B_Expense_Acct = "B_Expense_Acct"; -/** Set Bank In Transit. -@param B_InTransit_Acct Bank In Transit Account */ -public void setB_InTransit_Acct (int B_InTransit_Acct) -{ -set_Value ("B_InTransit_Acct", Integer.valueOf(B_InTransit_Acct)); -} -/** Get Bank In Transit. -@return Bank In Transit Account */ -public int getB_InTransit_Acct() -{ -Integer ii = (Integer)get_Value("B_InTransit_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_InTransit_Acct */ -public static final String COLUMNNAME_B_InTransit_Acct = "B_InTransit_Acct"; -/** Set Bank Interest Expense. -@param B_InterestExp_Acct Bank Interest Expense Account */ -public void setB_InterestExp_Acct (int B_InterestExp_Acct) -{ -set_Value ("B_InterestExp_Acct", Integer.valueOf(B_InterestExp_Acct)); -} -/** Get Bank Interest Expense. -@return Bank Interest Expense Account */ -public int getB_InterestExp_Acct() -{ -Integer ii = (Integer)get_Value("B_InterestExp_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_InterestExp_Acct */ -public static final String COLUMNNAME_B_InterestExp_Acct = "B_InterestExp_Acct"; -/** Set Bank Interest Revenue. -@param B_InterestRev_Acct Bank Interest Revenue Account */ -public void setB_InterestRev_Acct (int B_InterestRev_Acct) -{ -set_Value ("B_InterestRev_Acct", Integer.valueOf(B_InterestRev_Acct)); -} -/** Get Bank Interest Revenue. -@return Bank Interest Revenue Account */ -public int getB_InterestRev_Acct() -{ -Integer ii = (Integer)get_Value("B_InterestRev_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_InterestRev_Acct */ -public static final String COLUMNNAME_B_InterestRev_Acct = "B_InterestRev_Acct"; -/** Set Payment Selection. -@param B_PaymentSelect_Acct AP Payment Selection Clearing Account */ -public void setB_PaymentSelect_Acct (int B_PaymentSelect_Acct) -{ -set_Value ("B_PaymentSelect_Acct", Integer.valueOf(B_PaymentSelect_Acct)); -} -/** Get Payment Selection. -@return AP Payment Selection Clearing Account */ -public int getB_PaymentSelect_Acct() -{ -Integer ii = (Integer)get_Value("B_PaymentSelect_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_PaymentSelect_Acct */ -public static final String COLUMNNAME_B_PaymentSelect_Acct = "B_PaymentSelect_Acct"; -/** Set Bank Revaluation Gain. -@param B_RevaluationGain_Acct Bank Revaluation Gain Account */ -public void setB_RevaluationGain_Acct (int B_RevaluationGain_Acct) -{ -set_Value ("B_RevaluationGain_Acct", Integer.valueOf(B_RevaluationGain_Acct)); -} -/** Get Bank Revaluation Gain. -@return Bank Revaluation Gain Account */ -public int getB_RevaluationGain_Acct() -{ -Integer ii = (Integer)get_Value("B_RevaluationGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_RevaluationGain_Acct */ -public static final String COLUMNNAME_B_RevaluationGain_Acct = "B_RevaluationGain_Acct"; -/** Set Bank Revaluation Loss. -@param B_RevaluationLoss_Acct Bank Revaluation Loss Account */ -public void setB_RevaluationLoss_Acct (int B_RevaluationLoss_Acct) -{ -set_Value ("B_RevaluationLoss_Acct", Integer.valueOf(B_RevaluationLoss_Acct)); -} -/** Get Bank Revaluation Loss. -@return Bank Revaluation Loss Account */ -public int getB_RevaluationLoss_Acct() -{ -Integer ii = (Integer)get_Value("B_RevaluationLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_RevaluationLoss_Acct */ -public static final String COLUMNNAME_B_RevaluationLoss_Acct = "B_RevaluationLoss_Acct"; -/** Set Bank Settlement Gain. -@param B_SettlementGain_Acct Bank Settlement Gain Account */ -public void setB_SettlementGain_Acct (int B_SettlementGain_Acct) -{ -set_Value ("B_SettlementGain_Acct", Integer.valueOf(B_SettlementGain_Acct)); -} -/** Get Bank Settlement Gain. -@return Bank Settlement Gain Account */ -public int getB_SettlementGain_Acct() -{ -Integer ii = (Integer)get_Value("B_SettlementGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_SettlementGain_Acct */ -public static final String COLUMNNAME_B_SettlementGain_Acct = "B_SettlementGain_Acct"; -/** Set Bank Settlement Loss. -@param B_SettlementLoss_Acct Bank Settlement Loss Account */ -public void setB_SettlementLoss_Acct (int B_SettlementLoss_Acct) -{ -set_Value ("B_SettlementLoss_Acct", Integer.valueOf(B_SettlementLoss_Acct)); -} -/** Get Bank Settlement Loss. -@return Bank Settlement Loss Account */ -public int getB_SettlementLoss_Acct() -{ -Integer ii = (Integer)get_Value("B_SettlementLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_SettlementLoss_Acct */ -public static final String COLUMNNAME_B_SettlementLoss_Acct = "B_SettlementLoss_Acct"; -/** Set Unallocated Cash. -@param B_UnallocatedCash_Acct Unallocated Cash Clearing Account */ -public void setB_UnallocatedCash_Acct (int B_UnallocatedCash_Acct) -{ -set_Value ("B_UnallocatedCash_Acct", Integer.valueOf(B_UnallocatedCash_Acct)); -} -/** Get Unallocated Cash. -@return Unallocated Cash Clearing Account */ -public int getB_UnallocatedCash_Acct() -{ -Integer ii = (Integer)get_Value("B_UnallocatedCash_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_UnallocatedCash_Acct */ -public static final String COLUMNNAME_B_UnallocatedCash_Acct = "B_UnallocatedCash_Acct"; -/** Set Bank Unidentified Receipts. -@param B_Unidentified_Acct Bank Unidentified Receipts Account */ -public void setB_Unidentified_Acct (int B_Unidentified_Acct) -{ -set_Value ("B_Unidentified_Acct", Integer.valueOf(B_Unidentified_Acct)); -} -/** Get Bank Unidentified Receipts. -@return Bank Unidentified Receipts Account */ -public int getB_Unidentified_Acct() -{ -Integer ii = (Integer)get_Value("B_Unidentified_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Unidentified_Acct */ -public static final String COLUMNNAME_B_Unidentified_Acct = "B_Unidentified_Acct"; -/** Set Cash Book Asset. -@param CB_Asset_Acct Cash Book Asset Account */ -public void setCB_Asset_Acct (int CB_Asset_Acct) -{ -set_Value ("CB_Asset_Acct", Integer.valueOf(CB_Asset_Acct)); -} -/** Get Cash Book Asset. -@return Cash Book Asset Account */ -public int getCB_Asset_Acct() -{ -Integer ii = (Integer)get_Value("CB_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Asset_Acct */ -public static final String COLUMNNAME_CB_Asset_Acct = "CB_Asset_Acct"; -/** Set Cash Transfer. -@param CB_CashTransfer_Acct Cash Transfer Clearing Account */ -public void setCB_CashTransfer_Acct (int CB_CashTransfer_Acct) -{ -set_Value ("CB_CashTransfer_Acct", Integer.valueOf(CB_CashTransfer_Acct)); -} -/** Get Cash Transfer. -@return Cash Transfer Clearing Account */ -public int getCB_CashTransfer_Acct() -{ -Integer ii = (Integer)get_Value("CB_CashTransfer_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_CashTransfer_Acct */ -public static final String COLUMNNAME_CB_CashTransfer_Acct = "CB_CashTransfer_Acct"; -/** Set Cash Book Differences. -@param CB_Differences_Acct Cash Book Differences Account */ -public void setCB_Differences_Acct (int CB_Differences_Acct) -{ -set_Value ("CB_Differences_Acct", Integer.valueOf(CB_Differences_Acct)); -} -/** Get Cash Book Differences. -@return Cash Book Differences Account */ -public int getCB_Differences_Acct() -{ -Integer ii = (Integer)get_Value("CB_Differences_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Differences_Acct */ -public static final String COLUMNNAME_CB_Differences_Acct = "CB_Differences_Acct"; -/** Set Cash Book Expense. -@param CB_Expense_Acct Cash Book Expense Account */ -public void setCB_Expense_Acct (int CB_Expense_Acct) -{ -set_Value ("CB_Expense_Acct", Integer.valueOf(CB_Expense_Acct)); -} -/** Get Cash Book Expense. -@return Cash Book Expense Account */ -public int getCB_Expense_Acct() -{ -Integer ii = (Integer)get_Value("CB_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Expense_Acct */ -public static final String COLUMNNAME_CB_Expense_Acct = "CB_Expense_Acct"; -/** Set Cash Book Receipt. -@param CB_Receipt_Acct Cash Book Receipts Account */ -public void setCB_Receipt_Acct (int CB_Receipt_Acct) -{ -set_Value ("CB_Receipt_Acct", Integer.valueOf(CB_Receipt_Acct)); -} -/** Get Cash Book Receipt. -@return Cash Book Receipts Account */ -public int getCB_Receipt_Acct() -{ -Integer ii = (Integer)get_Value("CB_Receipt_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Receipt_Acct */ -public static final String COLUMNNAME_CB_Receipt_Acct = "CB_Receipt_Acct"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Customer Prepayment. -@param C_Prepayment_Acct Account for customer prepayments */ -public void setC_Prepayment_Acct (int C_Prepayment_Acct) -{ -set_Value ("C_Prepayment_Acct", Integer.valueOf(C_Prepayment_Acct)); -} -/** Get Customer Prepayment. -@return Account for customer prepayments */ -public int getC_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("C_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Prepayment_Acct */ -public static final String COLUMNNAME_C_Prepayment_Acct = "C_Prepayment_Acct"; -/** Set Customer Receivables. -@param C_Receivable_Acct Account for Customer Receivables */ -public void setC_Receivable_Acct (int C_Receivable_Acct) -{ -set_Value ("C_Receivable_Acct", Integer.valueOf(C_Receivable_Acct)); -} -/** Get Customer Receivables. -@return Account for Customer Receivables */ -public int getC_Receivable_Acct() -{ -Integer ii = (Integer)get_Value("C_Receivable_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Receivable_Acct */ -public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; -/** Set Receivable Services. -@param C_Receivable_Services_Acct Customer Accounts Receivables Services Account */ -public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct) -{ -set_Value ("C_Receivable_Services_Acct", Integer.valueOf(C_Receivable_Services_Acct)); -} -/** Get Receivable Services. -@return Customer Accounts Receivables Services Account */ -public int getC_Receivable_Services_Acct() -{ -Integer ii = (Integer)get_Value("C_Receivable_Services_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Receivable_Services_Acct */ -public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; -/** Set Charge Expense. -@param Ch_Expense_Acct Charge Expense Account */ -public void setCh_Expense_Acct (int Ch_Expense_Acct) -{ -set_Value ("Ch_Expense_Acct", Integer.valueOf(Ch_Expense_Acct)); -} -/** Get Charge Expense. -@return Charge Expense Account */ -public int getCh_Expense_Acct() -{ -Integer ii = (Integer)get_Value("Ch_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ch_Expense_Acct */ -public static final String COLUMNNAME_Ch_Expense_Acct = "Ch_Expense_Acct"; -/** Set Charge Revenue. -@param Ch_Revenue_Acct Charge Revenue Account */ -public void setCh_Revenue_Acct (int Ch_Revenue_Acct) -{ -set_Value ("Ch_Revenue_Acct", Integer.valueOf(Ch_Revenue_Acct)); -} -/** Get Charge Revenue. -@return Charge Revenue Account */ -public int getCh_Revenue_Acct() -{ -Integer ii = (Integer)get_Value("Ch_Revenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ch_Revenue_Acct */ -public static final String COLUMNNAME_Ch_Revenue_Acct = "Ch_Revenue_Acct"; -/** Set Employee Expense. -@param E_Expense_Acct Account for Employee Expenses */ -public void setE_Expense_Acct (int E_Expense_Acct) -{ -set_Value ("E_Expense_Acct", Integer.valueOf(E_Expense_Acct)); -} -/** Get Employee Expense. -@return Account for Employee Expenses */ -public int getE_Expense_Acct() -{ -Integer ii = (Integer)get_Value("E_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name E_Expense_Acct */ -public static final String COLUMNNAME_E_Expense_Acct = "E_Expense_Acct"; -/** Set Employee Prepayment. -@param E_Prepayment_Acct Account for Employee Expense Prepayments */ -public void setE_Prepayment_Acct (int E_Prepayment_Acct) -{ -set_Value ("E_Prepayment_Acct", Integer.valueOf(E_Prepayment_Acct)); -} -/** Get Employee Prepayment. -@return Account for Employee Expense Prepayments */ -public int getE_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("E_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name E_Prepayment_Acct */ -public static final String COLUMNNAME_E_Prepayment_Acct = "E_Prepayment_Acct"; -/** Set Not-invoiced Receipts. -@param NotInvoicedReceipts_Acct Account for not-invoiced Material Receipts */ -public void setNotInvoicedReceipts_Acct (int NotInvoicedReceipts_Acct) -{ -set_Value ("NotInvoicedReceipts_Acct", Integer.valueOf(NotInvoicedReceipts_Acct)); -} -/** Get Not-invoiced Receipts. -@return Account for not-invoiced Material Receipts */ -public int getNotInvoicedReceipts_Acct() -{ -Integer ii = (Integer)get_Value("NotInvoicedReceipts_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NotInvoicedReceipts_Acct */ -public static final String COLUMNNAME_NotInvoicedReceipts_Acct = "NotInvoicedReceipts_Acct"; -/** Set Not-invoiced Receivables. -@param NotInvoicedReceivables_Acct Account for not invoiced Receivables */ -public void setNotInvoicedReceivables_Acct (int NotInvoicedReceivables_Acct) -{ -set_Value ("NotInvoicedReceivables_Acct", Integer.valueOf(NotInvoicedReceivables_Acct)); -} -/** Get Not-invoiced Receivables. -@return Account for not invoiced Receivables */ -public int getNotInvoicedReceivables_Acct() -{ -Integer ii = (Integer)get_Value("NotInvoicedReceivables_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NotInvoicedReceivables_Acct */ -public static final String COLUMNNAME_NotInvoicedReceivables_Acct = "NotInvoicedReceivables_Acct"; -/** Set Not-invoiced Revenue. -@param NotInvoicedRevenue_Acct Account for not invoiced Revenue */ -public void setNotInvoicedRevenue_Acct (int NotInvoicedRevenue_Acct) -{ -set_Value ("NotInvoicedRevenue_Acct", Integer.valueOf(NotInvoicedRevenue_Acct)); -} -/** Get Not-invoiced Revenue. -@return Account for not invoiced Revenue */ -public int getNotInvoicedRevenue_Acct() -{ -Integer ii = (Integer)get_Value("NotInvoicedRevenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NotInvoicedRevenue_Acct */ -public static final String COLUMNNAME_NotInvoicedRevenue_Acct = "NotInvoicedRevenue_Acct"; -/** Set Project Asset. -@param PJ_Asset_Acct Project Asset Account */ -public void setPJ_Asset_Acct (int PJ_Asset_Acct) -{ -set_Value ("PJ_Asset_Acct", Integer.valueOf(PJ_Asset_Acct)); -} -/** Get Project Asset. -@return Project Asset Account */ -public int getPJ_Asset_Acct() -{ -Integer ii = (Integer)get_Value("PJ_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PJ_Asset_Acct */ -public static final String COLUMNNAME_PJ_Asset_Acct = "PJ_Asset_Acct"; -/** Set Work In Progress. -@param PJ_WIP_Acct Account for Work in Progress */ -public void setPJ_WIP_Acct (int PJ_WIP_Acct) -{ -set_Value ("PJ_WIP_Acct", Integer.valueOf(PJ_WIP_Acct)); -} -/** Get Work In Progress. -@return Account for Work in Progress */ -public int getPJ_WIP_Acct() -{ -Integer ii = (Integer)get_Value("PJ_WIP_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PJ_WIP_Acct */ -public static final String COLUMNNAME_PJ_WIP_Acct = "PJ_WIP_Acct"; -/** Set Product Asset. -@param P_Asset_Acct Account for Product Asset (Inventory) */ -public void setP_Asset_Acct (int P_Asset_Acct) -{ -set_Value ("P_Asset_Acct", Integer.valueOf(P_Asset_Acct)); -} -/** Get Product Asset. -@return Account for Product Asset (Inventory) */ -public int getP_Asset_Acct() -{ -Integer ii = (Integer)get_Value("P_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Asset_Acct */ -public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; -/** Set Product COGS. -@param P_COGS_Acct Account for Cost of Goods Sold */ -public void setP_COGS_Acct (int P_COGS_Acct) -{ -set_Value ("P_COGS_Acct", Integer.valueOf(P_COGS_Acct)); -} -/** Get Product COGS. -@return Account for Cost of Goods Sold */ -public int getP_COGS_Acct() -{ -Integer ii = (Integer)get_Value("P_COGS_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_COGS_Acct */ -public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; -/** Set Cost Adjustment. -@param P_CostAdjustment_Acct Product Cost Adjustment Account */ -public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct) -{ -set_Value ("P_CostAdjustment_Acct", Integer.valueOf(P_CostAdjustment_Acct)); -} -/** Get Cost Adjustment. -@return Product Cost Adjustment Account */ -public int getP_CostAdjustment_Acct() -{ -Integer ii = (Integer)get_Value("P_CostAdjustment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_CostAdjustment_Acct */ -public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; -/** Set Product Expense. -@param P_Expense_Acct Account for Product Expense */ -public void setP_Expense_Acct (int P_Expense_Acct) -{ -set_Value ("P_Expense_Acct", Integer.valueOf(P_Expense_Acct)); -} -/** Get Product Expense. -@return Account for Product Expense */ -public int getP_Expense_Acct() -{ -Integer ii = (Integer)get_Value("P_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Expense_Acct */ -public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; -/** Set Inventory Clearing. -@param P_InventoryClearing_Acct Product Inventory Clearing Account */ -public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct) -{ -set_Value ("P_InventoryClearing_Acct", Integer.valueOf(P_InventoryClearing_Acct)); -} -/** Get Inventory Clearing. -@return Product Inventory Clearing Account */ -public int getP_InventoryClearing_Acct() -{ -Integer ii = (Integer)get_Value("P_InventoryClearing_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_InventoryClearing_Acct */ -public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; -/** Set Invoice Price Variance. -@param P_InvoicePriceVariance_Acct Difference between Costs and Invoice Price (IPV) */ -public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct) -{ -set_Value ("P_InvoicePriceVariance_Acct", Integer.valueOf(P_InvoicePriceVariance_Acct)); -} -/** Get Invoice Price Variance. -@return Difference between Costs and Invoice Price (IPV) */ -public int getP_InvoicePriceVariance_Acct() -{ -Integer ii = (Integer)get_Value("P_InvoicePriceVariance_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_InvoicePriceVariance_Acct */ -public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; -/** Set Purchase Price Variance. -@param P_PurchasePriceVariance_Acct Difference between Standard Cost and Purchase Price (PPV) */ -public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct) -{ -set_Value ("P_PurchasePriceVariance_Acct", Integer.valueOf(P_PurchasePriceVariance_Acct)); -} -/** Get Purchase Price Variance. -@return Difference between Standard Cost and Purchase Price (PPV) */ -public int getP_PurchasePriceVariance_Acct() -{ -Integer ii = (Integer)get_Value("P_PurchasePriceVariance_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_PurchasePriceVariance_Acct */ -public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; -/** Set Product Revenue. -@param P_Revenue_Acct Account for Product Revenue (Sales Account) */ -public void setP_Revenue_Acct (int P_Revenue_Acct) -{ -set_Value ("P_Revenue_Acct", Integer.valueOf(P_Revenue_Acct)); -} -/** Get Product Revenue. -@return Account for Product Revenue (Sales Account) */ -public int getP_Revenue_Acct() -{ -Integer ii = (Integer)get_Value("P_Revenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Revenue_Acct */ -public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; -/** Set Trade Discount Granted. -@param P_TradeDiscountGrant_Acct Trade Discount Granted Account */ -public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct) -{ -set_Value ("P_TradeDiscountGrant_Acct", Integer.valueOf(P_TradeDiscountGrant_Acct)); -} -/** Get Trade Discount Granted. -@return Trade Discount Granted Account */ -public int getP_TradeDiscountGrant_Acct() -{ -Integer ii = (Integer)get_Value("P_TradeDiscountGrant_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_TradeDiscountGrant_Acct */ -public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; -/** Set Trade Discount Received. -@param P_TradeDiscountRec_Acct Trade Discount Receivable Account */ -public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct) -{ -set_Value ("P_TradeDiscountRec_Acct", Integer.valueOf(P_TradeDiscountRec_Acct)); -} -/** Get Trade Discount Received. -@return Trade Discount Receivable Account */ -public int getP_TradeDiscountRec_Acct() -{ -Integer ii = (Integer)get_Value("P_TradeDiscountRec_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_TradeDiscountRec_Acct */ -public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; -/** Set Payment Discount Expense. -@param PayDiscount_Exp_Acct Payment Discount Expense Account */ -public void setPayDiscount_Exp_Acct (int PayDiscount_Exp_Acct) -{ -set_Value ("PayDiscount_Exp_Acct", Integer.valueOf(PayDiscount_Exp_Acct)); -} -/** Get Payment Discount Expense. -@return Payment Discount Expense Account */ -public int getPayDiscount_Exp_Acct() -{ -Integer ii = (Integer)get_Value("PayDiscount_Exp_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PayDiscount_Exp_Acct */ -public static final String COLUMNNAME_PayDiscount_Exp_Acct = "PayDiscount_Exp_Acct"; -/** Set Payment Discount Revenue. -@param PayDiscount_Rev_Acct Payment Discount Revenue Account */ -public void setPayDiscount_Rev_Acct (int PayDiscount_Rev_Acct) -{ -set_Value ("PayDiscount_Rev_Acct", Integer.valueOf(PayDiscount_Rev_Acct)); -} -/** Get Payment Discount Revenue. -@return Payment Discount Revenue Account */ -public int getPayDiscount_Rev_Acct() -{ -Integer ii = (Integer)get_Value("PayDiscount_Rev_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PayDiscount_Rev_Acct */ -public static final String COLUMNNAME_PayDiscount_Rev_Acct = "PayDiscount_Rev_Acct"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Realized Gain Acct. -@param RealizedGain_Acct Realized Gain Account */ -public void setRealizedGain_Acct (int RealizedGain_Acct) -{ -set_Value ("RealizedGain_Acct", Integer.valueOf(RealizedGain_Acct)); -} -/** Get Realized Gain Acct. -@return Realized Gain Account */ -public int getRealizedGain_Acct() -{ -Integer ii = (Integer)get_Value("RealizedGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RealizedGain_Acct */ -public static final String COLUMNNAME_RealizedGain_Acct = "RealizedGain_Acct"; -/** Set Realized Loss Acct. -@param RealizedLoss_Acct Realized Loss Account */ -public void setRealizedLoss_Acct (int RealizedLoss_Acct) -{ -set_Value ("RealizedLoss_Acct", Integer.valueOf(RealizedLoss_Acct)); -} -/** Get Realized Loss Acct. -@return Realized Loss Account */ -public int getRealizedLoss_Acct() -{ -Integer ii = (Integer)get_Value("RealizedLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RealizedLoss_Acct */ -public static final String COLUMNNAME_RealizedLoss_Acct = "RealizedLoss_Acct"; -/** Set Tax Credit. -@param T_Credit_Acct Account for Tax you can reclaim */ -public void setT_Credit_Acct (int T_Credit_Acct) -{ -set_Value ("T_Credit_Acct", Integer.valueOf(T_Credit_Acct)); -} -/** Get Tax Credit. -@return Account for Tax you can reclaim */ -public int getT_Credit_Acct() -{ -Integer ii = (Integer)get_Value("T_Credit_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Credit_Acct */ -public static final String COLUMNNAME_T_Credit_Acct = "T_Credit_Acct"; -/** Set Tax Due. -@param T_Due_Acct Account for Tax you have to pay */ -public void setT_Due_Acct (int T_Due_Acct) -{ -set_Value ("T_Due_Acct", Integer.valueOf(T_Due_Acct)); -} -/** Get Tax Due. -@return Account for Tax you have to pay */ -public int getT_Due_Acct() -{ -Integer ii = (Integer)get_Value("T_Due_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Due_Acct */ -public static final String COLUMNNAME_T_Due_Acct = "T_Due_Acct"; -/** Set Tax Expense. -@param T_Expense_Acct Account for paid tax you cannot reclaim */ -public void setT_Expense_Acct (int T_Expense_Acct) -{ -set_Value ("T_Expense_Acct", Integer.valueOf(T_Expense_Acct)); -} -/** Get Tax Expense. -@return Account for paid tax you cannot reclaim */ -public int getT_Expense_Acct() -{ -Integer ii = (Integer)get_Value("T_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Expense_Acct */ -public static final String COLUMNNAME_T_Expense_Acct = "T_Expense_Acct"; -/** Set Tax Liability. -@param T_Liability_Acct Account for Tax declaration liability */ -public void setT_Liability_Acct (int T_Liability_Acct) -{ -set_Value ("T_Liability_Acct", Integer.valueOf(T_Liability_Acct)); -} -/** Get Tax Liability. -@return Account for Tax declaration liability */ -public int getT_Liability_Acct() -{ -Integer ii = (Integer)get_Value("T_Liability_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Liability_Acct */ -public static final String COLUMNNAME_T_Liability_Acct = "T_Liability_Acct"; -/** Set Tax Receivables. -@param T_Receivables_Acct Account for Tax credit after tax declaration */ -public void setT_Receivables_Acct (int T_Receivables_Acct) -{ -set_Value ("T_Receivables_Acct", Integer.valueOf(T_Receivables_Acct)); -} -/** Get Tax Receivables. -@return Account for Tax credit after tax declaration */ -public int getT_Receivables_Acct() -{ -Integer ii = (Integer)get_Value("T_Receivables_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Receivables_Acct */ -public static final String COLUMNNAME_T_Receivables_Acct = "T_Receivables_Acct"; -/** Set Unearned Revenue. -@param UnEarnedRevenue_Acct Account for unearned revenue */ -public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) -{ -set_Value ("UnEarnedRevenue_Acct", Integer.valueOf(UnEarnedRevenue_Acct)); -} -/** Get Unearned Revenue. -@return Account for unearned revenue */ -public int getUnEarnedRevenue_Acct() -{ -Integer ii = (Integer)get_Value("UnEarnedRevenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnEarnedRevenue_Acct */ -public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; -/** Set Unrealized Gain Acct. -@param UnrealizedGain_Acct Unrealized Gain Account for currency revaluation */ -public void setUnrealizedGain_Acct (int UnrealizedGain_Acct) -{ -set_Value ("UnrealizedGain_Acct", Integer.valueOf(UnrealizedGain_Acct)); -} -/** Get Unrealized Gain Acct. -@return Unrealized Gain Account for currency revaluation */ -public int getUnrealizedGain_Acct() -{ -Integer ii = (Integer)get_Value("UnrealizedGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnrealizedGain_Acct */ -public static final String COLUMNNAME_UnrealizedGain_Acct = "UnrealizedGain_Acct"; -/** Set Unrealized Loss Acct. -@param UnrealizedLoss_Acct Unrealized Loss Account for currency revaluation */ -public void setUnrealizedLoss_Acct (int UnrealizedLoss_Acct) -{ -set_Value ("UnrealizedLoss_Acct", Integer.valueOf(UnrealizedLoss_Acct)); -} -/** Get Unrealized Loss Acct. -@return Unrealized Loss Account for currency revaluation */ -public int getUnrealizedLoss_Acct() -{ -Integer ii = (Integer)get_Value("UnrealizedLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnrealizedLoss_Acct */ -public static final String COLUMNNAME_UnrealizedLoss_Acct = "UnrealizedLoss_Acct"; -/** Set Vendor Liability. -@param V_Liability_Acct Account for Vendor Liability */ -public void setV_Liability_Acct (int V_Liability_Acct) -{ -set_Value ("V_Liability_Acct", Integer.valueOf(V_Liability_Acct)); -} -/** Get Vendor Liability. -@return Account for Vendor Liability */ -public int getV_Liability_Acct() -{ -Integer ii = (Integer)get_Value("V_Liability_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Liability_Acct */ -public static final String COLUMNNAME_V_Liability_Acct = "V_Liability_Acct"; -/** Set Vendor Service Liability. -@param V_Liability_Services_Acct Account for Vender Service Liability */ -public void setV_Liability_Services_Acct (int V_Liability_Services_Acct) -{ -set_Value ("V_Liability_Services_Acct", Integer.valueOf(V_Liability_Services_Acct)); -} -/** Get Vendor Service Liability. -@return Account for Vender Service Liability */ -public int getV_Liability_Services_Acct() -{ -Integer ii = (Integer)get_Value("V_Liability_Services_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Liability_Services_Acct */ -public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; -/** Set Vendor Prepayment. -@param V_Prepayment_Acct Account for Vendor Prepayments */ -public void setV_Prepayment_Acct (int V_Prepayment_Acct) -{ -set_Value ("V_Prepayment_Acct", Integer.valueOf(V_Prepayment_Acct)); -} -/** Get Vendor Prepayment. -@return Account for Vendor Prepayments */ -public int getV_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("V_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Prepayment_Acct */ -public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; -/** Set Warehouse Differences. -@param W_Differences_Acct Warehouse Differences Account */ -public void setW_Differences_Acct (int W_Differences_Acct) -{ -set_Value ("W_Differences_Acct", Integer.valueOf(W_Differences_Acct)); -} -/** Get Warehouse Differences. -@return Warehouse Differences Account */ -public int getW_Differences_Acct() -{ -Integer ii = (Integer)get_Value("W_Differences_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Differences_Acct */ -public static final String COLUMNNAME_W_Differences_Acct = "W_Differences_Acct"; -/** Set Inventory Adjustment. -@param W_InvActualAdjust_Acct Account for Inventory value adjustments for Actual Costing */ -public void setW_InvActualAdjust_Acct (int W_InvActualAdjust_Acct) -{ -set_Value ("W_InvActualAdjust_Acct", Integer.valueOf(W_InvActualAdjust_Acct)); -} -/** Get Inventory Adjustment. -@return Account for Inventory value adjustments for Actual Costing */ -public int getW_InvActualAdjust_Acct() -{ -Integer ii = (Integer)get_Value("W_InvActualAdjust_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_InvActualAdjust_Acct */ -public static final String COLUMNNAME_W_InvActualAdjust_Acct = "W_InvActualAdjust_Acct"; -/** Set (Not Used). -@param W_Inventory_Acct Warehouse Inventory Asset Account - Currently not used */ -public void setW_Inventory_Acct (int W_Inventory_Acct) -{ -set_Value ("W_Inventory_Acct", Integer.valueOf(W_Inventory_Acct)); -} -/** Get (Not Used). -@return Warehouse Inventory Asset Account - Currently not used */ -public int getW_Inventory_Acct() -{ -Integer ii = (Integer)get_Value("W_Inventory_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Inventory_Acct */ -public static final String COLUMNNAME_W_Inventory_Acct = "W_Inventory_Acct"; -/** Set Inventory Revaluation. -@param W_Revaluation_Acct Account for Inventory Revaluation */ -public void setW_Revaluation_Acct (int W_Revaluation_Acct) -{ -set_Value ("W_Revaluation_Acct", Integer.valueOf(W_Revaluation_Acct)); -} -/** Get Inventory Revaluation. -@return Account for Inventory Revaluation */ -public int getW_Revaluation_Acct() -{ -Integer ii = (Integer)get_Value("W_Revaluation_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Revaluation_Acct */ -public static final String COLUMNNAME_W_Revaluation_Acct = "W_Revaluation_Acct"; -/** Set Withholding. -@param Withholding_Acct Account for Withholdings */ -public void setWithholding_Acct (int Withholding_Acct) -{ -set_Value ("Withholding_Acct", Integer.valueOf(Withholding_Acct)); -} -/** Get Withholding. -@return Account for Withholdings */ -public int getWithholding_Acct() -{ -Integer ii = (Integer)get_Value("Withholding_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Withholding_Acct */ -public static final String COLUMNNAME_Withholding_Acct = "Withholding_Acct"; -/** Set Write-off. -@param WriteOff_Acct Account for Receivables write-off */ -public void setWriteOff_Acct (int WriteOff_Acct) -{ -set_Value ("WriteOff_Acct", Integer.valueOf(WriteOff_Acct)); -} -/** Get Write-off. -@return Account for Receivables write-off */ -public int getWriteOff_Acct() -{ -Integer ii = (Integer)get_Value("WriteOff_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WriteOff_Acct */ -public static final String COLUMNNAME_WriteOff_Acct = "WriteOff_Acct"; -} + +/** Generated Model for C_AcctSchema_Default + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AcctSchema_Default extends PO implements I_C_AcctSchema_Default, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctSchema_Default (Properties ctx, int C_AcctSchema_Default_ID, String trxName) + { + super (ctx, C_AcctSchema_Default_ID, trxName); + /** if (C_AcctSchema_Default_ID == 0) { setB_Asset_Acct (0); + setB_Expense_Acct (0); + setB_InTransit_Acct (0); + setB_InterestExp_Acct (0); + setB_InterestRev_Acct (0); + setB_PaymentSelect_Acct (0); + setB_RevaluationGain_Acct (0); + setB_RevaluationLoss_Acct (0); + setB_SettlementGain_Acct (0); + setB_SettlementLoss_Acct (0); + setB_UnallocatedCash_Acct (0); + setB_Unidentified_Acct (0); + setCB_Asset_Acct (0); + setCB_CashTransfer_Acct (0); + setCB_Differences_Acct (0); + setCB_Expense_Acct (0); + setCB_Receipt_Acct (0); + setC_AcctSchema_ID (0); + setC_Prepayment_Acct (0); + setC_Receivable_Acct (0); + setC_Receivable_Services_Acct (0); + setCh_Expense_Acct (0); + setCh_Revenue_Acct (0); + setE_Expense_Acct (0); + setE_Prepayment_Acct (0); + setNotInvoicedReceipts_Acct (0); + setNotInvoicedReceivables_Acct (0); + setNotInvoicedRevenue_Acct (0); + setPJ_Asset_Acct (0); + setPJ_WIP_Acct (0); + setP_Asset_Acct (0); + setP_COGS_Acct (0); + setP_CostAdjustment_Acct (0); + setP_Expense_Acct (0); + setP_InventoryClearing_Acct (0); + setP_InvoicePriceVariance_Acct (0); + setP_PurchasePriceVariance_Acct (0); + setP_Revenue_Acct (0); + setP_TradeDiscountGrant_Acct (0); + setP_TradeDiscountRec_Acct (0); + setPayDiscount_Exp_Acct (0); + setPayDiscount_Rev_Acct (0); + setRealizedGain_Acct (0); + setRealizedLoss_Acct (0); + setT_Credit_Acct (0); + setT_Due_Acct (0); + setT_Expense_Acct (0); + setT_Liability_Acct (0); + setT_Receivables_Acct (0); + setUnEarnedRevenue_Acct (0); + setUnrealizedGain_Acct (0); + setUnrealizedLoss_Acct (0); + setV_Liability_Acct (0); + setV_Liability_Services_Acct (0); + setV_Prepayment_Acct (0); + setW_Differences_Acct (0); + setW_InvActualAdjust_Acct (0); + setW_Inventory_Acct (0); + setW_Revaluation_Acct (0); + setWithholding_Acct (0); + setWriteOff_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_AcctSchema_Default (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AcctSchema_Default[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Bank Asset. + @param B_Asset_Acct + Bank Asset Account + */ + public void setB_Asset_Acct (int B_Asset_Acct) + { + set_Value (COLUMNNAME_B_Asset_Acct, Integer.valueOf(B_Asset_Acct)); + } + + /** Get Bank Asset. + @return Bank Asset Account + */ + public int getB_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Expense. + @param B_Expense_Acct + Bank Expense Account + */ + public void setB_Expense_Acct (int B_Expense_Acct) + { + set_Value (COLUMNNAME_B_Expense_Acct, Integer.valueOf(B_Expense_Acct)); + } + + /** Get Bank Expense. + @return Bank Expense Account + */ + public int getB_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank In Transit. + @param B_InTransit_Acct + Bank In Transit Account + */ + public void setB_InTransit_Acct (int B_InTransit_Acct) + { + set_Value (COLUMNNAME_B_InTransit_Acct, Integer.valueOf(B_InTransit_Acct)); + } + + /** Get Bank In Transit. + @return Bank In Transit Account + */ + public int getB_InTransit_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_InTransit_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Interest Expense. + @param B_InterestExp_Acct + Bank Interest Expense Account + */ + public void setB_InterestExp_Acct (int B_InterestExp_Acct) + { + set_Value (COLUMNNAME_B_InterestExp_Acct, Integer.valueOf(B_InterestExp_Acct)); + } + + /** Get Bank Interest Expense. + @return Bank Interest Expense Account + */ + public int getB_InterestExp_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_InterestExp_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Interest Revenue. + @param B_InterestRev_Acct + Bank Interest Revenue Account + */ + public void setB_InterestRev_Acct (int B_InterestRev_Acct) + { + set_Value (COLUMNNAME_B_InterestRev_Acct, Integer.valueOf(B_InterestRev_Acct)); + } + + /** Get Bank Interest Revenue. + @return Bank Interest Revenue Account + */ + public int getB_InterestRev_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_InterestRev_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Selection. + @param B_PaymentSelect_Acct + AP Payment Selection Clearing Account + */ + public void setB_PaymentSelect_Acct (int B_PaymentSelect_Acct) + { + set_Value (COLUMNNAME_B_PaymentSelect_Acct, Integer.valueOf(B_PaymentSelect_Acct)); + } + + /** Get Payment Selection. + @return AP Payment Selection Clearing Account + */ + public int getB_PaymentSelect_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_PaymentSelect_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Revaluation Gain. + @param B_RevaluationGain_Acct + Bank Revaluation Gain Account + */ + public void setB_RevaluationGain_Acct (int B_RevaluationGain_Acct) + { + set_Value (COLUMNNAME_B_RevaluationGain_Acct, Integer.valueOf(B_RevaluationGain_Acct)); + } + + /** Get Bank Revaluation Gain. + @return Bank Revaluation Gain Account + */ + public int getB_RevaluationGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_RevaluationGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Revaluation Loss. + @param B_RevaluationLoss_Acct + Bank Revaluation Loss Account + */ + public void setB_RevaluationLoss_Acct (int B_RevaluationLoss_Acct) + { + set_Value (COLUMNNAME_B_RevaluationLoss_Acct, Integer.valueOf(B_RevaluationLoss_Acct)); + } + + /** Get Bank Revaluation Loss. + @return Bank Revaluation Loss Account + */ + public int getB_RevaluationLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_RevaluationLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Settlement Gain. + @param B_SettlementGain_Acct + Bank Settlement Gain Account + */ + public void setB_SettlementGain_Acct (int B_SettlementGain_Acct) + { + set_Value (COLUMNNAME_B_SettlementGain_Acct, Integer.valueOf(B_SettlementGain_Acct)); + } + + /** Get Bank Settlement Gain. + @return Bank Settlement Gain Account + */ + public int getB_SettlementGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_SettlementGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Settlement Loss. + @param B_SettlementLoss_Acct + Bank Settlement Loss Account + */ + public void setB_SettlementLoss_Acct (int B_SettlementLoss_Acct) + { + set_Value (COLUMNNAME_B_SettlementLoss_Acct, Integer.valueOf(B_SettlementLoss_Acct)); + } + + /** Get Bank Settlement Loss. + @return Bank Settlement Loss Account + */ + public int getB_SettlementLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_SettlementLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unallocated Cash. + @param B_UnallocatedCash_Acct + Unallocated Cash Clearing Account + */ + public void setB_UnallocatedCash_Acct (int B_UnallocatedCash_Acct) + { + set_Value (COLUMNNAME_B_UnallocatedCash_Acct, Integer.valueOf(B_UnallocatedCash_Acct)); + } + + /** Get Unallocated Cash. + @return Unallocated Cash Clearing Account + */ + public int getB_UnallocatedCash_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_UnallocatedCash_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Unidentified Receipts. + @param B_Unidentified_Acct + Bank Unidentified Receipts Account + */ + public void setB_Unidentified_Acct (int B_Unidentified_Acct) + { + set_Value (COLUMNNAME_B_Unidentified_Acct, Integer.valueOf(B_Unidentified_Acct)); + } + + /** Get Bank Unidentified Receipts. + @return Bank Unidentified Receipts Account + */ + public int getB_Unidentified_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Unidentified_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Asset. + @param CB_Asset_Acct + Cash Book Asset Account + */ + public void setCB_Asset_Acct (int CB_Asset_Acct) + { + set_Value (COLUMNNAME_CB_Asset_Acct, Integer.valueOf(CB_Asset_Acct)); + } + + /** Get Cash Book Asset. + @return Cash Book Asset Account + */ + public int getCB_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Transfer. + @param CB_CashTransfer_Acct + Cash Transfer Clearing Account + */ + public void setCB_CashTransfer_Acct (int CB_CashTransfer_Acct) + { + set_Value (COLUMNNAME_CB_CashTransfer_Acct, Integer.valueOf(CB_CashTransfer_Acct)); + } + + /** Get Cash Transfer. + @return Cash Transfer Clearing Account + */ + public int getCB_CashTransfer_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_CashTransfer_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Differences. + @param CB_Differences_Acct + Cash Book Differences Account + */ + public void setCB_Differences_Acct (int CB_Differences_Acct) + { + set_Value (COLUMNNAME_CB_Differences_Acct, Integer.valueOf(CB_Differences_Acct)); + } + + /** Get Cash Book Differences. + @return Cash Book Differences Account + */ + public int getCB_Differences_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Differences_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Expense. + @param CB_Expense_Acct + Cash Book Expense Account + */ + public void setCB_Expense_Acct (int CB_Expense_Acct) + { + set_Value (COLUMNNAME_CB_Expense_Acct, Integer.valueOf(CB_Expense_Acct)); + } + + /** Get Cash Book Expense. + @return Cash Book Expense Account + */ + public int getCB_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Receipt. + @param CB_Receipt_Acct + Cash Book Receipts Account + */ + public void setCB_Receipt_Acct (int CB_Receipt_Acct) + { + set_Value (COLUMNNAME_CB_Receipt_Acct, Integer.valueOf(CB_Receipt_Acct)); + } + + /** Get Cash Book Receipt. + @return Cash Book Receipts Account + */ + public int getCB_Receipt_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Receipt_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); + } + + /** Set Customer Prepayment. + @param C_Prepayment_Acct + Account for customer prepayments + */ + public void setC_Prepayment_Acct (int C_Prepayment_Acct) + { + set_Value (COLUMNNAME_C_Prepayment_Acct, Integer.valueOf(C_Prepayment_Acct)); + } + + /** Get Customer Prepayment. + @return Account for customer prepayments + */ + public int getC_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer Receivables. + @param C_Receivable_Acct + Account for Customer Receivables + */ + public void setC_Receivable_Acct (int C_Receivable_Acct) + { + set_Value (COLUMNNAME_C_Receivable_Acct, Integer.valueOf(C_Receivable_Acct)); + } + + /** Get Customer Receivables. + @return Account for Customer Receivables + */ + public int getC_Receivable_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Receivable Services. + @param C_Receivable_Services_Acct + Customer Accounts Receivables Services Account + */ + public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct) + { + set_Value (COLUMNNAME_C_Receivable_Services_Acct, Integer.valueOf(C_Receivable_Services_Acct)); + } + + /** Get Receivable Services. + @return Customer Accounts Receivables Services Account + */ + public int getC_Receivable_Services_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Services_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge Expense. + @param Ch_Expense_Acct + Charge Expense Account + */ + public void setCh_Expense_Acct (int Ch_Expense_Acct) + { + set_Value (COLUMNNAME_Ch_Expense_Acct, Integer.valueOf(Ch_Expense_Acct)); + } + + /** Get Charge Expense. + @return Charge Expense Account + */ + public int getCh_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ch_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge Revenue. + @param Ch_Revenue_Acct + Charge Revenue Account + */ + public void setCh_Revenue_Acct (int Ch_Revenue_Acct) + { + set_Value (COLUMNNAME_Ch_Revenue_Acct, Integer.valueOf(Ch_Revenue_Acct)); + } + + /** Get Charge Revenue. + @return Charge Revenue Account + */ + public int getCh_Revenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ch_Revenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Employee Expense. + @param E_Expense_Acct + Account for Employee Expenses + */ + public void setE_Expense_Acct (int E_Expense_Acct) + { + set_Value (COLUMNNAME_E_Expense_Acct, Integer.valueOf(E_Expense_Acct)); + } + + /** Get Employee Expense. + @return Account for Employee Expenses + */ + public int getE_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_E_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Employee Prepayment. + @param E_Prepayment_Acct + Account for Employee Expense Prepayments + */ + public void setE_Prepayment_Acct (int E_Prepayment_Acct) + { + set_Value (COLUMNNAME_E_Prepayment_Acct, Integer.valueOf(E_Prepayment_Acct)); + } + + /** Get Employee Prepayment. + @return Account for Employee Expense Prepayments + */ + public int getE_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_E_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Not-invoiced Receipts. + @param NotInvoicedReceipts_Acct + Account for not-invoiced Material Receipts + */ + public void setNotInvoicedReceipts_Acct (int NotInvoicedReceipts_Acct) + { + set_Value (COLUMNNAME_NotInvoicedReceipts_Acct, Integer.valueOf(NotInvoicedReceipts_Acct)); + } + + /** Get Not-invoiced Receipts. + @return Account for not-invoiced Material Receipts + */ + public int getNotInvoicedReceipts_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NotInvoicedReceipts_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Not-invoiced Receivables. + @param NotInvoicedReceivables_Acct + Account for not invoiced Receivables + */ + public void setNotInvoicedReceivables_Acct (int NotInvoicedReceivables_Acct) + { + set_Value (COLUMNNAME_NotInvoicedReceivables_Acct, Integer.valueOf(NotInvoicedReceivables_Acct)); + } + + /** Get Not-invoiced Receivables. + @return Account for not invoiced Receivables + */ + public int getNotInvoicedReceivables_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NotInvoicedReceivables_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Not-invoiced Revenue. + @param NotInvoicedRevenue_Acct + Account for not invoiced Revenue + */ + public void setNotInvoicedRevenue_Acct (int NotInvoicedRevenue_Acct) + { + set_Value (COLUMNNAME_NotInvoicedRevenue_Acct, Integer.valueOf(NotInvoicedRevenue_Acct)); + } + + /** Get Not-invoiced Revenue. + @return Account for not invoiced Revenue + */ + public int getNotInvoicedRevenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NotInvoicedRevenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Asset. + @param PJ_Asset_Acct + Project Asset Account + */ + public void setPJ_Asset_Acct (int PJ_Asset_Acct) + { + set_Value (COLUMNNAME_PJ_Asset_Acct, Integer.valueOf(PJ_Asset_Acct)); + } + + /** Get Project Asset. + @return Project Asset Account + */ + public int getPJ_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PJ_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Work In Progress. + @param PJ_WIP_Acct + Account for Work in Progress + */ + public void setPJ_WIP_Acct (int PJ_WIP_Acct) + { + set_Value (COLUMNNAME_PJ_WIP_Acct, Integer.valueOf(PJ_WIP_Acct)); + } + + /** Get Work In Progress. + @return Account for Work in Progress + */ + public int getPJ_WIP_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PJ_WIP_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Asset. + @param P_Asset_Acct + Account for Product Asset (Inventory) + */ + public void setP_Asset_Acct (int P_Asset_Acct) + { + set_Value (COLUMNNAME_P_Asset_Acct, Integer.valueOf(P_Asset_Acct)); + } + + /** Get Product Asset. + @return Account for Product Asset (Inventory) + */ + public int getP_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product COGS. + @param P_COGS_Acct + Account for Cost of Goods Sold + */ + public void setP_COGS_Acct (int P_COGS_Acct) + { + set_Value (COLUMNNAME_P_COGS_Acct, Integer.valueOf(P_COGS_Acct)); + } + + /** Get Product COGS. + @return Account for Cost of Goods Sold + */ + public int getP_COGS_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_COGS_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost Adjustment. + @param P_CostAdjustment_Acct + Product Cost Adjustment Account + */ + public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct) + { + set_Value (COLUMNNAME_P_CostAdjustment_Acct, Integer.valueOf(P_CostAdjustment_Acct)); + } + + /** Get Cost Adjustment. + @return Product Cost Adjustment Account + */ + public int getP_CostAdjustment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_CostAdjustment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Expense. + @param P_Expense_Acct + Account for Product Expense + */ + public void setP_Expense_Acct (int P_Expense_Acct) + { + set_Value (COLUMNNAME_P_Expense_Acct, Integer.valueOf(P_Expense_Acct)); + } + + /** Get Product Expense. + @return Account for Product Expense + */ + public int getP_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Clearing. + @param P_InventoryClearing_Acct + Product Inventory Clearing Account + */ + public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct) + { + set_Value (COLUMNNAME_P_InventoryClearing_Acct, Integer.valueOf(P_InventoryClearing_Acct)); + } + + /** Get Inventory Clearing. + @return Product Inventory Clearing Account + */ + public int getP_InventoryClearing_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_InventoryClearing_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Price Variance. + @param P_InvoicePriceVariance_Acct + Difference between Costs and Invoice Price (IPV) + */ + public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct) + { + set_Value (COLUMNNAME_P_InvoicePriceVariance_Acct, Integer.valueOf(P_InvoicePriceVariance_Acct)); + } + + /** Get Invoice Price Variance. + @return Difference between Costs and Invoice Price (IPV) + */ + public int getP_InvoicePriceVariance_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_InvoicePriceVariance_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Purchase Price Variance. + @param P_PurchasePriceVariance_Acct + Difference between Standard Cost and Purchase Price (PPV) + */ + public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct) + { + set_Value (COLUMNNAME_P_PurchasePriceVariance_Acct, Integer.valueOf(P_PurchasePriceVariance_Acct)); + } + + /** Get Purchase Price Variance. + @return Difference between Standard Cost and Purchase Price (PPV) + */ + public int getP_PurchasePriceVariance_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_PurchasePriceVariance_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Revenue. + @param P_Revenue_Acct + Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct) + { + set_Value (COLUMNNAME_P_Revenue_Acct, Integer.valueOf(P_Revenue_Acct)); + } + + /** Get Product Revenue. + @return Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Revenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trade Discount Granted. + @param P_TradeDiscountGrant_Acct + Trade Discount Granted Account + */ + public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct) + { + set_Value (COLUMNNAME_P_TradeDiscountGrant_Acct, Integer.valueOf(P_TradeDiscountGrant_Acct)); + } + + /** Get Trade Discount Granted. + @return Trade Discount Granted Account + */ + public int getP_TradeDiscountGrant_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_TradeDiscountGrant_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trade Discount Received. + @param P_TradeDiscountRec_Acct + Trade Discount Receivable Account + */ + public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct) + { + set_Value (COLUMNNAME_P_TradeDiscountRec_Acct, Integer.valueOf(P_TradeDiscountRec_Acct)); + } + + /** Get Trade Discount Received. + @return Trade Discount Receivable Account + */ + public int getP_TradeDiscountRec_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_TradeDiscountRec_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Discount Expense. + @param PayDiscount_Exp_Acct + Payment Discount Expense Account + */ + public void setPayDiscount_Exp_Acct (int PayDiscount_Exp_Acct) + { + set_Value (COLUMNNAME_PayDiscount_Exp_Acct, Integer.valueOf(PayDiscount_Exp_Acct)); + } + + /** Get Payment Discount Expense. + @return Payment Discount Expense Account + */ + public int getPayDiscount_Exp_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PayDiscount_Exp_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Discount Revenue. + @param PayDiscount_Rev_Acct + Payment Discount Revenue Account + */ + public void setPayDiscount_Rev_Acct (int PayDiscount_Rev_Acct) + { + set_Value (COLUMNNAME_PayDiscount_Rev_Acct, Integer.valueOf(PayDiscount_Rev_Acct)); + } + + /** Get Payment Discount Revenue. + @return Payment Discount Revenue Account + */ + public int getPayDiscount_Rev_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PayDiscount_Rev_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Realized Gain Acct. + @param RealizedGain_Acct + Realized Gain Account + */ + public void setRealizedGain_Acct (int RealizedGain_Acct) + { + set_Value (COLUMNNAME_RealizedGain_Acct, Integer.valueOf(RealizedGain_Acct)); + } + + /** Get Realized Gain Acct. + @return Realized Gain Account + */ + public int getRealizedGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RealizedGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Realized Loss Acct. + @param RealizedLoss_Acct + Realized Loss Account + */ + public void setRealizedLoss_Acct (int RealizedLoss_Acct) + { + set_Value (COLUMNNAME_RealizedLoss_Acct, Integer.valueOf(RealizedLoss_Acct)); + } + + /** Get Realized Loss Acct. + @return Realized Loss Account + */ + public int getRealizedLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RealizedLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Credit. + @param T_Credit_Acct + Account for Tax you can reclaim + */ + public void setT_Credit_Acct (int T_Credit_Acct) + { + set_Value (COLUMNNAME_T_Credit_Acct, Integer.valueOf(T_Credit_Acct)); + } + + /** Get Tax Credit. + @return Account for Tax you can reclaim + */ + public int getT_Credit_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Credit_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Due. + @param T_Due_Acct + Account for Tax you have to pay + */ + public void setT_Due_Acct (int T_Due_Acct) + { + set_Value (COLUMNNAME_T_Due_Acct, Integer.valueOf(T_Due_Acct)); + } + + /** Get Tax Due. + @return Account for Tax you have to pay + */ + public int getT_Due_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Due_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Expense. + @param T_Expense_Acct + Account for paid tax you cannot reclaim + */ + public void setT_Expense_Acct (int T_Expense_Acct) + { + set_Value (COLUMNNAME_T_Expense_Acct, Integer.valueOf(T_Expense_Acct)); + } + + /** Get Tax Expense. + @return Account for paid tax you cannot reclaim + */ + public int getT_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Liability. + @param T_Liability_Acct + Account for Tax declaration liability + */ + public void setT_Liability_Acct (int T_Liability_Acct) + { + set_Value (COLUMNNAME_T_Liability_Acct, Integer.valueOf(T_Liability_Acct)); + } + + /** Get Tax Liability. + @return Account for Tax declaration liability + */ + public int getT_Liability_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Liability_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Receivables. + @param T_Receivables_Acct + Account for Tax credit after tax declaration + */ + public void setT_Receivables_Acct (int T_Receivables_Acct) + { + set_Value (COLUMNNAME_T_Receivables_Acct, Integer.valueOf(T_Receivables_Acct)); + } + + /** Get Tax Receivables. + @return Account for Tax credit after tax declaration + */ + public int getT_Receivables_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Receivables_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unearned Revenue. + @param UnEarnedRevenue_Acct + Account for unearned revenue + */ + public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) + { + set_Value (COLUMNNAME_UnEarnedRevenue_Acct, Integer.valueOf(UnEarnedRevenue_Acct)); + } + + /** Get Unearned Revenue. + @return Account for unearned revenue + */ + public int getUnEarnedRevenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnEarnedRevenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unrealized Gain Acct. + @param UnrealizedGain_Acct + Unrealized Gain Account for currency revaluation + */ + public void setUnrealizedGain_Acct (int UnrealizedGain_Acct) + { + set_Value (COLUMNNAME_UnrealizedGain_Acct, Integer.valueOf(UnrealizedGain_Acct)); + } + + /** Get Unrealized Gain Acct. + @return Unrealized Gain Account for currency revaluation + */ + public int getUnrealizedGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnrealizedGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unrealized Loss Acct. + @param UnrealizedLoss_Acct + Unrealized Loss Account for currency revaluation + */ + public void setUnrealizedLoss_Acct (int UnrealizedLoss_Acct) + { + set_Value (COLUMNNAME_UnrealizedLoss_Acct, Integer.valueOf(UnrealizedLoss_Acct)); + } + + /** Get Unrealized Loss Acct. + @return Unrealized Loss Account for currency revaluation + */ + public int getUnrealizedLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnrealizedLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Liability. + @param V_Liability_Acct + Account for Vendor Liability + */ + public void setV_Liability_Acct (int V_Liability_Acct) + { + set_Value (COLUMNNAME_V_Liability_Acct, Integer.valueOf(V_Liability_Acct)); + } + + /** Get Vendor Liability. + @return Account for Vendor Liability + */ + public int getV_Liability_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Liability_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Service Liability. + @param V_Liability_Services_Acct + Account for Vender Service Liability + */ + public void setV_Liability_Services_Acct (int V_Liability_Services_Acct) + { + set_Value (COLUMNNAME_V_Liability_Services_Acct, Integer.valueOf(V_Liability_Services_Acct)); + } + + /** Get Vendor Service Liability. + @return Account for Vender Service Liability + */ + public int getV_Liability_Services_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Liability_Services_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Prepayment. + @param V_Prepayment_Acct + Account for Vendor Prepayments + */ + public void setV_Prepayment_Acct (int V_Prepayment_Acct) + { + set_Value (COLUMNNAME_V_Prepayment_Acct, Integer.valueOf(V_Prepayment_Acct)); + } + + /** Get Vendor Prepayment. + @return Account for Vendor Prepayments + */ + public int getV_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Warehouse Differences. + @param W_Differences_Acct + Warehouse Differences Account + */ + public void setW_Differences_Acct (int W_Differences_Acct) + { + set_Value (COLUMNNAME_W_Differences_Acct, Integer.valueOf(W_Differences_Acct)); + } + + /** Get Warehouse Differences. + @return Warehouse Differences Account + */ + public int getW_Differences_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Differences_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Adjustment. + @param W_InvActualAdjust_Acct + Account for Inventory value adjustments for Actual Costing + */ + public void setW_InvActualAdjust_Acct (int W_InvActualAdjust_Acct) + { + set_Value (COLUMNNAME_W_InvActualAdjust_Acct, Integer.valueOf(W_InvActualAdjust_Acct)); + } + + /** Get Inventory Adjustment. + @return Account for Inventory value adjustments for Actual Costing + */ + public int getW_InvActualAdjust_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_InvActualAdjust_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set (Not Used). + @param W_Inventory_Acct + Warehouse Inventory Asset Account - Currently not used + */ + public void setW_Inventory_Acct (int W_Inventory_Acct) + { + set_Value (COLUMNNAME_W_Inventory_Acct, Integer.valueOf(W_Inventory_Acct)); + } + + /** Get (Not Used). + @return Warehouse Inventory Asset Account - Currently not used + */ + public int getW_Inventory_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Inventory_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Revaluation. + @param W_Revaluation_Acct + Account for Inventory Revaluation + */ + public void setW_Revaluation_Acct (int W_Revaluation_Acct) + { + set_Value (COLUMNNAME_W_Revaluation_Acct, Integer.valueOf(W_Revaluation_Acct)); + } + + /** Get Inventory Revaluation. + @return Account for Inventory Revaluation + */ + public int getW_Revaluation_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Revaluation_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Withholding. + @param Withholding_Acct + Account for Withholdings + */ + public void setWithholding_Acct (int Withholding_Acct) + { + set_Value (COLUMNNAME_Withholding_Acct, Integer.valueOf(Withholding_Acct)); + } + + /** Get Withholding. + @return Account for Withholdings + */ + public int getWithholding_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Withholding_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Write-off. + @param WriteOff_Acct + Account for Receivables write-off + */ + public void setWriteOff_Acct (int WriteOff_Acct) + { + set_Value (COLUMNNAME_WriteOff_Acct, Integer.valueOf(WriteOff_Acct)); + } + + /** Get Write-off. + @return Account for Receivables write-off + */ + public int getWriteOff_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WriteOff_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 f99d62dd95..f0eeb516f9 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_Element.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_Element.java @@ -1,470 +1,600 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AcctSchema_Element - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AcctSchema_Element extends PO + +/** Generated Model for C_AcctSchema_Element + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AcctSchema_Element extends PO implements I_C_AcctSchema_Element, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AcctSchema_Element_ID id -@param trxName transaction -*/ -public X_C_AcctSchema_Element (Properties ctx, int C_AcctSchema_Element_ID, String trxName) -{ -super (ctx, C_AcctSchema_Element_ID, trxName); -/** if (C_AcctSchema_Element_ID == 0) -{ -setC_AcctSchema_Element_ID (0); -setC_AcctSchema_ID (0); -setC_Element_ID (0); -setElementType (null); -setIsBalanced (false); -setIsMandatory (false); -setName (null); -setOrg_ID (0); -setSeqNo (0); // @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@C_AcctSchema_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AcctSchema_Element (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AcctSchema_Element */ -public static final String Table_Name="C_AcctSchema_Element"; - -/** AD_Table_ID=279 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AcctSchema_Element[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; -/** Set Acct.Schema Element. -@param C_AcctSchema_Element_ID Acct.Schema Element */ -public void setC_AcctSchema_Element_ID (int C_AcctSchema_Element_ID) -{ -if (C_AcctSchema_Element_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_Element_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_Element_ID", Integer.valueOf(C_AcctSchema_Element_ID)); -} -/** Get Acct.Schema Element. -@return Acct.Schema Element */ -public int getC_AcctSchema_Element_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_Element_ID */ -public static final String COLUMNNAME_C_AcctSchema_Element_ID = "C_AcctSchema_Element_ID"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID <= 0) set_Value ("C_ElementValue_ID", null); - else -set_Value ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Element. -@param C_Element_ID Accounting Element */ -public void setC_Element_ID (int C_Element_ID) -{ -if (C_Element_ID < 1) throw new IllegalArgumentException ("C_Element_ID is mandatory."); -set_Value ("C_Element_ID", Integer.valueOf(C_Element_ID)); -} -/** Get Element. -@return Accounting Element */ -public int getC_Element_ID() -{ -Integer ii = (Integer)get_Value("C_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Element_ID */ -public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctSchema_Element (Properties ctx, int C_AcctSchema_Element_ID, String trxName) + { + super (ctx, C_AcctSchema_Element_ID, trxName); + /** if (C_AcctSchema_Element_ID == 0) { setC_AcctSchema_Element_ID (0); + setC_AcctSchema_ID (0); + setC_Element_ID (0); + setElementType (null); + setIsBalanced (false); + setIsMandatory (false); + setName (null); + setOrg_ID (0); + setSeqNo (0); +// @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@C_AcctSchema_ID@ +} */ + } + + /** Load Constructor */ + public X_C_AcctSchema_Element (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AcctSchema_Element[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getI_AD_Column() throws Exception + { + 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 e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Acct.Schema Element. + @param C_AcctSchema_Element_ID Acct.Schema Element */ + public void setC_AcctSchema_Element_ID (int C_AcctSchema_Element_ID) + { + if (C_AcctSchema_Element_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_Element_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_Element_ID, Integer.valueOf(C_AcctSchema_Element_ID)); + } + + /** Get Acct.Schema Element. +@return Acct.Schema Element */ + public int getC_AcctSchema_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID <= 0) set_Value (COLUMNNAME_C_ElementValue_ID, null); + else + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Element getI_C_Element() throws Exception + { + 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 e; + } + return result; + } + + /** Set Element. + @param C_Element_ID + Accounting Element + */ + public void setC_Element_ID (int C_Element_ID) + { + if (C_Element_ID < 1) + throw new IllegalArgumentException ("C_Element_ID is mandatory."); + set_Value (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + } + + /** Get Element. + @return Accounting Element + */ + public int getC_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** ElementType AD_Reference_ID=181 */ -public static final int ELEMENTTYPE_AD_Reference_ID=181; -/** Account = AC */ -public static final String ELEMENTTYPE_Account = "AC"; -/** Activity = AY */ -public static final String ELEMENTTYPE_Activity = "AY"; -/** BPartner = BP */ -public static final String ELEMENTTYPE_BPartner = "BP"; -/** Location From = LF */ -public static final String ELEMENTTYPE_LocationFrom = "LF"; -/** Location To = LT */ -public static final String ELEMENTTYPE_LocationTo = "LT"; -/** Campaign = MC */ -public static final String ELEMENTTYPE_Campaign = "MC"; -/** Organization = OO */ -public static final String ELEMENTTYPE_Organization = "OO"; -/** Org Trx = OT */ -public static final String ELEMENTTYPE_OrgTrx = "OT"; -/** Project = PJ */ -public static final String ELEMENTTYPE_Project = "PJ"; -/** Product = PR */ -public static final String ELEMENTTYPE_Product = "PR"; -/** Sub Account = SA */ -public static final String ELEMENTTYPE_SubAccount = "SA"; -/** Sales Region = SR */ -public static final String ELEMENTTYPE_SalesRegion = "SR"; -/** User List 1 = U1 */ -public static final String ELEMENTTYPE_UserList1 = "U1"; -/** User List 2 = U2 */ -public static final String ELEMENTTYPE_UserList2 = "U2"; -/** User Element 1 = X1 */ -public static final String ELEMENTTYPE_UserElement1 = "X1"; -/** User Element 2 = X2 */ +public static final int ELEMENTTYPE_AD_Reference_ID=181;/** Account = AC */ +public static final String ELEMENTTYPE_Account = "AC";/** Activity = AY */ +public static final String ELEMENTTYPE_Activity = "AY";/** BPartner = BP */ +public static final String ELEMENTTYPE_BPartner = "BP";/** Location From = LF */ +public static final String ELEMENTTYPE_LocationFrom = "LF";/** Location To = LT */ +public static final String ELEMENTTYPE_LocationTo = "LT";/** Campaign = MC */ +public static final String ELEMENTTYPE_Campaign = "MC";/** Organization = OO */ +public static final String ELEMENTTYPE_Organization = "OO";/** Org Trx = OT */ +public static final String ELEMENTTYPE_OrgTrx = "OT";/** Project = PJ */ +public static final String ELEMENTTYPE_Project = "PJ";/** Product = PR */ +public static final String ELEMENTTYPE_Product = "PR";/** Sub Account = SA */ +public static final String ELEMENTTYPE_SubAccount = "SA";/** Sales Region = SR */ +public static final String ELEMENTTYPE_SalesRegion = "SR";/** User List 1 = U1 */ +public static final String ELEMENTTYPE_UserList1 = "U1";/** User List 2 = U2 */ +public static final String ELEMENTTYPE_UserList2 = "U2";/** User Element 1 = X1 */ +public static final String ELEMENTTYPE_UserElement1 = "X1";/** User Element 2 = X2 */ public static final String ELEMENTTYPE_UserElement2 = "X2"; -/** Set Type. -@param ElementType Element Type (account or user defined) */ -public void setElementType (String ElementType) -{ -if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory"); -if (ElementType.equals("AC") || ElementType.equals("AY") || ElementType.equals("BP") || ElementType.equals("LF") || ElementType.equals("LT") || ElementType.equals("MC") || ElementType.equals("OO") || ElementType.equals("OT") || ElementType.equals("PJ") || ElementType.equals("PR") || ElementType.equals("SA") || ElementType.equals("SR") || ElementType.equals("U1") || ElementType.equals("U2") || ElementType.equals("X1") || ElementType.equals("X2")); - else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=181 - AC - AY - BP - LF - LT - MC - OO - OT - PJ - PR - SA - SR - U1 - U2 - X1 - X2"); -if (ElementType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -ElementType = ElementType.substring(0,1); -} -set_Value ("ElementType", ElementType); -} -/** Get Type. -@return Element Type (account or user defined) */ -public String getElementType() -{ -return (String)get_Value("ElementType"); -} -/** Column name ElementType */ -public static final String COLUMNNAME_ElementType = "ElementType"; -/** Set Balanced. -@param IsBalanced Balanced */ -public void setIsBalanced (boolean IsBalanced) -{ -set_Value ("IsBalanced", Boolean.valueOf(IsBalanced)); -} -/** Get Balanced. -@return Balanced */ -public boolean isBalanced() -{ -Object oo = get_Value("IsBalanced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBalanced */ -public static final String COLUMNNAME_IsBalanced = "IsBalanced"; -/** Set Mandatory. -@param IsMandatory Data entry is required in this column */ -public void setIsMandatory (boolean IsMandatory) -{ -set_Value ("IsMandatory", Boolean.valueOf(IsMandatory)); -} -/** Get Mandatory. -@return Data entry is required in this column */ -public boolean isMandatory() -{ -Object oo = get_Value("IsMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMandatory */ -public static final String COLUMNNAME_IsMandatory = "IsMandatory"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Type. + @param ElementType + Element Type (account or user defined) + */ + public void setElementType (String ElementType) + { +if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory");if (ElementType.equals("AC") || ElementType.equals("AY") || ElementType.equals("BP") || ElementType.equals("LF") || ElementType.equals("LT") || ElementType.equals("MC") || ElementType.equals("OO") || ElementType.equals("OT") || ElementType.equals("PJ") || ElementType.equals("PR") || ElementType.equals("SA") || ElementType.equals("SR") || ElementType.equals("U1") || ElementType.equals("U2") || ElementType.equals("X1") || ElementType.equals("X2")); else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=181 - AC - AY - BP - LF - LT - MC - OO - OT - PJ - PR - SA - SR - U1 - U2 - X1 - X2"); if (ElementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + ElementType = ElementType.substring(0, 1); + } + set_Value (COLUMNNAME_ElementType, ElementType); + } + + /** Get Type. + @return Element Type (account or user defined) + */ + public String getElementType () + { + return (String)get_Value(COLUMNNAME_ElementType); + } + + /** Set Balanced. + @param IsBalanced Balanced */ + public void setIsBalanced (boolean IsBalanced) + { + set_Value (COLUMNNAME_IsBalanced, Boolean.valueOf(IsBalanced)); + } + + /** Get Balanced. +@return Balanced */ + public boolean isBalanced () + { + Object oo = get_Value(COLUMNNAME_IsBalanced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory. + @param IsMandatory + Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory) + { + set_Value (COLUMNNAME_IsMandatory, Boolean.valueOf(IsMandatory)); + } + + /** Get Mandatory. + @return Data entry is required in this column + */ + public boolean isMandatory () + { + Object oo = get_Value(COLUMNNAME_IsMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Org_ID AD_Reference_ID=130 */ public static final int ORG_ID_AD_Reference_ID=130; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID < 1) throw new IllegalArgumentException ("Org_ID is mandatory."); -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID < 1) + throw new IllegalArgumentException ("Org_ID is mandatory."); + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 2d5dfef4fc..9cdb6f09ac 100644 --- a/base/src/org/compiere/model/X_C_AcctSchema_GL.java +++ b/base/src/org/compiere/model/X_C_AcctSchema_GL.java @@ -1,324 +1,362 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AcctSchema_GL - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AcctSchema_GL extends PO + +/** Generated Model for C_AcctSchema_GL + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AcctSchema_GL extends PO implements I_C_AcctSchema_GL, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AcctSchema_GL_ID id -@param trxName transaction -*/ -public X_C_AcctSchema_GL (Properties ctx, int C_AcctSchema_GL_ID, String trxName) -{ -super (ctx, C_AcctSchema_GL_ID, trxName); -/** if (C_AcctSchema_GL_ID == 0) -{ -setC_AcctSchema_ID (0); -setCommitmentOffset_Acct (0); -setIncomeSummary_Acct (0); -setIntercompanyDueFrom_Acct (0); -setIntercompanyDueTo_Acct (0); -setPPVOffset_Acct (0); -setRetainedEarning_Acct (0); -setUseCurrencyBalancing (false); -setUseSuspenseBalancing (false); -setUseSuspenseError (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AcctSchema_GL (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AcctSchema_GL */ -public static final String Table_Name="C_AcctSchema_GL"; - -/** AD_Table_ID=266 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AcctSchema_GL[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Commitment Offset. -@param CommitmentOffset_Acct Budgetary Commitment Offset Account */ -public void setCommitmentOffset_Acct (int CommitmentOffset_Acct) -{ -set_Value ("CommitmentOffset_Acct", Integer.valueOf(CommitmentOffset_Acct)); -} -/** Get Commitment Offset. -@return Budgetary Commitment Offset Account */ -public int getCommitmentOffset_Acct() -{ -Integer ii = (Integer)get_Value("CommitmentOffset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CommitmentOffset_Acct */ -public static final String COLUMNNAME_CommitmentOffset_Acct = "CommitmentOffset_Acct"; -/** Set Currency Balancing Acct. -@param CurrencyBalancing_Acct Account used when a currency is out of balance */ -public void setCurrencyBalancing_Acct (int CurrencyBalancing_Acct) -{ -set_Value ("CurrencyBalancing_Acct", Integer.valueOf(CurrencyBalancing_Acct)); -} -/** Get Currency Balancing Acct. -@return Account used when a currency is out of balance */ -public int getCurrencyBalancing_Acct() -{ -Integer ii = (Integer)get_Value("CurrencyBalancing_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrencyBalancing_Acct */ -public static final String COLUMNNAME_CurrencyBalancing_Acct = "CurrencyBalancing_Acct"; -/** Set Income Summary Acct. -@param IncomeSummary_Acct Income Summary Account */ -public void setIncomeSummary_Acct (int IncomeSummary_Acct) -{ -set_Value ("IncomeSummary_Acct", Integer.valueOf(IncomeSummary_Acct)); -} -/** Get Income Summary Acct. -@return Income Summary Account */ -public int getIncomeSummary_Acct() -{ -Integer ii = (Integer)get_Value("IncomeSummary_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IncomeSummary_Acct */ -public static final String COLUMNNAME_IncomeSummary_Acct = "IncomeSummary_Acct"; -/** Set Intercompany Due From Acct. -@param IntercompanyDueFrom_Acct Intercompany Due From / Receivables Account */ -public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct) -{ -set_Value ("IntercompanyDueFrom_Acct", Integer.valueOf(IntercompanyDueFrom_Acct)); -} -/** Get Intercompany Due From Acct. -@return Intercompany Due From / Receivables Account */ -public int getIntercompanyDueFrom_Acct() -{ -Integer ii = (Integer)get_Value("IntercompanyDueFrom_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IntercompanyDueFrom_Acct */ -public static final String COLUMNNAME_IntercompanyDueFrom_Acct = "IntercompanyDueFrom_Acct"; -/** Set Intercompany Due To Acct. -@param IntercompanyDueTo_Acct Intercompany Due To / Payable Account */ -public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct) -{ -set_Value ("IntercompanyDueTo_Acct", Integer.valueOf(IntercompanyDueTo_Acct)); -} -/** Get Intercompany Due To Acct. -@return Intercompany Due To / Payable Account */ -public int getIntercompanyDueTo_Acct() -{ -Integer ii = (Integer)get_Value("IntercompanyDueTo_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IntercompanyDueTo_Acct */ -public static final String COLUMNNAME_IntercompanyDueTo_Acct = "IntercompanyDueTo_Acct"; -/** Set PPV Offset. -@param PPVOffset_Acct Purchase Price Variance Offset Account */ -public void setPPVOffset_Acct (int PPVOffset_Acct) -{ -set_Value ("PPVOffset_Acct", Integer.valueOf(PPVOffset_Acct)); -} -/** Get PPV Offset. -@return Purchase Price Variance Offset Account */ -public int getPPVOffset_Acct() -{ -Integer ii = (Integer)get_Value("PPVOffset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PPVOffset_Acct */ -public static final String COLUMNNAME_PPVOffset_Acct = "PPVOffset_Acct"; -/** Set Retained Earning Acct. -@param RetainedEarning_Acct Retained Earning Acct */ -public void setRetainedEarning_Acct (int RetainedEarning_Acct) -{ -set_Value ("RetainedEarning_Acct", Integer.valueOf(RetainedEarning_Acct)); -} -/** Get Retained Earning Acct. -@return Retained Earning Acct */ -public int getRetainedEarning_Acct() -{ -Integer ii = (Integer)get_Value("RetainedEarning_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RetainedEarning_Acct */ -public static final String COLUMNNAME_RetainedEarning_Acct = "RetainedEarning_Acct"; -/** Set Suspense Balancing Acct. -@param SuspenseBalancing_Acct Suspense Balancing Acct */ -public void setSuspenseBalancing_Acct (int SuspenseBalancing_Acct) -{ -set_Value ("SuspenseBalancing_Acct", Integer.valueOf(SuspenseBalancing_Acct)); -} -/** Get Suspense Balancing Acct. -@return Suspense Balancing Acct */ -public int getSuspenseBalancing_Acct() -{ -Integer ii = (Integer)get_Value("SuspenseBalancing_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SuspenseBalancing_Acct */ -public static final String COLUMNNAME_SuspenseBalancing_Acct = "SuspenseBalancing_Acct"; -/** Set Suspense Error Acct. -@param SuspenseError_Acct Suspense Error Acct */ -public void setSuspenseError_Acct (int SuspenseError_Acct) -{ -set_Value ("SuspenseError_Acct", Integer.valueOf(SuspenseError_Acct)); -} -/** Get Suspense Error Acct. -@return Suspense Error Acct */ -public int getSuspenseError_Acct() -{ -Integer ii = (Integer)get_Value("SuspenseError_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SuspenseError_Acct */ -public static final String COLUMNNAME_SuspenseError_Acct = "SuspenseError_Acct"; -/** Set Use Currency Balancing. -@param UseCurrencyBalancing Use Currency Balancing */ -public void setUseCurrencyBalancing (boolean UseCurrencyBalancing) -{ -set_Value ("UseCurrencyBalancing", Boolean.valueOf(UseCurrencyBalancing)); -} -/** Get Use Currency Balancing. -@return Use Currency Balancing */ -public boolean isUseCurrencyBalancing() -{ -Object oo = get_Value("UseCurrencyBalancing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name UseCurrencyBalancing */ -public static final String COLUMNNAME_UseCurrencyBalancing = "UseCurrencyBalancing"; -/** Set Use Suspense Balancing. -@param UseSuspenseBalancing Use Suspense Balancing */ -public void setUseSuspenseBalancing (boolean UseSuspenseBalancing) -{ -set_Value ("UseSuspenseBalancing", Boolean.valueOf(UseSuspenseBalancing)); -} -/** Get Use Suspense Balancing. -@return Use Suspense Balancing */ -public boolean isUseSuspenseBalancing() -{ -Object oo = get_Value("UseSuspenseBalancing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name UseSuspenseBalancing */ -public static final String COLUMNNAME_UseSuspenseBalancing = "UseSuspenseBalancing"; -/** Set Use Suspense Error. -@param UseSuspenseError Use Suspense Error */ -public void setUseSuspenseError (boolean UseSuspenseError) -{ -set_Value ("UseSuspenseError", Boolean.valueOf(UseSuspenseError)); -} -/** Get Use Suspense Error. -@return Use Suspense Error */ -public boolean isUseSuspenseError() -{ -Object oo = get_Value("UseSuspenseError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name UseSuspenseError */ -public static final String COLUMNNAME_UseSuspenseError = "UseSuspenseError"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctSchema_GL (Properties ctx, int C_AcctSchema_GL_ID, String trxName) + { + super (ctx, C_AcctSchema_GL_ID, trxName); + /** if (C_AcctSchema_GL_ID == 0) { setC_AcctSchema_ID (0); + setCommitmentOffset_Acct (0); + setIncomeSummary_Acct (0); + setIntercompanyDueFrom_Acct (0); + setIntercompanyDueTo_Acct (0); + setPPVOffset_Acct (0); + setRetainedEarning_Acct (0); + setUseCurrencyBalancing (false); + setUseSuspenseBalancing (false); + setUseSuspenseError (false); +} */ + } + + /** Load Constructor */ + public X_C_AcctSchema_GL (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AcctSchema_GL[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); + } + + /** Set Commitment Offset. + @param CommitmentOffset_Acct + Budgetary Commitment Offset Account + */ + public void setCommitmentOffset_Acct (int CommitmentOffset_Acct) + { + set_Value (COLUMNNAME_CommitmentOffset_Acct, Integer.valueOf(CommitmentOffset_Acct)); + } + + /** Get Commitment Offset. + @return Budgetary Commitment Offset Account + */ + public int getCommitmentOffset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CommitmentOffset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Currency Balancing Acct. + @param CurrencyBalancing_Acct + Account used when a currency is out of balance + */ + public void setCurrencyBalancing_Acct (int CurrencyBalancing_Acct) + { + set_Value (COLUMNNAME_CurrencyBalancing_Acct, Integer.valueOf(CurrencyBalancing_Acct)); + } + + /** Get Currency Balancing Acct. + @return Account used when a currency is out of balance + */ + public int getCurrencyBalancing_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrencyBalancing_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Income Summary Acct. + @param IncomeSummary_Acct + Income Summary Account + */ + public void setIncomeSummary_Acct (int IncomeSummary_Acct) + { + set_Value (COLUMNNAME_IncomeSummary_Acct, Integer.valueOf(IncomeSummary_Acct)); + } + + /** Get Income Summary Acct. + @return Income Summary Account + */ + public int getIncomeSummary_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IncomeSummary_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Intercompany Due From Acct. + @param IntercompanyDueFrom_Acct + Intercompany Due From / Receivables Account + */ + public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct) + { + set_Value (COLUMNNAME_IntercompanyDueFrom_Acct, Integer.valueOf(IntercompanyDueFrom_Acct)); + } + + /** Get Intercompany Due From Acct. + @return Intercompany Due From / Receivables Account + */ + public int getIntercompanyDueFrom_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IntercompanyDueFrom_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Intercompany Due To Acct. + @param IntercompanyDueTo_Acct + Intercompany Due To / Payable Account + */ + public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct) + { + set_Value (COLUMNNAME_IntercompanyDueTo_Acct, Integer.valueOf(IntercompanyDueTo_Acct)); + } + + /** Get Intercompany Due To Acct. + @return Intercompany Due To / Payable Account + */ + public int getIntercompanyDueTo_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IntercompanyDueTo_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set PPV Offset. + @param PPVOffset_Acct + Purchase Price Variance Offset Account + */ + public void setPPVOffset_Acct (int PPVOffset_Acct) + { + set_Value (COLUMNNAME_PPVOffset_Acct, Integer.valueOf(PPVOffset_Acct)); + } + + /** Get PPV Offset. + @return Purchase Price Variance Offset Account + */ + public int getPPVOffset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PPVOffset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Retained Earning Acct. + @param RetainedEarning_Acct Retained Earning Acct */ + public void setRetainedEarning_Acct (int RetainedEarning_Acct) + { + set_Value (COLUMNNAME_RetainedEarning_Acct, Integer.valueOf(RetainedEarning_Acct)); + } + + /** Get Retained Earning Acct. +@return Retained Earning Acct */ + public int getRetainedEarning_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RetainedEarning_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Suspense Balancing Acct. + @param SuspenseBalancing_Acct Suspense Balancing Acct */ + public void setSuspenseBalancing_Acct (int SuspenseBalancing_Acct) + { + set_Value (COLUMNNAME_SuspenseBalancing_Acct, Integer.valueOf(SuspenseBalancing_Acct)); + } + + /** Get Suspense Balancing Acct. +@return Suspense Balancing Acct */ + public int getSuspenseBalancing_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SuspenseBalancing_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Suspense Error Acct. + @param SuspenseError_Acct Suspense Error Acct */ + public void setSuspenseError_Acct (int SuspenseError_Acct) + { + set_Value (COLUMNNAME_SuspenseError_Acct, Integer.valueOf(SuspenseError_Acct)); + } + + /** Get Suspense Error Acct. +@return Suspense Error Acct */ + public int getSuspenseError_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SuspenseError_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Use Currency Balancing. + @param UseCurrencyBalancing Use Currency Balancing */ + public void setUseCurrencyBalancing (boolean UseCurrencyBalancing) + { + set_Value (COLUMNNAME_UseCurrencyBalancing, Boolean.valueOf(UseCurrencyBalancing)); + } + + /** Get Use Currency Balancing. +@return Use Currency Balancing */ + public boolean isUseCurrencyBalancing () + { + Object oo = get_Value(COLUMNNAME_UseCurrencyBalancing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Suspense Balancing. + @param UseSuspenseBalancing Use Suspense Balancing */ + public void setUseSuspenseBalancing (boolean UseSuspenseBalancing) + { + set_Value (COLUMNNAME_UseSuspenseBalancing, Boolean.valueOf(UseSuspenseBalancing)); + } + + /** Get Use Suspense Balancing. +@return Use Suspense Balancing */ + public boolean isUseSuspenseBalancing () + { + Object oo = get_Value(COLUMNNAME_UseSuspenseBalancing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Suspense Error. + @param UseSuspenseError Use Suspense Error */ + public void setUseSuspenseError (boolean UseSuspenseError) + { + set_Value (COLUMNNAME_UseSuspenseError, Boolean.valueOf(UseSuspenseError)); + } + + /** Get Use Suspense Error. +@return Use Suspense Error */ + public boolean isUseSuspenseError () + { + Object oo = get_Value(COLUMNNAME_UseSuspenseError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Activity.java b/base/src/org/compiere/model/X_C_Activity.java index 36d2949221..d8347898fc 100644 --- a/base/src/org/compiere/model/X_C_Activity.java +++ b/base/src/org/compiere/model/X_C_Activity.java @@ -1,212 +1,222 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Activity - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Activity extends PO + +/** Generated Model for C_Activity + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Activity extends PO implements I_C_Activity, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Activity_ID id -@param trxName transaction -*/ -public X_C_Activity (Properties ctx, int C_Activity_ID, String trxName) -{ -super (ctx, C_Activity_ID, trxName); -/** if (C_Activity_ID == 0) -{ -setC_Activity_ID (0); -setIsSummary (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Activity (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Activity */ -public static final String Table_Name="C_Activity"; - -/** AD_Table_ID=316 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Activity[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID < 1) throw new IllegalArgumentException ("C_Activity_ID is mandatory."); -set_ValueNoCheck ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Activity (Properties ctx, int C_Activity_ID, String trxName) + { + super (ctx, C_Activity_ID, trxName); + /** if (C_Activity_ID == 0) { setC_Activity_ID (0); + setIsSummary (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_Activity (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Activity[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + throw new IllegalArgumentException ("C_Activity_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_AllocationHdr.java b/base/src/org/compiere/model/X_C_AllocationHdr.java index 5eb487a53a..8ef04f68ad 100644 --- a/base/src/org/compiere/model/X_C_AllocationHdr.java +++ b/base/src/org/compiere/model/X_C_AllocationHdr.java @@ -1,427 +1,451 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AllocationHdr - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AllocationHdr extends PO + +/** Generated Model for C_AllocationHdr + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AllocationHdr extends PO implements I_C_AllocationHdr, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AllocationHdr_ID id -@param trxName transaction -*/ -public X_C_AllocationHdr (Properties ctx, int C_AllocationHdr_ID, String trxName) -{ -super (ctx, C_AllocationHdr_ID, trxName); -/** if (C_AllocationHdr_ID == 0) -{ -setApprovalAmt (Env.ZERO); -setC_AllocationHdr_ID (0); -setC_Currency_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setDateTrx (new Timestamp(System.currentTimeMillis())); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsApproved (false); -setIsManual (false); -setPosted (false); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AllocationHdr (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AllocationHdr */ -public static final String Table_Name="C_AllocationHdr"; - -/** AD_Table_ID=735 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AllocationHdr[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Approval Amount. -@param ApprovalAmt Document Approval Amount */ -public void setApprovalAmt (BigDecimal ApprovalAmt) -{ -if (ApprovalAmt == null) throw new IllegalArgumentException ("ApprovalAmt is mandatory."); -set_Value ("ApprovalAmt", ApprovalAmt); -} -/** Get Approval Amount. -@return Document Approval Amount */ -public BigDecimal getApprovalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ApprovalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ApprovalAmt */ -public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; -/** Set Allocation. -@param C_AllocationHdr_ID Payment allocation */ -public void setC_AllocationHdr_ID (int C_AllocationHdr_ID) -{ -if (C_AllocationHdr_ID < 1) throw new IllegalArgumentException ("C_AllocationHdr_ID is mandatory."); -set_ValueNoCheck ("C_AllocationHdr_ID", Integer.valueOf(C_AllocationHdr_ID)); -} -/** Get Allocation. -@return Payment allocation */ -public int getC_AllocationHdr_ID() -{ -Integer ii = (Integer)get_Value("C_AllocationHdr_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AllocationHdr_ID */ -public static final String COLUMNNAME_C_AllocationHdr_ID = "C_AllocationHdr_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_Value ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AllocationHdr (Properties ctx, int C_AllocationHdr_ID, String trxName) + { + super (ctx, C_AllocationHdr_ID, trxName); + /** if (C_AllocationHdr_ID == 0) { setApprovalAmt (Env.ZERO); + setC_AllocationHdr_ID (0); + setC_Currency_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setDateTrx (new Timestamp(System.currentTimeMillis())); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setIsManual (false); + setPosted (false); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_AllocationHdr (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AllocationHdr[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + if (ApprovalAmt == null) + throw new IllegalArgumentException ("ApprovalAmt is mandatory."); + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Allocation. + @param C_AllocationHdr_ID + Payment allocation + */ + public void setC_AllocationHdr_ID (int C_AllocationHdr_ID) + { + if (C_AllocationHdr_ID < 1) + throw new IllegalArgumentException ("C_AllocationHdr_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, Integer.valueOf(C_AllocationHdr_ID)); + } + + /** Get Allocation. + @return Payment allocation + */ + public int getC_AllocationHdr_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AllocationHdr_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_AllocationLine.java b/base/src/org/compiere/model/X_C_AllocationLine.java index f441e2410f..7a2a76df2d 100644 --- a/base/src/org/compiere/model/X_C_AllocationLine.java +++ b/base/src/org/compiere/model/X_C_AllocationLine.java @@ -1,323 +1,382 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_AllocationLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_AllocationLine extends PO + +/** Generated Model for C_AllocationLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_AllocationLine extends PO implements I_C_AllocationLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_AllocationLine_ID id -@param trxName transaction -*/ -public X_C_AllocationLine (Properties ctx, int C_AllocationLine_ID, String trxName) -{ -super (ctx, C_AllocationLine_ID, trxName); -/** if (C_AllocationLine_ID == 0) -{ -setAmount (Env.ZERO); -setC_AllocationHdr_ID (0); -setC_AllocationLine_ID (0); -setDiscountAmt (Env.ZERO); -setWriteOffAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_AllocationLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_AllocationLine */ -public static final String Table_Name="C_AllocationLine"; - -/** AD_Table_ID=390 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_AllocationLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amount Amount in a defined currency */ -public void setAmount (BigDecimal Amount) -{ -if (Amount == null) throw new IllegalArgumentException ("Amount is mandatory."); -set_ValueNoCheck ("Amount", Amount); -} -/** Get Amount. -@return Amount in a defined currency */ -public BigDecimal getAmount() -{ -BigDecimal bd = (BigDecimal)get_Value("Amount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amount */ -public static final String COLUMNNAME_Amount = "Amount"; -/** Set Allocation. -@param C_AllocationHdr_ID Payment allocation */ -public void setC_AllocationHdr_ID (int C_AllocationHdr_ID) -{ -if (C_AllocationHdr_ID < 1) throw new IllegalArgumentException ("C_AllocationHdr_ID is mandatory."); -set_ValueNoCheck ("C_AllocationHdr_ID", Integer.valueOf(C_AllocationHdr_ID)); -} -/** Get Allocation. -@return Payment allocation */ -public int getC_AllocationHdr_ID() -{ -Integer ii = (Integer)get_Value("C_AllocationHdr_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AllocationHdr_ID */ -public static final String COLUMNNAME_C_AllocationHdr_ID = "C_AllocationHdr_ID"; -/** Set Allocation Line. -@param C_AllocationLine_ID Allocation Line */ -public void setC_AllocationLine_ID (int C_AllocationLine_ID) -{ -if (C_AllocationLine_ID < 1) throw new IllegalArgumentException ("C_AllocationLine_ID is mandatory."); -set_ValueNoCheck ("C_AllocationLine_ID", Integer.valueOf(C_AllocationLine_ID)); -} -/** Get Allocation Line. -@return Allocation Line */ -public int getC_AllocationLine_ID() -{ -Integer ii = (Integer)get_Value("C_AllocationLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AllocationLine_ID */ -public static final String COLUMNNAME_C_AllocationLine_ID = "C_AllocationLine_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_ValueNoCheck ("C_BPartner_ID", null); - else -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Cash Journal Line. -@param C_CashLine_ID Cash Journal Line */ -public void setC_CashLine_ID (int C_CashLine_ID) -{ -if (C_CashLine_ID <= 0) set_ValueNoCheck ("C_CashLine_ID", null); - else -set_ValueNoCheck ("C_CashLine_ID", Integer.valueOf(C_CashLine_ID)); -} -/** Get Cash Journal Line. -@return Cash Journal Line */ -public int getC_CashLine_ID() -{ -Integer ii = (Integer)get_Value("C_CashLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashLine_ID */ -public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_ValueNoCheck ("C_Payment_ID", null); - else -set_ValueNoCheck ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -set_ValueNoCheck ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -if (DiscountAmt == null) throw new IllegalArgumentException ("DiscountAmt is mandatory."); -set_ValueNoCheck ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_ValueNoCheck ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Over/Under Payment. -@param OverUnderAmt Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public void setOverUnderAmt (BigDecimal OverUnderAmt) -{ -set_Value ("OverUnderAmt", OverUnderAmt); -} -/** Get Over/Under Payment. -@return Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public BigDecimal getOverUnderAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OverUnderAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OverUnderAmt */ -public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; -/** Set Write-off Amount. -@param WriteOffAmt Amount to write-off */ -public void setWriteOffAmt (BigDecimal WriteOffAmt) -{ -if (WriteOffAmt == null) throw new IllegalArgumentException ("WriteOffAmt is mandatory."); -set_ValueNoCheck ("WriteOffAmt", WriteOffAmt); -} -/** Get Write-off Amount. -@return Amount to write-off */ -public BigDecimal getWriteOffAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("WriteOffAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name WriteOffAmt */ -public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AllocationLine (Properties ctx, int C_AllocationLine_ID, String trxName) + { + super (ctx, C_AllocationLine_ID, trxName); + /** if (C_AllocationLine_ID == 0) { setAmount (Env.ZERO); + setC_AllocationHdr_ID (0); + setC_AllocationLine_ID (0); + setDiscountAmt (Env.ZERO); + setWriteOffAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_AllocationLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_AllocationLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amount + Amount in a defined currency + */ + public void setAmount (BigDecimal Amount) + { + if (Amount == null) + throw new IllegalArgumentException ("Amount is mandatory."); + set_ValueNoCheck (COLUMNNAME_Amount, Amount); + } + + /** Get Amount. + @return Amount in a defined currency + */ + public BigDecimal getAmount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AllocationHdr getI_C_AllocationHdr() throws Exception + { + 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 e; + } + return result; + } + + /** Set Allocation. + @param C_AllocationHdr_ID + Payment allocation + */ + public void setC_AllocationHdr_ID (int C_AllocationHdr_ID) + { + if (C_AllocationHdr_ID < 1) + throw new IllegalArgumentException ("C_AllocationHdr_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AllocationHdr_ID, Integer.valueOf(C_AllocationHdr_ID)); + } + + /** Get Allocation. + @return Payment allocation + */ + public int getC_AllocationHdr_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AllocationHdr_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Allocation Line. + @param C_AllocationLine_ID + Allocation Line + */ + public void setC_AllocationLine_ID (int C_AllocationLine_ID) + { + if (C_AllocationLine_ID < 1) + throw new IllegalArgumentException ("C_AllocationLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AllocationLine_ID, Integer.valueOf(C_AllocationLine_ID)); + } + + /** Get Allocation Line. + @return Allocation Line + */ + public int getC_AllocationLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AllocationLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + if (DiscountAmt == null) + throw new IllegalArgumentException ("DiscountAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_ValueNoCheck (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Over/Under Payment. + @param OverUnderAmt + Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt) + { + set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + if (WriteOffAmt == null) + throw new IllegalArgumentException ("WriteOffAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 72a75db780..497f141934 100644 --- a/base/src/org/compiere/model/X_C_BP_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BP_BankAccount.java @@ -1,625 +1,679 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_BankAccount - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_BankAccount extends PO + +/** Generated Model for C_BP_BankAccount + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_BankAccount extends PO implements I_C_BP_BankAccount, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_BankAccount_ID id -@param trxName transaction -*/ -public X_C_BP_BankAccount (Properties ctx, int C_BP_BankAccount_ID, String trxName) -{ -super (ctx, C_BP_BankAccount_ID, trxName); -/** if (C_BP_BankAccount_ID == 0) -{ -setA_Name (null); -setC_BP_BankAccount_ID (0); -setC_BPartner_ID (0); -setIsACH (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_BankAccount (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_BankAccount */ -public static final String Table_Name="C_BP_BankAccount"; - -/** AD_Table_ID=298 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_BankAccount[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Account City. -@param A_City City or the Credit Card or Account Holder */ -public void setA_City (String A_City) -{ -if (A_City != null && A_City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_City = A_City.substring(0,59); -} -set_Value ("A_City", A_City); -} -/** Get Account City. -@return City or the Credit Card or Account Holder */ -public String getA_City() -{ -return (String)get_Value("A_City"); -} -/** Column name A_City */ -public static final String COLUMNNAME_A_City = "A_City"; -/** Set Account Country. -@param A_Country Country */ -public void setA_Country (String A_Country) -{ -if (A_Country != null && A_Country.length() > 40) -{ -log.warning("Length > 40 - truncated"); -A_Country = A_Country.substring(0,39); -} -set_Value ("A_Country", A_Country); -} -/** Get Account Country. -@return Country */ -public String getA_Country() -{ -return (String)get_Value("A_Country"); -} -/** Column name A_Country */ -public static final String COLUMNNAME_A_Country = "A_Country"; -/** Set Account EMail. -@param A_EMail Email Address */ -public void setA_EMail (String A_EMail) -{ -if (A_EMail != null && A_EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_EMail = A_EMail.substring(0,59); -} -set_Value ("A_EMail", A_EMail); -} -/** Get Account EMail. -@return Email Address */ -public String getA_EMail() -{ -return (String)get_Value("A_EMail"); -} -/** Column name A_EMail */ -public static final String COLUMNNAME_A_EMail = "A_EMail"; -/** Set Driver License. -@param A_Ident_DL Payment Identification - Driver License */ -public void setA_Ident_DL (String A_Ident_DL) -{ -if (A_Ident_DL != null && A_Ident_DL.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Ident_DL = A_Ident_DL.substring(0,19); -} -set_Value ("A_Ident_DL", A_Ident_DL); -} -/** Get Driver License. -@return Payment Identification - Driver License */ -public String getA_Ident_DL() -{ -return (String)get_Value("A_Ident_DL"); -} -/** Column name A_Ident_DL */ -public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; -/** Set Social Security No. -@param A_Ident_SSN Payment Identification - Social Security No */ -public void setA_Ident_SSN (String A_Ident_SSN) -{ -if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Ident_SSN = A_Ident_SSN.substring(0,19); -} -set_Value ("A_Ident_SSN", A_Ident_SSN); -} -/** Get Social Security No. -@return Payment Identification - Social Security No */ -public String getA_Ident_SSN() -{ -return (String)get_Value("A_Ident_SSN"); -} -/** Column name A_Ident_SSN */ -public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; -/** Set Account Name. -@param A_Name Name on Credit Card or Account holder */ -public void setA_Name (String A_Name) -{ -if (A_Name == null) throw new IllegalArgumentException ("A_Name is mandatory."); -if (A_Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_Name = A_Name.substring(0,59); -} -set_Value ("A_Name", A_Name); -} -/** Get Account Name. -@return Name on Credit Card or Account holder */ -public String getA_Name() -{ -return (String)get_Value("A_Name"); -} -/** Column name A_Name */ -public static final String COLUMNNAME_A_Name = "A_Name"; -/** Set Account State. -@param A_State State of the Credit Card or Account holder */ -public void setA_State (String A_State) -{ -if (A_State != null && A_State.length() > 40) -{ -log.warning("Length > 40 - truncated"); -A_State = A_State.substring(0,39); -} -set_Value ("A_State", A_State); -} -/** Get Account State. -@return State of the Credit Card or Account holder */ -public String getA_State() -{ -return (String)get_Value("A_State"); -} -/** Column name A_State */ -public static final String COLUMNNAME_A_State = "A_State"; -/** Set Account Street. -@param A_Street Street address of the Credit Card or Account holder */ -public void setA_Street (String A_Street) -{ -if (A_Street != null && A_Street.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_Street = A_Street.substring(0,59); -} -set_Value ("A_Street", A_Street); -} -/** Get Account Street. -@return Street address of the Credit Card or Account holder */ -public String getA_Street() -{ -return (String)get_Value("A_Street"); -} -/** Column name A_Street */ -public static final String COLUMNNAME_A_Street = "A_Street"; -/** Set Account Zip/Postal. -@param A_Zip Zip Code of the Credit Card or Account Holder */ -public void setA_Zip (String A_Zip) -{ -if (A_Zip != null && A_Zip.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Zip = A_Zip.substring(0,19); -} -set_Value ("A_Zip", A_Zip); -} -/** Get Account Zip/Postal. -@return Zip Code of the Credit Card or Account Holder */ -public String getA_Zip() -{ -return (String)get_Value("A_Zip"); -} -/** Column name A_Zip */ -public static final String COLUMNNAME_A_Zip = "A_Zip"; -/** Set Account No. -@param AccountNo Account Number */ -public void setAccountNo (String AccountNo) -{ -if (AccountNo != null && AccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -AccountNo = AccountNo.substring(0,19); -} -set_Value ("AccountNo", AccountNo); -} -/** Get Account No. -@return Account Number */ -public String getAccountNo() -{ -return (String)get_Value("AccountNo"); -} -/** Column name AccountNo */ -public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_BankAccount (Properties ctx, int C_BP_BankAccount_ID, String trxName) + { + super (ctx, C_BP_BankAccount_ID, trxName); + /** if (C_BP_BankAccount_ID == 0) { setA_Name (null); + setC_BP_BankAccount_ID (0); + setC_BPartner_ID (0); + setIsACH (false); +} */ + } + + /** Load Constructor */ + public X_C_BP_BankAccount (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_BankAccount[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account City. + @param A_City + City or the Credit Card or Account Holder + */ + public void setA_City (String A_City) + { + if (A_City != null && A_City.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_City = A_City.substring(0, 59); + } + set_Value (COLUMNNAME_A_City, A_City); + } + + /** Get Account City. + @return City or the Credit Card or Account Holder + */ + public String getA_City () + { + return (String)get_Value(COLUMNNAME_A_City); + } + + /** Set Account Country. + @param A_Country + Country + */ + public void setA_Country (String A_Country) + { + if (A_Country != null && A_Country.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_Country = A_Country.substring(0, 39); + } + set_Value (COLUMNNAME_A_Country, A_Country); + } + + /** Get Account Country. + @return Country + */ + public String getA_Country () + { + return (String)get_Value(COLUMNNAME_A_Country); + } + + /** Set Account EMail. + @param A_EMail + Email Address + */ + public void setA_EMail (String A_EMail) + { + if (A_EMail != null && A_EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_EMail = A_EMail.substring(0, 59); + } + set_Value (COLUMNNAME_A_EMail, A_EMail); + } + + /** Get Account EMail. + @return Email Address + */ + public String getA_EMail () + { + return (String)get_Value(COLUMNNAME_A_EMail); + } + + /** Set Driver License. + @param A_Ident_DL + Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL) + { + if (A_Ident_DL != null && A_Ident_DL.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_DL = A_Ident_DL.substring(0, 19); + } + set_Value (COLUMNNAME_A_Ident_DL, A_Ident_DL); + } + + /** Get Driver License. + @return Payment Identification - Driver License + */ + public String getA_Ident_DL () + { + return (String)get_Value(COLUMNNAME_A_Ident_DL); + } + + /** Set Social Security No. + @param A_Ident_SSN + Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN) + { + if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_SSN = A_Ident_SSN.substring(0, 19); + } + set_Value (COLUMNNAME_A_Ident_SSN, A_Ident_SSN); + } + + /** Get Social Security No. + @return Payment Identification - Social Security No + */ + public String getA_Ident_SSN () + { + return (String)get_Value(COLUMNNAME_A_Ident_SSN); + } + + /** Set Account Name. + @param A_Name + Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name) + { + if (A_Name == null) + throw new IllegalArgumentException ("A_Name is mandatory."); + if (A_Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Name = A_Name.substring(0, 59); + } + set_Value (COLUMNNAME_A_Name, A_Name); + } + + /** Get Account Name. + @return Name on Credit Card or Account holder + */ + public String getA_Name () + { + return (String)get_Value(COLUMNNAME_A_Name); + } + + /** Set Account State. + @param A_State + State of the Credit Card or Account holder + */ + public void setA_State (String A_State) + { + if (A_State != null && A_State.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_State = A_State.substring(0, 39); + } + set_Value (COLUMNNAME_A_State, A_State); + } + + /** Get Account State. + @return State of the Credit Card or Account holder + */ + public String getA_State () + { + return (String)get_Value(COLUMNNAME_A_State); + } + + /** Set Account Street. + @param A_Street + Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street) + { + if (A_Street != null && A_Street.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Street = A_Street.substring(0, 59); + } + set_Value (COLUMNNAME_A_Street, A_Street); + } + + /** Get Account Street. + @return Street address of the Credit Card or Account holder + */ + public String getA_Street () + { + return (String)get_Value(COLUMNNAME_A_Street); + } + + /** Set Account Zip/Postal. + @param A_Zip + Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip) + { + if (A_Zip != null && A_Zip.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Zip = A_Zip.substring(0, 19); + } + set_Value (COLUMNNAME_A_Zip, A_Zip); + } + + /** Get Account Zip/Postal. + @return Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip () + { + return (String)get_Value(COLUMNNAME_A_Zip); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + if (AccountNo != null && AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } /** BPBankAcctUse AD_Reference_ID=393 */ -public static final int BPBANKACCTUSE_AD_Reference_ID=393; -/** Both = B */ -public static final String BPBANKACCTUSE_Both = "B"; -/** Direct Debit = D */ -public static final String BPBANKACCTUSE_DirectDebit = "D"; -/** None = N */ -public static final String BPBANKACCTUSE_None = "N"; -/** Direct Deposit = T */ +public static final int BPBANKACCTUSE_AD_Reference_ID=393;/** Both = B */ +public static final String BPBANKACCTUSE_Both = "B";/** Direct Debit = D */ +public static final String BPBANKACCTUSE_DirectDebit = "D";/** None = N */ +public static final String BPBANKACCTUSE_None = "N";/** Direct Deposit = T */ public static final String BPBANKACCTUSE_DirectDeposit = "T"; -/** Set Account Usage. -@param BPBankAcctUse Business Partner Bank Account usage */ -public void setBPBankAcctUse (String BPBankAcctUse) -{ -if (BPBankAcctUse == null || BPBankAcctUse.equals("B") || BPBankAcctUse.equals("D") || BPBankAcctUse.equals("N") || BPBankAcctUse.equals("T")); - else throw new IllegalArgumentException ("BPBankAcctUse Invalid value - " + BPBankAcctUse + " - Reference_ID=393 - B - D - N - T"); -if (BPBankAcctUse != null && BPBankAcctUse.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BPBankAcctUse = BPBankAcctUse.substring(0,0); -} -set_Value ("BPBankAcctUse", BPBankAcctUse); -} -/** Get Account Usage. -@return Business Partner Bank Account usage */ -public String getBPBankAcctUse() -{ -return (String)get_Value("BPBankAcctUse"); -} -/** Column name BPBankAcctUse */ -public static final String COLUMNNAME_BPBankAcctUse = "BPBankAcctUse"; + /** Set Account Usage. + @param BPBankAcctUse + Business Partner Bank Account usage + */ + public void setBPBankAcctUse (String BPBankAcctUse) + { +if (BPBankAcctUse == null || BPBankAcctUse.equals("B") || BPBankAcctUse.equals("D") || BPBankAcctUse.equals("N") || BPBankAcctUse.equals("T")); else throw new IllegalArgumentException ("BPBankAcctUse Invalid value - " + BPBankAcctUse + " - Reference_ID=393 - B - D - N - T"); if (BPBankAcctUse != null && BPBankAcctUse.length() > 1) + { + log.warning("Length > 1 - truncated"); + BPBankAcctUse = BPBankAcctUse.substring(0, 0); + } + set_Value (COLUMNNAME_BPBankAcctUse, BPBankAcctUse); + } + + /** Get Account Usage. + @return Business Partner Bank Account usage + */ + public String getBPBankAcctUse () + { + return (String)get_Value(COLUMNNAME_BPBankAcctUse); + } /** BankAccountType AD_Reference_ID=216 */ -public static final int BANKACCOUNTTYPE_AD_Reference_ID=216; -/** Checking = C */ -public static final String BANKACCOUNTTYPE_Checking = "C"; -/** Savings = S */ +public static final int BANKACCOUNTTYPE_AD_Reference_ID=216;/** Checking = C */ +public static final String BANKACCOUNTTYPE_Checking = "C";/** Savings = S */ public static final String BANKACCOUNTTYPE_Savings = "S"; -/** Set Bank Account Type. -@param BankAccountType Bank Account Type */ -public void setBankAccountType (String BankAccountType) -{ -if (BankAccountType == null || BankAccountType.equals("C") || BankAccountType.equals("S")); - else throw new IllegalArgumentException ("BankAccountType Invalid value - " + BankAccountType + " - Reference_ID=216 - C - S"); -if (BankAccountType != null && BankAccountType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BankAccountType = BankAccountType.substring(0,0); -} -set_Value ("BankAccountType", BankAccountType); -} -/** Get Bank Account Type. -@return Bank Account Type */ -public String getBankAccountType() -{ -return (String)get_Value("BankAccountType"); -} -/** Column name BankAccountType */ -public static final String COLUMNNAME_BankAccountType = "BankAccountType"; -/** Set Partner Bank Account. -@param C_BP_BankAccount_ID Bank Account of the Business Partner */ -public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) -{ -if (C_BP_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BP_BankAccount_ID is mandatory."); -set_ValueNoCheck ("C_BP_BankAccount_ID", Integer.valueOf(C_BP_BankAccount_ID)); -} -/** Get Partner Bank Account. -@return Bank Account of the Business Partner */ -public int getC_BP_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BP_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_BankAccount_ID */ -public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Bank. -@param C_Bank_ID Bank */ -public void setC_Bank_ID (int C_Bank_ID) -{ -if (C_Bank_ID <= 0) set_Value ("C_Bank_ID", null); - else -set_Value ("C_Bank_ID", Integer.valueOf(C_Bank_ID)); -} -/** Get Bank. -@return Bank */ -public int getC_Bank_ID() -{ -Integer ii = (Integer)get_Value("C_Bank_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Bank_ID())); -} -/** Column name C_Bank_ID */ -public static final String COLUMNNAME_C_Bank_ID = "C_Bank_ID"; -/** Set Exp. Month. -@param CreditCardExpMM Expiry Month */ -public void setCreditCardExpMM (int CreditCardExpMM) -{ -set_Value ("CreditCardExpMM", Integer.valueOf(CreditCardExpMM)); -} -/** Get Exp. Month. -@return Expiry Month */ -public int getCreditCardExpMM() -{ -Integer ii = (Integer)get_Value("CreditCardExpMM"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CreditCardExpMM */ -public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; -/** Set Exp. Year. -@param CreditCardExpYY Expiry Year */ -public void setCreditCardExpYY (int CreditCardExpYY) -{ -set_Value ("CreditCardExpYY", Integer.valueOf(CreditCardExpYY)); -} -/** Get Exp. Year. -@return Expiry Year */ -public int getCreditCardExpYY() -{ -Integer ii = (Integer)get_Value("CreditCardExpYY"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CreditCardExpYY */ -public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; -/** Set Number. -@param CreditCardNumber Credit Card Number */ -public void setCreditCardNumber (String CreditCardNumber) -{ -if (CreditCardNumber != null && CreditCardNumber.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CreditCardNumber = CreditCardNumber.substring(0,19); -} -set_Value ("CreditCardNumber", CreditCardNumber); -} -/** Get Number. -@return Credit Card Number */ -public String getCreditCardNumber() -{ -return (String)get_Value("CreditCardNumber"); -} -/** Column name CreditCardNumber */ -public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + /** Set Bank Account Type. + @param BankAccountType + Bank Account Type + */ + public void setBankAccountType (String BankAccountType) + { +if (BankAccountType == null || BankAccountType.equals("C") || BankAccountType.equals("S")); else throw new IllegalArgumentException ("BankAccountType Invalid value - " + BankAccountType + " - Reference_ID=216 - C - S"); if (BankAccountType != null && BankAccountType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BankAccountType = BankAccountType.substring(0, 0); + } + set_Value (COLUMNNAME_BankAccountType, BankAccountType); + } + + /** Get Bank Account Type. + @return Bank Account Type + */ + public String getBankAccountType () + { + return (String)get_Value(COLUMNNAME_BankAccountType); + } + + /** Set Partner Bank Account. + @param C_BP_BankAccount_ID + Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) + { + if (C_BP_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BP_BankAccount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); + } + + /** Get Partner Bank Account. + @return Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank. + @param C_Bank_ID + Bank + */ + public void setC_Bank_ID (int C_Bank_ID) + { + if (C_Bank_ID <= 0) set_Value (COLUMNNAME_C_Bank_ID, null); + else + set_Value (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); + } + + /** Get Bank. + @return Bank + */ + public int getC_Bank_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Bank_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Bank_ID())); + } + + /** Set Exp. Month. + @param CreditCardExpMM + Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM) + { + set_Value (COLUMNNAME_CreditCardExpMM, Integer.valueOf(CreditCardExpMM)); + } + + /** Get Exp. Month. + @return Expiry Month + */ + public int getCreditCardExpMM () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpMM); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exp. Year. + @param CreditCardExpYY + Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY) + { + set_Value (COLUMNNAME_CreditCardExpYY, Integer.valueOf(CreditCardExpYY)); + } + + /** Get Exp. Year. + @return Expiry Year + */ + public int getCreditCardExpYY () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpYY); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number. + @param CreditCardNumber + Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber) + { + if (CreditCardNumber != null && CreditCardNumber.length() > 20) + { + log.warning("Length > 20 - truncated"); + CreditCardNumber = CreditCardNumber.substring(0, 19); + } + set_Value (COLUMNNAME_CreditCardNumber, CreditCardNumber); + } + + /** Get Number. + @return Credit Card Number + */ + public String getCreditCardNumber () + { + return (String)get_Value(COLUMNNAME_CreditCardNumber); + } /** CreditCardType AD_Reference_ID=149 */ -public static final int CREDITCARDTYPE_AD_Reference_ID=149; -/** Amex = A */ -public static final String CREDITCARDTYPE_Amex = "A"; -/** ATM = C */ -public static final String CREDITCARDTYPE_ATM = "C"; -/** Diners = D */ -public static final String CREDITCARDTYPE_Diners = "D"; -/** MasterCard = M */ -public static final String CREDITCARDTYPE_MasterCard = "M"; -/** Discover = N */ -public static final String CREDITCARDTYPE_Discover = "N"; -/** Purchase Card = P */ -public static final String CREDITCARDTYPE_PurchaseCard = "P"; -/** Visa = V */ +public static final int CREDITCARDTYPE_AD_Reference_ID=149;/** Amex = A */ +public static final String CREDITCARDTYPE_Amex = "A";/** ATM = C */ +public static final String CREDITCARDTYPE_ATM = "C";/** Diners = D */ +public static final String CREDITCARDTYPE_Diners = "D";/** MasterCard = M */ +public static final String CREDITCARDTYPE_MasterCard = "M";/** Discover = N */ +public static final String CREDITCARDTYPE_Discover = "N";/** Purchase Card = P */ +public static final String CREDITCARDTYPE_PurchaseCard = "P";/** Visa = V */ public static final String CREDITCARDTYPE_Visa = "V"; -/** Set Credit Card. -@param CreditCardType Credit Card (Visa, MC, AmEx) */ -public void setCreditCardType (String CreditCardType) -{ -if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("M") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("V")); - else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V"); -if (CreditCardType != null && CreditCardType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreditCardType = CreditCardType.substring(0,0); -} -set_Value ("CreditCardType", CreditCardType); -} -/** Get Credit Card. -@return Credit Card (Visa, MC, AmEx) */ -public String getCreditCardType() -{ -return (String)get_Value("CreditCardType"); -} -/** Column name CreditCardType */ -public static final String COLUMNNAME_CreditCardType = "CreditCardType"; -/** Set Verification Code. -@param CreditCardVV Credit Card Verification code on credit card */ -public void setCreditCardVV (String CreditCardVV) -{ -if (CreditCardVV != null && CreditCardVV.length() > 4) -{ -log.warning("Length > 4 - truncated"); -CreditCardVV = CreditCardVV.substring(0,3); -} -set_Value ("CreditCardVV", CreditCardVV); -} -/** Get Verification Code. -@return Credit Card Verification code on credit card */ -public String getCreditCardVV() -{ -return (String)get_Value("CreditCardVV"); -} -/** Column name CreditCardVV */ -public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; -/** Set ACH. -@param IsACH Automatic Clearing House */ -public void setIsACH (boolean IsACH) -{ -set_Value ("IsACH", Boolean.valueOf(IsACH)); -} -/** Get ACH. -@return Automatic Clearing House */ -public boolean isACH() -{ -Object oo = get_Value("IsACH"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsACH */ -public static final String COLUMNNAME_IsACH = "IsACH"; + /** Set Credit Card. + @param CreditCardType + Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType) + { +if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("M") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("V")); else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V"); if (CreditCardType != null && CreditCardType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreditCardType = CreditCardType.substring(0, 0); + } + set_Value (COLUMNNAME_CreditCardType, CreditCardType); + } + + /** Get Credit Card. + @return Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType () + { + return (String)get_Value(COLUMNNAME_CreditCardType); + } + + /** Set Verification Code. + @param CreditCardVV + Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV) + { + if (CreditCardVV != null && CreditCardVV.length() > 4) + { + log.warning("Length > 4 - truncated"); + CreditCardVV = CreditCardVV.substring(0, 3); + } + set_Value (COLUMNNAME_CreditCardVV, CreditCardVV); + } + + /** Get Verification Code. + @return Credit Card Verification code on credit card + */ + public String getCreditCardVV () + { + return (String)get_Value(COLUMNNAME_CreditCardVV); + } + + /** Set ACH. + @param IsACH + Automatic Clearing House + */ + public void setIsACH (boolean IsACH) + { + set_Value (COLUMNNAME_IsACH, Boolean.valueOf(IsACH)); + } + + /** Get ACH. + @return Automatic Clearing House + */ + public boolean isACH () + { + Object oo = get_Value(COLUMNNAME_IsACH); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** R_AvsAddr AD_Reference_ID=213 */ -public static final int R_AVSADDR_AD_Reference_ID=213; -/** No Match = N */ -public static final String R_AVSADDR_NoMatch = "N"; -/** Unavailable = X */ -public static final String R_AVSADDR_Unavailable = "X"; -/** Match = Y */ +public static final int R_AVSADDR_AD_Reference_ID=213;/** No Match = N */ +public static final String R_AVSADDR_NoMatch = "N";/** Unavailable = X */ +public static final String R_AVSADDR_Unavailable = "X";/** Match = Y */ public static final String R_AVSADDR_Match = "Y"; -/** Set Address verified. -@param R_AvsAddr This address has been verified */ -public void setR_AvsAddr (String R_AvsAddr) -{ -if (R_AvsAddr == null || R_AvsAddr.equals("N") || R_AvsAddr.equals("X") || R_AvsAddr.equals("Y")); - else throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - N - X - Y"); -if (R_AvsAddr != null && R_AvsAddr.length() > 1) -{ -log.warning("Length > 1 - truncated"); -R_AvsAddr = R_AvsAddr.substring(0,0); -} -set_ValueNoCheck ("R_AvsAddr", R_AvsAddr); -} -/** Get Address verified. -@return This address has been verified */ -public String getR_AvsAddr() -{ -return (String)get_Value("R_AvsAddr"); -} -/** Column name R_AvsAddr */ -public static final String COLUMNNAME_R_AvsAddr = "R_AvsAddr"; + /** Set Address verified. + @param R_AvsAddr + This address has been verified + */ + public void setR_AvsAddr (String R_AvsAddr) + { +if (R_AvsAddr == null || R_AvsAddr.equals("N") || R_AvsAddr.equals("X") || R_AvsAddr.equals("Y")); else throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - N - X - Y"); if (R_AvsAddr != null && R_AvsAddr.length() > 1) + { + log.warning("Length > 1 - truncated"); + R_AvsAddr = R_AvsAddr.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_R_AvsAddr, R_AvsAddr); + } + + /** Get Address verified. + @return This address has been verified + */ + public String getR_AvsAddr () + { + return (String)get_Value(COLUMNNAME_R_AvsAddr); + } /** R_AvsZip AD_Reference_ID=213 */ -public static final int R_AVSZIP_AD_Reference_ID=213; -/** No Match = N */ -public static final String R_AVSZIP_NoMatch = "N"; -/** Unavailable = X */ -public static final String R_AVSZIP_Unavailable = "X"; -/** Match = Y */ +public static final int R_AVSZIP_AD_Reference_ID=213;/** No Match = N */ +public static final String R_AVSZIP_NoMatch = "N";/** Unavailable = X */ +public static final String R_AVSZIP_Unavailable = "X";/** Match = Y */ public static final String R_AVSZIP_Match = "Y"; -/** Set Zip verified. -@param R_AvsZip The Zip Code has been verified */ -public void setR_AvsZip (String R_AvsZip) -{ -if (R_AvsZip == null || R_AvsZip.equals("N") || R_AvsZip.equals("X") || R_AvsZip.equals("Y")); - else throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - N - X - Y"); -if (R_AvsZip != null && R_AvsZip.length() > 1) -{ -log.warning("Length > 1 - truncated"); -R_AvsZip = R_AvsZip.substring(0,0); -} -set_ValueNoCheck ("R_AvsZip", R_AvsZip); -} -/** Get Zip verified. -@return The Zip Code has been verified */ -public String getR_AvsZip() -{ -return (String)get_Value("R_AvsZip"); -} -/** Column name R_AvsZip */ -public static final String COLUMNNAME_R_AvsZip = "R_AvsZip"; -/** Set Routing No. -@param RoutingNo Bank Routing Number */ -public void setRoutingNo (String RoutingNo) -{ -if (RoutingNo != null && RoutingNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RoutingNo = RoutingNo.substring(0,19); -} -set_Value ("RoutingNo", RoutingNo); -} -/** Get Routing No. -@return Bank Routing Number */ -public String getRoutingNo() -{ -return (String)get_Value("RoutingNo"); -} -/** Column name RoutingNo */ -public static final String COLUMNNAME_RoutingNo = "RoutingNo"; -} + /** Set Zip verified. + @param R_AvsZip + The Zip Code has been verified + */ + public void setR_AvsZip (String R_AvsZip) + { +if (R_AvsZip == null || R_AvsZip.equals("N") || R_AvsZip.equals("X") || R_AvsZip.equals("Y")); else throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - N - X - Y"); if (R_AvsZip != null && R_AvsZip.length() > 1) + { + log.warning("Length > 1 - truncated"); + R_AvsZip = R_AvsZip.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_R_AvsZip, R_AvsZip); + } + + /** Get Zip verified. + @return The Zip Code has been verified + */ + public String getR_AvsZip () + { + return (String)get_Value(COLUMNNAME_R_AvsZip); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + if (RoutingNo != null && RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 19); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } +} \ No newline at end of file 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 ac040d0b67..add5dc17e6 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 @@ -1,174 +1,213 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Customer_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Customer_Acct extends PO + +/** Generated Model for C_BP_Customer_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Customer_Acct extends PO implements I_C_BP_Customer_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Customer_Acct_ID id -@param trxName transaction -*/ -public X_C_BP_Customer_Acct (Properties ctx, int C_BP_Customer_Acct_ID, String trxName) -{ -super (ctx, C_BP_Customer_Acct_ID, trxName); -/** if (C_BP_Customer_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_BPartner_ID (0); -setC_Prepayment_Acct (0); -setC_Receivable_Acct (0); -setC_Receivable_Services_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Customer_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Customer_Acct */ -public static final String Table_Name="C_BP_Customer_Acct"; - -/** AD_Table_ID=183 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Customer_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Customer Prepayment. -@param C_Prepayment_Acct Account for customer prepayments */ -public void setC_Prepayment_Acct (int C_Prepayment_Acct) -{ -set_Value ("C_Prepayment_Acct", Integer.valueOf(C_Prepayment_Acct)); -} -/** Get Customer Prepayment. -@return Account for customer prepayments */ -public int getC_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("C_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Prepayment_Acct */ -public static final String COLUMNNAME_C_Prepayment_Acct = "C_Prepayment_Acct"; -/** Set Customer Receivables. -@param C_Receivable_Acct Account for Customer Receivables */ -public void setC_Receivable_Acct (int C_Receivable_Acct) -{ -set_Value ("C_Receivable_Acct", Integer.valueOf(C_Receivable_Acct)); -} -/** Get Customer Receivables. -@return Account for Customer Receivables */ -public int getC_Receivable_Acct() -{ -Integer ii = (Integer)get_Value("C_Receivable_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Receivable_Acct */ -public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; -/** Set Receivable Services. -@param C_Receivable_Services_Acct Customer Accounts Receivables Services Account */ -public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct) -{ -set_Value ("C_Receivable_Services_Acct", Integer.valueOf(C_Receivable_Services_Acct)); -} -/** Get Receivable Services. -@return Customer Accounts Receivables Services Account */ -public int getC_Receivable_Services_Acct() -{ -Integer ii = (Integer)get_Value("C_Receivable_Services_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Receivable_Services_Acct */ -public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Customer_Acct (Properties ctx, int C_BP_Customer_Acct_ID, String trxName) + { + super (ctx, C_BP_Customer_Acct_ID, trxName); + /** if (C_BP_Customer_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_BPartner_ID (0); + setC_Prepayment_Acct (0); + setC_Receivable_Acct (0); + setC_Receivable_Services_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_BP_Customer_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Customer_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getI_C_BPartner() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer Prepayment. + @param C_Prepayment_Acct + Account for customer prepayments + */ + public void setC_Prepayment_Acct (int C_Prepayment_Acct) + { + set_Value (COLUMNNAME_C_Prepayment_Acct, Integer.valueOf(C_Prepayment_Acct)); + } + + /** Get Customer Prepayment. + @return Account for customer prepayments + */ + public int getC_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer Receivables. + @param C_Receivable_Acct + Account for Customer Receivables + */ + public void setC_Receivable_Acct (int C_Receivable_Acct) + { + set_Value (COLUMNNAME_C_Receivable_Acct, Integer.valueOf(C_Receivable_Acct)); + } + + /** Get Customer Receivables. + @return Account for Customer Receivables + */ + public int getC_Receivable_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Receivable Services. + @param C_Receivable_Services_Acct + Customer Accounts Receivables Services Account + */ + public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct) + { + set_Value (COLUMNNAME_C_Receivable_Services_Acct, Integer.valueOf(C_Receivable_Services_Acct)); + } + + /** Get Receivable Services. + @return Customer Accounts Receivables Services Account + */ + public int getC_Receivable_Services_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Services_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 1cb1e58329..c39db0640a 100644 --- a/base/src/org/compiere/model/X_C_BP_EDI.java +++ b/base/src/org/compiere/model/X_C_BP_EDI.java @@ -1,505 +1,566 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_EDI - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_EDI extends PO + +/** Generated Model for C_BP_EDI + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_EDI extends PO implements I_C_BP_EDI, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_EDI_ID id -@param trxName transaction -*/ -public X_C_BP_EDI (Properties ctx, int C_BP_EDI_ID, String trxName) -{ -super (ctx, C_BP_EDI_ID, trxName); -/** if (C_BP_EDI_ID == 0) -{ -setAD_Sequence_ID (0); -setC_BP_EDI_ID (0); -setC_BPartner_ID (0); -setCustomerNo (null); -setEDIType (null); -setEMail_Error_To (null); -setEMail_Info_To (null); -setIsAudited (false); -setIsInfoSent (false); -setM_Warehouse_ID (0); -setName (null); -setReceiveInquiryReply (false); -setReceiveOrderReply (false); -setSendInquiry (false); -setSendOrder (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_EDI (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_EDI */ -public static final String Table_Name="C_BP_EDI"; - -/** AD_Table_ID=366 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_EDI[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_EDI (Properties ctx, int C_BP_EDI_ID, String trxName) + { + super (ctx, C_BP_EDI_ID, trxName); + /** if (C_BP_EDI_ID == 0) { setAD_Sequence_ID (0); + setC_BP_EDI_ID (0); + setC_BPartner_ID (0); + setCustomerNo (null); + setEDIType (null); + setEMail_Error_To (null); + setEMail_Info_To (null); + setIsAudited (false); + setIsInfoSent (false); + setM_Warehouse_ID (0); + setName (null); + setReceiveInquiryReply (false); + setReceiveOrderReply (false); + setSendInquiry (false); + setSendOrder (false); +} */ + } + + /** Load Constructor */ + public X_C_BP_EDI (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_EDI[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Sequence_ID AD_Reference_ID=128 */ public static final int AD_SEQUENCE_ID_AD_Reference_ID=128; -/** Set Sequence. -@param AD_Sequence_ID Document Sequence */ -public void setAD_Sequence_ID (int AD_Sequence_ID) -{ -if (AD_Sequence_ID < 1) throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); -set_Value ("AD_Sequence_ID", Integer.valueOf(AD_Sequence_ID)); -} -/** Get Sequence. -@return Document Sequence */ -public int getAD_Sequence_ID() -{ -Integer ii = (Integer)get_Value("AD_Sequence_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Sequence_ID */ -public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; -/** Set EDI Definition. -@param C_BP_EDI_ID Electronic Data Interchange */ -public void setC_BP_EDI_ID (int C_BP_EDI_ID) -{ -if (C_BP_EDI_ID < 1) throw new IllegalArgumentException ("C_BP_EDI_ID is mandatory."); -set_ValueNoCheck ("C_BP_EDI_ID", Integer.valueOf(C_BP_EDI_ID)); -} -/** Get EDI Definition. -@return Electronic Data Interchange */ -public int getC_BP_EDI_ID() -{ -Integer ii = (Integer)get_Value("C_BP_EDI_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_EDI_ID */ -public static final String COLUMNNAME_C_BP_EDI_ID = "C_BP_EDI_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Customer No. -@param CustomerNo EDI Identification Number */ -public void setCustomerNo (String CustomerNo) -{ -if (CustomerNo == null) throw new IllegalArgumentException ("CustomerNo is mandatory."); -if (CustomerNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CustomerNo = CustomerNo.substring(0,19); -} -set_Value ("CustomerNo", CustomerNo); -} -/** Get Customer No. -@return EDI Identification Number */ -public String getCustomerNo() -{ -return (String)get_Value("CustomerNo"); -} -/** Column name CustomerNo */ -public static final String COLUMNNAME_CustomerNo = "CustomerNo"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Sequence. + @param AD_Sequence_ID + Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID) + { + if (AD_Sequence_ID < 1) + throw new IllegalArgumentException ("AD_Sequence_ID is mandatory."); + set_Value (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + } + + /** Get Sequence. + @return Document Sequence + */ + public int getAD_Sequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Sequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set EDI Definition. + @param C_BP_EDI_ID + Electronic Data Interchange + */ + public void setC_BP_EDI_ID (int C_BP_EDI_ID) + { + if (C_BP_EDI_ID < 1) + throw new IllegalArgumentException ("C_BP_EDI_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_EDI_ID, Integer.valueOf(C_BP_EDI_ID)); + } + + /** Get EDI Definition. + @return Electronic Data Interchange + */ + public int getC_BP_EDI_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_EDI_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer No. + @param CustomerNo + EDI Identification Number + */ + public void setCustomerNo (String CustomerNo) + { + if (CustomerNo == null) + throw new IllegalArgumentException ("CustomerNo is mandatory."); + if (CustomerNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + CustomerNo = CustomerNo.substring(0, 19); + } + set_Value (COLUMNNAME_CustomerNo, CustomerNo); + } + + /** Get Customer No. + @return EDI Identification Number + */ + public String getCustomerNo () + { + return (String)get_Value(COLUMNNAME_CustomerNo); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EDIType AD_Reference_ID=201 */ -public static final int EDITYPE_AD_Reference_ID=201; -/** EDIFACT = E */ -public static final String EDITYPE_EDIFACT = "E"; -/** Email EDI = M */ -public static final String EDITYPE_EmailEDI = "M"; -/** ASC X12 = X */ +public static final int EDITYPE_AD_Reference_ID=201;/** EDIFACT = E */ +public static final String EDITYPE_EDIFACT = "E";/** Email EDI = M */ +public static final String EDITYPE_EmailEDI = "M";/** ASC X12 = X */ public static final String EDITYPE_ASCX12 = "X"; -/** Set EDI Type. -@param EDIType EDI Type */ -public void setEDIType (String EDIType) -{ -if (EDIType == null) throw new IllegalArgumentException ("EDIType is mandatory"); -if (EDIType.equals("E") || EDIType.equals("M") || EDIType.equals("X")); - else throw new IllegalArgumentException ("EDIType Invalid value - " + EDIType + " - Reference_ID=201 - E - M - X"); -if (EDIType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -EDIType = EDIType.substring(0,0); -} -set_Value ("EDIType", EDIType); -} -/** Get EDI Type. -@return EDI Type */ -public String getEDIType() -{ -return (String)get_Value("EDIType"); -} -/** Column name EDIType */ -public static final String COLUMNNAME_EDIType = "EDIType"; -/** Set Error EMail. -@param EMail_Error_To Email address to send error messages to */ -public void setEMail_Error_To (String EMail_Error_To) -{ -if (EMail_Error_To == null) throw new IllegalArgumentException ("EMail_Error_To is mandatory."); -if (EMail_Error_To.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail_Error_To = EMail_Error_To.substring(0,59); -} -set_Value ("EMail_Error_To", EMail_Error_To); -} -/** Get Error EMail. -@return Email address to send error messages to */ -public String getEMail_Error_To() -{ -return (String)get_Value("EMail_Error_To"); -} -/** Column name EMail_Error_To */ -public static final String COLUMNNAME_EMail_Error_To = "EMail_Error_To"; -/** Set From EMail. -@param EMail_From Full EMail address used to send requests - e.g. edi@organization.com */ -public void setEMail_From (String EMail_From) -{ -if (EMail_From != null && EMail_From.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail_From = EMail_From.substring(0,59); -} -set_Value ("EMail_From", EMail_From); -} -/** Get From EMail. -@return Full EMail address used to send requests - e.g. edi@organization.com */ -public String getEMail_From() -{ -return (String)get_Value("EMail_From"); -} -/** Column name EMail_From */ -public static final String COLUMNNAME_EMail_From = "EMail_From"; -/** Set From EMail Password. -@param EMail_From_Pwd Password of the sending EMail address */ -public void setEMail_From_Pwd (String EMail_From_Pwd) -{ -if (EMail_From_Pwd != null && EMail_From_Pwd.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EMail_From_Pwd = EMail_From_Pwd.substring(0,19); -} -set_Value ("EMail_From_Pwd", EMail_From_Pwd); -} -/** Get From EMail Password. -@return Password of the sending EMail address */ -public String getEMail_From_Pwd() -{ -return (String)get_Value("EMail_From_Pwd"); -} -/** Column name EMail_From_Pwd */ -public static final String COLUMNNAME_EMail_From_Pwd = "EMail_From_Pwd"; -/** Set From EMail User ID. -@param EMail_From_Uid User ID of the sending EMail address (on default SMTP Host) - e.g. edi */ -public void setEMail_From_Uid (String EMail_From_Uid) -{ -if (EMail_From_Uid != null && EMail_From_Uid.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EMail_From_Uid = EMail_From_Uid.substring(0,19); -} -set_Value ("EMail_From_Uid", EMail_From_Uid); -} -/** Get From EMail User ID. -@return User ID of the sending EMail address (on default SMTP Host) - e.g. edi */ -public String getEMail_From_Uid() -{ -return (String)get_Value("EMail_From_Uid"); -} -/** Column name EMail_From_Uid */ -public static final String COLUMNNAME_EMail_From_Uid = "EMail_From_Uid"; -/** Set Info EMail. -@param EMail_Info_To EMail address to send informational messages and copies */ -public void setEMail_Info_To (String EMail_Info_To) -{ -if (EMail_Info_To == null) throw new IllegalArgumentException ("EMail_Info_To is mandatory."); -if (EMail_Info_To.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail_Info_To = EMail_Info_To.substring(0,59); -} -set_Value ("EMail_Info_To", EMail_Info_To); -} -/** Get Info EMail. -@return EMail address to send informational messages and copies */ -public String getEMail_Info_To() -{ -return (String)get_Value("EMail_Info_To"); -} -/** Column name EMail_Info_To */ -public static final String COLUMNNAME_EMail_Info_To = "EMail_Info_To"; -/** Set To EMail. -@param EMail_To EMail address to send requests to - e.g. edi@manufacturer.com */ -public void setEMail_To (String EMail_To) -{ -if (EMail_To != null && EMail_To.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail_To = EMail_To.substring(0,59); -} -set_Value ("EMail_To", EMail_To); -} -/** Get To EMail. -@return EMail address to send requests to - e.g. edi@manufacturer.com */ -public String getEMail_To() -{ -return (String)get_Value("EMail_To"); -} -/** Column name EMail_To */ -public static final String COLUMNNAME_EMail_To = "EMail_To"; -/** Set Activate Audit. -@param IsAudited Activate Audit Trail of what numbers are generated */ -public void setIsAudited (boolean IsAudited) -{ -set_Value ("IsAudited", Boolean.valueOf(IsAudited)); -} -/** Get Activate Audit. -@return Activate Audit Trail of what numbers are generated */ -public boolean isAudited() -{ -Object oo = get_Value("IsAudited"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAudited */ -public static final String COLUMNNAME_IsAudited = "IsAudited"; -/** Set Send Info. -@param IsInfoSent Send informational messages and copies */ -public void setIsInfoSent (boolean IsInfoSent) -{ -set_Value ("IsInfoSent", Boolean.valueOf(IsInfoSent)); -} -/** Get Send Info. -@return Send informational messages and copies */ -public boolean isInfoSent() -{ -Object oo = get_Value("IsInfoSent"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInfoSent */ -public static final String COLUMNNAME_IsInfoSent = "IsInfoSent"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Received Inquiry Reply. -@param ReceiveInquiryReply Received Inquiry Reply */ -public void setReceiveInquiryReply (boolean ReceiveInquiryReply) -{ -set_Value ("ReceiveInquiryReply", Boolean.valueOf(ReceiveInquiryReply)); -} -/** Get Received Inquiry Reply. -@return Received Inquiry Reply */ -public boolean isReceiveInquiryReply() -{ -Object oo = get_Value("ReceiveInquiryReply"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ReceiveInquiryReply */ -public static final String COLUMNNAME_ReceiveInquiryReply = "ReceiveInquiryReply"; -/** Set Receive Order Reply. -@param ReceiveOrderReply Receive Order Reply */ -public void setReceiveOrderReply (boolean ReceiveOrderReply) -{ -set_Value ("ReceiveOrderReply", Boolean.valueOf(ReceiveOrderReply)); -} -/** Get Receive Order Reply. -@return Receive Order Reply */ -public boolean isReceiveOrderReply() -{ -Object oo = get_Value("ReceiveOrderReply"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ReceiveOrderReply */ -public static final String COLUMNNAME_ReceiveOrderReply = "ReceiveOrderReply"; -/** Set Send Inquiry. -@param SendInquiry Quantity Availability Inquiry */ -public void setSendInquiry (boolean SendInquiry) -{ -set_Value ("SendInquiry", Boolean.valueOf(SendInquiry)); -} -/** Get Send Inquiry. -@return Quantity Availability Inquiry */ -public boolean isSendInquiry() -{ -Object oo = get_Value("SendInquiry"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendInquiry */ -public static final String COLUMNNAME_SendInquiry = "SendInquiry"; -/** Set Send Order. -@param SendOrder Send Order */ -public void setSendOrder (boolean SendOrder) -{ -set_Value ("SendOrder", Boolean.valueOf(SendOrder)); -} -/** Get Send Order. -@return Send Order */ -public boolean isSendOrder() -{ -Object oo = get_Value("SendOrder"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendOrder */ -public static final String COLUMNNAME_SendOrder = "SendOrder"; -} + /** Set EDI Type. + @param EDIType EDI Type */ + public void setEDIType (String EDIType) + { +if (EDIType == null) throw new IllegalArgumentException ("EDIType is mandatory");if (EDIType.equals("E") || EDIType.equals("M") || EDIType.equals("X")); else throw new IllegalArgumentException ("EDIType Invalid value - " + EDIType + " - Reference_ID=201 - E - M - X"); if (EDIType.length() > 1) + { + log.warning("Length > 1 - truncated"); + EDIType = EDIType.substring(0, 0); + } + set_Value (COLUMNNAME_EDIType, EDIType); + } + + /** Get EDI Type. +@return EDI Type */ + public String getEDIType () + { + return (String)get_Value(COLUMNNAME_EDIType); + } + + /** Set Error EMail. + @param EMail_Error_To + Email address to send error messages to + */ + public void setEMail_Error_To (String EMail_Error_To) + { + if (EMail_Error_To == null) + throw new IllegalArgumentException ("EMail_Error_To is mandatory."); + if (EMail_Error_To.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail_Error_To = EMail_Error_To.substring(0, 59); + } + set_Value (COLUMNNAME_EMail_Error_To, EMail_Error_To); + } + + /** Get Error EMail. + @return Email address to send error messages to + */ + public String getEMail_Error_To () + { + return (String)get_Value(COLUMNNAME_EMail_Error_To); + } + + /** Set From EMail. + @param EMail_From + Full EMail address used to send requests - e.g. edi@organization.com + */ + public void setEMail_From (String EMail_From) + { + if (EMail_From != null && EMail_From.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail_From = EMail_From.substring(0, 59); + } + set_Value (COLUMNNAME_EMail_From, EMail_From); + } + + /** Get From EMail. + @return Full EMail address used to send requests - e.g. edi@organization.com + */ + public String getEMail_From () + { + return (String)get_Value(COLUMNNAME_EMail_From); + } + + /** Set From EMail Password. + @param EMail_From_Pwd + Password of the sending EMail address + */ + public void setEMail_From_Pwd (String EMail_From_Pwd) + { + if (EMail_From_Pwd != null && EMail_From_Pwd.length() > 20) + { + log.warning("Length > 20 - truncated"); + EMail_From_Pwd = EMail_From_Pwd.substring(0, 19); + } + set_Value (COLUMNNAME_EMail_From_Pwd, EMail_From_Pwd); + } + + /** Get From EMail Password. + @return Password of the sending EMail address + */ + public String getEMail_From_Pwd () + { + return (String)get_Value(COLUMNNAME_EMail_From_Pwd); + } + + /** Set From EMail User ID. + @param EMail_From_Uid + User ID of the sending EMail address (on default SMTP Host) - e.g. edi + */ + public void setEMail_From_Uid (String EMail_From_Uid) + { + if (EMail_From_Uid != null && EMail_From_Uid.length() > 20) + { + log.warning("Length > 20 - truncated"); + EMail_From_Uid = EMail_From_Uid.substring(0, 19); + } + set_Value (COLUMNNAME_EMail_From_Uid, EMail_From_Uid); + } + + /** Get From EMail User ID. + @return User ID of the sending EMail address (on default SMTP Host) - e.g. edi + */ + public String getEMail_From_Uid () + { + return (String)get_Value(COLUMNNAME_EMail_From_Uid); + } + + /** Set Info EMail. + @param EMail_Info_To + EMail address to send informational messages and copies + */ + public void setEMail_Info_To (String EMail_Info_To) + { + if (EMail_Info_To == null) + throw new IllegalArgumentException ("EMail_Info_To is mandatory."); + if (EMail_Info_To.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail_Info_To = EMail_Info_To.substring(0, 59); + } + set_Value (COLUMNNAME_EMail_Info_To, EMail_Info_To); + } + + /** Get Info EMail. + @return EMail address to send informational messages and copies + */ + public String getEMail_Info_To () + { + return (String)get_Value(COLUMNNAME_EMail_Info_To); + } + + /** Set To EMail. + @param EMail_To + EMail address to send requests to - e.g. edi@manufacturer.com + */ + public void setEMail_To (String EMail_To) + { + if (EMail_To != null && EMail_To.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail_To = EMail_To.substring(0, 59); + } + set_Value (COLUMNNAME_EMail_To, EMail_To); + } + + /** Get To EMail. + @return EMail address to send requests to - e.g. edi@manufacturer.com + */ + public String getEMail_To () + { + return (String)get_Value(COLUMNNAME_EMail_To); + } + + /** Set Activate Audit. + @param IsAudited + Activate Audit Trail of what numbers are generated + */ + public void setIsAudited (boolean IsAudited) + { + set_Value (COLUMNNAME_IsAudited, Boolean.valueOf(IsAudited)); + } + + /** Get Activate Audit. + @return Activate Audit Trail of what numbers are generated + */ + public boolean isAudited () + { + Object oo = get_Value(COLUMNNAME_IsAudited); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Send Info. + @param IsInfoSent + Send informational messages and copies + */ + public void setIsInfoSent (boolean IsInfoSent) + { + set_Value (COLUMNNAME_IsInfoSent, Boolean.valueOf(IsInfoSent)); + } + + /** Get Send Info. + @return Send informational messages and copies + */ + public boolean isInfoSent () + { + Object oo = get_Value(COLUMNNAME_IsInfoSent); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Received Inquiry Reply. + @param ReceiveInquiryReply Received Inquiry Reply */ + public void setReceiveInquiryReply (boolean ReceiveInquiryReply) + { + set_Value (COLUMNNAME_ReceiveInquiryReply, Boolean.valueOf(ReceiveInquiryReply)); + } + + /** Get Received Inquiry Reply. +@return Received Inquiry Reply */ + public boolean isReceiveInquiryReply () + { + Object oo = get_Value(COLUMNNAME_ReceiveInquiryReply); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Receive Order Reply. + @param ReceiveOrderReply Receive Order Reply */ + public void setReceiveOrderReply (boolean ReceiveOrderReply) + { + set_Value (COLUMNNAME_ReceiveOrderReply, Boolean.valueOf(ReceiveOrderReply)); + } + + /** Get Receive Order Reply. +@return Receive Order Reply */ + public boolean isReceiveOrderReply () + { + Object oo = get_Value(COLUMNNAME_ReceiveOrderReply); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Send Inquiry. + @param SendInquiry + Quantity Availability Inquiry + */ + public void setSendInquiry (boolean SendInquiry) + { + set_Value (COLUMNNAME_SendInquiry, Boolean.valueOf(SendInquiry)); + } + + /** Get Send Inquiry. + @return Quantity Availability Inquiry + */ + public boolean isSendInquiry () + { + Object oo = get_Value(COLUMNNAME_SendInquiry); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Send Order. + @param SendOrder Send Order */ + public void setSendOrder (boolean SendOrder) + { + set_Value (COLUMNNAME_SendOrder, Boolean.valueOf(SendOrder)); + } + + /** Get Send Order. +@return Send Order */ + public boolean isSendOrder () + { + Object oo = get_Value(COLUMNNAME_SendOrder); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file 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 babd001634..092e2456f7 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 @@ -1,157 +1,192 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Employee_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Employee_Acct extends PO + +/** Generated Model for C_BP_Employee_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Employee_Acct extends PO implements I_C_BP_Employee_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Employee_Acct_ID id -@param trxName transaction -*/ -public X_C_BP_Employee_Acct (Properties ctx, int C_BP_Employee_Acct_ID, String trxName) -{ -super (ctx, C_BP_Employee_Acct_ID, trxName); -/** if (C_BP_Employee_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_BPartner_ID (0); -setE_Expense_Acct (0); -setE_Prepayment_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Employee_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Employee_Acct */ -public static final String Table_Name="C_BP_Employee_Acct"; - -/** AD_Table_ID=184 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Employee_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Employee Expense. -@param E_Expense_Acct Account for Employee Expenses */ -public void setE_Expense_Acct (int E_Expense_Acct) -{ -set_Value ("E_Expense_Acct", Integer.valueOf(E_Expense_Acct)); -} -/** Get Employee Expense. -@return Account for Employee Expenses */ -public int getE_Expense_Acct() -{ -Integer ii = (Integer)get_Value("E_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name E_Expense_Acct */ -public static final String COLUMNNAME_E_Expense_Acct = "E_Expense_Acct"; -/** Set Employee Prepayment. -@param E_Prepayment_Acct Account for Employee Expense Prepayments */ -public void setE_Prepayment_Acct (int E_Prepayment_Acct) -{ -set_Value ("E_Prepayment_Acct", Integer.valueOf(E_Prepayment_Acct)); -} -/** Get Employee Prepayment. -@return Account for Employee Expense Prepayments */ -public int getE_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("E_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name E_Prepayment_Acct */ -public static final String COLUMNNAME_E_Prepayment_Acct = "E_Prepayment_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Employee_Acct (Properties ctx, int C_BP_Employee_Acct_ID, String trxName) + { + super (ctx, C_BP_Employee_Acct_ID, trxName); + /** if (C_BP_Employee_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_BPartner_ID (0); + setE_Expense_Acct (0); + setE_Prepayment_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_BP_Employee_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Employee_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getI_C_BPartner() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Employee Expense. + @param E_Expense_Acct + Account for Employee Expenses + */ + public void setE_Expense_Acct (int E_Expense_Acct) + { + set_Value (COLUMNNAME_E_Expense_Acct, Integer.valueOf(E_Expense_Acct)); + } + + /** Get Employee Expense. + @return Account for Employee Expenses + */ + public int getE_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_E_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Employee Prepayment. + @param E_Prepayment_Acct + Account for Employee Expense Prepayments + */ + public void setE_Prepayment_Acct (int E_Prepayment_Acct) + { + set_Value (COLUMNNAME_E_Prepayment_Acct, Integer.valueOf(E_Prepayment_Acct)); + } + + /** Get Employee Prepayment. + @return Account for Employee Expense Prepayments + */ + public int getE_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_E_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 03b1fccce1..3f8e158773 100644 --- a/base/src/org/compiere/model/X_C_BP_Group.java +++ b/base/src/org/compiere/model/X_C_BP_Group.java @@ -1,393 +1,479 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Group - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Group extends PO + +/** Generated Model for C_BP_Group + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Group extends PO implements I_C_BP_Group, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Group_ID id -@param trxName transaction -*/ -public X_C_BP_Group (Properties ctx, int C_BP_Group_ID, String trxName) -{ -super (ctx, C_BP_Group_ID, trxName); -/** if (C_BP_Group_ID == 0) -{ -setC_BP_Group_ID (0); -setIsConfidentialInfo (false); // N -setIsDefault (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Group (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Group */ -public static final String Table_Name="C_BP_Group"; - -/** AD_Table_ID=394 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Group[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); - else -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID < 1) throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); -set_ValueNoCheck ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Dunning. -@param C_Dunning_ID Dunning Rules for overdue invoices */ -public void setC_Dunning_ID (int C_Dunning_ID) -{ -if (C_Dunning_ID <= 0) set_Value ("C_Dunning_ID", null); - else -set_Value ("C_Dunning_ID", Integer.valueOf(C_Dunning_ID)); -} -/** Get Dunning. -@return Dunning Rules for overdue invoices */ -public int getC_Dunning_ID() -{ -Integer ii = (Integer)get_Value("C_Dunning_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Dunning_ID */ -public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; -/** Set Credit Watch %. -@param CreditWatchPercent Credit Watch - Percent of Credit Limit when OK switches to Watch */ -public void setCreditWatchPercent (BigDecimal CreditWatchPercent) -{ -set_Value ("CreditWatchPercent", CreditWatchPercent); -} -/** Get Credit Watch %. -@return Credit Watch - Percent of Credit Limit when OK switches to Watch */ -public BigDecimal getCreditWatchPercent() -{ -BigDecimal bd = (BigDecimal)get_Value("CreditWatchPercent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CreditWatchPercent */ -public static final String COLUMNNAME_CreditWatchPercent = "CreditWatchPercent"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Confidential Info. -@param IsConfidentialInfo Can enter confidential information */ -public void setIsConfidentialInfo (boolean IsConfidentialInfo) -{ -set_Value ("IsConfidentialInfo", Boolean.valueOf(IsConfidentialInfo)); -} -/** Get Confidential Info. -@return Can enter confidential information */ -public boolean isConfidentialInfo() -{ -Object oo = get_Value("IsConfidentialInfo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsConfidentialInfo */ -public static final String COLUMNNAME_IsConfidentialInfo = "IsConfidentialInfo"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Group (Properties ctx, int C_BP_Group_ID, String trxName) + { + super (ctx, C_BP_Group_ID, trxName); + /** if (C_BP_Group_ID == 0) { setC_BP_Group_ID (0); + setIsConfidentialInfo (false); +// N + setIsDefault (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_BP_Group (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Group[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Dunning getI_C_Dunning() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning. + @param C_Dunning_ID + Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID) + { + if (C_Dunning_ID <= 0) set_Value (COLUMNNAME_C_Dunning_ID, null); + else + set_Value (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + } + + /** Get Dunning. + @return Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Dunning_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Credit Watch %. + @param CreditWatchPercent + Credit Watch - Percent of Credit Limit when OK switches to Watch + */ + public void setCreditWatchPercent (BigDecimal CreditWatchPercent) + { + set_Value (COLUMNNAME_CreditWatchPercent, CreditWatchPercent); + } + + /** Get Credit Watch %. + @return Credit Watch - Percent of Credit Limit when OK switches to Watch + */ + public BigDecimal getCreditWatchPercent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CreditWatchPercent); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Confidential Info. + @param IsConfidentialInfo + Can enter confidential information + */ + public void setIsConfidentialInfo (boolean IsConfidentialInfo) + { + set_Value (COLUMNNAME_IsConfidentialInfo, Boolean.valueOf(IsConfidentialInfo)); + } + + /** Get Confidential Info. + @return Can enter confidential information + */ + public boolean isConfidentialInfo () + { + Object oo = get_Value(COLUMNNAME_IsConfidentialInfo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** M_DiscountSchema_ID AD_Reference_ID=325 */ public static final int M_DISCOUNTSCHEMA_ID_AD_Reference_ID=325; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID <= 0) set_Value ("M_DiscountSchema_ID", null); - else -set_Value ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID <= 0) set_Value ("M_PriceList_ID", null); - else -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID <= 0) set_Value (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID <= 0) set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** PO_DiscountSchema_ID AD_Reference_ID=325 */ public static final int PO_DISCOUNTSCHEMA_ID_AD_Reference_ID=325; -/** Set PO Discount Schema. -@param PO_DiscountSchema_ID Schema to calculate the purchase trade discount percentage */ -public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) -{ -if (PO_DiscountSchema_ID <= 0) set_Value ("PO_DiscountSchema_ID", null); - else -set_Value ("PO_DiscountSchema_ID", Integer.valueOf(PO_DiscountSchema_ID)); -} -/** Get PO Discount Schema. -@return Schema to calculate the purchase trade discount percentage */ -public int getPO_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("PO_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_DiscountSchema_ID */ -public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + /** Set PO Discount Schema. + @param PO_DiscountSchema_ID + Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) + { + if (PO_DiscountSchema_ID <= 0) set_Value (COLUMNNAME_PO_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_PO_DiscountSchema_ID, Integer.valueOf(PO_DiscountSchema_ID)); + } + + /** Get PO Discount Schema. + @return Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PO_PriceList_ID AD_Reference_ID=166 */ public static final int PO_PRICELIST_ID_AD_Reference_ID=166; -/** Set Purchase Pricelist. -@param PO_PriceList_ID Price List used by this Business Partner */ -public void setPO_PriceList_ID (int PO_PriceList_ID) -{ -if (PO_PriceList_ID <= 0) set_Value ("PO_PriceList_ID", null); - else -set_Value ("PO_PriceList_ID", Integer.valueOf(PO_PriceList_ID)); -} -/** Get Purchase Pricelist. -@return Price List used by this Business Partner */ -public int getPO_PriceList_ID() -{ -Integer ii = (Integer)get_Value("PO_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_PriceList_ID */ -public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; -/** Set Price Match Tolerance. -@param PriceMatchTolerance PO-Invoice Match Price Tolerance in percent of the purchase price */ -public void setPriceMatchTolerance (BigDecimal PriceMatchTolerance) -{ -set_Value ("PriceMatchTolerance", PriceMatchTolerance); -} -/** Get Price Match Tolerance. -@return PO-Invoice Match Price Tolerance in percent of the purchase price */ -public BigDecimal getPriceMatchTolerance() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceMatchTolerance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceMatchTolerance */ -public static final String COLUMNNAME_PriceMatchTolerance = "PriceMatchTolerance"; + /** Set Purchase Pricelist. + @param PO_PriceList_ID + Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID) + { + if (PO_PriceList_ID <= 0) set_Value (COLUMNNAME_PO_PriceList_ID, null); + else + set_Value (COLUMNNAME_PO_PriceList_ID, Integer.valueOf(PO_PriceList_ID)); + } + + /** Get Purchase Pricelist. + @return Price List used by this Business Partner + */ + public int getPO_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price Match Tolerance. + @param PriceMatchTolerance + PO-Invoice Match Price Tolerance in percent of the purchase price + */ + public void setPriceMatchTolerance (BigDecimal PriceMatchTolerance) + { + set_Value (COLUMNNAME_PriceMatchTolerance, PriceMatchTolerance); + } + + /** Get Price Match Tolerance. + @return PO-Invoice Match Price Tolerance in percent of the purchase price + */ + public BigDecimal getPriceMatchTolerance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceMatchTolerance); + if (bd == null) + return Env.ZERO; + return bd; + } /** PriorityBase AD_Reference_ID=350 */ -public static final int PRIORITYBASE_AD_Reference_ID=350; -/** Higher = H */ -public static final String PRIORITYBASE_Higher = "H"; -/** Lower = L */ -public static final String PRIORITYBASE_Lower = "L"; -/** Same = S */ +public static final int PRIORITYBASE_AD_Reference_ID=350;/** Higher = H */ +public static final String PRIORITYBASE_Higher = "H";/** Lower = L */ +public static final String PRIORITYBASE_Lower = "L";/** Same = S */ public static final String PRIORITYBASE_Same = "S"; -/** Set Priority Base. -@param PriorityBase Base of Priority */ -public void setPriorityBase (String PriorityBase) -{ -if (PriorityBase == null || PriorityBase.equals("H") || PriorityBase.equals("L") || PriorityBase.equals("S")); - else throw new IllegalArgumentException ("PriorityBase Invalid value - " + PriorityBase + " - Reference_ID=350 - H - L - S"); -if (PriorityBase != null && PriorityBase.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PriorityBase = PriorityBase.substring(0,0); -} -set_Value ("PriorityBase", PriorityBase); -} -/** Get Priority Base. -@return Base of Priority */ -public String getPriorityBase() -{ -return (String)get_Value("PriorityBase"); -} -/** Column name PriorityBase */ -public static final String COLUMNNAME_PriorityBase = "PriorityBase"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Priority Base. + @param PriorityBase + Base of Priority + */ + public void setPriorityBase (String PriorityBase) + { +if (PriorityBase == null || PriorityBase.equals("H") || PriorityBase.equals("L") || PriorityBase.equals("S")); else throw new IllegalArgumentException ("PriorityBase Invalid value - " + PriorityBase + " - Reference_ID=350 - H - L - S"); if (PriorityBase != null && PriorityBase.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityBase = PriorityBase.substring(0, 0); + } + set_Value (COLUMNNAME_PriorityBase, PriorityBase); + } + + /** Get Priority Base. + @return Base of Priority + */ + public String getPriorityBase () + { + return (String)get_Value(COLUMNNAME_PriorityBase); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file 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 75e2cb7a1d..554d934129 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 @@ -1,370 +1,452 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Group_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Group_Acct extends PO + +/** Generated Model for C_BP_Group_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Group_Acct extends PO implements I_C_BP_Group_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Group_Acct_ID id -@param trxName transaction -*/ -public X_C_BP_Group_Acct (Properties ctx, int C_BP_Group_Acct_ID, String trxName) -{ -super (ctx, C_BP_Group_Acct_ID, trxName); -/** if (C_BP_Group_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_BP_Group_ID (0); -setC_Prepayment_Acct (0); -setC_Receivable_Acct (0); -setC_Receivable_Services_Acct (0); -setNotInvoicedReceipts_Acct (0); -setNotInvoicedReceivables_Acct (0); -setNotInvoicedRevenue_Acct (0); -setPayDiscount_Exp_Acct (0); -setPayDiscount_Rev_Acct (0); -setUnEarnedRevenue_Acct (0); -setV_Liability_Acct (0); -setV_Liability_Services_Acct (0); -setV_Prepayment_Acct (0); -setWriteOff_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Group_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Group_Acct */ -public static final String Table_Name="C_BP_Group_Acct"; - -/** AD_Table_ID=395 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Group_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID < 1) throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); -set_ValueNoCheck ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_BP_Group_ID())); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Customer Prepayment. -@param C_Prepayment_Acct Account for customer prepayments */ -public void setC_Prepayment_Acct (int C_Prepayment_Acct) -{ -set_Value ("C_Prepayment_Acct", Integer.valueOf(C_Prepayment_Acct)); -} -/** Get Customer Prepayment. -@return Account for customer prepayments */ -public int getC_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("C_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Prepayment_Acct */ -public static final String COLUMNNAME_C_Prepayment_Acct = "C_Prepayment_Acct"; -/** Set Customer Receivables. -@param C_Receivable_Acct Account for Customer Receivables */ -public void setC_Receivable_Acct (int C_Receivable_Acct) -{ -set_Value ("C_Receivable_Acct", Integer.valueOf(C_Receivable_Acct)); -} -/** Get Customer Receivables. -@return Account for Customer Receivables */ -public int getC_Receivable_Acct() -{ -Integer ii = (Integer)get_Value("C_Receivable_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Receivable_Acct */ -public static final String COLUMNNAME_C_Receivable_Acct = "C_Receivable_Acct"; -/** Set Receivable Services. -@param C_Receivable_Services_Acct Customer Accounts Receivables Services Account */ -public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct) -{ -set_Value ("C_Receivable_Services_Acct", Integer.valueOf(C_Receivable_Services_Acct)); -} -/** Get Receivable Services. -@return Customer Accounts Receivables Services Account */ -public int getC_Receivable_Services_Acct() -{ -Integer ii = (Integer)get_Value("C_Receivable_Services_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Receivable_Services_Acct */ -public static final String COLUMNNAME_C_Receivable_Services_Acct = "C_Receivable_Services_Acct"; -/** Set Not-invoiced Receipts. -@param NotInvoicedReceipts_Acct Account for not-invoiced Material Receipts */ -public void setNotInvoicedReceipts_Acct (int NotInvoicedReceipts_Acct) -{ -set_Value ("NotInvoicedReceipts_Acct", Integer.valueOf(NotInvoicedReceipts_Acct)); -} -/** Get Not-invoiced Receipts. -@return Account for not-invoiced Material Receipts */ -public int getNotInvoicedReceipts_Acct() -{ -Integer ii = (Integer)get_Value("NotInvoicedReceipts_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NotInvoicedReceipts_Acct */ -public static final String COLUMNNAME_NotInvoicedReceipts_Acct = "NotInvoicedReceipts_Acct"; -/** Set Not-invoiced Receivables. -@param NotInvoicedReceivables_Acct Account for not invoiced Receivables */ -public void setNotInvoicedReceivables_Acct (int NotInvoicedReceivables_Acct) -{ -set_Value ("NotInvoicedReceivables_Acct", Integer.valueOf(NotInvoicedReceivables_Acct)); -} -/** Get Not-invoiced Receivables. -@return Account for not invoiced Receivables */ -public int getNotInvoicedReceivables_Acct() -{ -Integer ii = (Integer)get_Value("NotInvoicedReceivables_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NotInvoicedReceivables_Acct */ -public static final String COLUMNNAME_NotInvoicedReceivables_Acct = "NotInvoicedReceivables_Acct"; -/** Set Not-invoiced Revenue. -@param NotInvoicedRevenue_Acct Account for not invoiced Revenue */ -public void setNotInvoicedRevenue_Acct (int NotInvoicedRevenue_Acct) -{ -set_Value ("NotInvoicedRevenue_Acct", Integer.valueOf(NotInvoicedRevenue_Acct)); -} -/** Get Not-invoiced Revenue. -@return Account for not invoiced Revenue */ -public int getNotInvoicedRevenue_Acct() -{ -Integer ii = (Integer)get_Value("NotInvoicedRevenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NotInvoicedRevenue_Acct */ -public static final String COLUMNNAME_NotInvoicedRevenue_Acct = "NotInvoicedRevenue_Acct"; -/** Set Payment Discount Expense. -@param PayDiscount_Exp_Acct Payment Discount Expense Account */ -public void setPayDiscount_Exp_Acct (int PayDiscount_Exp_Acct) -{ -set_Value ("PayDiscount_Exp_Acct", Integer.valueOf(PayDiscount_Exp_Acct)); -} -/** Get Payment Discount Expense. -@return Payment Discount Expense Account */ -public int getPayDiscount_Exp_Acct() -{ -Integer ii = (Integer)get_Value("PayDiscount_Exp_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PayDiscount_Exp_Acct */ -public static final String COLUMNNAME_PayDiscount_Exp_Acct = "PayDiscount_Exp_Acct"; -/** Set Payment Discount Revenue. -@param PayDiscount_Rev_Acct Payment Discount Revenue Account */ -public void setPayDiscount_Rev_Acct (int PayDiscount_Rev_Acct) -{ -set_Value ("PayDiscount_Rev_Acct", Integer.valueOf(PayDiscount_Rev_Acct)); -} -/** Get Payment Discount Revenue. -@return Payment Discount Revenue Account */ -public int getPayDiscount_Rev_Acct() -{ -Integer ii = (Integer)get_Value("PayDiscount_Rev_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PayDiscount_Rev_Acct */ -public static final String COLUMNNAME_PayDiscount_Rev_Acct = "PayDiscount_Rev_Acct"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Unearned Revenue. -@param UnEarnedRevenue_Acct Account for unearned revenue */ -public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) -{ -set_Value ("UnEarnedRevenue_Acct", Integer.valueOf(UnEarnedRevenue_Acct)); -} -/** Get Unearned Revenue. -@return Account for unearned revenue */ -public int getUnEarnedRevenue_Acct() -{ -Integer ii = (Integer)get_Value("UnEarnedRevenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnEarnedRevenue_Acct */ -public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; -/** Set Vendor Liability. -@param V_Liability_Acct Account for Vendor Liability */ -public void setV_Liability_Acct (int V_Liability_Acct) -{ -set_Value ("V_Liability_Acct", Integer.valueOf(V_Liability_Acct)); -} -/** Get Vendor Liability. -@return Account for Vendor Liability */ -public int getV_Liability_Acct() -{ -Integer ii = (Integer)get_Value("V_Liability_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Liability_Acct */ -public static final String COLUMNNAME_V_Liability_Acct = "V_Liability_Acct"; -/** Set Vendor Service Liability. -@param V_Liability_Services_Acct Account for Vender Service Liability */ -public void setV_Liability_Services_Acct (int V_Liability_Services_Acct) -{ -set_Value ("V_Liability_Services_Acct", Integer.valueOf(V_Liability_Services_Acct)); -} -/** Get Vendor Service Liability. -@return Account for Vender Service Liability */ -public int getV_Liability_Services_Acct() -{ -Integer ii = (Integer)get_Value("V_Liability_Services_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Liability_Services_Acct */ -public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; -/** Set Vendor Prepayment. -@param V_Prepayment_Acct Account for Vendor Prepayments */ -public void setV_Prepayment_Acct (int V_Prepayment_Acct) -{ -set_Value ("V_Prepayment_Acct", Integer.valueOf(V_Prepayment_Acct)); -} -/** Get Vendor Prepayment. -@return Account for Vendor Prepayments */ -public int getV_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("V_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Prepayment_Acct */ -public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; -/** Set Write-off. -@param WriteOff_Acct Account for Receivables write-off */ -public void setWriteOff_Acct (int WriteOff_Acct) -{ -set_Value ("WriteOff_Acct", Integer.valueOf(WriteOff_Acct)); -} -/** Get Write-off. -@return Account for Receivables write-off */ -public int getWriteOff_Acct() -{ -Integer ii = (Integer)get_Value("WriteOff_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name WriteOff_Acct */ -public static final String COLUMNNAME_WriteOff_Acct = "WriteOff_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Group_Acct (Properties ctx, int C_BP_Group_Acct_ID, String trxName) + { + super (ctx, C_BP_Group_Acct_ID, trxName); + /** if (C_BP_Group_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_BP_Group_ID (0); + setC_Prepayment_Acct (0); + setC_Receivable_Acct (0); + setC_Receivable_Services_Acct (0); + setNotInvoicedReceipts_Acct (0); + setNotInvoicedReceivables_Acct (0); + setNotInvoicedRevenue_Acct (0); + setPayDiscount_Exp_Acct (0); + setPayDiscount_Rev_Acct (0); + setUnEarnedRevenue_Acct (0); + setV_Liability_Acct (0); + setV_Liability_Services_Acct (0); + setV_Prepayment_Acct (0); + setWriteOff_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_BP_Group_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Group_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_BP_Group_ID())); + } + + /** Set Customer Prepayment. + @param C_Prepayment_Acct + Account for customer prepayments + */ + public void setC_Prepayment_Acct (int C_Prepayment_Acct) + { + set_Value (COLUMNNAME_C_Prepayment_Acct, Integer.valueOf(C_Prepayment_Acct)); + } + + /** Get Customer Prepayment. + @return Account for customer prepayments + */ + public int getC_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer Receivables. + @param C_Receivable_Acct + Account for Customer Receivables + */ + public void setC_Receivable_Acct (int C_Receivable_Acct) + { + set_Value (COLUMNNAME_C_Receivable_Acct, Integer.valueOf(C_Receivable_Acct)); + } + + /** Get Customer Receivables. + @return Account for Customer Receivables + */ + public int getC_Receivable_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Receivable Services. + @param C_Receivable_Services_Acct + Customer Accounts Receivables Services Account + */ + public void setC_Receivable_Services_Acct (int C_Receivable_Services_Acct) + { + set_Value (COLUMNNAME_C_Receivable_Services_Acct, Integer.valueOf(C_Receivable_Services_Acct)); + } + + /** Get Receivable Services. + @return Customer Accounts Receivables Services Account + */ + public int getC_Receivable_Services_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Services_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Not-invoiced Receipts. + @param NotInvoicedReceipts_Acct + Account for not-invoiced Material Receipts + */ + public void setNotInvoicedReceipts_Acct (int NotInvoicedReceipts_Acct) + { + set_Value (COLUMNNAME_NotInvoicedReceipts_Acct, Integer.valueOf(NotInvoicedReceipts_Acct)); + } + + /** Get Not-invoiced Receipts. + @return Account for not-invoiced Material Receipts + */ + public int getNotInvoicedReceipts_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NotInvoicedReceipts_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Not-invoiced Receivables. + @param NotInvoicedReceivables_Acct + Account for not invoiced Receivables + */ + public void setNotInvoicedReceivables_Acct (int NotInvoicedReceivables_Acct) + { + set_Value (COLUMNNAME_NotInvoicedReceivables_Acct, Integer.valueOf(NotInvoicedReceivables_Acct)); + } + + /** Get Not-invoiced Receivables. + @return Account for not invoiced Receivables + */ + public int getNotInvoicedReceivables_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NotInvoicedReceivables_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Not-invoiced Revenue. + @param NotInvoicedRevenue_Acct + Account for not invoiced Revenue + */ + public void setNotInvoicedRevenue_Acct (int NotInvoicedRevenue_Acct) + { + set_Value (COLUMNNAME_NotInvoicedRevenue_Acct, Integer.valueOf(NotInvoicedRevenue_Acct)); + } + + /** Get Not-invoiced Revenue. + @return Account for not invoiced Revenue + */ + public int getNotInvoicedRevenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NotInvoicedRevenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Discount Expense. + @param PayDiscount_Exp_Acct + Payment Discount Expense Account + */ + public void setPayDiscount_Exp_Acct (int PayDiscount_Exp_Acct) + { + set_Value (COLUMNNAME_PayDiscount_Exp_Acct, Integer.valueOf(PayDiscount_Exp_Acct)); + } + + /** Get Payment Discount Expense. + @return Payment Discount Expense Account + */ + public int getPayDiscount_Exp_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PayDiscount_Exp_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Discount Revenue. + @param PayDiscount_Rev_Acct + Payment Discount Revenue Account + */ + public void setPayDiscount_Rev_Acct (int PayDiscount_Rev_Acct) + { + set_Value (COLUMNNAME_PayDiscount_Rev_Acct, Integer.valueOf(PayDiscount_Rev_Acct)); + } + + /** Get Payment Discount Revenue. + @return Payment Discount Revenue Account + */ + public int getPayDiscount_Rev_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PayDiscount_Rev_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Unearned Revenue. + @param UnEarnedRevenue_Acct + Account for unearned revenue + */ + public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) + { + set_Value (COLUMNNAME_UnEarnedRevenue_Acct, Integer.valueOf(UnEarnedRevenue_Acct)); + } + + /** Get Unearned Revenue. + @return Account for unearned revenue + */ + public int getUnEarnedRevenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnEarnedRevenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Liability. + @param V_Liability_Acct + Account for Vendor Liability + */ + public void setV_Liability_Acct (int V_Liability_Acct) + { + set_Value (COLUMNNAME_V_Liability_Acct, Integer.valueOf(V_Liability_Acct)); + } + + /** Get Vendor Liability. + @return Account for Vendor Liability + */ + public int getV_Liability_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Liability_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Service Liability. + @param V_Liability_Services_Acct + Account for Vender Service Liability + */ + public void setV_Liability_Services_Acct (int V_Liability_Services_Acct) + { + set_Value (COLUMNNAME_V_Liability_Services_Acct, Integer.valueOf(V_Liability_Services_Acct)); + } + + /** Get Vendor Service Liability. + @return Account for Vender Service Liability + */ + public int getV_Liability_Services_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Liability_Services_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Prepayment. + @param V_Prepayment_Acct + Account for Vendor Prepayments + */ + public void setV_Prepayment_Acct (int V_Prepayment_Acct) + { + set_Value (COLUMNNAME_V_Prepayment_Acct, Integer.valueOf(V_Prepayment_Acct)); + } + + /** Get Vendor Prepayment. + @return Account for Vendor Prepayments + */ + public int getV_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Write-off. + @param WriteOff_Acct + Account for Receivables write-off + */ + public void setWriteOff_Acct (int WriteOff_Acct) + { + set_Value (COLUMNNAME_WriteOff_Acct, Integer.valueOf(WriteOff_Acct)); + } + + /** Get Write-off. + @return Account for Receivables write-off + */ + public int getWriteOff_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WriteOff_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 0d86d13816..d34890a089 100644 --- a/base/src/org/compiere/model/X_C_BP_Relation.java +++ b/base/src/org/compiere/model/X_C_BP_Relation.java @@ -1,313 +1,362 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Relation - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Relation extends PO + +/** Generated Model for C_BP_Relation + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Relation extends PO implements I_C_BP_Relation, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Relation_ID id -@param trxName transaction -*/ -public X_C_BP_Relation (Properties ctx, int C_BP_Relation_ID, String trxName) -{ -super (ctx, C_BP_Relation_ID, trxName); -/** if (C_BP_Relation_ID == 0) -{ -setC_BP_Relation_ID (0); -setC_BPartnerRelation_ID (0); -setC_BPartnerRelation_Location_ID (0); -setC_BPartner_ID (0); -setIsBillTo (false); -setIsPayFrom (false); -setIsRemitTo (false); -setIsShipTo (false); // N -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Relation (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Relation */ -public static final String Table_Name="C_BP_Relation"; - -/** AD_Table_ID=678 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Relation[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Partner Relation. -@param C_BP_Relation_ID Business Partner Relation */ -public void setC_BP_Relation_ID (int C_BP_Relation_ID) -{ -if (C_BP_Relation_ID < 1) throw new IllegalArgumentException ("C_BP_Relation_ID is mandatory."); -set_ValueNoCheck ("C_BP_Relation_ID", Integer.valueOf(C_BP_Relation_ID)); -} -/** Get Partner Relation. -@return Business Partner Relation */ -public int getC_BP_Relation_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Relation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Relation_ID */ -public static final String COLUMNNAME_C_BP_Relation_ID = "C_BP_Relation_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Relation (Properties ctx, int C_BP_Relation_ID, String trxName) + { + super (ctx, C_BP_Relation_ID, trxName); + /** if (C_BP_Relation_ID == 0) { setC_BP_Relation_ID (0); + setC_BPartnerRelation_ID (0); + setC_BPartnerRelation_Location_ID (0); + setC_BPartner_ID (0); + setIsBillTo (false); + setIsPayFrom (false); + setIsRemitTo (false); + setIsShipTo (false); +// N + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_BP_Relation (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Relation[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Partner Relation. + @param C_BP_Relation_ID + Business Partner Relation + */ + public void setC_BP_Relation_ID (int C_BP_Relation_ID) + { + if (C_BP_Relation_ID < 1) + throw new IllegalArgumentException ("C_BP_Relation_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_Relation_ID, Integer.valueOf(C_BP_Relation_ID)); + } + + /** Get Partner Relation. + @return Business Partner Relation + */ + public int getC_BP_Relation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Relation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_BPartnerRelation_ID AD_Reference_ID=138 */ public static final int C_BPARTNERRELATION_ID_AD_Reference_ID=138; -/** Set Related Partner. -@param C_BPartnerRelation_ID Related Business Partner */ -public void setC_BPartnerRelation_ID (int C_BPartnerRelation_ID) -{ -if (C_BPartnerRelation_ID < 1) throw new IllegalArgumentException ("C_BPartnerRelation_ID is mandatory."); -set_Value ("C_BPartnerRelation_ID", Integer.valueOf(C_BPartnerRelation_ID)); -} -/** Get Related Partner. -@return Related Business Partner */ -public int getC_BPartnerRelation_ID() -{ -Integer ii = (Integer)get_Value("C_BPartnerRelation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartnerRelation_ID */ -public static final String COLUMNNAME_C_BPartnerRelation_ID = "C_BPartnerRelation_ID"; + /** Set Related Partner. + @param C_BPartnerRelation_ID + Related Business Partner + */ + public void setC_BPartnerRelation_ID (int C_BPartnerRelation_ID) + { + if (C_BPartnerRelation_ID < 1) + throw new IllegalArgumentException ("C_BPartnerRelation_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartnerRelation_ID, Integer.valueOf(C_BPartnerRelation_ID)); + } + + /** Get Related Partner. + @return Related Business Partner + */ + public int getC_BPartnerRelation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerRelation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_BPartnerRelation_Location_ID AD_Reference_ID=159 */ public static final int C_BPARTNERRELATION_LOCATION_ID_AD_Reference_ID=159; -/** Set Related Partner Location. -@param C_BPartnerRelation_Location_ID Location of the related Business Partner */ -public void setC_BPartnerRelation_Location_ID (int C_BPartnerRelation_Location_ID) -{ -if (C_BPartnerRelation_Location_ID < 1) throw new IllegalArgumentException ("C_BPartnerRelation_Location_ID is mandatory."); -set_Value ("C_BPartnerRelation_Location_ID", Integer.valueOf(C_BPartnerRelation_Location_ID)); -} -/** Get Related Partner Location. -@return Location of the related Business Partner */ -public int getC_BPartnerRelation_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartnerRelation_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartnerRelation_Location_ID */ -public static final String COLUMNNAME_C_BPartnerRelation_Location_ID = "C_BPartnerRelation_Location_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Invoice Address. -@param IsBillTo Business Partner Invoice/Bill Address */ -public void setIsBillTo (boolean IsBillTo) -{ -set_Value ("IsBillTo", Boolean.valueOf(IsBillTo)); -} -/** Get Invoice Address. -@return Business Partner Invoice/Bill Address */ -public boolean isBillTo() -{ -Object oo = get_Value("IsBillTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBillTo */ -public static final String COLUMNNAME_IsBillTo = "IsBillTo"; -/** Set Pay-From Address. -@param IsPayFrom Business Partner pays from that address and we'll send dunning letters there */ -public void setIsPayFrom (boolean IsPayFrom) -{ -set_Value ("IsPayFrom", Boolean.valueOf(IsPayFrom)); -} -/** Get Pay-From Address. -@return Business Partner pays from that address and we'll send dunning letters there */ -public boolean isPayFrom() -{ -Object oo = get_Value("IsPayFrom"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPayFrom */ -public static final String COLUMNNAME_IsPayFrom = "IsPayFrom"; -/** Set Remit-To Address. -@param IsRemitTo Business Partner payment address */ -public void setIsRemitTo (boolean IsRemitTo) -{ -set_Value ("IsRemitTo", Boolean.valueOf(IsRemitTo)); -} -/** Get Remit-To Address. -@return Business Partner payment address */ -public boolean isRemitTo() -{ -Object oo = get_Value("IsRemitTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRemitTo */ -public static final String COLUMNNAME_IsRemitTo = "IsRemitTo"; -/** Set Ship Address. -@param IsShipTo Business Partner Shipment Address */ -public void setIsShipTo (boolean IsShipTo) -{ -set_ValueNoCheck ("IsShipTo", Boolean.valueOf(IsShipTo)); -} -/** Get Ship Address. -@return Business Partner Shipment Address */ -public boolean isShipTo() -{ -Object oo = get_Value("IsShipTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsShipTo */ -public static final String COLUMNNAME_IsShipTo = "IsShipTo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Related Partner Location. + @param C_BPartnerRelation_Location_ID + Location of the related Business Partner + */ + public void setC_BPartnerRelation_Location_ID (int C_BPartnerRelation_Location_ID) + { + if (C_BPartnerRelation_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartnerRelation_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartnerRelation_Location_ID, Integer.valueOf(C_BPartnerRelation_Location_ID)); + } + + /** Get Related Partner Location. + @return Location of the related Business Partner + */ + public int getC_BPartnerRelation_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerRelation_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Invoice Address. + @param IsBillTo + Business Partner Invoice/Bill Address + */ + public void setIsBillTo (boolean IsBillTo) + { + set_Value (COLUMNNAME_IsBillTo, Boolean.valueOf(IsBillTo)); + } + + /** Get Invoice Address. + @return Business Partner Invoice/Bill Address + */ + public boolean isBillTo () + { + Object oo = get_Value(COLUMNNAME_IsBillTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pay-From Address. + @param IsPayFrom + Business Partner pays from that address and we'll send dunning letters there + */ + public void setIsPayFrom (boolean IsPayFrom) + { + set_Value (COLUMNNAME_IsPayFrom, Boolean.valueOf(IsPayFrom)); + } + + /** Get Pay-From Address. + @return Business Partner pays from that address and we'll send dunning letters there + */ + public boolean isPayFrom () + { + Object oo = get_Value(COLUMNNAME_IsPayFrom); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Remit-To Address. + @param IsRemitTo + Business Partner payment address + */ + public void setIsRemitTo (boolean IsRemitTo) + { + set_Value (COLUMNNAME_IsRemitTo, Boolean.valueOf(IsRemitTo)); + } + + /** Get Remit-To Address. + @return Business Partner payment address + */ + public boolean isRemitTo () + { + Object oo = get_Value(COLUMNNAME_IsRemitTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship Address. + @param IsShipTo + Business Partner Shipment Address + */ + public void setIsShipTo (boolean IsShipTo) + { + set_ValueNoCheck (COLUMNNAME_IsShipTo, Boolean.valueOf(IsShipTo)); + } + + /** Get Ship Address. + @return Business Partner Shipment Address + */ + public boolean isShipTo () + { + Object oo = get_Value(COLUMNNAME_IsShipTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 0ccf8212ca..a63cac8f0f 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 @@ -1,173 +1,212 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Vendor_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Vendor_Acct extends PO + +/** Generated Model for C_BP_Vendor_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Vendor_Acct extends PO implements I_C_BP_Vendor_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Vendor_Acct_ID id -@param trxName transaction -*/ -public X_C_BP_Vendor_Acct (Properties ctx, int C_BP_Vendor_Acct_ID, String trxName) -{ -super (ctx, C_BP_Vendor_Acct_ID, trxName); -/** if (C_BP_Vendor_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_BPartner_ID (0); -setV_Liability_Acct (0); -setV_Prepayment_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Vendor_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Vendor_Acct */ -public static final String Table_Name="C_BP_Vendor_Acct"; - -/** AD_Table_ID=185 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Vendor_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Vendor Liability. -@param V_Liability_Acct Account for Vendor Liability */ -public void setV_Liability_Acct (int V_Liability_Acct) -{ -set_Value ("V_Liability_Acct", Integer.valueOf(V_Liability_Acct)); -} -/** Get Vendor Liability. -@return Account for Vendor Liability */ -public int getV_Liability_Acct() -{ -Integer ii = (Integer)get_Value("V_Liability_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Liability_Acct */ -public static final String COLUMNNAME_V_Liability_Acct = "V_Liability_Acct"; -/** Set Vendor Service Liability. -@param V_Liability_Services_Acct Account for Vender Service Liability */ -public void setV_Liability_Services_Acct (int V_Liability_Services_Acct) -{ -set_Value ("V_Liability_Services_Acct", Integer.valueOf(V_Liability_Services_Acct)); -} -/** Get Vendor Service Liability. -@return Account for Vender Service Liability */ -public int getV_Liability_Services_Acct() -{ -Integer ii = (Integer)get_Value("V_Liability_Services_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Liability_Services_Acct */ -public static final String COLUMNNAME_V_Liability_Services_Acct = "V_Liability_Services_Acct"; -/** Set Vendor Prepayment. -@param V_Prepayment_Acct Account for Vendor Prepayments */ -public void setV_Prepayment_Acct (int V_Prepayment_Acct) -{ -set_Value ("V_Prepayment_Acct", Integer.valueOf(V_Prepayment_Acct)); -} -/** Get Vendor Prepayment. -@return Account for Vendor Prepayments */ -public int getV_Prepayment_Acct() -{ -Integer ii = (Integer)get_Value("V_Prepayment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name V_Prepayment_Acct */ -public static final String COLUMNNAME_V_Prepayment_Acct = "V_Prepayment_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Vendor_Acct (Properties ctx, int C_BP_Vendor_Acct_ID, String trxName) + { + super (ctx, C_BP_Vendor_Acct_ID, trxName); + /** if (C_BP_Vendor_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_BPartner_ID (0); + setV_Liability_Acct (0); + setV_Prepayment_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_BP_Vendor_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Vendor_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getI_C_BPartner() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Liability. + @param V_Liability_Acct + Account for Vendor Liability + */ + public void setV_Liability_Acct (int V_Liability_Acct) + { + set_Value (COLUMNNAME_V_Liability_Acct, Integer.valueOf(V_Liability_Acct)); + } + + /** Get Vendor Liability. + @return Account for Vendor Liability + */ + public int getV_Liability_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Liability_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Service Liability. + @param V_Liability_Services_Acct + Account for Vender Service Liability + */ + public void setV_Liability_Services_Acct (int V_Liability_Services_Acct) + { + set_Value (COLUMNNAME_V_Liability_Services_Acct, Integer.valueOf(V_Liability_Services_Acct)); + } + + /** Get Vendor Service Liability. + @return Account for Vender Service Liability + */ + public int getV_Liability_Services_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Liability_Services_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Vendor Prepayment. + @param V_Prepayment_Acct + Account for Vendor Prepayments + */ + public void setV_Prepayment_Acct (int V_Prepayment_Acct) + { + set_Value (COLUMNNAME_V_Prepayment_Acct, Integer.valueOf(V_Prepayment_Acct)); + } + + /** Get Vendor Prepayment. + @return Account for Vendor Prepayments + */ + public int getV_Prepayment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_V_Prepayment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 4672b280c4..0fa51d6fae 100644 --- a/base/src/org/compiere/model/X_C_BP_Withholding.java +++ b/base/src/org/compiere/model/X_C_BP_Withholding.java @@ -1,184 +1,206 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BP_Withholding - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BP_Withholding extends PO + +/** Generated Model for C_BP_Withholding + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BP_Withholding extends PO implements I_C_BP_Withholding, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BP_Withholding_ID id -@param trxName transaction -*/ -public X_C_BP_Withholding (Properties ctx, int C_BP_Withholding_ID, String trxName) -{ -super (ctx, C_BP_Withholding_ID, trxName); -/** if (C_BP_Withholding_ID == 0) -{ -setC_BPartner_ID (0); -setC_Withholding_ID (0); -setIsMandatoryWithholding (false); -setIsTemporaryExempt (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BP_Withholding (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BP_Withholding */ -public static final String Table_Name="C_BP_Withholding"; - -/** AD_Table_ID=299 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BP_Withholding[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Withholding. -@param C_Withholding_ID Withholding type defined */ -public void setC_Withholding_ID (int C_Withholding_ID) -{ -if (C_Withholding_ID < 1) throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); -set_ValueNoCheck ("C_Withholding_ID", Integer.valueOf(C_Withholding_ID)); -} -/** Get Withholding. -@return Withholding type defined */ -public int getC_Withholding_ID() -{ -Integer ii = (Integer)get_Value("C_Withholding_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Withholding_ID */ -public static final String COLUMNNAME_C_Withholding_ID = "C_Withholding_ID"; -/** Set Exempt reason. -@param ExemptReason Reason for not withholding */ -public void setExemptReason (String ExemptReason) -{ -if (ExemptReason != null && ExemptReason.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ExemptReason = ExemptReason.substring(0,19); -} -set_Value ("ExemptReason", ExemptReason); -} -/** Get Exempt reason. -@return Reason for not withholding */ -public String getExemptReason() -{ -return (String)get_Value("ExemptReason"); -} -/** Column name ExemptReason */ -public static final String COLUMNNAME_ExemptReason = "ExemptReason"; -/** Set Mandatory Withholding. -@param IsMandatoryWithholding Monies must be withheld */ -public void setIsMandatoryWithholding (boolean IsMandatoryWithholding) -{ -set_Value ("IsMandatoryWithholding", Boolean.valueOf(IsMandatoryWithholding)); -} -/** Get Mandatory Withholding. -@return Monies must be withheld */ -public boolean isMandatoryWithholding() -{ -Object oo = get_Value("IsMandatoryWithholding"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMandatoryWithholding */ -public static final String COLUMNNAME_IsMandatoryWithholding = "IsMandatoryWithholding"; -/** Set Temporary exempt. -@param IsTemporaryExempt Temporarily do not withhold taxes */ -public void setIsTemporaryExempt (boolean IsTemporaryExempt) -{ -set_Value ("IsTemporaryExempt", Boolean.valueOf(IsTemporaryExempt)); -} -/** Get Temporary exempt. -@return Temporarily do not withhold taxes */ -public boolean isTemporaryExempt() -{ -Object oo = get_Value("IsTemporaryExempt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTemporaryExempt */ -public static final String COLUMNNAME_IsTemporaryExempt = "IsTemporaryExempt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BP_Withholding (Properties ctx, int C_BP_Withholding_ID, String trxName) + { + super (ctx, C_BP_Withholding_ID, trxName); + /** if (C_BP_Withholding_ID == 0) { setC_BPartner_ID (0); + setC_Withholding_ID (0); + setIsMandatoryWithholding (false); + setIsTemporaryExempt (false); +} */ + } + + /** Load Constructor */ + public X_C_BP_Withholding (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BP_Withholding[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Withholding getI_C_Withholding() throws Exception + { + 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 e; + } + return result; + } + + /** Set Withholding. + @param C_Withholding_ID + Withholding type defined + */ + public void setC_Withholding_ID (int C_Withholding_ID) + { + if (C_Withholding_ID < 1) + throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); + } + + /** Get Withholding. + @return Withholding type defined + */ + public int getC_Withholding_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Withholding_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exempt reason. + @param ExemptReason + Reason for not withholding + */ + public void setExemptReason (String ExemptReason) + { + if (ExemptReason != null && ExemptReason.length() > 20) + { + log.warning("Length > 20 - truncated"); + ExemptReason = ExemptReason.substring(0, 19); + } + set_Value (COLUMNNAME_ExemptReason, ExemptReason); + } + + /** Get Exempt reason. + @return Reason for not withholding + */ + public String getExemptReason () + { + return (String)get_Value(COLUMNNAME_ExemptReason); + } + + /** Set Mandatory Withholding. + @param IsMandatoryWithholding + Monies must be withheld + */ + public void setIsMandatoryWithholding (boolean IsMandatoryWithholding) + { + set_Value (COLUMNNAME_IsMandatoryWithholding, Boolean.valueOf(IsMandatoryWithholding)); + } + + /** Get Mandatory Withholding. + @return Monies must be withheld + */ + public boolean isMandatoryWithholding () + { + Object oo = get_Value(COLUMNNAME_IsMandatoryWithholding); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Temporary exempt. + @param IsTemporaryExempt + Temporarily do not withhold taxes + */ + public void setIsTemporaryExempt (boolean IsTemporaryExempt) + { + set_Value (COLUMNNAME_IsTemporaryExempt, Boolean.valueOf(IsTemporaryExempt)); + } + + /** Get Temporary exempt. + @return Temporarily do not withhold taxes + */ + public boolean isTemporaryExempt () + { + Object oo = get_Value(COLUMNNAME_IsTemporaryExempt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BPartner.java b/base/src/org/compiere/model/X_C_BPartner.java index fab8957164..c97d8525a9 100644 --- a/base/src/org/compiere/model/X_C_BPartner.java +++ b/base/src/org/compiere/model/X_C_BPartner.java @@ -1,1290 +1,1524 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BPartner - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BPartner extends PO + +/** Generated Model for C_BPartner + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BPartner_ID id -@param trxName transaction -*/ -public X_C_BPartner (Properties ctx, int C_BPartner_ID, String trxName) -{ -super (ctx, C_BPartner_ID, trxName); -/** if (C_BPartner_ID == 0) -{ -setC_BP_Group_ID (0); -setC_BPartner_ID (0); -setIsCustomer (false); -setIsEmployee (false); -setIsOneTime (false); -setIsProspect (false); -setIsSalesRep (false); -setIsSummary (false); -setIsVendor (false); -setName (null); -setSO_CreditLimit (Env.ZERO); -setSO_CreditUsed (Env.ZERO); -setSendEMail (false); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BPartner (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BPartner */ -public static final String Table_Name="C_BPartner"; - -/** AD_Table_ID=291 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BPartner[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BPartner (Properties ctx, int C_BPartner_ID, String trxName) + { + super (ctx, C_BPartner_ID, trxName); + /** if (C_BPartner_ID == 0) { setC_BP_Group_ID (0); + setC_BPartner_ID (0); + setIsCustomer (false); + setIsEmployee (false); + setIsOneTime (false); + setIsProspect (false); + setIsSalesRep (false); + setIsSummary (false); + setIsVendor (false); + setName (null); + setSO_CreditLimit (Env.ZERO); + setSO_CreditUsed (Env.ZERO); + setSendEMail (false); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_BPartner (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BPartner[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=327 */ public static final int AD_LANGUAGE_AD_Reference_ID=327; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language != null && AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set Linked Organization. -@param AD_OrgBP_ID The Business Partner is another Organization for explicit Inter-Org transactions */ -public void setAD_OrgBP_ID (String AD_OrgBP_ID) -{ -if (AD_OrgBP_ID != null && AD_OrgBP_ID.length() > 22) -{ -log.warning("Length > 22 - truncated"); -AD_OrgBP_ID = AD_OrgBP_ID.substring(0,21); -} -set_Value ("AD_OrgBP_ID", AD_OrgBP_ID); -} -/** Get Linked Organization. -@return The Business Partner is another Organization for explicit Inter-Org transactions */ -public String getAD_OrgBP_ID() -{ -return (String)get_Value("AD_OrgBP_ID"); -} -/** Column name AD_OrgBP_ID */ -public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; -/** Set Acquisition Cost. -@param AcqusitionCost The cost of gaining the prospect as a customer */ -public void setAcqusitionCost (BigDecimal AcqusitionCost) -{ -set_Value ("AcqusitionCost", AcqusitionCost); -} -/** Get Acquisition Cost. -@return The cost of gaining the prospect as a customer */ -public BigDecimal getAcqusitionCost() -{ -BigDecimal bd = (BigDecimal)get_Value("AcqusitionCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AcqusitionCost */ -public static final String COLUMNNAME_AcqusitionCost = "AcqusitionCost"; -/** Set Actual Life Time Value. -@param ActualLifeTimeValue Actual Life Time Revenue */ -public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue) -{ -set_Value ("ActualLifeTimeValue", ActualLifeTimeValue); -} -/** Get Actual Life Time Value. -@return Actual Life Time Revenue */ -public BigDecimal getActualLifeTimeValue() -{ -BigDecimal bd = (BigDecimal)get_Value("ActualLifeTimeValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ActualLifeTimeValue */ -public static final String COLUMNNAME_ActualLifeTimeValue = "ActualLifeTimeValue"; -/** Set Partner Parent. -@param BPartner_Parent_ID Business Partner Parent */ -public void setBPartner_Parent_ID (int BPartner_Parent_ID) -{ -if (BPartner_Parent_ID <= 0) set_Value ("BPartner_Parent_ID", null); - else -set_Value ("BPartner_Parent_ID", Integer.valueOf(BPartner_Parent_ID)); -} -/** Get Partner Parent. -@return Business Partner Parent */ -public int getBPartner_Parent_ID() -{ -Integer ii = (Integer)get_Value("BPartner_Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BPartner_Parent_ID */ -public static final String COLUMNNAME_BPartner_Parent_ID = "BPartner_Parent_ID"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID < 1) throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); -set_Value ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Dunning. -@param C_Dunning_ID Dunning Rules for overdue invoices */ -public void setC_Dunning_ID (int C_Dunning_ID) -{ -if (C_Dunning_ID <= 0) set_Value ("C_Dunning_ID", null); - else -set_Value ("C_Dunning_ID", Integer.valueOf(C_Dunning_ID)); -} -/** Get Dunning. -@return Dunning Rules for overdue invoices */ -public int getC_Dunning_ID() -{ -Integer ii = (Integer)get_Value("C_Dunning_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Dunning_ID */ -public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; -/** Set Greeting. -@param C_Greeting_ID Greeting to print on correspondence */ -public void setC_Greeting_ID (int C_Greeting_ID) -{ -if (C_Greeting_ID <= 0) set_Value ("C_Greeting_ID", null); - else -set_Value ("C_Greeting_ID", Integer.valueOf(C_Greeting_ID)); -} -/** Get Greeting. -@return Greeting to print on correspondence */ -public int getC_Greeting_ID() -{ -Integer ii = (Integer)get_Value("C_Greeting_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Greeting_ID */ -public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; -/** Set Invoice Schedule. -@param C_InvoiceSchedule_ID Schedule for generating Invoices */ -public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) -{ -if (C_InvoiceSchedule_ID <= 0) set_Value ("C_InvoiceSchedule_ID", null); - else -set_Value ("C_InvoiceSchedule_ID", Integer.valueOf(C_InvoiceSchedule_ID)); -} -/** Get Invoice Schedule. -@return Schedule for generating Invoices */ -public int getC_InvoiceSchedule_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceSchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceSchedule_ID */ -public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID <= 0) set_Value ("C_PaymentTerm_ID", null); - else -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set D-U-N-S. -@param DUNS Dun & Bradstreet Number */ -public void setDUNS (String DUNS) -{ -if (DUNS != null && DUNS.length() > 11) -{ -log.warning("Length > 11 - truncated"); -DUNS = DUNS.substring(0,10); -} -set_Value ("DUNS", DUNS); -} -/** Get D-U-N-S. -@return Dun & Bradstreet Number */ -public String getDUNS() -{ -return (String)get_Value("DUNS"); -} -/** Column name DUNS */ -public static final String COLUMNNAME_DUNS = "DUNS"; + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set Linked Organization. + @param AD_OrgBP_ID + The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (String AD_OrgBP_ID) + { + if (AD_OrgBP_ID != null && AD_OrgBP_ID.length() > 22) + { + log.warning("Length > 22 - truncated"); + AD_OrgBP_ID = AD_OrgBP_ID.substring(0, 21); + } + set_Value (COLUMNNAME_AD_OrgBP_ID, AD_OrgBP_ID); + } + + /** Get Linked Organization. + @return The Business Partner is another Organization for explicit Inter-Org transactions + */ + public String getAD_OrgBP_ID () + { + return (String)get_Value(COLUMNNAME_AD_OrgBP_ID); + } + + /** Set Acquisition Cost. + @param AcqusitionCost + The cost of gaining the prospect as a customer + */ + public void setAcqusitionCost (BigDecimal AcqusitionCost) + { + set_Value (COLUMNNAME_AcqusitionCost, AcqusitionCost); + } + + /** Get Acquisition Cost. + @return The cost of gaining the prospect as a customer + */ + public BigDecimal getAcqusitionCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AcqusitionCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Actual Life Time Value. + @param ActualLifeTimeValue + Actual Life Time Revenue + */ + public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue) + { + set_Value (COLUMNNAME_ActualLifeTimeValue, ActualLifeTimeValue); + } + + /** Get Actual Life Time Value. + @return Actual Life Time Revenue + */ + public BigDecimal getActualLifeTimeValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ActualLifeTimeValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Partner Parent. + @param BPartner_Parent_ID + Business Partner Parent + */ + public void setBPartner_Parent_ID (int BPartner_Parent_ID) + { + if (BPartner_Parent_ID <= 0) set_Value (COLUMNNAME_BPartner_Parent_ID, null); + else + set_Value (COLUMNNAME_BPartner_Parent_ID, Integer.valueOf(BPartner_Parent_ID)); + } + + /** Get Partner Parent. + @return Business Partner Parent + */ + public int getBPartner_Parent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BPartner_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Dunning getI_C_Dunning() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning. + @param C_Dunning_ID + Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID) + { + if (C_Dunning_ID <= 0) set_Value (COLUMNNAME_C_Dunning_ID, null); + else + set_Value (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + } + + /** Get Dunning. + @return Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Dunning_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Greeting getI_C_Greeting() throws Exception + { + 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 e; + } + return result; + } + + /** Set Greeting. + @param C_Greeting_ID + Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID) + { + if (C_Greeting_ID <= 0) set_Value (COLUMNNAME_C_Greeting_ID, null); + else + set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + } + + /** Get Greeting. + @return Greeting to print on correspondence + */ + public int getC_Greeting_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_InvoiceSchedule getI_C_InvoiceSchedule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Invoice Schedule. + @param C_InvoiceSchedule_ID + Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) + { + if (C_InvoiceSchedule_ID <= 0) set_Value (COLUMNNAME_C_InvoiceSchedule_ID, null); + else + set_Value (COLUMNNAME_C_InvoiceSchedule_ID, Integer.valueOf(C_InvoiceSchedule_ID)); + } + + /** Get Invoice Schedule. + @return Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceSchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID <= 0) set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set D-U-N-S. + @param DUNS + Dun & Bradstreet Number + */ + public void setDUNS (String DUNS) + { + if (DUNS != null && DUNS.length() > 11) + { + log.warning("Length > 11 - truncated"); + DUNS = DUNS.substring(0, 10); + } + set_Value (COLUMNNAME_DUNS, DUNS); + } + + /** Get D-U-N-S. + @return Dun & Bradstreet Number + */ + public String getDUNS () + { + return (String)get_Value(COLUMNNAME_DUNS); + } /** DeliveryRule AD_Reference_ID=151 */ -public static final int DELIVERYRULE_AD_Reference_ID=151; -/** Availability = A */ -public static final String DELIVERYRULE_Availability = "A"; -/** Force = F */ -public static final String DELIVERYRULE_Force = "F"; -/** Complete Line = L */ -public static final String DELIVERYRULE_CompleteLine = "L"; -/** Manual = M */ -public static final String DELIVERYRULE_Manual = "M"; -/** Complete Order = O */ -public static final String DELIVERYRULE_CompleteOrder = "O"; -/** After Receipt = R */ +public static final int DELIVERYRULE_AD_Reference_ID=151;/** Availability = A */ +public static final String DELIVERYRULE_Availability = "A";/** Force = F */ +public static final String DELIVERYRULE_Force = "F";/** Complete Line = L */ +public static final String DELIVERYRULE_CompleteLine = "L";/** Manual = M */ +public static final String DELIVERYRULE_Manual = "M";/** Complete Order = O */ +public static final String DELIVERYRULE_CompleteOrder = "O";/** After Receipt = R */ public static final String DELIVERYRULE_AfterReceipt = "R"; -/** Set Delivery Rule. -@param DeliveryRule Defines the timing of Delivery */ -public void setDeliveryRule (String DeliveryRule) -{ -if (DeliveryRule == null || DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); - else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); -if (DeliveryRule != null && DeliveryRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryRule = DeliveryRule.substring(0,0); -} -set_Value ("DeliveryRule", DeliveryRule); -} -/** Get Delivery Rule. -@return Defines the timing of Delivery */ -public String getDeliveryRule() -{ -return (String)get_Value("DeliveryRule"); -} -/** Column name DeliveryRule */ -public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { +if (DeliveryRule == null || DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); if (DeliveryRule != null && DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 0); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } /** DeliveryViaRule AD_Reference_ID=152 */ -public static final int DELIVERYVIARULE_AD_Reference_ID=152; -/** Delivery = D */ -public static final String DELIVERYVIARULE_Delivery = "D"; -/** Pickup = P */ -public static final String DELIVERYVIARULE_Pickup = "P"; -/** Shipper = S */ +public static final int DELIVERYVIARULE_AD_Reference_ID=152;/** Delivery = D */ +public static final String DELIVERYVIARULE_Delivery = "D";/** Pickup = P */ +public static final String DELIVERYVIARULE_Pickup = "P";/** Shipper = S */ public static final String DELIVERYVIARULE_Shipper = "S"; -/** Set Delivery Via. -@param DeliveryViaRule How the order will be delivered */ -public void setDeliveryViaRule (String DeliveryViaRule) -{ -if (DeliveryViaRule == null || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); - else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); -if (DeliveryViaRule != null && DeliveryViaRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryViaRule = DeliveryViaRule.substring(0,0); -} -set_Value ("DeliveryViaRule", DeliveryViaRule); -} -/** Get Delivery Via. -@return How the order will be delivered */ -public String getDeliveryViaRule() -{ -return (String)get_Value("DeliveryViaRule"); -} -/** Column name DeliveryViaRule */ -public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Copies. -@param DocumentCopies Number of copies to be printed */ -public void setDocumentCopies (int DocumentCopies) -{ -set_Value ("DocumentCopies", Integer.valueOf(DocumentCopies)); -} -/** Get Document Copies. -@return Number of copies to be printed */ -public int getDocumentCopies() -{ -Integer ii = (Integer)get_Value("DocumentCopies"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DocumentCopies */ -public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; -/** Set First Sale. -@param FirstSale Date of First Sale */ -public void setFirstSale (Timestamp FirstSale) -{ -set_Value ("FirstSale", FirstSale); -} -/** Get First Sale. -@return Date of First Sale */ -public Timestamp getFirstSale() -{ -return (Timestamp)get_Value("FirstSale"); -} -/** Column name FirstSale */ -public static final String COLUMNNAME_FirstSale = "FirstSale"; -/** Set Flat Discount %. -@param FlatDiscount Flat discount percentage */ -public void setFlatDiscount (BigDecimal FlatDiscount) -{ -set_Value ("FlatDiscount", FlatDiscount); -} -/** Get Flat Discount %. -@return Flat discount percentage */ -public BigDecimal getFlatDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("FlatDiscount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FlatDiscount */ -public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { +if (DeliveryViaRule == null || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); if (DeliveryViaRule != null && DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 0); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Copies. + @param DocumentCopies + Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies) + { + set_Value (COLUMNNAME_DocumentCopies, Integer.valueOf(DocumentCopies)); + } + + /** Get Document Copies. + @return Number of copies to be printed + */ + public int getDocumentCopies () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocumentCopies); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set First Sale. + @param FirstSale + Date of First Sale + */ + public void setFirstSale (Timestamp FirstSale) + { + set_Value (COLUMNNAME_FirstSale, FirstSale); + } + + /** Get First Sale. + @return Date of First Sale + */ + public Timestamp getFirstSale () + { + return (Timestamp)get_Value(COLUMNNAME_FirstSale); + } + + /** Set Flat Discount %. + @param FlatDiscount + Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount) + { + set_Value (COLUMNNAME_FlatDiscount, FlatDiscount); + } + + /** Get Flat Discount %. + @return Flat discount percentage + */ + public BigDecimal getFlatDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FlatDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } /** FreightCostRule AD_Reference_ID=153 */ -public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; -/** Calculated = C */ -public static final String FREIGHTCOSTRULE_Calculated = "C"; -/** Fix price = F */ -public static final String FREIGHTCOSTRULE_FixPrice = "F"; -/** Freight included = I */ -public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; -/** Line = L */ +public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;/** Calculated = C */ +public static final String FREIGHTCOSTRULE_Calculated = "C";/** Fix price = F */ +public static final String FREIGHTCOSTRULE_FixPrice = "F";/** Freight included = I */ +public static final String FREIGHTCOSTRULE_FreightIncluded = "I";/** Line = L */ public static final String FREIGHTCOSTRULE_Line = "L"; -/** Set Freight Cost Rule. -@param FreightCostRule Method for charging Freight */ -public void setFreightCostRule (String FreightCostRule) -{ -if (FreightCostRule == null || FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); - else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); -if (FreightCostRule != null && FreightCostRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FreightCostRule = FreightCostRule.substring(0,0); -} -set_Value ("FreightCostRule", FreightCostRule); -} -/** Get Freight Cost Rule. -@return Method for charging Freight */ -public String getFreightCostRule() -{ -return (String)get_Value("FreightCostRule"); -} -/** Column name FreightCostRule */ -public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { +if (FreightCostRule == null || FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); if (FreightCostRule != null && FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 0); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } /** InvoiceRule AD_Reference_ID=150 */ -public static final int INVOICERULE_AD_Reference_ID=150; -/** After Delivery = D */ -public static final String INVOICERULE_AfterDelivery = "D"; -/** Immediate = I */ -public static final String INVOICERULE_Immediate = "I"; -/** After Order delivered = O */ -public static final String INVOICERULE_AfterOrderDelivered = "O"; -/** Customer Schedule after Delivery = S */ +public static final int INVOICERULE_AD_Reference_ID=150;/** After Delivery = D */ +public static final String INVOICERULE_AfterDelivery = "D";/** Immediate = I */ +public static final String INVOICERULE_Immediate = "I";/** After Order delivered = O */ +public static final String INVOICERULE_AfterOrderDelivered = "O";/** Customer Schedule after Delivery = S */ public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; -/** Set Invoice Rule. -@param InvoiceRule Frequency and method of invoicing */ -public void setInvoiceRule (String InvoiceRule) -{ -if (InvoiceRule == null || InvoiceRule.equals("D") || InvoiceRule.equals("I") || InvoiceRule.equals("O") || InvoiceRule.equals("S")); - else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - D - I - O - S"); -if (InvoiceRule != null && InvoiceRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceRule = InvoiceRule.substring(0,0); -} -set_Value ("InvoiceRule", InvoiceRule); -} -/** Get Invoice Rule. -@return Frequency and method of invoicing */ -public String getInvoiceRule() -{ -return (String)get_Value("InvoiceRule"); -} -/** Column name InvoiceRule */ -public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + /** Set Invoice Rule. + @param InvoiceRule + Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule) + { +if (InvoiceRule == null || InvoiceRule.equals("D") || InvoiceRule.equals("I") || InvoiceRule.equals("O") || InvoiceRule.equals("S")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - D - I - O - S"); if (InvoiceRule != null && InvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceRule = InvoiceRule.substring(0, 0); + } + set_Value (COLUMNNAME_InvoiceRule, InvoiceRule); + } + + /** Get Invoice Rule. + @return Frequency and method of invoicing + */ + public String getInvoiceRule () + { + return (String)get_Value(COLUMNNAME_InvoiceRule); + } /** Invoice_PrintFormat_ID AD_Reference_ID=261 */ public static final int INVOICE_PRINTFORMAT_ID_AD_Reference_ID=261; -/** Set Invoice Print Format. -@param Invoice_PrintFormat_ID Print Format for printing Invoices */ -public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) -{ -if (Invoice_PrintFormat_ID <= 0) set_Value ("Invoice_PrintFormat_ID", null); - else -set_Value ("Invoice_PrintFormat_ID", Integer.valueOf(Invoice_PrintFormat_ID)); -} -/** Get Invoice Print Format. -@return Print Format for printing Invoices */ -public int getInvoice_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Invoice_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Invoice_PrintFormat_ID */ -public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; -/** Set Customer. -@param IsCustomer Indicates if this Business Partner is a Customer */ -public void setIsCustomer (boolean IsCustomer) -{ -set_Value ("IsCustomer", Boolean.valueOf(IsCustomer)); -} -/** Get Customer. -@return Indicates if this Business Partner is a Customer */ -public boolean isCustomer() -{ -Object oo = get_Value("IsCustomer"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCustomer */ -public static final String COLUMNNAME_IsCustomer = "IsCustomer"; -/** Set Discount Printed. -@param IsDiscountPrinted Print Discount on Invoice and Order */ -public void setIsDiscountPrinted (boolean IsDiscountPrinted) -{ -set_Value ("IsDiscountPrinted", Boolean.valueOf(IsDiscountPrinted)); -} -/** Get Discount Printed. -@return Print Discount on Invoice and Order */ -public boolean isDiscountPrinted() -{ -Object oo = get_Value("IsDiscountPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDiscountPrinted */ -public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; -/** Set Employee. -@param IsEmployee Indicates if this Business Partner is an employee */ -public void setIsEmployee (boolean IsEmployee) -{ -set_Value ("IsEmployee", Boolean.valueOf(IsEmployee)); -} -/** Get Employee. -@return Indicates if this Business Partner is an employee */ -public boolean isEmployee() -{ -Object oo = get_Value("IsEmployee"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEmployee */ -public static final String COLUMNNAME_IsEmployee = "IsEmployee"; -/** Set One time transaction. -@param IsOneTime One time transaction */ -public void setIsOneTime (boolean IsOneTime) -{ -set_Value ("IsOneTime", Boolean.valueOf(IsOneTime)); -} -/** Get One time transaction. -@return One time transaction */ -public boolean isOneTime() -{ -Object oo = get_Value("IsOneTime"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOneTime */ -public static final String COLUMNNAME_IsOneTime = "IsOneTime"; -/** Set Prospect. -@param IsProspect Indicates this is a Prospect */ -public void setIsProspect (boolean IsProspect) -{ -set_Value ("IsProspect", Boolean.valueOf(IsProspect)); -} -/** Get Prospect. -@return Indicates this is a Prospect */ -public boolean isProspect() -{ -Object oo = get_Value("IsProspect"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsProspect */ -public static final String COLUMNNAME_IsProspect = "IsProspect"; -/** Set Sales Representative. -@param IsSalesRep Indicates if the business partner is a sales representative or company agent */ -public void setIsSalesRep (boolean IsSalesRep) -{ -set_Value ("IsSalesRep", Boolean.valueOf(IsSalesRep)); -} -/** Get Sales Representative. -@return Indicates if the business partner is a sales representative or company agent */ -public boolean isSalesRep() -{ -Object oo = get_Value("IsSalesRep"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSalesRep */ -public static final String COLUMNNAME_IsSalesRep = "IsSalesRep"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Tax exempt. -@param IsTaxExempt Business partner is exempt from tax */ -public void setIsTaxExempt (boolean IsTaxExempt) -{ -set_Value ("IsTaxExempt", Boolean.valueOf(IsTaxExempt)); -} -/** Get Tax exempt. -@return Business partner is exempt from tax */ -public boolean isTaxExempt() -{ -Object oo = get_Value("IsTaxExempt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxExempt */ -public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; -/** Set Vendor. -@param IsVendor Indicates if this Business Partner is a Vendor */ -public void setIsVendor (boolean IsVendor) -{ -set_Value ("IsVendor", Boolean.valueOf(IsVendor)); -} -/** Get Vendor. -@return Indicates if this Business Partner is a Vendor */ -public boolean isVendor() -{ -Object oo = get_Value("IsVendor"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsVendor */ -public static final String COLUMNNAME_IsVendor = "IsVendor"; + /** Set Invoice Print Format. + @param Invoice_PrintFormat_ID + Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) + { + if (Invoice_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Invoice_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Invoice_PrintFormat_ID, Integer.valueOf(Invoice_PrintFormat_ID)); + } + + /** Get Invoice Print Format. + @return Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer. + @param IsCustomer + Indicates if this Business Partner is a Customer + */ + public void setIsCustomer (boolean IsCustomer) + { + set_Value (COLUMNNAME_IsCustomer, Boolean.valueOf(IsCustomer)); + } + + /** Get Customer. + @return Indicates if this Business Partner is a Customer + */ + public boolean isCustomer () + { + Object oo = get_Value(COLUMNNAME_IsCustomer); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Employee. + @param IsEmployee + Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee) + { + set_Value (COLUMNNAME_IsEmployee, Boolean.valueOf(IsEmployee)); + } + + /** Get Employee. + @return Indicates if this Business Partner is an employee + */ + public boolean isEmployee () + { + Object oo = get_Value(COLUMNNAME_IsEmployee); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set One time transaction. + @param IsOneTime One time transaction */ + public void setIsOneTime (boolean IsOneTime) + { + set_Value (COLUMNNAME_IsOneTime, Boolean.valueOf(IsOneTime)); + } + + /** Get One time transaction. +@return One time transaction */ + public boolean isOneTime () + { + Object oo = get_Value(COLUMNNAME_IsOneTime); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Prospect. + @param IsProspect + Indicates this is a Prospect + */ + public void setIsProspect (boolean IsProspect) + { + set_Value (COLUMNNAME_IsProspect, Boolean.valueOf(IsProspect)); + } + + /** Get Prospect. + @return Indicates this is a Prospect + */ + public boolean isProspect () + { + Object oo = get_Value(COLUMNNAME_IsProspect); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Representative. + @param IsSalesRep + Indicates if the business partner is a sales representative or company agent + */ + public void setIsSalesRep (boolean IsSalesRep) + { + set_Value (COLUMNNAME_IsSalesRep, Boolean.valueOf(IsSalesRep)); + } + + /** Get Sales Representative. + @return Indicates if the business partner is a sales representative or company agent + */ + public boolean isSalesRep () + { + Object oo = get_Value(COLUMNNAME_IsSalesRep); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax exempt. + @param IsTaxExempt + Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt) + { + set_Value (COLUMNNAME_IsTaxExempt, Boolean.valueOf(IsTaxExempt)); + } + + /** Get Tax exempt. + @return Business partner is exempt from tax + */ + public boolean isTaxExempt () + { + Object oo = get_Value(COLUMNNAME_IsTaxExempt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Vendor. + @param IsVendor + Indicates if this Business Partner is a Vendor + */ + public void setIsVendor (boolean IsVendor) + { + set_Value (COLUMNNAME_IsVendor, Boolean.valueOf(IsVendor)); + } + + /** Get Vendor. + @return Indicates if this Business Partner is a Vendor + */ + public boolean isVendor () + { + Object oo = get_Value(COLUMNNAME_IsVendor); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** M_DiscountSchema_ID AD_Reference_ID=325 */ public static final int M_DISCOUNTSCHEMA_ID_AD_Reference_ID=325; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID <= 0) set_Value ("M_DiscountSchema_ID", null); - else -set_Value ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID <= 0) set_Value ("M_PriceList_ID", null); - else -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set NAICS/SIC. -@param NAICS Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html */ -public void setNAICS (String NAICS) -{ -if (NAICS != null && NAICS.length() > 6) -{ -log.warning("Length > 6 - truncated"); -NAICS = NAICS.substring(0,5); -} -set_Value ("NAICS", NAICS); -} -/** Get NAICS/SIC. -@return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html */ -public String getNAICS() -{ -return (String)get_Value("NAICS"); -} -/** Column name NAICS */ -public static final String COLUMNNAME_NAICS = "NAICS"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Name 2. -@param Name2 Additional Name */ -public void setName2 (String Name2) -{ -if (Name2 != null && Name2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name2 = Name2.substring(0,59); -} -set_Value ("Name2", Name2); -} -/** Get Name 2. -@return Additional Name */ -public String getName2() -{ -return (String)get_Value("Name2"); -} -/** Column name Name2 */ -public static final String COLUMNNAME_Name2 = "Name2"; -/** Set Employees. -@param NumberEmployees Number of employees */ -public void setNumberEmployees (int NumberEmployees) -{ -set_Value ("NumberEmployees", Integer.valueOf(NumberEmployees)); -} -/** Get Employees. -@return Number of employees */ -public int getNumberEmployees() -{ -Integer ii = (Integer)get_Value("NumberEmployees"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NumberEmployees */ -public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; -/** Set Order Reference. -@param POReference Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public void setPOReference (String POReference) -{ -if (POReference != null && POReference.length() > 20) -{ -log.warning("Length > 20 - truncated"); -POReference = POReference.substring(0,19); -} -set_Value ("POReference", POReference); -} -/** Get Order Reference. -@return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public String getPOReference() -{ -return (String)get_Value("POReference"); -} -/** Column name POReference */ -public static final String COLUMNNAME_POReference = "POReference"; + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID <= 0) set_Value (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID <= 0) set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set NAICS/SIC. + @param NAICS + Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS) + { + if (NAICS != null && NAICS.length() > 6) + { + log.warning("Length > 6 - truncated"); + NAICS = NAICS.substring(0, 5); + } + set_Value (COLUMNNAME_NAICS, NAICS); + } + + /** Get NAICS/SIC. + @return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS () + { + return (String)get_Value(COLUMNNAME_NAICS); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Name 2. + @param Name2 + Additional Name + */ + public void setName2 (String Name2) + { + if (Name2 != null && Name2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name2 = Name2.substring(0, 59); + } + set_Value (COLUMNNAME_Name2, Name2); + } + + /** Get Name 2. + @return Additional Name + */ + public String getName2 () + { + return (String)get_Value(COLUMNNAME_Name2); + } + + /** Set Employees. + @param NumberEmployees + Number of employees + */ + public void setNumberEmployees (int NumberEmployees) + { + set_Value (COLUMNNAME_NumberEmployees, Integer.valueOf(NumberEmployees)); + } + + /** Get Employees. + @return Number of employees + */ + public int getNumberEmployees () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NumberEmployees); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 19); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } /** PO_DiscountSchema_ID AD_Reference_ID=325 */ public static final int PO_DISCOUNTSCHEMA_ID_AD_Reference_ID=325; -/** Set PO Discount Schema. -@param PO_DiscountSchema_ID Schema to calculate the purchase trade discount percentage */ -public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) -{ -if (PO_DiscountSchema_ID <= 0) set_Value ("PO_DiscountSchema_ID", null); - else -set_Value ("PO_DiscountSchema_ID", Integer.valueOf(PO_DiscountSchema_ID)); -} -/** Get PO Discount Schema. -@return Schema to calculate the purchase trade discount percentage */ -public int getPO_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("PO_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_DiscountSchema_ID */ -public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + /** Set PO Discount Schema. + @param PO_DiscountSchema_ID + Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) + { + if (PO_DiscountSchema_ID <= 0) set_Value (COLUMNNAME_PO_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_PO_DiscountSchema_ID, Integer.valueOf(PO_DiscountSchema_ID)); + } + + /** Get PO Discount Schema. + @return Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PO_PaymentTerm_ID AD_Reference_ID=227 */ public static final int PO_PAYMENTTERM_ID_AD_Reference_ID=227; -/** Set PO Payment Term. -@param PO_PaymentTerm_ID Payment rules for a purchase order */ -public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID) -{ -if (PO_PaymentTerm_ID <= 0) set_Value ("PO_PaymentTerm_ID", null); - else -set_Value ("PO_PaymentTerm_ID", Integer.valueOf(PO_PaymentTerm_ID)); -} -/** Get PO Payment Term. -@return Payment rules for a purchase order */ -public int getPO_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("PO_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_PaymentTerm_ID */ -public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; + /** Set PO Payment Term. + @param PO_PaymentTerm_ID + Payment rules for a purchase order + */ + public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID) + { + if (PO_PaymentTerm_ID <= 0) set_Value (COLUMNNAME_PO_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_PO_PaymentTerm_ID, Integer.valueOf(PO_PaymentTerm_ID)); + } + + /** Get PO Payment Term. + @return Payment rules for a purchase order + */ + public int getPO_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PO_PriceList_ID AD_Reference_ID=166 */ public static final int PO_PRICELIST_ID_AD_Reference_ID=166; -/** Set Purchase Pricelist. -@param PO_PriceList_ID Price List used by this Business Partner */ -public void setPO_PriceList_ID (int PO_PriceList_ID) -{ -if (PO_PriceList_ID <= 0) set_Value ("PO_PriceList_ID", null); - else -set_Value ("PO_PriceList_ID", Integer.valueOf(PO_PriceList_ID)); -} -/** Get Purchase Pricelist. -@return Price List used by this Business Partner */ -public int getPO_PriceList_ID() -{ -Integer ii = (Integer)get_Value("PO_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_PriceList_ID */ -public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; + /** Set Purchase Pricelist. + @param PO_PriceList_ID + Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID) + { + if (PO_PriceList_ID <= 0) set_Value (COLUMNNAME_PO_PriceList_ID, null); + else + set_Value (COLUMNNAME_PO_PriceList_ID, Integer.valueOf(PO_PriceList_ID)); + } + + /** Get Purchase Pricelist. + @return Price List used by this Business Partner + */ + public int getPO_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null || PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule != null && PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_Value ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null || PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule != null && PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } /** PaymentRulePO AD_Reference_ID=195 */ -public static final int PAYMENTRULEPO_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULEPO_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULEPO_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULEPO_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULEPO_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULEPO_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULEPO_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULEPO_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULEPO_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULEPO_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULEPO_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULEPO_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULEPO_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRulePO Purchase payment option */ -public void setPaymentRulePO (String PaymentRulePO) -{ -if (PaymentRulePO == null || PaymentRulePO.equals("B") || PaymentRulePO.equals("D") || PaymentRulePO.equals("K") || PaymentRulePO.equals("P") || PaymentRulePO.equals("S") || PaymentRulePO.equals("T")); - else throw new IllegalArgumentException ("PaymentRulePO Invalid value - " + PaymentRulePO + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRulePO != null && PaymentRulePO.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRulePO = PaymentRulePO.substring(0,0); -} -set_Value ("PaymentRulePO", PaymentRulePO); -} -/** Get Payment Rule. -@return Purchase payment option */ -public String getPaymentRulePO() -{ -return (String)get_Value("PaymentRulePO"); -} -/** Column name PaymentRulePO */ -public static final String COLUMNNAME_PaymentRulePO = "PaymentRulePO"; -/** Set Potential Life Time Value. -@param PotentialLifeTimeValue Total Revenue expected */ -public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue) -{ -set_Value ("PotentialLifeTimeValue", PotentialLifeTimeValue); -} -/** Get Potential Life Time Value. -@return Total Revenue expected */ -public BigDecimal getPotentialLifeTimeValue() -{ -BigDecimal bd = (BigDecimal)get_Value("PotentialLifeTimeValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PotentialLifeTimeValue */ -public static final String COLUMNNAME_PotentialLifeTimeValue = "PotentialLifeTimeValue"; -/** Set Rating. -@param Rating Classification or Importance */ -public void setRating (String Rating) -{ -if (Rating != null && Rating.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Rating = Rating.substring(0,0); -} -set_Value ("Rating", Rating); -} -/** Get Rating. -@return Classification or Importance */ -public String getRating() -{ -return (String)get_Value("Rating"); -} -/** Column name Rating */ -public static final String COLUMNNAME_Rating = "Rating"; -/** Set Reference No. -@param ReferenceNo Your customer or vendor number at the Business Partner's site */ -public void setReferenceNo (String ReferenceNo) -{ -if (ReferenceNo != null && ReferenceNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ReferenceNo = ReferenceNo.substring(0,39); -} -set_Value ("ReferenceNo", ReferenceNo); -} -/** Get Reference No. -@return Your customer or vendor number at the Business Partner's site */ -public String getReferenceNo() -{ -return (String)get_Value("ReferenceNo"); -} -/** Column name ReferenceNo */ -public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; + /** Set Payment Rule. + @param PaymentRulePO + Purchase payment option + */ + public void setPaymentRulePO (String PaymentRulePO) + { +if (PaymentRulePO == null || PaymentRulePO.equals("B") || PaymentRulePO.equals("D") || PaymentRulePO.equals("K") || PaymentRulePO.equals("P") || PaymentRulePO.equals("S") || PaymentRulePO.equals("T")); else throw new IllegalArgumentException ("PaymentRulePO Invalid value - " + PaymentRulePO + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRulePO != null && PaymentRulePO.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRulePO = PaymentRulePO.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRulePO, PaymentRulePO); + } + + /** Get Payment Rule. + @return Purchase payment option + */ + public String getPaymentRulePO () + { + return (String)get_Value(COLUMNNAME_PaymentRulePO); + } + + /** Set Potential Life Time Value. + @param PotentialLifeTimeValue + Total Revenue expected + */ + public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue) + { + set_Value (COLUMNNAME_PotentialLifeTimeValue, PotentialLifeTimeValue); + } + + /** Get Potential Life Time Value. + @return Total Revenue expected + */ + public BigDecimal getPotentialLifeTimeValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PotentialLifeTimeValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Rating. + @param Rating + Classification or Importance + */ + public void setRating (String Rating) + { + if (Rating != null && Rating.length() > 1) + { + log.warning("Length > 1 - truncated"); + Rating = Rating.substring(0, 0); + } + set_Value (COLUMNNAME_Rating, Rating); + } + + /** Get Rating. + @return Classification or Importance + */ + public String getRating () + { + return (String)get_Value(COLUMNNAME_Rating); + } + + /** Set Reference No. + @param ReferenceNo + Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo) + { + if (ReferenceNo != null && ReferenceNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + ReferenceNo = ReferenceNo.substring(0, 39); + } + set_Value (COLUMNNAME_ReferenceNo, ReferenceNo); + } + + /** Get Reference No. + @return Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo () + { + return (String)get_Value(COLUMNNAME_ReferenceNo); + } /** SOCreditStatus AD_Reference_ID=289 */ -public static final int SOCREDITSTATUS_AD_Reference_ID=289; -/** Credit Hold = H */ -public static final String SOCREDITSTATUS_CreditHold = "H"; -/** Credit OK = O */ -public static final String SOCREDITSTATUS_CreditOK = "O"; -/** Credit Stop = S */ -public static final String SOCREDITSTATUS_CreditStop = "S"; -/** Credit Watch = W */ -public static final String SOCREDITSTATUS_CreditWatch = "W"; -/** No Credit Check = X */ +public static final int SOCREDITSTATUS_AD_Reference_ID=289;/** Credit Hold = H */ +public static final String SOCREDITSTATUS_CreditHold = "H";/** Credit OK = O */ +public static final String SOCREDITSTATUS_CreditOK = "O";/** Credit Stop = S */ +public static final String SOCREDITSTATUS_CreditStop = "S";/** Credit Watch = W */ +public static final String SOCREDITSTATUS_CreditWatch = "W";/** No Credit Check = X */ public static final String SOCREDITSTATUS_NoCreditCheck = "X"; -/** Set Credit Status. -@param SOCreditStatus Business Partner Credit Status */ -public void setSOCreditStatus (String SOCreditStatus) -{ -if (SOCreditStatus == null || SOCreditStatus.equals("H") || SOCreditStatus.equals("O") || SOCreditStatus.equals("S") || SOCreditStatus.equals("W") || SOCreditStatus.equals("X")); - else throw new IllegalArgumentException ("SOCreditStatus Invalid value - " + SOCreditStatus + " - Reference_ID=289 - H - O - S - W - X"); -if (SOCreditStatus != null && SOCreditStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SOCreditStatus = SOCreditStatus.substring(0,0); -} -set_Value ("SOCreditStatus", SOCreditStatus); -} -/** Get Credit Status. -@return Business Partner Credit Status */ -public String getSOCreditStatus() -{ -return (String)get_Value("SOCreditStatus"); -} -/** Column name SOCreditStatus */ -public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; -/** Set Credit Limit. -@param SO_CreditLimit Total outstanding invoice amounts allowed */ -public void setSO_CreditLimit (BigDecimal SO_CreditLimit) -{ -if (SO_CreditLimit == null) throw new IllegalArgumentException ("SO_CreditLimit is mandatory."); -set_Value ("SO_CreditLimit", SO_CreditLimit); -} -/** Get Credit Limit. -@return Total outstanding invoice amounts allowed */ -public BigDecimal getSO_CreditLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("SO_CreditLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SO_CreditLimit */ -public static final String COLUMNNAME_SO_CreditLimit = "SO_CreditLimit"; -/** Set Credit Used. -@param SO_CreditUsed Current open balance */ -public void setSO_CreditUsed (BigDecimal SO_CreditUsed) -{ -if (SO_CreditUsed == null) throw new IllegalArgumentException ("SO_CreditUsed is mandatory."); -set_ValueNoCheck ("SO_CreditUsed", SO_CreditUsed); -} -/** Get Credit Used. -@return Current open balance */ -public BigDecimal getSO_CreditUsed() -{ -BigDecimal bd = (BigDecimal)get_Value("SO_CreditUsed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SO_CreditUsed */ -public static final String COLUMNNAME_SO_CreditUsed = "SO_CreditUsed"; -/** Set Order Description. -@param SO_Description Description to be used on orders */ -public void setSO_Description (String SO_Description) -{ -if (SO_Description != null && SO_Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -SO_Description = SO_Description.substring(0,254); -} -set_Value ("SO_Description", SO_Description); -} -/** Get Order Description. -@return Description to be used on orders */ -public String getSO_Description() -{ -return (String)get_Value("SO_Description"); -} -/** Column name SO_Description */ -public static final String COLUMNNAME_SO_Description = "SO_Description"; + /** Set Credit Status. + @param SOCreditStatus + Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus) + { +if (SOCreditStatus == null || SOCreditStatus.equals("H") || SOCreditStatus.equals("O") || SOCreditStatus.equals("S") || SOCreditStatus.equals("W") || SOCreditStatus.equals("X")); else throw new IllegalArgumentException ("SOCreditStatus Invalid value - " + SOCreditStatus + " - Reference_ID=289 - H - O - S - W - X"); if (SOCreditStatus != null && SOCreditStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SOCreditStatus = SOCreditStatus.substring(0, 0); + } + set_Value (COLUMNNAME_SOCreditStatus, SOCreditStatus); + } + + /** Get Credit Status. + @return Business Partner Credit Status + */ + public String getSOCreditStatus () + { + return (String)get_Value(COLUMNNAME_SOCreditStatus); + } + + /** Set Credit Limit. + @param SO_CreditLimit + Total outstanding invoice amounts allowed + */ + public void setSO_CreditLimit (BigDecimal SO_CreditLimit) + { + if (SO_CreditLimit == null) + throw new IllegalArgumentException ("SO_CreditLimit is mandatory."); + set_Value (COLUMNNAME_SO_CreditLimit, SO_CreditLimit); + } + + /** Get Credit Limit. + @return Total outstanding invoice amounts allowed + */ + public BigDecimal getSO_CreditLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Credit Used. + @param SO_CreditUsed + Current open balance + */ + public void setSO_CreditUsed (BigDecimal SO_CreditUsed) + { + if (SO_CreditUsed == null) + throw new IllegalArgumentException ("SO_CreditUsed is mandatory."); + set_ValueNoCheck (COLUMNNAME_SO_CreditUsed, SO_CreditUsed); + } + + /** Get Credit Used. + @return Current open balance + */ + public BigDecimal getSO_CreditUsed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditUsed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Order Description. + @param SO_Description + Description to be used on orders + */ + public void setSO_Description (String SO_Description) + { + if (SO_Description != null && SO_Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + SO_Description = SO_Description.substring(0, 254); + } + set_Value (COLUMNNAME_SO_Description, SO_Description); + } + + /** Get Order Description. + @return Description to be used on orders + */ + public String getSO_Description () + { + return (String)get_Value(COLUMNNAME_SO_Description); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Sales Volume in 1.000. -@param SalesVolume Total Volume of Sales in Thousands of Currency */ -public void setSalesVolume (int SalesVolume) -{ -set_Value ("SalesVolume", Integer.valueOf(SalesVolume)); -} -/** Get Sales Volume in 1.000. -@return Total Volume of Sales in Thousands of Currency */ -public int getSalesVolume() -{ -Integer ii = (Integer)get_Value("SalesVolume"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesVolume */ -public static final String COLUMNNAME_SalesVolume = "SalesVolume"; -/** Set Send EMail. -@param SendEMail Enable sending Document EMail */ -public void setSendEMail (boolean SendEMail) -{ -set_Value ("SendEMail", Boolean.valueOf(SendEMail)); -} -/** Get Send EMail. -@return Enable sending Document EMail */ -public boolean isSendEMail() -{ -Object oo = get_Value("SendEMail"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendEMail */ -public static final String COLUMNNAME_SendEMail = "SendEMail"; -/** Set Share. -@param ShareOfCustomer Share of Customer's business as a percentage */ -public void setShareOfCustomer (int ShareOfCustomer) -{ -set_Value ("ShareOfCustomer", Integer.valueOf(ShareOfCustomer)); -} -/** Get Share. -@return Share of Customer's business as a percentage */ -public int getShareOfCustomer() -{ -Integer ii = (Integer)get_Value("ShareOfCustomer"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShareOfCustomer */ -public static final String COLUMNNAME_ShareOfCustomer = "ShareOfCustomer"; -/** Set Min Shelf Life %. -@param ShelfLifeMinPct Minimum Shelf Life in percent based on Product Instance Guarantee Date */ -public void setShelfLifeMinPct (int ShelfLifeMinPct) -{ -set_Value ("ShelfLifeMinPct", Integer.valueOf(ShelfLifeMinPct)); -} -/** Get Min Shelf Life %. -@return Minimum Shelf Life in percent based on Product Instance Guarantee Date */ -public int getShelfLifeMinPct() -{ -Integer ii = (Integer)get_Value("ShelfLifeMinPct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfLifeMinPct */ -public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; -/** Set Tax ID. -@param TaxID Tax Identification */ -public void setTaxID (String TaxID) -{ -if (TaxID != null && TaxID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -TaxID = TaxID.substring(0,19); -} -set_Value ("TaxID", TaxID); -} -/** Get Tax ID. -@return Tax Identification */ -public String getTaxID() -{ -return (String)get_Value("TaxID"); -} -/** Column name TaxID */ -public static final String COLUMNNAME_TaxID = "TaxID"; -/** Set Open Balance. -@param TotalOpenBalance Total Open Balance Amount in primary Accounting Currency */ -public void setTotalOpenBalance (BigDecimal TotalOpenBalance) -{ -set_Value ("TotalOpenBalance", TotalOpenBalance); -} -/** Get Open Balance. -@return Total Open Balance Amount in primary Accounting Currency */ -public BigDecimal getTotalOpenBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalOpenBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalOpenBalance */ -public static final String COLUMNNAME_TotalOpenBalance = "TotalOpenBalance"; -/** Set URL. -@param URL Full URL address - e.g. http://www.adempiere.org */ -public void setURL (String URL) -{ -if (URL != null && URL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -URL = URL.substring(0,119); -} -set_Value ("URL", URL); -} -/** Get URL. -@return Full URL address - e.g. http://www.adempiere.org */ -public String getURL() -{ -return (String)get_Value("URL"); -} -/** Column name URL */ -public static final String COLUMNNAME_URL = "URL"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Volume in 1.000. + @param SalesVolume + Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (int SalesVolume) + { + set_Value (COLUMNNAME_SalesVolume, Integer.valueOf(SalesVolume)); + } + + /** Get Sales Volume in 1.000. + @return Total Volume of Sales in Thousands of Currency + */ + public int getSalesVolume () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesVolume); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Share. + @param ShareOfCustomer + Share of Customer's business as a percentage + */ + public void setShareOfCustomer (int ShareOfCustomer) + { + set_Value (COLUMNNAME_ShareOfCustomer, Integer.valueOf(ShareOfCustomer)); + } + + /** Get Share. + @return Share of Customer's business as a percentage + */ + public int getShareOfCustomer () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShareOfCustomer); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Min Shelf Life %. + @param ShelfLifeMinPct + Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct) + { + set_Value (COLUMNNAME_ShelfLifeMinPct, Integer.valueOf(ShelfLifeMinPct)); + } + + /** Get Min Shelf Life %. + @return Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfLifeMinPct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax ID. + @param TaxID + Tax Identification + */ + public void setTaxID (String TaxID) + { + if (TaxID != null && TaxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + TaxID = TaxID.substring(0, 19); + } + set_Value (COLUMNNAME_TaxID, TaxID); + } + + /** Get Tax ID. + @return Tax Identification + */ + public String getTaxID () + { + return (String)get_Value(COLUMNNAME_TaxID); + } + + /** Set Open Balance. + @param TotalOpenBalance + Total Open Balance Amount in primary Accounting Currency + */ + public void setTotalOpenBalance (BigDecimal TotalOpenBalance) + { + set_Value (COLUMNNAME_TotalOpenBalance, TotalOpenBalance); + } + + /** Get Open Balance. + @return Total Open Balance Amount in primary Accounting Currency + */ + public BigDecimal getTotalOpenBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalOpenBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set URL. + @param URL + Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL) + { + if (URL != null && URL.length() > 120) + { + log.warning("Length > 120 - truncated"); + URL = URL.substring(0, 119); + } + set_Value (COLUMNNAME_URL, URL); + } + + /** Get URL. + @return Full URL address - e.g. http://www.adempiere.org + */ + public String getURL () + { + return (String)get_Value(COLUMNNAME_URL); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file 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 d515827c61..1543ff03b5 100644 --- a/base/src/org/compiere/model/X_C_BPartner_Location.java +++ b/base/src/org/compiere/model/X_C_BPartner_Location.java @@ -1,346 +1,405 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BPartner_Location - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BPartner_Location extends PO + +/** Generated Model for C_BPartner_Location + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BPartner_Location extends PO implements I_C_BPartner_Location, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BPartner_Location_ID id -@param trxName transaction -*/ -public X_C_BPartner_Location (Properties ctx, int C_BPartner_Location_ID, String trxName) -{ -super (ctx, C_BPartner_Location_ID, trxName); -/** if (C_BPartner_Location_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_Location_ID (0); -setIsBillTo (true); // Y -setIsPayFrom (true); // Y -setIsRemitTo (true); // Y -setIsShipTo (true); // Y -setName (null); // . -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BPartner_Location (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BPartner_Location */ -public static final String Table_Name="C_BPartner_Location"; - -/** AD_Table_ID=293 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BPartner_Location[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID < 1) throw new IllegalArgumentException ("C_Location_ID is mandatory."); -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Fax. -@param Fax Facsimile number */ -public void setFax (String Fax) -{ -if (Fax != null && Fax.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Fax = Fax.substring(0,39); -} -set_Value ("Fax", Fax); -} -/** Get Fax. -@return Facsimile number */ -public String getFax() -{ -return (String)get_Value("Fax"); -} -/** Column name Fax */ -public static final String COLUMNNAME_Fax = "Fax"; -/** Set ISDN. -@param ISDN ISDN or modem line */ -public void setISDN (String ISDN) -{ -if (ISDN != null && ISDN.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ISDN = ISDN.substring(0,39); -} -set_Value ("ISDN", ISDN); -} -/** Get ISDN. -@return ISDN or modem line */ -public String getISDN() -{ -return (String)get_Value("ISDN"); -} -/** Column name ISDN */ -public static final String COLUMNNAME_ISDN = "ISDN"; -/** Set Invoice Address. -@param IsBillTo Business Partner Invoice/Bill Address */ -public void setIsBillTo (boolean IsBillTo) -{ -set_Value ("IsBillTo", Boolean.valueOf(IsBillTo)); -} -/** Get Invoice Address. -@return Business Partner Invoice/Bill Address */ -public boolean isBillTo() -{ -Object oo = get_Value("IsBillTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBillTo */ -public static final String COLUMNNAME_IsBillTo = "IsBillTo"; -/** Set Pay-From Address. -@param IsPayFrom Business Partner pays from that address and we'll send dunning letters there */ -public void setIsPayFrom (boolean IsPayFrom) -{ -set_Value ("IsPayFrom", Boolean.valueOf(IsPayFrom)); -} -/** Get Pay-From Address. -@return Business Partner pays from that address and we'll send dunning letters there */ -public boolean isPayFrom() -{ -Object oo = get_Value("IsPayFrom"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPayFrom */ -public static final String COLUMNNAME_IsPayFrom = "IsPayFrom"; -/** Set Remit-To Address. -@param IsRemitTo Business Partner payment address */ -public void setIsRemitTo (boolean IsRemitTo) -{ -set_Value ("IsRemitTo", Boolean.valueOf(IsRemitTo)); -} -/** Get Remit-To Address. -@return Business Partner payment address */ -public boolean isRemitTo() -{ -Object oo = get_Value("IsRemitTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRemitTo */ -public static final String COLUMNNAME_IsRemitTo = "IsRemitTo"; -/** Set Ship Address. -@param IsShipTo Business Partner Shipment Address */ -public void setIsShipTo (boolean IsShipTo) -{ -set_Value ("IsShipTo", Boolean.valueOf(IsShipTo)); -} -/** Get Ship Address. -@return Business Partner Shipment Address */ -public boolean isShipTo() -{ -Object oo = get_Value("IsShipTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsShipTo */ -public static final String COLUMNNAME_IsShipTo = "IsShipTo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Phone. -@param Phone Identifies a telephone number */ -public void setPhone (String Phone) -{ -if (Phone != null && Phone.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone = Phone.substring(0,39); -} -set_Value ("Phone", Phone); -} -/** Get Phone. -@return Identifies a telephone number */ -public String getPhone() -{ -return (String)get_Value("Phone"); -} -/** Column name Phone */ -public static final String COLUMNNAME_Phone = "Phone"; -/** Set 2nd Phone. -@param Phone2 Identifies an alternate telephone number. */ -public void setPhone2 (String Phone2) -{ -if (Phone2 != null && Phone2.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone2 = Phone2.substring(0,39); -} -set_Value ("Phone2", Phone2); -} -/** Get 2nd Phone. -@return Identifies an alternate telephone number. */ -public String getPhone2() -{ -return (String)get_Value("Phone2"); -} -/** Column name Phone2 */ -public static final String COLUMNNAME_Phone2 = "Phone2"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BPartner_Location (Properties ctx, int C_BPartner_Location_ID, String trxName) + { + super (ctx, C_BPartner_Location_ID, trxName); + /** if (C_BPartner_Location_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Location_ID (0); + setIsBillTo (true); +// Y + setIsPayFrom (true); +// Y + setIsRemitTo (true); +// Y + setIsShipTo (true); +// Y + setName (null); +// . +} */ + } + + /** Load Constructor */ + public X_C_BPartner_Location (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BPartner_Location[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID < 1) + throw new IllegalArgumentException ("C_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Fax. + @param Fax + Facsimile number + */ + public void setFax (String Fax) + { + if (Fax != null && Fax.length() > 40) + { + log.warning("Length > 40 - truncated"); + Fax = Fax.substring(0, 39); + } + set_Value (COLUMNNAME_Fax, Fax); + } + + /** Get Fax. + @return Facsimile number + */ + public String getFax () + { + return (String)get_Value(COLUMNNAME_Fax); + } + + /** Set ISDN. + @param ISDN + ISDN or modem line + */ + public void setISDN (String ISDN) + { + if (ISDN != null && ISDN.length() > 40) + { + log.warning("Length > 40 - truncated"); + ISDN = ISDN.substring(0, 39); + } + set_Value (COLUMNNAME_ISDN, ISDN); + } + + /** Get ISDN. + @return ISDN or modem line + */ + public String getISDN () + { + return (String)get_Value(COLUMNNAME_ISDN); + } + + /** Set Invoice Address. + @param IsBillTo + Business Partner Invoice/Bill Address + */ + public void setIsBillTo (boolean IsBillTo) + { + set_Value (COLUMNNAME_IsBillTo, Boolean.valueOf(IsBillTo)); + } + + /** Get Invoice Address. + @return Business Partner Invoice/Bill Address + */ + public boolean isBillTo () + { + Object oo = get_Value(COLUMNNAME_IsBillTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pay-From Address. + @param IsPayFrom + Business Partner pays from that address and we'll send dunning letters there + */ + public void setIsPayFrom (boolean IsPayFrom) + { + set_Value (COLUMNNAME_IsPayFrom, Boolean.valueOf(IsPayFrom)); + } + + /** Get Pay-From Address. + @return Business Partner pays from that address and we'll send dunning letters there + */ + public boolean isPayFrom () + { + Object oo = get_Value(COLUMNNAME_IsPayFrom); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Remit-To Address. + @param IsRemitTo + Business Partner payment address + */ + public void setIsRemitTo (boolean IsRemitTo) + { + set_Value (COLUMNNAME_IsRemitTo, Boolean.valueOf(IsRemitTo)); + } + + /** Get Remit-To Address. + @return Business Partner payment address + */ + public boolean isRemitTo () + { + Object oo = get_Value(COLUMNNAME_IsRemitTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship Address. + @param IsShipTo + Business Partner Shipment Address + */ + public void setIsShipTo (boolean IsShipTo) + { + set_Value (COLUMNNAME_IsShipTo, Boolean.valueOf(IsShipTo)); + } + + /** Get Ship Address. + @return Business Partner Shipment Address + */ + public boolean isShipTo () + { + Object oo = get_Value(COLUMNNAME_IsShipTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Phone. + @param Phone + Identifies a telephone number + */ + public void setPhone (String Phone) + { + if (Phone != null && Phone.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone = Phone.substring(0, 39); + } + set_Value (COLUMNNAME_Phone, Phone); + } + + /** Get Phone. + @return Identifies a telephone number + */ + public String getPhone () + { + return (String)get_Value(COLUMNNAME_Phone); + } + + /** Set 2nd Phone. + @param Phone2 + Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2) + { + if (Phone2 != null && Phone2.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone2 = Phone2.substring(0, 39); + } + set_Value (COLUMNNAME_Phone2, Phone2); + } + + /** Get 2nd Phone. + @return Identifies an alternate telephone number. + */ + public String getPhone2 () + { + return (String)get_Value(COLUMNNAME_Phone2); + } +} \ No newline at end of file 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 abf9b18b68..4c0696bfa6 100644 --- a/base/src/org/compiere/model/X_C_BPartner_Product.java +++ b/base/src/org/compiere/model/X_C_BPartner_Product.java @@ -1,249 +1,268 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BPartner_Product - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BPartner_Product extends PO + +/** Generated Model for C_BPartner_Product + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BPartner_Product extends PO implements I_C_BPartner_Product, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BPartner_Product_ID id -@param trxName transaction -*/ -public X_C_BPartner_Product (Properties ctx, int C_BPartner_Product_ID, String trxName) -{ -super (ctx, C_BPartner_Product_ID, trxName); -/** if (C_BPartner_Product_ID == 0) -{ -setC_BPartner_ID (0); -setM_Product_ID (0); -setShelfLifeMinDays (0); -setShelfLifeMinPct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BPartner_Product (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BPartner_Product */ -public static final String Table_Name="C_BPartner_Product"; - -/** AD_Table_ID=632 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BPartner_Product[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Manufacturer. -@param Manufacturer Manufacturer of the Product */ -public void setManufacturer (String Manufacturer) -{ -if (Manufacturer != null && Manufacturer.length() > 30) -{ -log.warning("Length > 30 - truncated"); -Manufacturer = Manufacturer.substring(0,29); -} -set_Value ("Manufacturer", Manufacturer); -} -/** Get Manufacturer. -@return Manufacturer of the Product */ -public String getManufacturer() -{ -return (String)get_Value("Manufacturer"); -} -/** Column name Manufacturer */ -public static final String COLUMNNAME_Manufacturer = "Manufacturer"; -/** Set Quality Rating. -@param QualityRating Method for rating vendors */ -public void setQualityRating (BigDecimal QualityRating) -{ -set_Value ("QualityRating", QualityRating); -} -/** Get Quality Rating. -@return Method for rating vendors */ -public BigDecimal getQualityRating() -{ -BigDecimal bd = (BigDecimal)get_Value("QualityRating"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QualityRating */ -public static final String COLUMNNAME_QualityRating = "QualityRating"; -/** Set Min Shelf Life Days. -@param ShelfLifeMinDays Minimum Shelf Life in days based on Product Instance Guarantee Date */ -public void setShelfLifeMinDays (int ShelfLifeMinDays) -{ -set_Value ("ShelfLifeMinDays", Integer.valueOf(ShelfLifeMinDays)); -} -/** Get Min Shelf Life Days. -@return Minimum Shelf Life in days based on Product Instance Guarantee Date */ -public int getShelfLifeMinDays() -{ -Integer ii = (Integer)get_Value("ShelfLifeMinDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfLifeMinDays */ -public static final String COLUMNNAME_ShelfLifeMinDays = "ShelfLifeMinDays"; -/** Set Min Shelf Life %. -@param ShelfLifeMinPct Minimum Shelf Life in percent based on Product Instance Guarantee Date */ -public void setShelfLifeMinPct (int ShelfLifeMinPct) -{ -set_Value ("ShelfLifeMinPct", Integer.valueOf(ShelfLifeMinPct)); -} -/** Get Min Shelf Life %. -@return Minimum Shelf Life in percent based on Product Instance Guarantee Date */ -public int getShelfLifeMinPct() -{ -Integer ii = (Integer)get_Value("ShelfLifeMinPct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfLifeMinPct */ -public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; -/** Set Partner Category. -@param VendorCategory Product Category of the Business Partner */ -public void setVendorCategory (String VendorCategory) -{ -if (VendorCategory != null && VendorCategory.length() > 30) -{ -log.warning("Length > 30 - truncated"); -VendorCategory = VendorCategory.substring(0,29); -} -set_Value ("VendorCategory", VendorCategory); -} -/** Get Partner Category. -@return Product Category of the Business Partner */ -public String getVendorCategory() -{ -return (String)get_Value("VendorCategory"); -} -/** Column name VendorCategory */ -public static final String COLUMNNAME_VendorCategory = "VendorCategory"; -/** Set Partner Product Key. -@param VendorProductNo Product Key of the Business Partner */ -public void setVendorProductNo (String VendorProductNo) -{ -if (VendorProductNo != null && VendorProductNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -VendorProductNo = VendorProductNo.substring(0,29); -} -set_Value ("VendorProductNo", VendorProductNo); -} -/** Get Partner Product Key. -@return Product Key of the Business Partner */ -public String getVendorProductNo() -{ -return (String)get_Value("VendorProductNo"); -} -/** Column name VendorProductNo */ -public static final String COLUMNNAME_VendorProductNo = "VendorProductNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BPartner_Product (Properties ctx, int C_BPartner_Product_ID, String trxName) + { + super (ctx, C_BPartner_Product_ID, trxName); + /** if (C_BPartner_Product_ID == 0) { setC_BPartner_ID (0); + setM_Product_ID (0); + setShelfLifeMinDays (0); + setShelfLifeMinPct (0); +} */ + } + + /** Load Constructor */ + public X_C_BPartner_Product (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BPartner_Product[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Manufacturer. + @param Manufacturer + Manufacturer of the Product + */ + public void setManufacturer (String Manufacturer) + { + if (Manufacturer != null && Manufacturer.length() > 30) + { + log.warning("Length > 30 - truncated"); + Manufacturer = Manufacturer.substring(0, 29); + } + set_Value (COLUMNNAME_Manufacturer, Manufacturer); + } + + /** Get Manufacturer. + @return Manufacturer of the Product + */ + public String getManufacturer () + { + return (String)get_Value(COLUMNNAME_Manufacturer); + } + + /** Set Quality Rating. + @param QualityRating + Method for rating vendors + */ + public void setQualityRating (BigDecimal QualityRating) + { + set_Value (COLUMNNAME_QualityRating, QualityRating); + } + + /** Get Quality Rating. + @return Method for rating vendors + */ + public BigDecimal getQualityRating () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QualityRating); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Min Shelf Life Days. + @param ShelfLifeMinDays + Minimum Shelf Life in days based on Product Instance Guarantee Date + */ + public void setShelfLifeMinDays (int ShelfLifeMinDays) + { + set_Value (COLUMNNAME_ShelfLifeMinDays, Integer.valueOf(ShelfLifeMinDays)); + } + + /** Get Min Shelf Life Days. + @return Minimum Shelf Life in days based on Product Instance Guarantee Date + */ + public int getShelfLifeMinDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfLifeMinDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Min Shelf Life %. + @param ShelfLifeMinPct + Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct) + { + set_Value (COLUMNNAME_ShelfLifeMinPct, Integer.valueOf(ShelfLifeMinPct)); + } + + /** Get Min Shelf Life %. + @return Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfLifeMinPct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Partner Category. + @param VendorCategory + Product Category of the Business Partner + */ + public void setVendorCategory (String VendorCategory) + { + if (VendorCategory != null && VendorCategory.length() > 30) + { + log.warning("Length > 30 - truncated"); + VendorCategory = VendorCategory.substring(0, 29); + } + set_Value (COLUMNNAME_VendorCategory, VendorCategory); + } + + /** Get Partner Category. + @return Product Category of the Business Partner + */ + public String getVendorCategory () + { + return (String)get_Value(COLUMNNAME_VendorCategory); + } + + /** Set Partner Product Key. + @param VendorProductNo + Product Key of the Business Partner + */ + public void setVendorProductNo (String VendorProductNo) + { + if (VendorProductNo != null && VendorProductNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + VendorProductNo = VendorProductNo.substring(0, 29); + } + set_Value (COLUMNNAME_VendorProductNo, VendorProductNo); + } + + /** Get Partner Product Key. + @return Product Key of the Business Partner + */ + public String getVendorProductNo () + { + return (String)get_Value(COLUMNNAME_VendorProductNo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Bank.java b/base/src/org/compiere/model/X_C_Bank.java index 0560ae52e2..40c52b8a0d 100644 --- a/base/src/org/compiere/model/X_C_Bank.java +++ b/base/src/org/compiere/model/X_C_Bank.java @@ -1,230 +1,245 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Bank - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Bank extends PO + +/** Generated Model for C_Bank + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Bank extends PO implements I_C_Bank, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Bank_ID id -@param trxName transaction -*/ -public X_C_Bank (Properties ctx, int C_Bank_ID, String trxName) -{ -super (ctx, C_Bank_ID, trxName); -/** if (C_Bank_ID == 0) -{ -setC_Bank_ID (0); -setIsOwnBank (true); // Y -setName (null); -setRoutingNo (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Bank (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Bank */ -public static final String Table_Name="C_Bank"; - -/** AD_Table_ID=296 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Bank[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Bank. -@param C_Bank_ID Bank */ -public void setC_Bank_ID (int C_Bank_ID) -{ -if (C_Bank_ID < 1) throw new IllegalArgumentException ("C_Bank_ID is mandatory."); -set_ValueNoCheck ("C_Bank_ID", Integer.valueOf(C_Bank_ID)); -} -/** Get Bank. -@return Bank */ -public int getC_Bank_ID() -{ -Integer ii = (Integer)get_Value("C_Bank_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Bank_ID */ -public static final String COLUMNNAME_C_Bank_ID = "C_Bank_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Own Bank. -@param IsOwnBank Bank for this Organization */ -public void setIsOwnBank (boolean IsOwnBank) -{ -set_Value ("IsOwnBank", Boolean.valueOf(IsOwnBank)); -} -/** Get Own Bank. -@return Bank for this Organization */ -public boolean isOwnBank() -{ -Object oo = get_Value("IsOwnBank"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOwnBank */ -public static final String COLUMNNAME_IsOwnBank = "IsOwnBank"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Routing No. -@param RoutingNo Bank Routing Number */ -public void setRoutingNo (String RoutingNo) -{ -if (RoutingNo == null) throw new IllegalArgumentException ("RoutingNo is mandatory."); -if (RoutingNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RoutingNo = RoutingNo.substring(0,19); -} -set_Value ("RoutingNo", RoutingNo); -} -/** Get Routing No. -@return Bank Routing Number */ -public String getRoutingNo() -{ -return (String)get_Value("RoutingNo"); -} -/** Column name RoutingNo */ -public static final String COLUMNNAME_RoutingNo = "RoutingNo"; -/** Set Swift code. -@param SwiftCode Swift Code or BIC */ -public void setSwiftCode (String SwiftCode) -{ -if (SwiftCode != null && SwiftCode.length() > 20) -{ -log.warning("Length > 20 - truncated"); -SwiftCode = SwiftCode.substring(0,19); -} -set_Value ("SwiftCode", SwiftCode); -} -/** Get Swift code. -@return Swift Code or BIC */ -public String getSwiftCode() -{ -return (String)get_Value("SwiftCode"); -} -/** Column name SwiftCode */ -public static final String COLUMNNAME_SwiftCode = "SwiftCode"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Bank (Properties ctx, int C_Bank_ID, String trxName) + { + super (ctx, C_Bank_ID, trxName); + /** if (C_Bank_ID == 0) { setC_Bank_ID (0); + setIsOwnBank (true); +// Y + setName (null); + setRoutingNo (null); +} */ + } + + /** Load Constructor */ + public X_C_Bank (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Bank[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Bank. + @param C_Bank_ID + Bank + */ + public void setC_Bank_ID (int C_Bank_ID) + { + if (C_Bank_ID < 1) + throw new IllegalArgumentException ("C_Bank_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); + } + + /** Get Bank. + @return Bank + */ + public int getC_Bank_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Bank_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Own Bank. + @param IsOwnBank + Bank for this Organization + */ + public void setIsOwnBank (boolean IsOwnBank) + { + set_Value (COLUMNNAME_IsOwnBank, Boolean.valueOf(IsOwnBank)); + } + + /** Get Own Bank. + @return Bank for this Organization + */ + public boolean isOwnBank () + { + Object oo = get_Value(COLUMNNAME_IsOwnBank); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + if (RoutingNo == null) + throw new IllegalArgumentException ("RoutingNo is mandatory."); + if (RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 19); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } + + /** Set Swift code. + @param SwiftCode + Swift Code or BIC + */ + public void setSwiftCode (String SwiftCode) + { + if (SwiftCode != null && SwiftCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + SwiftCode = SwiftCode.substring(0, 19); + } + set_Value (COLUMNNAME_SwiftCode, SwiftCode); + } + + /** Get Swift code. + @return Swift Code or BIC + */ + public String getSwiftCode () + { + return (String)get_Value(COLUMNNAME_SwiftCode); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BankAccount.java b/base/src/org/compiere/model/X_C_BankAccount.java index dcdbb23b9e..66b543ac68 100644 --- a/base/src/org/compiere/model/X_C_BankAccount.java +++ b/base/src/org/compiere/model/X_C_BankAccount.java @@ -1,312 +1,370 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankAccount - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankAccount extends PO + +/** Generated Model for C_BankAccount + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankAccount extends PO implements I_C_BankAccount, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BankAccount_ID id -@param trxName transaction -*/ -public X_C_BankAccount (Properties ctx, int C_BankAccount_ID, String trxName) -{ -super (ctx, C_BankAccount_ID, trxName); -/** if (C_BankAccount_ID == 0) -{ -setAccountNo (null); -setBankAccountType (null); -setC_BankAccount_ID (0); -setC_Bank_ID (0); -setC_Currency_ID (0); -setCreditLimit (Env.ZERO); -setCurrentBalance (Env.ZERO); -setIsDefault (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankAccount (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankAccount */ -public static final String Table_Name="C_BankAccount"; - -/** AD_Table_ID=297 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankAccount[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Account No. -@param AccountNo Account Number */ -public void setAccountNo (String AccountNo) -{ -if (AccountNo == null) throw new IllegalArgumentException ("AccountNo is mandatory."); -if (AccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -AccountNo = AccountNo.substring(0,19); -} -set_Value ("AccountNo", AccountNo); -} -/** Get Account No. -@return Account Number */ -public String getAccountNo() -{ -return (String)get_Value("AccountNo"); -} -/** Column name AccountNo */ -public static final String COLUMNNAME_AccountNo = "AccountNo"; -/** Set BBAN. -@param BBAN Basic Bank Account Number */ -public void setBBAN (String BBAN) -{ -if (BBAN != null && BBAN.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BBAN = BBAN.substring(0,39); -} -set_Value ("BBAN", BBAN); -} -/** Get BBAN. -@return Basic Bank Account Number */ -public String getBBAN() -{ -return (String)get_Value("BBAN"); -} -/** Column name BBAN */ -public static final String COLUMNNAME_BBAN = "BBAN"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankAccount (Properties ctx, int C_BankAccount_ID, String trxName) + { + super (ctx, C_BankAccount_ID, trxName); + /** if (C_BankAccount_ID == 0) { setAccountNo (null); + setBankAccountType (null); + setC_BankAccount_ID (0); + setC_Bank_ID (0); + setC_Currency_ID (0); + setCreditLimit (Env.ZERO); + setCurrentBalance (Env.ZERO); + setIsDefault (false); +} */ + } + + /** Load Constructor */ + public X_C_BankAccount (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankAccount[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + if (AccountNo == null) + throw new IllegalArgumentException ("AccountNo is mandatory."); + if (AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } + + /** Set BBAN. + @param BBAN + Basic Bank Account Number + */ + public void setBBAN (String BBAN) + { + if (BBAN != null && BBAN.length() > 40) + { + log.warning("Length > 40 - truncated"); + BBAN = BBAN.substring(0, 39); + } + set_Value (COLUMNNAME_BBAN, BBAN); + } + + /** Get BBAN. + @return Basic Bank Account Number + */ + public String getBBAN () + { + return (String)get_Value(COLUMNNAME_BBAN); + } /** BankAccountType AD_Reference_ID=216 */ -public static final int BANKACCOUNTTYPE_AD_Reference_ID=216; -/** Checking = C */ -public static final String BANKACCOUNTTYPE_Checking = "C"; -/** Savings = S */ +public static final int BANKACCOUNTTYPE_AD_Reference_ID=216;/** Checking = C */ +public static final String BANKACCOUNTTYPE_Checking = "C";/** Savings = S */ public static final String BANKACCOUNTTYPE_Savings = "S"; -/** Set Bank Account Type. -@param BankAccountType Bank Account Type */ -public void setBankAccountType (String BankAccountType) -{ -if (BankAccountType == null) throw new IllegalArgumentException ("BankAccountType is mandatory"); -if (BankAccountType.equals("C") || BankAccountType.equals("S")); - else throw new IllegalArgumentException ("BankAccountType Invalid value - " + BankAccountType + " - Reference_ID=216 - C - S"); -if (BankAccountType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BankAccountType = BankAccountType.substring(0,0); -} -set_Value ("BankAccountType", BankAccountType); -} -/** Get Bank Account Type. -@return Bank Account Type */ -public String getBankAccountType() -{ -return (String)get_Value("BankAccountType"); -} -/** Column name BankAccountType */ -public static final String COLUMNNAME_BankAccountType = "BankAccountType"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_ValueNoCheck ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Bank. -@param C_Bank_ID Bank */ -public void setC_Bank_ID (int C_Bank_ID) -{ -if (C_Bank_ID < 1) throw new IllegalArgumentException ("C_Bank_ID is mandatory."); -set_ValueNoCheck ("C_Bank_ID", Integer.valueOf(C_Bank_ID)); -} -/** Get Bank. -@return Bank */ -public int getC_Bank_ID() -{ -Integer ii = (Integer)get_Value("C_Bank_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Bank_ID())); -} -/** Column name C_Bank_ID */ -public static final String COLUMNNAME_C_Bank_ID = "C_Bank_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Credit limit. -@param CreditLimit Amount of Credit allowed */ -public void setCreditLimit (BigDecimal CreditLimit) -{ -if (CreditLimit == null) throw new IllegalArgumentException ("CreditLimit is mandatory."); -set_Value ("CreditLimit", CreditLimit); -} -/** Get Credit limit. -@return Amount of Credit allowed */ -public BigDecimal getCreditLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("CreditLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CreditLimit */ -public static final String COLUMNNAME_CreditLimit = "CreditLimit"; -/** Set Current balance. -@param CurrentBalance Current Balance */ -public void setCurrentBalance (BigDecimal CurrentBalance) -{ -if (CurrentBalance == null) throw new IllegalArgumentException ("CurrentBalance is mandatory."); -set_Value ("CurrentBalance", CurrentBalance); -} -/** Get Current balance. -@return Current Balance */ -public BigDecimal getCurrentBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrentBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrentBalance */ -public static final String COLUMNNAME_CurrentBalance = "CurrentBalance"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set IBAN. -@param IBAN International Bank Account Number */ -public void setIBAN (String IBAN) -{ -if (IBAN != null && IBAN.length() > 40) -{ -log.warning("Length > 40 - truncated"); -IBAN = IBAN.substring(0,39); -} -set_Value ("IBAN", IBAN); -} -/** Get IBAN. -@return International Bank Account Number */ -public String getIBAN() -{ -return (String)get_Value("IBAN"); -} -/** Column name IBAN */ -public static final String COLUMNNAME_IBAN = "IBAN"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -} + /** Set Bank Account Type. + @param BankAccountType + Bank Account Type + */ + public void setBankAccountType (String BankAccountType) + { +if (BankAccountType == null) throw new IllegalArgumentException ("BankAccountType is mandatory");if (BankAccountType.equals("C") || BankAccountType.equals("S")); else throw new IllegalArgumentException ("BankAccountType Invalid value - " + BankAccountType + " - Reference_ID=216 - C - S"); if (BankAccountType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BankAccountType = BankAccountType.substring(0, 0); + } + set_Value (COLUMNNAME_BankAccountType, BankAccountType); + } + + /** Get Bank Account Type. + @return Bank Account Type + */ + public String getBankAccountType () + { + return (String)get_Value(COLUMNNAME_BankAccountType); + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Bank getI_C_Bank() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank. + @param C_Bank_ID + Bank + */ + public void setC_Bank_ID (int C_Bank_ID) + { + if (C_Bank_ID < 1) + throw new IllegalArgumentException ("C_Bank_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Bank_ID, Integer.valueOf(C_Bank_ID)); + } + + /** Get Bank. + @return Bank + */ + public int getC_Bank_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Bank_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Bank_ID())); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Credit limit. + @param CreditLimit + Amount of Credit allowed + */ + public void setCreditLimit (BigDecimal CreditLimit) + { + if (CreditLimit == null) + throw new IllegalArgumentException ("CreditLimit is mandatory."); + set_Value (COLUMNNAME_CreditLimit, CreditLimit); + } + + /** Get Credit limit. + @return Amount of Credit allowed + */ + public BigDecimal getCreditLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CreditLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Current balance. + @param CurrentBalance + Current Balance + */ + public void setCurrentBalance (BigDecimal CurrentBalance) + { + if (CurrentBalance == null) + throw new IllegalArgumentException ("CurrentBalance is mandatory."); + set_Value (COLUMNNAME_CurrentBalance, CurrentBalance); + } + + /** Get Current balance. + @return Current Balance + */ + public BigDecimal getCurrentBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set IBAN. + @param IBAN + International Bank Account Number + */ + public void setIBAN (String IBAN) + { + if (IBAN != null && IBAN.length() > 40) + { + log.warning("Length > 40 - truncated"); + IBAN = IBAN.substring(0, 39); + } + set_Value (COLUMNNAME_IBAN, IBAN); + } + + /** Get IBAN. + @return International Bank Account Number + */ + public String getIBAN () + { + return (String)get_Value(COLUMNNAME_IBAN); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BankAccountDoc.java b/base/src/org/compiere/model/X_C_BankAccountDoc.java index 54c86f6dfe..1cda28b2fd 100644 --- a/base/src/org/compiere/model/X_C_BankAccountDoc.java +++ b/base/src/org/compiere/model/X_C_BankAccountDoc.java @@ -1,245 +1,265 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankAccountDoc - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankAccountDoc extends PO + +/** Generated Model for C_BankAccountDoc + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankAccountDoc extends PO implements I_C_BankAccountDoc, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BankAccountDoc_ID id -@param trxName transaction -*/ -public X_C_BankAccountDoc (Properties ctx, int C_BankAccountDoc_ID, String trxName) -{ -super (ctx, C_BankAccountDoc_ID, trxName); -/** if (C_BankAccountDoc_ID == 0) -{ -setC_BankAccountDoc_ID (0); -setC_BankAccount_ID (0); -setCurrentNext (0); -setName (null); -setPaymentRule (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankAccountDoc (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankAccountDoc */ -public static final String Table_Name="C_BankAccountDoc"; - -/** AD_Table_ID=455 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankAccountDoc[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Bank Account Document. -@param C_BankAccountDoc_ID Checks, Transfers, etc. */ -public void setC_BankAccountDoc_ID (int C_BankAccountDoc_ID) -{ -if (C_BankAccountDoc_ID < 1) throw new IllegalArgumentException ("C_BankAccountDoc_ID is mandatory."); -set_ValueNoCheck ("C_BankAccountDoc_ID", Integer.valueOf(C_BankAccountDoc_ID)); -} -/** Get Bank Account Document. -@return Checks, Transfers, etc. */ -public int getC_BankAccountDoc_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccountDoc_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccountDoc_ID */ -public static final String COLUMNNAME_C_BankAccountDoc_ID = "C_BankAccountDoc_ID"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_ValueNoCheck ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankAccountDoc (Properties ctx, int C_BankAccountDoc_ID, String trxName) + { + super (ctx, C_BankAccountDoc_ID, trxName); + /** if (C_BankAccountDoc_ID == 0) { setC_BankAccountDoc_ID (0); + setC_BankAccount_ID (0); + setCurrentNext (0); + setName (null); + setPaymentRule (null); +} */ + } + + /** Load Constructor */ + public X_C_BankAccountDoc (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankAccountDoc[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Bank Account Document. + @param C_BankAccountDoc_ID + Checks, Transfers, etc. + */ + public void setC_BankAccountDoc_ID (int C_BankAccountDoc_ID) + { + if (C_BankAccountDoc_ID < 1) + throw new IllegalArgumentException ("C_BankAccountDoc_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankAccountDoc_ID, Integer.valueOf(C_BankAccountDoc_ID)); + } + + /** Get Bank Account Document. + @return Checks, Transfers, etc. + */ + public int getC_BankAccountDoc_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccountDoc_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Check_PrintFormat_ID AD_Reference_ID=268 */ public static final int CHECK_PRINTFORMAT_ID_AD_Reference_ID=268; -/** Set Check Print Format. -@param Check_PrintFormat_ID Print Format for printing Checks */ -public void setCheck_PrintFormat_ID (int Check_PrintFormat_ID) -{ -if (Check_PrintFormat_ID <= 0) set_Value ("Check_PrintFormat_ID", null); - else -set_Value ("Check_PrintFormat_ID", Integer.valueOf(Check_PrintFormat_ID)); -} -/** Get Check Print Format. -@return Print Format for printing Checks */ -public int getCheck_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Check_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Check_PrintFormat_ID */ -public static final String COLUMNNAME_Check_PrintFormat_ID = "Check_PrintFormat_ID"; -/** Set Current Next. -@param CurrentNext The next number to be used */ -public void setCurrentNext (int CurrentNext) -{ -set_Value ("CurrentNext", Integer.valueOf(CurrentNext)); -} -/** Get Current Next. -@return The next number to be used */ -public int getCurrentNext() -{ -Integer ii = (Integer)get_Value("CurrentNext"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrentNext */ -public static final String COLUMNNAME_CurrentNext = "CurrentNext"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Check Print Format. + @param Check_PrintFormat_ID + Print Format for printing Checks + */ + public void setCheck_PrintFormat_ID (int Check_PrintFormat_ID) + { + if (Check_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Check_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Check_PrintFormat_ID, Integer.valueOf(Check_PrintFormat_ID)); + } + + /** Get Check Print Format. + @return Print Format for printing Checks + */ + public int getCheck_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Check_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Current Next. + @param CurrentNext + The next number to be used + */ + public void setCurrentNext (int CurrentNext) + { + set_Value (COLUMNNAME_CurrentNext, Integer.valueOf(CurrentNext)); + } + + /** Get Current Next. + @return The next number to be used + */ + public int getCurrentNext () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrentNext); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); -if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_Value ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; -} + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } +} \ No newline at end of file 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 4d61937310..c41db3ea07 100644 --- a/base/src/org/compiere/model/X_C_BankAccount_Acct.java +++ b/base/src/org/compiere/model/X_C_BankAccount_Acct.java @@ -1,327 +1,402 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankAccount_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankAccount_Acct extends PO + +/** Generated Model for C_BankAccount_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankAccount_Acct extends PO implements I_C_BankAccount_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BankAccount_Acct_ID id -@param trxName transaction -*/ -public X_C_BankAccount_Acct (Properties ctx, int C_BankAccount_Acct_ID, String trxName) -{ -super (ctx, C_BankAccount_Acct_ID, trxName); -/** if (C_BankAccount_Acct_ID == 0) -{ -setB_Asset_Acct (0); -setB_Expense_Acct (0); -setB_InTransit_Acct (0); -setB_InterestExp_Acct (0); -setB_InterestRev_Acct (0); -setB_PaymentSelect_Acct (0); -setB_RevaluationGain_Acct (0); -setB_RevaluationLoss_Acct (0); -setB_SettlementGain_Acct (0); -setB_SettlementLoss_Acct (0); -setB_UnallocatedCash_Acct (0); -setB_Unidentified_Acct (0); -setC_AcctSchema_ID (0); -setC_BankAccount_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankAccount_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankAccount_Acct */ -public static final String Table_Name="C_BankAccount_Acct"; - -/** AD_Table_ID=391 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankAccount_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Bank Asset. -@param B_Asset_Acct Bank Asset Account */ -public void setB_Asset_Acct (int B_Asset_Acct) -{ -set_Value ("B_Asset_Acct", Integer.valueOf(B_Asset_Acct)); -} -/** Get Bank Asset. -@return Bank Asset Account */ -public int getB_Asset_Acct() -{ -Integer ii = (Integer)get_Value("B_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Asset_Acct */ -public static final String COLUMNNAME_B_Asset_Acct = "B_Asset_Acct"; -/** Set Bank Expense. -@param B_Expense_Acct Bank Expense Account */ -public void setB_Expense_Acct (int B_Expense_Acct) -{ -set_Value ("B_Expense_Acct", Integer.valueOf(B_Expense_Acct)); -} -/** Get Bank Expense. -@return Bank Expense Account */ -public int getB_Expense_Acct() -{ -Integer ii = (Integer)get_Value("B_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Expense_Acct */ -public static final String COLUMNNAME_B_Expense_Acct = "B_Expense_Acct"; -/** Set Bank In Transit. -@param B_InTransit_Acct Bank In Transit Account */ -public void setB_InTransit_Acct (int B_InTransit_Acct) -{ -set_Value ("B_InTransit_Acct", Integer.valueOf(B_InTransit_Acct)); -} -/** Get Bank In Transit. -@return Bank In Transit Account */ -public int getB_InTransit_Acct() -{ -Integer ii = (Integer)get_Value("B_InTransit_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_InTransit_Acct */ -public static final String COLUMNNAME_B_InTransit_Acct = "B_InTransit_Acct"; -/** Set Bank Interest Expense. -@param B_InterestExp_Acct Bank Interest Expense Account */ -public void setB_InterestExp_Acct (int B_InterestExp_Acct) -{ -set_Value ("B_InterestExp_Acct", Integer.valueOf(B_InterestExp_Acct)); -} -/** Get Bank Interest Expense. -@return Bank Interest Expense Account */ -public int getB_InterestExp_Acct() -{ -Integer ii = (Integer)get_Value("B_InterestExp_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_InterestExp_Acct */ -public static final String COLUMNNAME_B_InterestExp_Acct = "B_InterestExp_Acct"; -/** Set Bank Interest Revenue. -@param B_InterestRev_Acct Bank Interest Revenue Account */ -public void setB_InterestRev_Acct (int B_InterestRev_Acct) -{ -set_Value ("B_InterestRev_Acct", Integer.valueOf(B_InterestRev_Acct)); -} -/** Get Bank Interest Revenue. -@return Bank Interest Revenue Account */ -public int getB_InterestRev_Acct() -{ -Integer ii = (Integer)get_Value("B_InterestRev_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_InterestRev_Acct */ -public static final String COLUMNNAME_B_InterestRev_Acct = "B_InterestRev_Acct"; -/** Set Payment Selection. -@param B_PaymentSelect_Acct AP Payment Selection Clearing Account */ -public void setB_PaymentSelect_Acct (int B_PaymentSelect_Acct) -{ -set_Value ("B_PaymentSelect_Acct", Integer.valueOf(B_PaymentSelect_Acct)); -} -/** Get Payment Selection. -@return AP Payment Selection Clearing Account */ -public int getB_PaymentSelect_Acct() -{ -Integer ii = (Integer)get_Value("B_PaymentSelect_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_PaymentSelect_Acct */ -public static final String COLUMNNAME_B_PaymentSelect_Acct = "B_PaymentSelect_Acct"; -/** Set Bank Revaluation Gain. -@param B_RevaluationGain_Acct Bank Revaluation Gain Account */ -public void setB_RevaluationGain_Acct (int B_RevaluationGain_Acct) -{ -set_Value ("B_RevaluationGain_Acct", Integer.valueOf(B_RevaluationGain_Acct)); -} -/** Get Bank Revaluation Gain. -@return Bank Revaluation Gain Account */ -public int getB_RevaluationGain_Acct() -{ -Integer ii = (Integer)get_Value("B_RevaluationGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_RevaluationGain_Acct */ -public static final String COLUMNNAME_B_RevaluationGain_Acct = "B_RevaluationGain_Acct"; -/** Set Bank Revaluation Loss. -@param B_RevaluationLoss_Acct Bank Revaluation Loss Account */ -public void setB_RevaluationLoss_Acct (int B_RevaluationLoss_Acct) -{ -set_Value ("B_RevaluationLoss_Acct", Integer.valueOf(B_RevaluationLoss_Acct)); -} -/** Get Bank Revaluation Loss. -@return Bank Revaluation Loss Account */ -public int getB_RevaluationLoss_Acct() -{ -Integer ii = (Integer)get_Value("B_RevaluationLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_RevaluationLoss_Acct */ -public static final String COLUMNNAME_B_RevaluationLoss_Acct = "B_RevaluationLoss_Acct"; -/** Set Bank Settlement Gain. -@param B_SettlementGain_Acct Bank Settlement Gain Account */ -public void setB_SettlementGain_Acct (int B_SettlementGain_Acct) -{ -set_Value ("B_SettlementGain_Acct", Integer.valueOf(B_SettlementGain_Acct)); -} -/** Get Bank Settlement Gain. -@return Bank Settlement Gain Account */ -public int getB_SettlementGain_Acct() -{ -Integer ii = (Integer)get_Value("B_SettlementGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_SettlementGain_Acct */ -public static final String COLUMNNAME_B_SettlementGain_Acct = "B_SettlementGain_Acct"; -/** Set Bank Settlement Loss. -@param B_SettlementLoss_Acct Bank Settlement Loss Account */ -public void setB_SettlementLoss_Acct (int B_SettlementLoss_Acct) -{ -set_Value ("B_SettlementLoss_Acct", Integer.valueOf(B_SettlementLoss_Acct)); -} -/** Get Bank Settlement Loss. -@return Bank Settlement Loss Account */ -public int getB_SettlementLoss_Acct() -{ -Integer ii = (Integer)get_Value("B_SettlementLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_SettlementLoss_Acct */ -public static final String COLUMNNAME_B_SettlementLoss_Acct = "B_SettlementLoss_Acct"; -/** Set Unallocated Cash. -@param B_UnallocatedCash_Acct Unallocated Cash Clearing Account */ -public void setB_UnallocatedCash_Acct (int B_UnallocatedCash_Acct) -{ -set_Value ("B_UnallocatedCash_Acct", Integer.valueOf(B_UnallocatedCash_Acct)); -} -/** Get Unallocated Cash. -@return Unallocated Cash Clearing Account */ -public int getB_UnallocatedCash_Acct() -{ -Integer ii = (Integer)get_Value("B_UnallocatedCash_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_UnallocatedCash_Acct */ -public static final String COLUMNNAME_B_UnallocatedCash_Acct = "B_UnallocatedCash_Acct"; -/** Set Bank Unidentified Receipts. -@param B_Unidentified_Acct Bank Unidentified Receipts Account */ -public void setB_Unidentified_Acct (int B_Unidentified_Acct) -{ -set_Value ("B_Unidentified_Acct", Integer.valueOf(B_Unidentified_Acct)); -} -/** Get Bank Unidentified Receipts. -@return Bank Unidentified Receipts Account */ -public int getB_Unidentified_Acct() -{ -Integer ii = (Integer)get_Value("B_Unidentified_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name B_Unidentified_Acct */ -public static final String COLUMNNAME_B_Unidentified_Acct = "B_Unidentified_Acct"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_ValueNoCheck ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankAccount_Acct (Properties ctx, int C_BankAccount_Acct_ID, String trxName) + { + super (ctx, C_BankAccount_Acct_ID, trxName); + /** if (C_BankAccount_Acct_ID == 0) { setB_Asset_Acct (0); + setB_Expense_Acct (0); + setB_InTransit_Acct (0); + setB_InterestExp_Acct (0); + setB_InterestRev_Acct (0); + setB_PaymentSelect_Acct (0); + setB_RevaluationGain_Acct (0); + setB_RevaluationLoss_Acct (0); + setB_SettlementGain_Acct (0); + setB_SettlementLoss_Acct (0); + setB_UnallocatedCash_Acct (0); + setB_Unidentified_Acct (0); + setC_AcctSchema_ID (0); + setC_BankAccount_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_BankAccount_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankAccount_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Bank Asset. + @param B_Asset_Acct + Bank Asset Account + */ + public void setB_Asset_Acct (int B_Asset_Acct) + { + set_Value (COLUMNNAME_B_Asset_Acct, Integer.valueOf(B_Asset_Acct)); + } + + /** Get Bank Asset. + @return Bank Asset Account + */ + public int getB_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Expense. + @param B_Expense_Acct + Bank Expense Account + */ + public void setB_Expense_Acct (int B_Expense_Acct) + { + set_Value (COLUMNNAME_B_Expense_Acct, Integer.valueOf(B_Expense_Acct)); + } + + /** Get Bank Expense. + @return Bank Expense Account + */ + public int getB_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank In Transit. + @param B_InTransit_Acct + Bank In Transit Account + */ + public void setB_InTransit_Acct (int B_InTransit_Acct) + { + set_Value (COLUMNNAME_B_InTransit_Acct, Integer.valueOf(B_InTransit_Acct)); + } + + /** Get Bank In Transit. + @return Bank In Transit Account + */ + public int getB_InTransit_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_InTransit_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Interest Expense. + @param B_InterestExp_Acct + Bank Interest Expense Account + */ + public void setB_InterestExp_Acct (int B_InterestExp_Acct) + { + set_Value (COLUMNNAME_B_InterestExp_Acct, Integer.valueOf(B_InterestExp_Acct)); + } + + /** Get Bank Interest Expense. + @return Bank Interest Expense Account + */ + public int getB_InterestExp_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_InterestExp_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Interest Revenue. + @param B_InterestRev_Acct + Bank Interest Revenue Account + */ + public void setB_InterestRev_Acct (int B_InterestRev_Acct) + { + set_Value (COLUMNNAME_B_InterestRev_Acct, Integer.valueOf(B_InterestRev_Acct)); + } + + /** Get Bank Interest Revenue. + @return Bank Interest Revenue Account + */ + public int getB_InterestRev_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_InterestRev_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Selection. + @param B_PaymentSelect_Acct + AP Payment Selection Clearing Account + */ + public void setB_PaymentSelect_Acct (int B_PaymentSelect_Acct) + { + set_Value (COLUMNNAME_B_PaymentSelect_Acct, Integer.valueOf(B_PaymentSelect_Acct)); + } + + /** Get Payment Selection. + @return AP Payment Selection Clearing Account + */ + public int getB_PaymentSelect_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_PaymentSelect_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Revaluation Gain. + @param B_RevaluationGain_Acct + Bank Revaluation Gain Account + */ + public void setB_RevaluationGain_Acct (int B_RevaluationGain_Acct) + { + set_Value (COLUMNNAME_B_RevaluationGain_Acct, Integer.valueOf(B_RevaluationGain_Acct)); + } + + /** Get Bank Revaluation Gain. + @return Bank Revaluation Gain Account + */ + public int getB_RevaluationGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_RevaluationGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Revaluation Loss. + @param B_RevaluationLoss_Acct + Bank Revaluation Loss Account + */ + public void setB_RevaluationLoss_Acct (int B_RevaluationLoss_Acct) + { + set_Value (COLUMNNAME_B_RevaluationLoss_Acct, Integer.valueOf(B_RevaluationLoss_Acct)); + } + + /** Get Bank Revaluation Loss. + @return Bank Revaluation Loss Account + */ + public int getB_RevaluationLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_RevaluationLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Settlement Gain. + @param B_SettlementGain_Acct + Bank Settlement Gain Account + */ + public void setB_SettlementGain_Acct (int B_SettlementGain_Acct) + { + set_Value (COLUMNNAME_B_SettlementGain_Acct, Integer.valueOf(B_SettlementGain_Acct)); + } + + /** Get Bank Settlement Gain. + @return Bank Settlement Gain Account + */ + public int getB_SettlementGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_SettlementGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Settlement Loss. + @param B_SettlementLoss_Acct + Bank Settlement Loss Account + */ + public void setB_SettlementLoss_Acct (int B_SettlementLoss_Acct) + { + set_Value (COLUMNNAME_B_SettlementLoss_Acct, Integer.valueOf(B_SettlementLoss_Acct)); + } + + /** Get Bank Settlement Loss. + @return Bank Settlement Loss Account + */ + public int getB_SettlementLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_SettlementLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unallocated Cash. + @param B_UnallocatedCash_Acct + Unallocated Cash Clearing Account + */ + public void setB_UnallocatedCash_Acct (int B_UnallocatedCash_Acct) + { + set_Value (COLUMNNAME_B_UnallocatedCash_Acct, Integer.valueOf(B_UnallocatedCash_Acct)); + } + + /** Get Unallocated Cash. + @return Unallocated Cash Clearing Account + */ + public int getB_UnallocatedCash_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_UnallocatedCash_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Unidentified Receipts. + @param B_Unidentified_Acct + Bank Unidentified Receipts Account + */ + public void setB_Unidentified_Acct (int B_Unidentified_Acct) + { + set_Value (COLUMNNAME_B_Unidentified_Acct, Integer.valueOf(B_Unidentified_Acct)); + } + + /** Get Bank Unidentified Receipts. + @return Bank Unidentified Receipts Account + */ + public int getB_Unidentified_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_B_Unidentified_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BankStatement.java b/base/src/org/compiere/model/X_C_BankStatement.java index 48fd00fa42..737ec8ce0f 100644 --- a/base/src/org/compiere/model/X_C_BankStatement.java +++ b/base/src/org/compiere/model/X_C_BankStatement.java @@ -1,514 +1,556 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankStatement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankStatement extends PO + +/** Generated Model for C_BankStatement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BankStatement_ID id -@param trxName transaction -*/ -public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName) -{ -super (ctx, C_BankStatement_ID, trxName); -/** if (C_BankStatement_ID == 0) -{ -setC_BankAccount_ID (0); -setC_BankStatement_ID (0); -setDocAction (null); // CO -setDocStatus (null); // DR -setEndingBalance (Env.ZERO); -setIsApproved (false); // N -setIsManual (true); // Y -setName (null); // @#Date@ -setPosted (false); // N -setProcessed (false); -setStatementDate (new Timestamp(System.currentTimeMillis())); // @Date@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankStatement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankStatement */ -public static final String Table_Name="C_BankStatement"; - -/** AD_Table_ID=392 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankStatement[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Beginning Balance. -@param BeginningBalance Balance prior to any transactions */ -public void setBeginningBalance (BigDecimal BeginningBalance) -{ -set_Value ("BeginningBalance", BeginningBalance); -} -/** Get Beginning Balance. -@return Balance prior to any transactions */ -public BigDecimal getBeginningBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("BeginningBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BeginningBalance */ -public static final String COLUMNNAME_BeginningBalance = "BeginningBalance"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Bank Statement. -@param C_BankStatement_ID Bank Statement of account */ -public void setC_BankStatement_ID (int C_BankStatement_ID) -{ -if (C_BankStatement_ID < 1) throw new IllegalArgumentException ("C_BankStatement_ID is mandatory."); -set_ValueNoCheck ("C_BankStatement_ID", Integer.valueOf(C_BankStatement_ID)); -} -/** Get Bank Statement. -@return Bank Statement of account */ -public int getC_BankStatement_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatement_ID */ -public static final String COLUMNNAME_C_BankStatement_ID = "C_BankStatement_ID"; -/** Set Create lines from. -@param CreateFrom Process which will generate a new document lines based on an existing document */ -public void setCreateFrom (String CreateFrom) -{ -if (CreateFrom != null && CreateFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateFrom = CreateFrom.substring(0,0); -} -set_Value ("CreateFrom", CreateFrom); -} -/** Get Create lines from. -@return Process which will generate a new document lines based on an existing document */ -public String getCreateFrom() -{ -return (String)get_Value("CreateFrom"); -} -/** Column name CreateFrom */ -public static final String COLUMNNAME_CreateFrom = "CreateFrom"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName) + { + super (ctx, C_BankStatement_ID, trxName); + /** if (C_BankStatement_ID == 0) { setC_BankAccount_ID (0); + setC_BankStatement_ID (0); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setEndingBalance (Env.ZERO); + setIsApproved (false); +// N + setIsManual (true); +// Y + setName (null); +// @#Date@ + setPosted (false); +// N + setProcessed (false); + setStatementDate (new Timestamp(System.currentTimeMillis())); +// @Date@ +} */ + } + + /** Load Constructor */ + public X_C_BankStatement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankStatement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Beginning Balance. + @param BeginningBalance + Balance prior to any transactions + */ + public void setBeginningBalance (BigDecimal BeginningBalance) + { + set_Value (COLUMNNAME_BeginningBalance, BeginningBalance); + } + + /** Get Beginning Balance. + @return Balance prior to any transactions + */ + public BigDecimal getBeginningBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BeginningBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Statement. + @param C_BankStatement_ID + Bank Statement of account + */ + public void setC_BankStatement_ID (int C_BankStatement_ID) + { + if (C_BankStatement_ID < 1) + throw new IllegalArgumentException ("C_BankStatement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); + } + + /** Get Bank Statement. + @return Bank Statement of account + */ + public int getC_BankStatement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set EFT Statement Date. -@param EftStatementDate Electronic Funds Transfer Statement Date */ -public void setEftStatementDate (Timestamp EftStatementDate) -{ -set_Value ("EftStatementDate", EftStatementDate); -} -/** Get EFT Statement Date. -@return Electronic Funds Transfer Statement Date */ -public Timestamp getEftStatementDate() -{ -return (Timestamp)get_Value("EftStatementDate"); -} -/** Column name EftStatementDate */ -public static final String COLUMNNAME_EftStatementDate = "EftStatementDate"; -/** Set EFT Statement Reference. -@param EftStatementReference Electronic Funds Transfer Statement Reference */ -public void setEftStatementReference (String EftStatementReference) -{ -if (EftStatementReference != null && EftStatementReference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EftStatementReference = EftStatementReference.substring(0,59); -} -set_Value ("EftStatementReference", EftStatementReference); -} -/** Get EFT Statement Reference. -@return Electronic Funds Transfer Statement Reference */ -public String getEftStatementReference() -{ -return (String)get_Value("EftStatementReference"); -} -/** Column name EftStatementReference */ -public static final String COLUMNNAME_EftStatementReference = "EftStatementReference"; -/** Set Ending balance. -@param EndingBalance Ending or closing balance */ -public void setEndingBalance (BigDecimal EndingBalance) -{ -if (EndingBalance == null) throw new IllegalArgumentException ("EndingBalance is mandatory."); -set_Value ("EndingBalance", EndingBalance); -} -/** Get Ending balance. -@return Ending or closing balance */ -public BigDecimal getEndingBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("EndingBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name EndingBalance */ -public static final String COLUMNNAME_EndingBalance = "EndingBalance"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Match Statement. -@param MatchStatement Match Statement */ -public void setMatchStatement (String MatchStatement) -{ -if (MatchStatement != null && MatchStatement.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MatchStatement = MatchStatement.substring(0,0); -} -set_Value ("MatchStatement", MatchStatement); -} -/** Get Match Statement. -@return Match Statement */ -public String getMatchStatement() -{ -return (String)get_Value("MatchStatement"); -} -/** Column name MatchStatement */ -public static final String COLUMNNAME_MatchStatement = "MatchStatement"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Statement date. -@param StatementDate Date of the statement */ -public void setStatementDate (Timestamp StatementDate) -{ -if (StatementDate == null) throw new IllegalArgumentException ("StatementDate is mandatory."); -set_Value ("StatementDate", StatementDate); -} -/** Get Statement date. -@return Date of the statement */ -public Timestamp getStatementDate() -{ -return (Timestamp)get_Value("StatementDate"); -} -/** Column name StatementDate */ -public static final String COLUMNNAME_StatementDate = "StatementDate"; -/** Set Statement difference. -@param StatementDifference Difference between statement ending balance and actual ending balance */ -public void setStatementDifference (BigDecimal StatementDifference) -{ -set_Value ("StatementDifference", StatementDifference); -} -/** Get Statement difference. -@return Difference between statement ending balance and actual ending balance */ -public BigDecimal getStatementDifference() -{ -BigDecimal bd = (BigDecimal)get_Value("StatementDifference"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name StatementDifference */ -public static final String COLUMNNAME_StatementDifference = "StatementDifference"; -} + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set EFT Statement Date. + @param EftStatementDate + Electronic Funds Transfer Statement Date + */ + public void setEftStatementDate (Timestamp EftStatementDate) + { + set_Value (COLUMNNAME_EftStatementDate, EftStatementDate); + } + + /** Get EFT Statement Date. + @return Electronic Funds Transfer Statement Date + */ + public Timestamp getEftStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_EftStatementDate); + } + + /** Set EFT Statement Reference. + @param EftStatementReference + Electronic Funds Transfer Statement Reference + */ + public void setEftStatementReference (String EftStatementReference) + { + if (EftStatementReference != null && EftStatementReference.length() > 60) + { + log.warning("Length > 60 - truncated"); + EftStatementReference = EftStatementReference.substring(0, 59); + } + set_Value (COLUMNNAME_EftStatementReference, EftStatementReference); + } + + /** Get EFT Statement Reference. + @return Electronic Funds Transfer Statement Reference + */ + public String getEftStatementReference () + { + return (String)get_Value(COLUMNNAME_EftStatementReference); + } + + /** Set Ending balance. + @param EndingBalance + Ending or closing balance + */ + public void setEndingBalance (BigDecimal EndingBalance) + { + if (EndingBalance == null) + throw new IllegalArgumentException ("EndingBalance is mandatory."); + set_Value (COLUMNNAME_EndingBalance, EndingBalance); + } + + /** Get Ending balance. + @return Ending or closing balance + */ + public BigDecimal getEndingBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EndingBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Match Statement. + @param MatchStatement Match Statement */ + public void setMatchStatement (String MatchStatement) + { + if (MatchStatement != null && MatchStatement.length() > 1) + { + log.warning("Length > 1 - truncated"); + MatchStatement = MatchStatement.substring(0, 0); + } + set_Value (COLUMNNAME_MatchStatement, MatchStatement); + } + + /** Get Match Statement. +@return Match Statement */ + public String getMatchStatement () + { + return (String)get_Value(COLUMNNAME_MatchStatement); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Statement date. + @param StatementDate + Date of the statement + */ + public void setStatementDate (Timestamp StatementDate) + { + if (StatementDate == null) + throw new IllegalArgumentException ("StatementDate is mandatory."); + set_Value (COLUMNNAME_StatementDate, StatementDate); + } + + /** Get Statement date. + @return Date of the statement + */ + public Timestamp getStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementDate); + } + + /** Set Statement difference. + @param StatementDifference + Difference between statement ending balance and actual ending balance + */ + public void setStatementDifference (BigDecimal StatementDifference) + { + set_Value (COLUMNNAME_StatementDifference, StatementDifference); + } + + /** Get Statement difference. + @return Difference between statement ending balance and actual ending balance + */ + public BigDecimal getStatementDifference () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_StatementDifference); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BankStatementLine.java b/base/src/org/compiere/model/X_C_BankStatementLine.java index d9200e7faf..0fb5f26558 100644 --- a/base/src/org/compiere/model/X_C_BankStatementLine.java +++ b/base/src/org/compiere/model/X_C_BankStatementLine.java @@ -1,710 +1,874 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankStatementLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankStatementLine extends PO -{ -/** Standard Constructor -@param ctx context -@param C_BankStatementLine_ID id -@param trxName transaction -*/ -public X_C_BankStatementLine (Properties ctx, int C_BankStatementLine_ID, String trxName) -{ -super (ctx, C_BankStatementLine_ID, trxName); -/** if (C_BankStatementLine_ID == 0) -{ -setC_BankStatementLine_ID (0); -setC_BankStatement_ID (0); -setC_Charge_ID (0); -setC_Currency_ID (0); // @SQL=SELECT C_Currency_ID FROM C_BankAccount WHERE C_BankAccount_ID=@C_BankAccount_ID@ -setChargeAmt (Env.ZERO); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @StatementDate@ -setInterestAmt (Env.ZERO); -setIsManual (true); // Y -setIsReversal (false); -setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 FROM C_BankStatementLine WHERE C_BankStatement_ID=@C_BankStatement_ID@ -setProcessed (false); -setStatementLineDate (new Timestamp(System.currentTimeMillis())); // @StatementLineDate@ -setStmtAmt (Env.ZERO); -setTrxAmt (Env.ZERO); -setValutaDate (new Timestamp(System.currentTimeMillis())); // @StatementDate@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankStatementLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankStatementLine */ -public static final String Table_Name="C_BankStatementLine"; - -/** AD_Table_ID=393 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankStatementLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Bank statement line. -@param C_BankStatementLine_ID Line on a statement from this Bank */ -public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) -{ -if (C_BankStatementLine_ID < 1) throw new IllegalArgumentException ("C_BankStatementLine_ID is mandatory."); -set_ValueNoCheck ("C_BankStatementLine_ID", Integer.valueOf(C_BankStatementLine_ID)); -} -/** Get Bank statement line. -@return Line on a statement from this Bank */ -public int getC_BankStatementLine_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatementLine_ID */ -public static final String COLUMNNAME_C_BankStatementLine_ID = "C_BankStatementLine_ID"; -/** Set Bank Statement. -@param C_BankStatement_ID Bank Statement of account */ -public void setC_BankStatement_ID (int C_BankStatement_ID) -{ -if (C_BankStatement_ID < 1) throw new IllegalArgumentException ("C_BankStatement_ID is mandatory."); -set_ValueNoCheck ("C_BankStatement_ID", Integer.valueOf(C_BankStatement_ID)); -} -/** Get Bank Statement. -@return Bank Statement of account */ -public int getC_BankStatement_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatement_ID */ -public static final String COLUMNNAME_C_BankStatement_ID = "C_BankStatement_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID < 1) throw new IllegalArgumentException ("C_Charge_ID is mandatory."); -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -if (ChargeAmt == null) throw new IllegalArgumentException ("ChargeAmt is mandatory."); -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Create Payment. -@param CreatePayment Create Payment */ -public void setCreatePayment (String CreatePayment) -{ -if (CreatePayment != null && CreatePayment.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreatePayment = CreatePayment.substring(0,0); -} -set_Value ("CreatePayment", CreatePayment); -} -/** Get Create Payment. -@return Create Payment */ -public String getCreatePayment() -{ -return (String)get_Value("CreatePayment"); -} -/** Column name CreatePayment */ -public static final String COLUMNNAME_CreatePayment = "CreatePayment"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EFT Amount. -@param EftAmt Electronic Funds Transfer Amount */ -public void setEftAmt (BigDecimal EftAmt) -{ -set_Value ("EftAmt", EftAmt); -} -/** Get EFT Amount. -@return Electronic Funds Transfer Amount */ -public BigDecimal getEftAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("EftAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name EftAmt */ -public static final String COLUMNNAME_EftAmt = "EftAmt"; -/** Set EFT Check No. -@param EftCheckNo Electronic Funds Transfer Check No */ -public void setEftCheckNo (String EftCheckNo) -{ -if (EftCheckNo != null && EftCheckNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EftCheckNo = EftCheckNo.substring(0,19); -} -set_Value ("EftCheckNo", EftCheckNo); -} -/** Get EFT Check No. -@return Electronic Funds Transfer Check No */ -public String getEftCheckNo() -{ -return (String)get_Value("EftCheckNo"); -} -/** Column name EftCheckNo */ -public static final String COLUMNNAME_EftCheckNo = "EftCheckNo"; -/** Set EFT Currency. -@param EftCurrency Electronic Funds Transfer Currency */ -public void setEftCurrency (String EftCurrency) -{ -if (EftCurrency != null && EftCurrency.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EftCurrency = EftCurrency.substring(0,19); -} -set_Value ("EftCurrency", EftCurrency); -} -/** Get EFT Currency. -@return Electronic Funds Transfer Currency */ -public String getEftCurrency() -{ -return (String)get_Value("EftCurrency"); -} -/** Column name EftCurrency */ -public static final String COLUMNNAME_EftCurrency = "EftCurrency"; -/** Set EFT Memo. -@param EftMemo Electronic Funds Transfer Memo */ -public void setEftMemo (String EftMemo) -{ -if (EftMemo != null && EftMemo.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -EftMemo = EftMemo.substring(0,1999); -} -set_Value ("EftMemo", EftMemo); -} -/** Get EFT Memo. -@return Electronic Funds Transfer Memo */ -public String getEftMemo() -{ -return (String)get_Value("EftMemo"); -} -/** Column name EftMemo */ -public static final String COLUMNNAME_EftMemo = "EftMemo"; -/** Set EFT Payee. -@param EftPayee Electronic Funds Transfer Payee information */ -public void setEftPayee (String EftPayee) -{ -if (EftPayee != null && EftPayee.length() > 255) -{ -log.warning("Length > 255 - truncated"); -EftPayee = EftPayee.substring(0,254); -} -set_Value ("EftPayee", EftPayee); -} -/** Get EFT Payee. -@return Electronic Funds Transfer Payee information */ -public String getEftPayee() -{ -return (String)get_Value("EftPayee"); -} -/** Column name EftPayee */ -public static final String COLUMNNAME_EftPayee = "EftPayee"; -/** Set EFT Payee Account. -@param EftPayeeAccount Electronic Funds Transfer Payyee Account Information */ -public void setEftPayeeAccount (String EftPayeeAccount) -{ -if (EftPayeeAccount != null && EftPayeeAccount.length() > 40) -{ -log.warning("Length > 40 - truncated"); -EftPayeeAccount = EftPayeeAccount.substring(0,39); -} -set_Value ("EftPayeeAccount", EftPayeeAccount); -} -/** Get EFT Payee Account. -@return Electronic Funds Transfer Payyee Account Information */ -public String getEftPayeeAccount() -{ -return (String)get_Value("EftPayeeAccount"); -} -/** Column name EftPayeeAccount */ -public static final String COLUMNNAME_EftPayeeAccount = "EftPayeeAccount"; -/** Set EFT Reference. -@param EftReference Electronic Funds Transfer Reference */ -public void setEftReference (String EftReference) -{ -if (EftReference != null && EftReference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EftReference = EftReference.substring(0,59); -} -set_Value ("EftReference", EftReference); -} -/** Get EFT Reference. -@return Electronic Funds Transfer Reference */ -public String getEftReference() -{ -return (String)get_Value("EftReference"); -} -/** Column name EftReference */ -public static final String COLUMNNAME_EftReference = "EftReference"; -/** Set EFT Statement Line Date. -@param EftStatementLineDate Electronic Funds Transfer Statement Line Date */ -public void setEftStatementLineDate (Timestamp EftStatementLineDate) -{ -set_Value ("EftStatementLineDate", EftStatementLineDate); -} -/** Get EFT Statement Line Date. -@return Electronic Funds Transfer Statement Line Date */ -public Timestamp getEftStatementLineDate() -{ -return (Timestamp)get_Value("EftStatementLineDate"); -} -/** Column name EftStatementLineDate */ -public static final String COLUMNNAME_EftStatementLineDate = "EftStatementLineDate"; -/** Set EFT Trx ID. -@param EftTrxID Electronic Funds Transfer Transaction ID */ -public void setEftTrxID (String EftTrxID) -{ -if (EftTrxID != null && EftTrxID.length() > 40) -{ -log.warning("Length > 40 - truncated"); -EftTrxID = EftTrxID.substring(0,39); -} -set_Value ("EftTrxID", EftTrxID); -} -/** Get EFT Trx ID. -@return Electronic Funds Transfer Transaction ID */ -public String getEftTrxID() -{ -return (String)get_Value("EftTrxID"); -} -/** Column name EftTrxID */ -public static final String COLUMNNAME_EftTrxID = "EftTrxID"; -/** Set EFT Trx Type. -@param EftTrxType Electronic Funds Transfer Transaction Type */ -public void setEftTrxType (String EftTrxType) -{ -if (EftTrxType != null && EftTrxType.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EftTrxType = EftTrxType.substring(0,19); -} -set_Value ("EftTrxType", EftTrxType); -} -/** Get EFT Trx Type. -@return Electronic Funds Transfer Transaction Type */ -public String getEftTrxType() -{ -return (String)get_Value("EftTrxType"); -} -/** Column name EftTrxType */ -public static final String COLUMNNAME_EftTrxType = "EftTrxType"; -/** Set EFT Effective Date. -@param EftValutaDate Electronic Funds Transfer Valuta (effective) Date */ -public void setEftValutaDate (Timestamp EftValutaDate) -{ -set_Value ("EftValutaDate", EftValutaDate); -} -/** Get EFT Effective Date. -@return Electronic Funds Transfer Valuta (effective) Date */ -public Timestamp getEftValutaDate() -{ -return (Timestamp)get_Value("EftValutaDate"); -} -/** Column name EftValutaDate */ -public static final String COLUMNNAME_EftValutaDate = "EftValutaDate"; -/** Set Interest Amount. -@param InterestAmt Interest Amount */ -public void setInterestAmt (BigDecimal InterestAmt) -{ -if (InterestAmt == null) throw new IllegalArgumentException ("InterestAmt is mandatory."); -set_Value ("InterestAmt", InterestAmt); -} -/** Get Interest Amount. -@return Interest Amount */ -public BigDecimal getInterestAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InterestAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InterestAmt */ -public static final String COLUMNNAME_InterestAmt = "InterestAmt"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Reversal. -@param IsReversal This is a reversing transaction */ -public void setIsReversal (boolean IsReversal) -{ -set_Value ("IsReversal", Boolean.valueOf(IsReversal)); -} -/** Get Reversal. -@return This is a reversing transaction */ -public boolean isReversal() -{ -Object oo = get_Value("IsReversal"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReversal */ -public static final String COLUMNNAME_IsReversal = "IsReversal"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Match Statement. -@param MatchStatement Match Statement */ -public void setMatchStatement (String MatchStatement) -{ -if (MatchStatement != null && MatchStatement.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MatchStatement = MatchStatement.substring(0,0); -} -set_Value ("MatchStatement", MatchStatement); -} -/** Get Match Statement. -@return Match Statement */ -public String getMatchStatement() -{ -return (String)get_Value("MatchStatement"); -} -/** Column name MatchStatement */ -public static final String COLUMNNAME_MatchStatement = "MatchStatement"; -/** Set Memo. -@param Memo Memo Text */ -public void setMemo (String Memo) -{ -if (Memo != null && Memo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Memo = Memo.substring(0,254); -} -set_Value ("Memo", Memo); -} -/** Get Memo. -@return Memo Text */ -public String getMemo() -{ -return (String)get_Value("Memo"); -} -/** Column name Memo */ -public static final String COLUMNNAME_Memo = "Memo"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Reference No. -@param ReferenceNo Your customer or vendor number at the Business Partner's site */ -public void setReferenceNo (String ReferenceNo) -{ -if (ReferenceNo != null && ReferenceNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ReferenceNo = ReferenceNo.substring(0,39); -} -set_Value ("ReferenceNo", ReferenceNo); -} -/** Get Reference No. -@return Your customer or vendor number at the Business Partner's site */ -public String getReferenceNo() -{ -return (String)get_Value("ReferenceNo"); -} -/** Column name ReferenceNo */ -public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; -/** Set Statement Line Date. -@param StatementLineDate Date of the Statement Line */ -public void setStatementLineDate (Timestamp StatementLineDate) -{ -if (StatementLineDate == null) throw new IllegalArgumentException ("StatementLineDate is mandatory."); -set_Value ("StatementLineDate", StatementLineDate); -} -/** Get Statement Line Date. -@return Date of the Statement Line */ -public Timestamp getStatementLineDate() -{ -return (Timestamp)get_Value("StatementLineDate"); -} -/** Column name StatementLineDate */ -public static final String COLUMNNAME_StatementLineDate = "StatementLineDate"; -/** Set Statement amount. -@param StmtAmt Statement Amount */ -public void setStmtAmt (BigDecimal StmtAmt) -{ -if (StmtAmt == null) throw new IllegalArgumentException ("StmtAmt is mandatory."); -set_Value ("StmtAmt", StmtAmt); -} -/** Get Statement amount. -@return Statement Amount */ -public BigDecimal getStmtAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("StmtAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name StmtAmt */ -public static final String COLUMNNAME_StmtAmt = "StmtAmt"; -/** Set Transaction Amount. -@param TrxAmt Amount of a transaction */ -public void setTrxAmt (BigDecimal TrxAmt) -{ -if (TrxAmt == null) throw new IllegalArgumentException ("TrxAmt is mandatory."); -set_Value ("TrxAmt", TrxAmt); -} -/** Get Transaction Amount. -@return Amount of a transaction */ -public BigDecimal getTrxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TrxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TrxAmt */ -public static final String COLUMNNAME_TrxAmt = "TrxAmt"; -/** Set Effective date. -@param ValutaDate Date when money is available */ -public void setValutaDate (Timestamp ValutaDate) -{ -if (ValutaDate == null) throw new IllegalArgumentException ("ValutaDate is mandatory."); -set_Value ("ValutaDate", ValutaDate); -} -/** Get Effective date. -@return Date when money is available */ -public Timestamp getValutaDate() -{ -return (Timestamp)get_Value("ValutaDate"); -} -/** Column name ValutaDate */ -public static final String COLUMNNAME_ValutaDate = "ValutaDate"; -} + +/** Generated Model for C_BankStatementLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankStatementLine extends PO implements I_C_BankStatementLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankStatementLine (Properties ctx, int C_BankStatementLine_ID, String trxName) + { + super (ctx, C_BankStatementLine_ID, trxName); + /** if (C_BankStatementLine_ID == 0) { setC_BankStatementLine_ID (0); + setC_BankStatement_ID (0); + setC_Charge_ID (0); + setC_Currency_ID (0); +// @SQL=SELECT C_Currency_ID FROM C_BankAccount WHERE C_BankAccount_ID=@C_BankAccount_ID@ + setChargeAmt (Env.ZERO); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @StatementDate@ + setInterestAmt (Env.ZERO); + setIsManual (true); +// Y + setIsReversal (false); + setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 FROM C_BankStatementLine WHERE C_BankStatement_ID=@C_BankStatement_ID@ + setProcessed (false); + setStatementLineDate (new Timestamp(System.currentTimeMillis())); +// @StatementLineDate@ + setStmtAmt (Env.ZERO); + setTrxAmt (Env.ZERO); + setValutaDate (new Timestamp(System.currentTimeMillis())); +// @StatementDate@ +} */ + } + + /** Load Constructor */ + public X_C_BankStatementLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankStatementLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank statement line. + @param C_BankStatementLine_ID + Line on a statement from this Bank + */ + public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) + { + if (C_BankStatementLine_ID < 1) + throw new IllegalArgumentException ("C_BankStatementLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankStatementLine_ID, Integer.valueOf(C_BankStatementLine_ID)); + } + + /** Get Bank statement line. + @return Line on a statement from this Bank + */ + public int getC_BankStatementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankStatement getI_C_BankStatement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Statement. + @param C_BankStatement_ID + Bank Statement of account + */ + public void setC_BankStatement_ID (int C_BankStatement_ID) + { + if (C_BankStatement_ID < 1) + throw new IllegalArgumentException ("C_BankStatement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); + } + + /** Get Bank Statement. + @return Bank Statement of account + */ + public int getC_BankStatement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + throw new IllegalArgumentException ("C_Charge_ID is mandatory."); + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + if (ChargeAmt == null) + throw new IllegalArgumentException ("ChargeAmt is mandatory."); + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Create Payment. + @param CreatePayment Create Payment */ + public void setCreatePayment (String CreatePayment) + { + if (CreatePayment != null && CreatePayment.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreatePayment = CreatePayment.substring(0, 0); + } + set_Value (COLUMNNAME_CreatePayment, CreatePayment); + } + + /** Get Create Payment. +@return Create Payment */ + public String getCreatePayment () + { + return (String)get_Value(COLUMNNAME_CreatePayment); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EFT Amount. + @param EftAmt + Electronic Funds Transfer Amount + */ + public void setEftAmt (BigDecimal EftAmt) + { + set_Value (COLUMNNAME_EftAmt, EftAmt); + } + + /** Get EFT Amount. + @return Electronic Funds Transfer Amount + */ + public BigDecimal getEftAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EftAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set EFT Check No. + @param EftCheckNo + Electronic Funds Transfer Check No + */ + public void setEftCheckNo (String EftCheckNo) + { + if (EftCheckNo != null && EftCheckNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + EftCheckNo = EftCheckNo.substring(0, 19); + } + set_Value (COLUMNNAME_EftCheckNo, EftCheckNo); + } + + /** Get EFT Check No. + @return Electronic Funds Transfer Check No + */ + public String getEftCheckNo () + { + return (String)get_Value(COLUMNNAME_EftCheckNo); + } + + /** Set EFT Currency. + @param EftCurrency + Electronic Funds Transfer Currency + */ + public void setEftCurrency (String EftCurrency) + { + if (EftCurrency != null && EftCurrency.length() > 20) + { + log.warning("Length > 20 - truncated"); + EftCurrency = EftCurrency.substring(0, 19); + } + set_Value (COLUMNNAME_EftCurrency, EftCurrency); + } + + /** Get EFT Currency. + @return Electronic Funds Transfer Currency + */ + public String getEftCurrency () + { + return (String)get_Value(COLUMNNAME_EftCurrency); + } + + /** Set EFT Memo. + @param EftMemo + Electronic Funds Transfer Memo + */ + public void setEftMemo (String EftMemo) + { + if (EftMemo != null && EftMemo.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + EftMemo = EftMemo.substring(0, 1999); + } + set_Value (COLUMNNAME_EftMemo, EftMemo); + } + + /** Get EFT Memo. + @return Electronic Funds Transfer Memo + */ + public String getEftMemo () + { + return (String)get_Value(COLUMNNAME_EftMemo); + } + + /** Set EFT Payee. + @param EftPayee + Electronic Funds Transfer Payee information + */ + public void setEftPayee (String EftPayee) + { + if (EftPayee != null && EftPayee.length() > 255) + { + log.warning("Length > 255 - truncated"); + EftPayee = EftPayee.substring(0, 254); + } + set_Value (COLUMNNAME_EftPayee, EftPayee); + } + + /** Get EFT Payee. + @return Electronic Funds Transfer Payee information + */ + public String getEftPayee () + { + return (String)get_Value(COLUMNNAME_EftPayee); + } + + /** Set EFT Payee Account. + @param EftPayeeAccount + Electronic Funds Transfer Payyee Account Information + */ + public void setEftPayeeAccount (String EftPayeeAccount) + { + if (EftPayeeAccount != null && EftPayeeAccount.length() > 40) + { + log.warning("Length > 40 - truncated"); + EftPayeeAccount = EftPayeeAccount.substring(0, 39); + } + set_Value (COLUMNNAME_EftPayeeAccount, EftPayeeAccount); + } + + /** Get EFT Payee Account. + @return Electronic Funds Transfer Payyee Account Information + */ + public String getEftPayeeAccount () + { + return (String)get_Value(COLUMNNAME_EftPayeeAccount); + } + + /** Set EFT Reference. + @param EftReference + Electronic Funds Transfer Reference + */ + public void setEftReference (String EftReference) + { + if (EftReference != null && EftReference.length() > 60) + { + log.warning("Length > 60 - truncated"); + EftReference = EftReference.substring(0, 59); + } + set_Value (COLUMNNAME_EftReference, EftReference); + } + + /** Get EFT Reference. + @return Electronic Funds Transfer Reference + */ + public String getEftReference () + { + return (String)get_Value(COLUMNNAME_EftReference); + } + + /** Set EFT Statement Line Date. + @param EftStatementLineDate + Electronic Funds Transfer Statement Line Date + */ + public void setEftStatementLineDate (Timestamp EftStatementLineDate) + { + set_Value (COLUMNNAME_EftStatementLineDate, EftStatementLineDate); + } + + /** Get EFT Statement Line Date. + @return Electronic Funds Transfer Statement Line Date + */ + public Timestamp getEftStatementLineDate () + { + return (Timestamp)get_Value(COLUMNNAME_EftStatementLineDate); + } + + /** Set EFT Trx ID. + @param EftTrxID + Electronic Funds Transfer Transaction ID + */ + public void setEftTrxID (String EftTrxID) + { + if (EftTrxID != null && EftTrxID.length() > 40) + { + log.warning("Length > 40 - truncated"); + EftTrxID = EftTrxID.substring(0, 39); + } + set_Value (COLUMNNAME_EftTrxID, EftTrxID); + } + + /** Get EFT Trx ID. + @return Electronic Funds Transfer Transaction ID + */ + public String getEftTrxID () + { + return (String)get_Value(COLUMNNAME_EftTrxID); + } + + /** Set EFT Trx Type. + @param EftTrxType + Electronic Funds Transfer Transaction Type + */ + public void setEftTrxType (String EftTrxType) + { + if (EftTrxType != null && EftTrxType.length() > 20) + { + log.warning("Length > 20 - truncated"); + EftTrxType = EftTrxType.substring(0, 19); + } + set_Value (COLUMNNAME_EftTrxType, EftTrxType); + } + + /** Get EFT Trx Type. + @return Electronic Funds Transfer Transaction Type + */ + public String getEftTrxType () + { + return (String)get_Value(COLUMNNAME_EftTrxType); + } + + /** Set EFT Effective Date. + @param EftValutaDate + Electronic Funds Transfer Valuta (effective) Date + */ + public void setEftValutaDate (Timestamp EftValutaDate) + { + set_Value (COLUMNNAME_EftValutaDate, EftValutaDate); + } + + /** Get EFT Effective Date. + @return Electronic Funds Transfer Valuta (effective) Date + */ + public Timestamp getEftValutaDate () + { + return (Timestamp)get_Value(COLUMNNAME_EftValutaDate); + } + + /** Set Interest Amount. + @param InterestAmt + Interest Amount + */ + public void setInterestAmt (BigDecimal InterestAmt) + { + if (InterestAmt == null) + throw new IllegalArgumentException ("InterestAmt is mandatory."); + set_Value (COLUMNNAME_InterestAmt, InterestAmt); + } + + /** Get Interest Amount. + @return Interest Amount + */ + public BigDecimal getInterestAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InterestAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reversal. + @param IsReversal + This is a reversing transaction + */ + public void setIsReversal (boolean IsReversal) + { + set_Value (COLUMNNAME_IsReversal, Boolean.valueOf(IsReversal)); + } + + /** Get Reversal. + @return This is a reversing transaction + */ + public boolean isReversal () + { + Object oo = get_Value(COLUMNNAME_IsReversal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Match Statement. + @param MatchStatement Match Statement */ + public void setMatchStatement (String MatchStatement) + { + if (MatchStatement != null && MatchStatement.length() > 1) + { + log.warning("Length > 1 - truncated"); + MatchStatement = MatchStatement.substring(0, 0); + } + set_Value (COLUMNNAME_MatchStatement, MatchStatement); + } + + /** Get Match Statement. +@return Match Statement */ + public String getMatchStatement () + { + return (String)get_Value(COLUMNNAME_MatchStatement); + } + + /** Set Memo. + @param Memo + Memo Text + */ + public void setMemo (String Memo) + { + if (Memo != null && Memo.length() > 255) + { + log.warning("Length > 255 - truncated"); + Memo = Memo.substring(0, 254); + } + set_Value (COLUMNNAME_Memo, Memo); + } + + /** Get Memo. + @return Memo Text + */ + public String getMemo () + { + return (String)get_Value(COLUMNNAME_Memo); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference No. + @param ReferenceNo + Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo) + { + if (ReferenceNo != null && ReferenceNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + ReferenceNo = ReferenceNo.substring(0, 39); + } + set_Value (COLUMNNAME_ReferenceNo, ReferenceNo); + } + + /** Get Reference No. + @return Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo () + { + return (String)get_Value(COLUMNNAME_ReferenceNo); + } + + /** Set Statement Line Date. + @param StatementLineDate + Date of the Statement Line + */ + public void setStatementLineDate (Timestamp StatementLineDate) + { + if (StatementLineDate == null) + throw new IllegalArgumentException ("StatementLineDate is mandatory."); + set_Value (COLUMNNAME_StatementLineDate, StatementLineDate); + } + + /** Get Statement Line Date. + @return Date of the Statement Line + */ + public Timestamp getStatementLineDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementLineDate); + } + + /** Set Statement amount. + @param StmtAmt + Statement Amount + */ + public void setStmtAmt (BigDecimal StmtAmt) + { + if (StmtAmt == null) + throw new IllegalArgumentException ("StmtAmt is mandatory."); + set_Value (COLUMNNAME_StmtAmt, StmtAmt); + } + + /** Get Statement amount. + @return Statement Amount + */ + public BigDecimal getStmtAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_StmtAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Transaction Amount. + @param TrxAmt + Amount of a transaction + */ + public void setTrxAmt (BigDecimal TrxAmt) + { + if (TrxAmt == null) + throw new IllegalArgumentException ("TrxAmt is mandatory."); + set_Value (COLUMNNAME_TrxAmt, TrxAmt); + } + + /** Get Transaction Amount. + @return Amount of a transaction + */ + public BigDecimal getTrxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TrxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Effective date. + @param ValutaDate + Date when money is available + */ + public void setValutaDate (Timestamp ValutaDate) + { + if (ValutaDate == null) + throw new IllegalArgumentException ("ValutaDate is mandatory."); + set_Value (COLUMNNAME_ValutaDate, ValutaDate); + } + + /** Get Effective date. + @return Date when money is available + */ + public Timestamp getValutaDate () + { + return (Timestamp)get_Value(COLUMNNAME_ValutaDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BankStatementLoader.java b/base/src/org/compiere/model/X_C_BankStatementLoader.java index 5b243e0406..c1b8e01f29 100644 --- a/base/src/org/compiere/model/X_C_BankStatementLoader.java +++ b/base/src/org/compiere/model/X_C_BankStatementLoader.java @@ -1,462 +1,532 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankStatementLoader - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankStatementLoader extends PO + +/** Generated Model for C_BankStatementLoader + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankStatementLoader extends PO implements I_C_BankStatementLoader, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BankStatementLoader_ID id -@param trxName transaction -*/ -public X_C_BankStatementLoader (Properties ctx, int C_BankStatementLoader_ID, String trxName) -{ -super (ctx, C_BankStatementLoader_ID, trxName); -/** if (C_BankStatementLoader_ID == 0) -{ -setC_BankAccount_ID (0); -setC_BankStatementLoader_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankStatementLoader (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankStatementLoader */ -public static final String Table_Name="C_BankStatementLoader"; - -/** AD_Table_ID=640 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankStatementLoader[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Account No. -@param AccountNo Account Number */ -public void setAccountNo (String AccountNo) -{ -if (AccountNo != null && AccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -AccountNo = AccountNo.substring(0,19); -} -set_Value ("AccountNo", AccountNo); -} -/** Get Account No. -@return Account Number */ -public String getAccountNo() -{ -return (String)get_Value("AccountNo"); -} -/** Column name AccountNo */ -public static final String COLUMNNAME_AccountNo = "AccountNo"; -/** Set Branch ID. -@param BranchID Bank Branch ID */ -public void setBranchID (String BranchID) -{ -if (BranchID != null && BranchID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -BranchID = BranchID.substring(0,19); -} -set_Value ("BranchID", BranchID); -} -/** Get Branch ID. -@return Bank Branch ID */ -public String getBranchID() -{ -return (String)get_Value("BranchID"); -} -/** Column name BranchID */ -public static final String COLUMNNAME_BranchID = "BranchID"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_ValueNoCheck ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Bank Statement Loader. -@param C_BankStatementLoader_ID Definition of Bank Statement Loader (SWIFT, OFX) */ -public void setC_BankStatementLoader_ID (int C_BankStatementLoader_ID) -{ -if (C_BankStatementLoader_ID < 1) throw new IllegalArgumentException ("C_BankStatementLoader_ID is mandatory."); -set_ValueNoCheck ("C_BankStatementLoader_ID", Integer.valueOf(C_BankStatementLoader_ID)); -} -/** Get Bank Statement Loader. -@return Definition of Bank Statement Loader (SWIFT, OFX) */ -public int getC_BankStatementLoader_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatementLoader_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatementLoader_ID */ -public static final String COLUMNNAME_C_BankStatementLoader_ID = "C_BankStatementLoader_ID"; -/** Set Date Format. -@param DateFormat Date format used in the imput format */ -public void setDateFormat (String DateFormat) -{ -if (DateFormat != null && DateFormat.length() > 20) -{ -log.warning("Length > 20 - truncated"); -DateFormat = DateFormat.substring(0,19); -} -set_Value ("DateFormat", DateFormat); -} -/** Get Date Format. -@return Date format used in the imput format */ -public String getDateFormat() -{ -return (String)get_Value("DateFormat"); -} -/** Column name DateFormat */ -public static final String COLUMNNAME_DateFormat = "DateFormat"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set File Name. -@param FileName Name of the local file or URL */ -public void setFileName (String FileName) -{ -if (FileName != null && FileName.length() > 120) -{ -log.warning("Length > 120 - truncated"); -FileName = FileName.substring(0,119); -} -set_Value ("FileName", FileName); -} -/** Get File Name. -@return Name of the local file or URL */ -public String getFileName() -{ -return (String)get_Value("FileName"); -} -/** Column name FileName */ -public static final String COLUMNNAME_FileName = "FileName"; -/** Set Financial Institution ID. -@param FinancialInstitutionID The ID of the Financial Institution / Bank */ -public void setFinancialInstitutionID (String FinancialInstitutionID) -{ -if (FinancialInstitutionID != null && FinancialInstitutionID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -FinancialInstitutionID = FinancialInstitutionID.substring(0,19); -} -set_Value ("FinancialInstitutionID", FinancialInstitutionID); -} -/** Get Financial Institution ID. -@return The ID of the Financial Institution / Bank */ -public String getFinancialInstitutionID() -{ -return (String)get_Value("FinancialInstitutionID"); -} -/** Column name FinancialInstitutionID */ -public static final String COLUMNNAME_FinancialInstitutionID = "FinancialInstitutionID"; -/** Set Host Address. -@param HostAddress Host Address URL or DNS */ -public void setHostAddress (String HostAddress) -{ -if (HostAddress != null && HostAddress.length() > 60) -{ -log.warning("Length > 60 - truncated"); -HostAddress = HostAddress.substring(0,59); -} -set_Value ("HostAddress", HostAddress); -} -/** Get Host Address. -@return Host Address URL or DNS */ -public String getHostAddress() -{ -return (String)get_Value("HostAddress"); -} -/** Column name HostAddress */ -public static final String COLUMNNAME_HostAddress = "HostAddress"; -/** Set Host port. -@param HostPort Host Communication Port */ -public void setHostPort (int HostPort) -{ -set_Value ("HostPort", Integer.valueOf(HostPort)); -} -/** Get Host port. -@return Host Communication Port */ -public int getHostPort() -{ -Integer ii = (Integer)get_Value("HostPort"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HostPort */ -public static final String COLUMNNAME_HostPort = "HostPort"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set PIN. -@param PIN Personal Identification Number */ -public void setPIN (String PIN) -{ -if (PIN != null && PIN.length() > 20) -{ -log.warning("Length > 20 - truncated"); -PIN = PIN.substring(0,19); -} -set_Value ("PIN", PIN); -} -/** Get PIN. -@return Personal Identification Number */ -public String getPIN() -{ -return (String)get_Value("PIN"); -} -/** Column name PIN */ -public static final String COLUMNNAME_PIN = "PIN"; -/** Set Password. -@param Password Password of any length (case sensitive) */ -public void setPassword (String Password) -{ -if (Password != null && Password.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Password = Password.substring(0,59); -} -set_Value ("Password", Password); -} -/** Get Password. -@return Password of any length (case sensitive) */ -public String getPassword() -{ -return (String)get_Value("Password"); -} -/** Column name Password */ -public static final String COLUMNNAME_Password = "Password"; -/** Set Proxy address. -@param ProxyAddress Address of your proxy server */ -public void setProxyAddress (String ProxyAddress) -{ -if (ProxyAddress != null && ProxyAddress.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProxyAddress = ProxyAddress.substring(0,59); -} -set_Value ("ProxyAddress", ProxyAddress); -} -/** Get Proxy address. -@return Address of your proxy server */ -public String getProxyAddress() -{ -return (String)get_Value("ProxyAddress"); -} -/** Column name ProxyAddress */ -public static final String COLUMNNAME_ProxyAddress = "ProxyAddress"; -/** Set Proxy logon. -@param ProxyLogon Logon of your proxy server */ -public void setProxyLogon (String ProxyLogon) -{ -if (ProxyLogon != null && ProxyLogon.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProxyLogon = ProxyLogon.substring(0,59); -} -set_Value ("ProxyLogon", ProxyLogon); -} -/** Get Proxy logon. -@return Logon of your proxy server */ -public String getProxyLogon() -{ -return (String)get_Value("ProxyLogon"); -} -/** Column name ProxyLogon */ -public static final String COLUMNNAME_ProxyLogon = "ProxyLogon"; -/** Set Proxy password. -@param ProxyPassword Password of your proxy server */ -public void setProxyPassword (String ProxyPassword) -{ -if (ProxyPassword != null && ProxyPassword.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProxyPassword = ProxyPassword.substring(0,59); -} -set_Value ("ProxyPassword", ProxyPassword); -} -/** Get Proxy password. -@return Password of your proxy server */ -public String getProxyPassword() -{ -return (String)get_Value("ProxyPassword"); -} -/** Column name ProxyPassword */ -public static final String COLUMNNAME_ProxyPassword = "ProxyPassword"; -/** Set Proxy port. -@param ProxyPort Port of your proxy server */ -public void setProxyPort (int ProxyPort) -{ -set_Value ("ProxyPort", Integer.valueOf(ProxyPort)); -} -/** Get Proxy port. -@return Port of your proxy server */ -public int getProxyPort() -{ -Integer ii = (Integer)get_Value("ProxyPort"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ProxyPort */ -public static final String COLUMNNAME_ProxyPort = "ProxyPort"; -/** Set Statement Loader Class. -@param StmtLoaderClass Class name of the bank statement loader */ -public void setStmtLoaderClass (String StmtLoaderClass) -{ -if (StmtLoaderClass != null && StmtLoaderClass.length() > 60) -{ -log.warning("Length > 60 - truncated"); -StmtLoaderClass = StmtLoaderClass.substring(0,59); -} -set_Value ("StmtLoaderClass", StmtLoaderClass); -} -/** Get Statement Loader Class. -@return Class name of the bank statement loader */ -public String getStmtLoaderClass() -{ -return (String)get_Value("StmtLoaderClass"); -} -/** Column name StmtLoaderClass */ -public static final String COLUMNNAME_StmtLoaderClass = "StmtLoaderClass"; -/** Set User ID. -@param UserID User ID or account number */ -public void setUserID (String UserID) -{ -if (UserID != null && UserID.length() > 60) -{ -log.warning("Length > 60 - truncated"); -UserID = UserID.substring(0,59); -} -set_Value ("UserID", UserID); -} -/** Get User ID. -@return User ID or account number */ -public String getUserID() -{ -return (String)get_Value("UserID"); -} -/** Column name UserID */ -public static final String COLUMNNAME_UserID = "UserID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankStatementLoader (Properties ctx, int C_BankStatementLoader_ID, String trxName) + { + super (ctx, C_BankStatementLoader_ID, trxName); + /** if (C_BankStatementLoader_ID == 0) { setC_BankAccount_ID (0); + setC_BankStatementLoader_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_BankStatementLoader (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankStatementLoader[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + if (AccountNo != null && AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } + + /** Set Branch ID. + @param BranchID + Bank Branch ID + */ + public void setBranchID (String BranchID) + { + if (BranchID != null && BranchID.length() > 20) + { + log.warning("Length > 20 - truncated"); + BranchID = BranchID.substring(0, 19); + } + set_Value (COLUMNNAME_BranchID, BranchID); + } + + /** Get Branch ID. + @return Bank Branch ID + */ + public String getBranchID () + { + return (String)get_Value(COLUMNNAME_BranchID); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Statement Loader. + @param C_BankStatementLoader_ID + Definition of Bank Statement Loader (SWIFT, OFX) + */ + public void setC_BankStatementLoader_ID (int C_BankStatementLoader_ID) + { + if (C_BankStatementLoader_ID < 1) + throw new IllegalArgumentException ("C_BankStatementLoader_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankStatementLoader_ID, Integer.valueOf(C_BankStatementLoader_ID)); + } + + /** Get Bank Statement Loader. + @return Definition of Bank Statement Loader (SWIFT, OFX) + */ + public int getC_BankStatementLoader_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatementLoader_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date Format. + @param DateFormat + Date format used in the imput format + */ + public void setDateFormat (String DateFormat) + { + if (DateFormat != null && DateFormat.length() > 20) + { + log.warning("Length > 20 - truncated"); + DateFormat = DateFormat.substring(0, 19); + } + set_Value (COLUMNNAME_DateFormat, DateFormat); + } + + /** Get Date Format. + @return Date format used in the imput format + */ + public String getDateFormat () + { + return (String)get_Value(COLUMNNAME_DateFormat); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set File Name. + @param FileName + Name of the local file or URL + */ + public void setFileName (String FileName) + { + if (FileName != null && FileName.length() > 120) + { + log.warning("Length > 120 - truncated"); + FileName = FileName.substring(0, 119); + } + set_Value (COLUMNNAME_FileName, FileName); + } + + /** Get File Name. + @return Name of the local file or URL + */ + public String getFileName () + { + return (String)get_Value(COLUMNNAME_FileName); + } + + /** Set Financial Institution ID. + @param FinancialInstitutionID + The ID of the Financial Institution / Bank + */ + public void setFinancialInstitutionID (String FinancialInstitutionID) + { + if (FinancialInstitutionID != null && FinancialInstitutionID.length() > 20) + { + log.warning("Length > 20 - truncated"); + FinancialInstitutionID = FinancialInstitutionID.substring(0, 19); + } + set_Value (COLUMNNAME_FinancialInstitutionID, FinancialInstitutionID); + } + + /** Get Financial Institution ID. + @return The ID of the Financial Institution / Bank + */ + public String getFinancialInstitutionID () + { + return (String)get_Value(COLUMNNAME_FinancialInstitutionID); + } + + /** Set Host Address. + @param HostAddress + Host Address URL or DNS + */ + public void setHostAddress (String HostAddress) + { + if (HostAddress != null && HostAddress.length() > 60) + { + log.warning("Length > 60 - truncated"); + HostAddress = HostAddress.substring(0, 59); + } + set_Value (COLUMNNAME_HostAddress, HostAddress); + } + + /** Get Host Address. + @return Host Address URL or DNS + */ + public String getHostAddress () + { + return (String)get_Value(COLUMNNAME_HostAddress); + } + + /** Set Host port. + @param HostPort + Host Communication Port + */ + public void setHostPort (int HostPort) + { + set_Value (COLUMNNAME_HostPort, Integer.valueOf(HostPort)); + } + + /** Get Host port. + @return Host Communication Port + */ + public int getHostPort () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HostPort); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set PIN. + @param PIN + Personal Identification Number + */ + public void setPIN (String PIN) + { + if (PIN != null && PIN.length() > 20) + { + log.warning("Length > 20 - truncated"); + PIN = PIN.substring(0, 19); + } + set_Value (COLUMNNAME_PIN, PIN); + } + + /** Get PIN. + @return Personal Identification Number + */ + public String getPIN () + { + return (String)get_Value(COLUMNNAME_PIN); + } + + /** Set Password. + @param Password + Password of any length (case sensitive) + */ + public void setPassword (String Password) + { + if (Password != null && Password.length() > 60) + { + log.warning("Length > 60 - truncated"); + Password = Password.substring(0, 59); + } + set_Value (COLUMNNAME_Password, Password); + } + + /** Get Password. + @return Password of any length (case sensitive) + */ + public String getPassword () + { + return (String)get_Value(COLUMNNAME_Password); + } + + /** Set Proxy address. + @param ProxyAddress + Address of your proxy server + */ + public void setProxyAddress (String ProxyAddress) + { + if (ProxyAddress != null && ProxyAddress.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProxyAddress = ProxyAddress.substring(0, 59); + } + set_Value (COLUMNNAME_ProxyAddress, ProxyAddress); + } + + /** Get Proxy address. + @return Address of your proxy server + */ + public String getProxyAddress () + { + return (String)get_Value(COLUMNNAME_ProxyAddress); + } + + /** Set Proxy logon. + @param ProxyLogon + Logon of your proxy server + */ + public void setProxyLogon (String ProxyLogon) + { + if (ProxyLogon != null && ProxyLogon.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProxyLogon = ProxyLogon.substring(0, 59); + } + set_Value (COLUMNNAME_ProxyLogon, ProxyLogon); + } + + /** Get Proxy logon. + @return Logon of your proxy server + */ + public String getProxyLogon () + { + return (String)get_Value(COLUMNNAME_ProxyLogon); + } + + /** Set Proxy password. + @param ProxyPassword + Password of your proxy server + */ + public void setProxyPassword (String ProxyPassword) + { + if (ProxyPassword != null && ProxyPassword.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProxyPassword = ProxyPassword.substring(0, 59); + } + set_Value (COLUMNNAME_ProxyPassword, ProxyPassword); + } + + /** Get Proxy password. + @return Password of your proxy server + */ + public String getProxyPassword () + { + return (String)get_Value(COLUMNNAME_ProxyPassword); + } + + /** Set Proxy port. + @param ProxyPort + Port of your proxy server + */ + public void setProxyPort (int ProxyPort) + { + set_Value (COLUMNNAME_ProxyPort, Integer.valueOf(ProxyPort)); + } + + /** Get Proxy port. + @return Port of your proxy server + */ + public int getProxyPort () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ProxyPort); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Statement Loader Class. + @param StmtLoaderClass + Class name of the bank statement loader + */ + public void setStmtLoaderClass (String StmtLoaderClass) + { + if (StmtLoaderClass != null && StmtLoaderClass.length() > 60) + { + log.warning("Length > 60 - truncated"); + StmtLoaderClass = StmtLoaderClass.substring(0, 59); + } + set_Value (COLUMNNAME_StmtLoaderClass, StmtLoaderClass); + } + + /** Get Statement Loader Class. + @return Class name of the bank statement loader + */ + public String getStmtLoaderClass () + { + return (String)get_Value(COLUMNNAME_StmtLoaderClass); + } + + /** Set User ID. + @param UserID + User ID or account number + */ + public void setUserID (String UserID) + { + if (UserID != null && UserID.length() > 60) + { + log.warning("Length > 60 - truncated"); + UserID = UserID.substring(0, 59); + } + set_Value (COLUMNNAME_UserID, UserID); + } + + /** Get User ID. + @return User ID or account number + */ + public String getUserID () + { + return (String)get_Value(COLUMNNAME_UserID); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BankStatementMatcher.java b/base/src/org/compiere/model/X_C_BankStatementMatcher.java index 6ccf98d3c0..e7a8501c9b 100644 --- a/base/src/org/compiere/model/X_C_BankStatementMatcher.java +++ b/base/src/org/compiere/model/X_C_BankStatementMatcher.java @@ -1,191 +1,196 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_BankStatementMatcher - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_BankStatementMatcher extends PO + +/** Generated Model for C_BankStatementMatcher + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_BankStatementMatcher extends PO implements I_C_BankStatementMatcher, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_BankStatementMatcher_ID id -@param trxName transaction -*/ -public X_C_BankStatementMatcher (Properties ctx, int C_BankStatementMatcher_ID, String trxName) -{ -super (ctx, C_BankStatementMatcher_ID, trxName); -/** if (C_BankStatementMatcher_ID == 0) -{ -setC_BankStatementMatcher_ID (0); -setClassname (null); -setName (null); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_BankStatementMatcher (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_BankStatementMatcher */ -public static final String Table_Name="C_BankStatementMatcher"; - -/** AD_Table_ID=658 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_BankStatementMatcher[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Bank Statement Matcher. -@param C_BankStatementMatcher_ID Algorithm to match Bank Statement Info to Business Partners, Invoices and Payments */ -public void setC_BankStatementMatcher_ID (int C_BankStatementMatcher_ID) -{ -if (C_BankStatementMatcher_ID < 1) throw new IllegalArgumentException ("C_BankStatementMatcher_ID is mandatory."); -set_ValueNoCheck ("C_BankStatementMatcher_ID", Integer.valueOf(C_BankStatementMatcher_ID)); -} -/** Get Bank Statement Matcher. -@return Algorithm to match Bank Statement Info to Business Partners, Invoices and Payments */ -public int getC_BankStatementMatcher_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatementMatcher_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatementMatcher_ID */ -public static final String COLUMNNAME_C_BankStatementMatcher_ID = "C_BankStatementMatcher_ID"; -/** Set Classname. -@param Classname Java Classname */ -public void setClassname (String Classname) -{ -if (Classname == null) throw new IllegalArgumentException ("Classname is mandatory."); -if (Classname.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Classname = Classname.substring(0,59); -} -set_Value ("Classname", Classname); -} -/** Get Classname. -@return Java Classname */ -public String getClassname() -{ -return (String)get_Value("Classname"); -} -/** Column name Classname */ -public static final String COLUMNNAME_Classname = "Classname"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BankStatementMatcher (Properties ctx, int C_BankStatementMatcher_ID, String trxName) + { + super (ctx, C_BankStatementMatcher_ID, trxName); + /** if (C_BankStatementMatcher_ID == 0) { setC_BankStatementMatcher_ID (0); + setClassname (null); + setName (null); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_C_BankStatementMatcher (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_BankStatementMatcher[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Bank Statement Matcher. + @param C_BankStatementMatcher_ID + Algorithm to match Bank Statement Info to Business Partners, Invoices and Payments + */ + public void setC_BankStatementMatcher_ID (int C_BankStatementMatcher_ID) + { + if (C_BankStatementMatcher_ID < 1) + throw new IllegalArgumentException ("C_BankStatementMatcher_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankStatementMatcher_ID, Integer.valueOf(C_BankStatementMatcher_ID)); + } + + /** Get Bank Statement Matcher. + @return Algorithm to match Bank Statement Info to Business Partners, Invoices and Payments + */ + public int getC_BankStatementMatcher_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatementMatcher_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Classname. + @param Classname + Java Classname + */ + public void setClassname (String Classname) + { + if (Classname == null) + throw new IllegalArgumentException ("Classname is mandatory."); + if (Classname.length() > 60) + { + log.warning("Length > 60 - truncated"); + Classname = Classname.substring(0, 59); + } + set_Value (COLUMNNAME_Classname, Classname); + } + + /** Get Classname. + @return Java Classname + */ + public String getClassname () + { + return (String)get_Value(COLUMNNAME_Classname); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Calendar.java b/base/src/org/compiere/model/X_C_Calendar.java index 8e28eccd2b..985cd5fd31 100644 --- a/base/src/org/compiere/model/X_C_Calendar.java +++ b/base/src/org/compiere/model/X_C_Calendar.java @@ -1,151 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Calendar - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Calendar extends PO + +/** Generated Model for C_Calendar + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Calendar extends PO implements I_C_Calendar, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Calendar_ID id -@param trxName transaction -*/ -public X_C_Calendar (Properties ctx, int C_Calendar_ID, String trxName) -{ -super (ctx, C_Calendar_ID, trxName); -/** if (C_Calendar_ID == 0) -{ -setC_Calendar_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Calendar (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Calendar */ -public static final String Table_Name="C_Calendar"; - -/** AD_Table_ID=139 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Calendar[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID < 1) throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); -set_ValueNoCheck ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Calendar (Properties ctx, int C_Calendar_ID, String trxName) + { + super (ctx, C_Calendar_ID, trxName); + /** if (C_Calendar_ID == 0) { setC_Calendar_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Calendar (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Calendar[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Campaign.java b/base/src/org/compiere/model/X_C_Campaign.java index fe3333f853..2cef61aaba 100644 --- a/base/src/org/compiere/model/X_C_Campaign.java +++ b/base/src/org/compiere/model/X_C_Campaign.java @@ -1,257 +1,295 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Campaign - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Campaign extends PO + +/** Generated Model for C_Campaign + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Campaign extends PO implements I_C_Campaign, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Campaign_ID id -@param trxName transaction -*/ -public X_C_Campaign (Properties ctx, int C_Campaign_ID, String trxName) -{ -super (ctx, C_Campaign_ID, trxName); -/** if (C_Campaign_ID == 0) -{ -setC_Campaign_ID (0); -setCosts (Env.ZERO); -setIsSummary (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Campaign (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Campaign */ -public static final String Table_Name="C_Campaign"; - -/** AD_Table_ID=274 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Campaign[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID < 1) throw new IllegalArgumentException ("C_Campaign_ID is mandatory."); -set_ValueNoCheck ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Channel. -@param C_Channel_ID Sales Channel */ -public void setC_Channel_ID (int C_Channel_ID) -{ -if (C_Channel_ID <= 0) set_Value ("C_Channel_ID", null); - else -set_Value ("C_Channel_ID", Integer.valueOf(C_Channel_ID)); -} -/** Get Channel. -@return Sales Channel */ -public int getC_Channel_ID() -{ -Integer ii = (Integer)get_Value("C_Channel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Channel_ID */ -public static final String COLUMNNAME_C_Channel_ID = "C_Channel_ID"; -/** Set Costs. -@param Costs Costs in accounting currency */ -public void setCosts (BigDecimal Costs) -{ -if (Costs == null) throw new IllegalArgumentException ("Costs is mandatory."); -set_Value ("Costs", Costs); -} -/** Get Costs. -@return Costs in accounting currency */ -public BigDecimal getCosts() -{ -BigDecimal bd = (BigDecimal)get_Value("Costs"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Costs */ -public static final String COLUMNNAME_Costs = "Costs"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set End Date. -@param EndDate Last effective date (inclusive) */ -public void setEndDate (Timestamp EndDate) -{ -set_Value ("EndDate", EndDate); -} -/** Get End Date. -@return Last effective date (inclusive) */ -public Timestamp getEndDate() -{ -return (Timestamp)get_Value("EndDate"); -} -/** Column name EndDate */ -public static final String COLUMNNAME_EndDate = "EndDate"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Campaign (Properties ctx, int C_Campaign_ID, String trxName) + { + super (ctx, C_Campaign_ID, trxName); + /** if (C_Campaign_ID == 0) { setC_Campaign_ID (0); + setCosts (Env.ZERO); + setIsSummary (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_Campaign (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Campaign[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID < 1) + throw new IllegalArgumentException ("C_Campaign_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Channel getI_C_Channel() throws Exception + { + 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 e; + } + return result; + } + + /** Set Channel. + @param C_Channel_ID + Sales Channel + */ + public void setC_Channel_ID (int C_Channel_ID) + { + if (C_Channel_ID <= 0) set_Value (COLUMNNAME_C_Channel_ID, null); + else + set_Value (COLUMNNAME_C_Channel_ID, Integer.valueOf(C_Channel_ID)); + } + + /** Get Channel. + @return Sales Channel + */ + public int getC_Channel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Channel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Costs. + @param Costs + Costs in accounting currency + */ + public void setCosts (BigDecimal Costs) + { + if (Costs == null) + throw new IllegalArgumentException ("Costs is mandatory."); + set_Value (COLUMNNAME_Costs, Costs); + } + + /** Get Costs. + @return Costs in accounting currency + */ + public BigDecimal getCosts () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Costs); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set End Date. + @param EndDate + Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate) + { + set_Value (COLUMNNAME_EndDate, EndDate); + } + + /** Get End Date. + @return Last effective date (inclusive) + */ + public Timestamp getEndDate () + { + return (Timestamp)get_Value(COLUMNNAME_EndDate); + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Cash.java b/base/src/org/compiere/model/X_C_Cash.java index d1d8d8790b..aef9415b91 100644 --- a/base/src/org/compiere/model/X_C_Cash.java +++ b/base/src/org/compiere/model/X_C_Cash.java @@ -1,557 +1,659 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Cash - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Cash extends PO + +/** Generated Model for C_Cash + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Cash extends PO implements I_C_Cash, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Cash_ID id -@param trxName transaction -*/ -public X_C_Cash (Properties ctx, int C_Cash_ID, String trxName) -{ -super (ctx, C_Cash_ID, trxName); -/** if (C_Cash_ID == 0) -{ -setBeginningBalance (Env.ZERO); -setC_CashBook_ID (0); -setC_Cash_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDocAction (null); // CO -setDocStatus (null); // DR -setEndingBalance (Env.ZERO); -setIsApproved (false); -setName (null); // @#Date@ -setPosted (false); // N -setProcessed (false); -setStatementDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Cash (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Cash */ -public static final String Table_Name="C_Cash"; - -/** AD_Table_ID=407 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Cash[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Cash (Properties ctx, int C_Cash_ID, String trxName) + { + super (ctx, C_Cash_ID, trxName); + /** if (C_Cash_ID == 0) { setBeginningBalance (Env.ZERO); + setC_CashBook_ID (0); + setC_Cash_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setEndingBalance (Env.ZERO); + setIsApproved (false); + setName (null); +// @#Date@ + setPosted (false); +// N + setProcessed (false); + setStatementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ +} */ + } + + /** Load Constructor */ + public X_C_Cash (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Cash[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Beginning Balance. -@param BeginningBalance Balance prior to any transactions */ -public void setBeginningBalance (BigDecimal BeginningBalance) -{ -if (BeginningBalance == null) throw new IllegalArgumentException ("BeginningBalance is mandatory."); -set_Value ("BeginningBalance", BeginningBalance); -} -/** Get Beginning Balance. -@return Balance prior to any transactions */ -public BigDecimal getBeginningBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("BeginningBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BeginningBalance */ -public static final String COLUMNNAME_BeginningBalance = "BeginningBalance"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Cash Book. -@param C_CashBook_ID Cash Book for recording petty cash transactions */ -public void setC_CashBook_ID (int C_CashBook_ID) -{ -if (C_CashBook_ID < 1) throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); -set_ValueNoCheck ("C_CashBook_ID", Integer.valueOf(C_CashBook_ID)); -} -/** Get Cash Book. -@return Cash Book for recording petty cash transactions */ -public int getC_CashBook_ID() -{ -Integer ii = (Integer)get_Value("C_CashBook_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashBook_ID */ -public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; -/** Set Cash Journal. -@param C_Cash_ID Cash Journal */ -public void setC_Cash_ID (int C_Cash_ID) -{ -if (C_Cash_ID < 1) throw new IllegalArgumentException ("C_Cash_ID is mandatory."); -set_ValueNoCheck ("C_Cash_ID", Integer.valueOf(C_Cash_ID)); -} -/** Get Cash Journal. -@return Cash Journal */ -public int getC_Cash_ID() -{ -Integer ii = (Integer)get_Value("C_Cash_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Cash_ID */ -public static final String COLUMNNAME_C_Cash_ID = "C_Cash_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Beginning Balance. + @param BeginningBalance + Balance prior to any transactions + */ + public void setBeginningBalance (BigDecimal BeginningBalance) + { + if (BeginningBalance == null) + throw new IllegalArgumentException ("BeginningBalance is mandatory."); + set_Value (COLUMNNAME_BeginningBalance, BeginningBalance); + } + + /** Get Beginning Balance. + @return Balance prior to any transactions + */ + public BigDecimal getBeginningBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BeginningBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_CashBook getI_C_CashBook() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cash Book. + @param C_CashBook_ID + Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID) + { + if (C_CashBook_ID < 1) + throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + } + + /** Get Cash Book. + @return Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal. + @param C_Cash_ID + Cash Journal + */ + public void setC_Cash_ID (int C_Cash_ID) + { + if (C_Cash_ID < 1) + throw new IllegalArgumentException ("C_Cash_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); + } + + /** Get Cash Journal. + @return Cash Journal + */ + public int getC_Cash_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Cash_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Ending balance. -@param EndingBalance Ending or closing balance */ -public void setEndingBalance (BigDecimal EndingBalance) -{ -if (EndingBalance == null) throw new IllegalArgumentException ("EndingBalance is mandatory."); -set_Value ("EndingBalance", EndingBalance); -} -/** Get Ending balance. -@return Ending or closing balance */ -public BigDecimal getEndingBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("EndingBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name EndingBalance */ -public static final String COLUMNNAME_EndingBalance = "EndingBalance"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Statement date. -@param StatementDate Date of the statement */ -public void setStatementDate (Timestamp StatementDate) -{ -if (StatementDate == null) throw new IllegalArgumentException ("StatementDate is mandatory."); -set_Value ("StatementDate", StatementDate); -} -/** Get Statement date. -@return Date of the statement */ -public Timestamp getStatementDate() -{ -return (Timestamp)get_Value("StatementDate"); -} -/** Column name StatementDate */ -public static final String COLUMNNAME_StatementDate = "StatementDate"; -/** Set Statement difference. -@param StatementDifference Difference between statement ending balance and actual ending balance */ -public void setStatementDifference (BigDecimal StatementDifference) -{ -set_Value ("StatementDifference", StatementDifference); -} -/** Get Statement difference. -@return Difference between statement ending balance and actual ending balance */ -public BigDecimal getStatementDifference() -{ -BigDecimal bd = (BigDecimal)get_Value("StatementDifference"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name StatementDifference */ -public static final String COLUMNNAME_StatementDifference = "StatementDifference"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Ending balance. + @param EndingBalance + Ending or closing balance + */ + public void setEndingBalance (BigDecimal EndingBalance) + { + if (EndingBalance == null) + throw new IllegalArgumentException ("EndingBalance is mandatory."); + set_Value (COLUMNNAME_EndingBalance, EndingBalance); + } + + /** Get Ending balance. + @return Ending or closing balance + */ + public BigDecimal getEndingBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EndingBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Statement date. + @param StatementDate + Date of the statement + */ + public void setStatementDate (Timestamp StatementDate) + { + if (StatementDate == null) + throw new IllegalArgumentException ("StatementDate is mandatory."); + set_Value (COLUMNNAME_StatementDate, StatementDate); + } + + /** Get Statement date. + @return Date of the statement + */ + public Timestamp getStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementDate); + } + + /** Set Statement difference. + @param StatementDifference + Difference between statement ending balance and actual ending balance + */ + public void setStatementDifference (BigDecimal StatementDifference) + { + set_Value (COLUMNNAME_StatementDifference, StatementDifference); + } + + /** Get Statement difference. + @return Difference between statement ending balance and actual ending balance + */ + public BigDecimal getStatementDifference () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_StatementDifference); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CashBook.java b/base/src/org/compiere/model/X_C_CashBook.java index 7db85eb518..a5d999a978 100644 --- a/base/src/org/compiere/model/X_C_CashBook.java +++ b/base/src/org/compiere/model/X_C_CashBook.java @@ -1,190 +1,215 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CashBook - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CashBook extends PO + +/** Generated Model for C_CashBook + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CashBook extends PO implements I_C_CashBook, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CashBook_ID id -@param trxName transaction -*/ -public X_C_CashBook (Properties ctx, int C_CashBook_ID, String trxName) -{ -super (ctx, C_CashBook_ID, trxName); -/** if (C_CashBook_ID == 0) -{ -setC_CashBook_ID (0); -setC_Currency_ID (0); // SQL=SELECT cb.C_Currency_ID FROM C_CashBook cb INNER JOIN C_Cash c ON (cb.C_CashBook_ID=c.C_CashBook_ID) WHERE c.C_Cash_ID=@C_Cash_ID@ -setIsDefault (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CashBook (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CashBook */ -public static final String Table_Name="C_CashBook"; - -/** AD_Table_ID=408 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CashBook[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Cash Book. -@param C_CashBook_ID Cash Book for recording petty cash transactions */ -public void setC_CashBook_ID (int C_CashBook_ID) -{ -if (C_CashBook_ID < 1) throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); -set_ValueNoCheck ("C_CashBook_ID", Integer.valueOf(C_CashBook_ID)); -} -/** Get Cash Book. -@return Cash Book for recording petty cash transactions */ -public int getC_CashBook_ID() -{ -Integer ii = (Integer)get_Value("C_CashBook_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashBook_ID */ -public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CashBook (Properties ctx, int C_CashBook_ID, String trxName) + { + super (ctx, C_CashBook_ID, trxName); + /** if (C_CashBook_ID == 0) { setC_CashBook_ID (0); + setC_Currency_ID (0); +// SQL=SELECT cb.C_Currency_ID FROM C_CashBook cb INNER JOIN C_Cash c ON (cb.C_CashBook_ID=c.C_CashBook_ID) WHERE c.C_Cash_ID=@C_Cash_ID@ + setIsDefault (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_CashBook (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CashBook[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Cash Book. + @param C_CashBook_ID + Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID) + { + if (C_CashBook_ID < 1) + throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + } + + /** Get Cash Book. + @return Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 54b9c3bf32..807fae78a4 100644 --- a/base/src/org/compiere/model/X_C_CashBook_Acct.java +++ b/base/src/org/compiere/model/X_C_CashBook_Acct.java @@ -1,208 +1,255 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CashBook_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CashBook_Acct extends PO + +/** Generated Model for C_CashBook_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CashBook_Acct extends PO implements I_C_CashBook_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CashBook_Acct_ID id -@param trxName transaction -*/ -public X_C_CashBook_Acct (Properties ctx, int C_CashBook_Acct_ID, String trxName) -{ -super (ctx, C_CashBook_Acct_ID, trxName); -/** if (C_CashBook_Acct_ID == 0) -{ -setCB_Asset_Acct (0); -setCB_CashTransfer_Acct (0); -setCB_Differences_Acct (0); -setCB_Expense_Acct (0); -setCB_Receipt_Acct (0); -setC_AcctSchema_ID (0); -setC_CashBook_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CashBook_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CashBook_Acct */ -public static final String Table_Name="C_CashBook_Acct"; - -/** AD_Table_ID=409 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CashBook_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Cash Book Asset. -@param CB_Asset_Acct Cash Book Asset Account */ -public void setCB_Asset_Acct (int CB_Asset_Acct) -{ -set_Value ("CB_Asset_Acct", Integer.valueOf(CB_Asset_Acct)); -} -/** Get Cash Book Asset. -@return Cash Book Asset Account */ -public int getCB_Asset_Acct() -{ -Integer ii = (Integer)get_Value("CB_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Asset_Acct */ -public static final String COLUMNNAME_CB_Asset_Acct = "CB_Asset_Acct"; -/** Set Cash Transfer. -@param CB_CashTransfer_Acct Cash Transfer Clearing Account */ -public void setCB_CashTransfer_Acct (int CB_CashTransfer_Acct) -{ -set_Value ("CB_CashTransfer_Acct", Integer.valueOf(CB_CashTransfer_Acct)); -} -/** Get Cash Transfer. -@return Cash Transfer Clearing Account */ -public int getCB_CashTransfer_Acct() -{ -Integer ii = (Integer)get_Value("CB_CashTransfer_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_CashTransfer_Acct */ -public static final String COLUMNNAME_CB_CashTransfer_Acct = "CB_CashTransfer_Acct"; -/** Set Cash Book Differences. -@param CB_Differences_Acct Cash Book Differences Account */ -public void setCB_Differences_Acct (int CB_Differences_Acct) -{ -set_Value ("CB_Differences_Acct", Integer.valueOf(CB_Differences_Acct)); -} -/** Get Cash Book Differences. -@return Cash Book Differences Account */ -public int getCB_Differences_Acct() -{ -Integer ii = (Integer)get_Value("CB_Differences_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Differences_Acct */ -public static final String COLUMNNAME_CB_Differences_Acct = "CB_Differences_Acct"; -/** Set Cash Book Expense. -@param CB_Expense_Acct Cash Book Expense Account */ -public void setCB_Expense_Acct (int CB_Expense_Acct) -{ -set_Value ("CB_Expense_Acct", Integer.valueOf(CB_Expense_Acct)); -} -/** Get Cash Book Expense. -@return Cash Book Expense Account */ -public int getCB_Expense_Acct() -{ -Integer ii = (Integer)get_Value("CB_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Expense_Acct */ -public static final String COLUMNNAME_CB_Expense_Acct = "CB_Expense_Acct"; -/** Set Cash Book Receipt. -@param CB_Receipt_Acct Cash Book Receipts Account */ -public void setCB_Receipt_Acct (int CB_Receipt_Acct) -{ -set_Value ("CB_Receipt_Acct", Integer.valueOf(CB_Receipt_Acct)); -} -/** Get Cash Book Receipt. -@return Cash Book Receipts Account */ -public int getCB_Receipt_Acct() -{ -Integer ii = (Integer)get_Value("CB_Receipt_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CB_Receipt_Acct */ -public static final String COLUMNNAME_CB_Receipt_Acct = "CB_Receipt_Acct"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Cash Book. -@param C_CashBook_ID Cash Book for recording petty cash transactions */ -public void setC_CashBook_ID (int C_CashBook_ID) -{ -if (C_CashBook_ID < 1) throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); -set_ValueNoCheck ("C_CashBook_ID", Integer.valueOf(C_CashBook_ID)); -} -/** Get Cash Book. -@return Cash Book for recording petty cash transactions */ -public int getC_CashBook_ID() -{ -Integer ii = (Integer)get_Value("C_CashBook_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashBook_ID */ -public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CashBook_Acct (Properties ctx, int C_CashBook_Acct_ID, String trxName) + { + super (ctx, C_CashBook_Acct_ID, trxName); + /** if (C_CashBook_Acct_ID == 0) { setCB_Asset_Acct (0); + setCB_CashTransfer_Acct (0); + setCB_Differences_Acct (0); + setCB_Expense_Acct (0); + setCB_Receipt_Acct (0); + setC_AcctSchema_ID (0); + setC_CashBook_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_CashBook_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CashBook_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Cash Book Asset. + @param CB_Asset_Acct + Cash Book Asset Account + */ + public void setCB_Asset_Acct (int CB_Asset_Acct) + { + set_Value (COLUMNNAME_CB_Asset_Acct, Integer.valueOf(CB_Asset_Acct)); + } + + /** Get Cash Book Asset. + @return Cash Book Asset Account + */ + public int getCB_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Transfer. + @param CB_CashTransfer_Acct + Cash Transfer Clearing Account + */ + public void setCB_CashTransfer_Acct (int CB_CashTransfer_Acct) + { + set_Value (COLUMNNAME_CB_CashTransfer_Acct, Integer.valueOf(CB_CashTransfer_Acct)); + } + + /** Get Cash Transfer. + @return Cash Transfer Clearing Account + */ + public int getCB_CashTransfer_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_CashTransfer_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Differences. + @param CB_Differences_Acct + Cash Book Differences Account + */ + public void setCB_Differences_Acct (int CB_Differences_Acct) + { + set_Value (COLUMNNAME_CB_Differences_Acct, Integer.valueOf(CB_Differences_Acct)); + } + + /** Get Cash Book Differences. + @return Cash Book Differences Account + */ + public int getCB_Differences_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Differences_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Expense. + @param CB_Expense_Acct + Cash Book Expense Account + */ + public void setCB_Expense_Acct (int CB_Expense_Acct) + { + set_Value (COLUMNNAME_CB_Expense_Acct, Integer.valueOf(CB_Expense_Acct)); + } + + /** Get Cash Book Expense. + @return Cash Book Expense Account + */ + public int getCB_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Book Receipt. + @param CB_Receipt_Acct + Cash Book Receipts Account + */ + public void setCB_Receipt_Acct (int CB_Receipt_Acct) + { + set_Value (COLUMNNAME_CB_Receipt_Acct, Integer.valueOf(CB_Receipt_Acct)); + } + + /** Get Cash Book Receipt. + @return Cash Book Receipts Account + */ + public int getCB_Receipt_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CB_Receipt_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_CashBook getI_C_CashBook() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cash Book. + @param C_CashBook_ID + Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID) + { + if (C_CashBook_ID < 1) + throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + } + + /** Get Cash Book. + @return Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CashLine.java b/base/src/org/compiere/model/X_C_CashLine.java index cf26f94bfc..3d21541708 100644 --- a/base/src/org/compiere/model/X_C_CashLine.java +++ b/base/src/org/compiere/model/X_C_CashLine.java @@ -1,366 +1,450 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CashLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CashLine extends PO + +/** Generated Model for C_CashLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CashLine_ID id -@param trxName transaction -*/ -public X_C_CashLine (Properties ctx, int C_CashLine_ID, String trxName) -{ -super (ctx, C_CashLine_ID, trxName); -/** if (C_CashLine_ID == 0) -{ -setAmount (Env.ZERO); -setC_CashLine_ID (0); -setC_Cash_ID (0); -setCashType (null); // E -setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_CashLine WHERE C_Cash_ID=@C_Cash_ID@ -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CashLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CashLine */ -public static final String Table_Name="C_CashLine"; - -/** AD_Table_ID=410 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CashLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amount Amount in a defined currency */ -public void setAmount (BigDecimal Amount) -{ -if (Amount == null) throw new IllegalArgumentException ("Amount is mandatory."); -set_Value ("Amount", Amount); -} -/** Get Amount. -@return Amount in a defined currency */ -public BigDecimal getAmount() -{ -BigDecimal bd = (BigDecimal)get_Value("Amount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amount */ -public static final String COLUMNNAME_Amount = "Amount"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID <= 0) set_Value ("C_BankAccount_ID", null); - else -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Cash Journal Line. -@param C_CashLine_ID Cash Journal Line */ -public void setC_CashLine_ID (int C_CashLine_ID) -{ -if (C_CashLine_ID < 1) throw new IllegalArgumentException ("C_CashLine_ID is mandatory."); -set_ValueNoCheck ("C_CashLine_ID", Integer.valueOf(C_CashLine_ID)); -} -/** Get Cash Journal Line. -@return Cash Journal Line */ -public int getC_CashLine_ID() -{ -Integer ii = (Integer)get_Value("C_CashLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashLine_ID */ -public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; -/** Set Cash Journal. -@param C_Cash_ID Cash Journal */ -public void setC_Cash_ID (int C_Cash_ID) -{ -if (C_Cash_ID < 1) throw new IllegalArgumentException ("C_Cash_ID is mandatory."); -set_ValueNoCheck ("C_Cash_ID", Integer.valueOf(C_Cash_ID)); -} -/** Get Cash Journal. -@return Cash Journal */ -public int getC_Cash_ID() -{ -Integer ii = (Integer)get_Value("C_Cash_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Cash_ID())); -} -/** Column name C_Cash_ID */ -public static final String COLUMNNAME_C_Cash_ID = "C_Cash_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_ValueNoCheck ("C_Currency_ID", null); - else -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CashLine (Properties ctx, int C_CashLine_ID, String trxName) + { + super (ctx, C_CashLine_ID, trxName); + /** if (C_CashLine_ID == 0) { setAmount (Env.ZERO); + setC_CashLine_ID (0); + setC_Cash_ID (0); + setCashType (null); +// E + setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_CashLine WHERE C_Cash_ID=@C_Cash_ID@ + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_CashLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CashLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amount + Amount in a defined currency + */ + public void setAmount (BigDecimal Amount) + { + if (Amount == null) + throw new IllegalArgumentException ("Amount is mandatory."); + set_Value (COLUMNNAME_Amount, Amount); + } + + /** Get Amount. + @return Amount in a defined currency + */ + public BigDecimal getAmount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID <= 0) set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID < 1) + throw new IllegalArgumentException ("C_CashLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal. + @param C_Cash_ID + Cash Journal + */ + public void setC_Cash_ID (int C_Cash_ID) + { + if (C_Cash_ID < 1) + throw new IllegalArgumentException ("C_Cash_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); + } + + /** Get Cash Journal. + @return Cash Journal + */ + public int getC_Cash_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Cash_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Cash_ID())); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CashType AD_Reference_ID=217 */ -public static final int CASHTYPE_AD_Reference_ID=217; -/** Charge = C */ -public static final String CASHTYPE_Charge = "C"; -/** Difference = D */ -public static final String CASHTYPE_Difference = "D"; -/** General Expense = E */ -public static final String CASHTYPE_GeneralExpense = "E"; -/** Invoice = I */ -public static final String CASHTYPE_Invoice = "I"; -/** General Receipts = R */ -public static final String CASHTYPE_GeneralReceipts = "R"; -/** Bank Account Transfer = T */ +public static final int CASHTYPE_AD_Reference_ID=217;/** Charge = C */ +public static final String CASHTYPE_Charge = "C";/** Difference = D */ +public static final String CASHTYPE_Difference = "D";/** General Expense = E */ +public static final String CASHTYPE_GeneralExpense = "E";/** Invoice = I */ +public static final String CASHTYPE_Invoice = "I";/** General Receipts = R */ +public static final String CASHTYPE_GeneralReceipts = "R";/** Bank Account Transfer = T */ public static final String CASHTYPE_BankAccountTransfer = "T"; -/** Set Cash Type. -@param CashType Source of Cash */ -public void setCashType (String CashType) -{ -if (CashType == null) throw new IllegalArgumentException ("CashType is mandatory"); -if (CashType.equals("C") || CashType.equals("D") || CashType.equals("E") || CashType.equals("I") || CashType.equals("R") || CashType.equals("T")); - else throw new IllegalArgumentException ("CashType Invalid value - " + CashType + " - Reference_ID=217 - C - D - E - I - R - T"); -if (CashType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CashType = CashType.substring(0,0); -} -set_ValueNoCheck ("CashType", CashType); -} -/** Get Cash Type. -@return Source of Cash */ -public String getCashType() -{ -return (String)get_Value("CashType"); -} -/** Column name CashType */ -public static final String COLUMNNAME_CashType = "CashType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -set_Value ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Generated. -@param IsGenerated This Line is generated */ -public void setIsGenerated (boolean IsGenerated) -{ -set_ValueNoCheck ("IsGenerated", Boolean.valueOf(IsGenerated)); -} -/** Get Generated. -@return This Line is generated */ -public boolean isGenerated() -{ -Object oo = get_Value("IsGenerated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsGenerated */ -public static final String COLUMNNAME_IsGenerated = "IsGenerated"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Write-off Amount. -@param WriteOffAmt Amount to write-off */ -public void setWriteOffAmt (BigDecimal WriteOffAmt) -{ -set_Value ("WriteOffAmt", WriteOffAmt); -} -/** Get Write-off Amount. -@return Amount to write-off */ -public BigDecimal getWriteOffAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("WriteOffAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name WriteOffAmt */ -public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; -} + /** Set Cash Type. + @param CashType + Source of Cash + */ + public void setCashType (String CashType) + { +if (CashType == null) throw new IllegalArgumentException ("CashType is mandatory");if (CashType.equals("C") || CashType.equals("D") || CashType.equals("E") || CashType.equals("I") || CashType.equals("R") || CashType.equals("T")); else throw new IllegalArgumentException ("CashType Invalid value - " + CashType + " - Reference_ID=217 - C - D - E - I - R - T"); if (CashType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CashType = CashType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_CashType, CashType); + } + + /** Get Cash Type. + @return Source of Cash + */ + public String getCashType () + { + return (String)get_Value(COLUMNNAME_CashType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Generated. + @param IsGenerated + This Line is generated + */ + public void setIsGenerated (boolean IsGenerated) + { + set_ValueNoCheck (COLUMNNAME_IsGenerated, Boolean.valueOf(IsGenerated)); + } + + /** Get Generated. + @return This Line is generated + */ + public boolean isGenerated () + { + Object oo = get_Value(COLUMNNAME_IsGenerated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Channel.java b/base/src/org/compiere/model/X_C_Channel.java index 836b06a1df..976f393993 100644 --- a/base/src/org/compiere/model/X_C_Channel.java +++ b/base/src/org/compiere/model/X_C_Channel.java @@ -1,169 +1,188 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Channel - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Channel extends PO + +/** Generated Model for C_Channel + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Channel extends PO implements I_C_Channel, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Channel_ID id -@param trxName transaction -*/ -public X_C_Channel (Properties ctx, int C_Channel_ID, String trxName) -{ -super (ctx, C_Channel_ID, trxName); -/** if (C_Channel_ID == 0) -{ -setC_Channel_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Channel (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Channel */ -public static final String Table_Name="C_Channel"; - -/** AD_Table_ID=275 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Channel[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); - else -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Channel. -@param C_Channel_ID Sales Channel */ -public void setC_Channel_ID (int C_Channel_ID) -{ -if (C_Channel_ID < 1) throw new IllegalArgumentException ("C_Channel_ID is mandatory."); -set_ValueNoCheck ("C_Channel_ID", Integer.valueOf(C_Channel_ID)); -} -/** Get Channel. -@return Sales Channel */ -public int getC_Channel_ID() -{ -Integer ii = (Integer)get_Value("C_Channel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Channel_ID */ -public static final String COLUMNNAME_C_Channel_ID = "C_Channel_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Channel (Properties ctx, int C_Channel_ID, String trxName) + { + super (ctx, C_Channel_ID, trxName); + /** if (C_Channel_ID == 0) { setC_Channel_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Channel (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Channel[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Channel. + @param C_Channel_ID + Sales Channel + */ + public void setC_Channel_ID (int C_Channel_ID) + { + if (C_Channel_ID < 1) + throw new IllegalArgumentException ("C_Channel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Channel_ID, Integer.valueOf(C_Channel_ID)); + } + + /** Get Channel. + @return Sales Channel + */ + public int getC_Channel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Channel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Charge.java b/base/src/org/compiere/model/X_C_Charge.java index 7d33864af9..b907142b21 100644 --- a/base/src/org/compiere/model/X_C_Charge.java +++ b/base/src/org/compiere/model/X_C_Charge.java @@ -1,268 +1,307 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Charge - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Charge extends PO + +/** Generated Model for C_Charge + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Charge extends PO implements I_C_Charge, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Charge_ID id -@param trxName transaction -*/ -public X_C_Charge (Properties ctx, int C_Charge_ID, String trxName) -{ -super (ctx, C_Charge_ID, trxName); -/** if (C_Charge_ID == 0) -{ -setC_Charge_ID (0); -setC_TaxCategory_ID (0); -setChargeAmt (Env.ZERO); -setIsSameCurrency (false); -setIsSameTax (false); -setIsTaxIncluded (false); // N -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Charge (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Charge */ -public static final String Table_Name="C_Charge"; - -/** AD_Table_ID=313 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Charge[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID < 1) throw new IllegalArgumentException ("C_Charge_ID is mandatory."); -set_ValueNoCheck ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_Value ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -if (ChargeAmt == null) throw new IllegalArgumentException ("ChargeAmt is mandatory."); -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Same Currency. -@param IsSameCurrency Same Currency */ -public void setIsSameCurrency (boolean IsSameCurrency) -{ -set_Value ("IsSameCurrency", Boolean.valueOf(IsSameCurrency)); -} -/** Get Same Currency. -@return Same Currency */ -public boolean isSameCurrency() -{ -Object oo = get_Value("IsSameCurrency"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSameCurrency */ -public static final String COLUMNNAME_IsSameCurrency = "IsSameCurrency"; -/** Set Same Tax. -@param IsSameTax Use the same tax as the main transaction */ -public void setIsSameTax (boolean IsSameTax) -{ -set_Value ("IsSameTax", Boolean.valueOf(IsSameTax)); -} -/** Get Same Tax. -@return Use the same tax as the main transaction */ -public boolean isSameTax() -{ -Object oo = get_Value("IsSameTax"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSameTax */ -public static final String COLUMNNAME_IsSameTax = "IsSameTax"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Charge (Properties ctx, int C_Charge_ID, String trxName) + { + super (ctx, C_Charge_ID, trxName); + /** if (C_Charge_ID == 0) { setC_Charge_ID (0); + setC_TaxCategory_ID (0); + setChargeAmt (Env.ZERO); + setIsSameCurrency (false); + setIsSameTax (false); + setIsTaxIncluded (false); +// N + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Charge (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Charge[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + throw new IllegalArgumentException ("C_Charge_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + if (ChargeAmt == null) + throw new IllegalArgumentException ("ChargeAmt is mandatory."); + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Same Currency. + @param IsSameCurrency Same Currency */ + public void setIsSameCurrency (boolean IsSameCurrency) + { + set_Value (COLUMNNAME_IsSameCurrency, Boolean.valueOf(IsSameCurrency)); + } + + /** Get Same Currency. +@return Same Currency */ + public boolean isSameCurrency () + { + Object oo = get_Value(COLUMNNAME_IsSameCurrency); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Same Tax. + @param IsSameTax + Use the same tax as the main transaction + */ + public void setIsSameTax (boolean IsSameTax) + { + set_Value (COLUMNNAME_IsSameTax, Boolean.valueOf(IsSameTax)); + } + + /** Get Same Tax. + @return Use the same tax as the main transaction + */ + public boolean isSameTax () + { + Object oo = get_Value(COLUMNNAME_IsSameTax); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 506868ba92..ec521bd201 100644 --- a/base/src/org/compiere/model/X_C_Charge_Acct.java +++ b/base/src/org/compiere/model/X_C_Charge_Acct.java @@ -1,157 +1,192 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Charge_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Charge_Acct extends PO + +/** Generated Model for C_Charge_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Charge_Acct extends PO implements I_C_Charge_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Charge_Acct_ID id -@param trxName transaction -*/ -public X_C_Charge_Acct (Properties ctx, int C_Charge_Acct_ID, String trxName) -{ -super (ctx, C_Charge_Acct_ID, trxName); -/** if (C_Charge_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Charge_ID (0); -setCh_Expense_Acct (0); -setCh_Revenue_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Charge_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Charge_Acct */ -public static final String Table_Name="C_Charge_Acct"; - -/** AD_Table_ID=396 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Charge_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID < 1) throw new IllegalArgumentException ("C_Charge_ID is mandatory."); -set_ValueNoCheck ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Charge Expense. -@param Ch_Expense_Acct Charge Expense Account */ -public void setCh_Expense_Acct (int Ch_Expense_Acct) -{ -set_Value ("Ch_Expense_Acct", Integer.valueOf(Ch_Expense_Acct)); -} -/** Get Charge Expense. -@return Charge Expense Account */ -public int getCh_Expense_Acct() -{ -Integer ii = (Integer)get_Value("Ch_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ch_Expense_Acct */ -public static final String COLUMNNAME_Ch_Expense_Acct = "Ch_Expense_Acct"; -/** Set Charge Revenue. -@param Ch_Revenue_Acct Charge Revenue Account */ -public void setCh_Revenue_Acct (int Ch_Revenue_Acct) -{ -set_Value ("Ch_Revenue_Acct", Integer.valueOf(Ch_Revenue_Acct)); -} -/** Get Charge Revenue. -@return Charge Revenue Account */ -public int getCh_Revenue_Acct() -{ -Integer ii = (Integer)get_Value("Ch_Revenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ch_Revenue_Acct */ -public static final String COLUMNNAME_Ch_Revenue_Acct = "Ch_Revenue_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Charge_Acct (Properties ctx, int C_Charge_Acct_ID, String trxName) + { + super (ctx, C_Charge_Acct_ID, trxName); + /** if (C_Charge_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_Charge_ID (0); + setCh_Expense_Acct (0); + setCh_Revenue_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_Charge_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Charge_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + throw new IllegalArgumentException ("C_Charge_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge Expense. + @param Ch_Expense_Acct + Charge Expense Account + */ + public void setCh_Expense_Acct (int Ch_Expense_Acct) + { + set_Value (COLUMNNAME_Ch_Expense_Acct, Integer.valueOf(Ch_Expense_Acct)); + } + + /** Get Charge Expense. + @return Charge Expense Account + */ + public int getCh_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ch_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge Revenue. + @param Ch_Revenue_Acct + Charge Revenue Account + */ + public void setCh_Revenue_Acct (int Ch_Revenue_Acct) + { + set_Value (COLUMNNAME_Ch_Revenue_Acct, Integer.valueOf(Ch_Revenue_Acct)); + } + + /** Get Charge Revenue. + @return Charge Revenue Account + */ + public int getCh_Revenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ch_Revenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_City.java b/base/src/org/compiere/model/X_C_City.java index 5ecac14af8..e93a1d7703 100644 --- a/base/src/org/compiere/model/X_C_City.java +++ b/base/src/org/compiere/model/X_C_City.java @@ -1,247 +1,278 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_City - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_City extends PO + +/** Generated Model for C_City + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_City extends PO implements I_C_City, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_City_ID id -@param trxName transaction -*/ -public X_C_City (Properties ctx, int C_City_ID, String trxName) -{ -super (ctx, C_City_ID, trxName); -/** if (C_City_ID == 0) -{ -setC_City_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_City (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_City */ -public static final String Table_Name="C_City"; - -/** AD_Table_ID=186 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_City[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Area Code. -@param AreaCode Phone Area Code */ -public void setAreaCode (String AreaCode) -{ -if (AreaCode != null && AreaCode.length() > 10) -{ -log.warning("Length > 10 - truncated"); -AreaCode = AreaCode.substring(0,9); -} -set_Value ("AreaCode", AreaCode); -} -/** Get Area Code. -@return Phone Area Code */ -public String getAreaCode() -{ -return (String)get_Value("AreaCode"); -} -/** Column name AreaCode */ -public static final String COLUMNNAME_AreaCode = "AreaCode"; -/** Set City. -@param C_City_ID City */ -public void setC_City_ID (int C_City_ID) -{ -if (C_City_ID < 1) throw new IllegalArgumentException ("C_City_ID is mandatory."); -set_ValueNoCheck ("C_City_ID", Integer.valueOf(C_City_ID)); -} -/** Get City. -@return City */ -public int getC_City_ID() -{ -Integer ii = (Integer)get_Value("C_City_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_City_ID */ -public static final String COLUMNNAME_C_City_ID = "C_City_ID"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID <= 0) set_ValueNoCheck ("C_Country_ID", null); - else -set_ValueNoCheck ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_City (Properties ctx, int C_City_ID, String trxName) + { + super (ctx, C_City_ID, trxName); + /** if (C_City_ID == 0) { setC_City_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_City (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_City[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Area Code. + @param AreaCode + Phone Area Code + */ + public void setAreaCode (String AreaCode) + { + if (AreaCode != null && AreaCode.length() > 10) + { + log.warning("Length > 10 - truncated"); + AreaCode = AreaCode.substring(0, 9); + } + set_Value (COLUMNNAME_AreaCode, AreaCode); + } + + /** Get Area Code. + @return Phone Area Code + */ + public String getAreaCode () + { + return (String)get_Value(COLUMNNAME_AreaCode); + } + + /** Set City. + @param C_City_ID + City + */ + public void setC_City_ID (int C_City_ID) + { + if (C_City_ID < 1) + throw new IllegalArgumentException ("C_City_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_City_ID, Integer.valueOf(C_City_ID)); + } + + /** Get City. + @return City + */ + public int getC_City_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_City_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Country_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Region_ID AD_Reference_ID=157 */ public static final int C_REGION_ID_AD_Reference_ID=157; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set Coordinates. -@param Coordinates Location coordinate */ -public void setCoordinates (String Coordinates) -{ -if (Coordinates != null && Coordinates.length() > 15) -{ -log.warning("Length > 15 - truncated"); -Coordinates = Coordinates.substring(0,14); -} -set_Value ("Coordinates", Coordinates); -} -/** Get Coordinates. -@return Location coordinate */ -public String getCoordinates() -{ -return (String)get_Value("Coordinates"); -} -/** Column name Coordinates */ -public static final String COLUMNNAME_Coordinates = "Coordinates"; -/** Set Locode. -@param Locode Location code - UN/LOCODE */ -public void setLocode (String Locode) -{ -if (Locode != null && Locode.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Locode = Locode.substring(0,9); -} -set_Value ("Locode", Locode); -} -/** Get Locode. -@return Location code - UN/LOCODE */ -public String getLocode() -{ -return (String)get_Value("Locode"); -} -/** Column name Locode */ -public static final String COLUMNNAME_Locode = "Locode"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal != null && Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_Value ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -} + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Coordinates. + @param Coordinates + Location coordinate + */ + public void setCoordinates (String Coordinates) + { + if (Coordinates != null && Coordinates.length() > 15) + { + log.warning("Length > 15 - truncated"); + Coordinates = Coordinates.substring(0, 14); + } + set_Value (COLUMNNAME_Coordinates, Coordinates); + } + + /** Get Coordinates. + @return Location coordinate + */ + public String getCoordinates () + { + return (String)get_Value(COLUMNNAME_Coordinates); + } + + /** Set Locode. + @param Locode + Location code - UN/LOCODE + */ + public void setLocode (String Locode) + { + if (Locode != null && Locode.length() > 10) + { + log.warning("Length > 10 - truncated"); + Locode = Locode.substring(0, 9); + } + set_Value (COLUMNNAME_Locode, Locode); + } + + /** Get Locode. + @return Location code - UN/LOCODE + */ + public String getLocode () + { + return (String)get_Value(COLUMNNAME_Locode); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal != null && Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_Value (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Commission.java b/base/src/org/compiere/model/X_C_Commission.java index e4b7dbc218..ae40b23fe6 100644 --- a/base/src/org/compiere/model/X_C_Commission.java +++ b/base/src/org/compiere/model/X_C_Commission.java @@ -1,348 +1,397 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Commission - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Commission extends PO + +/** Generated Model for C_Commission + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Commission extends PO implements I_C_Commission, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Commission_ID id -@param trxName transaction -*/ -public X_C_Commission (Properties ctx, int C_Commission_ID, String trxName) -{ -super (ctx, C_Commission_ID, trxName); -/** if (C_Commission_ID == 0) -{ -setC_BPartner_ID (0); -setC_Charge_ID (0); -setC_Commission_ID (0); -setC_Currency_ID (0); -setDocBasisType (null); // I -setFrequencyType (null); // M -setListDetails (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Commission (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Commission */ -public static final String Table_Name="C_Commission"; - -/** AD_Table_ID=429 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Commission[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Commission (Properties ctx, int C_Commission_ID, String trxName) + { + super (ctx, C_Commission_ID, trxName); + /** if (C_Commission_ID == 0) { setC_BPartner_ID (0); + setC_Charge_ID (0); + setC_Commission_ID (0); + setC_Currency_ID (0); + setDocBasisType (null); +// I + setFrequencyType (null); +// M + setListDetails (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Commission (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Commission[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** C_BPartner_ID AD_Reference_ID=232 */ public static final int C_BPARTNER_ID_AD_Reference_ID=232; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID < 1) throw new IllegalArgumentException ("C_Charge_ID is mandatory."); -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Commission. -@param C_Commission_ID Commission */ -public void setC_Commission_ID (int C_Commission_ID) -{ -if (C_Commission_ID < 1) throw new IllegalArgumentException ("C_Commission_ID is mandatory."); -set_ValueNoCheck ("C_Commission_ID", Integer.valueOf(C_Commission_ID)); -} -/** Get Commission. -@return Commission */ -public int getC_Commission_ID() -{ -Integer ii = (Integer)get_Value("C_Commission_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Commission_ID */ -public static final String COLUMNNAME_C_Commission_ID = "C_Commission_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Create lines from. -@param CreateFrom Process which will generate a new document lines based on an existing document */ -public void setCreateFrom (String CreateFrom) -{ -if (CreateFrom != null && CreateFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateFrom = CreateFrom.substring(0,0); -} -set_Value ("CreateFrom", CreateFrom); -} -/** Get Create lines from. -@return Process which will generate a new document lines based on an existing document */ -public String getCreateFrom() -{ -return (String)get_Value("CreateFrom"); -} -/** Column name CreateFrom */ -public static final String COLUMNNAME_CreateFrom = "CreateFrom"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_ValueNoCheck ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + throw new IllegalArgumentException ("C_Charge_ID is mandatory."); + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commission. + @param C_Commission_ID + Commission + */ + public void setC_Commission_ID (int C_Commission_ID) + { + if (C_Commission_ID < 1) + throw new IllegalArgumentException ("C_Commission_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); + } + + /** Get Commission. + @return Commission + */ + public int getC_Commission_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Commission_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_ValueNoCheck (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocBasisType AD_Reference_ID=224 */ -public static final int DOCBASISTYPE_AD_Reference_ID=224; -/** Invoice = I */ -public static final String DOCBASISTYPE_Invoice = "I"; -/** Order = O */ -public static final String DOCBASISTYPE_Order = "O"; -/** Receipt = R */ +public static final int DOCBASISTYPE_AD_Reference_ID=224;/** Invoice = I */ +public static final String DOCBASISTYPE_Invoice = "I";/** Order = O */ +public static final String DOCBASISTYPE_Order = "O";/** Receipt = R */ public static final String DOCBASISTYPE_Receipt = "R"; -/** Set Calculation Basis. -@param DocBasisType Basis for the calculation the commission */ -public void setDocBasisType (String DocBasisType) -{ -if (DocBasisType == null) throw new IllegalArgumentException ("DocBasisType is mandatory"); -if (DocBasisType.equals("I") || DocBasisType.equals("O") || DocBasisType.equals("R")); - else throw new IllegalArgumentException ("DocBasisType Invalid value - " + DocBasisType + " - Reference_ID=224 - I - O - R"); -if (DocBasisType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DocBasisType = DocBasisType.substring(0,0); -} -set_Value ("DocBasisType", DocBasisType); -} -/** Get Calculation Basis. -@return Basis for the calculation the commission */ -public String getDocBasisType() -{ -return (String)get_Value("DocBasisType"); -} -/** Column name DocBasisType */ -public static final String COLUMNNAME_DocBasisType = "DocBasisType"; + /** Set Calculation Basis. + @param DocBasisType + Basis for the calculation the commission + */ + public void setDocBasisType (String DocBasisType) + { +if (DocBasisType == null) throw new IllegalArgumentException ("DocBasisType is mandatory");if (DocBasisType.equals("I") || DocBasisType.equals("O") || DocBasisType.equals("R")); else throw new IllegalArgumentException ("DocBasisType Invalid value - " + DocBasisType + " - Reference_ID=224 - I - O - R"); if (DocBasisType.length() > 1) + { + log.warning("Length > 1 - truncated"); + DocBasisType = DocBasisType.substring(0, 0); + } + set_Value (COLUMNNAME_DocBasisType, DocBasisType); + } + + /** Get Calculation Basis. + @return Basis for the calculation the commission + */ + public String getDocBasisType () + { + return (String)get_Value(COLUMNNAME_DocBasisType); + } /** FrequencyType AD_Reference_ID=225 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=225; -/** Monthly = M */ -public static final String FREQUENCYTYPE_Monthly = "M"; -/** Quarterly = Q */ -public static final String FREQUENCYTYPE_Quarterly = "Q"; -/** Weekly = W */ -public static final String FREQUENCYTYPE_Weekly = "W"; -/** Yearly = Y */ +public static final int FREQUENCYTYPE_AD_Reference_ID=225;/** Monthly = M */ +public static final String FREQUENCYTYPE_Monthly = "M";/** Quarterly = Q */ +public static final String FREQUENCYTYPE_Quarterly = "Q";/** Weekly = W */ +public static final String FREQUENCYTYPE_Weekly = "W";/** Yearly = Y */ public static final String FREQUENCYTYPE_Yearly = "Y"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("M") || FrequencyType.equals("Q") || FrequencyType.equals("W") || FrequencyType.equals("Y")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=225 - M - Q - W - Y"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set List Details. -@param ListDetails List document details */ -public void setListDetails (boolean ListDetails) -{ -set_Value ("ListDetails", Boolean.valueOf(ListDetails)); -} -/** Get List Details. -@return List document details */ -public boolean isListDetails() -{ -Object oo = get_Value("ListDetails"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ListDetails */ -public static final String COLUMNNAME_ListDetails = "ListDetails"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("M") || FrequencyType.equals("Q") || FrequencyType.equals("W") || FrequencyType.equals("Y")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=225 - M - Q - W - Y"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set List Details. + @param ListDetails + List document details + */ + public void setListDetails (boolean ListDetails) + { + set_Value (COLUMNNAME_ListDetails, Boolean.valueOf(ListDetails)); + } + + /** Get List Details. + @return List document details + */ + public boolean isListDetails () + { + Object oo = get_Value(COLUMNNAME_ListDetails); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CommissionAmt.java b/base/src/org/compiere/model/X_C_CommissionAmt.java index a178ae68ff..b0b8bb9934 100644 --- a/base/src/org/compiere/model/X_C_CommissionAmt.java +++ b/base/src/org/compiere/model/X_C_CommissionAmt.java @@ -1,201 +1,250 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CommissionAmt - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CommissionAmt extends PO + +/** Generated Model for C_CommissionAmt + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CommissionAmt extends PO implements I_C_CommissionAmt, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CommissionAmt_ID id -@param trxName transaction -*/ -public X_C_CommissionAmt (Properties ctx, int C_CommissionAmt_ID, String trxName) -{ -super (ctx, C_CommissionAmt_ID, trxName); -/** if (C_CommissionAmt_ID == 0) -{ -setActualQty (Env.ZERO); -setC_CommissionAmt_ID (0); -setC_CommissionLine_ID (0); -setC_CommissionRun_ID (0); -setCommissionAmt (Env.ZERO); -setConvertedAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CommissionAmt (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CommissionAmt */ -public static final String Table_Name="C_CommissionAmt"; - -/** AD_Table_ID=430 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CommissionAmt[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Actual Quantity. -@param ActualQty The actual quantity */ -public void setActualQty (BigDecimal ActualQty) -{ -if (ActualQty == null) throw new IllegalArgumentException ("ActualQty is mandatory."); -set_Value ("ActualQty", ActualQty); -} -/** Get Actual Quantity. -@return The actual quantity */ -public BigDecimal getActualQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ActualQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ActualQty */ -public static final String COLUMNNAME_ActualQty = "ActualQty"; -/** Set Commission Amount. -@param C_CommissionAmt_ID Generated Commission Amount */ -public void setC_CommissionAmt_ID (int C_CommissionAmt_ID) -{ -if (C_CommissionAmt_ID < 1) throw new IllegalArgumentException ("C_CommissionAmt_ID is mandatory."); -set_ValueNoCheck ("C_CommissionAmt_ID", Integer.valueOf(C_CommissionAmt_ID)); -} -/** Get Commission Amount. -@return Generated Commission Amount */ -public int getC_CommissionAmt_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionAmt_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CommissionAmt_ID */ -public static final String COLUMNNAME_C_CommissionAmt_ID = "C_CommissionAmt_ID"; -/** Set Commission Line. -@param C_CommissionLine_ID Commission Line */ -public void setC_CommissionLine_ID (int C_CommissionLine_ID) -{ -if (C_CommissionLine_ID < 1) throw new IllegalArgumentException ("C_CommissionLine_ID is mandatory."); -set_Value ("C_CommissionLine_ID", Integer.valueOf(C_CommissionLine_ID)); -} -/** Get Commission Line. -@return Commission Line */ -public int getC_CommissionLine_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CommissionLine_ID */ -public static final String COLUMNNAME_C_CommissionLine_ID = "C_CommissionLine_ID"; -/** Set Commission Run. -@param C_CommissionRun_ID Commission Run or Process */ -public void setC_CommissionRun_ID (int C_CommissionRun_ID) -{ -if (C_CommissionRun_ID < 1) throw new IllegalArgumentException ("C_CommissionRun_ID is mandatory."); -set_ValueNoCheck ("C_CommissionRun_ID", Integer.valueOf(C_CommissionRun_ID)); -} -/** Get Commission Run. -@return Commission Run or Process */ -public int getC_CommissionRun_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_CommissionRun_ID())); -} -/** Column name C_CommissionRun_ID */ -public static final String COLUMNNAME_C_CommissionRun_ID = "C_CommissionRun_ID"; -/** Set Commission Amount. -@param CommissionAmt Commission Amount */ -public void setCommissionAmt (BigDecimal CommissionAmt) -{ -if (CommissionAmt == null) throw new IllegalArgumentException ("CommissionAmt is mandatory."); -set_Value ("CommissionAmt", CommissionAmt); -} -/** Get Commission Amount. -@return Commission Amount */ -public BigDecimal getCommissionAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommissionAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommissionAmt */ -public static final String COLUMNNAME_CommissionAmt = "CommissionAmt"; -/** Set Converted Amount. -@param ConvertedAmt Converted Amount */ -public void setConvertedAmt (BigDecimal ConvertedAmt) -{ -if (ConvertedAmt == null) throw new IllegalArgumentException ("ConvertedAmt is mandatory."); -set_Value ("ConvertedAmt", ConvertedAmt); -} -/** Get Converted Amount. -@return Converted Amount */ -public BigDecimal getConvertedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ConvertedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConvertedAmt */ -public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CommissionAmt (Properties ctx, int C_CommissionAmt_ID, String trxName) + { + super (ctx, C_CommissionAmt_ID, trxName); + /** if (C_CommissionAmt_ID == 0) { setActualQty (Env.ZERO); + setC_CommissionAmt_ID (0); + setC_CommissionLine_ID (0); + setC_CommissionRun_ID (0); + setCommissionAmt (Env.ZERO); + setConvertedAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_CommissionAmt (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CommissionAmt[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Actual Quantity. + @param ActualQty + The actual quantity + */ + public void setActualQty (BigDecimal ActualQty) + { + if (ActualQty == null) + throw new IllegalArgumentException ("ActualQty is mandatory."); + set_Value (COLUMNNAME_ActualQty, ActualQty); + } + + /** Get Actual Quantity. + @return The actual quantity + */ + public BigDecimal getActualQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ActualQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Commission Amount. + @param C_CommissionAmt_ID + Generated Commission Amount + */ + public void setC_CommissionAmt_ID (int C_CommissionAmt_ID) + { + if (C_CommissionAmt_ID < 1) + throw new IllegalArgumentException ("C_CommissionAmt_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, Integer.valueOf(C_CommissionAmt_ID)); + } + + /** Get Commission Amount. + @return Generated Commission Amount + */ + public int getC_CommissionAmt_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionAmt_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_CommissionLine getI_C_CommissionLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Commission Line. + @param C_CommissionLine_ID + Commission Line + */ + public void setC_CommissionLine_ID (int C_CommissionLine_ID) + { + if (C_CommissionLine_ID < 1) + throw new IllegalArgumentException ("C_CommissionLine_ID is mandatory."); + set_Value (COLUMNNAME_C_CommissionLine_ID, Integer.valueOf(C_CommissionLine_ID)); + } + + /** Get Commission Line. + @return Commission Line + */ + public int getC_CommissionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_CommissionRun getI_C_CommissionRun() throws Exception + { + 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 e; + } + return result; + } + + /** Set Commission Run. + @param C_CommissionRun_ID + Commission Run or Process + */ + public void setC_CommissionRun_ID (int C_CommissionRun_ID) + { + if (C_CommissionRun_ID < 1) + throw new IllegalArgumentException ("C_CommissionRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, Integer.valueOf(C_CommissionRun_ID)); + } + + /** Get Commission Run. + @return Commission Run or Process + */ + public int getC_CommissionRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_CommissionRun_ID())); + } + + /** Set Commission Amount. + @param CommissionAmt + Commission Amount + */ + public void setCommissionAmt (BigDecimal CommissionAmt) + { + if (CommissionAmt == null) + throw new IllegalArgumentException ("CommissionAmt is mandatory."); + set_Value (COLUMNNAME_CommissionAmt, CommissionAmt); + } + + /** Get Commission Amount. + @return Commission Amount + */ + public BigDecimal getCommissionAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommissionAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Converted Amount. + @param ConvertedAmt + Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt) + { + if (ConvertedAmt == null) + throw new IllegalArgumentException ("ConvertedAmt is mandatory."); + set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); + } + + /** Get Converted Amount. + @return Converted Amount + */ + public BigDecimal getConvertedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConvertedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CommissionDetail.java b/base/src/org/compiere/model/X_C_CommissionDetail.java index 29964af641..c8f5567f34 100644 --- a/base/src/org/compiere/model/X_C_CommissionDetail.java +++ b/base/src/org/compiere/model/X_C_CommissionDetail.java @@ -1,275 +1,338 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CommissionDetail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CommissionDetail extends PO + +/** Generated Model for C_CommissionDetail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CommissionDetail extends PO implements I_C_CommissionDetail, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CommissionDetail_ID id -@param trxName transaction -*/ -public X_C_CommissionDetail (Properties ctx, int C_CommissionDetail_ID, String trxName) -{ -super (ctx, C_CommissionDetail_ID, trxName); -/** if (C_CommissionDetail_ID == 0) -{ -setActualAmt (Env.ZERO); -setActualQty (Env.ZERO); -setC_CommissionAmt_ID (0); -setC_CommissionDetail_ID (0); -setC_Currency_ID (0); -setConvertedAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CommissionDetail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CommissionDetail */ -public static final String Table_Name="C_CommissionDetail"; - -/** AD_Table_ID=437 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CommissionDetail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Actual Amount. -@param ActualAmt The actual amount */ -public void setActualAmt (BigDecimal ActualAmt) -{ -if (ActualAmt == null) throw new IllegalArgumentException ("ActualAmt is mandatory."); -set_Value ("ActualAmt", ActualAmt); -} -/** Get Actual Amount. -@return The actual amount */ -public BigDecimal getActualAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ActualAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ActualAmt */ -public static final String COLUMNNAME_ActualAmt = "ActualAmt"; -/** Set Actual Quantity. -@param ActualQty The actual quantity */ -public void setActualQty (BigDecimal ActualQty) -{ -if (ActualQty == null) throw new IllegalArgumentException ("ActualQty is mandatory."); -set_Value ("ActualQty", ActualQty); -} -/** Get Actual Quantity. -@return The actual quantity */ -public BigDecimal getActualQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ActualQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ActualQty */ -public static final String COLUMNNAME_ActualQty = "ActualQty"; -/** Set Commission Amount. -@param C_CommissionAmt_ID Generated Commission Amount */ -public void setC_CommissionAmt_ID (int C_CommissionAmt_ID) -{ -if (C_CommissionAmt_ID < 1) throw new IllegalArgumentException ("C_CommissionAmt_ID is mandatory."); -set_ValueNoCheck ("C_CommissionAmt_ID", Integer.valueOf(C_CommissionAmt_ID)); -} -/** Get Commission Amount. -@return Generated Commission Amount */ -public int getC_CommissionAmt_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionAmt_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CommissionAmt_ID */ -public static final String COLUMNNAME_C_CommissionAmt_ID = "C_CommissionAmt_ID"; -/** Set Commission Detail. -@param C_CommissionDetail_ID Supporting information for Commission Amounts */ -public void setC_CommissionDetail_ID (int C_CommissionDetail_ID) -{ -if (C_CommissionDetail_ID < 1) throw new IllegalArgumentException ("C_CommissionDetail_ID is mandatory."); -set_ValueNoCheck ("C_CommissionDetail_ID", Integer.valueOf(C_CommissionDetail_ID)); -} -/** Get Commission Detail. -@return Supporting information for Commission Amounts */ -public int getC_CommissionDetail_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionDetail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CommissionDetail_ID */ -public static final String COLUMNNAME_C_CommissionDetail_ID = "C_CommissionDetail_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_ValueNoCheck ("C_InvoiceLine_ID", null); - else -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_ValueNoCheck ("C_OrderLine_ID", null); - else -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Converted Amount. -@param ConvertedAmt Converted Amount */ -public void setConvertedAmt (BigDecimal ConvertedAmt) -{ -if (ConvertedAmt == null) throw new IllegalArgumentException ("ConvertedAmt is mandatory."); -set_Value ("ConvertedAmt", ConvertedAmt); -} -/** Get Converted Amount. -@return Converted Amount */ -public BigDecimal getConvertedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ConvertedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConvertedAmt */ -public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; -/** Set Info. -@param Info Information */ -public void setInfo (String Info) -{ -if (Info != null && Info.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Info = Info.substring(0,59); -} -set_Value ("Info", Info); -} -/** Get Info. -@return Information */ -public String getInfo() -{ -return (String)get_Value("Info"); -} -/** Column name Info */ -public static final String COLUMNNAME_Info = "Info"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getReference()); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CommissionDetail (Properties ctx, int C_CommissionDetail_ID, String trxName) + { + super (ctx, C_CommissionDetail_ID, trxName); + /** if (C_CommissionDetail_ID == 0) { setActualAmt (Env.ZERO); + setActualQty (Env.ZERO); + setC_CommissionAmt_ID (0); + setC_CommissionDetail_ID (0); + setC_Currency_ID (0); + setConvertedAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_CommissionDetail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CommissionDetail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Actual Amount. + @param ActualAmt + The actual amount + */ + public void setActualAmt (BigDecimal ActualAmt) + { + if (ActualAmt == null) + throw new IllegalArgumentException ("ActualAmt is mandatory."); + set_Value (COLUMNNAME_ActualAmt, ActualAmt); + } + + /** Get Actual Amount. + @return The actual amount + */ + public BigDecimal getActualAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ActualAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Actual Quantity. + @param ActualQty + The actual quantity + */ + public void setActualQty (BigDecimal ActualQty) + { + if (ActualQty == null) + throw new IllegalArgumentException ("ActualQty is mandatory."); + set_Value (COLUMNNAME_ActualQty, ActualQty); + } + + /** Get Actual Quantity. + @return The actual quantity + */ + public BigDecimal getActualQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ActualQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_CommissionAmt getI_C_CommissionAmt() throws Exception + { + 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 e; + } + return result; + } + + /** Set Commission Amount. + @param C_CommissionAmt_ID + Generated Commission Amount + */ + public void setC_CommissionAmt_ID (int C_CommissionAmt_ID) + { + if (C_CommissionAmt_ID < 1) + throw new IllegalArgumentException ("C_CommissionAmt_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CommissionAmt_ID, Integer.valueOf(C_CommissionAmt_ID)); + } + + /** Get Commission Amount. + @return Generated Commission Amount + */ + public int getC_CommissionAmt_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionAmt_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commission Detail. + @param C_CommissionDetail_ID + Supporting information for Commission Amounts + */ + public void setC_CommissionDetail_ID (int C_CommissionDetail_ID) + { + if (C_CommissionDetail_ID < 1) + throw new IllegalArgumentException ("C_CommissionDetail_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CommissionDetail_ID, Integer.valueOf(C_CommissionDetail_ID)); + } + + /** Get Commission Detail. + @return Supporting information for Commission Amounts + */ + public int getC_CommissionDetail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionDetail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Converted Amount. + @param ConvertedAmt + Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt) + { + if (ConvertedAmt == null) + throw new IllegalArgumentException ("ConvertedAmt is mandatory."); + set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); + } + + /** Get Converted Amount. + @return Converted Amount + */ + public BigDecimal getConvertedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConvertedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Info. + @param Info + Information + */ + public void setInfo (String Info) + { + if (Info != null && Info.length() > 60) + { + log.warning("Length > 60 - truncated"); + Info = Info.substring(0, 59); + } + set_Value (COLUMNNAME_Info, Info); + } + + /** Get Info. + @return Information + */ + public String getInfo () + { + return (String)get_Value(COLUMNNAME_Info); + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getReference()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CommissionLine.java b/base/src/org/compiere/model/X_C_CommissionLine.java index f9b259d50e..34397bd5df 100644 --- a/base/src/org/compiere/model/X_C_CommissionLine.java +++ b/base/src/org/compiere/model/X_C_CommissionLine.java @@ -1,390 +1,510 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CommissionLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CommissionLine extends PO + +/** Generated Model for C_CommissionLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CommissionLine extends PO implements I_C_CommissionLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CommissionLine_ID id -@param trxName transaction -*/ -public X_C_CommissionLine (Properties ctx, int C_CommissionLine_ID, String trxName) -{ -super (ctx, C_CommissionLine_ID, trxName); -/** if (C_CommissionLine_ID == 0) -{ -setAmtMultiplier (Env.ZERO); -setAmtSubtract (Env.ZERO); -setC_CommissionLine_ID (0); -setC_Commission_ID (0); -setCommissionOrders (false); -setIsPositiveOnly (false); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_CommissionLine WHERE C_Commission_ID=@C_Commission_ID@ -setQtyMultiplier (Env.ZERO); -setQtySubtract (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CommissionLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CommissionLine */ -public static final String Table_Name="C_CommissionLine"; - -/** AD_Table_ID=431 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CommissionLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Multiplier Amount. -@param AmtMultiplier Multiplier Amount for generating commissions */ -public void setAmtMultiplier (BigDecimal AmtMultiplier) -{ -if (AmtMultiplier == null) throw new IllegalArgumentException ("AmtMultiplier is mandatory."); -set_Value ("AmtMultiplier", AmtMultiplier); -} -/** Get Multiplier Amount. -@return Multiplier Amount for generating commissions */ -public BigDecimal getAmtMultiplier() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtMultiplier"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtMultiplier */ -public static final String COLUMNNAME_AmtMultiplier = "AmtMultiplier"; -/** Set Subtract Amount. -@param AmtSubtract Subtract Amount for generating commissions */ -public void setAmtSubtract (BigDecimal AmtSubtract) -{ -if (AmtSubtract == null) throw new IllegalArgumentException ("AmtSubtract is mandatory."); -set_Value ("AmtSubtract", AmtSubtract); -} -/** Get Subtract Amount. -@return Subtract Amount for generating commissions */ -public BigDecimal getAmtSubtract() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSubtract"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSubtract */ -public static final String COLUMNNAME_AmtSubtract = "AmtSubtract"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID <= 0) set_Value ("C_BP_Group_ID", null); - else -set_Value ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Commission Line. -@param C_CommissionLine_ID Commission Line */ -public void setC_CommissionLine_ID (int C_CommissionLine_ID) -{ -if (C_CommissionLine_ID < 1) throw new IllegalArgumentException ("C_CommissionLine_ID is mandatory."); -set_ValueNoCheck ("C_CommissionLine_ID", Integer.valueOf(C_CommissionLine_ID)); -} -/** Get Commission Line. -@return Commission Line */ -public int getC_CommissionLine_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CommissionLine_ID */ -public static final String COLUMNNAME_C_CommissionLine_ID = "C_CommissionLine_ID"; -/** Set Commission. -@param C_Commission_ID Commission */ -public void setC_Commission_ID (int C_Commission_ID) -{ -if (C_Commission_ID < 1) throw new IllegalArgumentException ("C_Commission_ID is mandatory."); -set_ValueNoCheck ("C_Commission_ID", Integer.valueOf(C_Commission_ID)); -} -/** Get Commission. -@return Commission */ -public int getC_Commission_ID() -{ -Integer ii = (Integer)get_Value("C_Commission_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Commission_ID())); -} -/** Column name C_Commission_ID */ -public static final String COLUMNNAME_C_Commission_ID = "C_Commission_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Commission only specified Orders. -@param CommissionOrders Commission only Orders or Invoices, where this Sales Rep is entered */ -public void setCommissionOrders (boolean CommissionOrders) -{ -set_Value ("CommissionOrders", Boolean.valueOf(CommissionOrders)); -} -/** Get Commission only specified Orders. -@return Commission only Orders or Invoices, where this Sales Rep is entered */ -public boolean isCommissionOrders() -{ -Object oo = get_Value("CommissionOrders"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name CommissionOrders */ -public static final String COLUMNNAME_CommissionOrders = "CommissionOrders"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Positive only. -@param IsPositiveOnly Do not generate negative commissions */ -public void setIsPositiveOnly (boolean IsPositiveOnly) -{ -set_Value ("IsPositiveOnly", Boolean.valueOf(IsPositiveOnly)); -} -/** Get Positive only. -@return Do not generate negative commissions */ -public boolean isPositiveOnly() -{ -Object oo = get_Value("IsPositiveOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPositiveOnly */ -public static final String COLUMNNAME_IsPositiveOnly = "IsPositiveOnly"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CommissionLine (Properties ctx, int C_CommissionLine_ID, String trxName) + { + super (ctx, C_CommissionLine_ID, trxName); + /** if (C_CommissionLine_ID == 0) { setAmtMultiplier (Env.ZERO); + setAmtSubtract (Env.ZERO); + setC_CommissionLine_ID (0); + setC_Commission_ID (0); + setCommissionOrders (false); + setIsPositiveOnly (false); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_CommissionLine WHERE C_Commission_ID=@C_Commission_ID@ + setQtyMultiplier (Env.ZERO); + setQtySubtract (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_CommissionLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CommissionLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Multiplier Amount. + @param AmtMultiplier + Multiplier Amount for generating commissions + */ + public void setAmtMultiplier (BigDecimal AmtMultiplier) + { + if (AmtMultiplier == null) + throw new IllegalArgumentException ("AmtMultiplier is mandatory."); + set_Value (COLUMNNAME_AmtMultiplier, AmtMultiplier); + } + + /** Get Multiplier Amount. + @return Multiplier Amount for generating commissions + */ + public BigDecimal getAmtMultiplier () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtMultiplier); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Subtract Amount. + @param AmtSubtract + Subtract Amount for generating commissions + */ + public void setAmtSubtract (BigDecimal AmtSubtract) + { + if (AmtSubtract == null) + throw new IllegalArgumentException ("AmtSubtract is mandatory."); + set_Value (COLUMNNAME_AmtSubtract, AmtSubtract); + } + + /** Get Subtract Amount. + @return Subtract Amount for generating commissions + */ + public BigDecimal getAmtSubtract () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSubtract); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID <= 0) set_Value (COLUMNNAME_C_BP_Group_ID, null); + else + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commission Line. + @param C_CommissionLine_ID + Commission Line + */ + public void setC_CommissionLine_ID (int C_CommissionLine_ID) + { + if (C_CommissionLine_ID < 1) + throw new IllegalArgumentException ("C_CommissionLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CommissionLine_ID, Integer.valueOf(C_CommissionLine_ID)); + } + + /** Get Commission Line. + @return Commission Line + */ + public int getC_CommissionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Commission getI_C_Commission() throws Exception + { + 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 e; + } + return result; + } + + /** Set Commission. + @param C_Commission_ID + Commission + */ + public void setC_Commission_ID (int C_Commission_ID) + { + if (C_Commission_ID < 1) + throw new IllegalArgumentException ("C_Commission_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); + } + + /** Get Commission. + @return Commission + */ + public int getC_Commission_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Commission_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Commission_ID())); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commission only specified Orders. + @param CommissionOrders + Commission only Orders or Invoices, where this Sales Rep is entered + */ + public void setCommissionOrders (boolean CommissionOrders) + { + set_Value (COLUMNNAME_CommissionOrders, Boolean.valueOf(CommissionOrders)); + } + + /** Get Commission only specified Orders. + @return Commission only Orders or Invoices, where this Sales Rep is entered + */ + public boolean isCommissionOrders () + { + Object oo = get_Value(COLUMNNAME_CommissionOrders); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Positive only. + @param IsPositiveOnly + Do not generate negative commissions + */ + public void setIsPositiveOnly (boolean IsPositiveOnly) + { + set_Value (COLUMNNAME_IsPositiveOnly, Boolean.valueOf(IsPositiveOnly)); + } + + /** Get Positive only. + @return Do not generate negative commissions + */ + public boolean isPositiveOnly () + { + Object oo = get_Value(COLUMNNAME_IsPositiveOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Org_ID AD_Reference_ID=130 */ public static final int ORG_ID_AD_Reference_ID=130; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID <= 0) set_Value ("Org_ID", null); - else -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Multiplier Quantity. -@param QtyMultiplier Value to multiply quantities by for generating commissions. */ -public void setQtyMultiplier (BigDecimal QtyMultiplier) -{ -if (QtyMultiplier == null) throw new IllegalArgumentException ("QtyMultiplier is mandatory."); -set_Value ("QtyMultiplier", QtyMultiplier); -} -/** Get Multiplier Quantity. -@return Value to multiply quantities by for generating commissions. */ -public BigDecimal getQtyMultiplier() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyMultiplier"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyMultiplier */ -public static final String COLUMNNAME_QtyMultiplier = "QtyMultiplier"; -/** Set Subtract Quantity. -@param QtySubtract Quantity to subtract when generating commissions */ -public void setQtySubtract (BigDecimal QtySubtract) -{ -if (QtySubtract == null) throw new IllegalArgumentException ("QtySubtract is mandatory."); -set_Value ("QtySubtract", QtySubtract); -} -/** Get Subtract Quantity. -@return Quantity to subtract when generating commissions */ -public BigDecimal getQtySubtract() -{ -BigDecimal bd = (BigDecimal)get_Value("QtySubtract"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtySubtract */ -public static final String COLUMNNAME_QtySubtract = "QtySubtract"; -} + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID <= 0) set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Multiplier Quantity. + @param QtyMultiplier + Value to multiply quantities by for generating commissions. + */ + public void setQtyMultiplier (BigDecimal QtyMultiplier) + { + if (QtyMultiplier == null) + throw new IllegalArgumentException ("QtyMultiplier is mandatory."); + set_Value (COLUMNNAME_QtyMultiplier, QtyMultiplier); + } + + /** Get Multiplier Quantity. + @return Value to multiply quantities by for generating commissions. + */ + public BigDecimal getQtyMultiplier () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyMultiplier); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Subtract Quantity. + @param QtySubtract + Quantity to subtract when generating commissions + */ + public void setQtySubtract (BigDecimal QtySubtract) + { + if (QtySubtract == null) + throw new IllegalArgumentException ("QtySubtract is mandatory."); + set_Value (COLUMNNAME_QtySubtract, QtySubtract); + } + + /** Get Subtract Quantity. + @return Quantity to subtract when generating commissions + */ + public BigDecimal getQtySubtract () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtySubtract); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CommissionRun.java b/base/src/org/compiere/model/X_C_CommissionRun.java index aacdf234c8..4b4131a613 100644 --- a/base/src/org/compiere/model/X_C_CommissionRun.java +++ b/base/src/org/compiere/model/X_C_CommissionRun.java @@ -1,244 +1,278 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CommissionRun - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CommissionRun extends PO + +/** Generated Model for C_CommissionRun + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CommissionRun extends PO implements I_C_CommissionRun, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CommissionRun_ID id -@param trxName transaction -*/ -public X_C_CommissionRun (Properties ctx, int C_CommissionRun_ID, String trxName) -{ -super (ctx, C_CommissionRun_ID, trxName); -/** if (C_CommissionRun_ID == 0) -{ -setC_CommissionRun_ID (0); -setC_Commission_ID (0); -setDocumentNo (null); -setGrandTotal (Env.ZERO); -setProcessed (false); -setStartDate (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CommissionRun (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CommissionRun */ -public static final String Table_Name="C_CommissionRun"; - -/** AD_Table_ID=436 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CommissionRun[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Commission Run. -@param C_CommissionRun_ID Commission Run or Process */ -public void setC_CommissionRun_ID (int C_CommissionRun_ID) -{ -if (C_CommissionRun_ID < 1) throw new IllegalArgumentException ("C_CommissionRun_ID is mandatory."); -set_ValueNoCheck ("C_CommissionRun_ID", Integer.valueOf(C_CommissionRun_ID)); -} -/** Get Commission Run. -@return Commission Run or Process */ -public int getC_CommissionRun_ID() -{ -Integer ii = (Integer)get_Value("C_CommissionRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CommissionRun_ID */ -public static final String COLUMNNAME_C_CommissionRun_ID = "C_CommissionRun_ID"; -/** Set Commission. -@param C_Commission_ID Commission */ -public void setC_Commission_ID (int C_Commission_ID) -{ -if (C_Commission_ID < 1) throw new IllegalArgumentException ("C_Commission_ID is mandatory."); -set_ValueNoCheck ("C_Commission_ID", Integer.valueOf(C_Commission_ID)); -} -/** Get Commission. -@return Commission */ -public int getC_Commission_ID() -{ -Integer ii = (Integer)get_Value("C_Commission_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Commission_ID */ -public static final String COLUMNNAME_C_Commission_ID = "C_Commission_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Grand Total. -@param GrandTotal Total amount of document */ -public void setGrandTotal (BigDecimal GrandTotal) -{ -if (GrandTotal == null) throw new IllegalArgumentException ("GrandTotal is mandatory."); -set_ValueNoCheck ("GrandTotal", GrandTotal); -} -/** Get Grand Total. -@return Total amount of document */ -public BigDecimal getGrandTotal() -{ -BigDecimal bd = (BigDecimal)get_Value("GrandTotal"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrandTotal */ -public static final String COLUMNNAME_GrandTotal = "GrandTotal"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -if (StartDate == null) throw new IllegalArgumentException ("StartDate is mandatory."); -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CommissionRun (Properties ctx, int C_CommissionRun_ID, String trxName) + { + super (ctx, C_CommissionRun_ID, trxName); + /** if (C_CommissionRun_ID == 0) { setC_CommissionRun_ID (0); + setC_Commission_ID (0); + setDocumentNo (null); + setGrandTotal (Env.ZERO); + setProcessed (false); + setStartDate (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_CommissionRun (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CommissionRun[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Commission Run. + @param C_CommissionRun_ID + Commission Run or Process + */ + public void setC_CommissionRun_ID (int C_CommissionRun_ID) + { + if (C_CommissionRun_ID < 1) + throw new IllegalArgumentException ("C_CommissionRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CommissionRun_ID, Integer.valueOf(C_CommissionRun_ID)); + } + + /** Get Commission Run. + @return Commission Run or Process + */ + public int getC_CommissionRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CommissionRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Commission getI_C_Commission() throws Exception + { + 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 e; + } + return result; + } + + /** Set Commission. + @param C_Commission_ID + Commission + */ + public void setC_Commission_ID (int C_Commission_ID) + { + if (C_Commission_ID < 1) + throw new IllegalArgumentException ("C_Commission_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Commission_ID, Integer.valueOf(C_Commission_ID)); + } + + /** Get Commission. + @return Commission + */ + public int getC_Commission_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Commission_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Grand Total. + @param GrandTotal + Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal) + { + if (GrandTotal == null) + throw new IllegalArgumentException ("GrandTotal is mandatory."); + set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); + } + + /** Get Grand Total. + @return Total amount of document + */ + public BigDecimal getGrandTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + if (StartDate == null) + throw new IllegalArgumentException ("StartDate is mandatory."); + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ConversionType.java b/base/src/org/compiere/model/X_C_ConversionType.java index aca1e41105..122ac51b7f 100644 --- a/base/src/org/compiere/model/X_C_ConversionType.java +++ b/base/src/org/compiere/model/X_C_ConversionType.java @@ -1,193 +1,200 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ConversionType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ConversionType extends PO + +/** Generated Model for C_ConversionType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ConversionType extends PO implements I_C_ConversionType, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ConversionType_ID id -@param trxName transaction -*/ -public X_C_ConversionType (Properties ctx, int C_ConversionType_ID, String trxName) -{ -super (ctx, C_ConversionType_ID, trxName); -/** if (C_ConversionType_ID == 0) -{ -setC_ConversionType_ID (0); -setIsDefault (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ConversionType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ConversionType */ -public static final String Table_Name="C_ConversionType"; - -/** AD_Table_ID=637 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ConversionType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID < 1) throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); -set_ValueNoCheck ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ConversionType (Properties ctx, int C_ConversionType_ID, String trxName) + { + super (ctx, C_ConversionType_ID, trxName); + /** if (C_ConversionType_ID == 0) { setC_ConversionType_ID (0); + setIsDefault (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_ConversionType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ConversionType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file 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 4fe0339c5c..fc6b6d3763 100644 --- a/base/src/org/compiere/model/X_C_Conversion_Rate.java +++ b/base/src/org/compiere/model/X_C_Conversion_Rate.java @@ -1,236 +1,273 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Conversion_Rate - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Conversion_Rate extends PO + +/** Generated Model for C_Conversion_Rate + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Conversion_Rate extends PO implements I_C_Conversion_Rate, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Conversion_Rate_ID id -@param trxName transaction -*/ -public X_C_Conversion_Rate (Properties ctx, int C_Conversion_Rate_ID, String trxName) -{ -super (ctx, C_Conversion_Rate_ID, trxName); -/** if (C_Conversion_Rate_ID == 0) -{ -setC_ConversionType_ID (0); -setC_Conversion_Rate_ID (0); -setC_Currency_ID (0); -setC_Currency_ID_To (0); -setDivideRate (Env.ZERO); -setMultiplyRate (Env.ZERO); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Conversion_Rate (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Conversion_Rate */ -public static final String Table_Name="C_Conversion_Rate"; - -/** AD_Table_ID=140 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Conversion_Rate[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID < 1) throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Conversion Rate. -@param C_Conversion_Rate_ID Rate used for converting currencies */ -public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID) -{ -if (C_Conversion_Rate_ID < 1) throw new IllegalArgumentException ("C_Conversion_Rate_ID is mandatory."); -set_ValueNoCheck ("C_Conversion_Rate_ID", Integer.valueOf(C_Conversion_Rate_ID)); -} -/** Get Conversion Rate. -@return Rate used for converting currencies */ -public int getC_Conversion_Rate_ID() -{ -Integer ii = (Integer)get_Value("C_Conversion_Rate_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Conversion_Rate_ID())); -} -/** Column name C_Conversion_Rate_ID */ -public static final String COLUMNNAME_C_Conversion_Rate_ID = "C_Conversion_Rate_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Conversion_Rate (Properties ctx, int C_Conversion_Rate_ID, String trxName) + { + super (ctx, C_Conversion_Rate_ID, trxName); + /** if (C_Conversion_Rate_ID == 0) { setC_ConversionType_ID (0); + setC_Conversion_Rate_ID (0); + setC_Currency_ID (0); + setC_Currency_ID_To (0); + setDivideRate (Env.ZERO); + setMultiplyRate (Env.ZERO); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_Conversion_Rate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Conversion_Rate[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Conversion Rate. + @param C_Conversion_Rate_ID + Rate used for converting currencies + */ + public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID) + { + if (C_Conversion_Rate_ID < 1) + throw new IllegalArgumentException ("C_Conversion_Rate_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Conversion_Rate_ID, Integer.valueOf(C_Conversion_Rate_ID)); + } + + /** Get Conversion Rate. + @return Rate used for converting currencies + */ + public int getC_Conversion_Rate_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Conversion_Rate_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Conversion_Rate_ID())); + } /** C_Currency_ID AD_Reference_ID=112 */ public static final int C_CURRENCY_ID_AD_Reference_ID=112; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Currency_ID_To AD_Reference_ID=112 */ public static final int C_CURRENCY_ID_TO_AD_Reference_ID=112; -/** Set Currency To. -@param C_Currency_ID_To Target currency */ -public void setC_Currency_ID_To (int C_Currency_ID_To) -{ -set_Value ("C_Currency_ID_To", Integer.valueOf(C_Currency_ID_To)); -} -/** Get Currency To. -@return Target currency */ -public int getC_Currency_ID_To() -{ -Integer ii = (Integer)get_Value("C_Currency_ID_To"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID_To */ -public static final String COLUMNNAME_C_Currency_ID_To = "C_Currency_ID_To"; -/** Set Divide Rate. -@param DivideRate To convert Source number to Target number, the Source is divided */ -public void setDivideRate (BigDecimal DivideRate) -{ -if (DivideRate == null) throw new IllegalArgumentException ("DivideRate is mandatory."); -set_Value ("DivideRate", DivideRate); -} -/** Get Divide Rate. -@return To convert Source number to Target number, the Source is divided */ -public BigDecimal getDivideRate() -{ -BigDecimal bd = (BigDecimal)get_Value("DivideRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DivideRate */ -public static final String COLUMNNAME_DivideRate = "DivideRate"; -/** Set Multiply Rate. -@param MultiplyRate Rate to multiple the source by to calculate the target. */ -public void setMultiplyRate (BigDecimal MultiplyRate) -{ -if (MultiplyRate == null) throw new IllegalArgumentException ("MultiplyRate is mandatory."); -set_Value ("MultiplyRate", MultiplyRate); -} -/** Get Multiply Rate. -@return Rate to multiple the source by to calculate the target. */ -public BigDecimal getMultiplyRate() -{ -BigDecimal bd = (BigDecimal)get_Value("MultiplyRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MultiplyRate */ -public static final String COLUMNNAME_MultiplyRate = "MultiplyRate"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + /** Set Currency To. + @param C_Currency_ID_To + Target currency + */ + public void setC_Currency_ID_To (int C_Currency_ID_To) + { + set_Value (COLUMNNAME_C_Currency_ID_To, Integer.valueOf(C_Currency_ID_To)); + } + + /** Get Currency To. + @return Target currency + */ + public int getC_Currency_ID_To () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID_To); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Divide Rate. + @param DivideRate + To convert Source number to Target number, the Source is divided + */ + public void setDivideRate (BigDecimal DivideRate) + { + if (DivideRate == null) + throw new IllegalArgumentException ("DivideRate is mandatory."); + set_Value (COLUMNNAME_DivideRate, DivideRate); + } + + /** Get Divide Rate. + @return To convert Source number to Target number, the Source is divided + */ + public BigDecimal getDivideRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DivideRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Multiply Rate. + @param MultiplyRate + Rate to multiple the source by to calculate the target. + */ + public void setMultiplyRate (BigDecimal MultiplyRate) + { + if (MultiplyRate == null) + throw new IllegalArgumentException ("MultiplyRate is mandatory."); + set_Value (COLUMNNAME_MultiplyRate, MultiplyRate); + } + + /** Get Multiply Rate. + @return Rate to multiple the source by to calculate the target. + */ + public BigDecimal getMultiplyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MultiplyRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Country.java b/base/src/org/compiere/model/X_C_Country.java index 7593f7a0b1..ff04d5127b 100644 --- a/base/src/org/compiere/model/X_C_Country.java +++ b/base/src/org/compiere/model/X_C_Country.java @@ -1,571 +1,651 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Country - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Country extends PO + +/** Generated Model for C_Country + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Country extends PO implements I_C_Country, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Country_ID id -@param trxName transaction -*/ -public X_C_Country (Properties ctx, int C_Country_ID, String trxName) -{ -super (ctx, C_Country_ID, trxName); -/** if (C_Country_ID == 0) -{ -setC_Country_ID (0); -setCountryCode (null); -setDisplaySequence (null); // @C@, @R@ @P@ -setHasPostal_Add (false); -setHasRegion (false); -setIsAddressLinesLocalReverse (false); -setIsAddressLinesReverse (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Country (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Country */ -public static final String Table_Name="C_Country"; - -/** AD_Table_ID=170 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Country[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Country (Properties ctx, int C_Country_ID, String trxName) + { + super (ctx, C_Country_ID, trxName); + /** if (C_Country_ID == 0) { setC_Country_ID (0); + setCountryCode (null); + setDisplaySequence (null); +// @C@, @R@ @P@ + setHasPostal_Add (false); + setHasRegion (false); + setIsAddressLinesLocalReverse (false); + setIsAddressLinesReverse (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Country (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Country[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=106 */ public static final int AD_LANGUAGE_AD_Reference_ID=106; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language != null && AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID < 1) throw new IllegalArgumentException ("C_Country_ID is mandatory."); -set_ValueNoCheck ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set ISO Country Code. -@param CountryCode Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public void setCountryCode (String CountryCode) -{ -if (CountryCode == null) throw new IllegalArgumentException ("CountryCode is mandatory."); -if (CountryCode.length() > 2) -{ -log.warning("Length > 2 - truncated"); -CountryCode = CountryCode.substring(0,1); -} -set_Value ("CountryCode", CountryCode); -} -/** Get ISO Country Code. -@return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public String getCountryCode() -{ -return (String)get_Value("CountryCode"); -} -/** Column name CountryCode */ -public static final String COLUMNNAME_CountryCode = "CountryCode"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Address Print Format. -@param DisplaySequence Format for printing this Address */ -public void setDisplaySequence (String DisplaySequence) -{ -if (DisplaySequence == null) throw new IllegalArgumentException ("DisplaySequence is mandatory."); -if (DisplaySequence.length() > 20) -{ -log.warning("Length > 20 - truncated"); -DisplaySequence = DisplaySequence.substring(0,19); -} -set_Value ("DisplaySequence", DisplaySequence); -} -/** Get Address Print Format. -@return Format for printing this Address */ -public String getDisplaySequence() -{ -return (String)get_Value("DisplaySequence"); -} -/** Column name DisplaySequence */ -public static final String COLUMNNAME_DisplaySequence = "DisplaySequence"; -/** Set Local Address Format. -@param DisplaySequenceLocal Format for printing this Address locally */ -public void setDisplaySequenceLocal (String DisplaySequenceLocal) -{ -if (DisplaySequenceLocal != null && DisplaySequenceLocal.length() > 20) -{ -log.warning("Length > 20 - truncated"); -DisplaySequenceLocal = DisplaySequenceLocal.substring(0,19); -} -set_Value ("DisplaySequenceLocal", DisplaySequenceLocal); -} -/** Get Local Address Format. -@return Format for printing this Address locally */ -public String getDisplaySequenceLocal() -{ -return (String)get_Value("DisplaySequenceLocal"); -} -/** Column name DisplaySequenceLocal */ -public static final String COLUMNNAME_DisplaySequenceLocal = "DisplaySequenceLocal"; -/** Set Bank Account No Format. -@param ExpressionBankAccountNo Format of the Bank Account */ -public void setExpressionBankAccountNo (String ExpressionBankAccountNo) -{ -if (ExpressionBankAccountNo != null && ExpressionBankAccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ExpressionBankAccountNo = ExpressionBankAccountNo.substring(0,19); -} -set_Value ("ExpressionBankAccountNo", ExpressionBankAccountNo); -} -/** Get Bank Account No Format. -@return Format of the Bank Account */ -public String getExpressionBankAccountNo() -{ -return (String)get_Value("ExpressionBankAccountNo"); -} -/** Column name ExpressionBankAccountNo */ -public static final String COLUMNNAME_ExpressionBankAccountNo = "ExpressionBankAccountNo"; -/** Set Bank Routing No Format. -@param ExpressionBankRoutingNo Format of the Bank Routing Number */ -public void setExpressionBankRoutingNo (String ExpressionBankRoutingNo) -{ -if (ExpressionBankRoutingNo != null && ExpressionBankRoutingNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ExpressionBankRoutingNo = ExpressionBankRoutingNo.substring(0,19); -} -set_Value ("ExpressionBankRoutingNo", ExpressionBankRoutingNo); -} -/** Get Bank Routing No Format. -@return Format of the Bank Routing Number */ -public String getExpressionBankRoutingNo() -{ -return (String)get_Value("ExpressionBankRoutingNo"); -} -/** Column name ExpressionBankRoutingNo */ -public static final String COLUMNNAME_ExpressionBankRoutingNo = "ExpressionBankRoutingNo"; -/** Set Phone Format. -@param ExpressionPhone Format of the phone; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setExpressionPhone (String ExpressionPhone) -{ -if (ExpressionPhone != null && ExpressionPhone.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ExpressionPhone = ExpressionPhone.substring(0,19); -} -set_Value ("ExpressionPhone", ExpressionPhone); -} -/** Get Phone Format. -@return Format of the phone; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getExpressionPhone() -{ -return (String)get_Value("ExpressionPhone"); -} -/** Column name ExpressionPhone */ -public static final String COLUMNNAME_ExpressionPhone = "ExpressionPhone"; -/** Set Postal Code Format. -@param ExpressionPostal Format of the postal code; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setExpressionPostal (String ExpressionPostal) -{ -if (ExpressionPostal != null && ExpressionPostal.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ExpressionPostal = ExpressionPostal.substring(0,19); -} -set_Value ("ExpressionPostal", ExpressionPostal); -} -/** Get Postal Code Format. -@return Format of the postal code; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getExpressionPostal() -{ -return (String)get_Value("ExpressionPostal"); -} -/** Column name ExpressionPostal */ -public static final String COLUMNNAME_ExpressionPostal = "ExpressionPostal"; -/** Set Additional Postal Format. -@param ExpressionPostal_Add Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setExpressionPostal_Add (String ExpressionPostal_Add) -{ -if (ExpressionPostal_Add != null && ExpressionPostal_Add.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ExpressionPostal_Add = ExpressionPostal_Add.substring(0,19); -} -set_Value ("ExpressionPostal_Add", ExpressionPostal_Add); -} -/** Get Additional Postal Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getExpressionPostal_Add() -{ -return (String)get_Value("ExpressionPostal_Add"); -} -/** Column name ExpressionPostal_Add */ -public static final String COLUMNNAME_ExpressionPostal_Add = "ExpressionPostal_Add"; -/** Set Additional Postal code. -@param HasPostal_Add Has Additional Postal Code */ -public void setHasPostal_Add (boolean HasPostal_Add) -{ -set_Value ("HasPostal_Add", Boolean.valueOf(HasPostal_Add)); -} -/** Get Additional Postal code. -@return Has Additional Postal Code */ -public boolean isHasPostal_Add() -{ -Object oo = get_Value("HasPostal_Add"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasPostal_Add */ -public static final String COLUMNNAME_HasPostal_Add = "HasPostal_Add"; -/** Set Country has Region. -@param HasRegion Country contains Regions */ -public void setHasRegion (boolean HasRegion) -{ -set_Value ("HasRegion", Boolean.valueOf(HasRegion)); -} -/** Get Country has Region. -@return Country contains Regions */ -public boolean isHasRegion() -{ -Object oo = get_Value("HasRegion"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasRegion */ -public static final String COLUMNNAME_HasRegion = "HasRegion"; -/** Set Reverse Local Address Lines. -@param IsAddressLinesLocalReverse Print Local Address in reverse Order */ -public void setIsAddressLinesLocalReverse (boolean IsAddressLinesLocalReverse) -{ -set_Value ("IsAddressLinesLocalReverse", Boolean.valueOf(IsAddressLinesLocalReverse)); -} -/** Get Reverse Local Address Lines. -@return Print Local Address in reverse Order */ -public boolean isAddressLinesLocalReverse() -{ -Object oo = get_Value("IsAddressLinesLocalReverse"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAddressLinesLocalReverse */ -public static final String COLUMNNAME_IsAddressLinesLocalReverse = "IsAddressLinesLocalReverse"; -/** Set Reverse Address Lines. -@param IsAddressLinesReverse Print Address in reverse Order */ -public void setIsAddressLinesReverse (boolean IsAddressLinesReverse) -{ -set_Value ("IsAddressLinesReverse", Boolean.valueOf(IsAddressLinesReverse)); -} -/** Get Reverse Address Lines. -@return Print Address in reverse Order */ -public boolean isAddressLinesReverse() -{ -Object oo = get_Value("IsAddressLinesReverse"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAddressLinesReverse */ -public static final String COLUMNNAME_IsAddressLinesReverse = "IsAddressLinesReverse"; -/** Set IsPostcodeLookup. -@param IsPostcodeLookup Does this country have a post code web service */ -public void setIsPostcodeLookup (boolean IsPostcodeLookup) -{ -set_Value ("IsPostcodeLookup", Boolean.valueOf(IsPostcodeLookup)); -} -/** Get IsPostcodeLookup. -@return Does this country have a post code web service */ -public boolean isPostcodeLookup() -{ -Object oo = get_Value("IsPostcodeLookup"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPostcodeLookup */ -public static final String COLUMNNAME_IsPostcodeLookup = "IsPostcodeLookup"; -/** Set LookupClassName. -@param LookupClassName The class name of the postcode lookup plugin */ -public void setLookupClassName (String LookupClassName) -{ -if (LookupClassName != null && LookupClassName.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LookupClassName = LookupClassName.substring(0,254); -} -set_Value ("LookupClassName", LookupClassName); -} -/** Get LookupClassName. -@return The class name of the postcode lookup plugin */ -public String getLookupClassName() -{ -return (String)get_Value("LookupClassName"); -} -/** Column name LookupClassName */ -public static final String COLUMNNAME_LookupClassName = "LookupClassName"; -/** Set LookupClientID. -@param LookupClientID The ClientID or Login submitted to the Lookup URL */ -public void setLookupClientID (String LookupClientID) -{ -if (LookupClientID != null && LookupClientID.length() > 50) -{ -log.warning("Length > 50 - truncated"); -LookupClientID = LookupClientID.substring(0,49); -} -set_Value ("LookupClientID", LookupClientID); -} -/** Get LookupClientID. -@return The ClientID or Login submitted to the Lookup URL */ -public String getLookupClientID() -{ -return (String)get_Value("LookupClientID"); -} -/** Column name LookupClientID */ -public static final String COLUMNNAME_LookupClientID = "LookupClientID"; -/** Set LookupPassword. -@param LookupPassword The password submitted to the Lookup URL */ -public void setLookupPassword (String LookupPassword) -{ -if (LookupPassword != null && LookupPassword.length() > 50) -{ -log.warning("Length > 50 - truncated"); -LookupPassword = LookupPassword.substring(0,49); -} -set_Value ("LookupPassword", LookupPassword); -} -/** Get LookupPassword. -@return The password submitted to the Lookup URL */ -public String getLookupPassword() -{ -return (String)get_Value("LookupPassword"); -} -/** Column name LookupPassword */ -public static final String COLUMNNAME_LookupPassword = "LookupPassword"; -/** Set LookupUrl. -@param LookupUrl The URL of the web service that the plugin connects to in order to retrieve postcode data */ -public void setLookupUrl (String LookupUrl) -{ -if (LookupUrl != null && LookupUrl.length() > 100) -{ -log.warning("Length > 100 - truncated"); -LookupUrl = LookupUrl.substring(0,99); -} -set_Value ("LookupUrl", LookupUrl); -} -/** Get LookupUrl. -@return The URL of the web service that the plugin connects to in order to retrieve postcode data */ -public String getLookupUrl() -{ -return (String)get_Value("LookupUrl"); -} -/** Column name LookupUrl */ -public static final String COLUMNNAME_LookupUrl = "LookupUrl"; -/** Set Media Size. -@param MediaSize Java Media Size */ -public void setMediaSize (String MediaSize) -{ -if (MediaSize != null && MediaSize.length() > 40) -{ -log.warning("Length > 40 - truncated"); -MediaSize = MediaSize.substring(0,39); -} -set_Value ("MediaSize", MediaSize); -} -/** Get Media Size. -@return Java Media Size */ -public String getMediaSize() -{ -return (String)get_Value("MediaSize"); -} -/** Column name MediaSize */ -public static final String COLUMNNAME_MediaSize = "MediaSize"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Region. -@param RegionName Name of the Region */ -public void setRegionName (String RegionName) -{ -if (RegionName != null && RegionName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RegionName = RegionName.substring(0,59); -} -set_Value ("RegionName", RegionName); -} -/** Get Region. -@return Name of the Region */ -public String getRegionName() -{ -return (String)get_Value("RegionName"); -} -/** Column name RegionName */ -public static final String COLUMNNAME_RegionName = "RegionName"; -} + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID < 1) + throw new IllegalArgumentException ("C_Country_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ISO Country Code. + @param CountryCode + Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode) + { + if (CountryCode == null) + throw new IllegalArgumentException ("CountryCode is mandatory."); + if (CountryCode.length() > 2) + { + log.warning("Length > 2 - truncated"); + CountryCode = CountryCode.substring(0, 1); + } + set_Value (COLUMNNAME_CountryCode, CountryCode); + } + + /** Get ISO Country Code. + @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode () + { + return (String)get_Value(COLUMNNAME_CountryCode); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Address Print Format. + @param DisplaySequence + Format for printing this Address + */ + public void setDisplaySequence (String DisplaySequence) + { + if (DisplaySequence == null) + throw new IllegalArgumentException ("DisplaySequence is mandatory."); + if (DisplaySequence.length() > 20) + { + log.warning("Length > 20 - truncated"); + DisplaySequence = DisplaySequence.substring(0, 19); + } + set_Value (COLUMNNAME_DisplaySequence, DisplaySequence); + } + + /** Get Address Print Format. + @return Format for printing this Address + */ + public String getDisplaySequence () + { + return (String)get_Value(COLUMNNAME_DisplaySequence); + } + + /** Set Local Address Format. + @param DisplaySequenceLocal + Format for printing this Address locally + */ + public void setDisplaySequenceLocal (String DisplaySequenceLocal) + { + if (DisplaySequenceLocal != null && DisplaySequenceLocal.length() > 20) + { + log.warning("Length > 20 - truncated"); + DisplaySequenceLocal = DisplaySequenceLocal.substring(0, 19); + } + set_Value (COLUMNNAME_DisplaySequenceLocal, DisplaySequenceLocal); + } + + /** Get Local Address Format. + @return Format for printing this Address locally + */ + public String getDisplaySequenceLocal () + { + return (String)get_Value(COLUMNNAME_DisplaySequenceLocal); + } + + /** Set Bank Account No Format. + @param ExpressionBankAccountNo + Format of the Bank Account + */ + public void setExpressionBankAccountNo (String ExpressionBankAccountNo) + { + if (ExpressionBankAccountNo != null && ExpressionBankAccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ExpressionBankAccountNo = ExpressionBankAccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_ExpressionBankAccountNo, ExpressionBankAccountNo); + } + + /** Get Bank Account No Format. + @return Format of the Bank Account + */ + public String getExpressionBankAccountNo () + { + return (String)get_Value(COLUMNNAME_ExpressionBankAccountNo); + } + + /** Set Bank Routing No Format. + @param ExpressionBankRoutingNo + Format of the Bank Routing Number + */ + public void setExpressionBankRoutingNo (String ExpressionBankRoutingNo) + { + if (ExpressionBankRoutingNo != null && ExpressionBankRoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ExpressionBankRoutingNo = ExpressionBankRoutingNo.substring(0, 19); + } + set_Value (COLUMNNAME_ExpressionBankRoutingNo, ExpressionBankRoutingNo); + } + + /** Get Bank Routing No Format. + @return Format of the Bank Routing Number + */ + public String getExpressionBankRoutingNo () + { + return (String)get_Value(COLUMNNAME_ExpressionBankRoutingNo); + } + + /** Set Phone Format. + @param ExpressionPhone + Format of the phone; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setExpressionPhone (String ExpressionPhone) + { + if (ExpressionPhone != null && ExpressionPhone.length() > 20) + { + log.warning("Length > 20 - truncated"); + ExpressionPhone = ExpressionPhone.substring(0, 19); + } + set_Value (COLUMNNAME_ExpressionPhone, ExpressionPhone); + } + + /** Get Phone Format. + @return Format of the phone; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getExpressionPhone () + { + return (String)get_Value(COLUMNNAME_ExpressionPhone); + } + + /** Set Postal Code Format. + @param ExpressionPostal + Format of the postal code; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setExpressionPostal (String ExpressionPostal) + { + if (ExpressionPostal != null && ExpressionPostal.length() > 20) + { + log.warning("Length > 20 - truncated"); + ExpressionPostal = ExpressionPostal.substring(0, 19); + } + set_Value (COLUMNNAME_ExpressionPostal, ExpressionPostal); + } + + /** Get Postal Code Format. + @return Format of the postal code; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getExpressionPostal () + { + return (String)get_Value(COLUMNNAME_ExpressionPostal); + } + + /** Set Additional Postal Format. + @param ExpressionPostal_Add + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setExpressionPostal_Add (String ExpressionPostal_Add) + { + if (ExpressionPostal_Add != null && ExpressionPostal_Add.length() > 20) + { + log.warning("Length > 20 - truncated"); + ExpressionPostal_Add = ExpressionPostal_Add.substring(0, 19); + } + set_Value (COLUMNNAME_ExpressionPostal_Add, ExpressionPostal_Add); + } + + /** Get Additional Postal Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getExpressionPostal_Add () + { + return (String)get_Value(COLUMNNAME_ExpressionPostal_Add); + } + + /** Set Additional Postal code. + @param HasPostal_Add + Has Additional Postal Code + */ + public void setHasPostal_Add (boolean HasPostal_Add) + { + set_Value (COLUMNNAME_HasPostal_Add, Boolean.valueOf(HasPostal_Add)); + } + + /** Get Additional Postal code. + @return Has Additional Postal Code + */ + public boolean isHasPostal_Add () + { + Object oo = get_Value(COLUMNNAME_HasPostal_Add); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Country has Region. + @param HasRegion + Country contains Regions + */ + public void setHasRegion (boolean HasRegion) + { + set_Value (COLUMNNAME_HasRegion, Boolean.valueOf(HasRegion)); + } + + /** Get Country has Region. + @return Country contains Regions + */ + public boolean isHasRegion () + { + Object oo = get_Value(COLUMNNAME_HasRegion); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reverse Local Address Lines. + @param IsAddressLinesLocalReverse + Print Local Address in reverse Order + */ + public void setIsAddressLinesLocalReverse (boolean IsAddressLinesLocalReverse) + { + set_Value (COLUMNNAME_IsAddressLinesLocalReverse, Boolean.valueOf(IsAddressLinesLocalReverse)); + } + + /** Get Reverse Local Address Lines. + @return Print Local Address in reverse Order + */ + public boolean isAddressLinesLocalReverse () + { + Object oo = get_Value(COLUMNNAME_IsAddressLinesLocalReverse); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reverse Address Lines. + @param IsAddressLinesReverse + Print Address in reverse Order + */ + public void setIsAddressLinesReverse (boolean IsAddressLinesReverse) + { + set_Value (COLUMNNAME_IsAddressLinesReverse, Boolean.valueOf(IsAddressLinesReverse)); + } + + /** Get Reverse Address Lines. + @return Print Address in reverse Order + */ + public boolean isAddressLinesReverse () + { + Object oo = get_Value(COLUMNNAME_IsAddressLinesReverse); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set IsPostcodeLookup. + @param IsPostcodeLookup + Does this country have a post code web service + */ + public void setIsPostcodeLookup (boolean IsPostcodeLookup) + { + set_Value (COLUMNNAME_IsPostcodeLookup, Boolean.valueOf(IsPostcodeLookup)); + } + + /** Get IsPostcodeLookup. + @return Does this country have a post code web service + */ + public boolean isPostcodeLookup () + { + Object oo = get_Value(COLUMNNAME_IsPostcodeLookup); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set LookupClassName. + @param LookupClassName + The class name of the postcode lookup plugin + */ + public void setLookupClassName (String LookupClassName) + { + if (LookupClassName != null && LookupClassName.length() > 255) + { + log.warning("Length > 255 - truncated"); + LookupClassName = LookupClassName.substring(0, 254); + } + set_Value (COLUMNNAME_LookupClassName, LookupClassName); + } + + /** Get LookupClassName. + @return The class name of the postcode lookup plugin + */ + public String getLookupClassName () + { + return (String)get_Value(COLUMNNAME_LookupClassName); + } + + /** Set LookupClientID. + @param LookupClientID + The ClientID or Login submitted to the Lookup URL + */ + public void setLookupClientID (String LookupClientID) + { + if (LookupClientID != null && LookupClientID.length() > 50) + { + log.warning("Length > 50 - truncated"); + LookupClientID = LookupClientID.substring(0, 49); + } + set_Value (COLUMNNAME_LookupClientID, LookupClientID); + } + + /** Get LookupClientID. + @return The ClientID or Login submitted to the Lookup URL + */ + public String getLookupClientID () + { + return (String)get_Value(COLUMNNAME_LookupClientID); + } + + /** Set LookupPassword. + @param LookupPassword + The password submitted to the Lookup URL + */ + public void setLookupPassword (String LookupPassword) + { + if (LookupPassword != null && LookupPassword.length() > 50) + { + log.warning("Length > 50 - truncated"); + LookupPassword = LookupPassword.substring(0, 49); + } + set_Value (COLUMNNAME_LookupPassword, LookupPassword); + } + + /** Get LookupPassword. + @return The password submitted to the Lookup URL + */ + public String getLookupPassword () + { + return (String)get_Value(COLUMNNAME_LookupPassword); + } + + /** Set LookupUrl. + @param LookupUrl + The URL of the web service that the plugin connects to in order to retrieve postcode data + */ + public void setLookupUrl (String LookupUrl) + { + if (LookupUrl != null && LookupUrl.length() > 100) + { + log.warning("Length > 100 - truncated"); + LookupUrl = LookupUrl.substring(0, 99); + } + set_Value (COLUMNNAME_LookupUrl, LookupUrl); + } + + /** Get LookupUrl. + @return The URL of the web service that the plugin connects to in order to retrieve postcode data + */ + public String getLookupUrl () + { + return (String)get_Value(COLUMNNAME_LookupUrl); + } + + /** Set Media Size. + @param MediaSize + Java Media Size + */ + public void setMediaSize (String MediaSize) + { + if (MediaSize != null && MediaSize.length() > 40) + { + log.warning("Length > 40 - truncated"); + MediaSize = MediaSize.substring(0, 39); + } + set_Value (COLUMNNAME_MediaSize, MediaSize); + } + + /** Get Media Size. + @return Java Media Size + */ + public String getMediaSize () + { + return (String)get_Value(COLUMNNAME_MediaSize); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Region. + @param RegionName + Name of the Region + */ + public void setRegionName (String RegionName) + { + if (RegionName != null && RegionName.length() > 60) + { + log.warning("Length > 60 - truncated"); + RegionName = RegionName.substring(0, 59); + } + set_Value (COLUMNNAME_RegionName, RegionName); + } + + /** Get Region. + @return Name of the Region + */ + public String getRegionName () + { + return (String)get_Value(COLUMNNAME_RegionName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Currency.java b/base/src/org/compiere/model/X_C_Currency.java index 5accb4234c..ba1561e6cd 100644 --- a/base/src/org/compiere/model/X_C_Currency.java +++ b/base/src/org/compiere/model/X_C_Currency.java @@ -1,278 +1,308 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Currency - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Currency extends PO + +/** Generated Model for C_Currency + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Currency extends PO implements I_C_Currency, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Currency_ID id -@param trxName transaction -*/ -public X_C_Currency (Properties ctx, int C_Currency_ID, String trxName) -{ -super (ctx, C_Currency_ID, trxName); -/** if (C_Currency_ID == 0) -{ -setC_Currency_ID (0); -setCostingPrecision (0); // 4 -setDescription (null); -setISO_Code (null); -setIsEMUMember (false); // N -setIsEuro (false); // N -setStdPrecision (0); // 2 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Currency (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Currency */ -public static final String Table_Name="C_Currency"; - -/** AD_Table_ID=141 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Currency[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Costing Precision. -@param CostingPrecision Rounding used costing calculations */ -public void setCostingPrecision (int CostingPrecision) -{ -set_Value ("CostingPrecision", Integer.valueOf(CostingPrecision)); -} -/** Get Costing Precision. -@return Rounding used costing calculations */ -public int getCostingPrecision() -{ -Integer ii = (Integer)get_Value("CostingPrecision"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CostingPrecision */ -public static final String COLUMNNAME_CostingPrecision = "CostingPrecision"; -/** Set Symbol. -@param CurSymbol Symbol of the currency (opt used for printing only) */ -public void setCurSymbol (String CurSymbol) -{ -if (CurSymbol != null && CurSymbol.length() > 10) -{ -log.warning("Length > 10 - truncated"); -CurSymbol = CurSymbol.substring(0,9); -} -set_Value ("CurSymbol", CurSymbol); -} -/** Get Symbol. -@return Symbol of the currency (opt used for printing only) */ -public String getCurSymbol() -{ -return (String)get_Value("CurSymbol"); -} -/** Column name CurSymbol */ -public static final String COLUMNNAME_CurSymbol = "CurSymbol"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMU Entry Date. -@param EMUEntryDate Date when the currency joined / will join the EMU */ -public void setEMUEntryDate (Timestamp EMUEntryDate) -{ -set_Value ("EMUEntryDate", EMUEntryDate); -} -/** Get EMU Entry Date. -@return Date when the currency joined / will join the EMU */ -public Timestamp getEMUEntryDate() -{ -return (Timestamp)get_Value("EMUEntryDate"); -} -/** Column name EMUEntryDate */ -public static final String COLUMNNAME_EMUEntryDate = "EMUEntryDate"; -/** Set EMU Rate. -@param EMURate Official rate to the Euro */ -public void setEMURate (BigDecimal EMURate) -{ -set_Value ("EMURate", EMURate); -} -/** Get EMU Rate. -@return Official rate to the Euro */ -public BigDecimal getEMURate() -{ -BigDecimal bd = (BigDecimal)get_Value("EMURate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name EMURate */ -public static final String COLUMNNAME_EMURate = "EMURate"; -/** Set ISO Currency Code. -@param ISO_Code Three letter ISO 4217 Code of the Currency */ -public void setISO_Code (String ISO_Code) -{ -if (ISO_Code == null) throw new IllegalArgumentException ("ISO_Code is mandatory."); -if (ISO_Code.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code = ISO_Code.substring(0,2); -} -set_Value ("ISO_Code", ISO_Code); -} -/** Get ISO Currency Code. -@return Three letter ISO 4217 Code of the Currency */ -public String getISO_Code() -{ -return (String)get_Value("ISO_Code"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getISO_Code()); -} -/** Column name ISO_Code */ -public static final String COLUMNNAME_ISO_Code = "ISO_Code"; -/** Set EMU Member. -@param IsEMUMember This currency is member if the European Monetary Union */ -public void setIsEMUMember (boolean IsEMUMember) -{ -set_Value ("IsEMUMember", Boolean.valueOf(IsEMUMember)); -} -/** Get EMU Member. -@return This currency is member if the European Monetary Union */ -public boolean isEMUMember() -{ -Object oo = get_Value("IsEMUMember"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEMUMember */ -public static final String COLUMNNAME_IsEMUMember = "IsEMUMember"; -/** Set The Euro Currency. -@param IsEuro This currency is the Euro */ -public void setIsEuro (boolean IsEuro) -{ -set_Value ("IsEuro", Boolean.valueOf(IsEuro)); -} -/** Get The Euro Currency. -@return This currency is the Euro */ -public boolean isEuro() -{ -Object oo = get_Value("IsEuro"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEuro */ -public static final String COLUMNNAME_IsEuro = "IsEuro"; -/** Set Standard Precision. -@param StdPrecision Rule for rounding calculated amounts */ -public void setStdPrecision (int StdPrecision) -{ -set_Value ("StdPrecision", Integer.valueOf(StdPrecision)); -} -/** Get Standard Precision. -@return Rule for rounding calculated amounts */ -public int getStdPrecision() -{ -Integer ii = (Integer)get_Value("StdPrecision"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StdPrecision */ -public static final String COLUMNNAME_StdPrecision = "StdPrecision"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Currency (Properties ctx, int C_Currency_ID, String trxName) + { + super (ctx, C_Currency_ID, trxName); + /** if (C_Currency_ID == 0) { setC_Currency_ID (0); + setCostingPrecision (0); +// 4 + setDescription (null); + setISO_Code (null); + setIsEMUMember (false); +// N + setIsEuro (false); +// N + setStdPrecision (0); +// 2 +} */ + } + + /** Load Constructor */ + public X_C_Currency (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Currency[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Costing Precision. + @param CostingPrecision + Rounding used costing calculations + */ + public void setCostingPrecision (int CostingPrecision) + { + set_Value (COLUMNNAME_CostingPrecision, Integer.valueOf(CostingPrecision)); + } + + /** Get Costing Precision. + @return Rounding used costing calculations + */ + public int getCostingPrecision () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CostingPrecision); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Symbol. + @param CurSymbol + Symbol of the currency (opt used for printing only) + */ + public void setCurSymbol (String CurSymbol) + { + if (CurSymbol != null && CurSymbol.length() > 10) + { + log.warning("Length > 10 - truncated"); + CurSymbol = CurSymbol.substring(0, 9); + } + set_Value (COLUMNNAME_CurSymbol, CurSymbol); + } + + /** Get Symbol. + @return Symbol of the currency (opt used for printing only) + */ + public String getCurSymbol () + { + return (String)get_Value(COLUMNNAME_CurSymbol); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMU Entry Date. + @param EMUEntryDate + Date when the currency joined / will join the EMU + */ + public void setEMUEntryDate (Timestamp EMUEntryDate) + { + set_Value (COLUMNNAME_EMUEntryDate, EMUEntryDate); + } + + /** Get EMU Entry Date. + @return Date when the currency joined / will join the EMU + */ + public Timestamp getEMUEntryDate () + { + return (Timestamp)get_Value(COLUMNNAME_EMUEntryDate); + } + + /** Set EMU Rate. + @param EMURate + Official rate to the Euro + */ + public void setEMURate (BigDecimal EMURate) + { + set_Value (COLUMNNAME_EMURate, EMURate); + } + + /** Get EMU Rate. + @return Official rate to the Euro + */ + public BigDecimal getEMURate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EMURate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + if (ISO_Code == null) + throw new IllegalArgumentException ("ISO_Code is mandatory."); + if (ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getISO_Code()); + } + + /** Set EMU Member. + @param IsEMUMember + This currency is member if the European Monetary Union + */ + public void setIsEMUMember (boolean IsEMUMember) + { + set_Value (COLUMNNAME_IsEMUMember, Boolean.valueOf(IsEMUMember)); + } + + /** Get EMU Member. + @return This currency is member if the European Monetary Union + */ + public boolean isEMUMember () + { + Object oo = get_Value(COLUMNNAME_IsEMUMember); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set The Euro Currency. + @param IsEuro + This currency is the Euro + */ + public void setIsEuro (boolean IsEuro) + { + set_Value (COLUMNNAME_IsEuro, Boolean.valueOf(IsEuro)); + } + + /** Get The Euro Currency. + @return This currency is the Euro + */ + public boolean isEuro () + { + Object oo = get_Value(COLUMNNAME_IsEuro); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Standard Precision. + @param StdPrecision + Rule for rounding calculated amounts + */ + public void setStdPrecision (int StdPrecision) + { + set_Value (COLUMNNAME_StdPrecision, Integer.valueOf(StdPrecision)); + } + + /** Get Standard Precision. + @return Rule for rounding calculated amounts + */ + public int getStdPrecision () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StdPrecision); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 c9b80f44a4..a2c5068947 100644 --- a/base/src/org/compiere/model/X_C_Currency_Acct.java +++ b/base/src/org/compiere/model/X_C_Currency_Acct.java @@ -1,191 +1,234 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Currency_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Currency_Acct extends PO + +/** Generated Model for C_Currency_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Currency_Acct extends PO implements I_C_Currency_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Currency_Acct_ID id -@param trxName transaction -*/ -public X_C_Currency_Acct (Properties ctx, int C_Currency_Acct_ID, String trxName) -{ -super (ctx, C_Currency_Acct_ID, trxName); -/** if (C_Currency_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Currency_ID (0); -setRealizedGain_Acct (0); -setRealizedLoss_Acct (0); -setUnrealizedGain_Acct (0); -setUnrealizedLoss_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Currency_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Currency_Acct */ -public static final String Table_Name="C_Currency_Acct"; - -/** AD_Table_ID=638 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Currency_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Realized Gain Acct. -@param RealizedGain_Acct Realized Gain Account */ -public void setRealizedGain_Acct (int RealizedGain_Acct) -{ -set_Value ("RealizedGain_Acct", Integer.valueOf(RealizedGain_Acct)); -} -/** Get Realized Gain Acct. -@return Realized Gain Account */ -public int getRealizedGain_Acct() -{ -Integer ii = (Integer)get_Value("RealizedGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RealizedGain_Acct */ -public static final String COLUMNNAME_RealizedGain_Acct = "RealizedGain_Acct"; -/** Set Realized Loss Acct. -@param RealizedLoss_Acct Realized Loss Account */ -public void setRealizedLoss_Acct (int RealizedLoss_Acct) -{ -set_Value ("RealizedLoss_Acct", Integer.valueOf(RealizedLoss_Acct)); -} -/** Get Realized Loss Acct. -@return Realized Loss Account */ -public int getRealizedLoss_Acct() -{ -Integer ii = (Integer)get_Value("RealizedLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RealizedLoss_Acct */ -public static final String COLUMNNAME_RealizedLoss_Acct = "RealizedLoss_Acct"; -/** Set Unrealized Gain Acct. -@param UnrealizedGain_Acct Unrealized Gain Account for currency revaluation */ -public void setUnrealizedGain_Acct (int UnrealizedGain_Acct) -{ -set_Value ("UnrealizedGain_Acct", Integer.valueOf(UnrealizedGain_Acct)); -} -/** Get Unrealized Gain Acct. -@return Unrealized Gain Account for currency revaluation */ -public int getUnrealizedGain_Acct() -{ -Integer ii = (Integer)get_Value("UnrealizedGain_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnrealizedGain_Acct */ -public static final String COLUMNNAME_UnrealizedGain_Acct = "UnrealizedGain_Acct"; -/** Set Unrealized Loss Acct. -@param UnrealizedLoss_Acct Unrealized Loss Account for currency revaluation */ -public void setUnrealizedLoss_Acct (int UnrealizedLoss_Acct) -{ -set_Value ("UnrealizedLoss_Acct", Integer.valueOf(UnrealizedLoss_Acct)); -} -/** Get Unrealized Loss Acct. -@return Unrealized Loss Account for currency revaluation */ -public int getUnrealizedLoss_Acct() -{ -Integer ii = (Integer)get_Value("UnrealizedLoss_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnrealizedLoss_Acct */ -public static final String COLUMNNAME_UnrealizedLoss_Acct = "UnrealizedLoss_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Currency_Acct (Properties ctx, int C_Currency_Acct_ID, String trxName) + { + super (ctx, C_Currency_Acct_ID, trxName); + /** if (C_Currency_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_Currency_ID (0); + setRealizedGain_Acct (0); + setRealizedLoss_Acct (0); + setUnrealizedGain_Acct (0); + setUnrealizedLoss_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_Currency_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Currency_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Realized Gain Acct. + @param RealizedGain_Acct + Realized Gain Account + */ + public void setRealizedGain_Acct (int RealizedGain_Acct) + { + set_Value (COLUMNNAME_RealizedGain_Acct, Integer.valueOf(RealizedGain_Acct)); + } + + /** Get Realized Gain Acct. + @return Realized Gain Account + */ + public int getRealizedGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RealizedGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Realized Loss Acct. + @param RealizedLoss_Acct + Realized Loss Account + */ + public void setRealizedLoss_Acct (int RealizedLoss_Acct) + { + set_Value (COLUMNNAME_RealizedLoss_Acct, Integer.valueOf(RealizedLoss_Acct)); + } + + /** Get Realized Loss Acct. + @return Realized Loss Account + */ + public int getRealizedLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RealizedLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unrealized Gain Acct. + @param UnrealizedGain_Acct + Unrealized Gain Account for currency revaluation + */ + public void setUnrealizedGain_Acct (int UnrealizedGain_Acct) + { + set_Value (COLUMNNAME_UnrealizedGain_Acct, Integer.valueOf(UnrealizedGain_Acct)); + } + + /** Get Unrealized Gain Acct. + @return Unrealized Gain Account for currency revaluation + */ + public int getUnrealizedGain_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnrealizedGain_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unrealized Loss Acct. + @param UnrealizedLoss_Acct + Unrealized Loss Account for currency revaluation + */ + public void setUnrealizedLoss_Acct (int UnrealizedLoss_Acct) + { + set_Value (COLUMNNAME_UnrealizedLoss_Acct, Integer.valueOf(UnrealizedLoss_Acct)); + } + + /** Get Unrealized Loss Acct. + @return Unrealized Loss Account for currency revaluation + */ + public int getUnrealizedLoss_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnrealizedLoss_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Cycle.java b/base/src/org/compiere/model/X_C_Cycle.java index 0e79db848f..14669f9f76 100644 --- a/base/src/org/compiere/model/X_C_Cycle.java +++ b/base/src/org/compiere/model/X_C_Cycle.java @@ -1,169 +1,189 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Cycle - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Cycle extends PO + +/** Generated Model for C_Cycle + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Cycle extends PO implements I_C_Cycle, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Cycle_ID id -@param trxName transaction -*/ -public X_C_Cycle (Properties ctx, int C_Cycle_ID, String trxName) -{ -super (ctx, C_Cycle_ID, trxName); -/** if (C_Cycle_ID == 0) -{ -setC_Currency_ID (0); -setC_Cycle_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Cycle (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Cycle */ -public static final String Table_Name="C_Cycle"; - -/** AD_Table_ID=432 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Cycle[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Project Cycle. -@param C_Cycle_ID Identifier for this Project Reporting Cycle */ -public void setC_Cycle_ID (int C_Cycle_ID) -{ -if (C_Cycle_ID < 1) throw new IllegalArgumentException ("C_Cycle_ID is mandatory."); -set_ValueNoCheck ("C_Cycle_ID", Integer.valueOf(C_Cycle_ID)); -} -/** Get Project Cycle. -@return Identifier for this Project Reporting Cycle */ -public int getC_Cycle_ID() -{ -Integer ii = (Integer)get_Value("C_Cycle_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Cycle_ID */ -public static final String COLUMNNAME_C_Cycle_ID = "C_Cycle_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Cycle (Properties ctx, int C_Cycle_ID, String trxName) + { + super (ctx, C_Cycle_ID, trxName); + /** if (C_Cycle_ID == 0) { setC_Currency_ID (0); + setC_Cycle_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Cycle (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Cycle[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Cycle. + @param C_Cycle_ID + Identifier for this Project Reporting Cycle + */ + public void setC_Cycle_ID (int C_Cycle_ID) + { + if (C_Cycle_ID < 1) + throw new IllegalArgumentException ("C_Cycle_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, Integer.valueOf(C_Cycle_ID)); + } + + /** Get Project Cycle. + @return Identifier for this Project Reporting Cycle + */ + public int getC_Cycle_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Cycle_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CyclePhase.java b/base/src/org/compiere/model/X_C_CyclePhase.java index 9b5a895704..3e759508ea 100644 --- a/base/src/org/compiere/model/X_C_CyclePhase.java +++ b/base/src/org/compiere/model/X_C_CyclePhase.java @@ -1,123 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CyclePhase - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CyclePhase extends PO + +/** Generated Model for C_CyclePhase + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CyclePhase extends PO implements I_C_CyclePhase, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CyclePhase_ID id -@param trxName transaction -*/ -public X_C_CyclePhase (Properties ctx, int C_CyclePhase_ID, String trxName) -{ -super (ctx, C_CyclePhase_ID, trxName); -/** if (C_CyclePhase_ID == 0) -{ -setC_CycleStep_ID (0); -setC_Phase_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CyclePhase (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CyclePhase */ -public static final String Table_Name="C_CyclePhase"; - -/** AD_Table_ID=433 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CyclePhase[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Cycle Step. -@param C_CycleStep_ID The step for this Cycle */ -public void setC_CycleStep_ID (int C_CycleStep_ID) -{ -if (C_CycleStep_ID < 1) throw new IllegalArgumentException ("C_CycleStep_ID is mandatory."); -set_ValueNoCheck ("C_CycleStep_ID", Integer.valueOf(C_CycleStep_ID)); -} -/** Get Cycle Step. -@return The step for this Cycle */ -public int getC_CycleStep_ID() -{ -Integer ii = (Integer)get_Value("C_CycleStep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CycleStep_ID */ -public static final String COLUMNNAME_C_CycleStep_ID = "C_CycleStep_ID"; -/** Set Standard Phase. -@param C_Phase_ID Standard Phase of the Project Type */ -public void setC_Phase_ID (int C_Phase_ID) -{ -if (C_Phase_ID < 1) throw new IllegalArgumentException ("C_Phase_ID is mandatory."); -set_ValueNoCheck ("C_Phase_ID", Integer.valueOf(C_Phase_ID)); -} -/** Get Standard Phase. -@return Standard Phase of the Project Type */ -public int getC_Phase_ID() -{ -Integer ii = (Integer)get_Value("C_Phase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Phase_ID */ -public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CyclePhase (Properties ctx, int C_CyclePhase_ID, String trxName) + { + super (ctx, C_CyclePhase_ID, trxName); + /** if (C_CyclePhase_ID == 0) { setC_CycleStep_ID (0); + setC_Phase_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_CyclePhase (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CyclePhase[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_CycleStep getI_C_CycleStep() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cycle Step. + @param C_CycleStep_ID + The step for this Cycle + */ + public void setC_CycleStep_ID (int C_CycleStep_ID) + { + if (C_CycleStep_ID < 1) + throw new IllegalArgumentException ("C_CycleStep_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); + } + + /** Get Cycle Step. + @return The step for this Cycle + */ + public int getC_CycleStep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CycleStep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Phase getI_C_Phase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Standard Phase. + @param C_Phase_ID + Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID) + { + if (C_Phase_ID < 1) + throw new IllegalArgumentException ("C_Phase_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + } + + /** Get Standard Phase. + @return Standard Phase of the Project Type + */ + public int getC_Phase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Phase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CycleStep.java b/base/src/org/compiere/model/X_C_CycleStep.java index cde4800e37..3a54c89a3f 100644 --- a/base/src/org/compiere/model/X_C_CycleStep.java +++ b/base/src/org/compiere/model/X_C_CycleStep.java @@ -1,187 +1,213 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_CycleStep - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_CycleStep extends PO + +/** Generated Model for C_CycleStep + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_CycleStep extends PO implements I_C_CycleStep, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_CycleStep_ID id -@param trxName transaction -*/ -public X_C_CycleStep (Properties ctx, int C_CycleStep_ID, String trxName) -{ -super (ctx, C_CycleStep_ID, trxName); -/** if (C_CycleStep_ID == 0) -{ -setC_CycleStep_ID (0); -setC_Cycle_ID (0); -setName (null); -setRelativeWeight (Env.ZERO); // 1 -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_CycleStep WHERE C_Cycle_ID=@C_Cycle_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_CycleStep (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_CycleStep */ -public static final String Table_Name="C_CycleStep"; - -/** AD_Table_ID=590 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_CycleStep[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Cycle Step. -@param C_CycleStep_ID The step for this Cycle */ -public void setC_CycleStep_ID (int C_CycleStep_ID) -{ -if (C_CycleStep_ID < 1) throw new IllegalArgumentException ("C_CycleStep_ID is mandatory."); -set_ValueNoCheck ("C_CycleStep_ID", Integer.valueOf(C_CycleStep_ID)); -} -/** Get Cycle Step. -@return The step for this Cycle */ -public int getC_CycleStep_ID() -{ -Integer ii = (Integer)get_Value("C_CycleStep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CycleStep_ID */ -public static final String COLUMNNAME_C_CycleStep_ID = "C_CycleStep_ID"; -/** Set Project Cycle. -@param C_Cycle_ID Identifier for this Project Reporting Cycle */ -public void setC_Cycle_ID (int C_Cycle_ID) -{ -if (C_Cycle_ID < 1) throw new IllegalArgumentException ("C_Cycle_ID is mandatory."); -set_ValueNoCheck ("C_Cycle_ID", Integer.valueOf(C_Cycle_ID)); -} -/** Get Project Cycle. -@return Identifier for this Project Reporting Cycle */ -public int getC_Cycle_ID() -{ -Integer ii = (Integer)get_Value("C_Cycle_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Cycle_ID */ -public static final String COLUMNNAME_C_Cycle_ID = "C_Cycle_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Relative Weight. -@param RelativeWeight Relative weight of this step (0 = ignored) */ -public void setRelativeWeight (BigDecimal RelativeWeight) -{ -if (RelativeWeight == null) throw new IllegalArgumentException ("RelativeWeight is mandatory."); -set_Value ("RelativeWeight", RelativeWeight); -} -/** Get Relative Weight. -@return Relative weight of this step (0 = ignored) */ -public BigDecimal getRelativeWeight() -{ -BigDecimal bd = (BigDecimal)get_Value("RelativeWeight"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RelativeWeight */ -public static final String COLUMNNAME_RelativeWeight = "RelativeWeight"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CycleStep (Properties ctx, int C_CycleStep_ID, String trxName) + { + super (ctx, C_CycleStep_ID, trxName); + /** if (C_CycleStep_ID == 0) { setC_CycleStep_ID (0); + setC_Cycle_ID (0); + setName (null); + setRelativeWeight (Env.ZERO); +// 1 + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_CycleStep WHERE C_Cycle_ID=@C_Cycle_ID@ +} */ + } + + /** Load Constructor */ + public X_C_CycleStep (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_CycleStep[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Cycle Step. + @param C_CycleStep_ID + The step for this Cycle + */ + public void setC_CycleStep_ID (int C_CycleStep_ID) + { + if (C_CycleStep_ID < 1) + throw new IllegalArgumentException ("C_CycleStep_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CycleStep_ID, Integer.valueOf(C_CycleStep_ID)); + } + + /** Get Cycle Step. + @return The step for this Cycle + */ + public int getC_CycleStep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CycleStep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Cycle getI_C_Cycle() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Cycle. + @param C_Cycle_ID + Identifier for this Project Reporting Cycle + */ + public void setC_Cycle_ID (int C_Cycle_ID) + { + if (C_Cycle_ID < 1) + throw new IllegalArgumentException ("C_Cycle_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Cycle_ID, Integer.valueOf(C_Cycle_ID)); + } + + /** Get Project Cycle. + @return Identifier for this Project Reporting Cycle + */ + public int getC_Cycle_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Cycle_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Relative Weight. + @param RelativeWeight + Relative weight of this step (0 = ignored) + */ + public void setRelativeWeight (BigDecimal RelativeWeight) + { + if (RelativeWeight == null) + throw new IllegalArgumentException ("RelativeWeight is mandatory."); + set_Value (COLUMNNAME_RelativeWeight, RelativeWeight); + } + + /** Get Relative Weight. + @return Relative weight of this step (0 = ignored) + */ + public BigDecimal getRelativeWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RelativeWeight); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DocType.java b/base/src/org/compiere/model/X_C_DocType.java index a4b3759d5f..494b67cd9e 100644 --- a/base/src/org/compiere/model/X_C_DocType.java +++ b/base/src/org/compiere/model/X_C_DocType.java @@ -1,712 +1,798 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_DocType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_DocType extends PO + +/** Generated Model for C_DocType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_DocType extends PO implements I_C_DocType, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_DocType_ID id -@param trxName transaction -*/ -public X_C_DocType (Properties ctx, int C_DocType_ID, String trxName) -{ -super (ctx, C_DocType_ID, trxName); -/** if (C_DocType_ID == 0) -{ -setC_DocType_ID (0); -setDocBaseType (null); -setDocumentCopies (0); // 1 -setGL_Category_ID (0); -setHasCharges (false); -setIsCreateCounter (true); // Y -setIsDefault (false); -setIsDefaultCounterDoc (false); -setIsDocNoControlled (true); // Y -setIsInTransit (false); -setIsIndexed (false); -setIsPickQAConfirm (false); -setIsSOTrx (false); -setIsShipConfirm (false); -setIsSplitWhenDifference (false); // N -setName (null); -setPrintName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_DocType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_DocType */ -public static final String Table_Name="C_DocType"; - -/** AD_Table_ID=217 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_DocType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID <= 0) set_Value ("AD_PrintFormat_ID", null); - else -set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DocType (Properties ctx, int C_DocType_ID, String trxName) + { + super (ctx, C_DocType_ID, trxName); + /** if (C_DocType_ID == 0) { setC_DocType_ID (0); + setDocBaseType (null); + setDocumentCopies (0); +// 1 + setGL_Category_ID (0); + setHasCharges (false); + setIsCreateCounter (true); +// Y + setIsDefault (false); + setIsDefaultCounterDoc (false); + setIsDocNoControlled (true); +// Y + setIsInTransit (false); + setIsIndexed (false); + setIsPickQAConfirm (false); + setIsSOTrx (false); + setIsShipConfirm (false); + setIsSplitWhenDifference (false); +// N + setName (null); + setPrintName (null); +} */ + } + + /** Load Constructor */ + public X_C_DocType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_DocType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeDifference_ID AD_Reference_ID=170 */ public static final int C_DOCTYPEDIFFERENCE_ID_AD_Reference_ID=170; -/** Set Difference Document. -@param C_DocTypeDifference_ID Document type for generating in dispute Shipments */ -public void setC_DocTypeDifference_ID (int C_DocTypeDifference_ID) -{ -if (C_DocTypeDifference_ID <= 0) set_Value ("C_DocTypeDifference_ID", null); - else -set_Value ("C_DocTypeDifference_ID", Integer.valueOf(C_DocTypeDifference_ID)); -} -/** Get Difference Document. -@return Document type for generating in dispute Shipments */ -public int getC_DocTypeDifference_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeDifference_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeDifference_ID */ -public static final String COLUMNNAME_C_DocTypeDifference_ID = "C_DocTypeDifference_ID"; + /** Set Difference Document. + @param C_DocTypeDifference_ID + Document type for generating in dispute Shipments + */ + public void setC_DocTypeDifference_ID (int C_DocTypeDifference_ID) + { + if (C_DocTypeDifference_ID <= 0) set_Value (COLUMNNAME_C_DocTypeDifference_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeDifference_ID, Integer.valueOf(C_DocTypeDifference_ID)); + } + + /** Get Difference Document. + @return Document type for generating in dispute Shipments + */ + public int getC_DocTypeDifference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeDifference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeInvoice_ID AD_Reference_ID=170 */ public static final int C_DOCTYPEINVOICE_ID_AD_Reference_ID=170; -/** Set Document Type for Invoice. -@param C_DocTypeInvoice_ID Document type used for invoices generated from this sales document */ -public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID) -{ -if (C_DocTypeInvoice_ID <= 0) set_Value ("C_DocTypeInvoice_ID", null); - else -set_Value ("C_DocTypeInvoice_ID", Integer.valueOf(C_DocTypeInvoice_ID)); -} -/** Get Document Type for Invoice. -@return Document type used for invoices generated from this sales document */ -public int getC_DocTypeInvoice_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeInvoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeInvoice_ID */ -public static final String COLUMNNAME_C_DocTypeInvoice_ID = "C_DocTypeInvoice_ID"; + /** Set Document Type for Invoice. + @param C_DocTypeInvoice_ID + Document type used for invoices generated from this sales document + */ + public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID) + { + if (C_DocTypeInvoice_ID <= 0) set_Value (COLUMNNAME_C_DocTypeInvoice_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeInvoice_ID, Integer.valueOf(C_DocTypeInvoice_ID)); + } + + /** Get Document Type for Invoice. + @return Document type used for invoices generated from this sales document + */ + public int getC_DocTypeInvoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeInvoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeProforma_ID AD_Reference_ID=170 */ public static final int C_DOCTYPEPROFORMA_ID_AD_Reference_ID=170; -/** Set Document Type for ProForma. -@param C_DocTypeProforma_ID Document type used for pro forma invoices generated from this sales document */ -public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID) -{ -if (C_DocTypeProforma_ID <= 0) set_Value ("C_DocTypeProforma_ID", null); - else -set_Value ("C_DocTypeProforma_ID", Integer.valueOf(C_DocTypeProforma_ID)); -} -/** Get Document Type for ProForma. -@return Document type used for pro forma invoices generated from this sales document */ -public int getC_DocTypeProforma_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeProforma_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeProforma_ID */ -public static final String COLUMNNAME_C_DocTypeProforma_ID = "C_DocTypeProforma_ID"; + /** Set Document Type for ProForma. + @param C_DocTypeProforma_ID + Document type used for pro forma invoices generated from this sales document + */ + public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID) + { + if (C_DocTypeProforma_ID <= 0) set_Value (COLUMNNAME_C_DocTypeProforma_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeProforma_ID, Integer.valueOf(C_DocTypeProforma_ID)); + } + + /** Get Document Type for ProForma. + @return Document type used for pro forma invoices generated from this sales document + */ + public int getC_DocTypeProforma_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeProforma_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeShipment_ID AD_Reference_ID=170 */ public static final int C_DOCTYPESHIPMENT_ID_AD_Reference_ID=170; -/** Set Document Type for Shipment. -@param C_DocTypeShipment_ID Document type used for shipments generated from this sales document */ -public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID) -{ -if (C_DocTypeShipment_ID <= 0) set_Value ("C_DocTypeShipment_ID", null); - else -set_Value ("C_DocTypeShipment_ID", Integer.valueOf(C_DocTypeShipment_ID)); -} -/** Get Document Type for Shipment. -@return Document type used for shipments generated from this sales document */ -public int getC_DocTypeShipment_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeShipment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeShipment_ID */ -public static final String COLUMNNAME_C_DocTypeShipment_ID = "C_DocTypeShipment_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_ValueNoCheck ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Document Type for Shipment. + @param C_DocTypeShipment_ID + Document type used for shipments generated from this sales document + */ + public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID) + { + if (C_DocTypeShipment_ID <= 0) set_Value (COLUMNNAME_C_DocTypeShipment_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeShipment_ID, Integer.valueOf(C_DocTypeShipment_ID)); + } + + /** Get Document Type for Shipment. + @return Document type used for shipments generated from this sales document + */ + public int getC_DocTypeShipment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeShipment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocBaseType AD_Reference_ID=183 */ -public static final int DOCBASETYPE_AD_Reference_ID=183; -/** AP Credit Memo = APC */ -public static final String DOCBASETYPE_APCreditMemo = "APC"; -/** AP Invoice = API */ -public static final String DOCBASETYPE_APInvoice = "API"; -/** AP Payment = APP */ -public static final String DOCBASETYPE_APPayment = "APP"; -/** AR Credit Memo = ARC */ -public static final String DOCBASETYPE_ARCreditMemo = "ARC"; -/** AR Pro Forma Invoice = ARF */ -public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; -/** AR Invoice = ARI */ -public static final String DOCBASETYPE_ARInvoice = "ARI"; -/** AR Receipt = ARR */ -public static final String DOCBASETYPE_ARReceipt = "ARR"; -/** Payment Allocation = CMA */ -public static final String DOCBASETYPE_PaymentAllocation = "CMA"; -/** Bank Statement = CMB */ -public static final String DOCBASETYPE_BankStatement = "CMB"; -/** Cash Journal = CMC */ -public static final String DOCBASETYPE_CashJournal = "CMC"; -/** GL Document = GLD */ -public static final String DOCBASETYPE_GLDocument = "GLD"; -/** GL Journal = GLJ */ -public static final String DOCBASETYPE_GLJournal = "GLJ"; -/** Material Physical Inventory = MMI */ -public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; -/** Material Movement = MMM */ -public static final String DOCBASETYPE_MaterialMovement = "MMM"; -/** Material Production = MMP */ -public static final String DOCBASETYPE_MaterialProduction = "MMP"; -/** Material Receipt = MMR */ -public static final String DOCBASETYPE_MaterialReceipt = "MMR"; -/** Material Delivery = MMS */ -public static final String DOCBASETYPE_MaterialDelivery = "MMS"; -/** Match Invoice = MXI */ -public static final String DOCBASETYPE_MatchInvoice = "MXI"; -/** Match PO = MXP */ -public static final String DOCBASETYPE_MatchPO = "MXP"; -/** Project Issue = PJI */ -public static final String DOCBASETYPE_ProjectIssue = "PJI"; -/** Purchase Order = POO */ -public static final String DOCBASETYPE_PurchaseOrder = "POO"; -/** Purchase Requisition = POR */ -public static final String DOCBASETYPE_PurchaseRequisition = "POR"; -/** Sales Order = SOO */ +public static final int DOCBASETYPE_AD_Reference_ID=183;/** AP Credit Memo = APC */ +public static final String DOCBASETYPE_APCreditMemo = "APC";/** AP Invoice = API */ +public static final String DOCBASETYPE_APInvoice = "API";/** AP Payment = APP */ +public static final String DOCBASETYPE_APPayment = "APP";/** AR Credit Memo = ARC */ +public static final String DOCBASETYPE_ARCreditMemo = "ARC";/** AR Pro Forma Invoice = ARF */ +public static final String DOCBASETYPE_ARProFormaInvoice = "ARF";/** AR Invoice = ARI */ +public static final String DOCBASETYPE_ARInvoice = "ARI";/** AR Receipt = ARR */ +public static final String DOCBASETYPE_ARReceipt = "ARR";/** Payment Allocation = CMA */ +public static final String DOCBASETYPE_PaymentAllocation = "CMA";/** Bank Statement = CMB */ +public static final String DOCBASETYPE_BankStatement = "CMB";/** Cash Journal = CMC */ +public static final String DOCBASETYPE_CashJournal = "CMC";/** GL Document = GLD */ +public static final String DOCBASETYPE_GLDocument = "GLD";/** GL Journal = GLJ */ +public static final String DOCBASETYPE_GLJournal = "GLJ";/** Material Physical Inventory = MMI */ +public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI";/** Material Movement = MMM */ +public static final String DOCBASETYPE_MaterialMovement = "MMM";/** Material Production = MMP */ +public static final String DOCBASETYPE_MaterialProduction = "MMP";/** Material Receipt = MMR */ +public static final String DOCBASETYPE_MaterialReceipt = "MMR";/** Material Delivery = MMS */ +public static final String DOCBASETYPE_MaterialDelivery = "MMS";/** Match Invoice = MXI */ +public static final String DOCBASETYPE_MatchInvoice = "MXI";/** Match PO = MXP */ +public static final String DOCBASETYPE_MatchPO = "MXP";/** Project Issue = PJI */ +public static final String DOCBASETYPE_ProjectIssue = "PJI";/** Purchase Order = POO */ +public static final String DOCBASETYPE_PurchaseOrder = "POO";/** Purchase Requisition = POR */ +public static final String DOCBASETYPE_PurchaseRequisition = "POR";/** Sales Order = SOO */ public static final String DOCBASETYPE_SalesOrder = "SOO"; -/** Set Document BaseType. -@param DocBaseType Logical type of document */ -public void setDocBaseType (String DocBaseType) -{ -if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); -if (DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); - else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); -if (DocBaseType.length() > 3) -{ -log.warning("Length > 3 - truncated"); -DocBaseType = DocBaseType.substring(0,2); -} -set_Value ("DocBaseType", DocBaseType); -} -/** Get Document BaseType. -@return Logical type of document */ -public String getDocBaseType() -{ -return (String)get_Value("DocBaseType"); -} -/** Column name DocBaseType */ -public static final String COLUMNNAME_DocBaseType = "DocBaseType"; + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { +if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory");if (DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); if (DocBaseType.length() > 3) + { + log.warning("Length > 3 - truncated"); + DocBaseType = DocBaseType.substring(0, 2); + } + set_Value (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } /** DocNoSequence_ID AD_Reference_ID=128 */ public static final int DOCNOSEQUENCE_ID_AD_Reference_ID=128; -/** Set Document Sequence. -@param DocNoSequence_ID Document sequence determines the numbering of documents */ -public void setDocNoSequence_ID (int DocNoSequence_ID) -{ -if (DocNoSequence_ID <= 0) set_Value ("DocNoSequence_ID", null); - else -set_Value ("DocNoSequence_ID", Integer.valueOf(DocNoSequence_ID)); -} -/** Get Document Sequence. -@return Document sequence determines the numbering of documents */ -public int getDocNoSequence_ID() -{ -Integer ii = (Integer)get_Value("DocNoSequence_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DocNoSequence_ID */ -public static final String COLUMNNAME_DocNoSequence_ID = "DocNoSequence_ID"; + /** Set Document Sequence. + @param DocNoSequence_ID + Document sequence determines the numbering of documents + */ + public void setDocNoSequence_ID (int DocNoSequence_ID) + { + if (DocNoSequence_ID <= 0) set_Value (COLUMNNAME_DocNoSequence_ID, null); + else + set_Value (COLUMNNAME_DocNoSequence_ID, Integer.valueOf(DocNoSequence_ID)); + } + + /** Get Document Sequence. + @return Document sequence determines the numbering of documents + */ + public int getDocNoSequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocNoSequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** DocSubTypeSO AD_Reference_ID=148 */ -public static final int DOCSUBTYPESO_AD_Reference_ID=148; -/** Quotation = OB */ -public static final String DOCSUBTYPESO_Quotation = "OB"; -/** Proposal = ON */ -public static final String DOCSUBTYPESO_Proposal = "ON"; -/** Prepay Order = PR */ -public static final String DOCSUBTYPESO_PrepayOrder = "PR"; -/** Return Material = RM */ -public static final String DOCSUBTYPESO_ReturnMaterial = "RM"; -/** Standard Order = SO */ -public static final String DOCSUBTYPESO_StandardOrder = "SO"; -/** On Credit Order = WI */ -public static final String DOCSUBTYPESO_OnCreditOrder = "WI"; -/** Warehouse Order = WP */ -public static final String DOCSUBTYPESO_WarehouseOrder = "WP"; -/** POS Order = WR */ +public static final int DOCSUBTYPESO_AD_Reference_ID=148;/** Quotation = OB */ +public static final String DOCSUBTYPESO_Quotation = "OB";/** Proposal = ON */ +public static final String DOCSUBTYPESO_Proposal = "ON";/** Prepay Order = PR */ +public static final String DOCSUBTYPESO_PrepayOrder = "PR";/** Return Material = RM */ +public static final String DOCSUBTYPESO_ReturnMaterial = "RM";/** Standard Order = SO */ +public static final String DOCSUBTYPESO_StandardOrder = "SO";/** On Credit Order = WI */ +public static final String DOCSUBTYPESO_OnCreditOrder = "WI";/** Warehouse Order = WP */ +public static final String DOCSUBTYPESO_WarehouseOrder = "WP";/** POS Order = WR */ public static final String DOCSUBTYPESO_POSOrder = "WR"; -/** Set SO Sub Type. -@param DocSubTypeSO Sales Order Sub Type */ -public void setDocSubTypeSO (String DocSubTypeSO) -{ -if (DocSubTypeSO == null || DocSubTypeSO.equals("OB") || DocSubTypeSO.equals("ON") || DocSubTypeSO.equals("PR") || DocSubTypeSO.equals("RM") || DocSubTypeSO.equals("SO") || DocSubTypeSO.equals("WI") || DocSubTypeSO.equals("WP") || DocSubTypeSO.equals("WR")); - else throw new IllegalArgumentException ("DocSubTypeSO Invalid value - " + DocSubTypeSO + " - Reference_ID=148 - OB - ON - PR - RM - SO - WI - WP - WR"); -if (DocSubTypeSO != null && DocSubTypeSO.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocSubTypeSO = DocSubTypeSO.substring(0,1); -} -set_Value ("DocSubTypeSO", DocSubTypeSO); -} -/** Get SO Sub Type. -@return Sales Order Sub Type */ -public String getDocSubTypeSO() -{ -return (String)get_Value("DocSubTypeSO"); -} -/** Column name DocSubTypeSO */ -public static final String COLUMNNAME_DocSubTypeSO = "DocSubTypeSO"; -/** Set Document Copies. -@param DocumentCopies Number of copies to be printed */ -public void setDocumentCopies (int DocumentCopies) -{ -set_Value ("DocumentCopies", Integer.valueOf(DocumentCopies)); -} -/** Get Document Copies. -@return Number of copies to be printed */ -public int getDocumentCopies() -{ -Integer ii = (Integer)get_Value("DocumentCopies"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DocumentCopies */ -public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; -/** Set Document Note. -@param DocumentNote Additional information for a Document */ -public void setDocumentNote (String DocumentNote) -{ -if (DocumentNote != null && DocumentNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DocumentNote = DocumentNote.substring(0,1999); -} -set_Value ("DocumentNote", DocumentNote); -} -/** Get Document Note. -@return Additional information for a Document */ -public String getDocumentNote() -{ -return (String)get_Value("DocumentNote"); -} -/** Column name DocumentNote */ -public static final String COLUMNNAME_DocumentNote = "DocumentNote"; -/** Set GL Category. -@param GL_Category_ID General Ledger Category */ -public void setGL_Category_ID (int GL_Category_ID) -{ -if (GL_Category_ID < 1) throw new IllegalArgumentException ("GL_Category_ID is mandatory."); -set_Value ("GL_Category_ID", Integer.valueOf(GL_Category_ID)); -} -/** Get GL Category. -@return General Ledger Category */ -public int getGL_Category_ID() -{ -Integer ii = (Integer)get_Value("GL_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Category_ID */ -public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; -/** Set Charges. -@param HasCharges Charges can be added to the document */ -public void setHasCharges (boolean HasCharges) -{ -set_Value ("HasCharges", Boolean.valueOf(HasCharges)); -} -/** Get Charges. -@return Charges can be added to the document */ -public boolean isHasCharges() -{ -Object oo = get_Value("HasCharges"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasCharges */ -public static final String COLUMNNAME_HasCharges = "HasCharges"; -/** Set Pro forma Invoice. -@param HasProforma Indicates if Pro Forma Invoices can be generated from this document */ -public void setHasProforma (boolean HasProforma) -{ -set_Value ("HasProforma", Boolean.valueOf(HasProforma)); -} -/** Get Pro forma Invoice. -@return Indicates if Pro Forma Invoices can be generated from this document */ -public boolean isHasProforma() -{ -Object oo = get_Value("HasProforma"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name HasProforma */ -public static final String COLUMNNAME_HasProforma = "HasProforma"; -/** Set Create Counter Document. -@param IsCreateCounter Create Counter Document */ -public void setIsCreateCounter (boolean IsCreateCounter) -{ -set_Value ("IsCreateCounter", Boolean.valueOf(IsCreateCounter)); -} -/** Get Create Counter Document. -@return Create Counter Document */ -public boolean isCreateCounter() -{ -Object oo = get_Value("IsCreateCounter"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreateCounter */ -public static final String COLUMNNAME_IsCreateCounter = "IsCreateCounter"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Default Counter Document. -@param IsDefaultCounterDoc The document type is the default counter document type */ -public void setIsDefaultCounterDoc (boolean IsDefaultCounterDoc) -{ -set_Value ("IsDefaultCounterDoc", Boolean.valueOf(IsDefaultCounterDoc)); -} -/** Get Default Counter Document. -@return The document type is the default counter document type */ -public boolean isDefaultCounterDoc() -{ -Object oo = get_Value("IsDefaultCounterDoc"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefaultCounterDoc */ -public static final String COLUMNNAME_IsDefaultCounterDoc = "IsDefaultCounterDoc"; -/** Set Document is Number Controlled. -@param IsDocNoControlled The document has a document sequence */ -public void setIsDocNoControlled (boolean IsDocNoControlled) -{ -set_Value ("IsDocNoControlled", Boolean.valueOf(IsDocNoControlled)); -} -/** Get Document is Number Controlled. -@return The document has a document sequence */ -public boolean isDocNoControlled() -{ -Object oo = get_Value("IsDocNoControlled"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDocNoControlled */ -public static final String COLUMNNAME_IsDocNoControlled = "IsDocNoControlled"; -/** Set In Transit. -@param IsInTransit Movement is in transit */ -public void setIsInTransit (boolean IsInTransit) -{ -set_Value ("IsInTransit", Boolean.valueOf(IsInTransit)); -} -/** Get In Transit. -@return Movement is in transit */ -public boolean isInTransit() -{ -Object oo = get_Value("IsInTransit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInTransit */ -public static final String COLUMNNAME_IsInTransit = "IsInTransit"; -/** Set Indexed. -@param IsIndexed Index the document for the internal search engine */ -public void setIsIndexed (boolean IsIndexed) -{ -set_Value ("IsIndexed", Boolean.valueOf(IsIndexed)); -} -/** Get Indexed. -@return Index the document for the internal search engine */ -public boolean isIndexed() -{ -Object oo = get_Value("IsIndexed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsIndexed */ -public static final String COLUMNNAME_IsIndexed = "IsIndexed"; -/** Set Pick/QA Confirmation. -@param IsPickQAConfirm Require Pick or QA Confirmation before processing */ -public void setIsPickQAConfirm (boolean IsPickQAConfirm) -{ -set_Value ("IsPickQAConfirm", Boolean.valueOf(IsPickQAConfirm)); -} -/** Get Pick/QA Confirmation. -@return Require Pick or QA Confirmation before processing */ -public boolean isPickQAConfirm() -{ -Object oo = get_Value("IsPickQAConfirm"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPickQAConfirm */ -public static final String COLUMNNAME_IsPickQAConfirm = "IsPickQAConfirm"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Ship/Receipt Confirmation. -@param IsShipConfirm Require Ship or Receipt Confirmation before processing */ -public void setIsShipConfirm (boolean IsShipConfirm) -{ -set_Value ("IsShipConfirm", Boolean.valueOf(IsShipConfirm)); -} -/** Get Ship/Receipt Confirmation. -@return Require Ship or Receipt Confirmation before processing */ -public boolean isShipConfirm() -{ -Object oo = get_Value("IsShipConfirm"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsShipConfirm */ -public static final String COLUMNNAME_IsShipConfirm = "IsShipConfirm"; -/** Set Split when Difference. -@param IsSplitWhenDifference Split document when there is a difference */ -public void setIsSplitWhenDifference (boolean IsSplitWhenDifference) -{ -set_Value ("IsSplitWhenDifference", Boolean.valueOf(IsSplitWhenDifference)); -} -/** Get Split when Difference. -@return Split document when there is a difference */ -public boolean isSplitWhenDifference() -{ -Object oo = get_Value("IsSplitWhenDifference"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSplitWhenDifference */ -public static final String COLUMNNAME_IsSplitWhenDifference = "IsSplitWhenDifference"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Print Text. -@param PrintName The label text to be printed on a document or correspondence. */ -public void setPrintName (String PrintName) -{ -if (PrintName == null) throw new IllegalArgumentException ("PrintName is mandatory."); -if (PrintName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PrintName = PrintName.substring(0,59); -} -set_Value ("PrintName", PrintName); -} -/** Get Print Text. -@return The label text to be printed on a document or correspondence. */ -public String getPrintName() -{ -return (String)get_Value("PrintName"); -} -/** Column name PrintName */ -public static final String COLUMNNAME_PrintName = "PrintName"; -} + /** Set SO Sub Type. + @param DocSubTypeSO + Sales Order Sub Type + */ + public void setDocSubTypeSO (String DocSubTypeSO) + { +if (DocSubTypeSO == null || DocSubTypeSO.equals("OB") || DocSubTypeSO.equals("ON") || DocSubTypeSO.equals("PR") || DocSubTypeSO.equals("RM") || DocSubTypeSO.equals("SO") || DocSubTypeSO.equals("WI") || DocSubTypeSO.equals("WP") || DocSubTypeSO.equals("WR")); else throw new IllegalArgumentException ("DocSubTypeSO Invalid value - " + DocSubTypeSO + " - Reference_ID=148 - OB - ON - PR - RM - SO - WI - WP - WR"); if (DocSubTypeSO != null && DocSubTypeSO.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocSubTypeSO = DocSubTypeSO.substring(0, 1); + } + set_Value (COLUMNNAME_DocSubTypeSO, DocSubTypeSO); + } + + /** Get SO Sub Type. + @return Sales Order Sub Type + */ + public String getDocSubTypeSO () + { + return (String)get_Value(COLUMNNAME_DocSubTypeSO); + } + + /** Set Document Copies. + @param DocumentCopies + Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies) + { + set_Value (COLUMNNAME_DocumentCopies, Integer.valueOf(DocumentCopies)); + } + + /** Get Document Copies. + @return Number of copies to be printed + */ + public int getDocumentCopies () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocumentCopies); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 1999); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + public I_GL_Category getI_GL_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + throw new IllegalArgumentException ("GL_Category_ID is mandatory."); + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charges. + @param HasCharges + Charges can be added to the document + */ + public void setHasCharges (boolean HasCharges) + { + set_Value (COLUMNNAME_HasCharges, Boolean.valueOf(HasCharges)); + } + + /** Get Charges. + @return Charges can be added to the document + */ + public boolean isHasCharges () + { + Object oo = get_Value(COLUMNNAME_HasCharges); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pro forma Invoice. + @param HasProforma + Indicates if Pro Forma Invoices can be generated from this document + */ + public void setHasProforma (boolean HasProforma) + { + set_Value (COLUMNNAME_HasProforma, Boolean.valueOf(HasProforma)); + } + + /** Get Pro forma Invoice. + @return Indicates if Pro Forma Invoices can be generated from this document + */ + public boolean isHasProforma () + { + Object oo = get_Value(COLUMNNAME_HasProforma); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Create Counter Document. + @param IsCreateCounter + Create Counter Document + */ + public void setIsCreateCounter (boolean IsCreateCounter) + { + set_Value (COLUMNNAME_IsCreateCounter, Boolean.valueOf(IsCreateCounter)); + } + + /** Get Create Counter Document. + @return Create Counter Document + */ + public boolean isCreateCounter () + { + Object oo = get_Value(COLUMNNAME_IsCreateCounter); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default Counter Document. + @param IsDefaultCounterDoc + The document type is the default counter document type + */ + public void setIsDefaultCounterDoc (boolean IsDefaultCounterDoc) + { + set_Value (COLUMNNAME_IsDefaultCounterDoc, Boolean.valueOf(IsDefaultCounterDoc)); + } + + /** Get Default Counter Document. + @return The document type is the default counter document type + */ + public boolean isDefaultCounterDoc () + { + Object oo = get_Value(COLUMNNAME_IsDefaultCounterDoc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Document is Number Controlled. + @param IsDocNoControlled + The document has a document sequence + */ + public void setIsDocNoControlled (boolean IsDocNoControlled) + { + set_Value (COLUMNNAME_IsDocNoControlled, Boolean.valueOf(IsDocNoControlled)); + } + + /** Get Document is Number Controlled. + @return The document has a document sequence + */ + public boolean isDocNoControlled () + { + Object oo = get_Value(COLUMNNAME_IsDocNoControlled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Indexed. + @param IsIndexed + Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed) + { + set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); + } + + /** Get Indexed. + @return Index the document for the internal search engine + */ + public boolean isIndexed () + { + Object oo = get_Value(COLUMNNAME_IsIndexed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pick/QA Confirmation. + @param IsPickQAConfirm + Require Pick or QA Confirmation before processing + */ + public void setIsPickQAConfirm (boolean IsPickQAConfirm) + { + set_Value (COLUMNNAME_IsPickQAConfirm, Boolean.valueOf(IsPickQAConfirm)); + } + + /** Get Pick/QA Confirmation. + @return Require Pick or QA Confirmation before processing + */ + public boolean isPickQAConfirm () + { + Object oo = get_Value(COLUMNNAME_IsPickQAConfirm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship/Receipt Confirmation. + @param IsShipConfirm + Require Ship or Receipt Confirmation before processing + */ + public void setIsShipConfirm (boolean IsShipConfirm) + { + set_Value (COLUMNNAME_IsShipConfirm, Boolean.valueOf(IsShipConfirm)); + } + + /** Get Ship/Receipt Confirmation. + @return Require Ship or Receipt Confirmation before processing + */ + public boolean isShipConfirm () + { + Object oo = get_Value(COLUMNNAME_IsShipConfirm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Split when Difference. + @param IsSplitWhenDifference + Split document when there is a difference + */ + public void setIsSplitWhenDifference (boolean IsSplitWhenDifference) + { + set_Value (COLUMNNAME_IsSplitWhenDifference, Boolean.valueOf(IsSplitWhenDifference)); + } + + /** Get Split when Difference. + @return Split document when there is a difference + */ + public boolean isSplitWhenDifference () + { + Object oo = get_Value(COLUMNNAME_IsSplitWhenDifference); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Print Text. + @param PrintName + The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName) + { + if (PrintName == null) + throw new IllegalArgumentException ("PrintName is mandatory."); + if (PrintName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrintName = PrintName.substring(0, 59); + } + set_Value (COLUMNNAME_PrintName, PrintName); + } + + /** Get Print Text. + @return The label text to be printed on a document or correspondence. + */ + public String getPrintName () + { + return (String)get_Value(COLUMNNAME_PrintName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DocTypeCounter.java b/base/src/org/compiere/model/X_C_DocTypeCounter.java index bc9fc6af57..51dd869185 100644 --- a/base/src/org/compiere/model/X_C_DocTypeCounter.java +++ b/base/src/org/compiere/model/X_C_DocTypeCounter.java @@ -1,304 +1,324 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_DocTypeCounter - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_DocTypeCounter extends PO + +/** Generated Model for C_DocTypeCounter + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_DocTypeCounter extends PO implements I_C_DocTypeCounter, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_DocTypeCounter_ID id -@param trxName transaction -*/ -public X_C_DocTypeCounter (Properties ctx, int C_DocTypeCounter_ID, String trxName) -{ -super (ctx, C_DocTypeCounter_ID, trxName); -/** if (C_DocTypeCounter_ID == 0) -{ -setC_DocTypeCounter_ID (0); -setC_DocType_ID (0); -setCounter_C_DocType_ID (0); -setIsCreateCounter (true); // Y -setIsValid (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_DocTypeCounter (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_DocTypeCounter */ -public static final String Table_Name="C_DocTypeCounter"; - -/** AD_Table_ID=718 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_DocTypeCounter[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Counter Document. -@param C_DocTypeCounter_ID Counter Document Relationship */ -public void setC_DocTypeCounter_ID (int C_DocTypeCounter_ID) -{ -if (C_DocTypeCounter_ID < 1) throw new IllegalArgumentException ("C_DocTypeCounter_ID is mandatory."); -set_ValueNoCheck ("C_DocTypeCounter_ID", Integer.valueOf(C_DocTypeCounter_ID)); -} -/** Get Counter Document. -@return Counter Document Relationship */ -public int getC_DocTypeCounter_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeCounter_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeCounter_ID */ -public static final String COLUMNNAME_C_DocTypeCounter_ID = "C_DocTypeCounter_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DocTypeCounter (Properties ctx, int C_DocTypeCounter_ID, String trxName) + { + super (ctx, C_DocTypeCounter_ID, trxName); + /** if (C_DocTypeCounter_ID == 0) { setC_DocTypeCounter_ID (0); + setC_DocType_ID (0); + setCounter_C_DocType_ID (0); + setIsCreateCounter (true); +// Y + setIsValid (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_DocTypeCounter (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_DocTypeCounter[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Counter Document. + @param C_DocTypeCounter_ID + Counter Document Relationship + */ + public void setC_DocTypeCounter_ID (int C_DocTypeCounter_ID) + { + if (C_DocTypeCounter_ID < 1) + throw new IllegalArgumentException ("C_DocTypeCounter_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocTypeCounter_ID, Integer.valueOf(C_DocTypeCounter_ID)); + } + + /** Get Counter Document. + @return Counter Document Relationship + */ + public int getC_DocTypeCounter_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeCounter_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Counter_C_DocType_ID AD_Reference_ID=170 */ public static final int COUNTER_C_DOCTYPE_ID_AD_Reference_ID=170; -/** Set Counter Document Type. -@param Counter_C_DocType_ID Generated Counter Document Type (To) */ -public void setCounter_C_DocType_ID (int Counter_C_DocType_ID) -{ -if (Counter_C_DocType_ID < 1) throw new IllegalArgumentException ("Counter_C_DocType_ID is mandatory."); -set_Value ("Counter_C_DocType_ID", Integer.valueOf(Counter_C_DocType_ID)); -} -/** Get Counter Document Type. -@return Generated Counter Document Type (To) */ -public int getCounter_C_DocType_ID() -{ -Integer ii = (Integer)get_Value("Counter_C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Counter_C_DocType_ID */ -public static final String COLUMNNAME_Counter_C_DocType_ID = "Counter_C_DocType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Counter Document Type. + @param Counter_C_DocType_ID + Generated Counter Document Type (To) + */ + public void setCounter_C_DocType_ID (int Counter_C_DocType_ID) + { + if (Counter_C_DocType_ID < 1) + throw new IllegalArgumentException ("Counter_C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_Counter_C_DocType_ID, Integer.valueOf(Counter_C_DocType_ID)); + } + + /** Get Counter Document Type. + @return Generated Counter Document Type (To) + */ + public int getCounter_C_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Counter_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null || DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction != null && DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; -/** Set Create Counter Document. -@param IsCreateCounter Create Counter Document */ -public void setIsCreateCounter (boolean IsCreateCounter) -{ -set_Value ("IsCreateCounter", Boolean.valueOf(IsCreateCounter)); -} -/** Get Create Counter Document. -@return Create Counter Document */ -public boolean isCreateCounter() -{ -Object oo = get_Value("IsCreateCounter"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreateCounter */ -public static final String COLUMNNAME_IsCreateCounter = "IsCreateCounter"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null || DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction != null && DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** Set Create Counter Document. + @param IsCreateCounter + Create Counter Document + */ + public void setIsCreateCounter (boolean IsCreateCounter) + { + set_Value (COLUMNNAME_IsCreateCounter, Boolean.valueOf(IsCreateCounter)); + } + + /** Get Create Counter Document. + @return Create Counter Document + */ + public boolean isCreateCounter () + { + Object oo = get_Value(COLUMNNAME_IsCreateCounter); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Dunning.java b/base/src/org/compiere/model/X_C_Dunning.java index 58d5009bf3..fb0d4ba77b 100644 --- a/base/src/org/compiere/model/X_C_Dunning.java +++ b/base/src/org/compiere/model/X_C_Dunning.java @@ -1,214 +1,225 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Dunning - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Dunning extends PO + +/** Generated Model for C_Dunning + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Dunning extends PO implements I_C_Dunning, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Dunning_ID id -@param trxName transaction -*/ -public X_C_Dunning (Properties ctx, int C_Dunning_ID, String trxName) -{ -super (ctx, C_Dunning_ID, trxName); -/** if (C_Dunning_ID == 0) -{ -setC_Dunning_ID (0); -setCreateLevelsSequentially (false); -setIsDefault (false); -setName (null); -setSendDunningLetter (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Dunning (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Dunning */ -public static final String Table_Name="C_Dunning"; - -/** AD_Table_ID=301 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Dunning[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Dunning. -@param C_Dunning_ID Dunning Rules for overdue invoices */ -public void setC_Dunning_ID (int C_Dunning_ID) -{ -if (C_Dunning_ID < 1) throw new IllegalArgumentException ("C_Dunning_ID is mandatory."); -set_ValueNoCheck ("C_Dunning_ID", Integer.valueOf(C_Dunning_ID)); -} -/** Get Dunning. -@return Dunning Rules for overdue invoices */ -public int getC_Dunning_ID() -{ -Integer ii = (Integer)get_Value("C_Dunning_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Dunning_ID */ -public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; -/** Set Create levels sequentially. -@param CreateLevelsSequentially Create Dunning Letter by level sequentially */ -public void setCreateLevelsSequentially (boolean CreateLevelsSequentially) -{ -set_Value ("CreateLevelsSequentially", Boolean.valueOf(CreateLevelsSequentially)); -} -/** Get Create levels sequentially. -@return Create Dunning Letter by level sequentially */ -public boolean isCreateLevelsSequentially() -{ -Object oo = get_Value("CreateLevelsSequentially"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name CreateLevelsSequentially */ -public static final String COLUMNNAME_CreateLevelsSequentially = "CreateLevelsSequentially"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Send dunning letters. -@param SendDunningLetter Indicates if dunning letters will be sent */ -public void setSendDunningLetter (boolean SendDunningLetter) -{ -set_Value ("SendDunningLetter", Boolean.valueOf(SendDunningLetter)); -} -/** Get Send dunning letters. -@return Indicates if dunning letters will be sent */ -public boolean isSendDunningLetter() -{ -Object oo = get_Value("SendDunningLetter"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendDunningLetter */ -public static final String COLUMNNAME_SendDunningLetter = "SendDunningLetter"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Dunning (Properties ctx, int C_Dunning_ID, String trxName) + { + super (ctx, C_Dunning_ID, trxName); + /** if (C_Dunning_ID == 0) { setC_Dunning_ID (0); + setCreateLevelsSequentially (false); + setIsDefault (false); + setName (null); + setSendDunningLetter (false); +} */ + } + + /** Load Constructor */ + public X_C_Dunning (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Dunning[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Dunning. + @param C_Dunning_ID + Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID) + { + if (C_Dunning_ID < 1) + throw new IllegalArgumentException ("C_Dunning_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + } + + /** Get Dunning. + @return Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Dunning_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Create levels sequentially. + @param CreateLevelsSequentially + Create Dunning Letter by level sequentially + */ + public void setCreateLevelsSequentially (boolean CreateLevelsSequentially) + { + set_Value (COLUMNNAME_CreateLevelsSequentially, Boolean.valueOf(CreateLevelsSequentially)); + } + + /** Get Create levels sequentially. + @return Create Dunning Letter by level sequentially + */ + public boolean isCreateLevelsSequentially () + { + Object oo = get_Value(COLUMNNAME_CreateLevelsSequentially); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Send dunning letters. + @param SendDunningLetter + Indicates if dunning letters will be sent + */ + public void setSendDunningLetter (boolean SendDunningLetter) + { + set_Value (COLUMNNAME_SendDunningLetter, Boolean.valueOf(SendDunningLetter)); + } + + /** Get Send dunning letters. + @return Indicates if dunning letters will be sent + */ + public boolean isSendDunningLetter () + { + Object oo = get_Value(COLUMNNAME_SendDunningLetter); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DunningLevel.java b/base/src/org/compiere/model/X_C_DunningLevel.java index ec6a7c50cd..d3e692de8d 100644 --- a/base/src/org/compiere/model/X_C_DunningLevel.java +++ b/base/src/org/compiere/model/X_C_DunningLevel.java @@ -1,441 +1,529 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_DunningLevel - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_DunningLevel extends PO + +/** Generated Model for C_DunningLevel + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_DunningLevel extends PO implements I_C_DunningLevel, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_DunningLevel_ID id -@param trxName transaction -*/ -public X_C_DunningLevel (Properties ctx, int C_DunningLevel_ID, String trxName) -{ -super (ctx, C_DunningLevel_ID, trxName); -/** if (C_DunningLevel_ID == 0) -{ -setC_DunningLevel_ID (0); -setC_Dunning_ID (0); -setChargeFee (false); -setChargeInterest (false); -setDaysAfterDue (Env.ZERO); -setDaysBetweenDunning (0); -setIsSetCreditStop (false); -setIsSetPaymentTerm (false); -setIsShowAllDue (false); -setIsShowNotDue (false); -setName (null); -setPrintName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_DunningLevel (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_DunningLevel */ -public static final String Table_Name="C_DunningLevel"; - -/** AD_Table_ID=331 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_DunningLevel[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Dunning Level. -@param C_DunningLevel_ID Dunning Level */ -public void setC_DunningLevel_ID (int C_DunningLevel_ID) -{ -if (C_DunningLevel_ID < 1) throw new IllegalArgumentException ("C_DunningLevel_ID is mandatory."); -set_ValueNoCheck ("C_DunningLevel_ID", Integer.valueOf(C_DunningLevel_ID)); -} -/** Get Dunning Level. -@return Dunning Level */ -public int getC_DunningLevel_ID() -{ -Integer ii = (Integer)get_Value("C_DunningLevel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DunningLevel_ID */ -public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID"; -/** Set Dunning. -@param C_Dunning_ID Dunning Rules for overdue invoices */ -public void setC_Dunning_ID (int C_Dunning_ID) -{ -if (C_Dunning_ID < 1) throw new IllegalArgumentException ("C_Dunning_ID is mandatory."); -set_ValueNoCheck ("C_Dunning_ID", Integer.valueOf(C_Dunning_ID)); -} -/** Get Dunning. -@return Dunning Rules for overdue invoices */ -public int getC_Dunning_ID() -{ -Integer ii = (Integer)get_Value("C_Dunning_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Dunning_ID */ -public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID <= 0) set_Value ("C_PaymentTerm_ID", null); - else -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Charge fee. -@param ChargeFee Indicates if fees will be charged for overdue invoices */ -public void setChargeFee (boolean ChargeFee) -{ -set_Value ("ChargeFee", Boolean.valueOf(ChargeFee)); -} -/** Get Charge fee. -@return Indicates if fees will be charged for overdue invoices */ -public boolean isChargeFee() -{ -Object oo = get_Value("ChargeFee"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ChargeFee */ -public static final String COLUMNNAME_ChargeFee = "ChargeFee"; -/** Set Charge Interest. -@param ChargeInterest Indicates if interest will be charged on overdue invoices */ -public void setChargeInterest (boolean ChargeInterest) -{ -set_Value ("ChargeInterest", Boolean.valueOf(ChargeInterest)); -} -/** Get Charge Interest. -@return Indicates if interest will be charged on overdue invoices */ -public boolean isChargeInterest() -{ -Object oo = get_Value("ChargeInterest"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ChargeInterest */ -public static final String COLUMNNAME_ChargeInterest = "ChargeInterest"; -/** Set Days after due date. -@param DaysAfterDue Days after due date to dun (if negative days until due) */ -public void setDaysAfterDue (BigDecimal DaysAfterDue) -{ -if (DaysAfterDue == null) throw new IllegalArgumentException ("DaysAfterDue is mandatory."); -set_Value ("DaysAfterDue", DaysAfterDue); -} -/** Get Days after due date. -@return Days after due date to dun (if negative days until due) */ -public BigDecimal getDaysAfterDue() -{ -BigDecimal bd = (BigDecimal)get_Value("DaysAfterDue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DaysAfterDue */ -public static final String COLUMNNAME_DaysAfterDue = "DaysAfterDue"; -/** Set Days between dunning. -@param DaysBetweenDunning Days between sending dunning notices */ -public void setDaysBetweenDunning (int DaysBetweenDunning) -{ -set_Value ("DaysBetweenDunning", Integer.valueOf(DaysBetweenDunning)); -} -/** Get Days between dunning. -@return Days between sending dunning notices */ -public int getDaysBetweenDunning() -{ -Integer ii = (Integer)get_Value("DaysBetweenDunning"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DaysBetweenDunning */ -public static final String COLUMNNAME_DaysBetweenDunning = "DaysBetweenDunning"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DunningLevel (Properties ctx, int C_DunningLevel_ID, String trxName) + { + super (ctx, C_DunningLevel_ID, trxName); + /** if (C_DunningLevel_ID == 0) { setC_DunningLevel_ID (0); + setC_Dunning_ID (0); + setChargeFee (false); + setChargeInterest (false); + setDaysAfterDue (Env.ZERO); + setDaysBetweenDunning (0); + setIsSetCreditStop (false); + setIsSetPaymentTerm (false); + setIsShowAllDue (false); + setIsShowNotDue (false); + setName (null); + setPrintName (null); +} */ + } + + /** Load Constructor */ + public X_C_DunningLevel (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_DunningLevel[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Dunning Level. + @param C_DunningLevel_ID Dunning Level */ + public void setC_DunningLevel_ID (int C_DunningLevel_ID) + { + if (C_DunningLevel_ID < 1) + throw new IllegalArgumentException ("C_DunningLevel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); + } + + /** Get Dunning Level. +@return Dunning Level */ + public int getC_DunningLevel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningLevel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Dunning getI_C_Dunning() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning. + @param C_Dunning_ID + Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID) + { + if (C_Dunning_ID < 1) + throw new IllegalArgumentException ("C_Dunning_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + } + + /** Get Dunning. + @return Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Dunning_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID <= 0) set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge fee. + @param ChargeFee + Indicates if fees will be charged for overdue invoices + */ + public void setChargeFee (boolean ChargeFee) + { + set_Value (COLUMNNAME_ChargeFee, Boolean.valueOf(ChargeFee)); + } + + /** Get Charge fee. + @return Indicates if fees will be charged for overdue invoices + */ + public boolean isChargeFee () + { + Object oo = get_Value(COLUMNNAME_ChargeFee); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Charge Interest. + @param ChargeInterest + Indicates if interest will be charged on overdue invoices + */ + public void setChargeInterest (boolean ChargeInterest) + { + set_Value (COLUMNNAME_ChargeInterest, Boolean.valueOf(ChargeInterest)); + } + + /** Get Charge Interest. + @return Indicates if interest will be charged on overdue invoices + */ + public boolean isChargeInterest () + { + Object oo = get_Value(COLUMNNAME_ChargeInterest); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Days after due date. + @param DaysAfterDue + Days after due date to dun (if negative days until due) + */ + public void setDaysAfterDue (BigDecimal DaysAfterDue) + { + if (DaysAfterDue == null) + throw new IllegalArgumentException ("DaysAfterDue is mandatory."); + set_Value (COLUMNNAME_DaysAfterDue, DaysAfterDue); + } + + /** Get Days after due date. + @return Days after due date to dun (if negative days until due) + */ + public BigDecimal getDaysAfterDue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DaysAfterDue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Days between dunning. + @param DaysBetweenDunning + Days between sending dunning notices + */ + public void setDaysBetweenDunning (int DaysBetweenDunning) + { + set_Value (COLUMNNAME_DaysBetweenDunning, Integer.valueOf(DaysBetweenDunning)); + } + + /** Get Days between dunning. + @return Days between sending dunning notices + */ + public int getDaysBetweenDunning () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DaysBetweenDunning); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** Dunning_PrintFormat_ID AD_Reference_ID=259 */ public static final int DUNNING_PRINTFORMAT_ID_AD_Reference_ID=259; -/** Set Dunning Print Format. -@param Dunning_PrintFormat_ID Print Format for printing Dunning Letters */ -public void setDunning_PrintFormat_ID (int Dunning_PrintFormat_ID) -{ -if (Dunning_PrintFormat_ID <= 0) set_Value ("Dunning_PrintFormat_ID", null); - else -set_Value ("Dunning_PrintFormat_ID", Integer.valueOf(Dunning_PrintFormat_ID)); -} -/** Get Dunning Print Format. -@return Print Format for printing Dunning Letters */ -public int getDunning_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Dunning_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Dunning_PrintFormat_ID */ -public static final String COLUMNNAME_Dunning_PrintFormat_ID = "Dunning_PrintFormat_ID"; -/** Set Fee Amount. -@param FeeAmt Fee amount in invoice currency */ -public void setFeeAmt (BigDecimal FeeAmt) -{ -set_Value ("FeeAmt", FeeAmt); -} -/** Get Fee Amount. -@return Fee amount in invoice currency */ -public BigDecimal getFeeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FeeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FeeAmt */ -public static final String COLUMNNAME_FeeAmt = "FeeAmt"; -/** Set Interest in percent. -@param InterestPercent Percentage interest to charge on overdue invoices */ -public void setInterestPercent (BigDecimal InterestPercent) -{ -set_Value ("InterestPercent", InterestPercent); -} -/** Get Interest in percent. -@return Percentage interest to charge on overdue invoices */ -public BigDecimal getInterestPercent() -{ -BigDecimal bd = (BigDecimal)get_Value("InterestPercent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InterestPercent */ -public static final String COLUMNNAME_InterestPercent = "InterestPercent"; -/** Set Credit Stop. -@param IsSetCreditStop Set the business partner to credit stop */ -public void setIsSetCreditStop (boolean IsSetCreditStop) -{ -set_Value ("IsSetCreditStop", Boolean.valueOf(IsSetCreditStop)); -} -/** Get Credit Stop. -@return Set the business partner to credit stop */ -public boolean isSetCreditStop() -{ -Object oo = get_Value("IsSetCreditStop"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSetCreditStop */ -public static final String COLUMNNAME_IsSetCreditStop = "IsSetCreditStop"; -/** Set Set Payment Term. -@param IsSetPaymentTerm Set the payment term of the Business Partner */ -public void setIsSetPaymentTerm (boolean IsSetPaymentTerm) -{ -set_Value ("IsSetPaymentTerm", Boolean.valueOf(IsSetPaymentTerm)); -} -/** Get Set Payment Term. -@return Set the payment term of the Business Partner */ -public boolean isSetPaymentTerm() -{ -Object oo = get_Value("IsSetPaymentTerm"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSetPaymentTerm */ -public static final String COLUMNNAME_IsSetPaymentTerm = "IsSetPaymentTerm"; -/** Set Show All Due. -@param IsShowAllDue Show/print all due invoices */ -public void setIsShowAllDue (boolean IsShowAllDue) -{ -set_Value ("IsShowAllDue", Boolean.valueOf(IsShowAllDue)); -} -/** Get Show All Due. -@return Show/print all due invoices */ -public boolean isShowAllDue() -{ -Object oo = get_Value("IsShowAllDue"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsShowAllDue */ -public static final String COLUMNNAME_IsShowAllDue = "IsShowAllDue"; -/** Set Show Not Due. -@param IsShowNotDue Show/print all invoices which are not due (yet). */ -public void setIsShowNotDue (boolean IsShowNotDue) -{ -set_Value ("IsShowNotDue", Boolean.valueOf(IsShowNotDue)); -} -/** Get Show Not Due. -@return Show/print all invoices which are not due (yet). */ -public boolean isShowNotDue() -{ -Object oo = get_Value("IsShowNotDue"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsShowNotDue */ -public static final String COLUMNNAME_IsShowNotDue = "IsShowNotDue"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Note = Note.substring(0,1999); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Print Text. -@param PrintName The label text to be printed on a document or correspondence. */ -public void setPrintName (String PrintName) -{ -if (PrintName == null) throw new IllegalArgumentException ("PrintName is mandatory."); -if (PrintName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PrintName = PrintName.substring(0,59); -} -set_Value ("PrintName", PrintName); -} -/** Get Print Text. -@return The label text to be printed on a document or correspondence. */ -public String getPrintName() -{ -return (String)get_Value("PrintName"); -} -/** Column name PrintName */ -public static final String COLUMNNAME_PrintName = "PrintName"; -} + /** Set Dunning Print Format. + @param Dunning_PrintFormat_ID + Print Format for printing Dunning Letters + */ + public void setDunning_PrintFormat_ID (int Dunning_PrintFormat_ID) + { + if (Dunning_PrintFormat_ID <= 0) set_Value (COLUMNNAME_Dunning_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Dunning_PrintFormat_ID, Integer.valueOf(Dunning_PrintFormat_ID)); + } + + /** Get Dunning Print Format. + @return Print Format for printing Dunning Letters + */ + public int getDunning_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Dunning_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Fee Amount. + @param FeeAmt + Fee amount in invoice currency + */ + public void setFeeAmt (BigDecimal FeeAmt) + { + set_Value (COLUMNNAME_FeeAmt, FeeAmt); + } + + /** Get Fee Amount. + @return Fee amount in invoice currency + */ + public BigDecimal getFeeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FeeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Interest in percent. + @param InterestPercent + Percentage interest to charge on overdue invoices + */ + public void setInterestPercent (BigDecimal InterestPercent) + { + set_Value (COLUMNNAME_InterestPercent, InterestPercent); + } + + /** Get Interest in percent. + @return Percentage interest to charge on overdue invoices + */ + public BigDecimal getInterestPercent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InterestPercent); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Credit Stop. + @param IsSetCreditStop + Set the business partner to credit stop + */ + public void setIsSetCreditStop (boolean IsSetCreditStop) + { + set_Value (COLUMNNAME_IsSetCreditStop, Boolean.valueOf(IsSetCreditStop)); + } + + /** Get Credit Stop. + @return Set the business partner to credit stop + */ + public boolean isSetCreditStop () + { + Object oo = get_Value(COLUMNNAME_IsSetCreditStop); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Set Payment Term. + @param IsSetPaymentTerm + Set the payment term of the Business Partner + */ + public void setIsSetPaymentTerm (boolean IsSetPaymentTerm) + { + set_Value (COLUMNNAME_IsSetPaymentTerm, Boolean.valueOf(IsSetPaymentTerm)); + } + + /** Get Set Payment Term. + @return Set the payment term of the Business Partner + */ + public boolean isSetPaymentTerm () + { + Object oo = get_Value(COLUMNNAME_IsSetPaymentTerm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Show All Due. + @param IsShowAllDue + Show/print all due invoices + */ + public void setIsShowAllDue (boolean IsShowAllDue) + { + set_Value (COLUMNNAME_IsShowAllDue, Boolean.valueOf(IsShowAllDue)); + } + + /** Get Show All Due. + @return Show/print all due invoices + */ + public boolean isShowAllDue () + { + Object oo = get_Value(COLUMNNAME_IsShowAllDue); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Show Not Due. + @param IsShowNotDue + Show/print all invoices which are not due (yet). + */ + public void setIsShowNotDue (boolean IsShowNotDue) + { + set_Value (COLUMNNAME_IsShowNotDue, Boolean.valueOf(IsShowNotDue)); + } + + /** Get Show Not Due. + @return Show/print all invoices which are not due (yet). + */ + public boolean isShowNotDue () + { + Object oo = get_Value(COLUMNNAME_IsShowNotDue); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Note = Note.substring(0, 1999); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + /** Set Print Text. + @param PrintName + The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName) + { + if (PrintName == null) + throw new IllegalArgumentException ("PrintName is mandatory."); + if (PrintName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrintName = PrintName.substring(0, 59); + } + set_Value (COLUMNNAME_PrintName, PrintName); + } + + /** Get Print Text. + @return The label text to be printed on a document or correspondence. + */ + public String getPrintName () + { + return (String)get_Value(COLUMNNAME_PrintName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DunningRun.java b/base/src/org/compiere/model/X_C_DunningRun.java index f625b510a2..aecd3b9a41 100644 --- a/base/src/org/compiere/model/X_C_DunningRun.java +++ b/base/src/org/compiere/model/X_C_DunningRun.java @@ -1,224 +1,247 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_DunningRun - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_DunningRun extends PO + +/** Generated Model for C_DunningRun + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_DunningRun extends PO implements I_C_DunningRun, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_DunningRun_ID id -@param trxName transaction -*/ -public X_C_DunningRun (Properties ctx, int C_DunningRun_ID, String trxName) -{ -super (ctx, C_DunningRun_ID, trxName); -/** if (C_DunningRun_ID == 0) -{ -setC_DunningLevel_ID (0); -setC_DunningRun_ID (0); -setDunningDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_DunningRun (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_DunningRun */ -public static final String Table_Name="C_DunningRun"; - -/** AD_Table_ID=526 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_DunningRun[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Dunning Level. -@param C_DunningLevel_ID Dunning Level */ -public void setC_DunningLevel_ID (int C_DunningLevel_ID) -{ -if (C_DunningLevel_ID < 1) throw new IllegalArgumentException ("C_DunningLevel_ID is mandatory."); -set_ValueNoCheck ("C_DunningLevel_ID", Integer.valueOf(C_DunningLevel_ID)); -} -/** Get Dunning Level. -@return Dunning Level */ -public int getC_DunningLevel_ID() -{ -Integer ii = (Integer)get_Value("C_DunningLevel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DunningLevel_ID */ -public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID"; -/** Set Dunning Run. -@param C_DunningRun_ID Dunning Run */ -public void setC_DunningRun_ID (int C_DunningRun_ID) -{ -if (C_DunningRun_ID < 1) throw new IllegalArgumentException ("C_DunningRun_ID is mandatory."); -set_ValueNoCheck ("C_DunningRun_ID", Integer.valueOf(C_DunningRun_ID)); -} -/** Get Dunning Run. -@return Dunning Run */ -public int getC_DunningRun_ID() -{ -Integer ii = (Integer)get_Value("C_DunningRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DunningRun_ID */ -public static final String COLUMNNAME_C_DunningRun_ID = "C_DunningRun_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Dunning Date. -@param DunningDate Date of Dunning */ -public void setDunningDate (Timestamp DunningDate) -{ -if (DunningDate == null) throw new IllegalArgumentException ("DunningDate is mandatory."); -set_Value ("DunningDate", DunningDate); -} -/** Get Dunning Date. -@return Date of Dunning */ -public Timestamp getDunningDate() -{ -return (Timestamp)get_Value("DunningDate"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getDunningDate())); -} -/** Column name DunningDate */ -public static final String COLUMNNAME_DunningDate = "DunningDate"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Send. -@param SendIt Send */ -public void setSendIt (String SendIt) -{ -if (SendIt != null && SendIt.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SendIt = SendIt.substring(0,0); -} -set_Value ("SendIt", SendIt); -} -/** Get Send. -@return Send */ -public String getSendIt() -{ -return (String)get_Value("SendIt"); -} -/** Column name SendIt */ -public static final String COLUMNNAME_SendIt = "SendIt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DunningRun (Properties ctx, int C_DunningRun_ID, String trxName) + { + super (ctx, C_DunningRun_ID, trxName); + /** if (C_DunningRun_ID == 0) { setC_DunningLevel_ID (0); + setC_DunningRun_ID (0); + setDunningDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_DunningRun (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_DunningRun[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_DunningLevel getI_C_DunningLevel() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning Level. + @param C_DunningLevel_ID Dunning Level */ + public void setC_DunningLevel_ID (int C_DunningLevel_ID) + { + if (C_DunningLevel_ID < 1) + throw new IllegalArgumentException ("C_DunningLevel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); + } + + /** Get Dunning Level. +@return Dunning Level */ + public int getC_DunningLevel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningLevel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dunning Run. + @param C_DunningRun_ID + Dunning Run + */ + public void setC_DunningRun_ID (int C_DunningRun_ID) + { + if (C_DunningRun_ID < 1) + throw new IllegalArgumentException ("C_DunningRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, Integer.valueOf(C_DunningRun_ID)); + } + + /** Get Dunning Run. + @return Dunning Run + */ + public int getC_DunningRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Dunning Date. + @param DunningDate + Date of Dunning + */ + public void setDunningDate (Timestamp DunningDate) + { + if (DunningDate == null) + throw new IllegalArgumentException ("DunningDate is mandatory."); + set_Value (COLUMNNAME_DunningDate, DunningDate); + } + + /** Get Dunning Date. + @return Date of Dunning + */ + public Timestamp getDunningDate () + { + return (Timestamp)get_Value(COLUMNNAME_DunningDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getDunningDate())); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Send. + @param SendIt Send */ + public void setSendIt (String SendIt) + { + if (SendIt != null && SendIt.length() > 1) + { + log.warning("Length > 1 - truncated"); + SendIt = SendIt.substring(0, 0); + } + set_Value (COLUMNNAME_SendIt, SendIt); + } + + /** Get Send. +@return Send */ + public String getSendIt () + { + return (String)get_Value(COLUMNNAME_SendIt); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DunningRunEntry.java b/base/src/org/compiere/model/X_C_DunningRunEntry.java index 47ea24c1de..d35f762b18 100644 --- a/base/src/org/compiere/model/X_C_DunningRunEntry.java +++ b/base/src/org/compiere/model/X_C_DunningRunEntry.java @@ -1,298 +1,383 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_DunningRunEntry - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_DunningRunEntry extends PO + +/** Generated Model for C_DunningRunEntry + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_DunningRunEntry extends PO implements I_C_DunningRunEntry, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_DunningRunEntry_ID id -@param trxName transaction -*/ -public X_C_DunningRunEntry (Properties ctx, int C_DunningRunEntry_ID, String trxName) -{ -super (ctx, C_DunningRunEntry_ID, trxName); -/** if (C_DunningRunEntry_ID == 0) -{ -setAmt (Env.ZERO); -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_Currency_ID (0); -setC_DunningRunEntry_ID (0); -setC_DunningRun_ID (0); -setProcessed (false); -setQty (Env.ZERO); -setSalesRep_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_DunningRunEntry (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_DunningRunEntry */ -public static final String Table_Name="C_DunningRunEntry"; - -/** AD_Table_ID=527 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_DunningRunEntry[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory."); -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Dunning Run Entry. -@param C_DunningRunEntry_ID Dunning Run Entry */ -public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) -{ -if (C_DunningRunEntry_ID < 1) throw new IllegalArgumentException ("C_DunningRunEntry_ID is mandatory."); -set_ValueNoCheck ("C_DunningRunEntry_ID", Integer.valueOf(C_DunningRunEntry_ID)); -} -/** Get Dunning Run Entry. -@return Dunning Run Entry */ -public int getC_DunningRunEntry_ID() -{ -Integer ii = (Integer)get_Value("C_DunningRunEntry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DunningRunEntry_ID */ -public static final String COLUMNNAME_C_DunningRunEntry_ID = "C_DunningRunEntry_ID"; -/** Set Dunning Run. -@param C_DunningRun_ID Dunning Run */ -public void setC_DunningRun_ID (int C_DunningRun_ID) -{ -if (C_DunningRun_ID < 1) throw new IllegalArgumentException ("C_DunningRun_ID is mandatory."); -set_ValueNoCheck ("C_DunningRun_ID", Integer.valueOf(C_DunningRun_ID)); -} -/** Get Dunning Run. -@return Dunning Run */ -public int getC_DunningRun_ID() -{ -Integer ii = (Integer)get_Value("C_DunningRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_DunningRun_ID())); -} -/** Column name C_DunningRun_ID */ -public static final String COLUMNNAME_C_DunningRun_ID = "C_DunningRun_ID"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Note = Note.substring(0,1999); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DunningRunEntry (Properties ctx, int C_DunningRunEntry_ID, String trxName) + { + super (ctx, C_DunningRunEntry_ID, trxName); + /** if (C_DunningRunEntry_ID == 0) { setAmt (Env.ZERO); + setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Currency_ID (0); + setC_DunningRunEntry_ID (0); + setC_DunningRun_ID (0); + setProcessed (false); + setQty (Env.ZERO); + setSalesRep_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_DunningRunEntry (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_DunningRunEntry[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + if (Amt == null) + throw new IllegalArgumentException ("Amt is mandatory."); + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dunning Run Entry. + @param C_DunningRunEntry_ID + Dunning Run Entry + */ + public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) + { + if (C_DunningRunEntry_ID < 1) + throw new IllegalArgumentException ("C_DunningRunEntry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, Integer.valueOf(C_DunningRunEntry_ID)); + } + + /** Get Dunning Run Entry. + @return Dunning Run Entry + */ + public int getC_DunningRunEntry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningRunEntry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DunningRun getI_C_DunningRun() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning Run. + @param C_DunningRun_ID + Dunning Run + */ + public void setC_DunningRun_ID (int C_DunningRun_ID) + { + if (C_DunningRun_ID < 1) + throw new IllegalArgumentException ("C_DunningRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningRun_ID, Integer.valueOf(C_DunningRun_ID)); + } + + /** Get Dunning Run. + @return Dunning Run + */ + public int getC_DunningRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_DunningRun_ID())); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Note = Note.substring(0, 1999); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DunningRunLine.java b/base/src/org/compiere/model/X_C_DunningRunLine.java index 80c7123716..db4a6018da 100644 --- a/base/src/org/compiere/model/X_C_DunningRunLine.java +++ b/base/src/org/compiere/model/X_C_DunningRunLine.java @@ -1,349 +1,416 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_DunningRunLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_DunningRunLine extends PO + +/** Generated Model for C_DunningRunLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_DunningRunLine extends PO implements I_C_DunningRunLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_DunningRunLine_ID id -@param trxName transaction -*/ -public X_C_DunningRunLine (Properties ctx, int C_DunningRunLine_ID, String trxName) -{ -super (ctx, C_DunningRunLine_ID, trxName); -/** if (C_DunningRunLine_ID == 0) -{ -setAmt (Env.ZERO); -setC_DunningRunEntry_ID (0); -setC_DunningRunLine_ID (0); -setConvertedAmt (Env.ZERO); -setDaysDue (0); -setFeeAmt (Env.ZERO); -setInterestAmt (Env.ZERO); -setIsInDispute (false); -setOpenAmt (Env.ZERO); -setProcessed (false); -setTimesDunned (0); -setTotalAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_DunningRunLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_DunningRunLine */ -public static final String Table_Name="C_DunningRunLine"; - -/** AD_Table_ID=524 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_DunningRunLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory."); -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Dunning Run Entry. -@param C_DunningRunEntry_ID Dunning Run Entry */ -public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) -{ -if (C_DunningRunEntry_ID < 1) throw new IllegalArgumentException ("C_DunningRunEntry_ID is mandatory."); -set_ValueNoCheck ("C_DunningRunEntry_ID", Integer.valueOf(C_DunningRunEntry_ID)); -} -/** Get Dunning Run Entry. -@return Dunning Run Entry */ -public int getC_DunningRunEntry_ID() -{ -Integer ii = (Integer)get_Value("C_DunningRunEntry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DunningRunEntry_ID */ -public static final String COLUMNNAME_C_DunningRunEntry_ID = "C_DunningRunEntry_ID"; -/** Set Dunning Run Line. -@param C_DunningRunLine_ID Dunning Run Line */ -public void setC_DunningRunLine_ID (int C_DunningRunLine_ID) -{ -if (C_DunningRunLine_ID < 1) throw new IllegalArgumentException ("C_DunningRunLine_ID is mandatory."); -set_ValueNoCheck ("C_DunningRunLine_ID", Integer.valueOf(C_DunningRunLine_ID)); -} -/** Get Dunning Run Line. -@return Dunning Run Line */ -public int getC_DunningRunLine_ID() -{ -Integer ii = (Integer)get_Value("C_DunningRunLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DunningRunLine_ID */ -public static final String COLUMNNAME_C_DunningRunLine_ID = "C_DunningRunLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Converted Amount. -@param ConvertedAmt Converted Amount */ -public void setConvertedAmt (BigDecimal ConvertedAmt) -{ -if (ConvertedAmt == null) throw new IllegalArgumentException ("ConvertedAmt is mandatory."); -set_Value ("ConvertedAmt", ConvertedAmt); -} -/** Get Converted Amount. -@return Converted Amount */ -public BigDecimal getConvertedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ConvertedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConvertedAmt */ -public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; -/** Set Days due. -@param DaysDue Number of days due (negative: due in number of days) */ -public void setDaysDue (int DaysDue) -{ -set_Value ("DaysDue", Integer.valueOf(DaysDue)); -} -/** Get Days due. -@return Number of days due (negative: due in number of days) */ -public int getDaysDue() -{ -Integer ii = (Integer)get_Value("DaysDue"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DaysDue */ -public static final String COLUMNNAME_DaysDue = "DaysDue"; -/** Set Fee Amount. -@param FeeAmt Fee amount in invoice currency */ -public void setFeeAmt (BigDecimal FeeAmt) -{ -if (FeeAmt == null) throw new IllegalArgumentException ("FeeAmt is mandatory."); -set_Value ("FeeAmt", FeeAmt); -} -/** Get Fee Amount. -@return Fee amount in invoice currency */ -public BigDecimal getFeeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FeeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FeeAmt */ -public static final String COLUMNNAME_FeeAmt = "FeeAmt"; -/** Set Interest Amount. -@param InterestAmt Interest Amount */ -public void setInterestAmt (BigDecimal InterestAmt) -{ -if (InterestAmt == null) throw new IllegalArgumentException ("InterestAmt is mandatory."); -set_Value ("InterestAmt", InterestAmt); -} -/** Get Interest Amount. -@return Interest Amount */ -public BigDecimal getInterestAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InterestAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InterestAmt */ -public static final String COLUMNNAME_InterestAmt = "InterestAmt"; -/** Set In Dispute. -@param IsInDispute Document is in dispute */ -public void setIsInDispute (boolean IsInDispute) -{ -set_Value ("IsInDispute", Boolean.valueOf(IsInDispute)); -} -/** Get In Dispute. -@return Document is in dispute */ -public boolean isInDispute() -{ -Object oo = get_Value("IsInDispute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInDispute */ -public static final String COLUMNNAME_IsInDispute = "IsInDispute"; -/** Set Open Amount. -@param OpenAmt Open item amount */ -public void setOpenAmt (BigDecimal OpenAmt) -{ -if (OpenAmt == null) throw new IllegalArgumentException ("OpenAmt is mandatory."); -set_Value ("OpenAmt", OpenAmt); -} -/** Get Open Amount. -@return Open item amount */ -public BigDecimal getOpenAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OpenAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OpenAmt */ -public static final String COLUMNNAME_OpenAmt = "OpenAmt"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Times Dunned. -@param TimesDunned Number of times dunned previously */ -public void setTimesDunned (int TimesDunned) -{ -set_Value ("TimesDunned", Integer.valueOf(TimesDunned)); -} -/** Get Times Dunned. -@return Number of times dunned previously */ -public int getTimesDunned() -{ -Integer ii = (Integer)get_Value("TimesDunned"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name TimesDunned */ -public static final String COLUMNNAME_TimesDunned = "TimesDunned"; -/** Set Total Amount. -@param TotalAmt Total Amount */ -public void setTotalAmt (BigDecimal TotalAmt) -{ -if (TotalAmt == null) throw new IllegalArgumentException ("TotalAmt is mandatory."); -set_Value ("TotalAmt", TotalAmt); -} -/** Get Total Amount. -@return Total Amount */ -public BigDecimal getTotalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalAmt */ -public static final String COLUMNNAME_TotalAmt = "TotalAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DunningRunLine (Properties ctx, int C_DunningRunLine_ID, String trxName) + { + super (ctx, C_DunningRunLine_ID, trxName); + /** if (C_DunningRunLine_ID == 0) { setAmt (Env.ZERO); + setC_DunningRunEntry_ID (0); + setC_DunningRunLine_ID (0); + setConvertedAmt (Env.ZERO); + setDaysDue (0); + setFeeAmt (Env.ZERO); + setInterestAmt (Env.ZERO); + setIsInDispute (false); + setOpenAmt (Env.ZERO); + setProcessed (false); + setTimesDunned (0); + setTotalAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_DunningRunLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_DunningRunLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + if (Amt == null) + throw new IllegalArgumentException ("Amt is mandatory."); + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_DunningRunEntry getI_C_DunningRunEntry() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning Run Entry. + @param C_DunningRunEntry_ID + Dunning Run Entry + */ + public void setC_DunningRunEntry_ID (int C_DunningRunEntry_ID) + { + if (C_DunningRunEntry_ID < 1) + throw new IllegalArgumentException ("C_DunningRunEntry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningRunEntry_ID, Integer.valueOf(C_DunningRunEntry_ID)); + } + + /** Get Dunning Run Entry. + @return Dunning Run Entry + */ + public int getC_DunningRunEntry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningRunEntry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dunning Run Line. + @param C_DunningRunLine_ID + Dunning Run Line + */ + public void setC_DunningRunLine_ID (int C_DunningRunLine_ID) + { + if (C_DunningRunLine_ID < 1) + throw new IllegalArgumentException ("C_DunningRunLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DunningRunLine_ID, Integer.valueOf(C_DunningRunLine_ID)); + } + + /** Get Dunning Run Line. + @return Dunning Run Line + */ + public int getC_DunningRunLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningRunLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Converted Amount. + @param ConvertedAmt + Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt) + { + if (ConvertedAmt == null) + throw new IllegalArgumentException ("ConvertedAmt is mandatory."); + set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); + } + + /** Get Converted Amount. + @return Converted Amount + */ + public BigDecimal getConvertedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConvertedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Days due. + @param DaysDue + Number of days due (negative: due in number of days) + */ + public void setDaysDue (int DaysDue) + { + set_Value (COLUMNNAME_DaysDue, Integer.valueOf(DaysDue)); + } + + /** Get Days due. + @return Number of days due (negative: due in number of days) + */ + public int getDaysDue () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DaysDue); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Fee Amount. + @param FeeAmt + Fee amount in invoice currency + */ + public void setFeeAmt (BigDecimal FeeAmt) + { + if (FeeAmt == null) + throw new IllegalArgumentException ("FeeAmt is mandatory."); + set_Value (COLUMNNAME_FeeAmt, FeeAmt); + } + + /** Get Fee Amount. + @return Fee amount in invoice currency + */ + public BigDecimal getFeeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FeeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Interest Amount. + @param InterestAmt + Interest Amount + */ + public void setInterestAmt (BigDecimal InterestAmt) + { + if (InterestAmt == null) + throw new IllegalArgumentException ("InterestAmt is mandatory."); + set_Value (COLUMNNAME_InterestAmt, InterestAmt); + } + + /** Get Interest Amount. + @return Interest Amount + */ + public BigDecimal getInterestAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InterestAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set In Dispute. + @param IsInDispute + Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute) + { + set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute)); + } + + /** Get In Dispute. + @return Document is in dispute + */ + public boolean isInDispute () + { + Object oo = get_Value(COLUMNNAME_IsInDispute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Open Amount. + @param OpenAmt + Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt) + { + if (OpenAmt == null) + throw new IllegalArgumentException ("OpenAmt is mandatory."); + set_Value (COLUMNNAME_OpenAmt, OpenAmt); + } + + /** Get Open Amount. + @return Open item amount + */ + public BigDecimal getOpenAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Times Dunned. + @param TimesDunned + Number of times dunned previously + */ + public void setTimesDunned (int TimesDunned) + { + set_Value (COLUMNNAME_TimesDunned, Integer.valueOf(TimesDunned)); + } + + /** Get Times Dunned. + @return Number of times dunned previously + */ + public int getTimesDunned () + { + Integer ii = (Integer)get_Value(COLUMNNAME_TimesDunned); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Total Amount. + @param TotalAmt + Total Amount + */ + public void setTotalAmt (BigDecimal TotalAmt) + { + if (TotalAmt == null) + throw new IllegalArgumentException ("TotalAmt is mandatory."); + set_Value (COLUMNNAME_TotalAmt, TotalAmt); + } + + /** Get Total Amount. + @return Total Amount + */ + public BigDecimal getTotalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Element.java b/base/src/org/compiere/model/X_C_Element.java index 93c8caf8dc..8cf9dfe815 100644 --- a/base/src/org/compiere/model/X_C_Element.java +++ b/base/src/org/compiere/model/X_C_Element.java @@ -1,262 +1,289 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Element - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Element extends PO + +/** Generated Model for C_Element + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Element extends PO implements I_C_Element, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Element_ID id -@param trxName transaction -*/ -public X_C_Element (Properties ctx, int C_Element_ID, String trxName) -{ -super (ctx, C_Element_ID, trxName); -/** if (C_Element_ID == 0) -{ -setAD_Tree_ID (0); -setC_Element_ID (0); -setElementType (null); // A -setIsBalancing (false); -setIsNaturalAccount (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Element (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Element */ -public static final String Table_Name="C_Element"; - -/** AD_Table_ID=142 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Element[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tree. -@param AD_Tree_ID Identifies a Tree */ -public void setAD_Tree_ID (int AD_Tree_ID) -{ -if (AD_Tree_ID < 1) throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); -set_ValueNoCheck ("AD_Tree_ID", Integer.valueOf(AD_Tree_ID)); -} -/** Get Tree. -@return Identifies a Tree */ -public int getAD_Tree_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_ID */ -public static final String COLUMNNAME_AD_Tree_ID = "AD_Tree_ID"; -/** Set Element. -@param C_Element_ID Accounting Element */ -public void setC_Element_ID (int C_Element_ID) -{ -if (C_Element_ID < 1) throw new IllegalArgumentException ("C_Element_ID is mandatory."); -set_ValueNoCheck ("C_Element_ID", Integer.valueOf(C_Element_ID)); -} -/** Get Element. -@return Accounting Element */ -public int getC_Element_ID() -{ -Integer ii = (Integer)get_Value("C_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Element_ID */ -public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Element (Properties ctx, int C_Element_ID, String trxName) + { + super (ctx, C_Element_ID, trxName); + /** if (C_Element_ID == 0) { setAD_Tree_ID (0); + setC_Element_ID (0); + setElementType (null); +// A + setIsBalancing (false); + setIsNaturalAccount (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Element (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Element[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Tree getI_AD_Tree() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tree. + @param AD_Tree_ID + Identifies a Tree + */ + public void setAD_Tree_ID (int AD_Tree_ID) + { + if (AD_Tree_ID < 1) + throw new IllegalArgumentException ("AD_Tree_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Tree_ID, Integer.valueOf(AD_Tree_ID)); + } + + /** Get Tree. + @return Identifies a Tree + */ + public int getAD_Tree_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Element. + @param C_Element_ID + Accounting Element + */ + public void setC_Element_ID (int C_Element_ID) + { + if (C_Element_ID < 1) + throw new IllegalArgumentException ("C_Element_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + } + + /** Get Element. + @return Accounting Element + */ + public int getC_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** ElementType AD_Reference_ID=116 */ -public static final int ELEMENTTYPE_AD_Reference_ID=116; -/** Account = A */ -public static final String ELEMENTTYPE_Account = "A"; -/** User defined = U */ +public static final int ELEMENTTYPE_AD_Reference_ID=116;/** Account = A */ +public static final String ELEMENTTYPE_Account = "A";/** User defined = U */ public static final String ELEMENTTYPE_UserDefined = "U"; -/** Set Type. -@param ElementType Element Type (account or user defined) */ -public void setElementType (String ElementType) -{ -if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory"); -if (ElementType.equals("A") || ElementType.equals("U")); - else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=116 - A - U"); -if (ElementType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ElementType = ElementType.substring(0,0); -} -set_ValueNoCheck ("ElementType", ElementType); -} -/** Get Type. -@return Element Type (account or user defined) */ -public String getElementType() -{ -return (String)get_Value("ElementType"); -} -/** Column name ElementType */ -public static final String COLUMNNAME_ElementType = "ElementType"; -/** Set Balancing. -@param IsBalancing All transactions within an element value must balance (e.g. cost centers) */ -public void setIsBalancing (boolean IsBalancing) -{ -set_Value ("IsBalancing", Boolean.valueOf(IsBalancing)); -} -/** Get Balancing. -@return All transactions within an element value must balance (e.g. cost centers) */ -public boolean isBalancing() -{ -Object oo = get_Value("IsBalancing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBalancing */ -public static final String COLUMNNAME_IsBalancing = "IsBalancing"; -/** Set Natural Account. -@param IsNaturalAccount The primary natural account */ -public void setIsNaturalAccount (boolean IsNaturalAccount) -{ -set_Value ("IsNaturalAccount", Boolean.valueOf(IsNaturalAccount)); -} -/** Get Natural Account. -@return The primary natural account */ -public boolean isNaturalAccount() -{ -Object oo = get_Value("IsNaturalAccount"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsNaturalAccount */ -public static final String COLUMNNAME_IsNaturalAccount = "IsNaturalAccount"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Value Format. -@param VFormat Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public void setVFormat (String VFormat) -{ -if (VFormat != null && VFormat.length() > 40) -{ -log.warning("Length > 40 - truncated"); -VFormat = VFormat.substring(0,39); -} -set_Value ("VFormat", VFormat); -} -/** Get Value Format. -@return Format of the value; - Can contain fixed format elements, Variables: "_lLoOaAcCa09" */ -public String getVFormat() -{ -return (String)get_Value("VFormat"); -} -/** Column name VFormat */ -public static final String COLUMNNAME_VFormat = "VFormat"; -} + /** Set Type. + @param ElementType + Element Type (account or user defined) + */ + public void setElementType (String ElementType) + { +if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory");if (ElementType.equals("A") || ElementType.equals("U")); else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=116 - A - U"); if (ElementType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ElementType = ElementType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_ElementType, ElementType); + } + + /** Get Type. + @return Element Type (account or user defined) + */ + public String getElementType () + { + return (String)get_Value(COLUMNNAME_ElementType); + } + + /** Set Balancing. + @param IsBalancing + All transactions within an element value must balance (e.g. cost centers) + */ + public void setIsBalancing (boolean IsBalancing) + { + set_Value (COLUMNNAME_IsBalancing, Boolean.valueOf(IsBalancing)); + } + + /** Get Balancing. + @return All transactions within an element value must balance (e.g. cost centers) + */ + public boolean isBalancing () + { + Object oo = get_Value(COLUMNNAME_IsBalancing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Natural Account. + @param IsNaturalAccount + The primary natural account + */ + public void setIsNaturalAccount (boolean IsNaturalAccount) + { + set_Value (COLUMNNAME_IsNaturalAccount, Boolean.valueOf(IsNaturalAccount)); + } + + /** Get Natural Account. + @return The primary natural account + */ + public boolean isNaturalAccount () + { + Object oo = get_Value(COLUMNNAME_IsNaturalAccount); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Value Format. + @param VFormat + Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public void setVFormat (String VFormat) + { + if (VFormat != null && VFormat.length() > 40) + { + log.warning("Length > 40 - truncated"); + VFormat = VFormat.substring(0, 39); + } + set_Value (COLUMNNAME_VFormat, VFormat); + } + + /** Get Value Format. + @return Format of the value; Can contain fixed format elements, Variables: "_lLoOaAcCa09" + */ + public String getVFormat () + { + return (String)get_Value(COLUMNNAME_VFormat); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ElementValue.java b/base/src/org/compiere/model/X_C_ElementValue.java index 74e7ed55c7..bb8dd0a375 100644 --- a/base/src/org/compiere/model/X_C_ElementValue.java +++ b/base/src/org/compiere/model/X_C_ElementValue.java @@ -1,489 +1,586 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ElementValue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ElementValue extends PO + +/** Generated Model for C_ElementValue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ElementValue extends PO implements I_C_ElementValue, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ElementValue_ID id -@param trxName transaction -*/ -public X_C_ElementValue (Properties ctx, int C_ElementValue_ID, String trxName) -{ -super (ctx, C_ElementValue_ID, trxName); -/** if (C_ElementValue_ID == 0) -{ -setAccountSign (null); // N -setAccountType (null); // E -setC_ElementValue_ID (0); -setC_Element_ID (0); -setIsSummary (false); -setName (null); -setPostActual (true); // Y -setPostBudget (true); // Y -setPostEncumbrance (true); // Y -setPostStatistical (true); // Y -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ElementValue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ElementValue */ -public static final String Table_Name="C_ElementValue"; - -/** AD_Table_ID=188 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ElementValue[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ElementValue (Properties ctx, int C_ElementValue_ID, String trxName) + { + super (ctx, C_ElementValue_ID, trxName); + /** if (C_ElementValue_ID == 0) { setAccountSign (null); +// N + setAccountType (null); +// E + setC_ElementValue_ID (0); + setC_Element_ID (0); + setIsSummary (false); + setName (null); + setPostActual (true); +// Y + setPostBudget (true); +// Y + setPostEncumbrance (true); +// Y + setPostStatistical (true); +// Y + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_ElementValue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ElementValue[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AccountSign AD_Reference_ID=118 */ -public static final int ACCOUNTSIGN_AD_Reference_ID=118; -/** Credit = C */ -public static final String ACCOUNTSIGN_Credit = "C"; -/** Debit = D */ -public static final String ACCOUNTSIGN_Debit = "D"; -/** Natural = N */ +public static final int ACCOUNTSIGN_AD_Reference_ID=118;/** Credit = C */ +public static final String ACCOUNTSIGN_Credit = "C";/** Debit = D */ +public static final String ACCOUNTSIGN_Debit = "D";/** Natural = N */ public static final String ACCOUNTSIGN_Natural = "N"; -/** Set Account Sign. -@param AccountSign Indicates the Natural Sign of the Account as a Debit or Credit */ -public void setAccountSign (String AccountSign) -{ -if (AccountSign == null) throw new IllegalArgumentException ("AccountSign is mandatory"); -if (AccountSign.equals("C") || AccountSign.equals("D") || AccountSign.equals("N")); - else throw new IllegalArgumentException ("AccountSign Invalid value - " + AccountSign + " - Reference_ID=118 - C - D - N"); -if (AccountSign.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccountSign = AccountSign.substring(0,0); -} -set_Value ("AccountSign", AccountSign); -} -/** Get Account Sign. -@return Indicates the Natural Sign of the Account as a Debit or Credit */ -public String getAccountSign() -{ -return (String)get_Value("AccountSign"); -} -/** Column name AccountSign */ -public static final String COLUMNNAME_AccountSign = "AccountSign"; + /** Set Account Sign. + @param AccountSign + Indicates the Natural Sign of the Account as a Debit or Credit + */ + public void setAccountSign (String AccountSign) + { +if (AccountSign == null) throw new IllegalArgumentException ("AccountSign is mandatory");if (AccountSign.equals("C") || AccountSign.equals("D") || AccountSign.equals("N")); else throw new IllegalArgumentException ("AccountSign Invalid value - " + AccountSign + " - Reference_ID=118 - C - D - N"); if (AccountSign.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccountSign = AccountSign.substring(0, 0); + } + set_Value (COLUMNNAME_AccountSign, AccountSign); + } + + /** Get Account Sign. + @return Indicates the Natural Sign of the Account as a Debit or Credit + */ + public String getAccountSign () + { + return (String)get_Value(COLUMNNAME_AccountSign); + } /** AccountType AD_Reference_ID=117 */ -public static final int ACCOUNTTYPE_AD_Reference_ID=117; -/** Asset = A */ -public static final String ACCOUNTTYPE_Asset = "A"; -/** Expense = E */ -public static final String ACCOUNTTYPE_Expense = "E"; -/** Liability = L */ -public static final String ACCOUNTTYPE_Liability = "L"; -/** Memo = M */ -public static final String ACCOUNTTYPE_Memo = "M"; -/** Owner's Equity = O */ -public static final String ACCOUNTTYPE_OwnerSEquity = "O"; -/** Revenue = R */ +public static final int ACCOUNTTYPE_AD_Reference_ID=117;/** Asset = A */ +public static final String ACCOUNTTYPE_Asset = "A";/** Expense = E */ +public static final String ACCOUNTTYPE_Expense = "E";/** Liability = L */ +public static final String ACCOUNTTYPE_Liability = "L";/** Memo = M */ +public static final String ACCOUNTTYPE_Memo = "M";/** Owner's Equity = O */ +public static final String ACCOUNTTYPE_OwnerSEquity = "O";/** Revenue = R */ public static final String ACCOUNTTYPE_Revenue = "R"; -/** Set Account Type. -@param AccountType Indicates the type of account */ -public void setAccountType (String AccountType) -{ -if (AccountType == null) throw new IllegalArgumentException ("AccountType is mandatory"); -if (AccountType.equals("A") || AccountType.equals("E") || AccountType.equals("L") || AccountType.equals("M") || AccountType.equals("O") || AccountType.equals("R")); - else throw new IllegalArgumentException ("AccountType Invalid value - " + AccountType + " - Reference_ID=117 - A - E - L - M - O - R"); -if (AccountType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccountType = AccountType.substring(0,0); -} -set_Value ("AccountType", AccountType); -} -/** Get Account Type. -@return Indicates the type of account */ -public String getAccountType() -{ -return (String)get_Value("AccountType"); -} -/** Column name AccountType */ -public static final String COLUMNNAME_AccountType = "AccountType"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID <= 0) set_Value ("C_BankAccount_ID", null); - else -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID < 1) throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); -set_ValueNoCheck ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Element. -@param C_Element_ID Accounting Element */ -public void setC_Element_ID (int C_Element_ID) -{ -if (C_Element_ID < 1) throw new IllegalArgumentException ("C_Element_ID is mandatory."); -set_ValueNoCheck ("C_Element_ID", Integer.valueOf(C_Element_ID)); -} -/** Get Element. -@return Accounting Element */ -public int getC_Element_ID() -{ -Integer ii = (Integer)get_Value("C_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Element_ID */ -public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Bank Account. -@param IsBankAccount Indicates if this is the Bank Account */ -public void setIsBankAccount (boolean IsBankAccount) -{ -set_Value ("IsBankAccount", Boolean.valueOf(IsBankAccount)); -} -/** Get Bank Account. -@return Indicates if this is the Bank Account */ -public boolean isBankAccount() -{ -Object oo = get_Value("IsBankAccount"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBankAccount */ -public static final String COLUMNNAME_IsBankAccount = "IsBankAccount"; -/** Set Document Controlled. -@param IsDocControlled Control account - If an account is controlled by a document, you cannot post manually to it */ -public void setIsDocControlled (boolean IsDocControlled) -{ -set_Value ("IsDocControlled", Boolean.valueOf(IsDocControlled)); -} -/** Get Document Controlled. -@return Control account - If an account is controlled by a document, you cannot post manually to it */ -public boolean isDocControlled() -{ -Object oo = get_Value("IsDocControlled"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDocControlled */ -public static final String COLUMNNAME_IsDocControlled = "IsDocControlled"; -/** Set Foreign Currency Account. -@param IsForeignCurrency Balances in foreign currency accounts are held in the nominated currency */ -public void setIsForeignCurrency (boolean IsForeignCurrency) -{ -set_Value ("IsForeignCurrency", Boolean.valueOf(IsForeignCurrency)); -} -/** Get Foreign Currency Account. -@return Balances in foreign currency accounts are held in the nominated currency */ -public boolean isForeignCurrency() -{ -Object oo = get_Value("IsForeignCurrency"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsForeignCurrency */ -public static final String COLUMNNAME_IsForeignCurrency = "IsForeignCurrency"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Post Actual. -@param PostActual Actual Values can be posted */ -public void setPostActual (boolean PostActual) -{ -set_Value ("PostActual", Boolean.valueOf(PostActual)); -} -/** Get Post Actual. -@return Actual Values can be posted */ -public boolean isPostActual() -{ -Object oo = get_Value("PostActual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostActual */ -public static final String COLUMNNAME_PostActual = "PostActual"; -/** Set Post Budget. -@param PostBudget Budget values can be posted */ -public void setPostBudget (boolean PostBudget) -{ -set_Value ("PostBudget", Boolean.valueOf(PostBudget)); -} -/** Get Post Budget. -@return Budget values can be posted */ -public boolean isPostBudget() -{ -Object oo = get_Value("PostBudget"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostBudget */ -public static final String COLUMNNAME_PostBudget = "PostBudget"; -/** Set Post Encumbrance. -@param PostEncumbrance Post commitments to this account */ -public void setPostEncumbrance (boolean PostEncumbrance) -{ -set_Value ("PostEncumbrance", Boolean.valueOf(PostEncumbrance)); -} -/** Get Post Encumbrance. -@return Post commitments to this account */ -public boolean isPostEncumbrance() -{ -Object oo = get_Value("PostEncumbrance"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostEncumbrance */ -public static final String COLUMNNAME_PostEncumbrance = "PostEncumbrance"; -/** Set Post Statistical. -@param PostStatistical Post statistical quantities to this account? */ -public void setPostStatistical (boolean PostStatistical) -{ -set_Value ("PostStatistical", Boolean.valueOf(PostStatistical)); -} -/** Get Post Statistical. -@return Post statistical quantities to this account? */ -public boolean isPostStatistical() -{ -Object oo = get_Value("PostStatistical"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostStatistical */ -public static final String COLUMNNAME_PostStatistical = "PostStatistical"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Account Type. + @param AccountType + Indicates the type of account + */ + public void setAccountType (String AccountType) + { +if (AccountType == null) throw new IllegalArgumentException ("AccountType is mandatory");if (AccountType.equals("A") || AccountType.equals("E") || AccountType.equals("L") || AccountType.equals("M") || AccountType.equals("O") || AccountType.equals("R")); else throw new IllegalArgumentException ("AccountType Invalid value - " + AccountType + " - Reference_ID=117 - A - E - L - M - O - R"); if (AccountType.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccountType = AccountType.substring(0, 0); + } + set_Value (COLUMNNAME_AccountType, AccountType); + } + + /** Get Account Type. + @return Indicates the type of account + */ + public String getAccountType () + { + return (String)get_Value(COLUMNNAME_AccountType); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID <= 0) set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID < 1) + throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Element getI_C_Element() throws Exception + { + 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 e; + } + return result; + } + + /** Set Element. + @param C_Element_ID + Accounting Element + */ + public void setC_Element_ID (int C_Element_ID) + { + if (C_Element_ID < 1) + throw new IllegalArgumentException ("C_Element_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + } + + /** Get Element. + @return Accounting Element + */ + public int getC_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Bank Account. + @param IsBankAccount + Indicates if this is the Bank Account + */ + public void setIsBankAccount (boolean IsBankAccount) + { + set_Value (COLUMNNAME_IsBankAccount, Boolean.valueOf(IsBankAccount)); + } + + /** Get Bank Account. + @return Indicates if this is the Bank Account + */ + public boolean isBankAccount () + { + Object oo = get_Value(COLUMNNAME_IsBankAccount); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Document Controlled. + @param IsDocControlled + Control account - If an account is controlled by a document, you cannot post manually to it + */ + public void setIsDocControlled (boolean IsDocControlled) + { + set_Value (COLUMNNAME_IsDocControlled, Boolean.valueOf(IsDocControlled)); + } + + /** Get Document Controlled. + @return Control account - If an account is controlled by a document, you cannot post manually to it + */ + public boolean isDocControlled () + { + Object oo = get_Value(COLUMNNAME_IsDocControlled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Foreign Currency Account. + @param IsForeignCurrency + Balances in foreign currency accounts are held in the nominated currency + */ + public void setIsForeignCurrency (boolean IsForeignCurrency) + { + set_Value (COLUMNNAME_IsForeignCurrency, Boolean.valueOf(IsForeignCurrency)); + } + + /** Get Foreign Currency Account. + @return Balances in foreign currency accounts are held in the nominated currency + */ + public boolean isForeignCurrency () + { + Object oo = get_Value(COLUMNNAME_IsForeignCurrency); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Post Actual. + @param PostActual + Actual Values can be posted + */ + public void setPostActual (boolean PostActual) + { + set_Value (COLUMNNAME_PostActual, Boolean.valueOf(PostActual)); + } + + /** Get Post Actual. + @return Actual Values can be posted + */ + public boolean isPostActual () + { + Object oo = get_Value(COLUMNNAME_PostActual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Budget. + @param PostBudget + Budget values can be posted + */ + public void setPostBudget (boolean PostBudget) + { + set_Value (COLUMNNAME_PostBudget, Boolean.valueOf(PostBudget)); + } + + /** Get Post Budget. + @return Budget values can be posted + */ + public boolean isPostBudget () + { + Object oo = get_Value(COLUMNNAME_PostBudget); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Encumbrance. + @param PostEncumbrance + Post commitments to this account + */ + public void setPostEncumbrance (boolean PostEncumbrance) + { + set_Value (COLUMNNAME_PostEncumbrance, Boolean.valueOf(PostEncumbrance)); + } + + /** Get Post Encumbrance. + @return Post commitments to this account + */ + public boolean isPostEncumbrance () + { + Object oo = get_Value(COLUMNNAME_PostEncumbrance); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Statistical. + @param PostStatistical + Post statistical quantities to this account? + */ + public void setPostStatistical (boolean PostStatistical) + { + set_Value (COLUMNNAME_PostStatistical, Boolean.valueOf(PostStatistical)); + } + + /** Get Post Statistical. + @return Post statistical quantities to this account? + */ + public boolean isPostStatistical () + { + Object oo = get_Value(COLUMNNAME_PostStatistical); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Greeting.java b/base/src/org/compiere/model/X_C_Greeting.java index 5eb7cf5fa3..7d0ab4bdc8 100644 --- a/base/src/org/compiere/model/X_C_Greeting.java +++ b/base/src/org/compiere/model/X_C_Greeting.java @@ -1,211 +1,200 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Greeting - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Greeting extends PO + +/** Generated Model for C_Greeting + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Greeting extends PO implements I_C_Greeting, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Greeting_ID id -@param trxName transaction -*/ -public X_C_Greeting (Properties ctx, int C_Greeting_ID, String trxName) -{ -super (ctx, C_Greeting_ID, trxName); -/** if (C_Greeting_ID == 0) -{ -setC_Greeting_ID (0); -setIsDefault (false); -setIsFirstNameOnly (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Greeting (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Greeting */ -public static final String Table_Name="C_Greeting"; - -/** AD_Table_ID=346 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Greeting[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Greeting. -@param C_Greeting_ID Greeting to print on correspondence */ -public void setC_Greeting_ID (int C_Greeting_ID) -{ -if (C_Greeting_ID < 1) throw new IllegalArgumentException ("C_Greeting_ID is mandatory."); -set_ValueNoCheck ("C_Greeting_ID", Integer.valueOf(C_Greeting_ID)); -} -/** Get Greeting. -@return Greeting to print on correspondence */ -public int getC_Greeting_ID() -{ -Integer ii = (Integer)get_Value("C_Greeting_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Greeting_ID */ -public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; -/** Set Greeting. -@param Greeting For letters, e.g. "Dear -{ -0} -" or "Dear Mr. -{ -0} -" - At runtime, " -{ -0} -" is replaced by the name */ -public void setGreeting (String Greeting) -{ -if (Greeting != null && Greeting.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Greeting = Greeting.substring(0,59); -} -set_Value ("Greeting", Greeting); -} -/** Get Greeting. -@return For letters, e.g. "Dear -{ -0} -" or "Dear Mr. -{ -0} -" - At runtime, " -{ -0} -" is replaced by the name */ -public String getGreeting() -{ -return (String)get_Value("Greeting"); -} -/** Column name Greeting */ -public static final String COLUMNNAME_Greeting = "Greeting"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set First name only. -@param IsFirstNameOnly Print only the first name in greetings */ -public void setIsFirstNameOnly (boolean IsFirstNameOnly) -{ -set_Value ("IsFirstNameOnly", Boolean.valueOf(IsFirstNameOnly)); -} -/** Get First name only. -@return Print only the first name in greetings */ -public boolean isFirstNameOnly() -{ -Object oo = get_Value("IsFirstNameOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFirstNameOnly */ -public static final String COLUMNNAME_IsFirstNameOnly = "IsFirstNameOnly"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Greeting (Properties ctx, int C_Greeting_ID, String trxName) + { + super (ctx, C_Greeting_ID, trxName); + /** if (C_Greeting_ID == 0) { setC_Greeting_ID (0); + setIsDefault (false); + setIsFirstNameOnly (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Greeting (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Greeting[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Greeting. + @param C_Greeting_ID + Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID) + { + if (C_Greeting_ID < 1) + throw new IllegalArgumentException ("C_Greeting_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + } + + /** Get Greeting. + @return Greeting to print on correspondence + */ + public int getC_Greeting_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Greeting. + @param Greeting + For letters, e.g. "Dear {0}" or "Dear Mr. {0}" - At runtime, "{0}" is replaced by the name + */ + public void setGreeting (String Greeting) + { + if (Greeting != null && Greeting.length() > 60) + { + log.warning("Length > 60 - truncated"); + Greeting = Greeting.substring(0, 59); + } + set_Value (COLUMNNAME_Greeting, Greeting); + } + + /** Get Greeting. + @return For letters, e.g. "Dear {0}" or "Dear Mr. {0}" - At runtime, "{0}" is replaced by the name + */ + public String getGreeting () + { + return (String)get_Value(COLUMNNAME_Greeting); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set First name only. + @param IsFirstNameOnly + Print only the first name in greetings + */ + public void setIsFirstNameOnly (boolean IsFirstNameOnly) + { + set_Value (COLUMNNAME_IsFirstNameOnly, Boolean.valueOf(IsFirstNameOnly)); + } + + /** Get First name only. + @return Print only the first name in greetings + */ + public boolean isFirstNameOnly () + { + Object oo = get_Value(COLUMNNAME_IsFirstNameOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 15b8e20ae7..eb445210dc 100644 --- a/base/src/org/compiere/model/X_C_InterOrg_Acct.java +++ b/base/src/org/compiere/model/X_C_InterOrg_Acct.java @@ -1,160 +1,178 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InterOrg_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InterOrg_Acct extends PO + +/** Generated Model for C_InterOrg_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InterOrg_Acct extends PO implements I_C_InterOrg_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InterOrg_Acct_ID id -@param trxName transaction -*/ -public X_C_InterOrg_Acct (Properties ctx, int C_InterOrg_Acct_ID, String trxName) -{ -super (ctx, C_InterOrg_Acct_ID, trxName); -/** if (C_InterOrg_Acct_ID == 0) -{ -setAD_OrgTo_ID (0); -setC_AcctSchema_ID (0); -setIntercompanyDueFrom_Acct (0); -setIntercompanyDueTo_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InterOrg_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InterOrg_Acct */ -public static final String Table_Name="C_InterOrg_Acct"; - -/** AD_Table_ID=397 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InterOrg_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InterOrg_Acct (Properties ctx, int C_InterOrg_Acct_ID, String trxName) + { + super (ctx, C_InterOrg_Acct_ID, trxName); + /** if (C_InterOrg_Acct_ID == 0) { setAD_OrgTo_ID (0); + setC_AcctSchema_ID (0); + setIntercompanyDueFrom_Acct (0); + setIntercompanyDueTo_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_InterOrg_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InterOrg_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTo_ID AD_Reference_ID=130 */ public static final int AD_ORGTO_ID_AD_Reference_ID=130; -/** Set Inter-Organization. -@param AD_OrgTo_ID Organization valid for intercompany documents */ -public void setAD_OrgTo_ID (int AD_OrgTo_ID) -{ -if (AD_OrgTo_ID < 1) throw new IllegalArgumentException ("AD_OrgTo_ID is mandatory."); -set_ValueNoCheck ("AD_OrgTo_ID", Integer.valueOf(AD_OrgTo_ID)); -} -/** Get Inter-Organization. -@return Organization valid for intercompany documents */ -public int getAD_OrgTo_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTo_ID */ -public static final String COLUMNNAME_AD_OrgTo_ID = "AD_OrgTo_ID"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Intercompany Due From Acct. -@param IntercompanyDueFrom_Acct Intercompany Due From / Receivables Account */ -public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct) -{ -set_Value ("IntercompanyDueFrom_Acct", Integer.valueOf(IntercompanyDueFrom_Acct)); -} -/** Get Intercompany Due From Acct. -@return Intercompany Due From / Receivables Account */ -public int getIntercompanyDueFrom_Acct() -{ -Integer ii = (Integer)get_Value("IntercompanyDueFrom_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IntercompanyDueFrom_Acct */ -public static final String COLUMNNAME_IntercompanyDueFrom_Acct = "IntercompanyDueFrom_Acct"; -/** Set Intercompany Due To Acct. -@param IntercompanyDueTo_Acct Intercompany Due To / Payable Account */ -public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct) -{ -set_Value ("IntercompanyDueTo_Acct", Integer.valueOf(IntercompanyDueTo_Acct)); -} -/** Get Intercompany Due To Acct. -@return Intercompany Due To / Payable Account */ -public int getIntercompanyDueTo_Acct() -{ -Integer ii = (Integer)get_Value("IntercompanyDueTo_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IntercompanyDueTo_Acct */ -public static final String COLUMNNAME_IntercompanyDueTo_Acct = "IntercompanyDueTo_Acct"; -} + /** Set Inter-Organization. + @param AD_OrgTo_ID + Organization valid for intercompany documents + */ + public void setAD_OrgTo_ID (int AD_OrgTo_ID) + { + if (AD_OrgTo_ID < 1) + throw new IllegalArgumentException ("AD_OrgTo_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_OrgTo_ID, Integer.valueOf(AD_OrgTo_ID)); + } + + /** Get Inter-Organization. + @return Organization valid for intercompany documents + */ + public int getAD_OrgTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Intercompany Due From Acct. + @param IntercompanyDueFrom_Acct + Intercompany Due From / Receivables Account + */ + public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct) + { + set_Value (COLUMNNAME_IntercompanyDueFrom_Acct, Integer.valueOf(IntercompanyDueFrom_Acct)); + } + + /** Get Intercompany Due From Acct. + @return Intercompany Due From / Receivables Account + */ + public int getIntercompanyDueFrom_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IntercompanyDueFrom_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Intercompany Due To Acct. + @param IntercompanyDueTo_Acct + Intercompany Due To / Payable Account + */ + public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct) + { + set_Value (COLUMNNAME_IntercompanyDueTo_Acct, Integer.valueOf(IntercompanyDueTo_Acct)); + } + + /** Get Intercompany Due To Acct. + @return Intercompany Due To / Payable Account + */ + public int getIntercompanyDueTo_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IntercompanyDueTo_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Invoice.java b/base/src/org/compiere/model/X_C_Invoice.java index d158ee70af..8f8741e899 100644 --- a/base/src/org/compiere/model/X_C_Invoice.java +++ b/base/src/org/compiere/model/X_C_Invoice.java @@ -1,1220 +1,1546 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Invoice - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Invoice extends PO + +/** Generated Model for C_Invoice + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Invoice_ID id -@param trxName transaction -*/ -public X_C_Invoice (Properties ctx, int C_Invoice_ID, String trxName) -{ -super (ctx, C_Invoice_ID, trxName); -/** if (C_Invoice_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_Currency_ID (0); // @C_Currency_ID@ -setC_DocTypeTarget_ID (0); -setC_DocType_ID (0); // 0 -setC_Invoice_ID (0); -setC_PaymentTerm_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDateInvoiced (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setGrandTotal (Env.ZERO); -setIsApproved (false); // @IsApproved@ -setIsDiscountPrinted (false); -setIsInDispute (false); // N -setIsPaid (false); -setIsPayScheduleValid (false); -setIsPrinted (false); -setIsSOTrx (false); // @IsSOTrx@ -setIsSelfService (false); -setIsTaxIncluded (false); -setIsTransferred (false); -setM_PriceList_ID (0); -setPaymentRule (null); // P -setPosted (false); // N -setProcessed (false); -setSendEMail (false); -setTotalLines (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Invoice (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Invoice */ -public static final String Table_Name="C_Invoice"; - -/** AD_Table_ID=318 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Invoice[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Invoice (Properties ctx, int C_Invoice_ID, String trxName) + { + super (ctx, C_Invoice_ID, trxName); + /** if (C_Invoice_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_DocTypeTarget_ID (0); + setC_DocType_ID (0); +// 0 + setC_Invoice_ID (0); + setC_PaymentTerm_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateInvoiced (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setGrandTotal (Env.ZERO); + setIsApproved (false); +// @IsApproved@ + setIsDiscountPrinted (false); + setIsInDispute (false); +// N + setIsPaid (false); + setIsPayScheduleValid (false); + setIsPrinted (false); + setIsSOTrx (false); +// @IsSOTrx@ + setIsSelfService (false); + setIsTaxIncluded (false); + setIsTransferred (false); + setM_PriceList_ID (0); + setPaymentRule (null); +// P + setPosted (false); +// N + setProcessed (false); + setSendEMail (false); + setTotalLines (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_Invoice (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Invoice[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Cash Journal Line. -@param C_CashLine_ID Cash Journal Line */ -public void setC_CashLine_ID (int C_CashLine_ID) -{ -if (C_CashLine_ID <= 0) set_Value ("C_CashLine_ID", null); - else -set_Value ("C_CashLine_ID", Integer.valueOf(C_CashLine_ID)); -} -/** Get Cash Journal Line. -@return Cash Journal Line */ -public int getC_CashLine_ID() -{ -Integer ii = (Integer)get_Value("C_CashLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashLine_ID */ -public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID <= 0) set_Value (COLUMNNAME_C_CashLine_ID, null); + else + set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Charge_ID AD_Reference_ID=200 */ public static final int C_CHARGE_ID_AD_Reference_ID=200; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID <= 0) set_Value ("C_ConversionType_ID", null); - else -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeTarget_ID AD_Reference_ID=170 */ public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170; -/** Set Target Document Type. -@param C_DocTypeTarget_ID Target document type for conversing documents */ -public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) -{ -if (C_DocTypeTarget_ID < 1) throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); -set_Value ("C_DocTypeTarget_ID", Integer.valueOf(C_DocTypeTarget_ID)); -} -/** Get Target Document Type. -@return Target document type for conversing documents */ -public int getC_DocTypeTarget_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeTarget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeTarget_ID */ -public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_ValueNoCheck ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID < 1) throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Copy From. -@param CopyFrom Copy From Record */ -public void setCopyFrom (String CopyFrom) -{ -if (CopyFrom != null && CopyFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CopyFrom = CopyFrom.substring(0,0); -} -set_Value ("CopyFrom", CopyFrom); -} -/** Get Copy From. -@return Copy From Record */ -public String getCopyFrom() -{ -return (String)get_Value("CopyFrom"); -} -/** Column name CopyFrom */ -public static final String COLUMNNAME_CopyFrom = "CopyFrom"; -/** Set Create lines from. -@param CreateFrom Process which will generate a new document lines based on an existing document */ -public void setCreateFrom (String CreateFrom) -{ -if (CreateFrom != null && CreateFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateFrom = CreateFrom.substring(0,0); -} -set_Value ("CreateFrom", CreateFrom); -} -/** Get Create lines from. -@return Process which will generate a new document lines based on an existing document */ -public String getCreateFrom() -{ -return (String)get_Value("CreateFrom"); -} -/** Column name CreateFrom */ -public static final String COLUMNNAME_CreateFrom = "CreateFrom"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Date Invoiced. -@param DateInvoiced Date printed on Invoice */ -public void setDateInvoiced (Timestamp DateInvoiced) -{ -if (DateInvoiced == null) throw new IllegalArgumentException ("DateInvoiced is mandatory."); -set_Value ("DateInvoiced", DateInvoiced); -} -/** Get Date Invoiced. -@return Date printed on Invoice */ -public Timestamp getDateInvoiced() -{ -return (Timestamp)get_Value("DateInvoiced"); -} -/** Column name DateInvoiced */ -public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; -/** Set Date Ordered. -@param DateOrdered Date of Order */ -public void setDateOrdered (Timestamp DateOrdered) -{ -set_ValueNoCheck ("DateOrdered", DateOrdered); -} -/** Get Date Ordered. -@return Date of Order */ -public Timestamp getDateOrdered() -{ -return (Timestamp)get_Value("DateOrdered"); -} -/** Column name DateOrdered */ -public static final String COLUMNNAME_DateOrdered = "DateOrdered"; -/** Set Date printed. -@param DatePrinted Date the document was printed. */ -public void setDatePrinted (Timestamp DatePrinted) -{ -set_Value ("DatePrinted", DatePrinted); -} -/** Get Date printed. -@return Date the document was printed. */ -public Timestamp getDatePrinted() -{ -return (Timestamp)get_Value("DatePrinted"); -} -/** Column name DatePrinted */ -public static final String COLUMNNAME_DatePrinted = "DatePrinted"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Target Document Type. + @param C_DocTypeTarget_ID + Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) + { + if (C_DocTypeTarget_ID < 1) + throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); + set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + } + + /** Get Target Document Type. + @return Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Invoiced. + @param DateInvoiced + Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced) + { + if (DateInvoiced == null) + throw new IllegalArgumentException ("DateInvoiced is mandatory."); + set_Value (COLUMNNAME_DateInvoiced, DateInvoiced); + } + + /** Get Date Invoiced. + @return Date printed on Invoice + */ + public Timestamp getDateInvoiced () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvoiced); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + set_ValueNoCheck (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date printed. + @param DatePrinted + Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted) + { + set_Value (COLUMNNAME_DatePrinted, DatePrinted); + } + + /** Get Date printed. + @return Date the document was printed. + */ + public Timestamp getDatePrinted () + { + return (Timestamp)get_Value(COLUMNNAME_DatePrinted); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Generate To. -@param GenerateTo Generate To */ -public void setGenerateTo (String GenerateTo) -{ -if (GenerateTo != null && GenerateTo.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GenerateTo = GenerateTo.substring(0,0); -} -set_Value ("GenerateTo", GenerateTo); -} -/** Get Generate To. -@return Generate To */ -public String getGenerateTo() -{ -return (String)get_Value("GenerateTo"); -} -/** Column name GenerateTo */ -public static final String COLUMNNAME_GenerateTo = "GenerateTo"; -/** Set Grand Total. -@param GrandTotal Total amount of document */ -public void setGrandTotal (BigDecimal GrandTotal) -{ -if (GrandTotal == null) throw new IllegalArgumentException ("GrandTotal is mandatory."); -set_ValueNoCheck ("GrandTotal", GrandTotal); -} -/** Get Grand Total. -@return Total amount of document */ -public BigDecimal getGrandTotal() -{ -BigDecimal bd = (BigDecimal)get_Value("GrandTotal"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrandTotal */ -public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Generate To. + @param GenerateTo + Generate To + */ + public void setGenerateTo (String GenerateTo) + { + if (GenerateTo != null && GenerateTo.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateTo = GenerateTo.substring(0, 0); + } + set_Value (COLUMNNAME_GenerateTo, GenerateTo); + } + + /** Get Generate To. + @return Generate To + */ + public String getGenerateTo () + { + return (String)get_Value(COLUMNNAME_GenerateTo); + } + + /** Set Grand Total. + @param GrandTotal + Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal) + { + if (GrandTotal == null) + throw new IllegalArgumentException ("GrandTotal is mandatory."); + set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); + } + + /** Get Grand Total. + @return Total amount of document + */ + public BigDecimal getGrandTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal); + if (bd == null) + return Env.ZERO; + return bd; + } /** InvoiceCollectionType AD_Reference_ID=394 */ -public static final int INVOICECOLLECTIONTYPE_AD_Reference_ID=394; -/** Collection Agency = C */ -public static final String INVOICECOLLECTIONTYPE_CollectionAgency = "C"; -/** Dunning = D */ -public static final String INVOICECOLLECTIONTYPE_Dunning = "D"; -/** Legal Procedure = L */ -public static final String INVOICECOLLECTIONTYPE_LegalProcedure = "L"; -/** Uncollectable = U */ +public static final int INVOICECOLLECTIONTYPE_AD_Reference_ID=394;/** Collection Agency = C */ +public static final String INVOICECOLLECTIONTYPE_CollectionAgency = "C";/** Dunning = D */ +public static final String INVOICECOLLECTIONTYPE_Dunning = "D";/** Legal Procedure = L */ +public static final String INVOICECOLLECTIONTYPE_LegalProcedure = "L";/** Uncollectable = U */ public static final String INVOICECOLLECTIONTYPE_Uncollectable = "U"; -/** Set Collection Status. -@param InvoiceCollectionType Invoice Collection Status */ -public void setInvoiceCollectionType (String InvoiceCollectionType) -{ -if (InvoiceCollectionType == null || InvoiceCollectionType.equals("C") || InvoiceCollectionType.equals("D") || InvoiceCollectionType.equals("L") || InvoiceCollectionType.equals("U")); - else throw new IllegalArgumentException ("InvoiceCollectionType Invalid value - " + InvoiceCollectionType + " - Reference_ID=394 - C - D - L - U"); -if (InvoiceCollectionType != null && InvoiceCollectionType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceCollectionType = InvoiceCollectionType.substring(0,0); -} -set_Value ("InvoiceCollectionType", InvoiceCollectionType); -} -/** Get Collection Status. -@return Invoice Collection Status */ -public String getInvoiceCollectionType() -{ -return (String)get_Value("InvoiceCollectionType"); -} -/** Column name InvoiceCollectionType */ -public static final String COLUMNNAME_InvoiceCollectionType = "InvoiceCollectionType"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_ValueNoCheck ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Discount Printed. -@param IsDiscountPrinted Print Discount on Invoice and Order */ -public void setIsDiscountPrinted (boolean IsDiscountPrinted) -{ -set_Value ("IsDiscountPrinted", Boolean.valueOf(IsDiscountPrinted)); -} -/** Get Discount Printed. -@return Print Discount on Invoice and Order */ -public boolean isDiscountPrinted() -{ -Object oo = get_Value("IsDiscountPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDiscountPrinted */ -public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; -/** Set In Dispute. -@param IsInDispute Document is in dispute */ -public void setIsInDispute (boolean IsInDispute) -{ -set_Value ("IsInDispute", Boolean.valueOf(IsInDispute)); -} -/** Get In Dispute. -@return Document is in dispute */ -public boolean isInDispute() -{ -Object oo = get_Value("IsInDispute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInDispute */ -public static final String COLUMNNAME_IsInDispute = "IsInDispute"; -/** Set Paid. -@param IsPaid The document is paid */ -public void setIsPaid (boolean IsPaid) -{ -set_Value ("IsPaid", Boolean.valueOf(IsPaid)); -} -/** Get Paid. -@return The document is paid */ -public boolean isPaid() -{ -Object oo = get_Value("IsPaid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPaid */ -public static final String COLUMNNAME_IsPaid = "IsPaid"; -/** Set Pay Schedule valid. -@param IsPayScheduleValid Is the Payment Schedule is valid */ -public void setIsPayScheduleValid (boolean IsPayScheduleValid) -{ -set_ValueNoCheck ("IsPayScheduleValid", Boolean.valueOf(IsPayScheduleValid)); -} -/** Get Pay Schedule valid. -@return Is the Payment Schedule is valid */ -public boolean isPayScheduleValid() -{ -Object oo = get_Value("IsPayScheduleValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPayScheduleValid */ -public static final String COLUMNNAME_IsPayScheduleValid = "IsPayScheduleValid"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_ValueNoCheck ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_ValueNoCheck ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Transferred. -@param IsTransferred Transferred to General Ledger (i.e. accounted) */ -public void setIsTransferred (boolean IsTransferred) -{ -set_ValueNoCheck ("IsTransferred", Boolean.valueOf(IsTransferred)); -} -/** Get Transferred. -@return Transferred to General Ledger (i.e. accounted) */ -public boolean isTransferred() -{ -Object oo = get_Value("IsTransferred"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTransferred */ -public static final String COLUMNNAME_IsTransferred = "IsTransferred"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set RMA. -@param M_RMA_ID Return Material Authorization */ -public void setM_RMA_ID (int M_RMA_ID) -{ -if (M_RMA_ID <= 0) set_Value ("M_RMA_ID", null); - else -set_Value ("M_RMA_ID", Integer.valueOf(M_RMA_ID)); -} -/** Get RMA. -@return Return Material Authorization */ -public int getM_RMA_ID() -{ -Integer ii = (Integer)get_Value("M_RMA_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMA_ID */ -public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; -/** Set Order Reference. -@param POReference Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public void setPOReference (String POReference) -{ -if (POReference != null && POReference.length() > 20) -{ -log.warning("Length > 20 - truncated"); -POReference = POReference.substring(0,19); -} -set_Value ("POReference", POReference); -} -/** Get Order Reference. -@return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public String getPOReference() -{ -return (String)get_Value("POReference"); -} -/** Column name POReference */ -public static final String COLUMNNAME_POReference = "POReference"; + /** Set Collection Status. + @param InvoiceCollectionType + Invoice Collection Status + */ + public void setInvoiceCollectionType (String InvoiceCollectionType) + { +if (InvoiceCollectionType == null || InvoiceCollectionType.equals("C") || InvoiceCollectionType.equals("D") || InvoiceCollectionType.equals("L") || InvoiceCollectionType.equals("U")); else throw new IllegalArgumentException ("InvoiceCollectionType Invalid value - " + InvoiceCollectionType + " - Reference_ID=394 - C - D - L - U"); if (InvoiceCollectionType != null && InvoiceCollectionType.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceCollectionType = InvoiceCollectionType.substring(0, 0); + } + set_Value (COLUMNNAME_InvoiceCollectionType, InvoiceCollectionType); + } + + /** Get Collection Status. + @return Invoice Collection Status + */ + public String getInvoiceCollectionType () + { + return (String)get_Value(COLUMNNAME_InvoiceCollectionType); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Dispute. + @param IsInDispute + Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute) + { + set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute)); + } + + /** Get In Dispute. + @return Document is in dispute + */ + public boolean isInDispute () + { + Object oo = get_Value(COLUMNNAME_IsInDispute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Paid. + @param IsPaid + The document is paid + */ + public void setIsPaid (boolean IsPaid) + { + set_Value (COLUMNNAME_IsPaid, Boolean.valueOf(IsPaid)); + } + + /** Get Paid. + @return The document is paid + */ + public boolean isPaid () + { + Object oo = get_Value(COLUMNNAME_IsPaid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pay Schedule valid. + @param IsPayScheduleValid + Is the Payment Schedule is valid + */ + public void setIsPayScheduleValid (boolean IsPayScheduleValid) + { + set_ValueNoCheck (COLUMNNAME_IsPayScheduleValid, Boolean.valueOf(IsPayScheduleValid)); + } + + /** Get Pay Schedule valid. + @return Is the Payment Schedule is valid + */ + public boolean isPayScheduleValid () + { + Object oo = get_Value(COLUMNNAME_IsPayScheduleValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_ValueNoCheck (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Transferred. + @param IsTransferred + Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred) + { + set_ValueNoCheck (COLUMNNAME_IsTransferred, Boolean.valueOf(IsTransferred)); + } + + /** Get Transferred. + @return Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred () + { + Object oo = get_Value(COLUMNNAME_IsTransferred); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getI_M_RMA() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID <= 0) set_Value (COLUMNNAME_M_RMA_ID, null); + else + set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 19); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); -if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_Value ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Referenced Invoice. -@param Ref_Invoice_ID Referenced Invoice */ -public void setRef_Invoice_ID (int Ref_Invoice_ID) -{ -if (Ref_Invoice_ID <= 0) set_Value ("Ref_Invoice_ID", null); - else -set_Value ("Ref_Invoice_ID", Integer.valueOf(Ref_Invoice_ID)); -} -/** Get Referenced Invoice. -@return Referenced Invoice */ -public int getRef_Invoice_ID() -{ -Integer ii = (Integer)get_Value("Ref_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_Invoice_ID */ -public static final String COLUMNNAME_Ref_Invoice_ID = "Ref_Invoice_ID"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Referenced Invoice. + @param Ref_Invoice_ID Referenced Invoice */ + public void setRef_Invoice_ID (int Ref_Invoice_ID) + { + if (Ref_Invoice_ID <= 0) set_Value (COLUMNNAME_Ref_Invoice_ID, null); + else + set_Value (COLUMNNAME_Ref_Invoice_ID, Integer.valueOf(Ref_Invoice_ID)); + } + + /** Get Referenced Invoice. +@return Referenced Invoice */ + public int getRef_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Send EMail. -@param SendEMail Enable sending Document EMail */ -public void setSendEMail (boolean SendEMail) -{ -set_Value ("SendEMail", Boolean.valueOf(SendEMail)); -} -/** Get Send EMail. -@return Enable sending Document EMail */ -public boolean isSendEMail() -{ -Object oo = get_Value("SendEMail"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendEMail */ -public static final String COLUMNNAME_SendEMail = "SendEMail"; -/** Set Total Lines. -@param TotalLines Total of all document lines */ -public void setTotalLines (BigDecimal TotalLines) -{ -if (TotalLines == null) throw new IllegalArgumentException ("TotalLines is mandatory."); -set_ValueNoCheck ("TotalLines", TotalLines); -} -/** Get Total Lines. -@return Total of all document lines */ -public BigDecimal getTotalLines() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalLines"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalLines */ -public static final String COLUMNNAME_TotalLines = "TotalLines"; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Lines. + @param TotalLines + Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines) + { + if (TotalLines == null) + throw new IllegalArgumentException ("TotalLines is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines); + } + + /** Get Total Lines. + @return Total of all document lines + */ + public BigDecimal getTotalLines () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_InvoiceBatch.java b/base/src/org/compiere/model/X_C_InvoiceBatch.java index a56c0fdb6a..c8bf98a1e2 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatch.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatch.java @@ -1,322 +1,393 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InvoiceBatch - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InvoiceBatch extends PO + +/** Generated Model for C_InvoiceBatch + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InvoiceBatch extends PO implements I_C_InvoiceBatch, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InvoiceBatch_ID id -@param trxName transaction -*/ -public X_C_InvoiceBatch (Properties ctx, int C_InvoiceBatch_ID, String trxName) -{ -super (ctx, C_InvoiceBatch_ID, trxName); -/** if (C_InvoiceBatch_ID == 0) -{ -setC_Currency_ID (0); // @$C_Currency_ID@ -setC_InvoiceBatch_ID (0); -setControlAmt (Env.ZERO); // 0 -setDateDoc (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDocumentAmt (Env.ZERO); -setDocumentNo (null); -setIsSOTrx (false); // N -setProcessed (false); -setSalesRep_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InvoiceBatch (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InvoiceBatch */ -public static final String Table_Name="C_InvoiceBatch"; - -/** AD_Table_ID=767 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InvoiceBatch[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID <= 0) set_Value ("C_ConversionType_ID", null); - else -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice Batch. -@param C_InvoiceBatch_ID Expense Invoice Batch Header */ -public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID) -{ -if (C_InvoiceBatch_ID < 1) throw new IllegalArgumentException ("C_InvoiceBatch_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceBatch_ID", Integer.valueOf(C_InvoiceBatch_ID)); -} -/** Get Invoice Batch. -@return Expense Invoice Batch Header */ -public int getC_InvoiceBatch_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceBatch_ID */ -public static final String COLUMNNAME_C_InvoiceBatch_ID = "C_InvoiceBatch_ID"; -/** Set Control Amount. -@param ControlAmt If not zero, the Debit amount of the document must be equal this amount */ -public void setControlAmt (BigDecimal ControlAmt) -{ -if (ControlAmt == null) throw new IllegalArgumentException ("ControlAmt is mandatory."); -set_Value ("ControlAmt", ControlAmt); -} -/** Get Control Amount. -@return If not zero, the Debit amount of the document must be equal this amount */ -public BigDecimal getControlAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ControlAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ControlAmt */ -public static final String COLUMNNAME_ControlAmt = "ControlAmt"; -/** Set Document Date. -@param DateDoc Date of the Document */ -public void setDateDoc (Timestamp DateDoc) -{ -if (DateDoc == null) throw new IllegalArgumentException ("DateDoc is mandatory."); -set_Value ("DateDoc", DateDoc); -} -/** Get Document Date. -@return Date of the Document */ -public Timestamp getDateDoc() -{ -return (Timestamp)get_Value("DateDoc"); -} -/** Column name DateDoc */ -public static final String COLUMNNAME_DateDoc = "DateDoc"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Amt. -@param DocumentAmt Document Amount */ -public void setDocumentAmt (BigDecimal DocumentAmt) -{ -if (DocumentAmt == null) throw new IllegalArgumentException ("DocumentAmt is mandatory."); -set_ValueNoCheck ("DocumentAmt", DocumentAmt); -} -/** Get Document Amt. -@return Document Amount */ -public BigDecimal getDocumentAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DocumentAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DocumentAmt */ -public static final String COLUMNNAME_DocumentAmt = "DocumentAmt"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InvoiceBatch (Properties ctx, int C_InvoiceBatch_ID, String trxName) + { + super (ctx, C_InvoiceBatch_ID, trxName); + /** if (C_InvoiceBatch_ID == 0) { setC_Currency_ID (0); +// @$C_Currency_ID@ + setC_InvoiceBatch_ID (0); + setControlAmt (Env.ZERO); +// 0 + setDateDoc (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocumentAmt (Env.ZERO); + setDocumentNo (null); + setIsSOTrx (false); +// N + setProcessed (false); + setSalesRep_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_InvoiceBatch (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InvoiceBatch[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Batch. + @param C_InvoiceBatch_ID + Expense Invoice Batch Header + */ + public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID) + { + if (C_InvoiceBatch_ID < 1) + throw new IllegalArgumentException ("C_InvoiceBatch_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, Integer.valueOf(C_InvoiceBatch_ID)); + } + + /** Get Invoice Batch. + @return Expense Invoice Batch Header + */ + public int getC_InvoiceBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Control Amount. + @param ControlAmt + If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt) + { + if (ControlAmt == null) + throw new IllegalArgumentException ("ControlAmt is mandatory."); + set_Value (COLUMNNAME_ControlAmt, ControlAmt); + } + + /** Get Control Amount. + @return If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ControlAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + if (DateDoc == null) + throw new IllegalArgumentException ("DateDoc is mandatory."); + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Amt. + @param DocumentAmt + Document Amount + */ + public void setDocumentAmt (BigDecimal DocumentAmt) + { + if (DocumentAmt == null) + throw new IllegalArgumentException ("DocumentAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_DocumentAmt, DocumentAmt); + } + + /** Get Document Amt. + @return Document Amount + */ + public BigDecimal getDocumentAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DocumentAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java index 1e6a32589b..4255f1d408 100644 --- a/base/src/org/compiere/model/X_C_InvoiceBatchLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceBatchLine.java @@ -1,595 +1,801 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InvoiceBatchLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InvoiceBatchLine extends PO + +/** Generated Model for C_InvoiceBatchLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InvoiceBatchLine extends PO implements I_C_InvoiceBatchLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InvoiceBatchLine_ID id -@param trxName transaction -*/ -public X_C_InvoiceBatchLine (Properties ctx, int C_InvoiceBatchLine_ID, String trxName) -{ -super (ctx, C_InvoiceBatchLine_ID, trxName); -/** if (C_InvoiceBatchLine_ID == 0) -{ -setC_BPartner_ID (0); // @C_BPartner_ID@ -setC_BPartner_Location_ID (0); // @C_BPartner_Location_ID@ -setC_Charge_ID (0); -setC_DocType_ID (0); // @C_DocType_ID@ -setC_InvoiceBatchLine_ID (0); -setC_InvoiceBatch_ID (0); -setC_Tax_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @DateAcct@; -@DateDoc@ -setDateInvoiced (new Timestamp(System.currentTimeMillis())); // @DateInvoiced@; -@DateDoc@ -setDocumentNo (null); // @DocumentNo@ -setIsTaxIncluded (false); // @IsTaxIncluded@ -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_InvoiceBatchLine WHERE C_InvoiceBatch_ID=@C_InvoiceBatch_ID@ -setLineNetAmt (Env.ZERO); -setLineTotalAmt (Env.ZERO); -setPriceEntered (Env.ZERO); -setProcessed (false); -setQtyEntered (Env.ZERO); // 1 -setTaxAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InvoiceBatchLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InvoiceBatchLine */ -public static final String Table_Name="C_InvoiceBatchLine"; - -/** AD_Table_ID=768 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InvoiceBatchLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InvoiceBatchLine (Properties ctx, int C_InvoiceBatchLine_ID, String trxName) + { + super (ctx, C_InvoiceBatchLine_ID, trxName); + /** if (C_InvoiceBatchLine_ID == 0) { setC_BPartner_ID (0); +// @C_BPartner_ID@ + setC_BPartner_Location_ID (0); +// @C_BPartner_Location_ID@ + setC_Charge_ID (0); + setC_DocType_ID (0); +// @C_DocType_ID@ + setC_InvoiceBatchLine_ID (0); + setC_InvoiceBatch_ID (0); + setC_Tax_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @DateAcct@;@DateDoc@ + setDateInvoiced (new Timestamp(System.currentTimeMillis())); +// @DateInvoiced@;@DateDoc@ + setDocumentNo (null); +// @DocumentNo@ + setIsTaxIncluded (false); +// @IsTaxIncluded@ + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_InvoiceBatchLine WHERE C_InvoiceBatch_ID=@C_InvoiceBatch_ID@ + setLineNetAmt (Env.ZERO); + setLineTotalAmt (Env.ZERO); + setPriceEntered (Env.ZERO); + setProcessed (false); + setQtyEntered (Env.ZERO); +// 1 + setTaxAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_InvoiceBatchLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InvoiceBatchLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID < 1) throw new IllegalArgumentException ("C_Charge_ID is mandatory."); -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Invoice Batch Line. -@param C_InvoiceBatchLine_ID Expense Invoice Batch Line */ -public void setC_InvoiceBatchLine_ID (int C_InvoiceBatchLine_ID) -{ -if (C_InvoiceBatchLine_ID < 1) throw new IllegalArgumentException ("C_InvoiceBatchLine_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceBatchLine_ID", Integer.valueOf(C_InvoiceBatchLine_ID)); -} -/** Get Invoice Batch Line. -@return Expense Invoice Batch Line */ -public int getC_InvoiceBatchLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceBatchLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceBatchLine_ID */ -public static final String COLUMNNAME_C_InvoiceBatchLine_ID = "C_InvoiceBatchLine_ID"; -/** Set Invoice Batch. -@param C_InvoiceBatch_ID Expense Invoice Batch Header */ -public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID) -{ -if (C_InvoiceBatch_ID < 1) throw new IllegalArgumentException ("C_InvoiceBatch_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceBatch_ID", Integer.valueOf(C_InvoiceBatch_ID)); -} -/** Get Invoice Batch. -@return Expense Invoice Batch Header */ -public int getC_InvoiceBatch_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceBatch_ID */ -public static final String COLUMNNAME_C_InvoiceBatch_ID = "C_InvoiceBatch_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_ValueNoCheck ("C_InvoiceLine_ID", null); - else -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_Value ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Date Invoiced. -@param DateInvoiced Date printed on Invoice */ -public void setDateInvoiced (Timestamp DateInvoiced) -{ -if (DateInvoiced == null) throw new IllegalArgumentException ("DateInvoiced is mandatory."); -set_Value ("DateInvoiced", DateInvoiced); -} -/** Get Date Invoiced. -@return Date printed on Invoice */ -public Timestamp getDateInvoiced() -{ -return (Timestamp)get_Value("DateInvoiced"); -} -/** Column name DateInvoiced */ -public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Line Amount. -@param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public void setLineNetAmt (BigDecimal LineNetAmt) -{ -if (LineNetAmt == null) throw new IllegalArgumentException ("LineNetAmt is mandatory."); -set_ValueNoCheck ("LineNetAmt", LineNetAmt); -} -/** Get Line Amount. -@return Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public BigDecimal getLineNetAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineNetAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineNetAmt */ -public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; -/** Set Line Total. -@param LineTotalAmt Total line amount incl. Tax */ -public void setLineTotalAmt (BigDecimal LineTotalAmt) -{ -if (LineTotalAmt == null) throw new IllegalArgumentException ("LineTotalAmt is mandatory."); -set_ValueNoCheck ("LineTotalAmt", LineTotalAmt); -} -/** Get Line Total. -@return Total line amount incl. Tax */ -public BigDecimal getLineTotalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineTotalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineTotalAmt */ -public static final String COLUMNNAME_LineTotalAmt = "LineTotalAmt"; -/** Set Price. -@param PriceEntered Price Entered - the price based on the selected/base UoM */ -public void setPriceEntered (BigDecimal PriceEntered) -{ -if (PriceEntered == null) throw new IllegalArgumentException ("PriceEntered is mandatory."); -set_Value ("PriceEntered", PriceEntered); -} -/** Get Price. -@return Price Entered - the price based on the selected/base UoM */ -public BigDecimal getPriceEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceEntered */ -public static final String COLUMNNAME_PriceEntered = "PriceEntered"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param QtyEntered The Quantity Entered is based on the selected UoM */ -public void setQtyEntered (BigDecimal QtyEntered) -{ -if (QtyEntered == null) throw new IllegalArgumentException ("QtyEntered is mandatory."); -set_Value ("QtyEntered", QtyEntered); -} -/** Get Quantity. -@return The Quantity Entered is based on the selected UoM */ -public BigDecimal getQtyEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyEntered */ -public static final String COLUMNNAME_QtyEntered = "QtyEntered"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -if (TaxAmt == null) throw new IllegalArgumentException ("TaxAmt is mandatory."); -set_Value ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + throw new IllegalArgumentException ("C_Charge_ID is mandatory."); + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Batch Line. + @param C_InvoiceBatchLine_ID + Expense Invoice Batch Line + */ + public void setC_InvoiceBatchLine_ID (int C_InvoiceBatchLine_ID) + { + if (C_InvoiceBatchLine_ID < 1) + throw new IllegalArgumentException ("C_InvoiceBatchLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatchLine_ID, Integer.valueOf(C_InvoiceBatchLine_ID)); + } + + /** Get Invoice Batch Line. + @return Expense Invoice Batch Line + */ + public int getC_InvoiceBatchLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceBatchLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_InvoiceBatch getI_C_InvoiceBatch() throws Exception + { + 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 e; + } + return result; + } + + /** Set Invoice Batch. + @param C_InvoiceBatch_ID + Expense Invoice Batch Header + */ + public void setC_InvoiceBatch_ID (int C_InvoiceBatch_ID) + { + if (C_InvoiceBatch_ID < 1) + throw new IllegalArgumentException ("C_InvoiceBatch_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceBatch_ID, Integer.valueOf(C_InvoiceBatch_ID)); + } + + /** Get Invoice Batch. + @return Expense Invoice Batch Header + */ + public int getC_InvoiceBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Invoiced. + @param DateInvoiced + Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced) + { + if (DateInvoiced == null) + throw new IllegalArgumentException ("DateInvoiced is mandatory."); + set_Value (COLUMNNAME_DateInvoiced, DateInvoiced); + } + + /** Get Date Invoiced. + @return Date printed on Invoice + */ + public Timestamp getDateInvoiced () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvoiced); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Line Amount. + @param LineNetAmt + Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt) + { + if (LineNetAmt == null) + throw new IllegalArgumentException ("LineNetAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); + } + + /** Get Line Amount. + @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Line Total. + @param LineTotalAmt + Total line amount incl. Tax + */ + public void setLineTotalAmt (BigDecimal LineTotalAmt) + { + if (LineTotalAmt == null) + throw new IllegalArgumentException ("LineTotalAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_LineTotalAmt, LineTotalAmt); + } + + /** Get Line Total. + @return Total line amount incl. Tax + */ + public BigDecimal getLineTotalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineTotalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price. + @param PriceEntered + Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered) + { + if (PriceEntered == null) + throw new IllegalArgumentException ("PriceEntered is mandatory."); + set_Value (COLUMNNAME_PriceEntered, PriceEntered); + } + + /** Get Price. + @return Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param QtyEntered + The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered) + { + if (QtyEntered == null) + throw new IllegalArgumentException ("QtyEntered is mandatory."); + set_Value (COLUMNNAME_QtyEntered, QtyEntered); + } + + /** Get Quantity. + @return The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + if (TaxAmt == null) + throw new IllegalArgumentException ("TaxAmt is mandatory."); + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_InvoiceLine.java b/base/src/org/compiere/model/X_C_InvoiceLine.java index d3b7db1f40..66874427e9 100644 --- a/base/src/org/compiere/model/X_C_InvoiceLine.java +++ b/base/src/org/compiere/model/X_C_InvoiceLine.java @@ -1,767 +1,1070 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InvoiceLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InvoiceLine extends PO + +/** Generated Model for C_InvoiceLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InvoiceLine extends PO implements I_C_InvoiceLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InvoiceLine_ID id -@param trxName transaction -*/ -public X_C_InvoiceLine (Properties ctx, int C_InvoiceLine_ID, String trxName) -{ -super (ctx, C_InvoiceLine_ID, trxName); -/** if (C_InvoiceLine_ID == 0) -{ -setC_InvoiceLine_ID (0); -setC_Invoice_ID (0); -setC_Tax_ID (0); -setIsDescription (false); // N -setIsPrinted (true); // Y -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_InvoiceLine WHERE C_Invoice_ID=@C_Invoice_ID@ -setLineNetAmt (Env.ZERO); -setM_AttributeSetInstance_ID (0); -setPriceActual (Env.ZERO); -setPriceEntered (Env.ZERO); -setPriceLimit (Env.ZERO); -setPriceList (Env.ZERO); -setProcessed (false); -setQtyEntered (Env.ZERO); // 1 -setQtyInvoiced (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InvoiceLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InvoiceLine */ -public static final String Table_Name="C_InvoiceLine"; - -/** AD_Table_ID=333 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InvoiceLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InvoiceLine (Properties ctx, int C_InvoiceLine_ID, String trxName) + { + super (ctx, C_InvoiceLine_ID, trxName); + /** if (C_InvoiceLine_ID == 0) { setC_InvoiceLine_ID (0); + setC_Invoice_ID (0); + setC_Tax_ID (0); + setIsDescription (false); +// N + setIsPrinted (true); +// Y + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_InvoiceLine WHERE C_Invoice_ID=@C_Invoice_ID@ + setLineNetAmt (Env.ZERO); + setM_AttributeSetInstance_ID (0); + setPriceActual (Env.ZERO); + setPriceEntered (Env.ZERO); + setPriceLimit (Env.ZERO); + setPriceList (Env.ZERO); + setProcessed (false); + setQtyEntered (Env.ZERO); +// 1 + setQtyInvoiced (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_C_InvoiceLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InvoiceLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID < 1) throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_ValueNoCheck ("C_OrderLine_ID", null); - else -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_ValueNoCheck ("C_ProjectPhase_ID", null); - else -set_ValueNoCheck ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_ValueNoCheck ("C_ProjectTask_ID", null); - else -set_ValueNoCheck ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_Value ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_ValueNoCheck ("C_UOM_ID", null); - else -set_ValueNoCheck ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Description Only. -@param IsDescription if true, the line is just description and no transaction */ -public void setIsDescription (boolean IsDescription) -{ -set_Value ("IsDescription", Boolean.valueOf(IsDescription)); -} -/** Get Description Only. -@return if true, the line is just description and no transaction */ -public boolean isDescription() -{ -Object oo = get_Value("IsDescription"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDescription */ -public static final String COLUMNNAME_IsDescription = "IsDescription"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Line Amount. -@param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public void setLineNetAmt (BigDecimal LineNetAmt) -{ -if (LineNetAmt == null) throw new IllegalArgumentException ("LineNetAmt is mandatory."); -set_ValueNoCheck ("LineNetAmt", LineNetAmt); -} -/** Get Line Amount. -@return Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public BigDecimal getLineNetAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineNetAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineNetAmt */ -public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; -/** Set Line Total. -@param LineTotalAmt Total line amount incl. Tax */ -public void setLineTotalAmt (BigDecimal LineTotalAmt) -{ -set_Value ("LineTotalAmt", LineTotalAmt); -} -/** Get Line Total. -@return Total line amount incl. Tax */ -public BigDecimal getLineTotalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineTotalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineTotalAmt */ -public static final String COLUMNNAME_LineTotalAmt = "LineTotalAmt"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_ValueNoCheck ("M_InOutLine_ID", null); - else -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set RMA Line. -@param M_RMALine_ID Return Material Authorization Line */ -public void setM_RMALine_ID (int M_RMALine_ID) -{ -if (M_RMALine_ID <= 0) set_Value ("M_RMALine_ID", null); - else -set_Value ("M_RMALine_ID", Integer.valueOf(M_RMALine_ID)); -} -/** Get RMA Line. -@return Return Material Authorization Line */ -public int getM_RMALine_ID() -{ -Integer ii = (Integer)get_Value("M_RMALine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMALine_ID */ -public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; -/** Set Unit Price. -@param PriceActual Actual Price */ -public void setPriceActual (BigDecimal PriceActual) -{ -if (PriceActual == null) throw new IllegalArgumentException ("PriceActual is mandatory."); -set_ValueNoCheck ("PriceActual", PriceActual); -} -/** Get Unit Price. -@return Actual Price */ -public BigDecimal getPriceActual() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceActual */ -public static final String COLUMNNAME_PriceActual = "PriceActual"; -/** Set Price. -@param PriceEntered Price Entered - the price based on the selected/base UoM */ -public void setPriceEntered (BigDecimal PriceEntered) -{ -if (PriceEntered == null) throw new IllegalArgumentException ("PriceEntered is mandatory."); -set_Value ("PriceEntered", PriceEntered); -} -/** Get Price. -@return Price Entered - the price based on the selected/base UoM */ -public BigDecimal getPriceEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceEntered */ -public static final String COLUMNNAME_PriceEntered = "PriceEntered"; -/** Set Limit Price. -@param PriceLimit Lowest price for a product */ -public void setPriceLimit (BigDecimal PriceLimit) -{ -if (PriceLimit == null) throw new IllegalArgumentException ("PriceLimit is mandatory."); -set_Value ("PriceLimit", PriceLimit); -} -/** Get Limit Price. -@return Lowest price for a product */ -public BigDecimal getPriceLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimit */ -public static final String COLUMNNAME_PriceLimit = "PriceLimit"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -if (PriceList == null) throw new IllegalArgumentException ("PriceList is mandatory."); -set_Value ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param QtyEntered The Quantity Entered is based on the selected UoM */ -public void setQtyEntered (BigDecimal QtyEntered) -{ -if (QtyEntered == null) throw new IllegalArgumentException ("QtyEntered is mandatory."); -set_Value ("QtyEntered", QtyEntered); -} -/** Get Quantity. -@return The Quantity Entered is based on the selected UoM */ -public BigDecimal getQtyEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyEntered */ -public static final String COLUMNNAME_QtyEntered = "QtyEntered"; -/** Set Quantity Invoiced. -@param QtyInvoiced Invoiced Quantity */ -public void setQtyInvoiced (BigDecimal QtyInvoiced) -{ -if (QtyInvoiced == null) throw new IllegalArgumentException ("QtyInvoiced is mandatory."); -set_Value ("QtyInvoiced", QtyInvoiced); -} -/** Get Quantity Invoiced. -@return Invoiced Quantity */ -public BigDecimal getQtyInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInvoiced */ -public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; -/** Set Revenue Recognition Amt. -@param RRAmt Revenue Recognition Amount */ -public void setRRAmt (BigDecimal RRAmt) -{ -set_Value ("RRAmt", RRAmt); -} -/** Get Revenue Recognition Amt. -@return Revenue Recognition Amount */ -public BigDecimal getRRAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RRAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RRAmt */ -public static final String COLUMNNAME_RRAmt = "RRAmt"; -/** Set Revenue Recognition Start. -@param RRStartDate Revenue Recognition Start Date */ -public void setRRStartDate (Timestamp RRStartDate) -{ -set_Value ("RRStartDate", RRStartDate); -} -/** Get Revenue Recognition Start. -@return Revenue Recognition Start Date */ -public Timestamp getRRStartDate() -{ -return (Timestamp)get_Value("RRStartDate"); -} -/** Column name RRStartDate */ -public static final String COLUMNNAME_RRStartDate = "RRStartDate"; -/** Set Referenced Invoice Line. -@param Ref_InvoiceLine_ID Referenced Invoice Line */ -public void setRef_InvoiceLine_ID (int Ref_InvoiceLine_ID) -{ -if (Ref_InvoiceLine_ID <= 0) set_Value ("Ref_InvoiceLine_ID", null); - else -set_Value ("Ref_InvoiceLine_ID", Integer.valueOf(Ref_InvoiceLine_ID)); -} -/** Get Referenced Invoice Line. -@return Referenced Invoice Line */ -public int getRef_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("Ref_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_InvoiceLine_ID */ -public static final String COLUMNNAME_Ref_InvoiceLine_ID = "Ref_InvoiceLine_ID"; -/** Set Resource Assignment. -@param S_ResourceAssignment_ID Resource Assignment */ -public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) -{ -if (S_ResourceAssignment_ID <= 0) set_ValueNoCheck ("S_ResourceAssignment_ID", null); - else -set_ValueNoCheck ("S_ResourceAssignment_ID", Integer.valueOf(S_ResourceAssignment_ID)); -} -/** Get Resource Assignment. -@return Resource Assignment */ -public int getS_ResourceAssignment_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceAssignment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceAssignment_ID */ -public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -set_Value ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_A_Asset getI_A_Asset() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID < 1) + throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Description Only. + @param IsDescription + if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription) + { + set_Value (COLUMNNAME_IsDescription, Boolean.valueOf(IsDescription)); + } + + /** Get Description Only. + @return if true, the line is just description and no transaction + */ + public boolean isDescription () + { + Object oo = get_Value(COLUMNNAME_IsDescription); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line Amount. + @param LineNetAmt + Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt) + { + if (LineNetAmt == null) + throw new IllegalArgumentException ("LineNetAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); + } + + /** Get Line Amount. + @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Line Total. + @param LineTotalAmt + Total line amount incl. Tax + */ + public void setLineTotalAmt (BigDecimal LineTotalAmt) + { + set_Value (COLUMNNAME_LineTotalAmt, LineTotalAmt); + } + + /** Get Line Total. + @return Total line amount incl. Tax + */ + public BigDecimal getLineTotalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineTotalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMALine getI_M_RMALine() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA Line. + @param M_RMALine_ID + Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID) + { + if (M_RMALine_ID <= 0) set_Value (COLUMNNAME_M_RMALine_ID, null); + else + set_Value (COLUMNNAME_M_RMALine_ID, Integer.valueOf(M_RMALine_ID)); + } + + /** Get RMA Line. + @return Return Material Authorization Line + */ + public int getM_RMALine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMALine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + if (PriceActual == null) + throw new IllegalArgumentException ("PriceActual is mandatory."); + set_ValueNoCheck (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price. + @param PriceEntered + Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered) + { + if (PriceEntered == null) + throw new IllegalArgumentException ("PriceEntered is mandatory."); + set_Value (COLUMNNAME_PriceEntered, PriceEntered); + } + + /** Get Price. + @return Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + if (PriceLimit == null) + throw new IllegalArgumentException ("PriceLimit is mandatory."); + set_Value (COLUMNNAME_PriceLimit, PriceLimit); + } + + /** Get Limit Price. + @return Lowest price for a product + */ + public BigDecimal getPriceLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + if (PriceList == null) + throw new IllegalArgumentException ("PriceList is mandatory."); + set_Value (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param QtyEntered + The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered) + { + if (QtyEntered == null) + throw new IllegalArgumentException ("QtyEntered is mandatory."); + set_Value (COLUMNNAME_QtyEntered, QtyEntered); + } + + /** Get Quantity. + @return The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + if (QtyInvoiced == null) + throw new IllegalArgumentException ("QtyInvoiced is mandatory."); + set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revenue Recognition Amt. + @param RRAmt + Revenue Recognition Amount + */ + public void setRRAmt (BigDecimal RRAmt) + { + set_Value (COLUMNNAME_RRAmt, RRAmt); + } + + /** Get Revenue Recognition Amt. + @return Revenue Recognition Amount + */ + public BigDecimal getRRAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RRAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revenue Recognition Start. + @param RRStartDate + Revenue Recognition Start Date + */ + public void setRRStartDate (Timestamp RRStartDate) + { + set_Value (COLUMNNAME_RRStartDate, RRStartDate); + } + + /** Get Revenue Recognition Start. + @return Revenue Recognition Start Date + */ + public Timestamp getRRStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_RRStartDate); + } + + /** Set Referenced Invoice Line. + @param Ref_InvoiceLine_ID Referenced Invoice Line */ + public void setRef_InvoiceLine_ID (int Ref_InvoiceLine_ID) + { + if (Ref_InvoiceLine_ID <= 0) set_Value (COLUMNNAME_Ref_InvoiceLine_ID, null); + else + set_Value (COLUMNNAME_Ref_InvoiceLine_ID, Integer.valueOf(Ref_InvoiceLine_ID)); + } + + /** Get Referenced Invoice Line. +@return Referenced Invoice Line */ + public int getRef_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Resource Assignment. + @param S_ResourceAssignment_ID + Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) + { + if (S_ResourceAssignment_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_ResourceAssignment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); + } + + /** Get Resource Assignment. + @return Resource Assignment + */ + public int getS_ResourceAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_InvoicePaySchedule.java b/base/src/org/compiere/model/X_C_InvoicePaySchedule.java index cfded37de8..3bd40a7852 100644 --- a/base/src/org/compiere/model/X_C_InvoicePaySchedule.java +++ b/base/src/org/compiere/model/X_C_InvoicePaySchedule.java @@ -1,277 +1,321 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InvoicePaySchedule - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InvoicePaySchedule extends PO + +/** Generated Model for C_InvoicePaySchedule + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InvoicePaySchedule extends PO implements I_C_InvoicePaySchedule, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InvoicePaySchedule_ID id -@param trxName transaction -*/ -public X_C_InvoicePaySchedule (Properties ctx, int C_InvoicePaySchedule_ID, String trxName) -{ -super (ctx, C_InvoicePaySchedule_ID, trxName); -/** if (C_InvoicePaySchedule_ID == 0) -{ -setC_InvoicePaySchedule_ID (0); -setC_Invoice_ID (0); -setDiscountAmt (Env.ZERO); -setDiscountDate (new Timestamp(System.currentTimeMillis())); -setDueAmt (Env.ZERO); -setDueDate (new Timestamp(System.currentTimeMillis())); -setIsValid (false); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InvoicePaySchedule (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InvoicePaySchedule */ -public static final String Table_Name="C_InvoicePaySchedule"; - -/** AD_Table_ID=551 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InvoicePaySchedule[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice Payment Schedule. -@param C_InvoicePaySchedule_ID Invoice Payment Schedule */ -public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) -{ -if (C_InvoicePaySchedule_ID < 1) throw new IllegalArgumentException ("C_InvoicePaySchedule_ID is mandatory."); -set_ValueNoCheck ("C_InvoicePaySchedule_ID", Integer.valueOf(C_InvoicePaySchedule_ID)); -} -/** Get Invoice Payment Schedule. -@return Invoice Payment Schedule */ -public int getC_InvoicePaySchedule_ID() -{ -Integer ii = (Integer)get_Value("C_InvoicePaySchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoicePaySchedule_ID */ -public static final String COLUMNNAME_C_InvoicePaySchedule_ID = "C_InvoicePaySchedule_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Payment Schedule. -@param C_PaySchedule_ID Payment Schedule Template */ -public void setC_PaySchedule_ID (int C_PaySchedule_ID) -{ -if (C_PaySchedule_ID <= 0) set_ValueNoCheck ("C_PaySchedule_ID", null); - else -set_ValueNoCheck ("C_PaySchedule_ID", Integer.valueOf(C_PaySchedule_ID)); -} -/** Get Payment Schedule. -@return Payment Schedule Template */ -public int getC_PaySchedule_ID() -{ -Integer ii = (Integer)get_Value("C_PaySchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySchedule_ID */ -public static final String COLUMNNAME_C_PaySchedule_ID = "C_PaySchedule_ID"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -if (DiscountAmt == null) throw new IllegalArgumentException ("DiscountAmt is mandatory."); -set_Value ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Discount Date. -@param DiscountDate Last Date for payments with discount */ -public void setDiscountDate (Timestamp DiscountDate) -{ -if (DiscountDate == null) throw new IllegalArgumentException ("DiscountDate is mandatory."); -set_Value ("DiscountDate", DiscountDate); -} -/** Get Discount Date. -@return Last Date for payments with discount */ -public Timestamp getDiscountDate() -{ -return (Timestamp)get_Value("DiscountDate"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getDiscountDate())); -} -/** Column name DiscountDate */ -public static final String COLUMNNAME_DiscountDate = "DiscountDate"; -/** Set Amount due. -@param DueAmt Amount of the payment due */ -public void setDueAmt (BigDecimal DueAmt) -{ -if (DueAmt == null) throw new IllegalArgumentException ("DueAmt is mandatory."); -set_Value ("DueAmt", DueAmt); -} -/** Get Amount due. -@return Amount of the payment due */ -public BigDecimal getDueAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DueAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DueAmt */ -public static final String COLUMNNAME_DueAmt = "DueAmt"; -/** Set Due Date. -@param DueDate Date when the payment is due */ -public void setDueDate (Timestamp DueDate) -{ -if (DueDate == null) throw new IllegalArgumentException ("DueDate is mandatory."); -set_Value ("DueDate", DueDate); -} -/** Get Due Date. -@return Date when the payment is due */ -public Timestamp getDueDate() -{ -return (Timestamp)get_Value("DueDate"); -} -/** Column name DueDate */ -public static final String COLUMNNAME_DueDate = "DueDate"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InvoicePaySchedule (Properties ctx, int C_InvoicePaySchedule_ID, String trxName) + { + super (ctx, C_InvoicePaySchedule_ID, trxName); + /** if (C_InvoicePaySchedule_ID == 0) { setC_InvoicePaySchedule_ID (0); + setC_Invoice_ID (0); + setDiscountAmt (Env.ZERO); + setDiscountDate (new Timestamp(System.currentTimeMillis())); + setDueAmt (Env.ZERO); + setDueDate (new Timestamp(System.currentTimeMillis())); + setIsValid (false); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_InvoicePaySchedule (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InvoicePaySchedule[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice Payment Schedule. + @param C_InvoicePaySchedule_ID + Invoice Payment Schedule + */ + public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) + { + if (C_InvoicePaySchedule_ID < 1) + throw new IllegalArgumentException ("C_InvoicePaySchedule_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoicePaySchedule_ID, Integer.valueOf(C_InvoicePaySchedule_ID)); + } + + /** Get Invoice Payment Schedule. + @return Invoice Payment Schedule + */ + public int getC_InvoicePaySchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoicePaySchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaySchedule getI_C_PaySchedule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Schedule. + @param C_PaySchedule_ID + Payment Schedule Template + */ + public void setC_PaySchedule_ID (int C_PaySchedule_ID) + { + if (C_PaySchedule_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_PaySchedule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaySchedule_ID, Integer.valueOf(C_PaySchedule_ID)); + } + + /** Get Payment Schedule. + @return Payment Schedule Template + */ + public int getC_PaySchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + if (DiscountAmt == null) + throw new IllegalArgumentException ("DiscountAmt is mandatory."); + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Discount Date. + @param DiscountDate + Last Date for payments with discount + */ + public void setDiscountDate (Timestamp DiscountDate) + { + if (DiscountDate == null) + throw new IllegalArgumentException ("DiscountDate is mandatory."); + set_Value (COLUMNNAME_DiscountDate, DiscountDate); + } + + /** Get Discount Date. + @return Last Date for payments with discount + */ + public Timestamp getDiscountDate () + { + return (Timestamp)get_Value(COLUMNNAME_DiscountDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getDiscountDate())); + } + + /** Set Amount due. + @param DueAmt + Amount of the payment due + */ + public void setDueAmt (BigDecimal DueAmt) + { + if (DueAmt == null) + throw new IllegalArgumentException ("DueAmt is mandatory."); + set_Value (COLUMNNAME_DueAmt, DueAmt); + } + + /** Get Amount due. + @return Amount of the payment due + */ + public BigDecimal getDueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Date. + @param DueDate + Date when the payment is due + */ + public void setDueDate (Timestamp DueDate) + { + if (DueDate == null) + throw new IllegalArgumentException ("DueDate is mandatory."); + set_Value (COLUMNNAME_DueDate, DueDate); + } + + /** Get Due Date. + @return Date when the payment is due + */ + public Timestamp getDueDate () + { + return (Timestamp)get_Value(COLUMNNAME_DueDate); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_InvoiceSchedule.java b/base/src/org/compiere/model/X_C_InvoiceSchedule.java index 255fb256d3..d15bdbcef2 100644 --- a/base/src/org/compiere/model/X_C_InvoiceSchedule.java +++ b/base/src/org/compiere/model/X_C_InvoiceSchedule.java @@ -1,376 +1,381 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InvoiceSchedule - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InvoiceSchedule extends PO + +/** Generated Model for C_InvoiceSchedule + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InvoiceSchedule extends PO implements I_C_InvoiceSchedule, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InvoiceSchedule_ID id -@param trxName transaction -*/ -public X_C_InvoiceSchedule (Properties ctx, int C_InvoiceSchedule_ID, String trxName) -{ -super (ctx, C_InvoiceSchedule_ID, trxName); -/** if (C_InvoiceSchedule_ID == 0) -{ -setAmt (Env.ZERO); -setC_InvoiceSchedule_ID (0); -setInvoiceDay (0); // 1 -setInvoiceFrequency (null); -setInvoiceWeekDay (null); -setIsAmount (false); -setIsDefault (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InvoiceSchedule (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InvoiceSchedule */ -public static final String Table_Name="C_InvoiceSchedule"; - -/** AD_Table_ID=257 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InvoiceSchedule[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory."); -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Invoice Schedule. -@param C_InvoiceSchedule_ID Schedule for generating Invoices */ -public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) -{ -if (C_InvoiceSchedule_ID < 1) throw new IllegalArgumentException ("C_InvoiceSchedule_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceSchedule_ID", Integer.valueOf(C_InvoiceSchedule_ID)); -} -/** Get Invoice Schedule. -@return Schedule for generating Invoices */ -public int getC_InvoiceSchedule_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceSchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceSchedule_ID */ -public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Invoice on even weeks. -@param EvenInvoiceWeek Send invoices on even weeks */ -public void setEvenInvoiceWeek (boolean EvenInvoiceWeek) -{ -set_Value ("EvenInvoiceWeek", Boolean.valueOf(EvenInvoiceWeek)); -} -/** Get Invoice on even weeks. -@return Send invoices on even weeks */ -public boolean isEvenInvoiceWeek() -{ -Object oo = get_Value("EvenInvoiceWeek"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name EvenInvoiceWeek */ -public static final String COLUMNNAME_EvenInvoiceWeek = "EvenInvoiceWeek"; -/** Set Invoice Day. -@param InvoiceDay Day of Invoice Generation */ -public void setInvoiceDay (int InvoiceDay) -{ -set_Value ("InvoiceDay", Integer.valueOf(InvoiceDay)); -} -/** Get Invoice Day. -@return Day of Invoice Generation */ -public int getInvoiceDay() -{ -Integer ii = (Integer)get_Value("InvoiceDay"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name InvoiceDay */ -public static final String COLUMNNAME_InvoiceDay = "InvoiceDay"; -/** Set Invoice day cut-off. -@param InvoiceDayCutoff Last day for including shipments */ -public void setInvoiceDayCutoff (int InvoiceDayCutoff) -{ -set_Value ("InvoiceDayCutoff", Integer.valueOf(InvoiceDayCutoff)); -} -/** Get Invoice day cut-off. -@return Last day for including shipments */ -public int getInvoiceDayCutoff() -{ -Integer ii = (Integer)get_Value("InvoiceDayCutoff"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name InvoiceDayCutoff */ -public static final String COLUMNNAME_InvoiceDayCutoff = "InvoiceDayCutoff"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InvoiceSchedule (Properties ctx, int C_InvoiceSchedule_ID, String trxName) + { + super (ctx, C_InvoiceSchedule_ID, trxName); + /** if (C_InvoiceSchedule_ID == 0) { setAmt (Env.ZERO); + setC_InvoiceSchedule_ID (0); + setInvoiceDay (0); +// 1 + setInvoiceFrequency (null); + setInvoiceWeekDay (null); + setIsAmount (false); + setIsDefault (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_InvoiceSchedule (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InvoiceSchedule[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + if (Amt == null) + throw new IllegalArgumentException ("Amt is mandatory."); + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice Schedule. + @param C_InvoiceSchedule_ID + Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) + { + if (C_InvoiceSchedule_ID < 1) + throw new IllegalArgumentException ("C_InvoiceSchedule_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceSchedule_ID, Integer.valueOf(C_InvoiceSchedule_ID)); + } + + /** Get Invoice Schedule. + @return Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceSchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Invoice on even weeks. + @param EvenInvoiceWeek + Send invoices on even weeks + */ + public void setEvenInvoiceWeek (boolean EvenInvoiceWeek) + { + set_Value (COLUMNNAME_EvenInvoiceWeek, Boolean.valueOf(EvenInvoiceWeek)); + } + + /** Get Invoice on even weeks. + @return Send invoices on even weeks + */ + public boolean isEvenInvoiceWeek () + { + Object oo = get_Value(COLUMNNAME_EvenInvoiceWeek); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoice Day. + @param InvoiceDay + Day of Invoice Generation + */ + public void setInvoiceDay (int InvoiceDay) + { + set_Value (COLUMNNAME_InvoiceDay, Integer.valueOf(InvoiceDay)); + } + + /** Get Invoice Day. + @return Day of Invoice Generation + */ + public int getInvoiceDay () + { + Integer ii = (Integer)get_Value(COLUMNNAME_InvoiceDay); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice day cut-off. + @param InvoiceDayCutoff + Last day for including shipments + */ + public void setInvoiceDayCutoff (int InvoiceDayCutoff) + { + set_Value (COLUMNNAME_InvoiceDayCutoff, Integer.valueOf(InvoiceDayCutoff)); + } + + /** Get Invoice day cut-off. + @return Last day for including shipments + */ + public int getInvoiceDayCutoff () + { + Integer ii = (Integer)get_Value(COLUMNNAME_InvoiceDayCutoff); + if (ii == null) + return 0; + return ii.intValue(); + } /** InvoiceFrequency AD_Reference_ID=168 */ -public static final int INVOICEFREQUENCY_AD_Reference_ID=168; -/** Daily = D */ -public static final String INVOICEFREQUENCY_Daily = "D"; -/** Monthly = M */ -public static final String INVOICEFREQUENCY_Monthly = "M"; -/** Twice Monthly = T */ -public static final String INVOICEFREQUENCY_TwiceMonthly = "T"; -/** Weekly = W */ +public static final int INVOICEFREQUENCY_AD_Reference_ID=168;/** Daily = D */ +public static final String INVOICEFREQUENCY_Daily = "D";/** Monthly = M */ +public static final String INVOICEFREQUENCY_Monthly = "M";/** Twice Monthly = T */ +public static final String INVOICEFREQUENCY_TwiceMonthly = "T";/** Weekly = W */ public static final String INVOICEFREQUENCY_Weekly = "W"; -/** Set Invoice Frequency. -@param InvoiceFrequency How often invoices will be generated */ -public void setInvoiceFrequency (String InvoiceFrequency) -{ -if (InvoiceFrequency == null) throw new IllegalArgumentException ("InvoiceFrequency is mandatory"); -if (InvoiceFrequency.equals("D") || InvoiceFrequency.equals("M") || InvoiceFrequency.equals("T") || InvoiceFrequency.equals("W")); - else throw new IllegalArgumentException ("InvoiceFrequency Invalid value - " + InvoiceFrequency + " - Reference_ID=168 - D - M - T - W"); -if (InvoiceFrequency.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceFrequency = InvoiceFrequency.substring(0,0); -} -set_Value ("InvoiceFrequency", InvoiceFrequency); -} -/** Get Invoice Frequency. -@return How often invoices will be generated */ -public String getInvoiceFrequency() -{ -return (String)get_Value("InvoiceFrequency"); -} -/** Column name InvoiceFrequency */ -public static final String COLUMNNAME_InvoiceFrequency = "InvoiceFrequency"; + /** Set Invoice Frequency. + @param InvoiceFrequency + How often invoices will be generated + */ + public void setInvoiceFrequency (String InvoiceFrequency) + { +if (InvoiceFrequency == null) throw new IllegalArgumentException ("InvoiceFrequency is mandatory");if (InvoiceFrequency.equals("D") || InvoiceFrequency.equals("M") || InvoiceFrequency.equals("T") || InvoiceFrequency.equals("W")); else throw new IllegalArgumentException ("InvoiceFrequency Invalid value - " + InvoiceFrequency + " - Reference_ID=168 - D - M - T - W"); if (InvoiceFrequency.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceFrequency = InvoiceFrequency.substring(0, 0); + } + set_Value (COLUMNNAME_InvoiceFrequency, InvoiceFrequency); + } + + /** Get Invoice Frequency. + @return How often invoices will be generated + */ + public String getInvoiceFrequency () + { + return (String)get_Value(COLUMNNAME_InvoiceFrequency); + } /** InvoiceWeekDay AD_Reference_ID=167 */ -public static final int INVOICEWEEKDAY_AD_Reference_ID=167; -/** Monday = 1 */ -public static final String INVOICEWEEKDAY_Monday = "1"; -/** Tuesday = 2 */ -public static final String INVOICEWEEKDAY_Tuesday = "2"; -/** Wednesday = 3 */ -public static final String INVOICEWEEKDAY_Wednesday = "3"; -/** Thursday = 4 */ -public static final String INVOICEWEEKDAY_Thursday = "4"; -/** Friday = 5 */ -public static final String INVOICEWEEKDAY_Friday = "5"; -/** Saturday = 6 */ -public static final String INVOICEWEEKDAY_Saturday = "6"; -/** Sunday = 7 */ +public static final int INVOICEWEEKDAY_AD_Reference_ID=167;/** Monday = 1 */ +public static final String INVOICEWEEKDAY_Monday = "1";/** Tuesday = 2 */ +public static final String INVOICEWEEKDAY_Tuesday = "2";/** Wednesday = 3 */ +public static final String INVOICEWEEKDAY_Wednesday = "3";/** Thursday = 4 */ +public static final String INVOICEWEEKDAY_Thursday = "4";/** Friday = 5 */ +public static final String INVOICEWEEKDAY_Friday = "5";/** Saturday = 6 */ +public static final String INVOICEWEEKDAY_Saturday = "6";/** Sunday = 7 */ public static final String INVOICEWEEKDAY_Sunday = "7"; -/** Set Invoice Week Day. -@param InvoiceWeekDay Day to generate invoices */ -public void setInvoiceWeekDay (String InvoiceWeekDay) -{ -if (InvoiceWeekDay == null) throw new IllegalArgumentException ("InvoiceWeekDay is mandatory"); -if (InvoiceWeekDay.equals("1") || InvoiceWeekDay.equals("2") || InvoiceWeekDay.equals("3") || InvoiceWeekDay.equals("4") || InvoiceWeekDay.equals("5") || InvoiceWeekDay.equals("6") || InvoiceWeekDay.equals("7")); - else throw new IllegalArgumentException ("InvoiceWeekDay Invalid value - " + InvoiceWeekDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); -if (InvoiceWeekDay.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceWeekDay = InvoiceWeekDay.substring(0,0); -} -set_Value ("InvoiceWeekDay", InvoiceWeekDay); -} -/** Get Invoice Week Day. -@return Day to generate invoices */ -public String getInvoiceWeekDay() -{ -return (String)get_Value("InvoiceWeekDay"); -} -/** Column name InvoiceWeekDay */ -public static final String COLUMNNAME_InvoiceWeekDay = "InvoiceWeekDay"; + /** Set Invoice Week Day. + @param InvoiceWeekDay + Day to generate invoices + */ + public void setInvoiceWeekDay (String InvoiceWeekDay) + { +if (InvoiceWeekDay == null) throw new IllegalArgumentException ("InvoiceWeekDay is mandatory");if (InvoiceWeekDay.equals("1") || InvoiceWeekDay.equals("2") || InvoiceWeekDay.equals("3") || InvoiceWeekDay.equals("4") || InvoiceWeekDay.equals("5") || InvoiceWeekDay.equals("6") || InvoiceWeekDay.equals("7")); else throw new IllegalArgumentException ("InvoiceWeekDay Invalid value - " + InvoiceWeekDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); if (InvoiceWeekDay.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceWeekDay = InvoiceWeekDay.substring(0, 0); + } + set_Value (COLUMNNAME_InvoiceWeekDay, InvoiceWeekDay); + } + + /** Get Invoice Week Day. + @return Day to generate invoices + */ + public String getInvoiceWeekDay () + { + return (String)get_Value(COLUMNNAME_InvoiceWeekDay); + } /** InvoiceWeekDayCutoff AD_Reference_ID=167 */ -public static final int INVOICEWEEKDAYCUTOFF_AD_Reference_ID=167; -/** Monday = 1 */ -public static final String INVOICEWEEKDAYCUTOFF_Monday = "1"; -/** Tuesday = 2 */ -public static final String INVOICEWEEKDAYCUTOFF_Tuesday = "2"; -/** Wednesday = 3 */ -public static final String INVOICEWEEKDAYCUTOFF_Wednesday = "3"; -/** Thursday = 4 */ -public static final String INVOICEWEEKDAYCUTOFF_Thursday = "4"; -/** Friday = 5 */ -public static final String INVOICEWEEKDAYCUTOFF_Friday = "5"; -/** Saturday = 6 */ -public static final String INVOICEWEEKDAYCUTOFF_Saturday = "6"; -/** Sunday = 7 */ +public static final int INVOICEWEEKDAYCUTOFF_AD_Reference_ID=167;/** Monday = 1 */ +public static final String INVOICEWEEKDAYCUTOFF_Monday = "1";/** Tuesday = 2 */ +public static final String INVOICEWEEKDAYCUTOFF_Tuesday = "2";/** Wednesday = 3 */ +public static final String INVOICEWEEKDAYCUTOFF_Wednesday = "3";/** Thursday = 4 */ +public static final String INVOICEWEEKDAYCUTOFF_Thursday = "4";/** Friday = 5 */ +public static final String INVOICEWEEKDAYCUTOFF_Friday = "5";/** Saturday = 6 */ +public static final String INVOICEWEEKDAYCUTOFF_Saturday = "6";/** Sunday = 7 */ public static final String INVOICEWEEKDAYCUTOFF_Sunday = "7"; -/** Set Invoice weekday cutoff. -@param InvoiceWeekDayCutoff Last day in the week for shipments to be included */ -public void setInvoiceWeekDayCutoff (String InvoiceWeekDayCutoff) -{ -if (InvoiceWeekDayCutoff == null || InvoiceWeekDayCutoff.equals("1") || InvoiceWeekDayCutoff.equals("2") || InvoiceWeekDayCutoff.equals("3") || InvoiceWeekDayCutoff.equals("4") || InvoiceWeekDayCutoff.equals("5") || InvoiceWeekDayCutoff.equals("6") || InvoiceWeekDayCutoff.equals("7")); - else throw new IllegalArgumentException ("InvoiceWeekDayCutoff Invalid value - " + InvoiceWeekDayCutoff + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); -if (InvoiceWeekDayCutoff != null && InvoiceWeekDayCutoff.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceWeekDayCutoff = InvoiceWeekDayCutoff.substring(0,0); -} -set_Value ("InvoiceWeekDayCutoff", InvoiceWeekDayCutoff); -} -/** Get Invoice weekday cutoff. -@return Last day in the week for shipments to be included */ -public String getInvoiceWeekDayCutoff() -{ -return (String)get_Value("InvoiceWeekDayCutoff"); -} -/** Column name InvoiceWeekDayCutoff */ -public static final String COLUMNNAME_InvoiceWeekDayCutoff = "InvoiceWeekDayCutoff"; -/** Set Amount Limit. -@param IsAmount Send invoices only if the amount exceeds the limit */ -public void setIsAmount (boolean IsAmount) -{ -set_Value ("IsAmount", Boolean.valueOf(IsAmount)); -} -/** Get Amount Limit. -@return Send invoices only if the amount exceeds the limit */ -public boolean isAmount() -{ -Object oo = get_Value("IsAmount"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAmount */ -public static final String COLUMNNAME_IsAmount = "IsAmount"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Invoice weekday cutoff. + @param InvoiceWeekDayCutoff + Last day in the week for shipments to be included + */ + public void setInvoiceWeekDayCutoff (String InvoiceWeekDayCutoff) + { +if (InvoiceWeekDayCutoff == null || InvoiceWeekDayCutoff.equals("1") || InvoiceWeekDayCutoff.equals("2") || InvoiceWeekDayCutoff.equals("3") || InvoiceWeekDayCutoff.equals("4") || InvoiceWeekDayCutoff.equals("5") || InvoiceWeekDayCutoff.equals("6") || InvoiceWeekDayCutoff.equals("7")); else throw new IllegalArgumentException ("InvoiceWeekDayCutoff Invalid value - " + InvoiceWeekDayCutoff + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); if (InvoiceWeekDayCutoff != null && InvoiceWeekDayCutoff.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceWeekDayCutoff = InvoiceWeekDayCutoff.substring(0, 0); + } + set_Value (COLUMNNAME_InvoiceWeekDayCutoff, InvoiceWeekDayCutoff); + } + + /** Get Invoice weekday cutoff. + @return Last day in the week for shipments to be included + */ + public String getInvoiceWeekDayCutoff () + { + return (String)get_Value(COLUMNNAME_InvoiceWeekDayCutoff); + } + + /** Set Amount Limit. + @param IsAmount + Send invoices only if the amount exceeds the limit + */ + public void setIsAmount (boolean IsAmount) + { + set_Value (COLUMNNAME_IsAmount, Boolean.valueOf(IsAmount)); + } + + /** Get Amount Limit. + @return Send invoices only if the amount exceeds the limit + */ + public boolean isAmount () + { + Object oo = get_Value(COLUMNNAME_IsAmount); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_InvoiceTax.java b/base/src/org/compiere/model/X_C_InvoiceTax.java index 0342f37c81..89d9a7e987 100644 --- a/base/src/org/compiere/model/X_C_InvoiceTax.java +++ b/base/src/org/compiere/model/X_C_InvoiceTax.java @@ -1,201 +1,230 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_InvoiceTax - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_InvoiceTax extends PO + +/** Generated Model for C_InvoiceTax + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_InvoiceTax extends PO implements I_C_InvoiceTax, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_InvoiceTax_ID id -@param trxName transaction -*/ -public X_C_InvoiceTax (Properties ctx, int C_InvoiceTax_ID, String trxName) -{ -super (ctx, C_InvoiceTax_ID, trxName); -/** if (C_InvoiceTax_ID == 0) -{ -setC_Invoice_ID (0); -setC_Tax_ID (0); -setIsTaxIncluded (false); -setProcessed (false); -setTaxAmt (Env.ZERO); -setTaxBaseAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_InvoiceTax (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_InvoiceTax */ -public static final String Table_Name="C_InvoiceTax"; - -/** AD_Table_ID=334 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_InvoiceTax[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -if (TaxAmt == null) throw new IllegalArgumentException ("TaxAmt is mandatory."); -set_ValueNoCheck ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; -/** Set Tax base Amount. -@param TaxBaseAmt Base for calculating the tax amount */ -public void setTaxBaseAmt (BigDecimal TaxBaseAmt) -{ -if (TaxBaseAmt == null) throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); -set_ValueNoCheck ("TaxBaseAmt", TaxBaseAmt); -} -/** Get Tax base Amount. -@return Base for calculating the tax amount */ -public BigDecimal getTaxBaseAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxBaseAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxBaseAmt */ -public static final String COLUMNNAME_TaxBaseAmt = "TaxBaseAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_InvoiceTax (Properties ctx, int C_InvoiceTax_ID, String trxName) + { + super (ctx, C_InvoiceTax_ID, trxName); + /** if (C_InvoiceTax_ID == 0) { setC_Invoice_ID (0); + setC_Tax_ID (0); + setIsTaxIncluded (false); + setProcessed (false); + setTaxAmt (Env.ZERO); + setTaxBaseAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_InvoiceTax (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_InvoiceTax[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + if (TaxAmt == null) + throw new IllegalArgumentException ("TaxAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tax base Amount. + @param TaxBaseAmt + Base for calculating the tax amount + */ + public void setTaxBaseAmt (BigDecimal TaxBaseAmt) + { + if (TaxBaseAmt == null) + throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TaxBaseAmt, TaxBaseAmt); + } + + /** Get Tax base Amount. + @return Base for calculating the tax amount + */ + public BigDecimal getTaxBaseAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxBaseAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Job.java b/base/src/org/compiere/model/X_C_Job.java index 4ed63aafbd..0101877ed7 100644 --- a/base/src/org/compiere/model/X_C_Job.java +++ b/base/src/org/compiere/model/X_C_Job.java @@ -1,209 +1,237 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Job - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Job extends PO + +/** Generated Model for C_Job + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Job extends PO implements I_C_Job, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Job_ID id -@param trxName transaction -*/ -public X_C_Job (Properties ctx, int C_Job_ID, String trxName) -{ -super (ctx, C_Job_ID, trxName); -/** if (C_Job_ID == 0) -{ -setC_JobCategory_ID (0); -setC_Job_ID (0); -setIsEmployee (true); // Y -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Job (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Job */ -public static final String Table_Name="C_Job"; - -/** AD_Table_ID=789 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Job[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Position Category. -@param C_JobCategory_ID Job Position Category */ -public void setC_JobCategory_ID (int C_JobCategory_ID) -{ -if (C_JobCategory_ID < 1) throw new IllegalArgumentException ("C_JobCategory_ID is mandatory."); -set_Value ("C_JobCategory_ID", Integer.valueOf(C_JobCategory_ID)); -} -/** Get Position Category. -@return Job Position Category */ -public int getC_JobCategory_ID() -{ -Integer ii = (Integer)get_Value("C_JobCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_JobCategory_ID */ -public static final String COLUMNNAME_C_JobCategory_ID = "C_JobCategory_ID"; -/** Set Position. -@param C_Job_ID Job Position */ -public void setC_Job_ID (int C_Job_ID) -{ -if (C_Job_ID < 1) throw new IllegalArgumentException ("C_Job_ID is mandatory."); -set_ValueNoCheck ("C_Job_ID", Integer.valueOf(C_Job_ID)); -} -/** Get Position. -@return Job Position */ -public int getC_Job_ID() -{ -Integer ii = (Integer)get_Value("C_Job_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Job_ID */ -public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Employee. -@param IsEmployee Indicates if this Business Partner is an employee */ -public void setIsEmployee (boolean IsEmployee) -{ -set_Value ("IsEmployee", Boolean.valueOf(IsEmployee)); -} -/** Get Employee. -@return Indicates if this Business Partner is an employee */ -public boolean isEmployee() -{ -Object oo = get_Value("IsEmployee"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEmployee */ -public static final String COLUMNNAME_IsEmployee = "IsEmployee"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Job (Properties ctx, int C_Job_ID, String trxName) + { + super (ctx, C_Job_ID, trxName); + /** if (C_Job_ID == 0) { setC_JobCategory_ID (0); + setC_Job_ID (0); + setIsEmployee (true); +// Y + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Job (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Job[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_JobCategory getI_C_JobCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Position Category. + @param C_JobCategory_ID + Job Position Category + */ + public void setC_JobCategory_ID (int C_JobCategory_ID) + { + if (C_JobCategory_ID < 1) + throw new IllegalArgumentException ("C_JobCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); + } + + /** Get Position Category. + @return Job Position Category + */ + public int getC_JobCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_JobCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Position. + @param C_Job_ID + Job Position + */ + public void setC_Job_ID (int C_Job_ID) + { + if (C_Job_ID < 1) + throw new IllegalArgumentException ("C_Job_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + } + + /** Get Position. + @return Job Position + */ + public int getC_Job_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Employee. + @param IsEmployee + Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee) + { + set_Value (COLUMNNAME_IsEmployee, Boolean.valueOf(IsEmployee)); + } + + /** Get Employee. + @return Indicates if this Business Partner is an employee + */ + public boolean isEmployee () + { + Object oo = get_Value(COLUMNNAME_IsEmployee); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_JobAssignment.java b/base/src/org/compiere/model/X_C_JobAssignment.java index f6668ea77a..62c29187f3 100644 --- a/base/src/org/compiere/model/X_C_JobAssignment.java +++ b/base/src/org/compiere/model/X_C_JobAssignment.java @@ -1,196 +1,224 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_JobAssignment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_JobAssignment extends PO + +/** Generated Model for C_JobAssignment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_JobAssignment extends PO implements I_C_JobAssignment, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_JobAssignment_ID id -@param trxName transaction -*/ -public X_C_JobAssignment (Properties ctx, int C_JobAssignment_ID, String trxName) -{ -super (ctx, C_JobAssignment_ID, trxName); -/** if (C_JobAssignment_ID == 0) -{ -setAD_User_ID (0); -setC_JobAssignment_ID (0); -setC_Job_ID (0); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_JobAssignment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_JobAssignment */ -public static final String Table_Name="C_JobAssignment"; - -/** AD_Table_ID=791 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_JobAssignment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Position Assignment. -@param C_JobAssignment_ID Assignemt of Employee (User) to Job Position */ -public void setC_JobAssignment_ID (int C_JobAssignment_ID) -{ -if (C_JobAssignment_ID < 1) throw new IllegalArgumentException ("C_JobAssignment_ID is mandatory."); -set_ValueNoCheck ("C_JobAssignment_ID", Integer.valueOf(C_JobAssignment_ID)); -} -/** Get Position Assignment. -@return Assignemt of Employee (User) to Job Position */ -public int getC_JobAssignment_ID() -{ -Integer ii = (Integer)get_Value("C_JobAssignment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_JobAssignment_ID */ -public static final String COLUMNNAME_C_JobAssignment_ID = "C_JobAssignment_ID"; -/** Set Position. -@param C_Job_ID Job Position */ -public void setC_Job_ID (int C_Job_ID) -{ -if (C_Job_ID < 1) throw new IllegalArgumentException ("C_Job_ID is mandatory."); -set_ValueNoCheck ("C_Job_ID", Integer.valueOf(C_Job_ID)); -} -/** Get Position. -@return Job Position */ -public int getC_Job_ID() -{ -Integer ii = (Integer)get_Value("C_Job_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Job_ID())); -} -/** Column name C_Job_ID */ -public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_JobAssignment (Properties ctx, int C_JobAssignment_ID, String trxName) + { + super (ctx, C_JobAssignment_ID, trxName); + /** if (C_JobAssignment_ID == 0) { setAD_User_ID (0); + setC_JobAssignment_ID (0); + setC_Job_ID (0); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_JobAssignment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_JobAssignment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Position Assignment. + @param C_JobAssignment_ID + Assignemt of Employee (User) to Job Position + */ + public void setC_JobAssignment_ID (int C_JobAssignment_ID) + { + if (C_JobAssignment_ID < 1) + throw new IllegalArgumentException ("C_JobAssignment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_JobAssignment_ID, Integer.valueOf(C_JobAssignment_ID)); + } + + /** Get Position Assignment. + @return Assignemt of Employee (User) to Job Position + */ + public int getC_JobAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_JobAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Job getI_C_Job() throws Exception + { + 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 e; + } + return result; + } + + /** Set Position. + @param C_Job_ID + Job Position + */ + public void setC_Job_ID (int C_Job_ID) + { + if (C_Job_ID < 1) + throw new IllegalArgumentException ("C_Job_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + } + + /** Get Position. + @return Job Position + */ + public int getC_Job_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Job_ID())); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_JobCategory.java b/base/src/org/compiere/model/X_C_JobCategory.java index a224e07ffa..f6f01318e5 100644 --- a/base/src/org/compiere/model/X_C_JobCategory.java +++ b/base/src/org/compiere/model/X_C_JobCategory.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_JobCategory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_JobCategory extends PO + +/** Generated Model for C_JobCategory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_JobCategory extends PO implements I_C_JobCategory, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_JobCategory_ID id -@param trxName transaction -*/ -public X_C_JobCategory (Properties ctx, int C_JobCategory_ID, String trxName) -{ -super (ctx, C_JobCategory_ID, trxName); -/** if (C_JobCategory_ID == 0) -{ -setC_JobCategory_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_JobCategory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_JobCategory */ -public static final String Table_Name="C_JobCategory"; - -/** AD_Table_ID=790 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_JobCategory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Position Category. -@param C_JobCategory_ID Job Position Category */ -public void setC_JobCategory_ID (int C_JobCategory_ID) -{ -if (C_JobCategory_ID < 1) throw new IllegalArgumentException ("C_JobCategory_ID is mandatory."); -set_ValueNoCheck ("C_JobCategory_ID", Integer.valueOf(C_JobCategory_ID)); -} -/** Get Position Category. -@return Job Position Category */ -public int getC_JobCategory_ID() -{ -Integer ii = (Integer)get_Value("C_JobCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_JobCategory_ID */ -public static final String COLUMNNAME_C_JobCategory_ID = "C_JobCategory_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_JobCategory (Properties ctx, int C_JobCategory_ID, String trxName) + { + super (ctx, C_JobCategory_ID, trxName); + /** if (C_JobCategory_ID == 0) { setC_JobCategory_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_JobCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_JobCategory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Position Category. + @param C_JobCategory_ID + Job Position Category + */ + public void setC_JobCategory_ID (int C_JobCategory_ID) + { + if (C_JobCategory_ID < 1) + throw new IllegalArgumentException ("C_JobCategory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); + } + + /** Get Position Category. + @return Job Position Category + */ + public int getC_JobCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_JobCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_JobRemuneration.java b/base/src/org/compiere/model/X_C_JobRemuneration.java index 9acd65474a..19421a6f11 100644 --- a/base/src/org/compiere/model/X_C_JobRemuneration.java +++ b/base/src/org/compiere/model/X_C_JobRemuneration.java @@ -1,196 +1,240 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_JobRemuneration - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_JobRemuneration extends PO + +/** Generated Model for C_JobRemuneration + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_JobRemuneration extends PO implements I_C_JobRemuneration, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_JobRemuneration_ID id -@param trxName transaction -*/ -public X_C_JobRemuneration (Properties ctx, int C_JobRemuneration_ID, String trxName) -{ -super (ctx, C_JobRemuneration_ID, trxName); -/** if (C_JobRemuneration_ID == 0) -{ -setC_JobRemuneration_ID (0); -setC_Job_ID (0); -setC_Remuneration_ID (0); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_JobRemuneration (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_JobRemuneration */ -public static final String Table_Name="C_JobRemuneration"; - -/** AD_Table_ID=793 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_JobRemuneration[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Position Remuneration. -@param C_JobRemuneration_ID Remuneration for the Position */ -public void setC_JobRemuneration_ID (int C_JobRemuneration_ID) -{ -if (C_JobRemuneration_ID < 1) throw new IllegalArgumentException ("C_JobRemuneration_ID is mandatory."); -set_ValueNoCheck ("C_JobRemuneration_ID", Integer.valueOf(C_JobRemuneration_ID)); -} -/** Get Position Remuneration. -@return Remuneration for the Position */ -public int getC_JobRemuneration_ID() -{ -Integer ii = (Integer)get_Value("C_JobRemuneration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_JobRemuneration_ID */ -public static final String COLUMNNAME_C_JobRemuneration_ID = "C_JobRemuneration_ID"; -/** Set Position. -@param C_Job_ID Job Position */ -public void setC_Job_ID (int C_Job_ID) -{ -if (C_Job_ID < 1) throw new IllegalArgumentException ("C_Job_ID is mandatory."); -set_ValueNoCheck ("C_Job_ID", Integer.valueOf(C_Job_ID)); -} -/** Get Position. -@return Job Position */ -public int getC_Job_ID() -{ -Integer ii = (Integer)get_Value("C_Job_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Job_ID())); -} -/** Column name C_Job_ID */ -public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; -/** Set Remuneration. -@param C_Remuneration_ID Wage or Salary */ -public void setC_Remuneration_ID (int C_Remuneration_ID) -{ -if (C_Remuneration_ID < 1) throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); -set_ValueNoCheck ("C_Remuneration_ID", Integer.valueOf(C_Remuneration_ID)); -} -/** Get Remuneration. -@return Wage or Salary */ -public int getC_Remuneration_ID() -{ -Integer ii = (Integer)get_Value("C_Remuneration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Remuneration_ID */ -public static final String COLUMNNAME_C_Remuneration_ID = "C_Remuneration_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_JobRemuneration (Properties ctx, int C_JobRemuneration_ID, String trxName) + { + super (ctx, C_JobRemuneration_ID, trxName); + /** if (C_JobRemuneration_ID == 0) { setC_JobRemuneration_ID (0); + setC_Job_ID (0); + setC_Remuneration_ID (0); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_JobRemuneration (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_JobRemuneration[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Position Remuneration. + @param C_JobRemuneration_ID + Remuneration for the Position + */ + public void setC_JobRemuneration_ID (int C_JobRemuneration_ID) + { + if (C_JobRemuneration_ID < 1) + throw new IllegalArgumentException ("C_JobRemuneration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_JobRemuneration_ID, Integer.valueOf(C_JobRemuneration_ID)); + } + + /** Get Position Remuneration. + @return Remuneration for the Position + */ + public int getC_JobRemuneration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_JobRemuneration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Job getI_C_Job() throws Exception + { + 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 e; + } + return result; + } + + /** Set Position. + @param C_Job_ID + Job Position + */ + public void setC_Job_ID (int C_Job_ID) + { + if (C_Job_ID < 1) + throw new IllegalArgumentException ("C_Job_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + } + + /** Get Position. + @return Job Position + */ + public int getC_Job_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Job_ID())); + } + + public I_C_Remuneration getI_C_Remuneration() throws Exception + { + 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 e; + } + return result; + } + + /** Set Remuneration. + @param C_Remuneration_ID + Wage or Salary + */ + public void setC_Remuneration_ID (int C_Remuneration_ID) + { + if (C_Remuneration_ID < 1) + throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); + } + + /** Get Remuneration. + @return Wage or Salary + */ + public int getC_Remuneration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Remuneration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_LandedCost.java b/base/src/org/compiere/model/X_C_LandedCost.java index 143ff9ad0c..e892825dfb 100644 --- a/base/src/org/compiere/model/X_C_LandedCost.java +++ b/base/src/org/compiere/model/X_C_LandedCost.java @@ -1,276 +1,321 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_LandedCost - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_LandedCost extends PO + +/** Generated Model for C_LandedCost + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_LandedCost extends PO implements I_C_LandedCost, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_LandedCost_ID id -@param trxName transaction -*/ -public X_C_LandedCost (Properties ctx, int C_LandedCost_ID, String trxName) -{ -super (ctx, C_LandedCost_ID, trxName); -/** if (C_LandedCost_ID == 0) -{ -setC_InvoiceLine_ID (0); -setC_LandedCost_ID (0); -setLandedCostDistribution (null); // Q -setM_CostElement_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_LandedCost (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_LandedCost */ -public static final String Table_Name="C_LandedCost"; - -/** AD_Table_ID=759 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_LandedCost[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID < 1) throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_InvoiceLine_ID())); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Landed Cost. -@param C_LandedCost_ID Landed cost to be allocated to material receipts */ -public void setC_LandedCost_ID (int C_LandedCost_ID) -{ -if (C_LandedCost_ID < 1) throw new IllegalArgumentException ("C_LandedCost_ID is mandatory."); -set_ValueNoCheck ("C_LandedCost_ID", Integer.valueOf(C_LandedCost_ID)); -} -/** Get Landed Cost. -@return Landed cost to be allocated to material receipts */ -public int getC_LandedCost_ID() -{ -Integer ii = (Integer)get_Value("C_LandedCost_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LandedCost_ID */ -public static final String COLUMNNAME_C_LandedCost_ID = "C_LandedCost_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_LandedCost (Properties ctx, int C_LandedCost_ID, String trxName) + { + super (ctx, C_LandedCost_ID, trxName); + /** if (C_LandedCost_ID == 0) { setC_InvoiceLine_ID (0); + setC_LandedCost_ID (0); + setLandedCostDistribution (null); +// Q + setM_CostElement_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_LandedCost (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_LandedCost[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID < 1) + throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_InvoiceLine_ID())); + } + + /** Set Landed Cost. + @param C_LandedCost_ID + Landed cost to be allocated to material receipts + */ + public void setC_LandedCost_ID (int C_LandedCost_ID) + { + if (C_LandedCost_ID < 1) + throw new IllegalArgumentException ("C_LandedCost_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_LandedCost_ID, Integer.valueOf(C_LandedCost_ID)); + } + + /** Get Landed Cost. + @return Landed cost to be allocated to material receipts + */ + public int getC_LandedCost_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LandedCost_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** LandedCostDistribution AD_Reference_ID=339 */ -public static final int LANDEDCOSTDISTRIBUTION_AD_Reference_ID=339; -/** Costs = C */ -public static final String LANDEDCOSTDISTRIBUTION_Costs = "C"; -/** Line = L */ -public static final String LANDEDCOSTDISTRIBUTION_Line = "L"; -/** Quantity = Q */ -public static final String LANDEDCOSTDISTRIBUTION_Quantity = "Q"; -/** Volume = V */ -public static final String LANDEDCOSTDISTRIBUTION_Volume = "V"; -/** Weight = W */ +public static final int LANDEDCOSTDISTRIBUTION_AD_Reference_ID=339;/** Costs = C */ +public static final String LANDEDCOSTDISTRIBUTION_Costs = "C";/** Line = L */ +public static final String LANDEDCOSTDISTRIBUTION_Line = "L";/** Quantity = Q */ +public static final String LANDEDCOSTDISTRIBUTION_Quantity = "Q";/** Volume = V */ +public static final String LANDEDCOSTDISTRIBUTION_Volume = "V";/** Weight = W */ public static final String LANDEDCOSTDISTRIBUTION_Weight = "W"; -/** Set Cost Distribution. -@param LandedCostDistribution Landed Cost Distribution */ -public void setLandedCostDistribution (String LandedCostDistribution) -{ -if (LandedCostDistribution == null) throw new IllegalArgumentException ("LandedCostDistribution is mandatory"); -if (LandedCostDistribution.equals("C") || LandedCostDistribution.equals("L") || LandedCostDistribution.equals("Q") || LandedCostDistribution.equals("V") || LandedCostDistribution.equals("W")); - else throw new IllegalArgumentException ("LandedCostDistribution Invalid value - " + LandedCostDistribution + " - Reference_ID=339 - C - L - Q - V - W"); -if (LandedCostDistribution.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LandedCostDistribution = LandedCostDistribution.substring(0,0); -} -set_Value ("LandedCostDistribution", LandedCostDistribution); -} -/** Get Cost Distribution. -@return Landed Cost Distribution */ -public String getLandedCostDistribution() -{ -return (String)get_Value("LandedCostDistribution"); -} -/** Column name LandedCostDistribution */ -public static final String COLUMNNAME_LandedCostDistribution = "LandedCostDistribution"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID < 1) throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); -set_Value ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null); - else -set_Value ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID <= 0) set_Value ("M_InOut_ID", null); - else -set_Value ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Cost Distribution. + @param LandedCostDistribution + Landed Cost Distribution + */ + public void setLandedCostDistribution (String LandedCostDistribution) + { +if (LandedCostDistribution == null) throw new IllegalArgumentException ("LandedCostDistribution is mandatory");if (LandedCostDistribution.equals("C") || LandedCostDistribution.equals("L") || LandedCostDistribution.equals("Q") || LandedCostDistribution.equals("V") || LandedCostDistribution.equals("W")); else throw new IllegalArgumentException ("LandedCostDistribution Invalid value - " + LandedCostDistribution + " - Reference_ID=339 - C - L - Q - V - W"); if (LandedCostDistribution.length() > 1) + { + log.warning("Length > 1 - truncated"); + LandedCostDistribution = LandedCostDistribution.substring(0, 0); + } + set_Value (COLUMNNAME_LandedCostDistribution, LandedCostDistribution); + } + + /** Get Cost Distribution. + @return Landed Cost Distribution + */ + public String getLandedCostDistribution () + { + return (String)get_Value(COLUMNNAME_LandedCostDistribution); + } + + public I_M_CostElement getI_M_CostElement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID < 1) + throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); + set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_InOutLine getI_M_InOutLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_Value (COLUMNNAME_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID <= 0) set_Value (COLUMNNAME_M_InOut_ID, null); + else + set_Value (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_LandedCostAllocation.java b/base/src/org/compiere/model/X_C_LandedCostAllocation.java index 5b18b0c536..289394485b 100644 --- a/base/src/org/compiere/model/X_C_LandedCostAllocation.java +++ b/base/src/org/compiere/model/X_C_LandedCostAllocation.java @@ -1,237 +1,279 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_LandedCostAllocation - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_LandedCostAllocation extends PO + +/** Generated Model for C_LandedCostAllocation + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_LandedCostAllocation extends PO implements I_C_LandedCostAllocation, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_LandedCostAllocation_ID id -@param trxName transaction -*/ -public X_C_LandedCostAllocation (Properties ctx, int C_LandedCostAllocation_ID, String trxName) -{ -super (ctx, C_LandedCostAllocation_ID, trxName); -/** if (C_LandedCostAllocation_ID == 0) -{ -setAmt (Env.ZERO); -setBase (Env.ZERO); -setC_InvoiceLine_ID (0); -setC_LandedCostAllocation_ID (0); -setM_CostElement_ID (0); -setM_Product_ID (0); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_LandedCostAllocation (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_LandedCostAllocation */ -public static final String Table_Name="C_LandedCostAllocation"; - -/** AD_Table_ID=760 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_LandedCostAllocation[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory."); -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Base. -@param Base Calculation Base */ -public void setBase (BigDecimal Base) -{ -if (Base == null) throw new IllegalArgumentException ("Base is mandatory."); -set_Value ("Base", Base); -} -/** Get Base. -@return Calculation Base */ -public BigDecimal getBase() -{ -BigDecimal bd = (BigDecimal)get_Value("Base"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Base */ -public static final String COLUMNNAME_Base = "Base"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID < 1) throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_InvoiceLine_ID())); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Landed Cost Allocation. -@param C_LandedCostAllocation_ID Allocation for Land Costs */ -public void setC_LandedCostAllocation_ID (int C_LandedCostAllocation_ID) -{ -if (C_LandedCostAllocation_ID < 1) throw new IllegalArgumentException ("C_LandedCostAllocation_ID is mandatory."); -set_ValueNoCheck ("C_LandedCostAllocation_ID", Integer.valueOf(C_LandedCostAllocation_ID)); -} -/** Get Landed Cost Allocation. -@return Allocation for Land Costs */ -public int getC_LandedCostAllocation_ID() -{ -Integer ii = (Integer)get_Value("C_LandedCostAllocation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LandedCostAllocation_ID */ -public static final String COLUMNNAME_C_LandedCostAllocation_ID = "C_LandedCostAllocation_ID"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID <= 0) set_ValueNoCheck ("M_AttributeSetInstance_ID", null); - else -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID < 1) throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); -set_Value ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_LandedCostAllocation (Properties ctx, int C_LandedCostAllocation_ID, String trxName) + { + super (ctx, C_LandedCostAllocation_ID, trxName); + /** if (C_LandedCostAllocation_ID == 0) { setAmt (Env.ZERO); + setBase (Env.ZERO); + setC_InvoiceLine_ID (0); + setC_LandedCostAllocation_ID (0); + setM_CostElement_ID (0); + setM_Product_ID (0); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_LandedCostAllocation (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_LandedCostAllocation[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + if (Amt == null) + throw new IllegalArgumentException ("Amt is mandatory."); + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Base. + @param Base + Calculation Base + */ + public void setBase (BigDecimal Base) + { + if (Base == null) + throw new IllegalArgumentException ("Base is mandatory."); + set_Value (COLUMNNAME_Base, Base); + } + + /** Get Base. + @return Calculation Base + */ + public BigDecimal getBase () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Base); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID < 1) + throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_InvoiceLine_ID())); + } + + /** Set Landed Cost Allocation. + @param C_LandedCostAllocation_ID + Allocation for Land Costs + */ + public void setC_LandedCostAllocation_ID (int C_LandedCostAllocation_ID) + { + if (C_LandedCostAllocation_ID < 1) + throw new IllegalArgumentException ("C_LandedCostAllocation_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_LandedCostAllocation_ID, Integer.valueOf(C_LandedCostAllocation_ID)); + } + + /** Get Landed Cost Allocation. + @return Allocation for Land Costs + */ + public int getC_LandedCostAllocation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LandedCostAllocation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostElement getI_M_CostElement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID < 1) + throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); + set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Location.java b/base/src/org/compiere/model/X_C_Location.java index efb9a4ebe1..d009c8b7d2 100644 --- a/base/src/org/compiere/model/X_C_Location.java +++ b/base/src/org/compiere/model/X_C_Location.java @@ -1,317 +1,378 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Location - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Location extends PO + +/** Generated Model for C_Location + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Location extends PO implements I_C_Location, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Location_ID id -@param trxName transaction -*/ -public X_C_Location (Properties ctx, int C_Location_ID, String trxName) -{ -super (ctx, C_Location_ID, trxName); -/** if (C_Location_ID == 0) -{ -setC_Country_ID (0); -setC_Location_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Location (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Location */ -public static final String Table_Name="C_Location"; - -/** AD_Table_ID=162 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Location[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Address 1. -@param Address1 Address line 1 for this location */ -public void setAddress1 (String Address1) -{ -if (Address1 != null && Address1.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address1 = Address1.substring(0,59); -} -set_Value ("Address1", Address1); -} -/** Get Address 1. -@return Address line 1 for this location */ -public String getAddress1() -{ -return (String)get_Value("Address1"); -} -/** Column name Address1 */ -public static final String COLUMNNAME_Address1 = "Address1"; -/** Set Address 2. -@param Address2 Address line 2 for this location */ -public void setAddress2 (String Address2) -{ -if (Address2 != null && Address2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address2 = Address2.substring(0,59); -} -set_Value ("Address2", Address2); -} -/** Get Address 2. -@return Address line 2 for this location */ -public String getAddress2() -{ -return (String)get_Value("Address2"); -} -/** Column name Address2 */ -public static final String COLUMNNAME_Address2 = "Address2"; -/** Set Address 3. -@param Address3 Address Line 3 for the location */ -public void setAddress3 (String Address3) -{ -if (Address3 != null && Address3.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address3 = Address3.substring(0,59); -} -set_Value ("Address3", Address3); -} -/** Get Address 3. -@return Address Line 3 for the location */ -public String getAddress3() -{ -return (String)get_Value("Address3"); -} -/** Column name Address3 */ -public static final String COLUMNNAME_Address3 = "Address3"; -/** Set Address 4. -@param Address4 Address Line 4 for the location */ -public void setAddress4 (String Address4) -{ -if (Address4 != null && Address4.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address4 = Address4.substring(0,59); -} -set_Value ("Address4", Address4); -} -/** Get Address 4. -@return Address Line 4 for the location */ -public String getAddress4() -{ -return (String)get_Value("Address4"); -} -/** Column name Address4 */ -public static final String COLUMNNAME_Address4 = "Address4"; -/** Set City. -@param C_City_ID City */ -public void setC_City_ID (int C_City_ID) -{ -if (C_City_ID <= 0) set_Value ("C_City_ID", null); - else -set_Value ("C_City_ID", Integer.valueOf(C_City_ID)); -} -/** Get City. -@return City */ -public int getC_City_ID() -{ -Integer ii = (Integer)get_Value("C_City_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_City_ID */ -public static final String COLUMNNAME_C_City_ID = "C_City_ID"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID < 1) throw new IllegalArgumentException ("C_Country_ID is mandatory."); -set_Value ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID < 1) throw new IllegalArgumentException ("C_Location_ID is mandatory."); -set_ValueNoCheck ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set City. -@param City Identifies a City */ -public void setCity (String City) -{ -if (City != null && City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -City = City.substring(0,59); -} -set_Value ("City", City); -} -/** Get City. -@return Identifies a City */ -public String getCity() -{ -return (String)get_Value("City"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getCity()); -} -/** Column name City */ -public static final String COLUMNNAME_City = "City"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal != null && Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_Value ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -/** Set -. -@param Postal_Add Additional ZIP or Postal code */ -public void setPostal_Add (String Postal_Add) -{ -if (Postal_Add != null && Postal_Add.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal_Add = Postal_Add.substring(0,9); -} -set_Value ("Postal_Add", Postal_Add); -} -/** Get -. -@return Additional ZIP or Postal code */ -public String getPostal_Add() -{ -return (String)get_Value("Postal_Add"); -} -/** Column name Postal_Add */ -public static final String COLUMNNAME_Postal_Add = "Postal_Add"; -/** Set Region. -@param RegionName Name of the Region */ -public void setRegionName (String RegionName) -{ -if (RegionName != null && RegionName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -RegionName = RegionName.substring(0,39); -} -set_Value ("RegionName", RegionName); -} -/** Get Region. -@return Name of the Region */ -public String getRegionName() -{ -return (String)get_Value("RegionName"); -} -/** Column name RegionName */ -public static final String COLUMNNAME_RegionName = "RegionName"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Location (Properties ctx, int C_Location_ID, String trxName) + { + super (ctx, C_Location_ID, trxName); + /** if (C_Location_ID == 0) { setC_Country_ID (0); + setC_Location_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_Location (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Location[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Address 1. + @param Address1 + Address line 1 for this location + */ + public void setAddress1 (String Address1) + { + if (Address1 != null && Address1.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address1 = Address1.substring(0, 59); + } + set_Value (COLUMNNAME_Address1, Address1); + } + + /** Get Address 1. + @return Address line 1 for this location + */ + public String getAddress1 () + { + return (String)get_Value(COLUMNNAME_Address1); + } + + /** Set Address 2. + @param Address2 + Address line 2 for this location + */ + public void setAddress2 (String Address2) + { + if (Address2 != null && Address2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address2 = Address2.substring(0, 59); + } + set_Value (COLUMNNAME_Address2, Address2); + } + + /** Get Address 2. + @return Address line 2 for this location + */ + public String getAddress2 () + { + return (String)get_Value(COLUMNNAME_Address2); + } + + /** Set Address 3. + @param Address3 + Address Line 3 for the location + */ + public void setAddress3 (String Address3) + { + if (Address3 != null && Address3.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address3 = Address3.substring(0, 59); + } + set_Value (COLUMNNAME_Address3, Address3); + } + + /** Get Address 3. + @return Address Line 3 for the location + */ + public String getAddress3 () + { + return (String)get_Value(COLUMNNAME_Address3); + } + + /** Set Address 4. + @param Address4 + Address Line 4 for the location + */ + public void setAddress4 (String Address4) + { + if (Address4 != null && Address4.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address4 = Address4.substring(0, 59); + } + set_Value (COLUMNNAME_Address4, Address4); + } + + /** Get Address 4. + @return Address Line 4 for the location + */ + public String getAddress4 () + { + return (String)get_Value(COLUMNNAME_Address4); + } + + /** Set City. + @param C_City_ID + City + */ + public void setC_City_ID (int C_City_ID) + { + if (C_City_ID <= 0) set_Value (COLUMNNAME_C_City_ID, null); + else + set_Value (COLUMNNAME_C_City_ID, Integer.valueOf(C_City_ID)); + } + + /** Get City. + @return City + */ + public int getC_City_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_City_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID < 1) + throw new IllegalArgumentException ("C_Country_ID is mandatory."); + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID < 1) + throw new IllegalArgumentException ("C_Location_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Region getI_C_Region() throws Exception + { + 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 e; + } + return result; + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set City. + @param City + Identifies a City + */ + public void setCity (String City) + { + if (City != null && City.length() > 60) + { + log.warning("Length > 60 - truncated"); + City = City.substring(0, 59); + } + set_Value (COLUMNNAME_City, City); + } + + /** Get City. + @return Identifies a City + */ + public String getCity () + { + return (String)get_Value(COLUMNNAME_City); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getCity()); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal != null && Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_Value (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } + + /** Set -. + @param Postal_Add + Additional ZIP or Postal code + */ + public void setPostal_Add (String Postal_Add) + { + if (Postal_Add != null && Postal_Add.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal_Add = Postal_Add.substring(0, 9); + } + set_Value (COLUMNNAME_Postal_Add, Postal_Add); + } + + /** Get -. + @return Additional ZIP or Postal code + */ + public String getPostal_Add () + { + return (String)get_Value(COLUMNNAME_Postal_Add); + } + + /** Set Region. + @param RegionName + Name of the Region + */ + public void setRegionName (String RegionName) + { + if (RegionName != null && RegionName.length() > 40) + { + log.warning("Length > 40 - truncated"); + RegionName = RegionName.substring(0, 39); + } + set_Value (COLUMNNAME_RegionName, RegionName); + } + + /** Get Region. + @return Name of the Region + */ + public String getRegionName () + { + return (String)get_Value(COLUMNNAME_RegionName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_NonBusinessDay.java b/base/src/org/compiere/model/X_C_NonBusinessDay.java index 9159f5ca1b..3cf7adc9d5 100644 --- a/base/src/org/compiere/model/X_C_NonBusinessDay.java +++ b/base/src/org/compiere/model/X_C_NonBusinessDay.java @@ -1,164 +1,184 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_NonBusinessDay - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_NonBusinessDay extends PO + +/** Generated Model for C_NonBusinessDay + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_NonBusinessDay extends PO implements I_C_NonBusinessDay, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_NonBusinessDay_ID id -@param trxName transaction -*/ -public X_C_NonBusinessDay (Properties ctx, int C_NonBusinessDay_ID, String trxName) -{ -super (ctx, C_NonBusinessDay_ID, trxName); -/** if (C_NonBusinessDay_ID == 0) -{ -setC_Calendar_ID (0); -setC_NonBusinessDay_ID (0); -setDate1 (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_NonBusinessDay (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_NonBusinessDay */ -public static final String Table_Name="C_NonBusinessDay"; - -/** AD_Table_ID=163 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_NonBusinessDay[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID < 1) throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); -set_ValueNoCheck ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; -/** Set Non Business Day. -@param C_NonBusinessDay_ID Day on which business is not transacted */ -public void setC_NonBusinessDay_ID (int C_NonBusinessDay_ID) -{ -if (C_NonBusinessDay_ID < 1) throw new IllegalArgumentException ("C_NonBusinessDay_ID is mandatory."); -set_ValueNoCheck ("C_NonBusinessDay_ID", Integer.valueOf(C_NonBusinessDay_ID)); -} -/** Get Non Business Day. -@return Day on which business is not transacted */ -public int getC_NonBusinessDay_ID() -{ -Integer ii = (Integer)get_Value("C_NonBusinessDay_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_NonBusinessDay_ID */ -public static final String COLUMNNAME_C_NonBusinessDay_ID = "C_NonBusinessDay_ID"; -/** Set Date. -@param Date1 Date when business is not conducted */ -public void setDate1 (Timestamp Date1) -{ -if (Date1 == null) throw new IllegalArgumentException ("Date1 is mandatory."); -set_Value ("Date1", Date1); -} -/** Get Date. -@return Date when business is not conducted */ -public Timestamp getDate1() -{ -return (Timestamp)get_Value("Date1"); -} -/** Column name Date1 */ -public static final String COLUMNNAME_Date1 = "Date1"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_NonBusinessDay (Properties ctx, int C_NonBusinessDay_ID, String trxName) + { + super (ctx, C_NonBusinessDay_ID, trxName); + /** if (C_NonBusinessDay_ID == 0) { setC_Calendar_ID (0); + setC_NonBusinessDay_ID (0); + setDate1 (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_NonBusinessDay (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_NonBusinessDay[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Calendar getI_C_Calendar() throws Exception + { + 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 e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Non Business Day. + @param C_NonBusinessDay_ID + Day on which business is not transacted + */ + public void setC_NonBusinessDay_ID (int C_NonBusinessDay_ID) + { + if (C_NonBusinessDay_ID < 1) + throw new IllegalArgumentException ("C_NonBusinessDay_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_NonBusinessDay_ID, Integer.valueOf(C_NonBusinessDay_ID)); + } + + /** Get Non Business Day. + @return Day on which business is not transacted + */ + public int getC_NonBusinessDay_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_NonBusinessDay_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date. + @param Date1 + Date when business is not conducted + */ + public void setDate1 (Timestamp Date1) + { + if (Date1 == null) + throw new IllegalArgumentException ("Date1 is mandatory."); + set_Value (COLUMNNAME_Date1, Date1); + } + + /** Get Date. + @return Date when business is not conducted + */ + public Timestamp getDate1 () + { + return (Timestamp)get_Value(COLUMNNAME_Date1); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Order.java b/base/src/org/compiere/model/X_C_Order.java index c389b6b8ac..dbfe114c2a 100644 --- a/base/src/org/compiere/model/X_C_Order.java +++ b/base/src/org/compiere/model/X_C_Order.java @@ -1,1523 +1,1878 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Order - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Order extends PO + +/** Generated Model for C_Order + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Order extends PO implements I_C_Order, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Order_ID id -@param trxName transaction -*/ -public X_C_Order (Properties ctx, int C_Order_ID, String trxName) -{ -super (ctx, C_Order_ID, trxName); -/** if (C_Order_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_Currency_ID (0); // @C_Currency_ID@ -setC_DocTypeTarget_ID (0); -setC_DocType_ID (0); // 0 -setC_Order_ID (0); -setC_PaymentTerm_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDateOrdered (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDatePromised (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDeliveryRule (null); // F -setDeliveryViaRule (null); // P -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setFreightAmt (Env.ZERO); -setFreightCostRule (null); // I -setGrandTotal (Env.ZERO); -setInvoiceRule (null); // I -setIsApproved (false); // @IsApproved@ -setIsCreditApproved (false); -setIsDelivered (false); -setIsDiscountPrinted (false); -setIsDropShip (false); // N -setIsInvoiced (false); -setIsPrinted (false); -setIsSOTrx (false); // @IsSOTrx@ -setIsSelected (false); -setIsSelfService (false); -setIsTaxIncluded (false); -setIsTransferred (false); -setM_PriceList_ID (0); -setM_Warehouse_ID (0); -setPaymentRule (null); // B -setPosted (false); // N -setPriorityRule (null); // 5 -setProcessed (false); -setSalesRep_ID (0); -setSendEMail (false); -setTotalLines (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Order (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Order */ -public static final String Table_Name="C_Order"; - -/** AD_Table_ID=259 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Order[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Order (Properties ctx, int C_Order_ID, String trxName) + { + super (ctx, C_Order_ID, trxName); + /** if (C_Order_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_DocTypeTarget_ID (0); + setC_DocType_ID (0); +// 0 + setC_Order_ID (0); + setC_PaymentTerm_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateOrdered (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDatePromised (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDeliveryRule (null); +// F + setDeliveryViaRule (null); +// P + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setFreightAmt (Env.ZERO); + setFreightCostRule (null); +// I + setGrandTotal (Env.ZERO); + setInvoiceRule (null); +// I + setIsApproved (false); +// @IsApproved@ + setIsCreditApproved (false); + setIsDelivered (false); + setIsDiscountPrinted (false); + setIsDropShip (false); +// N + setIsInvoiced (false); + setIsPrinted (false); + setIsSOTrx (false); +// @IsSOTrx@ + setIsSelected (false); + setIsSelfService (false); + setIsTaxIncluded (false); + setIsTransferred (false); + setM_PriceList_ID (0); + setM_Warehouse_ID (0); + setPaymentRule (null); +// B + setPosted (false); +// N + setPriorityRule (null); +// 5 + setProcessed (false); + setSalesRep_ID (0); + setSendEMail (false); + setTotalLines (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_Order (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Order[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Bill_BPartner_ID AD_Reference_ID=138 */ public static final int BILL_BPARTNER_ID_AD_Reference_ID=138; -/** Set Invoice Partner. -@param Bill_BPartner_ID Business Partner to be invoiced */ -public void setBill_BPartner_ID (int Bill_BPartner_ID) -{ -if (Bill_BPartner_ID <= 0) set_Value ("Bill_BPartner_ID", null); - else -set_Value ("Bill_BPartner_ID", Integer.valueOf(Bill_BPartner_ID)); -} -/** Get Invoice Partner. -@return Business Partner to be invoiced */ -public int getBill_BPartner_ID() -{ -Integer ii = (Integer)get_Value("Bill_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Bill_BPartner_ID */ -public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID"; + /** Set Invoice Partner. + @param Bill_BPartner_ID + Business Partner to be invoiced + */ + public void setBill_BPartner_ID (int Bill_BPartner_ID) + { + if (Bill_BPartner_ID <= 0) set_Value (COLUMNNAME_Bill_BPartner_ID, null); + else + set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID)); + } + + /** Get Invoice Partner. + @return Business Partner to be invoiced + */ + public int getBill_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bill_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Bill_Location_ID AD_Reference_ID=159 */ public static final int BILL_LOCATION_ID_AD_Reference_ID=159; -/** Set Invoice Location. -@param Bill_Location_ID Business Partner Location for invoicing */ -public void setBill_Location_ID (int Bill_Location_ID) -{ -if (Bill_Location_ID <= 0) set_Value ("Bill_Location_ID", null); - else -set_Value ("Bill_Location_ID", Integer.valueOf(Bill_Location_ID)); -} -/** Get Invoice Location. -@return Business Partner Location for invoicing */ -public int getBill_Location_ID() -{ -Integer ii = (Integer)get_Value("Bill_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Bill_Location_ID */ -public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID"; + /** Set Invoice Location. + @param Bill_Location_ID + Business Partner Location for invoicing + */ + public void setBill_Location_ID (int Bill_Location_ID) + { + if (Bill_Location_ID <= 0) set_Value (COLUMNNAME_Bill_Location_ID, null); + else + set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID)); + } + + /** Get Invoice Location. + @return Business Partner Location for invoicing + */ + public int getBill_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bill_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Bill_User_ID AD_Reference_ID=110 */ public static final int BILL_USER_ID_AD_Reference_ID=110; -/** Set Invoice Contact. -@param Bill_User_ID Business Partner Contact for invoicing */ -public void setBill_User_ID (int Bill_User_ID) -{ -if (Bill_User_ID <= 0) set_Value ("Bill_User_ID", null); - else -set_Value ("Bill_User_ID", Integer.valueOf(Bill_User_ID)); -} -/** Get Invoice Contact. -@return Business Partner Contact for invoicing */ -public int getBill_User_ID() -{ -Integer ii = (Integer)get_Value("Bill_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Bill_User_ID */ -public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Cash Journal Line. -@param C_CashLine_ID Cash Journal Line */ -public void setC_CashLine_ID (int C_CashLine_ID) -{ -if (C_CashLine_ID <= 0) set_Value ("C_CashLine_ID", null); - else -set_Value ("C_CashLine_ID", Integer.valueOf(C_CashLine_ID)); -} -/** Get Cash Journal Line. -@return Cash Journal Line */ -public int getC_CashLine_ID() -{ -Integer ii = (Integer)get_Value("C_CashLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashLine_ID */ -public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + /** Set Invoice Contact. + @param Bill_User_ID + Business Partner Contact for invoicing + */ + public void setBill_User_ID (int Bill_User_ID) + { + if (Bill_User_ID <= 0) set_Value (COLUMNNAME_Bill_User_ID, null); + else + set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID)); + } + + /** Get Invoice Contact. + @return Business Partner Contact for invoicing + */ + public int getBill_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bill_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID <= 0) set_Value (COLUMNNAME_C_CashLine_ID, null); + else + set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Charge_ID AD_Reference_ID=200 */ public static final int C_CHARGE_ID_AD_Reference_ID=200; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID <= 0) set_Value ("C_ConversionType_ID", null); - else -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeTarget_ID AD_Reference_ID=170 */ public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170; -/** Set Target Document Type. -@param C_DocTypeTarget_ID Target document type for conversing documents */ -public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) -{ -if (C_DocTypeTarget_ID < 1) throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); -set_Value ("C_DocTypeTarget_ID", Integer.valueOf(C_DocTypeTarget_ID)); -} -/** Get Target Document Type. -@return Target document type for conversing documents */ -public int getC_DocTypeTarget_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeTarget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeTarget_ID */ -public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + /** Set Target Document Type. + @param C_DocTypeTarget_ID + Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) + { + if (C_DocTypeTarget_ID < 1) + throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); + set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + } + + /** Get Target Document Type. + @return Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocType_ID AD_Reference_ID=170 */ public static final int C_DOCTYPE_ID_AD_Reference_ID=170; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_ValueNoCheck ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID < 1) throw new IllegalArgumentException ("C_Order_ID is mandatory."); -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID < 1) throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Copy From. -@param CopyFrom Copy From Record */ -public void setCopyFrom (String CopyFrom) -{ -if (CopyFrom != null && CopyFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CopyFrom = CopyFrom.substring(0,0); -} -set_Value ("CopyFrom", CopyFrom); -} -/** Get Copy From. -@return Copy From Record */ -public String getCopyFrom() -{ -return (String)get_Value("CopyFrom"); -} -/** Column name CopyFrom */ -public static final String COLUMNNAME_CopyFrom = "CopyFrom"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Date Ordered. -@param DateOrdered Date of Order */ -public void setDateOrdered (Timestamp DateOrdered) -{ -if (DateOrdered == null) throw new IllegalArgumentException ("DateOrdered is mandatory."); -set_Value ("DateOrdered", DateOrdered); -} -/** Get Date Ordered. -@return Date of Order */ -public Timestamp getDateOrdered() -{ -return (Timestamp)get_Value("DateOrdered"); -} -/** Column name DateOrdered */ -public static final String COLUMNNAME_DateOrdered = "DateOrdered"; -/** Set Date printed. -@param DatePrinted Date the document was printed. */ -public void setDatePrinted (Timestamp DatePrinted) -{ -set_Value ("DatePrinted", DatePrinted); -} -/** Get Date printed. -@return Date the document was printed. */ -public Timestamp getDatePrinted() -{ -return (Timestamp)get_Value("DatePrinted"); -} -/** Column name DatePrinted */ -public static final String COLUMNNAME_DatePrinted = "DatePrinted"; -/** Set Date Promised. -@param DatePromised Date Order was promised */ -public void setDatePromised (Timestamp DatePromised) -{ -if (DatePromised == null) throw new IllegalArgumentException ("DatePromised is mandatory."); -set_Value ("DatePromised", DatePromised); -} -/** Get Date Promised. -@return Date Order was promised */ -public Timestamp getDatePromised() -{ -return (Timestamp)get_Value("DatePromised"); -} -/** Column name DatePromised */ -public static final String COLUMNNAME_DatePromised = "DatePromised"; + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + throw new IllegalArgumentException ("C_Order_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + if (DateOrdered == null) + throw new IllegalArgumentException ("DateOrdered is mandatory."); + set_Value (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date printed. + @param DatePrinted + Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted) + { + set_Value (COLUMNNAME_DatePrinted, DatePrinted); + } + + /** Get Date printed. + @return Date the document was printed. + */ + public Timestamp getDatePrinted () + { + return (Timestamp)get_Value(COLUMNNAME_DatePrinted); + } + + /** Set Date Promised. + @param DatePromised + Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised) + { + if (DatePromised == null) + throw new IllegalArgumentException ("DatePromised is mandatory."); + set_Value (COLUMNNAME_DatePromised, DatePromised); + } + + /** Get Date Promised. + @return Date Order was promised + */ + public Timestamp getDatePromised () + { + return (Timestamp)get_Value(COLUMNNAME_DatePromised); + } /** DeliveryRule AD_Reference_ID=151 */ -public static final int DELIVERYRULE_AD_Reference_ID=151; -/** Availability = A */ -public static final String DELIVERYRULE_Availability = "A"; -/** Force = F */ -public static final String DELIVERYRULE_Force = "F"; -/** Complete Line = L */ -public static final String DELIVERYRULE_CompleteLine = "L"; -/** Manual = M */ -public static final String DELIVERYRULE_Manual = "M"; -/** Complete Order = O */ -public static final String DELIVERYRULE_CompleteOrder = "O"; -/** After Receipt = R */ +public static final int DELIVERYRULE_AD_Reference_ID=151;/** Availability = A */ +public static final String DELIVERYRULE_Availability = "A";/** Force = F */ +public static final String DELIVERYRULE_Force = "F";/** Complete Line = L */ +public static final String DELIVERYRULE_CompleteLine = "L";/** Manual = M */ +public static final String DELIVERYRULE_Manual = "M";/** Complete Order = O */ +public static final String DELIVERYRULE_CompleteOrder = "O";/** After Receipt = R */ public static final String DELIVERYRULE_AfterReceipt = "R"; -/** Set Delivery Rule. -@param DeliveryRule Defines the timing of Delivery */ -public void setDeliveryRule (String DeliveryRule) -{ -if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); -if (DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); - else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); -if (DeliveryRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryRule = DeliveryRule.substring(0,0); -} -set_Value ("DeliveryRule", DeliveryRule); -} -/** Get Delivery Rule. -@return Defines the timing of Delivery */ -public String getDeliveryRule() -{ -return (String)get_Value("DeliveryRule"); -} -/** Column name DeliveryRule */ -public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { +if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory");if (DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); if (DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 0); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } /** DeliveryViaRule AD_Reference_ID=152 */ -public static final int DELIVERYVIARULE_AD_Reference_ID=152; -/** Delivery = D */ -public static final String DELIVERYVIARULE_Delivery = "D"; -/** Pickup = P */ -public static final String DELIVERYVIARULE_Pickup = "P"; -/** Shipper = S */ +public static final int DELIVERYVIARULE_AD_Reference_ID=152;/** Delivery = D */ +public static final String DELIVERYVIARULE_Delivery = "D";/** Pickup = P */ +public static final String DELIVERYVIARULE_Pickup = "P";/** Shipper = S */ public static final String DELIVERYVIARULE_Shipper = "S"; -/** Set Delivery Via. -@param DeliveryViaRule How the order will be delivered */ -public void setDeliveryViaRule (String DeliveryViaRule) -{ -if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); -if (DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); - else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); -if (DeliveryViaRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryViaRule = DeliveryViaRule.substring(0,0); -} -set_Value ("DeliveryViaRule", DeliveryViaRule); -} -/** Get Delivery Via. -@return How the order will be delivered */ -public String getDeliveryViaRule() -{ -return (String)get_Value("DeliveryViaRule"); -} -/** Column name DeliveryViaRule */ -public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { +if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory");if (DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); if (DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 0); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Freight Amount. -@param FreightAmt Freight Amount */ -public void setFreightAmt (BigDecimal FreightAmt) -{ -if (FreightAmt == null) throw new IllegalArgumentException ("FreightAmt is mandatory."); -set_Value ("FreightAmt", FreightAmt); -} -/** Get Freight Amount. -@return Freight Amount */ -public BigDecimal getFreightAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FreightAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FreightAmt */ -public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + if (FreightAmt == null) + throw new IllegalArgumentException ("FreightAmt is mandatory."); + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** FreightCostRule AD_Reference_ID=153 */ -public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; -/** Calculated = C */ -public static final String FREIGHTCOSTRULE_Calculated = "C"; -/** Fix price = F */ -public static final String FREIGHTCOSTRULE_FixPrice = "F"; -/** Freight included = I */ -public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; -/** Line = L */ +public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;/** Calculated = C */ +public static final String FREIGHTCOSTRULE_Calculated = "C";/** Fix price = F */ +public static final String FREIGHTCOSTRULE_FixPrice = "F";/** Freight included = I */ +public static final String FREIGHTCOSTRULE_FreightIncluded = "I";/** Line = L */ public static final String FREIGHTCOSTRULE_Line = "L"; -/** Set Freight Cost Rule. -@param FreightCostRule Method for charging Freight */ -public void setFreightCostRule (String FreightCostRule) -{ -if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); -if (FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); - else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); -if (FreightCostRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FreightCostRule = FreightCostRule.substring(0,0); -} -set_Value ("FreightCostRule", FreightCostRule); -} -/** Get Freight Cost Rule. -@return Method for charging Freight */ -public String getFreightCostRule() -{ -return (String)get_Value("FreightCostRule"); -} -/** Column name FreightCostRule */ -public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; -/** Set Grand Total. -@param GrandTotal Total amount of document */ -public void setGrandTotal (BigDecimal GrandTotal) -{ -if (GrandTotal == null) throw new IllegalArgumentException ("GrandTotal is mandatory."); -set_ValueNoCheck ("GrandTotal", GrandTotal); -} -/** Get Grand Total. -@return Total amount of document */ -public BigDecimal getGrandTotal() -{ -BigDecimal bd = (BigDecimal)get_Value("GrandTotal"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrandTotal */ -public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { +if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory");if (FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); if (FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 0); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } + + /** Set Grand Total. + @param GrandTotal + Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal) + { + if (GrandTotal == null) + throw new IllegalArgumentException ("GrandTotal is mandatory."); + set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); + } + + /** Get Grand Total. + @return Total amount of document + */ + public BigDecimal getGrandTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal); + if (bd == null) + return Env.ZERO; + return bd; + } /** InvoiceRule AD_Reference_ID=150 */ -public static final int INVOICERULE_AD_Reference_ID=150; -/** After Delivery = D */ -public static final String INVOICERULE_AfterDelivery = "D"; -/** Immediate = I */ -public static final String INVOICERULE_Immediate = "I"; -/** After Order delivered = O */ -public static final String INVOICERULE_AfterOrderDelivered = "O"; -/** Customer Schedule after Delivery = S */ +public static final int INVOICERULE_AD_Reference_ID=150;/** After Delivery = D */ +public static final String INVOICERULE_AfterDelivery = "D";/** Immediate = I */ +public static final String INVOICERULE_Immediate = "I";/** After Order delivered = O */ +public static final String INVOICERULE_AfterOrderDelivered = "O";/** Customer Schedule after Delivery = S */ public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; -/** Set Invoice Rule. -@param InvoiceRule Frequency and method of invoicing */ -public void setInvoiceRule (String InvoiceRule) -{ -if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is mandatory"); -if (InvoiceRule.equals("D") || InvoiceRule.equals("I") || InvoiceRule.equals("O") || InvoiceRule.equals("S")); - else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - D - I - O - S"); -if (InvoiceRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceRule = InvoiceRule.substring(0,0); -} -set_Value ("InvoiceRule", InvoiceRule); -} -/** Get Invoice Rule. -@return Frequency and method of invoicing */ -public String getInvoiceRule() -{ -return (String)get_Value("InvoiceRule"); -} -/** Column name InvoiceRule */ -public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_ValueNoCheck ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Credit Approved. -@param IsCreditApproved Credit has been approved */ -public void setIsCreditApproved (boolean IsCreditApproved) -{ -set_ValueNoCheck ("IsCreditApproved", Boolean.valueOf(IsCreditApproved)); -} -/** Get Credit Approved. -@return Credit has been approved */ -public boolean isCreditApproved() -{ -Object oo = get_Value("IsCreditApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreditApproved */ -public static final String COLUMNNAME_IsCreditApproved = "IsCreditApproved"; -/** Set Delivered. -@param IsDelivered Delivered */ -public void setIsDelivered (boolean IsDelivered) -{ -set_ValueNoCheck ("IsDelivered", Boolean.valueOf(IsDelivered)); -} -/** Get Delivered. -@return Delivered */ -public boolean isDelivered() -{ -Object oo = get_Value("IsDelivered"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDelivered */ -public static final String COLUMNNAME_IsDelivered = "IsDelivered"; -/** Set Discount Printed. -@param IsDiscountPrinted Print Discount on Invoice and Order */ -public void setIsDiscountPrinted (boolean IsDiscountPrinted) -{ -set_Value ("IsDiscountPrinted", Boolean.valueOf(IsDiscountPrinted)); -} -/** Get Discount Printed. -@return Print Discount on Invoice and Order */ -public boolean isDiscountPrinted() -{ -Object oo = get_Value("IsDiscountPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDiscountPrinted */ -public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; -/** Set Drop Shipment. -@param IsDropShip Drop Shipments are sent from the Vendor directly to the Customer */ -public void setIsDropShip (boolean IsDropShip) -{ -set_ValueNoCheck ("IsDropShip", Boolean.valueOf(IsDropShip)); -} -/** Get Drop Shipment. -@return Drop Shipments are sent from the Vendor directly to the Customer */ -public boolean isDropShip() -{ -Object oo = get_Value("IsDropShip"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDropShip */ -public static final String COLUMNNAME_IsDropShip = "IsDropShip"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (boolean IsInvoiced) -{ -set_ValueNoCheck ("IsInvoiced", Boolean.valueOf(IsInvoiced)); -} -/** Get Invoiced. -@return Is this invoiced? */ -public boolean isInvoiced() -{ -Object oo = get_Value("IsInvoiced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_ValueNoCheck ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Selected. -@param IsSelected Selected */ -public void setIsSelected (boolean IsSelected) -{ -set_Value ("IsSelected", Boolean.valueOf(IsSelected)); -} -/** Get Selected. -@return Selected */ -public boolean isSelected() -{ -Object oo = get_Value("IsSelected"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelected */ -public static final String COLUMNNAME_IsSelected = "IsSelected"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Transferred. -@param IsTransferred Transferred to General Ledger (i.e. accounted) */ -public void setIsTransferred (boolean IsTransferred) -{ -set_ValueNoCheck ("IsTransferred", Boolean.valueOf(IsTransferred)); -} -/** Get Transferred. -@return Transferred to General Ledger (i.e. accounted) */ -public boolean isTransferred() -{ -Object oo = get_Value("IsTransferred"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTransferred */ -public static final String COLUMNNAME_IsTransferred = "IsTransferred"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID <= 0) set_Value ("M_Shipper_ID", null); - else -set_Value ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Order Reference. -@param POReference Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public void setPOReference (String POReference) -{ -if (POReference != null && POReference.length() > 20) -{ -log.warning("Length > 20 - truncated"); -POReference = POReference.substring(0,19); -} -set_Value ("POReference", POReference); -} -/** Get Order Reference. -@return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public String getPOReference() -{ -return (String)get_Value("POReference"); -} -/** Column name POReference */ -public static final String COLUMNNAME_POReference = "POReference"; -/** Set Payment BPartner. -@param Pay_BPartner_ID Business Partner responsible for the payment */ -public void setPay_BPartner_ID (int Pay_BPartner_ID) -{ -if (Pay_BPartner_ID <= 0) set_Value ("Pay_BPartner_ID", null); - else -set_Value ("Pay_BPartner_ID", Integer.valueOf(Pay_BPartner_ID)); -} -/** Get Payment BPartner. -@return Business Partner responsible for the payment */ -public int getPay_BPartner_ID() -{ -Integer ii = (Integer)get_Value("Pay_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Pay_BPartner_ID */ -public static final String COLUMNNAME_Pay_BPartner_ID = "Pay_BPartner_ID"; -/** Set Payment Location. -@param Pay_Location_ID Location of the Business Partner responsible for the payment */ -public void setPay_Location_ID (int Pay_Location_ID) -{ -if (Pay_Location_ID <= 0) set_Value ("Pay_Location_ID", null); - else -set_Value ("Pay_Location_ID", Integer.valueOf(Pay_Location_ID)); -} -/** Get Payment Location. -@return Location of the Business Partner responsible for the payment */ -public int getPay_Location_ID() -{ -Integer ii = (Integer)get_Value("Pay_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Pay_Location_ID */ -public static final String COLUMNNAME_Pay_Location_ID = "Pay_Location_ID"; + /** Set Invoice Rule. + @param InvoiceRule + Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule) + { +if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is mandatory");if (InvoiceRule.equals("D") || InvoiceRule.equals("I") || InvoiceRule.equals("O") || InvoiceRule.equals("S")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - D - I - O - S"); if (InvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceRule = InvoiceRule.substring(0, 0); + } + set_Value (COLUMNNAME_InvoiceRule, InvoiceRule); + } + + /** Get Invoice Rule. + @return Frequency and method of invoicing + */ + public String getInvoiceRule () + { + return (String)get_Value(COLUMNNAME_InvoiceRule); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Credit Approved. + @param IsCreditApproved + Credit has been approved + */ + public void setIsCreditApproved (boolean IsCreditApproved) + { + set_ValueNoCheck (COLUMNNAME_IsCreditApproved, Boolean.valueOf(IsCreditApproved)); + } + + /** Get Credit Approved. + @return Credit has been approved + */ + public boolean isCreditApproved () + { + Object oo = get_Value(COLUMNNAME_IsCreditApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delivered. + @param IsDelivered Delivered */ + public void setIsDelivered (boolean IsDelivered) + { + set_ValueNoCheck (COLUMNNAME_IsDelivered, Boolean.valueOf(IsDelivered)); + } + + /** Get Delivered. +@return Delivered */ + public boolean isDelivered () + { + Object oo = get_Value(COLUMNNAME_IsDelivered); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Drop Shipment. + @param IsDropShip + Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip) + { + set_ValueNoCheck (COLUMNNAME_IsDropShip, Boolean.valueOf(IsDropShip)); + } + + /** Get Drop Shipment. + @return Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip () + { + Object oo = get_Value(COLUMNNAME_IsDropShip); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_ValueNoCheck (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Selected. + @param IsSelected Selected */ + public void setIsSelected (boolean IsSelected) + { + set_Value (COLUMNNAME_IsSelected, Boolean.valueOf(IsSelected)); + } + + /** Get Selected. +@return Selected */ + public boolean isSelected () + { + Object oo = get_Value(COLUMNNAME_IsSelected); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Transferred. + @param IsTransferred + Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred) + { + set_ValueNoCheck (COLUMNNAME_IsTransferred, Boolean.valueOf(IsTransferred)); + } + + /** Get Transferred. + @return Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred () + { + Object oo = get_Value(COLUMNNAME_IsTransferred); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getI_M_Shipper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID <= 0) set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 19); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** Set Payment BPartner. + @param Pay_BPartner_ID + Business Partner responsible for the payment + */ + public void setPay_BPartner_ID (int Pay_BPartner_ID) + { + if (Pay_BPartner_ID <= 0) set_Value (COLUMNNAME_Pay_BPartner_ID, null); + else + set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID)); + } + + /** Get Payment BPartner. + @return Business Partner responsible for the payment + */ + public int getPay_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Pay_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Location. + @param Pay_Location_ID + Location of the Business Partner responsible for the payment + */ + public void setPay_Location_ID (int Pay_Location_ID) + { + if (Pay_Location_ID <= 0) set_Value (COLUMNNAME_Pay_Location_ID, null); + else + set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID)); + } + + /** Get Payment Location. + @return Location of the Business Partner responsible for the payment + */ + public int getPay_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Pay_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); -if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_Value ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PriorityRule AD_Reference_ID=154 */ -public static final int PRIORITYRULE_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITYRULE_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITYRULE_High = "3"; -/** Medium = 5 */ -public static final String PRIORITYRULE_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITYRULE_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITYRULE_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITYRULE_Urgent = "1";/** High = 3 */ +public static final String PRIORITYRULE_High = "3";/** Medium = 5 */ +public static final String PRIORITYRULE_Medium = "5";/** Low = 7 */ +public static final String PRIORITYRULE_Low = "7";/** Minor = 9 */ public static final String PRIORITYRULE_Minor = "9"; -/** Set Priority. -@param PriorityRule Priority of a document */ -public void setPriorityRule (String PriorityRule) -{ -if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); -if (PriorityRule.equals("1") || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("9")); - else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (PriorityRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PriorityRule = PriorityRule.substring(0,0); -} -set_Value ("PriorityRule", PriorityRule); -} -/** Get Priority. -@return Priority of a document */ -public String getPriorityRule() -{ -return (String)get_Value("PriorityRule"); -} -/** Column name PriorityRule */ -public static final String COLUMNNAME_PriorityRule = "PriorityRule"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Priority. + @param PriorityRule + Priority of a document + */ + public void setPriorityRule (String PriorityRule) + { +if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory");if (PriorityRule.equals("1") || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (PriorityRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityRule = PriorityRule.substring(0, 0); + } + set_Value (COLUMNNAME_PriorityRule, PriorityRule); + } + + /** Get Priority. + @return Priority of a document + */ + public String getPriorityRule () + { + return (String)get_Value(COLUMNNAME_PriorityRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** Ref_Order_ID AD_Reference_ID=290 */ public static final int REF_ORDER_ID_AD_Reference_ID=290; -/** Set Referenced Order. -@param Ref_Order_ID Reference to corresponding Sales/Purchase Order */ -public void setRef_Order_ID (int Ref_Order_ID) -{ -if (Ref_Order_ID <= 0) set_Value ("Ref_Order_ID", null); - else -set_Value ("Ref_Order_ID", Integer.valueOf(Ref_Order_ID)); -} -/** Get Referenced Order. -@return Reference to corresponding Sales/Purchase Order */ -public int getRef_Order_ID() -{ -Integer ii = (Integer)get_Value("Ref_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_Order_ID */ -public static final String COLUMNNAME_Ref_Order_ID = "Ref_Order_ID"; + /** Set Referenced Order. + @param Ref_Order_ID + Reference to corresponding Sales/Purchase Order + */ + public void setRef_Order_ID (int Ref_Order_ID) + { + if (Ref_Order_ID <= 0) set_Value (COLUMNNAME_Ref_Order_ID, null); + else + set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID)); + } + + /** Get Referenced Order. + @return Reference to corresponding Sales/Purchase Order + */ + public int getRef_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Send EMail. -@param SendEMail Enable sending Document EMail */ -public void setSendEMail (boolean SendEMail) -{ -set_Value ("SendEMail", Boolean.valueOf(SendEMail)); -} -/** Get Send EMail. -@return Enable sending Document EMail */ -public boolean isSendEMail() -{ -Object oo = get_Value("SendEMail"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendEMail */ -public static final String COLUMNNAME_SendEMail = "SendEMail"; -/** Set Total Lines. -@param TotalLines Total of all document lines */ -public void setTotalLines (BigDecimal TotalLines) -{ -if (TotalLines == null) throw new IllegalArgumentException ("TotalLines is mandatory."); -set_ValueNoCheck ("TotalLines", TotalLines); -} -/** Get Total Lines. -@return Total of all document lines */ -public BigDecimal getTotalLines() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalLines"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalLines */ -public static final String COLUMNNAME_TotalLines = "TotalLines"; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Lines. + @param TotalLines + Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines) + { + if (TotalLines == null) + throw new IllegalArgumentException ("TotalLines is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines); + } + + /** Get Total Lines. + @return Total of all document lines + */ + public BigDecimal getTotalLines () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -/** Set Volume. -@param Volume Volume of a product */ -public void setVolume (BigDecimal Volume) -{ -set_Value ("Volume", Volume); -} -/** Get Volume. -@return Volume of a product */ -public BigDecimal getVolume() -{ -BigDecimal bd = (BigDecimal)get_Value("Volume"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Volume */ -public static final String COLUMNNAME_Volume = "Volume"; -/** Set Weight. -@param Weight Weight of a product */ -public void setWeight (BigDecimal Weight) -{ -set_Value ("Weight", Weight); -} -/** Get Weight. -@return Weight of a product */ -public BigDecimal getWeight() -{ -BigDecimal bd = (BigDecimal)get_Value("Weight"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Weight */ -public static final String COLUMNNAME_Weight = "Weight"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (BigDecimal Volume) + { + set_Value (COLUMNNAME_Volume, Volume); + } + + /** Get Volume. + @return Volume of a product + */ + public BigDecimal getVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (BigDecimal Weight) + { + set_Value (COLUMNNAME_Weight, Weight); + } + + /** Get Weight. + @return Weight of a product + */ + public BigDecimal getWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_OrderLine.java b/base/src/org/compiere/model/X_C_OrderLine.java index ea4a601bee..b2c8dd9b31 100644 --- a/base/src/org/compiere/model/X_C_OrderLine.java +++ b/base/src/org/compiere/model/X_C_OrderLine.java @@ -1,918 +1,1284 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_OrderLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_OrderLine extends PO + +/** Generated Model for C_OrderLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_OrderLine_ID id -@param trxName transaction -*/ -public X_C_OrderLine (Properties ctx, int C_OrderLine_ID, String trxName) -{ -super (ctx, C_OrderLine_ID, trxName); -/** if (C_OrderLine_ID == 0) -{ -setC_BPartner_Location_ID (0); // @C_BPartner_Location_ID@ -setC_Currency_ID (0); // @C_Currency_ID@ -setC_OrderLine_ID (0); -setC_Order_ID (0); -setC_Tax_ID (0); -setC_UOM_ID (0); // @#C_UOM_ID@ -setDateOrdered (new Timestamp(System.currentTimeMillis())); // @DateOrdered@ -setFreightAmt (Env.ZERO); -setIsDescription (false); // N -setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_OrderLine WHERE C_Order_ID=@C_Order_ID@ -setLineNetAmt (Env.ZERO); -setM_AttributeSetInstance_ID (0); -setM_Warehouse_ID (0); // @M_Warehouse_ID@ -setPriceActual (Env.ZERO); -setPriceEntered (Env.ZERO); -setPriceLimit (Env.ZERO); -setPriceList (Env.ZERO); -setProcessed (false); -setQtyDelivered (Env.ZERO); -setQtyEntered (Env.ZERO); // 1 -setQtyInvoiced (Env.ZERO); -setQtyLostSales (Env.ZERO); -setQtyOrdered (Env.ZERO); // 1 -setQtyReserved (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_OrderLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_OrderLine */ -public static final String Table_Name="C_OrderLine"; - -/** AD_Table_ID=260 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_OrderLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_OrderLine (Properties ctx, int C_OrderLine_ID, String trxName) + { + super (ctx, C_OrderLine_ID, trxName); + /** if (C_OrderLine_ID == 0) { setC_BPartner_Location_ID (0); +// @C_BPartner_Location_ID@ + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_OrderLine_ID (0); + setC_Order_ID (0); + setC_Tax_ID (0); + setC_UOM_ID (0); +// @#C_UOM_ID@ + setDateOrdered (new Timestamp(System.currentTimeMillis())); +// @DateOrdered@ + setFreightAmt (Env.ZERO); + setIsDescription (false); +// N + setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_OrderLine WHERE C_Order_ID=@C_Order_ID@ + setLineNetAmt (Env.ZERO); + setM_AttributeSetInstance_ID (0); + setM_Warehouse_ID (0); +// @M_Warehouse_ID@ + setPriceActual (Env.ZERO); + setPriceEntered (Env.ZERO); + setPriceLimit (Env.ZERO); + setPriceList (Env.ZERO); + setProcessed (false); + setQtyDelivered (Env.ZERO); + setQtyEntered (Env.ZERO); +// 1 + setQtyInvoiced (Env.ZERO); + setQtyLostSales (Env.ZERO); + setQtyOrdered (Env.ZERO); +// 1 + setQtyReserved (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_OrderLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_OrderLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_ValueNoCheck ("C_BPartner_ID", null); - else -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID < 1) throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID < 1) throw new IllegalArgumentException ("C_Order_ID is mandatory."); -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Order_ID())); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_ValueNoCheck ("C_ProjectPhase_ID", null); - else -set_ValueNoCheck ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_ValueNoCheck ("C_ProjectTask_ID", null); - else -set_ValueNoCheck ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_Value ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_ValueNoCheck ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Date Delivered. -@param DateDelivered Date when the product was delivered */ -public void setDateDelivered (Timestamp DateDelivered) -{ -set_ValueNoCheck ("DateDelivered", DateDelivered); -} -/** Get Date Delivered. -@return Date when the product was delivered */ -public Timestamp getDateDelivered() -{ -return (Timestamp)get_Value("DateDelivered"); -} -/** Column name DateDelivered */ -public static final String COLUMNNAME_DateDelivered = "DateDelivered"; -/** Set Date Invoiced. -@param DateInvoiced Date printed on Invoice */ -public void setDateInvoiced (Timestamp DateInvoiced) -{ -set_ValueNoCheck ("DateInvoiced", DateInvoiced); -} -/** Get Date Invoiced. -@return Date printed on Invoice */ -public Timestamp getDateInvoiced() -{ -return (Timestamp)get_Value("DateInvoiced"); -} -/** Column name DateInvoiced */ -public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; -/** Set Date Ordered. -@param DateOrdered Date of Order */ -public void setDateOrdered (Timestamp DateOrdered) -{ -if (DateOrdered == null) throw new IllegalArgumentException ("DateOrdered is mandatory."); -set_Value ("DateOrdered", DateOrdered); -} -/** Get Date Ordered. -@return Date of Order */ -public Timestamp getDateOrdered() -{ -return (Timestamp)get_Value("DateOrdered"); -} -/** Column name DateOrdered */ -public static final String COLUMNNAME_DateOrdered = "DateOrdered"; -/** Set Date Promised. -@param DatePromised Date Order was promised */ -public void setDatePromised (Timestamp DatePromised) -{ -set_Value ("DatePromised", DatePromised); -} -/** Get Date Promised. -@return Date Order was promised */ -public Timestamp getDatePromised() -{ -return (Timestamp)get_Value("DatePromised"); -} -/** Column name DatePromised */ -public static final String COLUMNNAME_DatePromised = "DatePromised"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Discount %. -@param Discount Discount in percent */ -public void setDiscount (BigDecimal Discount) -{ -set_Value ("Discount", Discount); -} -/** Get Discount %. -@return Discount in percent */ -public BigDecimal getDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Discount */ -public static final String COLUMNNAME_Discount = "Discount"; -/** Set Freight Amount. -@param FreightAmt Freight Amount */ -public void setFreightAmt (BigDecimal FreightAmt) -{ -if (FreightAmt == null) throw new IllegalArgumentException ("FreightAmt is mandatory."); -set_Value ("FreightAmt", FreightAmt); -} -/** Get Freight Amount. -@return Freight Amount */ -public BigDecimal getFreightAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FreightAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FreightAmt */ -public static final String COLUMNNAME_FreightAmt = "FreightAmt"; -/** Set Description Only. -@param IsDescription if true, the line is just description and no transaction */ -public void setIsDescription (boolean IsDescription) -{ -set_Value ("IsDescription", Boolean.valueOf(IsDescription)); -} -/** Get Description Only. -@return if true, the line is just description and no transaction */ -public boolean isDescription() -{ -Object oo = get_Value("IsDescription"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDescription */ -public static final String COLUMNNAME_IsDescription = "IsDescription"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Line Amount. -@param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public void setLineNetAmt (BigDecimal LineNetAmt) -{ -if (LineNetAmt == null) throw new IllegalArgumentException ("LineNetAmt is mandatory."); -set_ValueNoCheck ("LineNetAmt", LineNetAmt); -} -/** Get Line Amount. -@return Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public BigDecimal getLineNetAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineNetAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineNetAmt */ -public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID <= 0) set_Value ("M_Shipper_ID", null); - else -set_Value ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID < 1) + throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + throw new IllegalArgumentException ("C_Order_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Order_ID())); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date Delivered. + @param DateDelivered + Date when the product was delivered + */ + public void setDateDelivered (Timestamp DateDelivered) + { + set_ValueNoCheck (COLUMNNAME_DateDelivered, DateDelivered); + } + + /** Get Date Delivered. + @return Date when the product was delivered + */ + public Timestamp getDateDelivered () + { + return (Timestamp)get_Value(COLUMNNAME_DateDelivered); + } + + /** Set Date Invoiced. + @param DateInvoiced + Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced) + { + set_ValueNoCheck (COLUMNNAME_DateInvoiced, DateInvoiced); + } + + /** Get Date Invoiced. + @return Date printed on Invoice + */ + public Timestamp getDateInvoiced () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvoiced); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + if (DateOrdered == null) + throw new IllegalArgumentException ("DateOrdered is mandatory."); + set_Value (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date Promised. + @param DatePromised + Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised) + { + set_Value (COLUMNNAME_DatePromised, DatePromised); + } + + /** Get Date Promised. + @return Date Order was promised + */ + public Timestamp getDatePromised () + { + return (Timestamp)get_Value(COLUMNNAME_DatePromised); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Discount %. + @param Discount + Discount in percent + */ + public void setDiscount (BigDecimal Discount) + { + set_Value (COLUMNNAME_Discount, Discount); + } + + /** Get Discount %. + @return Discount in percent + */ + public BigDecimal getDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + if (FreightAmt == null) + throw new IllegalArgumentException ("FreightAmt is mandatory."); + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description Only. + @param IsDescription + if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription) + { + set_Value (COLUMNNAME_IsDescription, Boolean.valueOf(IsDescription)); + } + + /** Get Description Only. + @return if true, the line is just description and no transaction + */ + public boolean isDescription () + { + Object oo = get_Value(COLUMNNAME_IsDescription); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line Amount. + @param LineNetAmt + Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt) + { + if (LineNetAmt == null) + throw new IllegalArgumentException ("LineNetAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); + } + + /** Get Line Amount. + @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getI_M_Shipper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID <= 0) set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Warehouse_ID AD_Reference_ID=197 */ public static final int M_WAREHOUSE_ID_AD_Reference_ID=197; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Unit Price. -@param PriceActual Actual Price */ -public void setPriceActual (BigDecimal PriceActual) -{ -if (PriceActual == null) throw new IllegalArgumentException ("PriceActual is mandatory."); -set_ValueNoCheck ("PriceActual", PriceActual); -} -/** Get Unit Price. -@return Actual Price */ -public BigDecimal getPriceActual() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceActual */ -public static final String COLUMNNAME_PriceActual = "PriceActual"; -/** Set Cost Price. -@param PriceCost Price per Unit of Measure including all indirect costs (Freight, etc.) */ -public void setPriceCost (BigDecimal PriceCost) -{ -set_Value ("PriceCost", PriceCost); -} -/** Get Cost Price. -@return Price per Unit of Measure including all indirect costs (Freight, etc.) */ -public BigDecimal getPriceCost() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceCost */ -public static final String COLUMNNAME_PriceCost = "PriceCost"; -/** Set Price. -@param PriceEntered Price Entered - the price based on the selected/base UoM */ -public void setPriceEntered (BigDecimal PriceEntered) -{ -if (PriceEntered == null) throw new IllegalArgumentException ("PriceEntered is mandatory."); -set_Value ("PriceEntered", PriceEntered); -} -/** Get Price. -@return Price Entered - the price based on the selected/base UoM */ -public BigDecimal getPriceEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceEntered */ -public static final String COLUMNNAME_PriceEntered = "PriceEntered"; -/** Set Limit Price. -@param PriceLimit Lowest price for a product */ -public void setPriceLimit (BigDecimal PriceLimit) -{ -if (PriceLimit == null) throw new IllegalArgumentException ("PriceLimit is mandatory."); -set_Value ("PriceLimit", PriceLimit); -} -/** Get Limit Price. -@return Lowest price for a product */ -public BigDecimal getPriceLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimit */ -public static final String COLUMNNAME_PriceLimit = "PriceLimit"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -if (PriceList == null) throw new IllegalArgumentException ("PriceList is mandatory."); -set_Value ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Delivered Quantity. -@param QtyDelivered Delivered Quantity */ -public void setQtyDelivered (BigDecimal QtyDelivered) -{ -if (QtyDelivered == null) throw new IllegalArgumentException ("QtyDelivered is mandatory."); -set_ValueNoCheck ("QtyDelivered", QtyDelivered); -} -/** Get Delivered Quantity. -@return Delivered Quantity */ -public BigDecimal getQtyDelivered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyDelivered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyDelivered */ -public static final String COLUMNNAME_QtyDelivered = "QtyDelivered"; -/** Set Quantity. -@param QtyEntered The Quantity Entered is based on the selected UoM */ -public void setQtyEntered (BigDecimal QtyEntered) -{ -if (QtyEntered == null) throw new IllegalArgumentException ("QtyEntered is mandatory."); -set_Value ("QtyEntered", QtyEntered); -} -/** Get Quantity. -@return The Quantity Entered is based on the selected UoM */ -public BigDecimal getQtyEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyEntered */ -public static final String COLUMNNAME_QtyEntered = "QtyEntered"; -/** Set Quantity Invoiced. -@param QtyInvoiced Invoiced Quantity */ -public void setQtyInvoiced (BigDecimal QtyInvoiced) -{ -if (QtyInvoiced == null) throw new IllegalArgumentException ("QtyInvoiced is mandatory."); -set_ValueNoCheck ("QtyInvoiced", QtyInvoiced); -} -/** Get Quantity Invoiced. -@return Invoiced Quantity */ -public BigDecimal getQtyInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInvoiced */ -public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; -/** Set Lost Sales Qty. -@param QtyLostSales Quantity of potential sales */ -public void setQtyLostSales (BigDecimal QtyLostSales) -{ -if (QtyLostSales == null) throw new IllegalArgumentException ("QtyLostSales is mandatory."); -set_Value ("QtyLostSales", QtyLostSales); -} -/** Get Lost Sales Qty. -@return Quantity of potential sales */ -public BigDecimal getQtyLostSales() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyLostSales"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyLostSales */ -public static final String COLUMNNAME_QtyLostSales = "QtyLostSales"; -/** Set Ordered Quantity. -@param QtyOrdered Ordered Quantity */ -public void setQtyOrdered (BigDecimal QtyOrdered) -{ -if (QtyOrdered == null) throw new IllegalArgumentException ("QtyOrdered is mandatory."); -set_Value ("QtyOrdered", QtyOrdered); -} -/** Get Ordered Quantity. -@return Ordered Quantity */ -public BigDecimal getQtyOrdered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOrdered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOrdered */ -public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; -/** Set Reserved Quantity. -@param QtyReserved Reserved Quantity */ -public void setQtyReserved (BigDecimal QtyReserved) -{ -if (QtyReserved == null) throw new IllegalArgumentException ("QtyReserved is mandatory."); -set_ValueNoCheck ("QtyReserved", QtyReserved); -} -/** Get Reserved Quantity. -@return Reserved Quantity */ -public BigDecimal getQtyReserved() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyReserved"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyReserved */ -public static final String COLUMNNAME_QtyReserved = "QtyReserved"; -/** Set Revenue Recognition Amt. -@param RRAmt Revenue Recognition Amount */ -public void setRRAmt (BigDecimal RRAmt) -{ -set_Value ("RRAmt", RRAmt); -} -/** Get Revenue Recognition Amt. -@return Revenue Recognition Amount */ -public BigDecimal getRRAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RRAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RRAmt */ -public static final String COLUMNNAME_RRAmt = "RRAmt"; -/** Set Revenue Recognition Start. -@param RRStartDate Revenue Recognition Start Date */ -public void setRRStartDate (Timestamp RRStartDate) -{ -set_Value ("RRStartDate", RRStartDate); -} -/** Get Revenue Recognition Start. -@return Revenue Recognition Start Date */ -public Timestamp getRRStartDate() -{ -return (Timestamp)get_Value("RRStartDate"); -} -/** Column name RRStartDate */ -public static final String COLUMNNAME_RRStartDate = "RRStartDate"; + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + if (PriceActual == null) + throw new IllegalArgumentException ("PriceActual is mandatory."); + set_ValueNoCheck (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Cost Price. + @param PriceCost + Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public void setPriceCost (BigDecimal PriceCost) + { + set_Value (COLUMNNAME_PriceCost, PriceCost); + } + + /** Get Cost Price. + @return Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public BigDecimal getPriceCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price. + @param PriceEntered + Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered) + { + if (PriceEntered == null) + throw new IllegalArgumentException ("PriceEntered is mandatory."); + set_Value (COLUMNNAME_PriceEntered, PriceEntered); + } + + /** Get Price. + @return Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + if (PriceLimit == null) + throw new IllegalArgumentException ("PriceLimit is mandatory."); + set_Value (COLUMNNAME_PriceLimit, PriceLimit); + } + + /** Get Limit Price. + @return Lowest price for a product + */ + public BigDecimal getPriceLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + if (PriceList == null) + throw new IllegalArgumentException ("PriceList is mandatory."); + set_Value (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delivered Quantity. + @param QtyDelivered + Delivered Quantity + */ + public void setQtyDelivered (BigDecimal QtyDelivered) + { + if (QtyDelivered == null) + throw new IllegalArgumentException ("QtyDelivered is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyDelivered, QtyDelivered); + } + + /** Get Delivered Quantity. + @return Delivered Quantity + */ + public BigDecimal getQtyDelivered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyDelivered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity. + @param QtyEntered + The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered) + { + if (QtyEntered == null) + throw new IllegalArgumentException ("QtyEntered is mandatory."); + set_Value (COLUMNNAME_QtyEntered, QtyEntered); + } + + /** Get Quantity. + @return The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + if (QtyInvoiced == null) + throw new IllegalArgumentException ("QtyInvoiced is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Lost Sales Qty. + @param QtyLostSales + Quantity of potential sales + */ + public void setQtyLostSales (BigDecimal QtyLostSales) + { + if (QtyLostSales == null) + throw new IllegalArgumentException ("QtyLostSales is mandatory."); + set_Value (COLUMNNAME_QtyLostSales, QtyLostSales); + } + + /** Get Lost Sales Qty. + @return Quantity of potential sales + */ + public BigDecimal getQtyLostSales () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyLostSales); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + if (QtyOrdered == null) + throw new IllegalArgumentException ("QtyOrdered is mandatory."); + set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reserved Quantity. + @param QtyReserved + Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved) + { + if (QtyReserved == null) + throw new IllegalArgumentException ("QtyReserved is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); + } + + /** Get Reserved Quantity. + @return Reserved Quantity + */ + public BigDecimal getQtyReserved () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revenue Recognition Amt. + @param RRAmt + Revenue Recognition Amount + */ + public void setRRAmt (BigDecimal RRAmt) + { + set_Value (COLUMNNAME_RRAmt, RRAmt); + } + + /** Get Revenue Recognition Amt. + @return Revenue Recognition Amount + */ + public BigDecimal getRRAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RRAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revenue Recognition Start. + @param RRStartDate + Revenue Recognition Start Date + */ + public void setRRStartDate (Timestamp RRStartDate) + { + set_Value (COLUMNNAME_RRStartDate, RRStartDate); + } + + /** Get Revenue Recognition Start. + @return Revenue Recognition Start Date + */ + public Timestamp getRRStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_RRStartDate); + } /** Ref_OrderLine_ID AD_Reference_ID=271 */ public static final int REF_ORDERLINE_ID_AD_Reference_ID=271; -/** Set Referenced Order Line. -@param Ref_OrderLine_ID Reference to corresponding Sales/Purchase Order */ -public void setRef_OrderLine_ID (int Ref_OrderLine_ID) -{ -if (Ref_OrderLine_ID <= 0) set_Value ("Ref_OrderLine_ID", null); - else -set_Value ("Ref_OrderLine_ID", Integer.valueOf(Ref_OrderLine_ID)); -} -/** Get Referenced Order Line. -@return Reference to corresponding Sales/Purchase Order */ -public int getRef_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("Ref_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_OrderLine_ID */ -public static final String COLUMNNAME_Ref_OrderLine_ID = "Ref_OrderLine_ID"; -/** Set Resource Assignment. -@param S_ResourceAssignment_ID Resource Assignment */ -public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) -{ -if (S_ResourceAssignment_ID <= 0) set_Value ("S_ResourceAssignment_ID", null); - else -set_Value ("S_ResourceAssignment_ID", Integer.valueOf(S_ResourceAssignment_ID)); -} -/** Get Resource Assignment. -@return Resource Assignment */ -public int getS_ResourceAssignment_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceAssignment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceAssignment_ID */ -public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; + /** Set Referenced Order Line. + @param Ref_OrderLine_ID + Reference to corresponding Sales/Purchase Order + */ + public void setRef_OrderLine_ID (int Ref_OrderLine_ID) + { + if (Ref_OrderLine_ID <= 0) set_Value (COLUMNNAME_Ref_OrderLine_ID, null); + else + set_Value (COLUMNNAME_Ref_OrderLine_ID, Integer.valueOf(Ref_OrderLine_ID)); + } + + /** Get Referenced Order Line. + @return Reference to corresponding Sales/Purchase Order + */ + public int getRef_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Resource Assignment. + @param S_ResourceAssignment_ID + Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) + { + if (S_ResourceAssignment_ID <= 0) set_Value (COLUMNNAME_S_ResourceAssignment_ID, null); + else + set_Value (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); + } + + /** Get Resource Assignment. + @return Resource Assignment + */ + public int getS_ResourceAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_OrderTax.java b/base/src/org/compiere/model/X_C_OrderTax.java index 8d3a7272d2..c42d286dd1 100644 --- a/base/src/org/compiere/model/X_C_OrderTax.java +++ b/base/src/org/compiere/model/X_C_OrderTax.java @@ -1,201 +1,230 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_OrderTax - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_OrderTax extends PO + +/** Generated Model for C_OrderTax + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_OrderTax extends PO implements I_C_OrderTax, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_OrderTax_ID id -@param trxName transaction -*/ -public X_C_OrderTax (Properties ctx, int C_OrderTax_ID, String trxName) -{ -super (ctx, C_OrderTax_ID, trxName); -/** if (C_OrderTax_ID == 0) -{ -setC_Order_ID (0); -setC_Tax_ID (0); -setIsTaxIncluded (false); -setProcessed (false); -setTaxAmt (Env.ZERO); -setTaxBaseAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_OrderTax (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_OrderTax */ -public static final String Table_Name="C_OrderTax"; - -/** AD_Table_ID=314 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_OrderTax[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID < 1) throw new IllegalArgumentException ("C_Order_ID is mandatory."); -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -if (TaxAmt == null) throw new IllegalArgumentException ("TaxAmt is mandatory."); -set_ValueNoCheck ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; -/** Set Tax base Amount. -@param TaxBaseAmt Base for calculating the tax amount */ -public void setTaxBaseAmt (BigDecimal TaxBaseAmt) -{ -if (TaxBaseAmt == null) throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); -set_ValueNoCheck ("TaxBaseAmt", TaxBaseAmt); -} -/** Get Tax base Amount. -@return Base for calculating the tax amount */ -public BigDecimal getTaxBaseAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxBaseAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxBaseAmt */ -public static final String COLUMNNAME_TaxBaseAmt = "TaxBaseAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_OrderTax (Properties ctx, int C_OrderTax_ID, String trxName) + { + super (ctx, C_OrderTax_ID, trxName); + /** if (C_OrderTax_ID == 0) { setC_Order_ID (0); + setC_Tax_ID (0); + setIsTaxIncluded (false); + setProcessed (false); + setTaxAmt (Env.ZERO); + setTaxBaseAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_OrderTax (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_OrderTax[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + throw new IllegalArgumentException ("C_Order_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + if (TaxAmt == null) + throw new IllegalArgumentException ("TaxAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tax base Amount. + @param TaxBaseAmt + Base for calculating the tax amount + */ + public void setTaxBaseAmt (BigDecimal TaxBaseAmt) + { + if (TaxBaseAmt == null) + throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TaxBaseAmt, TaxBaseAmt); + } + + /** Get Tax base Amount. + @return Base for calculating the tax amount + */ + public BigDecimal getTaxBaseAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxBaseAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_OrgAssignment.java b/base/src/org/compiere/model/X_C_OrgAssignment.java index 69a0c7d102..20bff92d5d 100644 --- a/base/src/org/compiere/model/X_C_OrgAssignment.java +++ b/base/src/org/compiere/model/X_C_OrgAssignment.java @@ -1,172 +1,177 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_OrgAssignment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_OrgAssignment extends PO + +/** Generated Model for C_OrgAssignment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_OrgAssignment extends PO implements I_C_OrgAssignment, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_OrgAssignment_ID id -@param trxName transaction -*/ -public X_C_OrgAssignment (Properties ctx, int C_OrgAssignment_ID, String trxName) -{ -super (ctx, C_OrgAssignment_ID, trxName); -/** if (C_OrgAssignment_ID == 0) -{ -setAD_User_ID (0); -setC_OrgAssignment_ID (0); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_OrgAssignment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_OrgAssignment */ -public static final String Table_Name="C_OrgAssignment"; - -/** AD_Table_ID=585 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_OrgAssignment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Org Assignment. -@param C_OrgAssignment_ID Assigment to (transaction) Organization */ -public void setC_OrgAssignment_ID (int C_OrgAssignment_ID) -{ -if (C_OrgAssignment_ID < 1) throw new IllegalArgumentException ("C_OrgAssignment_ID is mandatory."); -set_ValueNoCheck ("C_OrgAssignment_ID", Integer.valueOf(C_OrgAssignment_ID)); -} -/** Get Org Assignment. -@return Assigment to (transaction) Organization */ -public int getC_OrgAssignment_ID() -{ -Integer ii = (Integer)get_Value("C_OrgAssignment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrgAssignment_ID */ -public static final String COLUMNNAME_C_OrgAssignment_ID = "C_OrgAssignment_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_OrgAssignment (Properties ctx, int C_OrgAssignment_ID, String trxName) + { + super (ctx, C_OrgAssignment_ID, trxName); + /** if (C_OrgAssignment_ID == 0) { setAD_User_ID (0); + setC_OrgAssignment_ID (0); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_OrgAssignment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_OrgAssignment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Org Assignment. + @param C_OrgAssignment_ID + Assigment to (transaction) Organization + */ + public void setC_OrgAssignment_ID (int C_OrgAssignment_ID) + { + if (C_OrgAssignment_ID < 1) + throw new IllegalArgumentException ("C_OrgAssignment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_OrgAssignment_ID, Integer.valueOf(C_OrgAssignment_ID)); + } + + /** Get Org Assignment. + @return Assigment to (transaction) Organization + */ + public int getC_OrgAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrgAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_POS.java b/base/src/org/compiere/model/X_C_POS.java index 1fa953b40a..ccfd5c583e 100644 --- a/base/src/org/compiere/model/X_C_POS.java +++ b/base/src/org/compiere/model/X_C_POS.java @@ -1,342 +1,462 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_POS - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_POS extends PO + +/** Generated Model for C_POS + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_POS extends PO implements I_C_POS, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_POS_ID id -@param trxName transaction -*/ -public X_C_POS (Properties ctx, int C_POS_ID, String trxName) -{ -super (ctx, C_POS_ID, trxName); -/** if (C_POS_ID == 0) -{ -setC_CashBook_ID (0); -setC_POS_ID (0); -setIsModifyPrice (false); // N -setM_PriceList_ID (0); -setM_Warehouse_ID (0); -setName (null); -setSalesRep_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_POS (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_POS */ -public static final String Table_Name="C_POS"; - -/** AD_Table_ID=748 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_POS[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_POS (Properties ctx, int C_POS_ID, String trxName) + { + super (ctx, C_POS_ID, trxName); + /** if (C_POS_ID == 0) { setC_CashBook_ID (0); + setC_POS_ID (0); + setIsModifyPrice (false); +// N + setM_PriceList_ID (0); + setM_Warehouse_ID (0); + setName (null); + setSalesRep_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_POS (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_POS[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** C_BPartnerCashTrx_ID AD_Reference_ID=173 */ public static final int C_BPARTNERCASHTRX_ID_AD_Reference_ID=173; -/** Set Template B.Partner. -@param C_BPartnerCashTrx_ID Business Partner used for creating new Business Partners on the fly */ -public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID) -{ -if (C_BPartnerCashTrx_ID <= 0) set_Value ("C_BPartnerCashTrx_ID", null); - else -set_Value ("C_BPartnerCashTrx_ID", Integer.valueOf(C_BPartnerCashTrx_ID)); -} -/** Get Template B.Partner. -@return Business Partner used for creating new Business Partners on the fly */ -public int getC_BPartnerCashTrx_ID() -{ -Integer ii = (Integer)get_Value("C_BPartnerCashTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartnerCashTrx_ID */ -public static final String COLUMNNAME_C_BPartnerCashTrx_ID = "C_BPartnerCashTrx_ID"; -/** Set Cash Book. -@param C_CashBook_ID Cash Book for recording petty cash transactions */ -public void setC_CashBook_ID (int C_CashBook_ID) -{ -if (C_CashBook_ID < 1) throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); -set_Value ("C_CashBook_ID", Integer.valueOf(C_CashBook_ID)); -} -/** Get Cash Book. -@return Cash Book for recording petty cash transactions */ -public int getC_CashBook_ID() -{ -Integer ii = (Integer)get_Value("C_CashBook_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_CashBook_ID */ -public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set POS Key Layout. -@param C_POSKeyLayout_ID POS Function Key Layout */ -public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) -{ -if (C_POSKeyLayout_ID <= 0) set_Value ("C_POSKeyLayout_ID", null); - else -set_Value ("C_POSKeyLayout_ID", Integer.valueOf(C_POSKeyLayout_ID)); -} -/** Get POS Key Layout. -@return POS Function Key Layout */ -public int getC_POSKeyLayout_ID() -{ -Integer ii = (Integer)get_Value("C_POSKeyLayout_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_POSKeyLayout_ID */ -public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; -/** Set POS Terminal. -@param C_POS_ID Point of Sales Terminal */ -public void setC_POS_ID (int C_POS_ID) -{ -if (C_POS_ID < 1) throw new IllegalArgumentException ("C_POS_ID is mandatory."); -set_ValueNoCheck ("C_POS_ID", Integer.valueOf(C_POS_ID)); -} -/** Get POS Terminal. -@return Point of Sales Terminal */ -public int getC_POS_ID() -{ -Integer ii = (Integer)get_Value("C_POS_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_POS_ID */ -public static final String COLUMNNAME_C_POS_ID = "C_POS_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Modify Price. -@param IsModifyPrice Allow modifying the price */ -public void setIsModifyPrice (boolean IsModifyPrice) -{ -set_Value ("IsModifyPrice", Boolean.valueOf(IsModifyPrice)); -} -/** Get Modify Price. -@return Allow modifying the price */ -public boolean isModifyPrice() -{ -Object oo = get_Value("IsModifyPrice"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsModifyPrice */ -public static final String COLUMNNAME_IsModifyPrice = "IsModifyPrice"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Printer Name. -@param PrinterName Name of the Printer */ -public void setPrinterName (String PrinterName) -{ -if (PrinterName != null && PrinterName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PrinterName = PrinterName.substring(0,59); -} -set_Value ("PrinterName", PrinterName); -} -/** Get Printer Name. -@return Name of the Printer */ -public String getPrinterName() -{ -return (String)get_Value("PrinterName"); -} -/** Column name PrinterName */ -public static final String COLUMNNAME_PrinterName = "PrinterName"; + /** Set Template B.Partner. + @param C_BPartnerCashTrx_ID + Business Partner used for creating new Business Partners on the fly + */ + public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID) + { + if (C_BPartnerCashTrx_ID <= 0) set_Value (COLUMNNAME_C_BPartnerCashTrx_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerCashTrx_ID, Integer.valueOf(C_BPartnerCashTrx_ID)); + } + + /** Get Template B.Partner. + @return Business Partner used for creating new Business Partners on the fly + */ + public int getC_BPartnerCashTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerCashTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_CashBook getI_C_CashBook() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cash Book. + @param C_CashBook_ID + Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID) + { + if (C_CashBook_ID < 1) + throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); + set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + } + + /** Get Cash Book. + @return Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_POSKeyLayout getI_C_POSKeyLayout() throws Exception + { + 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 e; + } + return result; + } + + /** Set POS Key Layout. + @param C_POSKeyLayout_ID + POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) + { + if (C_POSKeyLayout_ID <= 0) set_Value (COLUMNNAME_C_POSKeyLayout_ID, null); + else + set_Value (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); + } + + /** Get POS Key Layout. + @return POS Function Key Layout + */ + public int getC_POSKeyLayout_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POSKeyLayout_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set POS Terminal. + @param C_POS_ID + Point of Sales Terminal + */ + public void setC_POS_ID (int C_POS_ID) + { + if (C_POS_ID < 1) + throw new IllegalArgumentException ("C_POS_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID)); + } + + /** Get POS Terminal. + @return Point of Sales Terminal + */ + public int getC_POS_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POS_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Modify Price. + @param IsModifyPrice + Allow modifying the price + */ + public void setIsModifyPrice (boolean IsModifyPrice) + { + set_Value (COLUMNNAME_IsModifyPrice, Boolean.valueOf(IsModifyPrice)); + } + + /** Get Modify Price. + @return Allow modifying the price + */ + public boolean isModifyPrice () + { + Object oo = get_Value(COLUMNNAME_IsModifyPrice); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Printer Name. + @param PrinterName + Name of the Printer + */ + public void setPrinterName (String PrinterName) + { + if (PrinterName != null && PrinterName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrinterName = PrinterName.substring(0, 59); + } + set_Value (COLUMNNAME_PrinterName, PrinterName); + } + + /** Get Printer Name. + @return Name of the Printer + */ + public String getPrinterName () + { + return (String)get_Value(COLUMNNAME_PrinterName); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_POSKey.java b/base/src/org/compiere/model/X_C_POSKey.java index 99caea9595..c9daeba6a7 100644 --- a/base/src/org/compiere/model/X_C_POSKey.java +++ b/base/src/org/compiere/model/X_C_POSKey.java @@ -1,242 +1,294 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_POSKey - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_POSKey extends PO + +/** Generated Model for C_POSKey + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_POSKey extends PO implements I_C_POSKey, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_POSKey_ID id -@param trxName transaction -*/ -public X_C_POSKey (Properties ctx, int C_POSKey_ID, String trxName) -{ -super (ctx, C_POSKey_ID, trxName); -/** if (C_POSKey_ID == 0) -{ -setC_POSKeyLayout_ID (0); -setC_POSKey_ID (0); -setM_Product_ID (0); -setName (null); -setQty (Env.ZERO); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_POSKey (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_POSKey */ -public static final String Table_Name="C_POSKey"; - -/** AD_Table_ID=750 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_POSKey[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); - else -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set POS Key Layout. -@param C_POSKeyLayout_ID POS Function Key Layout */ -public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) -{ -if (C_POSKeyLayout_ID < 1) throw new IllegalArgumentException ("C_POSKeyLayout_ID is mandatory."); -set_ValueNoCheck ("C_POSKeyLayout_ID", Integer.valueOf(C_POSKeyLayout_ID)); -} -/** Get POS Key Layout. -@return POS Function Key Layout */ -public int getC_POSKeyLayout_ID() -{ -Integer ii = (Integer)get_Value("C_POSKeyLayout_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_POSKeyLayout_ID */ -public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; -/** Set POS Key. -@param C_POSKey_ID POS Function Key */ -public void setC_POSKey_ID (int C_POSKey_ID) -{ -if (C_POSKey_ID < 1) throw new IllegalArgumentException ("C_POSKey_ID is mandatory."); -set_ValueNoCheck ("C_POSKey_ID", Integer.valueOf(C_POSKey_ID)); -} -/** Get POS Key. -@return POS Function Key */ -public int getC_POSKey_ID() -{ -Integer ii = (Integer)get_Value("C_POSKey_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_POSKey_ID */ -public static final String COLUMNNAME_C_POSKey_ID = "C_POSKey_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_POSKey (Properties ctx, int C_POSKey_ID, String trxName) + { + super (ctx, C_POSKey_ID, trxName); + /** if (C_POSKey_ID == 0) { setC_POSKeyLayout_ID (0); + setC_POSKey_ID (0); + setM_Product_ID (0); + setName (null); + setQty (Env.ZERO); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_C_POSKey (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_POSKey[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_POSKeyLayout getI_C_POSKeyLayout() throws Exception + { + 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 e; + } + return result; + } + + /** Set POS Key Layout. + @param C_POSKeyLayout_ID + POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) + { + if (C_POSKeyLayout_ID < 1) + throw new IllegalArgumentException ("C_POSKeyLayout_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); + } + + /** Get POS Key Layout. + @return POS Function Key Layout + */ + public int getC_POSKeyLayout_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POSKeyLayout_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set POS Key. + @param C_POSKey_ID + POS Function Key + */ + public void setC_POSKey_ID (int C_POSKey_ID) + { + if (C_POSKey_ID < 1) + throw new IllegalArgumentException ("C_POSKey_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_POSKey_ID, Integer.valueOf(C_POSKey_ID)); + } + + /** Get POS Key. + @return POS Function Key + */ + public int getC_POSKey_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POSKey_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_POSKeyLayout.java b/base/src/org/compiere/model/X_C_POSKeyLayout.java index f2073ea533..f6b5f4f60a 100644 --- a/base/src/org/compiere/model/X_C_POSKeyLayout.java +++ b/base/src/org/compiere/model/X_C_POSKeyLayout.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_POSKeyLayout - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_POSKeyLayout extends PO + +/** Generated Model for C_POSKeyLayout + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_POSKeyLayout extends PO implements I_C_POSKeyLayout, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_POSKeyLayout_ID id -@param trxName transaction -*/ -public X_C_POSKeyLayout (Properties ctx, int C_POSKeyLayout_ID, String trxName) -{ -super (ctx, C_POSKeyLayout_ID, trxName); -/** if (C_POSKeyLayout_ID == 0) -{ -setC_POSKeyLayout_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_POSKeyLayout (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_POSKeyLayout */ -public static final String Table_Name="C_POSKeyLayout"; - -/** AD_Table_ID=749 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_POSKeyLayout[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set POS Key Layout. -@param C_POSKeyLayout_ID POS Function Key Layout */ -public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) -{ -if (C_POSKeyLayout_ID < 1) throw new IllegalArgumentException ("C_POSKeyLayout_ID is mandatory."); -set_ValueNoCheck ("C_POSKeyLayout_ID", Integer.valueOf(C_POSKeyLayout_ID)); -} -/** Get POS Key Layout. -@return POS Function Key Layout */ -public int getC_POSKeyLayout_ID() -{ -Integer ii = (Integer)get_Value("C_POSKeyLayout_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_POSKeyLayout_ID */ -public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_POSKeyLayout (Properties ctx, int C_POSKeyLayout_ID, String trxName) + { + super (ctx, C_POSKeyLayout_ID, trxName); + /** if (C_POSKeyLayout_ID == 0) { setC_POSKeyLayout_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_POSKeyLayout (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_POSKeyLayout[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set POS Key Layout. + @param C_POSKeyLayout_ID + POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) + { + if (C_POSKeyLayout_ID < 1) + throw new IllegalArgumentException ("C_POSKeyLayout_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); + } + + /** Get POS Key Layout. + @return POS Function Key Layout + */ + public int getC_POSKeyLayout_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POSKeyLayout_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaySchedule.java b/base/src/org/compiere/model/X_C_PaySchedule.java index 654a0b2b5f..22a356b2b2 100644 --- a/base/src/org/compiere/model/X_C_PaySchedule.java +++ b/base/src/org/compiere/model/X_C_PaySchedule.java @@ -1,275 +1,307 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaySchedule - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaySchedule extends PO + +/** Generated Model for C_PaySchedule + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaySchedule extends PO implements I_C_PaySchedule, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaySchedule_ID id -@param trxName transaction -*/ -public X_C_PaySchedule (Properties ctx, int C_PaySchedule_ID, String trxName) -{ -super (ctx, C_PaySchedule_ID, trxName); -/** if (C_PaySchedule_ID == 0) -{ -setC_PaySchedule_ID (0); -setC_PaymentTerm_ID (0); -setDiscount (Env.ZERO); -setDiscountDays (0); -setGraceDays (0); -setIsValid (false); -setNetDays (0); -setPercentage (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaySchedule (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaySchedule */ -public static final String Table_Name="C_PaySchedule"; - -/** AD_Table_ID=548 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaySchedule[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Payment Schedule. -@param C_PaySchedule_ID Payment Schedule Template */ -public void setC_PaySchedule_ID (int C_PaySchedule_ID) -{ -if (C_PaySchedule_ID < 1) throw new IllegalArgumentException ("C_PaySchedule_ID is mandatory."); -set_ValueNoCheck ("C_PaySchedule_ID", Integer.valueOf(C_PaySchedule_ID)); -} -/** Get Payment Schedule. -@return Payment Schedule Template */ -public int getC_PaySchedule_ID() -{ -Integer ii = (Integer)get_Value("C_PaySchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySchedule_ID */ -public static final String COLUMNNAME_C_PaySchedule_ID = "C_PaySchedule_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID < 1) throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); -set_ValueNoCheck ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_PaymentTerm_ID())); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Discount %. -@param Discount Discount in percent */ -public void setDiscount (BigDecimal Discount) -{ -if (Discount == null) throw new IllegalArgumentException ("Discount is mandatory."); -set_Value ("Discount", Discount); -} -/** Get Discount %. -@return Discount in percent */ -public BigDecimal getDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Discount */ -public static final String COLUMNNAME_Discount = "Discount"; -/** Set Discount Days. -@param DiscountDays Number of days from invoice date to be eligible for discount */ -public void setDiscountDays (int DiscountDays) -{ -set_Value ("DiscountDays", Integer.valueOf(DiscountDays)); -} -/** Get Discount Days. -@return Number of days from invoice date to be eligible for discount */ -public int getDiscountDays() -{ -Integer ii = (Integer)get_Value("DiscountDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DiscountDays */ -public static final String COLUMNNAME_DiscountDays = "DiscountDays"; -/** Set Grace Days. -@param GraceDays Days after due date to send first dunning letter */ -public void setGraceDays (int GraceDays) -{ -set_Value ("GraceDays", Integer.valueOf(GraceDays)); -} -/** Get Grace Days. -@return Days after due date to send first dunning letter */ -public int getGraceDays() -{ -Integer ii = (Integer)get_Value("GraceDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GraceDays */ -public static final String COLUMNNAME_GraceDays = "GraceDays"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaySchedule (Properties ctx, int C_PaySchedule_ID, String trxName) + { + super (ctx, C_PaySchedule_ID, trxName); + /** if (C_PaySchedule_ID == 0) { setC_PaySchedule_ID (0); + setC_PaymentTerm_ID (0); + setDiscount (Env.ZERO); + setDiscountDays (0); + setGraceDays (0); + setIsValid (false); + setNetDays (0); + setPercentage (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_PaySchedule (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaySchedule[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Payment Schedule. + @param C_PaySchedule_ID + Payment Schedule Template + */ + public void setC_PaySchedule_ID (int C_PaySchedule_ID) + { + if (C_PaySchedule_ID < 1) + throw new IllegalArgumentException ("C_PaySchedule_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaySchedule_ID, Integer.valueOf(C_PaySchedule_ID)); + } + + /** Get Payment Schedule. + @return Payment Schedule Template + */ + public int getC_PaySchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_PaymentTerm_ID())); + } + + /** Set Discount %. + @param Discount + Discount in percent + */ + public void setDiscount (BigDecimal Discount) + { + if (Discount == null) + throw new IllegalArgumentException ("Discount is mandatory."); + set_Value (COLUMNNAME_Discount, Discount); + } + + /** Get Discount %. + @return Discount in percent + */ + public BigDecimal getDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Discount Days. + @param DiscountDays + Number of days from invoice date to be eligible for discount + */ + public void setDiscountDays (int DiscountDays) + { + set_Value (COLUMNNAME_DiscountDays, Integer.valueOf(DiscountDays)); + } + + /** Get Discount Days. + @return Number of days from invoice date to be eligible for discount + */ + public int getDiscountDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DiscountDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Grace Days. + @param GraceDays + Days after due date to send first dunning letter + */ + public void setGraceDays (int GraceDays) + { + set_Value (COLUMNNAME_GraceDays, Integer.valueOf(GraceDays)); + } + + /** Get Grace Days. + @return Days after due date to send first dunning letter + */ + public int getGraceDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GraceDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** NetDay AD_Reference_ID=167 */ -public static final int NETDAY_AD_Reference_ID=167; -/** Monday = 1 */ -public static final String NETDAY_Monday = "1"; -/** Tuesday = 2 */ -public static final String NETDAY_Tuesday = "2"; -/** Wednesday = 3 */ -public static final String NETDAY_Wednesday = "3"; -/** Thursday = 4 */ -public static final String NETDAY_Thursday = "4"; -/** Friday = 5 */ -public static final String NETDAY_Friday = "5"; -/** Saturday = 6 */ -public static final String NETDAY_Saturday = "6"; -/** Sunday = 7 */ +public static final int NETDAY_AD_Reference_ID=167;/** Monday = 1 */ +public static final String NETDAY_Monday = "1";/** Tuesday = 2 */ +public static final String NETDAY_Tuesday = "2";/** Wednesday = 3 */ +public static final String NETDAY_Wednesday = "3";/** Thursday = 4 */ +public static final String NETDAY_Thursday = "4";/** Friday = 5 */ +public static final String NETDAY_Friday = "5";/** Saturday = 6 */ +public static final String NETDAY_Saturday = "6";/** Sunday = 7 */ public static final String NETDAY_Sunday = "7"; -/** Set Net Day. -@param NetDay Day when payment is due net */ -public void setNetDay (String NetDay) -{ -if (NetDay == null || NetDay.equals("1") || NetDay.equals("2") || NetDay.equals("3") || NetDay.equals("4") || NetDay.equals("5") || NetDay.equals("6") || NetDay.equals("7")); - else throw new IllegalArgumentException ("NetDay Invalid value - " + NetDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); -if (NetDay != null && NetDay.length() > 1) -{ -log.warning("Length > 1 - truncated"); -NetDay = NetDay.substring(0,0); -} -set_Value ("NetDay", NetDay); -} -/** Get Net Day. -@return Day when payment is due net */ -public String getNetDay() -{ -return (String)get_Value("NetDay"); -} -/** Column name NetDay */ -public static final String COLUMNNAME_NetDay = "NetDay"; -/** Set Net Days. -@param NetDays Net Days in which payment is due */ -public void setNetDays (int NetDays) -{ -set_Value ("NetDays", Integer.valueOf(NetDays)); -} -/** Get Net Days. -@return Net Days in which payment is due */ -public int getNetDays() -{ -Integer ii = (Integer)get_Value("NetDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NetDays */ -public static final String COLUMNNAME_NetDays = "NetDays"; -/** Set Percentage. -@param Percentage Percent of the entire amount */ -public void setPercentage (BigDecimal Percentage) -{ -if (Percentage == null) throw new IllegalArgumentException ("Percentage is mandatory."); -set_Value ("Percentage", Percentage); -} -/** Get Percentage. -@return Percent of the entire amount */ -public BigDecimal getPercentage() -{ -BigDecimal bd = (BigDecimal)get_Value("Percentage"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Percentage */ -public static final String COLUMNNAME_Percentage = "Percentage"; -} + /** Set Net Day. + @param NetDay + Day when payment is due net + */ + public void setNetDay (String NetDay) + { +if (NetDay == null || NetDay.equals("1") || NetDay.equals("2") || NetDay.equals("3") || NetDay.equals("4") || NetDay.equals("5") || NetDay.equals("6") || NetDay.equals("7")); else throw new IllegalArgumentException ("NetDay Invalid value - " + NetDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); if (NetDay != null && NetDay.length() > 1) + { + log.warning("Length > 1 - truncated"); + NetDay = NetDay.substring(0, 0); + } + set_Value (COLUMNNAME_NetDay, NetDay); + } + + /** Get Net Day. + @return Day when payment is due net + */ + public String getNetDay () + { + return (String)get_Value(COLUMNNAME_NetDay); + } + + /** Set Net Days. + @param NetDays + Net Days in which payment is due + */ + public void setNetDays (int NetDays) + { + set_Value (COLUMNNAME_NetDays, Integer.valueOf(NetDays)); + } + + /** Get Net Days. + @return Net Days in which payment is due + */ + public int getNetDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NetDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Percentage. + @param Percentage + Percent of the entire amount + */ + public void setPercentage (BigDecimal Percentage) + { + if (Percentage == null) + throw new IllegalArgumentException ("Percentage is mandatory."); + set_Value (COLUMNNAME_Percentage, Percentage); + } + + /** Get Percentage. + @return Percent of the entire amount + */ + public BigDecimal getPercentage () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Percentage); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaySelection.java b/base/src/org/compiere/model/X_C_PaySelection.java index 2dc1b45090..8f72cc8b62 100644 --- a/base/src/org/compiere/model/X_C_PaySelection.java +++ b/base/src/org/compiere/model/X_C_PaySelection.java @@ -1,285 +1,328 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaySelection - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaySelection extends PO + +/** Generated Model for C_PaySelection + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaySelection extends PO implements I_C_PaySelection, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaySelection_ID id -@param trxName transaction -*/ -public X_C_PaySelection (Properties ctx, int C_PaySelection_ID, String trxName) -{ -super (ctx, C_PaySelection_ID, trxName); -/** if (C_PaySelection_ID == 0) -{ -setC_BankAccount_ID (0); -setC_PaySelection_ID (0); -setIsApproved (false); -setName (null); // @#Date@ -setPayDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setProcessed (false); -setProcessing (false); -setTotalAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaySelection (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaySelection */ -public static final String Table_Name="C_PaySelection"; - -/** AD_Table_ID=426 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaySelection[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Payment Selection. -@param C_PaySelection_ID Payment Selection */ -public void setC_PaySelection_ID (int C_PaySelection_ID) -{ -if (C_PaySelection_ID < 1) throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); -set_ValueNoCheck ("C_PaySelection_ID", Integer.valueOf(C_PaySelection_ID)); -} -/** Get Payment Selection. -@return Payment Selection */ -public int getC_PaySelection_ID() -{ -Integer ii = (Integer)get_Value("C_PaySelection_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySelection_ID */ -public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; -/** Set Create lines from. -@param CreateFrom Process which will generate a new document lines based on an existing document */ -public void setCreateFrom (String CreateFrom) -{ -if (CreateFrom != null && CreateFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateFrom = CreateFrom.substring(0,0); -} -set_Value ("CreateFrom", CreateFrom); -} -/** Get Create lines from. -@return Process which will generate a new document lines based on an existing document */ -public String getCreateFrom() -{ -return (String)get_Value("CreateFrom"); -} -/** Column name CreateFrom */ -public static final String COLUMNNAME_CreateFrom = "CreateFrom"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Payment date. -@param PayDate Date Payment made */ -public void setPayDate (Timestamp PayDate) -{ -if (PayDate == null) throw new IllegalArgumentException ("PayDate is mandatory."); -set_Value ("PayDate", PayDate); -} -/** Get Payment date. -@return Date Payment made */ -public Timestamp getPayDate() -{ -return (Timestamp)get_Value("PayDate"); -} -/** Column name PayDate */ -public static final String COLUMNNAME_PayDate = "PayDate"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Total Amount. -@param TotalAmt Total Amount */ -public void setTotalAmt (BigDecimal TotalAmt) -{ -if (TotalAmt == null) throw new IllegalArgumentException ("TotalAmt is mandatory."); -set_Value ("TotalAmt", TotalAmt); -} -/** Get Total Amount. -@return Total Amount */ -public BigDecimal getTotalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalAmt */ -public static final String COLUMNNAME_TotalAmt = "TotalAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaySelection (Properties ctx, int C_PaySelection_ID, String trxName) + { + super (ctx, C_PaySelection_ID, trxName); + /** if (C_PaySelection_ID == 0) { setC_BankAccount_ID (0); + setC_PaySelection_ID (0); + setIsApproved (false); + setName (null); +// @#Date@ + setPayDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setProcessed (false); + setProcessing (false); + setTotalAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_PaySelection (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaySelection[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Selection. + @param C_PaySelection_ID + Payment Selection + */ + public void setC_PaySelection_ID (int C_PaySelection_ID) + { + if (C_PaySelection_ID < 1) + throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); + } + + /** Get Payment Selection. + @return Payment Selection + */ + public int getC_PaySelection_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelection_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Payment date. + @param PayDate + Date Payment made + */ + public void setPayDate (Timestamp PayDate) + { + if (PayDate == null) + throw new IllegalArgumentException ("PayDate is mandatory."); + set_Value (COLUMNNAME_PayDate, PayDate); + } + + /** Get Payment date. + @return Date Payment made + */ + public Timestamp getPayDate () + { + return (Timestamp)get_Value(COLUMNNAME_PayDate); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Amount. + @param TotalAmt + Total Amount + */ + public void setTotalAmt (BigDecimal TotalAmt) + { + if (TotalAmt == null) + throw new IllegalArgumentException ("TotalAmt is mandatory."); + set_Value (COLUMNNAME_TotalAmt, TotalAmt); + } + + /** Get Total Amount. + @return Total Amount + */ + public BigDecimal getTotalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaySelectionCheck.java b/base/src/org/compiere/model/X_C_PaySelectionCheck.java index 804943287c..c01f517565 100644 --- a/base/src/org/compiere/model/X_C_PaySelectionCheck.java +++ b/base/src/org/compiere/model/X_C_PaySelectionCheck.java @@ -1,350 +1,413 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaySelectionCheck - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaySelectionCheck extends PO + +/** Generated Model for C_PaySelectionCheck + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaySelectionCheck extends PO implements I_C_PaySelectionCheck, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaySelectionCheck_ID id -@param trxName transaction -*/ -public X_C_PaySelectionCheck (Properties ctx, int C_PaySelectionCheck_ID, String trxName) -{ -super (ctx, C_PaySelectionCheck_ID, trxName); -/** if (C_PaySelectionCheck_ID == 0) -{ -setC_BPartner_ID (0); -setC_PaySelectionCheck_ID (0); -setC_PaySelection_ID (0); -setDiscountAmt (Env.ZERO); -setIsPrinted (false); -setIsReceipt (false); -setPayAmt (Env.ZERO); -setPaymentRule (null); -setProcessed (false); // N -setQty (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaySelectionCheck (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaySelectionCheck */ -public static final String Table_Name="C_PaySelectionCheck"; - -/** AD_Table_ID=525 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaySelectionCheck[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Partner Bank Account. -@param C_BP_BankAccount_ID Bank Account of the Business Partner */ -public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) -{ -if (C_BP_BankAccount_ID <= 0) set_Value ("C_BP_BankAccount_ID", null); - else -set_Value ("C_BP_BankAccount_ID", Integer.valueOf(C_BP_BankAccount_ID)); -} -/** Get Partner Bank Account. -@return Bank Account of the Business Partner */ -public int getC_BP_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BP_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_BankAccount_ID */ -public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Pay Selection Check. -@param C_PaySelectionCheck_ID Payment Selection Check */ -public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID) -{ -if (C_PaySelectionCheck_ID < 1) throw new IllegalArgumentException ("C_PaySelectionCheck_ID is mandatory."); -set_ValueNoCheck ("C_PaySelectionCheck_ID", Integer.valueOf(C_PaySelectionCheck_ID)); -} -/** Get Pay Selection Check. -@return Payment Selection Check */ -public int getC_PaySelectionCheck_ID() -{ -Integer ii = (Integer)get_Value("C_PaySelectionCheck_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySelectionCheck_ID */ -public static final String COLUMNNAME_C_PaySelectionCheck_ID = "C_PaySelectionCheck_ID"; -/** Set Payment Selection. -@param C_PaySelection_ID Payment Selection */ -public void setC_PaySelection_ID (int C_PaySelection_ID) -{ -if (C_PaySelection_ID < 1) throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); -set_ValueNoCheck ("C_PaySelection_ID", Integer.valueOf(C_PaySelection_ID)); -} -/** Get Payment Selection. -@return Payment Selection */ -public int getC_PaySelection_ID() -{ -Integer ii = (Integer)get_Value("C_PaySelection_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySelection_ID */ -public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -if (DiscountAmt == null) throw new IllegalArgumentException ("DiscountAmt is mandatory."); -set_Value ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Receipt. -@param IsReceipt This is a sales transaction (receipt) */ -public void setIsReceipt (boolean IsReceipt) -{ -set_Value ("IsReceipt", Boolean.valueOf(IsReceipt)); -} -/** Get Receipt. -@return This is a sales transaction (receipt) */ -public boolean isReceipt() -{ -Object oo = get_Value("IsReceipt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReceipt */ -public static final String COLUMNNAME_IsReceipt = "IsReceipt"; -/** Set Payment amount. -@param PayAmt Amount being paid */ -public void setPayAmt (BigDecimal PayAmt) -{ -if (PayAmt == null) throw new IllegalArgumentException ("PayAmt is mandatory."); -set_Value ("PayAmt", PayAmt); -} -/** Get Payment amount. -@return Amount being paid */ -public BigDecimal getPayAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PayAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PayAmt */ -public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaySelectionCheck (Properties ctx, int C_PaySelectionCheck_ID, String trxName) + { + super (ctx, C_PaySelectionCheck_ID, trxName); + /** if (C_PaySelectionCheck_ID == 0) { setC_BPartner_ID (0); + setC_PaySelectionCheck_ID (0); + setC_PaySelection_ID (0); + setDiscountAmt (Env.ZERO); + setIsPrinted (false); + setIsReceipt (false); + setPayAmt (Env.ZERO); + setPaymentRule (null); + setProcessed (false); +// N + setQty (0); +} */ + } + + /** Load Constructor */ + public X_C_PaySelectionCheck (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaySelectionCheck[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_BP_BankAccount getI_C_BP_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Bank Account. + @param C_BP_BankAccount_ID + Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) + { + if (C_BP_BankAccount_ID <= 0) set_Value (COLUMNNAME_C_BP_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); + } + + /** Get Partner Bank Account. + @return Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Pay Selection Check. + @param C_PaySelectionCheck_ID + Payment Selection Check + */ + public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID) + { + if (C_PaySelectionCheck_ID < 1) + throw new IllegalArgumentException ("C_PaySelectionCheck_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaySelectionCheck_ID, Integer.valueOf(C_PaySelectionCheck_ID)); + } + + /** Get Pay Selection Check. + @return Payment Selection Check + */ + public int getC_PaySelectionCheck_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelectionCheck_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaySelection getI_C_PaySelection() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Selection. + @param C_PaySelection_ID + Payment Selection + */ + public void setC_PaySelection_ID (int C_PaySelection_ID) + { + if (C_PaySelection_ID < 1) + throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); + } + + /** Get Payment Selection. + @return Payment Selection + */ + public int getC_PaySelection_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelection_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + if (DiscountAmt == null) + throw new IllegalArgumentException ("DiscountAmt is mandatory."); + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Receipt. + @param IsReceipt + This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt) + { + set_Value (COLUMNNAME_IsReceipt, Boolean.valueOf(IsReceipt)); + } + + /** Get Receipt. + @return This is a sales transaction (receipt) + */ + public boolean isReceipt () + { + Object oo = get_Value(COLUMNNAME_IsReceipt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Payment amount. + @param PayAmt + Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt) + { + if (PayAmt == null) + throw new IllegalArgumentException ("PayAmt is mandatory."); + set_Value (COLUMNNAME_PayAmt, PayAmt); + } + + /** Get Payment amount. + @return Amount being paid + */ + public BigDecimal getPayAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); -if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_Value ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (int Qty) -{ -set_Value ("Qty", Integer.valueOf(Qty)); -} -/** Get Quantity. -@return Quantity */ -public int getQty() -{ -Integer ii = (Integer)get_Value("Qty"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (int Qty) + { + set_Value (COLUMNNAME_Qty, Integer.valueOf(Qty)); + } + + /** Get Quantity. + @return Quantity + */ + public int getQty () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Qty); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaySelectionLine.java b/base/src/org/compiere/model/X_C_PaySelectionLine.java index 2b0c20fa51..22476b8940 100644 --- a/base/src/org/compiere/model/X_C_PaySelectionLine.java +++ b/base/src/org/compiere/model/X_C_PaySelectionLine.java @@ -1,374 +1,447 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaySelectionLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaySelectionLine extends PO + +/** Generated Model for C_PaySelectionLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaySelectionLine extends PO implements I_C_PaySelectionLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaySelectionLine_ID id -@param trxName transaction -*/ -public X_C_PaySelectionLine (Properties ctx, int C_PaySelectionLine_ID, String trxName) -{ -super (ctx, C_PaySelectionLine_ID, trxName); -/** if (C_PaySelectionLine_ID == 0) -{ -setC_Invoice_ID (0); -setC_PaySelectionLine_ID (0); -setC_PaySelection_ID (0); -setDifferenceAmt (Env.ZERO); -setDiscountAmt (Env.ZERO); -setIsManual (false); -setIsSOTrx (false); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_PaySelectionLine WHERE C_PaySelection_ID=@C_PaySelection_ID@ -setOpenAmt (Env.ZERO); -setPayAmt (Env.ZERO); -setPaymentRule (null); // S -setProcessed (false); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaySelectionLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaySelectionLine */ -public static final String Table_Name="C_PaySelectionLine"; - -/** AD_Table_ID=427 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaySelectionLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Pay Selection Check. -@param C_PaySelectionCheck_ID Payment Selection Check */ -public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID) -{ -if (C_PaySelectionCheck_ID <= 0) set_Value ("C_PaySelectionCheck_ID", null); - else -set_Value ("C_PaySelectionCheck_ID", Integer.valueOf(C_PaySelectionCheck_ID)); -} -/** Get Pay Selection Check. -@return Payment Selection Check */ -public int getC_PaySelectionCheck_ID() -{ -Integer ii = (Integer)get_Value("C_PaySelectionCheck_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySelectionCheck_ID */ -public static final String COLUMNNAME_C_PaySelectionCheck_ID = "C_PaySelectionCheck_ID"; -/** Set Payment Selection Line. -@param C_PaySelectionLine_ID Payment Selection Line */ -public void setC_PaySelectionLine_ID (int C_PaySelectionLine_ID) -{ -if (C_PaySelectionLine_ID < 1) throw new IllegalArgumentException ("C_PaySelectionLine_ID is mandatory."); -set_ValueNoCheck ("C_PaySelectionLine_ID", Integer.valueOf(C_PaySelectionLine_ID)); -} -/** Get Payment Selection Line. -@return Payment Selection Line */ -public int getC_PaySelectionLine_ID() -{ -Integer ii = (Integer)get_Value("C_PaySelectionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_PaySelectionLine_ID())); -} -/** Column name C_PaySelectionLine_ID */ -public static final String COLUMNNAME_C_PaySelectionLine_ID = "C_PaySelectionLine_ID"; -/** Set Payment Selection. -@param C_PaySelection_ID Payment Selection */ -public void setC_PaySelection_ID (int C_PaySelection_ID) -{ -if (C_PaySelection_ID < 1) throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); -set_ValueNoCheck ("C_PaySelection_ID", Integer.valueOf(C_PaySelection_ID)); -} -/** Get Payment Selection. -@return Payment Selection */ -public int getC_PaySelection_ID() -{ -Integer ii = (Integer)get_Value("C_PaySelection_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaySelection_ID */ -public static final String COLUMNNAME_C_PaySelection_ID = "C_PaySelection_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Difference. -@param DifferenceAmt Difference Amount */ -public void setDifferenceAmt (BigDecimal DifferenceAmt) -{ -if (DifferenceAmt == null) throw new IllegalArgumentException ("DifferenceAmt is mandatory."); -set_ValueNoCheck ("DifferenceAmt", DifferenceAmt); -} -/** Get Difference. -@return Difference Amount */ -public BigDecimal getDifferenceAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DifferenceAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DifferenceAmt */ -public static final String COLUMNNAME_DifferenceAmt = "DifferenceAmt"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -if (DiscountAmt == null) throw new IllegalArgumentException ("DiscountAmt is mandatory."); -set_ValueNoCheck ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Open Amount. -@param OpenAmt Open item amount */ -public void setOpenAmt (BigDecimal OpenAmt) -{ -if (OpenAmt == null) throw new IllegalArgumentException ("OpenAmt is mandatory."); -set_ValueNoCheck ("OpenAmt", OpenAmt); -} -/** Get Open Amount. -@return Open item amount */ -public BigDecimal getOpenAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OpenAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OpenAmt */ -public static final String COLUMNNAME_OpenAmt = "OpenAmt"; -/** Set Payment amount. -@param PayAmt Amount being paid */ -public void setPayAmt (BigDecimal PayAmt) -{ -if (PayAmt == null) throw new IllegalArgumentException ("PayAmt is mandatory."); -set_Value ("PayAmt", PayAmt); -} -/** Get Payment amount. -@return Amount being paid */ -public BigDecimal getPayAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PayAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PayAmt */ -public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaySelectionLine (Properties ctx, int C_PaySelectionLine_ID, String trxName) + { + super (ctx, C_PaySelectionLine_ID, trxName); + /** if (C_PaySelectionLine_ID == 0) { setC_Invoice_ID (0); + setC_PaySelectionLine_ID (0); + setC_PaySelection_ID (0); + setDifferenceAmt (Env.ZERO); + setDiscountAmt (Env.ZERO); + setIsManual (false); + setIsSOTrx (false); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_PaySelectionLine WHERE C_PaySelection_ID=@C_PaySelection_ID@ + setOpenAmt (Env.ZERO); + setPayAmt (Env.ZERO); + setPaymentRule (null); +// S + setProcessed (false); +// N +} */ + } + + /** Load Constructor */ + public X_C_PaySelectionLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaySelectionLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaySelectionCheck getI_C_PaySelectionCheck() throws Exception + { + 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 e; + } + return result; + } + + /** Set Pay Selection Check. + @param C_PaySelectionCheck_ID + Payment Selection Check + */ + public void setC_PaySelectionCheck_ID (int C_PaySelectionCheck_ID) + { + if (C_PaySelectionCheck_ID <= 0) set_Value (COLUMNNAME_C_PaySelectionCheck_ID, null); + else + set_Value (COLUMNNAME_C_PaySelectionCheck_ID, Integer.valueOf(C_PaySelectionCheck_ID)); + } + + /** Get Pay Selection Check. + @return Payment Selection Check + */ + public int getC_PaySelectionCheck_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelectionCheck_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Selection Line. + @param C_PaySelectionLine_ID + Payment Selection Line + */ + public void setC_PaySelectionLine_ID (int C_PaySelectionLine_ID) + { + if (C_PaySelectionLine_ID < 1) + throw new IllegalArgumentException ("C_PaySelectionLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaySelectionLine_ID, Integer.valueOf(C_PaySelectionLine_ID)); + } + + /** Get Payment Selection Line. + @return Payment Selection Line + */ + public int getC_PaySelectionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelectionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_PaySelectionLine_ID())); + } + + public I_C_PaySelection getI_C_PaySelection() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Selection. + @param C_PaySelection_ID + Payment Selection + */ + public void setC_PaySelection_ID (int C_PaySelection_ID) + { + if (C_PaySelection_ID < 1) + throw new IllegalArgumentException ("C_PaySelection_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaySelection_ID, Integer.valueOf(C_PaySelection_ID)); + } + + /** Get Payment Selection. + @return Payment Selection + */ + public int getC_PaySelection_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaySelection_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Difference. + @param DifferenceAmt + Difference Amount + */ + public void setDifferenceAmt (BigDecimal DifferenceAmt) + { + if (DifferenceAmt == null) + throw new IllegalArgumentException ("DifferenceAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_DifferenceAmt, DifferenceAmt); + } + + /** Get Difference. + @return Difference Amount + */ + public BigDecimal getDifferenceAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DifferenceAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + if (DiscountAmt == null) + throw new IllegalArgumentException ("DiscountAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Open Amount. + @param OpenAmt + Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt) + { + if (OpenAmt == null) + throw new IllegalArgumentException ("OpenAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_OpenAmt, OpenAmt); + } + + /** Get Open Amount. + @return Open item amount + */ + public BigDecimal getOpenAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Payment amount. + @param PayAmt + Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt) + { + if (PayAmt == null) + throw new IllegalArgumentException ("PayAmt is mandatory."); + set_Value (COLUMNNAME_PayAmt, PayAmt); + } + + /** Get Payment amount. + @return Amount being paid + */ + public BigDecimal getPayAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); -if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_Value ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -} + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory");if (PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Payment.java b/base/src/org/compiere/model/X_C_Payment.java index 9d6d42ba28..768b55384f 100644 --- a/base/src/org/compiere/model/X_C_Payment.java +++ b/base/src/org/compiere/model/X_C_Payment.java @@ -1,1689 +1,2041 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Payment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Payment extends PO + +/** Generated Model for C_Payment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Payment extends PO implements I_C_Payment, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Payment_ID id -@param trxName transaction -*/ -public X_C_Payment (Properties ctx, int C_Payment_ID, String trxName) -{ -super (ctx, C_Payment_ID, trxName); -/** if (C_Payment_ID == 0) -{ -setC_BPartner_ID (0); -setC_BankAccount_ID (0); -setC_Currency_ID (0); -setC_DocType_ID (0); -setC_Payment_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDateTrx (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsAllocated (false); -setIsApproved (false); // N -setIsDelayedCapture (false); -setIsOnline (false); -setIsOverUnderPayment (false); // N -setIsPrepayment (false); -setIsReceipt (false); -setIsReconciled (false); -setIsSelfService (false); -setPayAmt (Env.ZERO); // 0 -setPosted (false); // N -setProcessed (false); -setTenderType (null); // K -setTrxType (null); // S -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Payment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Payment */ -public static final String Table_Name="C_Payment"; - -/** AD_Table_ID=335 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Payment[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Payment (Properties ctx, int C_Payment_ID, String trxName) + { + super (ctx, C_Payment_ID, trxName); + /** if (C_Payment_ID == 0) { setC_BPartner_ID (0); + setC_BankAccount_ID (0); + setC_Currency_ID (0); + setC_DocType_ID (0); + setC_Payment_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateTrx (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsAllocated (false); + setIsApproved (false); +// N + setIsDelayedCapture (false); + setIsOnline (false); + setIsOverUnderPayment (false); +// N + setIsPrepayment (false); + setIsReceipt (false); + setIsReconciled (false); + setIsSelfService (false); + setPayAmt (Env.ZERO); +// 0 + setPosted (false); +// N + setProcessed (false); + setTenderType (null); +// K + setTrxType (null); +// S +} */ + } + + /** Load Constructor */ + public X_C_Payment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Payment[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Account City. -@param A_City City or the Credit Card or Account Holder */ -public void setA_City (String A_City) -{ -if (A_City != null && A_City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_City = A_City.substring(0,59); -} -set_Value ("A_City", A_City); -} -/** Get Account City. -@return City or the Credit Card or Account Holder */ -public String getA_City() -{ -return (String)get_Value("A_City"); -} -/** Column name A_City */ -public static final String COLUMNNAME_A_City = "A_City"; -/** Set Account Country. -@param A_Country Country */ -public void setA_Country (String A_Country) -{ -if (A_Country != null && A_Country.length() > 40) -{ -log.warning("Length > 40 - truncated"); -A_Country = A_Country.substring(0,39); -} -set_Value ("A_Country", A_Country); -} -/** Get Account Country. -@return Country */ -public String getA_Country() -{ -return (String)get_Value("A_Country"); -} -/** Column name A_Country */ -public static final String COLUMNNAME_A_Country = "A_Country"; -/** Set Account EMail. -@param A_EMail Email Address */ -public void setA_EMail (String A_EMail) -{ -if (A_EMail != null && A_EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_EMail = A_EMail.substring(0,59); -} -set_Value ("A_EMail", A_EMail); -} -/** Get Account EMail. -@return Email Address */ -public String getA_EMail() -{ -return (String)get_Value("A_EMail"); -} -/** Column name A_EMail */ -public static final String COLUMNNAME_A_EMail = "A_EMail"; -/** Set Driver License. -@param A_Ident_DL Payment Identification - Driver License */ -public void setA_Ident_DL (String A_Ident_DL) -{ -if (A_Ident_DL != null && A_Ident_DL.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Ident_DL = A_Ident_DL.substring(0,19); -} -set_Value ("A_Ident_DL", A_Ident_DL); -} -/** Get Driver License. -@return Payment Identification - Driver License */ -public String getA_Ident_DL() -{ -return (String)get_Value("A_Ident_DL"); -} -/** Column name A_Ident_DL */ -public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; -/** Set Social Security No. -@param A_Ident_SSN Payment Identification - Social Security No */ -public void setA_Ident_SSN (String A_Ident_SSN) -{ -if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Ident_SSN = A_Ident_SSN.substring(0,19); -} -set_Value ("A_Ident_SSN", A_Ident_SSN); -} -/** Get Social Security No. -@return Payment Identification - Social Security No */ -public String getA_Ident_SSN() -{ -return (String)get_Value("A_Ident_SSN"); -} -/** Column name A_Ident_SSN */ -public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; -/** Set Account Name. -@param A_Name Name on Credit Card or Account holder */ -public void setA_Name (String A_Name) -{ -if (A_Name != null && A_Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_Name = A_Name.substring(0,59); -} -set_Value ("A_Name", A_Name); -} -/** Get Account Name. -@return Name on Credit Card or Account holder */ -public String getA_Name() -{ -return (String)get_Value("A_Name"); -} -/** Column name A_Name */ -public static final String COLUMNNAME_A_Name = "A_Name"; -/** Set Account State. -@param A_State State of the Credit Card or Account holder */ -public void setA_State (String A_State) -{ -if (A_State != null && A_State.length() > 40) -{ -log.warning("Length > 40 - truncated"); -A_State = A_State.substring(0,39); -} -set_Value ("A_State", A_State); -} -/** Get Account State. -@return State of the Credit Card or Account holder */ -public String getA_State() -{ -return (String)get_Value("A_State"); -} -/** Column name A_State */ -public static final String COLUMNNAME_A_State = "A_State"; -/** Set Account Street. -@param A_Street Street address of the Credit Card or Account holder */ -public void setA_Street (String A_Street) -{ -if (A_Street != null && A_Street.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_Street = A_Street.substring(0,59); -} -set_Value ("A_Street", A_Street); -} -/** Get Account Street. -@return Street address of the Credit Card or Account holder */ -public String getA_Street() -{ -return (String)get_Value("A_Street"); -} -/** Column name A_Street */ -public static final String COLUMNNAME_A_Street = "A_Street"; -/** Set Account Zip/Postal. -@param A_Zip Zip Code of the Credit Card or Account Holder */ -public void setA_Zip (String A_Zip) -{ -if (A_Zip != null && A_Zip.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Zip = A_Zip.substring(0,19); -} -set_Value ("A_Zip", A_Zip); -} -/** Get Account Zip/Postal. -@return Zip Code of the Credit Card or Account Holder */ -public String getA_Zip() -{ -return (String)get_Value("A_Zip"); -} -/** Column name A_Zip */ -public static final String COLUMNNAME_A_Zip = "A_Zip"; -/** Set Account No. -@param AccountNo Account Number */ -public void setAccountNo (String AccountNo) -{ -if (AccountNo != null && AccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -AccountNo = AccountNo.substring(0,19); -} -set_Value ("AccountNo", AccountNo); -} -/** Get Account No. -@return Account Number */ -public String getAccountNo() -{ -return (String)get_Value("AccountNo"); -} -/** Column name AccountNo */ -public static final String COLUMNNAME_AccountNo = "AccountNo"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Partner Bank Account. -@param C_BP_BankAccount_ID Bank Account of the Business Partner */ -public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) -{ -if (C_BP_BankAccount_ID <= 0) set_Value ("C_BP_BankAccount_ID", null); - else -set_Value ("C_BP_BankAccount_ID", Integer.valueOf(C_BP_BankAccount_ID)); -} -/** Get Partner Bank Account. -@return Bank Account of the Business Partner */ -public int getC_BP_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BP_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_BankAccount_ID */ -public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID <= 0) set_Value ("C_ConversionType_ID", null); - else -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment Batch. -@param C_PaymentBatch_ID Payment batch for EFT */ -public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) -{ -if (C_PaymentBatch_ID <= 0) set_Value ("C_PaymentBatch_ID", null); - else -set_Value ("C_PaymentBatch_ID", Integer.valueOf(C_PaymentBatch_ID)); -} -/** Get Payment Batch. -@return Payment batch for EFT */ -public int getC_PaymentBatch_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentBatch_ID */ -public static final String COLUMNNAME_C_PaymentBatch_ID = "C_PaymentBatch_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID < 1) throw new IllegalArgumentException ("C_Payment_ID is mandatory."); -set_ValueNoCheck ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Check No. -@param CheckNo Check Number */ -public void setCheckNo (String CheckNo) -{ -if (CheckNo != null && CheckNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CheckNo = CheckNo.substring(0,19); -} -set_Value ("CheckNo", CheckNo); -} -/** Get Check No. -@return Check Number */ -public String getCheckNo() -{ -return (String)get_Value("CheckNo"); -} -/** Column name CheckNo */ -public static final String COLUMNNAME_CheckNo = "CheckNo"; -/** Set Exp. Month. -@param CreditCardExpMM Expiry Month */ -public void setCreditCardExpMM (int CreditCardExpMM) -{ -set_Value ("CreditCardExpMM", Integer.valueOf(CreditCardExpMM)); -} -/** Get Exp. Month. -@return Expiry Month */ -public int getCreditCardExpMM() -{ -Integer ii = (Integer)get_Value("CreditCardExpMM"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CreditCardExpMM */ -public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; -/** Set Exp. Year. -@param CreditCardExpYY Expiry Year */ -public void setCreditCardExpYY (int CreditCardExpYY) -{ -set_Value ("CreditCardExpYY", Integer.valueOf(CreditCardExpYY)); -} -/** Get Exp. Year. -@return Expiry Year */ -public int getCreditCardExpYY() -{ -Integer ii = (Integer)get_Value("CreditCardExpYY"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CreditCardExpYY */ -public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; -/** Set Number. -@param CreditCardNumber Credit Card Number */ -public void setCreditCardNumber (String CreditCardNumber) -{ -if (CreditCardNumber != null && CreditCardNumber.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CreditCardNumber = CreditCardNumber.substring(0,19); -} -set_Value ("CreditCardNumber", CreditCardNumber); -} -/** Get Number. -@return Credit Card Number */ -public String getCreditCardNumber() -{ -return (String)get_Value("CreditCardNumber"); -} -/** Column name CreditCardNumber */ -public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account City. + @param A_City + City or the Credit Card or Account Holder + */ + public void setA_City (String A_City) + { + if (A_City != null && A_City.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_City = A_City.substring(0, 59); + } + set_Value (COLUMNNAME_A_City, A_City); + } + + /** Get Account City. + @return City or the Credit Card or Account Holder + */ + public String getA_City () + { + return (String)get_Value(COLUMNNAME_A_City); + } + + /** Set Account Country. + @param A_Country + Country + */ + public void setA_Country (String A_Country) + { + if (A_Country != null && A_Country.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_Country = A_Country.substring(0, 39); + } + set_Value (COLUMNNAME_A_Country, A_Country); + } + + /** Get Account Country. + @return Country + */ + public String getA_Country () + { + return (String)get_Value(COLUMNNAME_A_Country); + } + + /** Set Account EMail. + @param A_EMail + Email Address + */ + public void setA_EMail (String A_EMail) + { + if (A_EMail != null && A_EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_EMail = A_EMail.substring(0, 59); + } + set_Value (COLUMNNAME_A_EMail, A_EMail); + } + + /** Get Account EMail. + @return Email Address + */ + public String getA_EMail () + { + return (String)get_Value(COLUMNNAME_A_EMail); + } + + /** Set Driver License. + @param A_Ident_DL + Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL) + { + if (A_Ident_DL != null && A_Ident_DL.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_DL = A_Ident_DL.substring(0, 19); + } + set_Value (COLUMNNAME_A_Ident_DL, A_Ident_DL); + } + + /** Get Driver License. + @return Payment Identification - Driver License + */ + public String getA_Ident_DL () + { + return (String)get_Value(COLUMNNAME_A_Ident_DL); + } + + /** Set Social Security No. + @param A_Ident_SSN + Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN) + { + if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_SSN = A_Ident_SSN.substring(0, 19); + } + set_Value (COLUMNNAME_A_Ident_SSN, A_Ident_SSN); + } + + /** Get Social Security No. + @return Payment Identification - Social Security No + */ + public String getA_Ident_SSN () + { + return (String)get_Value(COLUMNNAME_A_Ident_SSN); + } + + /** Set Account Name. + @param A_Name + Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name) + { + if (A_Name != null && A_Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Name = A_Name.substring(0, 59); + } + set_Value (COLUMNNAME_A_Name, A_Name); + } + + /** Get Account Name. + @return Name on Credit Card or Account holder + */ + public String getA_Name () + { + return (String)get_Value(COLUMNNAME_A_Name); + } + + /** Set Account State. + @param A_State + State of the Credit Card or Account holder + */ + public void setA_State (String A_State) + { + if (A_State != null && A_State.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_State = A_State.substring(0, 39); + } + set_Value (COLUMNNAME_A_State, A_State); + } + + /** Get Account State. + @return State of the Credit Card or Account holder + */ + public String getA_State () + { + return (String)get_Value(COLUMNNAME_A_State); + } + + /** Set Account Street. + @param A_Street + Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street) + { + if (A_Street != null && A_Street.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Street = A_Street.substring(0, 59); + } + set_Value (COLUMNNAME_A_Street, A_Street); + } + + /** Get Account Street. + @return Street address of the Credit Card or Account holder + */ + public String getA_Street () + { + return (String)get_Value(COLUMNNAME_A_Street); + } + + /** Set Account Zip/Postal. + @param A_Zip + Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip) + { + if (A_Zip != null && A_Zip.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Zip = A_Zip.substring(0, 19); + } + set_Value (COLUMNNAME_A_Zip, A_Zip); + } + + /** Get Account Zip/Postal. + @return Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip () + { + return (String)get_Value(COLUMNNAME_A_Zip); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + if (AccountNo != null && AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_BankAccount getI_C_BP_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Bank Account. + @param C_BP_BankAccount_ID + Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) + { + if (C_BP_BankAccount_ID <= 0) set_Value (COLUMNNAME_C_BP_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); + } + + /** Get Partner Bank Account. + @return Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentBatch getI_C_PaymentBatch() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Batch. + @param C_PaymentBatch_ID + Payment batch for EFT + */ + public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) + { + if (C_PaymentBatch_ID <= 0) set_Value (COLUMNNAME_C_PaymentBatch_ID, null); + else + set_Value (COLUMNNAME_C_PaymentBatch_ID, Integer.valueOf(C_PaymentBatch_ID)); + } + + /** Get Payment Batch. + @return Payment batch for EFT + */ + public int getC_PaymentBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + throw new IllegalArgumentException ("C_Payment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Check No. + @param CheckNo + Check Number + */ + public void setCheckNo (String CheckNo) + { + if (CheckNo != null && CheckNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + CheckNo = CheckNo.substring(0, 19); + } + set_Value (COLUMNNAME_CheckNo, CheckNo); + } + + /** Get Check No. + @return Check Number + */ + public String getCheckNo () + { + return (String)get_Value(COLUMNNAME_CheckNo); + } + + /** Set Exp. Month. + @param CreditCardExpMM + Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM) + { + set_Value (COLUMNNAME_CreditCardExpMM, Integer.valueOf(CreditCardExpMM)); + } + + /** Get Exp. Month. + @return Expiry Month + */ + public int getCreditCardExpMM () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpMM); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exp. Year. + @param CreditCardExpYY + Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY) + { + set_Value (COLUMNNAME_CreditCardExpYY, Integer.valueOf(CreditCardExpYY)); + } + + /** Get Exp. Year. + @return Expiry Year + */ + public int getCreditCardExpYY () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpYY); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number. + @param CreditCardNumber + Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber) + { + if (CreditCardNumber != null && CreditCardNumber.length() > 20) + { + log.warning("Length > 20 - truncated"); + CreditCardNumber = CreditCardNumber.substring(0, 19); + } + set_Value (COLUMNNAME_CreditCardNumber, CreditCardNumber); + } + + /** Get Number. + @return Credit Card Number + */ + public String getCreditCardNumber () + { + return (String)get_Value(COLUMNNAME_CreditCardNumber); + } /** CreditCardType AD_Reference_ID=149 */ -public static final int CREDITCARDTYPE_AD_Reference_ID=149; -/** Amex = A */ -public static final String CREDITCARDTYPE_Amex = "A"; -/** ATM = C */ -public static final String CREDITCARDTYPE_ATM = "C"; -/** Diners = D */ -public static final String CREDITCARDTYPE_Diners = "D"; -/** MasterCard = M */ -public static final String CREDITCARDTYPE_MasterCard = "M"; -/** Discover = N */ -public static final String CREDITCARDTYPE_Discover = "N"; -/** Purchase Card = P */ -public static final String CREDITCARDTYPE_PurchaseCard = "P"; -/** Visa = V */ +public static final int CREDITCARDTYPE_AD_Reference_ID=149;/** Amex = A */ +public static final String CREDITCARDTYPE_Amex = "A";/** ATM = C */ +public static final String CREDITCARDTYPE_ATM = "C";/** Diners = D */ +public static final String CREDITCARDTYPE_Diners = "D";/** MasterCard = M */ +public static final String CREDITCARDTYPE_MasterCard = "M";/** Discover = N */ +public static final String CREDITCARDTYPE_Discover = "N";/** Purchase Card = P */ +public static final String CREDITCARDTYPE_PurchaseCard = "P";/** Visa = V */ public static final String CREDITCARDTYPE_Visa = "V"; -/** Set Credit Card. -@param CreditCardType Credit Card (Visa, MC, AmEx) */ -public void setCreditCardType (String CreditCardType) -{ -if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("M") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("V")); - else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V"); -if (CreditCardType != null && CreditCardType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreditCardType = CreditCardType.substring(0,0); -} -set_Value ("CreditCardType", CreditCardType); -} -/** Get Credit Card. -@return Credit Card (Visa, MC, AmEx) */ -public String getCreditCardType() -{ -return (String)get_Value("CreditCardType"); -} -/** Column name CreditCardType */ -public static final String COLUMNNAME_CreditCardType = "CreditCardType"; -/** Set Verification Code. -@param CreditCardVV Credit Card Verification code on credit card */ -public void setCreditCardVV (String CreditCardVV) -{ -if (CreditCardVV != null && CreditCardVV.length() > 4) -{ -log.warning("Length > 4 - truncated"); -CreditCardVV = CreditCardVV.substring(0,3); -} -set_Value ("CreditCardVV", CreditCardVV); -} -/** Get Verification Code. -@return Credit Card Verification code on credit card */ -public String getCreditCardVV() -{ -return (String)get_Value("CreditCardVV"); -} -/** Column name CreditCardVV */ -public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_Value ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -set_Value ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + /** Set Credit Card. + @param CreditCardType + Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType) + { +if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("M") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("V")); else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V"); if (CreditCardType != null && CreditCardType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreditCardType = CreditCardType.substring(0, 0); + } + set_Value (COLUMNNAME_CreditCardType, CreditCardType); + } + + /** Get Credit Card. + @return Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType () + { + return (String)get_Value(COLUMNNAME_CreditCardType); + } + + /** Set Verification Code. + @param CreditCardVV + Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV) + { + if (CreditCardVV != null && CreditCardVV.length() > 4) + { + log.warning("Length > 4 - truncated"); + CreditCardVV = CreditCardVV.substring(0, 3); + } + set_Value (COLUMNNAME_CreditCardVV, CreditCardVV); + } + + /** Get Verification Code. + @return Credit Card Verification code on credit card + */ + public String getCreditCardVV () + { + return (String)get_Value(COLUMNNAME_CreditCardVV); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Allocated. -@param IsAllocated Indicates if the payment has been allocated */ -public void setIsAllocated (boolean IsAllocated) -{ -set_Value ("IsAllocated", Boolean.valueOf(IsAllocated)); -} -/** Get Allocated. -@return Indicates if the payment has been allocated */ -public boolean isAllocated() -{ -Object oo = get_Value("IsAllocated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllocated */ -public static final String COLUMNNAME_IsAllocated = "IsAllocated"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_ValueNoCheck ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Delayed Capture. -@param IsDelayedCapture Charge after Shipment */ -public void setIsDelayedCapture (boolean IsDelayedCapture) -{ -set_Value ("IsDelayedCapture", Boolean.valueOf(IsDelayedCapture)); -} -/** Get Delayed Capture. -@return Charge after Shipment */ -public boolean isDelayedCapture() -{ -Object oo = get_Value("IsDelayedCapture"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDelayedCapture */ -public static final String COLUMNNAME_IsDelayedCapture = "IsDelayedCapture"; -/** Set Online Access. -@param IsOnline Can be accessed online */ -public void setIsOnline (boolean IsOnline) -{ -set_Value ("IsOnline", Boolean.valueOf(IsOnline)); -} -/** Get Online Access. -@return Can be accessed online */ -public boolean isOnline() -{ -Object oo = get_Value("IsOnline"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOnline */ -public static final String COLUMNNAME_IsOnline = "IsOnline"; -/** Set Over/Under Payment. -@param IsOverUnderPayment Over-Payment (unallocated) or Under-Payment (partial payment) */ -public void setIsOverUnderPayment (boolean IsOverUnderPayment) -{ -set_Value ("IsOverUnderPayment", Boolean.valueOf(IsOverUnderPayment)); -} -/** Get Over/Under Payment. -@return Over-Payment (unallocated) or Under-Payment (partial payment) */ -public boolean isOverUnderPayment() -{ -Object oo = get_Value("IsOverUnderPayment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOverUnderPayment */ -public static final String COLUMNNAME_IsOverUnderPayment = "IsOverUnderPayment"; -/** Set Prepayment. -@param IsPrepayment The Payment/Receipt is a Prepayment */ -public void setIsPrepayment (boolean IsPrepayment) -{ -set_Value ("IsPrepayment", Boolean.valueOf(IsPrepayment)); -} -/** Get Prepayment. -@return The Payment/Receipt is a Prepayment */ -public boolean isPrepayment() -{ -Object oo = get_Value("IsPrepayment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrepayment */ -public static final String COLUMNNAME_IsPrepayment = "IsPrepayment"; -/** Set Receipt. -@param IsReceipt This is a sales transaction (receipt) */ -public void setIsReceipt (boolean IsReceipt) -{ -set_Value ("IsReceipt", Boolean.valueOf(IsReceipt)); -} -/** Get Receipt. -@return This is a sales transaction (receipt) */ -public boolean isReceipt() -{ -Object oo = get_Value("IsReceipt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReceipt */ -public static final String COLUMNNAME_IsReceipt = "IsReceipt"; -/** Set Reconciled. -@param IsReconciled Payment is reconciled with bank statement */ -public void setIsReconciled (boolean IsReconciled) -{ -set_Value ("IsReconciled", Boolean.valueOf(IsReconciled)); -} -/** Get Reconciled. -@return Payment is reconciled with bank statement */ -public boolean isReconciled() -{ -Object oo = get_Value("IsReconciled"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReconciled */ -public static final String COLUMNNAME_IsReconciled = "IsReconciled"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Micr. -@param Micr Combination of routing no, account and check no */ -public void setMicr (String Micr) -{ -if (Micr != null && Micr.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Micr = Micr.substring(0,19); -} -set_Value ("Micr", Micr); -} -/** Get Micr. -@return Combination of routing no, account and check no */ -public String getMicr() -{ -return (String)get_Value("Micr"); -} -/** Column name Micr */ -public static final String COLUMNNAME_Micr = "Micr"; -/** Set Online Processing. -@param OProcessing This payment can be processed online */ -public void setOProcessing (String OProcessing) -{ -if (OProcessing != null && OProcessing.length() > 1) -{ -log.warning("Length > 1 - truncated"); -OProcessing = OProcessing.substring(0,0); -} -set_Value ("OProcessing", OProcessing); -} -/** Get Online Processing. -@return This payment can be processed online */ -public String getOProcessing() -{ -return (String)get_Value("OProcessing"); -} -/** Column name OProcessing */ -public static final String COLUMNNAME_OProcessing = "OProcessing"; -/** Set Original Transaction ID. -@param Orig_TrxID Original Transaction ID */ -public void setOrig_TrxID (String Orig_TrxID) -{ -if (Orig_TrxID != null && Orig_TrxID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Orig_TrxID = Orig_TrxID.substring(0,19); -} -set_Value ("Orig_TrxID", Orig_TrxID); -} -/** Get Original Transaction ID. -@return Original Transaction ID */ -public String getOrig_TrxID() -{ -return (String)get_Value("Orig_TrxID"); -} -/** Column name Orig_TrxID */ -public static final String COLUMNNAME_Orig_TrxID = "Orig_TrxID"; -/** Set Over/Under Payment. -@param OverUnderAmt Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public void setOverUnderAmt (BigDecimal OverUnderAmt) -{ -set_Value ("OverUnderAmt", OverUnderAmt); -} -/** Get Over/Under Payment. -@return Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public BigDecimal getOverUnderAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OverUnderAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OverUnderAmt */ -public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; -/** Set PO Number. -@param PONum Purchase Order Number */ -public void setPONum (String PONum) -{ -if (PONum != null && PONum.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PONum = PONum.substring(0,59); -} -set_Value ("PONum", PONum); -} -/** Get PO Number. -@return Purchase Order Number */ -public String getPONum() -{ -return (String)get_Value("PONum"); -} -/** Column name PONum */ -public static final String COLUMNNAME_PONum = "PONum"; -/** Set Payment amount. -@param PayAmt Amount being paid */ -public void setPayAmt (BigDecimal PayAmt) -{ -if (PayAmt == null) throw new IllegalArgumentException ("PayAmt is mandatory."); -set_Value ("PayAmt", PayAmt); -} -/** Get Payment amount. -@return Amount being paid */ -public BigDecimal getPayAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PayAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PayAmt */ -public static final String COLUMNNAME_PayAmt = "PayAmt"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Authorization Code. -@param R_AuthCode Authorization Code returned */ -public void setR_AuthCode (String R_AuthCode) -{ -if (R_AuthCode != null && R_AuthCode.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_AuthCode = R_AuthCode.substring(0,19); -} -set_ValueNoCheck ("R_AuthCode", R_AuthCode); -} -/** Get Authorization Code. -@return Authorization Code returned */ -public String getR_AuthCode() -{ -return (String)get_Value("R_AuthCode"); -} -/** Column name R_AuthCode */ -public static final String COLUMNNAME_R_AuthCode = "R_AuthCode"; -/** Set Authorization Code (DC). -@param R_AuthCode_DC Authorization Code Delayed Capture returned */ -public void setR_AuthCode_DC (String R_AuthCode_DC) -{ -if (R_AuthCode_DC != null && R_AuthCode_DC.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_AuthCode_DC = R_AuthCode_DC.substring(0,19); -} -set_ValueNoCheck ("R_AuthCode_DC", R_AuthCode_DC); -} -/** Get Authorization Code (DC). -@return Authorization Code Delayed Capture returned */ -public String getR_AuthCode_DC() -{ -return (String)get_Value("R_AuthCode_DC"); -} -/** Column name R_AuthCode_DC */ -public static final String COLUMNNAME_R_AuthCode_DC = "R_AuthCode_DC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Allocated. + @param IsAllocated + Indicates if the payment has been allocated + */ + public void setIsAllocated (boolean IsAllocated) + { + set_Value (COLUMNNAME_IsAllocated, Boolean.valueOf(IsAllocated)); + } + + /** Get Allocated. + @return Indicates if the payment has been allocated + */ + public boolean isAllocated () + { + Object oo = get_Value(COLUMNNAME_IsAllocated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delayed Capture. + @param IsDelayedCapture + Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture) + { + set_Value (COLUMNNAME_IsDelayedCapture, Boolean.valueOf(IsDelayedCapture)); + } + + /** Get Delayed Capture. + @return Charge after Shipment + */ + public boolean isDelayedCapture () + { + Object oo = get_Value(COLUMNNAME_IsDelayedCapture); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Online Access. + @param IsOnline + Can be accessed online + */ + public void setIsOnline (boolean IsOnline) + { + set_Value (COLUMNNAME_IsOnline, Boolean.valueOf(IsOnline)); + } + + /** Get Online Access. + @return Can be accessed online + */ + public boolean isOnline () + { + Object oo = get_Value(COLUMNNAME_IsOnline); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Over/Under Payment. + @param IsOverUnderPayment + Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment) + { + set_Value (COLUMNNAME_IsOverUnderPayment, Boolean.valueOf(IsOverUnderPayment)); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment () + { + Object oo = get_Value(COLUMNNAME_IsOverUnderPayment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Prepayment. + @param IsPrepayment + The Payment/Receipt is a Prepayment + */ + public void setIsPrepayment (boolean IsPrepayment) + { + set_Value (COLUMNNAME_IsPrepayment, Boolean.valueOf(IsPrepayment)); + } + + /** Get Prepayment. + @return The Payment/Receipt is a Prepayment + */ + public boolean isPrepayment () + { + Object oo = get_Value(COLUMNNAME_IsPrepayment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Receipt. + @param IsReceipt + This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt) + { + set_Value (COLUMNNAME_IsReceipt, Boolean.valueOf(IsReceipt)); + } + + /** Get Receipt. + @return This is a sales transaction (receipt) + */ + public boolean isReceipt () + { + Object oo = get_Value(COLUMNNAME_IsReceipt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reconciled. + @param IsReconciled + Payment is reconciled with bank statement + */ + public void setIsReconciled (boolean IsReconciled) + { + set_Value (COLUMNNAME_IsReconciled, Boolean.valueOf(IsReconciled)); + } + + /** Get Reconciled. + @return Payment is reconciled with bank statement + */ + public boolean isReconciled () + { + Object oo = get_Value(COLUMNNAME_IsReconciled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Micr. + @param Micr + Combination of routing no, account and check no + */ + public void setMicr (String Micr) + { + if (Micr != null && Micr.length() > 20) + { + log.warning("Length > 20 - truncated"); + Micr = Micr.substring(0, 19); + } + set_Value (COLUMNNAME_Micr, Micr); + } + + /** Get Micr. + @return Combination of routing no, account and check no + */ + public String getMicr () + { + return (String)get_Value(COLUMNNAME_Micr); + } + + /** Set Online Processing. + @param OProcessing + This payment can be processed online + */ + public void setOProcessing (String OProcessing) + { + if (OProcessing != null && OProcessing.length() > 1) + { + log.warning("Length > 1 - truncated"); + OProcessing = OProcessing.substring(0, 0); + } + set_Value (COLUMNNAME_OProcessing, OProcessing); + } + + /** Get Online Processing. + @return This payment can be processed online + */ + public String getOProcessing () + { + return (String)get_Value(COLUMNNAME_OProcessing); + } + + /** Set Original Transaction ID. + @param Orig_TrxID + Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID) + { + if (Orig_TrxID != null && Orig_TrxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + Orig_TrxID = Orig_TrxID.substring(0, 19); + } + set_Value (COLUMNNAME_Orig_TrxID, Orig_TrxID); + } + + /** Get Original Transaction ID. + @return Original Transaction ID + */ + public String getOrig_TrxID () + { + return (String)get_Value(COLUMNNAME_Orig_TrxID); + } + + /** Set Over/Under Payment. + @param OverUnderAmt + Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt) + { + set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Number. + @param PONum + Purchase Order Number + */ + public void setPONum (String PONum) + { + if (PONum != null && PONum.length() > 60) + { + log.warning("Length > 60 - truncated"); + PONum = PONum.substring(0, 59); + } + set_Value (COLUMNNAME_PONum, PONum); + } + + /** Get PO Number. + @return Purchase Order Number + */ + public String getPONum () + { + return (String)get_Value(COLUMNNAME_PONum); + } + + /** Set Payment amount. + @param PayAmt + Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt) + { + if (PayAmt == null) + throw new IllegalArgumentException ("PayAmt is mandatory."); + set_Value (COLUMNNAME_PayAmt, PayAmt); + } + + /** Get Payment amount. + @return Amount being paid + */ + public BigDecimal getPayAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Authorization Code. + @param R_AuthCode + Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode) + { + if (R_AuthCode != null && R_AuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_AuthCode = R_AuthCode.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_R_AuthCode, R_AuthCode); + } + + /** Get Authorization Code. + @return Authorization Code returned + */ + public String getR_AuthCode () + { + return (String)get_Value(COLUMNNAME_R_AuthCode); + } + + /** Set Authorization Code (DC). + @param R_AuthCode_DC + Authorization Code Delayed Capture returned + */ + public void setR_AuthCode_DC (String R_AuthCode_DC) + { + if (R_AuthCode_DC != null && R_AuthCode_DC.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_AuthCode_DC = R_AuthCode_DC.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_R_AuthCode_DC, R_AuthCode_DC); + } + + /** Get Authorization Code (DC). + @return Authorization Code Delayed Capture returned + */ + public String getR_AuthCode_DC () + { + return (String)get_Value(COLUMNNAME_R_AuthCode_DC); + } /** R_AvsAddr AD_Reference_ID=213 */ -public static final int R_AVSADDR_AD_Reference_ID=213; -/** No Match = N */ -public static final String R_AVSADDR_NoMatch = "N"; -/** Unavailable = X */ -public static final String R_AVSADDR_Unavailable = "X"; -/** Match = Y */ +public static final int R_AVSADDR_AD_Reference_ID=213;/** No Match = N */ +public static final String R_AVSADDR_NoMatch = "N";/** Unavailable = X */ +public static final String R_AVSADDR_Unavailable = "X";/** Match = Y */ public static final String R_AVSADDR_Match = "Y"; -/** Set Address verified. -@param R_AvsAddr This address has been verified */ -public void setR_AvsAddr (String R_AvsAddr) -{ -if (R_AvsAddr == null || R_AvsAddr.equals("N") || R_AvsAddr.equals("X") || R_AvsAddr.equals("Y")); - else throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - N - X - Y"); -if (R_AvsAddr != null && R_AvsAddr.length() > 1) -{ -log.warning("Length > 1 - truncated"); -R_AvsAddr = R_AvsAddr.substring(0,0); -} -set_ValueNoCheck ("R_AvsAddr", R_AvsAddr); -} -/** Get Address verified. -@return This address has been verified */ -public String getR_AvsAddr() -{ -return (String)get_Value("R_AvsAddr"); -} -/** Column name R_AvsAddr */ -public static final String COLUMNNAME_R_AvsAddr = "R_AvsAddr"; + /** Set Address verified. + @param R_AvsAddr + This address has been verified + */ + public void setR_AvsAddr (String R_AvsAddr) + { +if (R_AvsAddr == null || R_AvsAddr.equals("N") || R_AvsAddr.equals("X") || R_AvsAddr.equals("Y")); else throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - N - X - Y"); if (R_AvsAddr != null && R_AvsAddr.length() > 1) + { + log.warning("Length > 1 - truncated"); + R_AvsAddr = R_AvsAddr.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_R_AvsAddr, R_AvsAddr); + } + + /** Get Address verified. + @return This address has been verified + */ + public String getR_AvsAddr () + { + return (String)get_Value(COLUMNNAME_R_AvsAddr); + } /** R_AvsZip AD_Reference_ID=213 */ -public static final int R_AVSZIP_AD_Reference_ID=213; -/** No Match = N */ -public static final String R_AVSZIP_NoMatch = "N"; -/** Unavailable = X */ -public static final String R_AVSZIP_Unavailable = "X"; -/** Match = Y */ +public static final int R_AVSZIP_AD_Reference_ID=213;/** No Match = N */ +public static final String R_AVSZIP_NoMatch = "N";/** Unavailable = X */ +public static final String R_AVSZIP_Unavailable = "X";/** Match = Y */ public static final String R_AVSZIP_Match = "Y"; -/** Set Zip verified. -@param R_AvsZip The Zip Code has been verified */ -public void setR_AvsZip (String R_AvsZip) -{ -if (R_AvsZip == null || R_AvsZip.equals("N") || R_AvsZip.equals("X") || R_AvsZip.equals("Y")); - else throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - N - X - Y"); -if (R_AvsZip != null && R_AvsZip.length() > 1) -{ -log.warning("Length > 1 - truncated"); -R_AvsZip = R_AvsZip.substring(0,0); -} -set_ValueNoCheck ("R_AvsZip", R_AvsZip); -} -/** Get Zip verified. -@return The Zip Code has been verified */ -public String getR_AvsZip() -{ -return (String)get_Value("R_AvsZip"); -} -/** Column name R_AvsZip */ -public static final String COLUMNNAME_R_AvsZip = "R_AvsZip"; -/** Set CVV Match. -@param R_CVV2Match Credit Card Verification Code Match */ -public void setR_CVV2Match (boolean R_CVV2Match) -{ -set_ValueNoCheck ("R_CVV2Match", Boolean.valueOf(R_CVV2Match)); -} -/** Get CVV Match. -@return Credit Card Verification Code Match */ -public boolean isR_CVV2Match() -{ -Object oo = get_Value("R_CVV2Match"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name R_CVV2Match */ -public static final String COLUMNNAME_R_CVV2Match = "R_CVV2Match"; -/** Set Info. -@param R_Info Response info */ -public void setR_Info (String R_Info) -{ -if (R_Info != null && R_Info.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -R_Info = R_Info.substring(0,1999); -} -set_ValueNoCheck ("R_Info", R_Info); -} -/** Get Info. -@return Response info */ -public String getR_Info() -{ -return (String)get_Value("R_Info"); -} -/** Column name R_Info */ -public static final String COLUMNNAME_R_Info = "R_Info"; -/** Set Reference. -@param R_PnRef Payment reference */ -public void setR_PnRef (String R_PnRef) -{ -if (R_PnRef != null && R_PnRef.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_PnRef = R_PnRef.substring(0,19); -} -set_ValueNoCheck ("R_PnRef", R_PnRef); -} -/** Get Reference. -@return Payment reference */ -public String getR_PnRef() -{ -return (String)get_Value("R_PnRef"); -} -/** Column name R_PnRef */ -public static final String COLUMNNAME_R_PnRef = "R_PnRef"; -/** Set Reference (DC). -@param R_PnRef_DC Payment Reference Delayed Capture */ -public void setR_PnRef_DC (String R_PnRef_DC) -{ -if (R_PnRef_DC != null && R_PnRef_DC.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_PnRef_DC = R_PnRef_DC.substring(0,19); -} -set_ValueNoCheck ("R_PnRef_DC", R_PnRef_DC); -} -/** Get Reference (DC). -@return Payment Reference Delayed Capture */ -public String getR_PnRef_DC() -{ -return (String)get_Value("R_PnRef_DC"); -} -/** Column name R_PnRef_DC */ -public static final String COLUMNNAME_R_PnRef_DC = "R_PnRef_DC"; -/** Set Response Message. -@param R_RespMsg Response message */ -public void setR_RespMsg (String R_RespMsg) -{ -if (R_RespMsg != null && R_RespMsg.length() > 60) -{ -log.warning("Length > 60 - truncated"); -R_RespMsg = R_RespMsg.substring(0,59); -} -set_ValueNoCheck ("R_RespMsg", R_RespMsg); -} -/** Get Response Message. -@return Response message */ -public String getR_RespMsg() -{ -return (String)get_Value("R_RespMsg"); -} -/** Column name R_RespMsg */ -public static final String COLUMNNAME_R_RespMsg = "R_RespMsg"; -/** Set Result. -@param R_Result Result of transmission */ -public void setR_Result (String R_Result) -{ -if (R_Result != null && R_Result.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_Result = R_Result.substring(0,19); -} -set_ValueNoCheck ("R_Result", R_Result); -} -/** Get Result. -@return Result of transmission */ -public String getR_Result() -{ -return (String)get_Value("R_Result"); -} -/** Column name R_Result */ -public static final String COLUMNNAME_R_Result = "R_Result"; + /** Set Zip verified. + @param R_AvsZip + The Zip Code has been verified + */ + public void setR_AvsZip (String R_AvsZip) + { +if (R_AvsZip == null || R_AvsZip.equals("N") || R_AvsZip.equals("X") || R_AvsZip.equals("Y")); else throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - N - X - Y"); if (R_AvsZip != null && R_AvsZip.length() > 1) + { + log.warning("Length > 1 - truncated"); + R_AvsZip = R_AvsZip.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_R_AvsZip, R_AvsZip); + } + + /** Get Zip verified. + @return The Zip Code has been verified + */ + public String getR_AvsZip () + { + return (String)get_Value(COLUMNNAME_R_AvsZip); + } + + /** Set CVV Match. + @param R_CVV2Match + Credit Card Verification Code Match + */ + public void setR_CVV2Match (boolean R_CVV2Match) + { + set_ValueNoCheck (COLUMNNAME_R_CVV2Match, Boolean.valueOf(R_CVV2Match)); + } + + /** Get CVV Match. + @return Credit Card Verification Code Match + */ + public boolean isR_CVV2Match () + { + Object oo = get_Value(COLUMNNAME_R_CVV2Match); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Info. + @param R_Info + Response info + */ + public void setR_Info (String R_Info) + { + if (R_Info != null && R_Info.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + R_Info = R_Info.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_R_Info, R_Info); + } + + /** Get Info. + @return Response info + */ + public String getR_Info () + { + return (String)get_Value(COLUMNNAME_R_Info); + } + + /** Set Reference. + @param R_PnRef + Payment reference + */ + public void setR_PnRef (String R_PnRef) + { + if (R_PnRef != null && R_PnRef.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_PnRef = R_PnRef.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_R_PnRef, R_PnRef); + } + + /** Get Reference. + @return Payment reference + */ + public String getR_PnRef () + { + return (String)get_Value(COLUMNNAME_R_PnRef); + } + + /** Set Reference (DC). + @param R_PnRef_DC + Payment Reference Delayed Capture + */ + public void setR_PnRef_DC (String R_PnRef_DC) + { + if (R_PnRef_DC != null && R_PnRef_DC.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_PnRef_DC = R_PnRef_DC.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_R_PnRef_DC, R_PnRef_DC); + } + + /** Get Reference (DC). + @return Payment Reference Delayed Capture + */ + public String getR_PnRef_DC () + { + return (String)get_Value(COLUMNNAME_R_PnRef_DC); + } + + /** Set Response Message. + @param R_RespMsg + Response message + */ + public void setR_RespMsg (String R_RespMsg) + { + if (R_RespMsg != null && R_RespMsg.length() > 60) + { + log.warning("Length > 60 - truncated"); + R_RespMsg = R_RespMsg.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_R_RespMsg, R_RespMsg); + } + + /** Get Response Message. + @return Response message + */ + public String getR_RespMsg () + { + return (String)get_Value(COLUMNNAME_R_RespMsg); + } + + /** Set Result. + @param R_Result + Result of transmission + */ + public void setR_Result (String R_Result) + { + if (R_Result != null && R_Result.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_Result = R_Result.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_R_Result, R_Result); + } + + /** Get Result. + @return Result of transmission + */ + public String getR_Result () + { + return (String)get_Value(COLUMNNAME_R_Result); + } /** Ref_Payment_ID AD_Reference_ID=343 */ public static final int REF_PAYMENT_ID_AD_Reference_ID=343; -/** Set Referenced Payment. -@param Ref_Payment_ID Referenced Payment */ -public void setRef_Payment_ID (int Ref_Payment_ID) -{ -if (Ref_Payment_ID <= 0) set_ValueNoCheck ("Ref_Payment_ID", null); - else -set_ValueNoCheck ("Ref_Payment_ID", Integer.valueOf(Ref_Payment_ID)); -} -/** Get Referenced Payment. -@return Referenced Payment */ -public int getRef_Payment_ID() -{ -Integer ii = (Integer)get_Value("Ref_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_Payment_ID */ -public static final String COLUMNNAME_Ref_Payment_ID = "Ref_Payment_ID"; -/** Set Routing No. -@param RoutingNo Bank Routing Number */ -public void setRoutingNo (String RoutingNo) -{ -if (RoutingNo != null && RoutingNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RoutingNo = RoutingNo.substring(0,19); -} -set_Value ("RoutingNo", RoutingNo); -} -/** Get Routing No. -@return Bank Routing Number */ -public String getRoutingNo() -{ -return (String)get_Value("RoutingNo"); -} -/** Column name RoutingNo */ -public static final String COLUMNNAME_RoutingNo = "RoutingNo"; -/** Set Swipe. -@param Swipe Track 1 and 2 of the Credit Card */ -public void setSwipe (String Swipe) -{ -if (Swipe != null && Swipe.length() > 80) -{ -log.warning("Length > 80 - truncated"); -Swipe = Swipe.substring(0,79); -} -set_ValueNoCheck ("Swipe", Swipe); -} -/** Get Swipe. -@return Track 1 and 2 of the Credit Card */ -public String getSwipe() -{ -return (String)get_Value("Swipe"); -} -/** Column name Swipe */ -public static final String COLUMNNAME_Swipe = "Swipe"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -set_Value ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + /** Set Referenced Payment. + @param Ref_Payment_ID Referenced Payment */ + public void setRef_Payment_ID (int Ref_Payment_ID) + { + if (Ref_Payment_ID <= 0) set_ValueNoCheck (COLUMNNAME_Ref_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Ref_Payment_ID, Integer.valueOf(Ref_Payment_ID)); + } + + /** Get Referenced Payment. +@return Referenced Payment */ + public int getRef_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + if (RoutingNo != null && RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 19); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } + + /** Set Swipe. + @param Swipe + Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe) + { + if (Swipe != null && Swipe.length() > 80) + { + log.warning("Length > 80 - truncated"); + Swipe = Swipe.substring(0, 79); + } + set_ValueNoCheck (COLUMNNAME_Swipe, Swipe); + } + + /** Get Swipe. + @return Track 1 and 2 of the Credit Card + */ + public String getSwipe () + { + return (String)get_Value(COLUMNNAME_Swipe); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** TenderType AD_Reference_ID=214 */ -public static final int TENDERTYPE_AD_Reference_ID=214; -/** Direct Deposit = A */ -public static final String TENDERTYPE_DirectDeposit = "A"; -/** Credit Card = C */ -public static final String TENDERTYPE_CreditCard = "C"; -/** Direct Debit = D */ -public static final String TENDERTYPE_DirectDebit = "D"; -/** Check = K */ +public static final int TENDERTYPE_AD_Reference_ID=214;/** Direct Deposit = A */ +public static final String TENDERTYPE_DirectDeposit = "A";/** Credit Card = C */ +public static final String TENDERTYPE_CreditCard = "C";/** Direct Debit = D */ +public static final String TENDERTYPE_DirectDebit = "D";/** Check = K */ public static final String TENDERTYPE_Check = "K"; -/** Set Tender type. -@param TenderType Method of Payment */ -public void setTenderType (String TenderType) -{ -if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory"); -if (TenderType.equals("A") || TenderType.equals("C") || TenderType.equals("D") || TenderType.equals("K")); - else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - A - C - D - K"); -if (TenderType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TenderType = TenderType.substring(0,0); -} -set_Value ("TenderType", TenderType); -} -/** Get Tender type. -@return Method of Payment */ -public String getTenderType() -{ -return (String)get_Value("TenderType"); -} -/** Column name TenderType */ -public static final String COLUMNNAME_TenderType = "TenderType"; + /** Set Tender type. + @param TenderType + Method of Payment + */ + public void setTenderType (String TenderType) + { +if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory");if (TenderType.equals("A") || TenderType.equals("C") || TenderType.equals("D") || TenderType.equals("K")); else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - A - C - D - K"); if (TenderType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TenderType = TenderType.substring(0, 0); + } + set_Value (COLUMNNAME_TenderType, TenderType); + } + + /** Get Tender type. + @return Method of Payment + */ + public String getTenderType () + { + return (String)get_Value(COLUMNNAME_TenderType); + } /** TrxType AD_Reference_ID=215 */ -public static final int TRXTYPE_AD_Reference_ID=215; -/** Authorization = A */ -public static final String TRXTYPE_Authorization = "A"; -/** Credit (Payment) = C */ -public static final String TRXTYPE_CreditPayment = "C"; -/** Delayed Capture = D */ -public static final String TRXTYPE_DelayedCapture = "D"; -/** Voice Authorization = F */ -public static final String TRXTYPE_VoiceAuthorization = "F"; -/** Sales = S */ -public static final String TRXTYPE_Sales = "S"; -/** Void = V */ +public static final int TRXTYPE_AD_Reference_ID=215;/** Authorization = A */ +public static final String TRXTYPE_Authorization = "A";/** Credit (Payment) = C */ +public static final String TRXTYPE_CreditPayment = "C";/** Delayed Capture = D */ +public static final String TRXTYPE_DelayedCapture = "D";/** Voice Authorization = F */ +public static final String TRXTYPE_VoiceAuthorization = "F";/** Sales = S */ +public static final String TRXTYPE_Sales = "S";/** Void = V */ public static final String TRXTYPE_Void = "V"; -/** Set Transaction Type. -@param TrxType Type of credit card transaction */ -public void setTrxType (String TrxType) -{ -if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); -if (TrxType.equals("A") || TrxType.equals("C") || TrxType.equals("D") || TrxType.equals("F") || TrxType.equals("S") || TrxType.equals("V")); - else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - A - C - D - F - S - V"); -if (TrxType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TrxType = TrxType.substring(0,0); -} -set_Value ("TrxType", TrxType); -} -/** Get Transaction Type. -@return Type of credit card transaction */ -public String getTrxType() -{ -return (String)get_Value("TrxType"); -} -/** Column name TrxType */ -public static final String COLUMNNAME_TrxType = "TrxType"; + /** Set Transaction Type. + @param TrxType + Type of credit card transaction + */ + public void setTrxType (String TrxType) + { +if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory");if (TrxType.equals("A") || TrxType.equals("C") || TrxType.equals("D") || TrxType.equals("F") || TrxType.equals("S") || TrxType.equals("V")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - A - C - D - F - S - V"); if (TrxType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TrxType = TrxType.substring(0, 0); + } + set_Value (COLUMNNAME_TrxType, TrxType); + } + + /** Get Transaction Type. + @return Type of credit card transaction + */ + public String getTrxType () + { + return (String)get_Value(COLUMNNAME_TrxType); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -/** Set Voice authorization code. -@param VoiceAuthCode Voice Authorization Code from credit card company */ -public void setVoiceAuthCode (String VoiceAuthCode) -{ -if (VoiceAuthCode != null && VoiceAuthCode.length() > 20) -{ -log.warning("Length > 20 - truncated"); -VoiceAuthCode = VoiceAuthCode.substring(0,19); -} -set_Value ("VoiceAuthCode", VoiceAuthCode); -} -/** Get Voice authorization code. -@return Voice Authorization Code from credit card company */ -public String getVoiceAuthCode() -{ -return (String)get_Value("VoiceAuthCode"); -} -/** Column name VoiceAuthCode */ -public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode"; -/** Set Write-off Amount. -@param WriteOffAmt Amount to write-off */ -public void setWriteOffAmt (BigDecimal WriteOffAmt) -{ -set_Value ("WriteOffAmt", WriteOffAmt); -} -/** Get Write-off Amount. -@return Amount to write-off */ -public BigDecimal getWriteOffAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("WriteOffAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name WriteOffAmt */ -public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Voice authorization code. + @param VoiceAuthCode + Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode) + { + if (VoiceAuthCode != null && VoiceAuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + VoiceAuthCode = VoiceAuthCode.substring(0, 19); + } + set_Value (COLUMNNAME_VoiceAuthCode, VoiceAuthCode); + } + + /** Get Voice authorization code. + @return Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode () + { + return (String)get_Value(COLUMNNAME_VoiceAuthCode); + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaymentAllocate.java b/base/src/org/compiere/model/X_C_PaymentAllocate.java index 66c35171df..f3aece188e 100644 --- a/base/src/org/compiere/model/X_C_PaymentAllocate.java +++ b/base/src/org/compiere/model/X_C_PaymentAllocate.java @@ -1,269 +1,331 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaymentAllocate - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaymentAllocate extends PO + +/** Generated Model for C_PaymentAllocate + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaymentAllocate extends PO implements I_C_PaymentAllocate, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaymentAllocate_ID id -@param trxName transaction -*/ -public X_C_PaymentAllocate (Properties ctx, int C_PaymentAllocate_ID, String trxName) -{ -super (ctx, C_PaymentAllocate_ID, trxName); -/** if (C_PaymentAllocate_ID == 0) -{ -setAmount (Env.ZERO); -setC_Invoice_ID (0); -setC_PaymentAllocate_ID (0); -setC_Payment_ID (0); -setDiscountAmt (Env.ZERO); -setOverUnderAmt (Env.ZERO); -setWriteOffAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaymentAllocate (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaymentAllocate */ -public static final String Table_Name="C_PaymentAllocate"; - -/** AD_Table_ID=812 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaymentAllocate[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amount Amount in a defined currency */ -public void setAmount (BigDecimal Amount) -{ -if (Amount == null) throw new IllegalArgumentException ("Amount is mandatory."); -set_Value ("Amount", Amount); -} -/** Get Amount. -@return Amount in a defined currency */ -public BigDecimal getAmount() -{ -BigDecimal bd = (BigDecimal)get_Value("Amount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amount */ -public static final String COLUMNNAME_Amount = "Amount"; -/** Set Allocation Line. -@param C_AllocationLine_ID Allocation Line */ -public void setC_AllocationLine_ID (int C_AllocationLine_ID) -{ -if (C_AllocationLine_ID <= 0) set_Value ("C_AllocationLine_ID", null); - else -set_Value ("C_AllocationLine_ID", Integer.valueOf(C_AllocationLine_ID)); -} -/** Get Allocation Line. -@return Allocation Line */ -public int getC_AllocationLine_ID() -{ -Integer ii = (Integer)get_Value("C_AllocationLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AllocationLine_ID */ -public static final String COLUMNNAME_C_AllocationLine_ID = "C_AllocationLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Allocate Payment. -@param C_PaymentAllocate_ID Allocate Payment to Invoices */ -public void setC_PaymentAllocate_ID (int C_PaymentAllocate_ID) -{ -if (C_PaymentAllocate_ID < 1) throw new IllegalArgumentException ("C_PaymentAllocate_ID is mandatory."); -set_ValueNoCheck ("C_PaymentAllocate_ID", Integer.valueOf(C_PaymentAllocate_ID)); -} -/** Get Allocate Payment. -@return Allocate Payment to Invoices */ -public int getC_PaymentAllocate_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentAllocate_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentAllocate_ID */ -public static final String COLUMNNAME_C_PaymentAllocate_ID = "C_PaymentAllocate_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID < 1) throw new IllegalArgumentException ("C_Payment_ID is mandatory."); -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -if (DiscountAmt == null) throw new IllegalArgumentException ("DiscountAmt is mandatory."); -set_Value ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Invoice Amt. -@param InvoiceAmt Invoice Amt */ -public void setInvoiceAmt (BigDecimal InvoiceAmt) -{ -set_Value ("InvoiceAmt", InvoiceAmt); -} -/** Get Invoice Amt. -@return Invoice Amt */ -public BigDecimal getInvoiceAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoiceAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoiceAmt */ -public static final String COLUMNNAME_InvoiceAmt = "InvoiceAmt"; -/** Set Over/Under Payment. -@param OverUnderAmt Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public void setOverUnderAmt (BigDecimal OverUnderAmt) -{ -if (OverUnderAmt == null) throw new IllegalArgumentException ("OverUnderAmt is mandatory."); -set_Value ("OverUnderAmt", OverUnderAmt); -} -/** Get Over/Under Payment. -@return Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public BigDecimal getOverUnderAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OverUnderAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OverUnderAmt */ -public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; -/** Set Remaining Amt. -@param RemainingAmt Remaining Amount */ -public void setRemainingAmt (BigDecimal RemainingAmt) -{ -throw new IllegalArgumentException ("RemainingAmt is virtual column"); -} -/** Get Remaining Amt. -@return Remaining Amount */ -public BigDecimal getRemainingAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RemainingAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RemainingAmt */ -public static final String COLUMNNAME_RemainingAmt = "RemainingAmt"; -/** Set Write-off Amount. -@param WriteOffAmt Amount to write-off */ -public void setWriteOffAmt (BigDecimal WriteOffAmt) -{ -if (WriteOffAmt == null) throw new IllegalArgumentException ("WriteOffAmt is mandatory."); -set_Value ("WriteOffAmt", WriteOffAmt); -} -/** Get Write-off Amount. -@return Amount to write-off */ -public BigDecimal getWriteOffAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("WriteOffAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name WriteOffAmt */ -public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaymentAllocate (Properties ctx, int C_PaymentAllocate_ID, String trxName) + { + super (ctx, C_PaymentAllocate_ID, trxName); + /** if (C_PaymentAllocate_ID == 0) { setAmount (Env.ZERO); + setC_Invoice_ID (0); + setC_PaymentAllocate_ID (0); + setC_Payment_ID (0); + setDiscountAmt (Env.ZERO); + setOverUnderAmt (Env.ZERO); + setWriteOffAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_PaymentAllocate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaymentAllocate[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amount + Amount in a defined currency + */ + public void setAmount (BigDecimal Amount) + { + if (Amount == null) + throw new IllegalArgumentException ("Amount is mandatory."); + set_Value (COLUMNNAME_Amount, Amount); + } + + /** Get Amount. + @return Amount in a defined currency + */ + public BigDecimal getAmount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AllocationLine getI_C_AllocationLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Allocation Line. + @param C_AllocationLine_ID + Allocation Line + */ + public void setC_AllocationLine_ID (int C_AllocationLine_ID) + { + if (C_AllocationLine_ID <= 0) set_Value (COLUMNNAME_C_AllocationLine_ID, null); + else + set_Value (COLUMNNAME_C_AllocationLine_ID, Integer.valueOf(C_AllocationLine_ID)); + } + + /** Get Allocation Line. + @return Allocation Line + */ + public int getC_AllocationLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AllocationLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Invoice_ID())); + } + + /** Set Allocate Payment. + @param C_PaymentAllocate_ID + Allocate Payment to Invoices + */ + public void setC_PaymentAllocate_ID (int C_PaymentAllocate_ID) + { + if (C_PaymentAllocate_ID < 1) + throw new IllegalArgumentException ("C_PaymentAllocate_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaymentAllocate_ID, Integer.valueOf(C_PaymentAllocate_ID)); + } + + /** Get Allocate Payment. + @return Allocate Payment to Invoices + */ + public int getC_PaymentAllocate_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentAllocate_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Payment getI_C_Payment() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + throw new IllegalArgumentException ("C_Payment_ID is mandatory."); + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + if (DiscountAmt == null) + throw new IllegalArgumentException ("DiscountAmt is mandatory."); + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice Amt. + @param InvoiceAmt Invoice Amt */ + public void setInvoiceAmt (BigDecimal InvoiceAmt) + { + set_Value (COLUMNNAME_InvoiceAmt, InvoiceAmt); + } + + /** Get Invoice Amt. +@return Invoice Amt */ + public BigDecimal getInvoiceAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoiceAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Over/Under Payment. + @param OverUnderAmt + Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt) + { + if (OverUnderAmt == null) + throw new IllegalArgumentException ("OverUnderAmt is mandatory."); + set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Remaining Amt. + @param RemainingAmt + Remaining Amount + */ + public void setRemainingAmt (BigDecimal RemainingAmt) + { + throw new IllegalArgumentException ("RemainingAmt is virtual column"); } + + /** Get Remaining Amt. + @return Remaining Amount + */ + public BigDecimal getRemainingAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RemainingAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + if (WriteOffAmt == null) + throw new IllegalArgumentException ("WriteOffAmt is mandatory."); + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaymentBatch.java b/base/src/org/compiere/model/X_C_PaymentBatch.java index 3302f7f517..32ab3df0c4 100644 --- a/base/src/org/compiere/model/X_C_PaymentBatch.java +++ b/base/src/org/compiere/model/X_C_PaymentBatch.java @@ -1,225 +1,250 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaymentBatch - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaymentBatch extends PO + +/** Generated Model for C_PaymentBatch + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaymentBatch extends PO implements I_C_PaymentBatch, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaymentBatch_ID id -@param trxName transaction -*/ -public X_C_PaymentBatch (Properties ctx, int C_PaymentBatch_ID, String trxName) -{ -super (ctx, C_PaymentBatch_ID, trxName); -/** if (C_PaymentBatch_ID == 0) -{ -setC_PaymentBatch_ID (0); -setC_PaymentProcessor_ID (0); -setName (null); -setProcessed (false); -setProcessing (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaymentBatch (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaymentBatch */ -public static final String Table_Name="C_PaymentBatch"; - -/** AD_Table_ID=411 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaymentBatch[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Payment Batch. -@param C_PaymentBatch_ID Payment batch for EFT */ -public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) -{ -if (C_PaymentBatch_ID < 1) throw new IllegalArgumentException ("C_PaymentBatch_ID is mandatory."); -set_ValueNoCheck ("C_PaymentBatch_ID", Integer.valueOf(C_PaymentBatch_ID)); -} -/** Get Payment Batch. -@return Payment batch for EFT */ -public int getC_PaymentBatch_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentBatch_ID */ -public static final String COLUMNNAME_C_PaymentBatch_ID = "C_PaymentBatch_ID"; -/** Set Payment Processor. -@param C_PaymentProcessor_ID Payment processor for electronic payments */ -public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) -{ -if (C_PaymentProcessor_ID < 1) throw new IllegalArgumentException ("C_PaymentProcessor_ID is mandatory."); -set_Value ("C_PaymentProcessor_ID", Integer.valueOf(C_PaymentProcessor_ID)); -} -/** Get Payment Processor. -@return Payment processor for electronic payments */ -public int getC_PaymentProcessor_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentProcessor_ID */ -public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Processing date. -@param ProcessingDate Processing date */ -public void setProcessingDate (Timestamp ProcessingDate) -{ -set_Value ("ProcessingDate", ProcessingDate); -} -/** Get Processing date. -@return Processing date */ -public Timestamp getProcessingDate() -{ -return (Timestamp)get_Value("ProcessingDate"); -} -/** Column name ProcessingDate */ -public static final String COLUMNNAME_ProcessingDate = "ProcessingDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaymentBatch (Properties ctx, int C_PaymentBatch_ID, String trxName) + { + super (ctx, C_PaymentBatch_ID, trxName); + /** if (C_PaymentBatch_ID == 0) { setC_PaymentBatch_ID (0); + setC_PaymentProcessor_ID (0); + setName (null); + setProcessed (false); + setProcessing (false); +} */ + } + + /** Load Constructor */ + public X_C_PaymentBatch (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaymentBatch[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Payment Batch. + @param C_PaymentBatch_ID + Payment batch for EFT + */ + public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) + { + if (C_PaymentBatch_ID < 1) + throw new IllegalArgumentException ("C_PaymentBatch_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaymentBatch_ID, Integer.valueOf(C_PaymentBatch_ID)); + } + + /** Get Payment Batch. + @return Payment batch for EFT + */ + public int getC_PaymentBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentProcessor getI_C_PaymentProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Processor. + @param C_PaymentProcessor_ID + Payment processor for electronic payments + */ + public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) + { + if (C_PaymentProcessor_ID < 1) + throw new IllegalArgumentException ("C_PaymentProcessor_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); + } + + /** Get Payment Processor. + @return Payment processor for electronic payments + */ + public int getC_PaymentProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processing date. + @param ProcessingDate Processing date */ + public void setProcessingDate (Timestamp ProcessingDate) + { + set_Value (COLUMNNAME_ProcessingDate, ProcessingDate); + } + + /** Get Processing date. +@return Processing date */ + public Timestamp getProcessingDate () + { + return (Timestamp)get_Value(COLUMNNAME_ProcessingDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaymentProcessor.java b/base/src/org/compiere/model/X_C_PaymentProcessor.java index d5d919a6fd..d6ac558a90 100644 --- a/base/src/org/compiere/model/X_C_PaymentProcessor.java +++ b/base/src/org/compiere/model/X_C_PaymentProcessor.java @@ -1,701 +1,840 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaymentProcessor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaymentProcessor extends PO + +/** Generated Model for C_PaymentProcessor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaymentProcessor extends PO implements I_C_PaymentProcessor, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaymentProcessor_ID id -@param trxName transaction -*/ -public X_C_PaymentProcessor (Properties ctx, int C_PaymentProcessor_ID, String trxName) -{ -super (ctx, C_PaymentProcessor_ID, trxName); -/** if (C_PaymentProcessor_ID == 0) -{ -setAcceptAMEX (false); -setAcceptATM (false); -setAcceptCheck (false); -setAcceptCorporate (false); -setAcceptDiners (false); -setAcceptDirectDebit (false); -setAcceptDirectDeposit (false); -setAcceptDiscover (false); -setAcceptMC (false); -setAcceptVisa (false); -setC_BankAccount_ID (0); -setC_PaymentProcessor_ID (0); -setCommission (Env.ZERO); -setCostPerTrx (Env.ZERO); -setHostAddress (null); -setHostPort (0); -setName (null); -setPassword (null); -setRequireVV (false); -setUserID (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaymentProcessor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaymentProcessor */ -public static final String Table_Name="C_PaymentProcessor"; - -/** AD_Table_ID=398 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaymentProcessor[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaymentProcessor (Properties ctx, int C_PaymentProcessor_ID, String trxName) + { + super (ctx, C_PaymentProcessor_ID, trxName); + /** if (C_PaymentProcessor_ID == 0) { setAcceptAMEX (false); + setAcceptATM (false); + setAcceptCheck (false); + setAcceptCorporate (false); + setAcceptDiners (false); + setAcceptDirectDebit (false); + setAcceptDirectDeposit (false); + setAcceptDiscover (false); + setAcceptMC (false); + setAcceptVisa (false); + setC_BankAccount_ID (0); + setC_PaymentProcessor_ID (0); + setCommission (Env.ZERO); + setCostPerTrx (Env.ZERO); + setHostAddress (null); + setHostPort (0); + setName (null); + setPassword (null); + setRequireVV (false); + setUserID (null); +} */ + } + + /** Load Constructor */ + public X_C_PaymentProcessor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaymentProcessor[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Sequence_ID AD_Reference_ID=128 */ public static final int AD_SEQUENCE_ID_AD_Reference_ID=128; -/** Set Sequence. -@param AD_Sequence_ID Document Sequence */ -public void setAD_Sequence_ID (int AD_Sequence_ID) -{ -if (AD_Sequence_ID <= 0) set_Value ("AD_Sequence_ID", null); - else -set_Value ("AD_Sequence_ID", Integer.valueOf(AD_Sequence_ID)); -} -/** Get Sequence. -@return Document Sequence */ -public int getAD_Sequence_ID() -{ -Integer ii = (Integer)get_Value("AD_Sequence_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Sequence_ID */ -public static final String COLUMNNAME_AD_Sequence_ID = "AD_Sequence_ID"; -/** Set Accept AMEX. -@param AcceptAMEX Accept American Express Card */ -public void setAcceptAMEX (boolean AcceptAMEX) -{ -set_Value ("AcceptAMEX", Boolean.valueOf(AcceptAMEX)); -} -/** Get Accept AMEX. -@return Accept American Express Card */ -public boolean isAcceptAMEX() -{ -Object oo = get_Value("AcceptAMEX"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptAMEX */ -public static final String COLUMNNAME_AcceptAMEX = "AcceptAMEX"; -/** Set Accept ATM. -@param AcceptATM Accept Bank ATM Card */ -public void setAcceptATM (boolean AcceptATM) -{ -set_Value ("AcceptATM", Boolean.valueOf(AcceptATM)); -} -/** Get Accept ATM. -@return Accept Bank ATM Card */ -public boolean isAcceptATM() -{ -Object oo = get_Value("AcceptATM"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptATM */ -public static final String COLUMNNAME_AcceptATM = "AcceptATM"; -/** Set Accept Electronic Check. -@param AcceptCheck Accept ECheck (Electronic Checks) */ -public void setAcceptCheck (boolean AcceptCheck) -{ -set_Value ("AcceptCheck", Boolean.valueOf(AcceptCheck)); -} -/** Get Accept Electronic Check. -@return Accept ECheck (Electronic Checks) */ -public boolean isAcceptCheck() -{ -Object oo = get_Value("AcceptCheck"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptCheck */ -public static final String COLUMNNAME_AcceptCheck = "AcceptCheck"; -/** Set Accept Corporate. -@param AcceptCorporate Accept Corporate Purchase Cards */ -public void setAcceptCorporate (boolean AcceptCorporate) -{ -set_Value ("AcceptCorporate", Boolean.valueOf(AcceptCorporate)); -} -/** Get Accept Corporate. -@return Accept Corporate Purchase Cards */ -public boolean isAcceptCorporate() -{ -Object oo = get_Value("AcceptCorporate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptCorporate */ -public static final String COLUMNNAME_AcceptCorporate = "AcceptCorporate"; -/** Set Accept Diners. -@param AcceptDiners Accept Diner's Club */ -public void setAcceptDiners (boolean AcceptDiners) -{ -set_Value ("AcceptDiners", Boolean.valueOf(AcceptDiners)); -} -/** Get Accept Diners. -@return Accept Diner's Club */ -public boolean isAcceptDiners() -{ -Object oo = get_Value("AcceptDiners"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptDiners */ -public static final String COLUMNNAME_AcceptDiners = "AcceptDiners"; -/** Set Accept Direct Debit. -@param AcceptDirectDebit Accept Direct Debits (vendor initiated) */ -public void setAcceptDirectDebit (boolean AcceptDirectDebit) -{ -set_Value ("AcceptDirectDebit", Boolean.valueOf(AcceptDirectDebit)); -} -/** Get Accept Direct Debit. -@return Accept Direct Debits (vendor initiated) */ -public boolean isAcceptDirectDebit() -{ -Object oo = get_Value("AcceptDirectDebit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptDirectDebit */ -public static final String COLUMNNAME_AcceptDirectDebit = "AcceptDirectDebit"; -/** Set Accept Direct Deposit. -@param AcceptDirectDeposit Accept Direct Deposit (payee initiated) */ -public void setAcceptDirectDeposit (boolean AcceptDirectDeposit) -{ -set_Value ("AcceptDirectDeposit", Boolean.valueOf(AcceptDirectDeposit)); -} -/** Get Accept Direct Deposit. -@return Accept Direct Deposit (payee initiated) */ -public boolean isAcceptDirectDeposit() -{ -Object oo = get_Value("AcceptDirectDeposit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptDirectDeposit */ -public static final String COLUMNNAME_AcceptDirectDeposit = "AcceptDirectDeposit"; -/** Set Accept Discover. -@param AcceptDiscover Accept Discover Card */ -public void setAcceptDiscover (boolean AcceptDiscover) -{ -set_Value ("AcceptDiscover", Boolean.valueOf(AcceptDiscover)); -} -/** Get Accept Discover. -@return Accept Discover Card */ -public boolean isAcceptDiscover() -{ -Object oo = get_Value("AcceptDiscover"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptDiscover */ -public static final String COLUMNNAME_AcceptDiscover = "AcceptDiscover"; -/** Set Accept MasterCard. -@param AcceptMC Accept Master Card */ -public void setAcceptMC (boolean AcceptMC) -{ -set_Value ("AcceptMC", Boolean.valueOf(AcceptMC)); -} -/** Get Accept MasterCard. -@return Accept Master Card */ -public boolean isAcceptMC() -{ -Object oo = get_Value("AcceptMC"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptMC */ -public static final String COLUMNNAME_AcceptMC = "AcceptMC"; -/** Set Accept Visa. -@param AcceptVisa Accept Visa Cards */ -public void setAcceptVisa (boolean AcceptVisa) -{ -set_Value ("AcceptVisa", Boolean.valueOf(AcceptVisa)); -} -/** Get Accept Visa. -@return Accept Visa Cards */ -public boolean isAcceptVisa() -{ -Object oo = get_Value("AcceptVisa"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AcceptVisa */ -public static final String COLUMNNAME_AcceptVisa = "AcceptVisa"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID < 1) throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); -set_ValueNoCheck ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Payment Processor. -@param C_PaymentProcessor_ID Payment processor for electronic payments */ -public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) -{ -if (C_PaymentProcessor_ID < 1) throw new IllegalArgumentException ("C_PaymentProcessor_ID is mandatory."); -set_ValueNoCheck ("C_PaymentProcessor_ID", Integer.valueOf(C_PaymentProcessor_ID)); -} -/** Get Payment Processor. -@return Payment processor for electronic payments */ -public int getC_PaymentProcessor_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentProcessor_ID */ -public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID"; -/** Set Commission %. -@param Commission Commission stated as a percentage */ -public void setCommission (BigDecimal Commission) -{ -if (Commission == null) throw new IllegalArgumentException ("Commission is mandatory."); -set_Value ("Commission", Commission); -} -/** Get Commission %. -@return Commission stated as a percentage */ -public BigDecimal getCommission() -{ -BigDecimal bd = (BigDecimal)get_Value("Commission"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Commission */ -public static final String COLUMNNAME_Commission = "Commission"; -/** Set Cost per transaction. -@param CostPerTrx Fixed cost per transaction */ -public void setCostPerTrx (BigDecimal CostPerTrx) -{ -if (CostPerTrx == null) throw new IllegalArgumentException ("CostPerTrx is mandatory."); -set_Value ("CostPerTrx", CostPerTrx); -} -/** Get Cost per transaction. -@return Fixed cost per transaction */ -public BigDecimal getCostPerTrx() -{ -BigDecimal bd = (BigDecimal)get_Value("CostPerTrx"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostPerTrx */ -public static final String COLUMNNAME_CostPerTrx = "CostPerTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Host Address. -@param HostAddress Host Address URL or DNS */ -public void setHostAddress (String HostAddress) -{ -if (HostAddress == null) throw new IllegalArgumentException ("HostAddress is mandatory."); -if (HostAddress.length() > 60) -{ -log.warning("Length > 60 - truncated"); -HostAddress = HostAddress.substring(0,59); -} -set_Value ("HostAddress", HostAddress); -} -/** Get Host Address. -@return Host Address URL or DNS */ -public String getHostAddress() -{ -return (String)get_Value("HostAddress"); -} -/** Column name HostAddress */ -public static final String COLUMNNAME_HostAddress = "HostAddress"; -/** Set Host port. -@param HostPort Host Communication Port */ -public void setHostPort (int HostPort) -{ -set_Value ("HostPort", Integer.valueOf(HostPort)); -} -/** Get Host port. -@return Host Communication Port */ -public int getHostPort() -{ -Integer ii = (Integer)get_Value("HostPort"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name HostPort */ -public static final String COLUMNNAME_HostPort = "HostPort"; -/** Set Minimum Amt. -@param MinimumAmt Minumum Amout in Document Currency */ -public void setMinimumAmt (BigDecimal MinimumAmt) -{ -set_Value ("MinimumAmt", MinimumAmt); -} -/** Get Minimum Amt. -@return Minumum Amout in Document Currency */ -public BigDecimal getMinimumAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("MinimumAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MinimumAmt */ -public static final String COLUMNNAME_MinimumAmt = "MinimumAmt"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Partner ID. -@param PartnerID Partner ID or Account for the Payment Processor */ -public void setPartnerID (String PartnerID) -{ -if (PartnerID != null && PartnerID.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PartnerID = PartnerID.substring(0,59); -} -set_Value ("PartnerID", PartnerID); -} -/** Get Partner ID. -@return Partner ID or Account for the Payment Processor */ -public String getPartnerID() -{ -return (String)get_Value("PartnerID"); -} -/** Column name PartnerID */ -public static final String COLUMNNAME_PartnerID = "PartnerID"; -/** Set Password. -@param Password Password of any length (case sensitive) */ -public void setPassword (String Password) -{ -if (Password == null) throw new IllegalArgumentException ("Password is mandatory."); -if (Password.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Password = Password.substring(0,59); -} -set_Value ("Password", Password); -} -/** Get Password. -@return Password of any length (case sensitive) */ -public String getPassword() -{ -return (String)get_Value("Password"); -} -/** Column name Password */ -public static final String COLUMNNAME_Password = "Password"; -/** Set Payment Processor Class. -@param PayProcessorClass Payment Processor Java Class */ -public void setPayProcessorClass (String PayProcessorClass) -{ -if (PayProcessorClass != null && PayProcessorClass.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PayProcessorClass = PayProcessorClass.substring(0,59); -} -set_Value ("PayProcessorClass", PayProcessorClass); -} -/** Get Payment Processor Class. -@return Payment Processor Java Class */ -public String getPayProcessorClass() -{ -return (String)get_Value("PayProcessorClass"); -} -/** Column name PayProcessorClass */ -public static final String COLUMNNAME_PayProcessorClass = "PayProcessorClass"; -/** Set Proxy address. -@param ProxyAddress Address of your proxy server */ -public void setProxyAddress (String ProxyAddress) -{ -if (ProxyAddress != null && ProxyAddress.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProxyAddress = ProxyAddress.substring(0,59); -} -set_Value ("ProxyAddress", ProxyAddress); -} -/** Get Proxy address. -@return Address of your proxy server */ -public String getProxyAddress() -{ -return (String)get_Value("ProxyAddress"); -} -/** Column name ProxyAddress */ -public static final String COLUMNNAME_ProxyAddress = "ProxyAddress"; -/** Set Proxy logon. -@param ProxyLogon Logon of your proxy server */ -public void setProxyLogon (String ProxyLogon) -{ -if (ProxyLogon != null && ProxyLogon.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProxyLogon = ProxyLogon.substring(0,59); -} -set_Value ("ProxyLogon", ProxyLogon); -} -/** Get Proxy logon. -@return Logon of your proxy server */ -public String getProxyLogon() -{ -return (String)get_Value("ProxyLogon"); -} -/** Column name ProxyLogon */ -public static final String COLUMNNAME_ProxyLogon = "ProxyLogon"; -/** Set Proxy password. -@param ProxyPassword Password of your proxy server */ -public void setProxyPassword (String ProxyPassword) -{ -if (ProxyPassword != null && ProxyPassword.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProxyPassword = ProxyPassword.substring(0,59); -} -set_Value ("ProxyPassword", ProxyPassword); -} -/** Get Proxy password. -@return Password of your proxy server */ -public String getProxyPassword() -{ -return (String)get_Value("ProxyPassword"); -} -/** Column name ProxyPassword */ -public static final String COLUMNNAME_ProxyPassword = "ProxyPassword"; -/** Set Proxy port. -@param ProxyPort Port of your proxy server */ -public void setProxyPort (int ProxyPort) -{ -set_Value ("ProxyPort", Integer.valueOf(ProxyPort)); -} -/** Get Proxy port. -@return Port of your proxy server */ -public int getProxyPort() -{ -Integer ii = (Integer)get_Value("ProxyPort"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ProxyPort */ -public static final String COLUMNNAME_ProxyPort = "ProxyPort"; -/** Set Require CreditCard Verification Code. -@param RequireVV Require 3/4 digit Credit Verification Code */ -public void setRequireVV (boolean RequireVV) -{ -set_Value ("RequireVV", Boolean.valueOf(RequireVV)); -} -/** Get Require CreditCard Verification Code. -@return Require 3/4 digit Credit Verification Code */ -public boolean isRequireVV() -{ -Object oo = get_Value("RequireVV"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name RequireVV */ -public static final String COLUMNNAME_RequireVV = "RequireVV"; -/** Set User ID. -@param UserID User ID or account number */ -public void setUserID (String UserID) -{ -if (UserID == null) throw new IllegalArgumentException ("UserID is mandatory."); -if (UserID.length() > 60) -{ -log.warning("Length > 60 - truncated"); -UserID = UserID.substring(0,59); -} -set_Value ("UserID", UserID); -} -/** Get User ID. -@return User ID or account number */ -public String getUserID() -{ -return (String)get_Value("UserID"); -} -/** Column name UserID */ -public static final String COLUMNNAME_UserID = "UserID"; -/** Set Vendor ID. -@param VendorID Vendor ID for the Payment Processor */ -public void setVendorID (String VendorID) -{ -if (VendorID != null && VendorID.length() > 60) -{ -log.warning("Length > 60 - truncated"); -VendorID = VendorID.substring(0,59); -} -set_Value ("VendorID", VendorID); -} -/** Get Vendor ID. -@return Vendor ID for the Payment Processor */ -public String getVendorID() -{ -return (String)get_Value("VendorID"); -} -/** Column name VendorID */ -public static final String COLUMNNAME_VendorID = "VendorID"; -} + /** Set Sequence. + @param AD_Sequence_ID + Document Sequence + */ + public void setAD_Sequence_ID (int AD_Sequence_ID) + { + if (AD_Sequence_ID <= 0) set_Value (COLUMNNAME_AD_Sequence_ID, null); + else + set_Value (COLUMNNAME_AD_Sequence_ID, Integer.valueOf(AD_Sequence_ID)); + } + + /** Get Sequence. + @return Document Sequence + */ + public int getAD_Sequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Sequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accept AMEX. + @param AcceptAMEX + Accept American Express Card + */ + public void setAcceptAMEX (boolean AcceptAMEX) + { + set_Value (COLUMNNAME_AcceptAMEX, Boolean.valueOf(AcceptAMEX)); + } + + /** Get Accept AMEX. + @return Accept American Express Card + */ + public boolean isAcceptAMEX () + { + Object oo = get_Value(COLUMNNAME_AcceptAMEX); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept ATM. + @param AcceptATM + Accept Bank ATM Card + */ + public void setAcceptATM (boolean AcceptATM) + { + set_Value (COLUMNNAME_AcceptATM, Boolean.valueOf(AcceptATM)); + } + + /** Get Accept ATM. + @return Accept Bank ATM Card + */ + public boolean isAcceptATM () + { + Object oo = get_Value(COLUMNNAME_AcceptATM); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Electronic Check. + @param AcceptCheck + Accept ECheck (Electronic Checks) + */ + public void setAcceptCheck (boolean AcceptCheck) + { + set_Value (COLUMNNAME_AcceptCheck, Boolean.valueOf(AcceptCheck)); + } + + /** Get Accept Electronic Check. + @return Accept ECheck (Electronic Checks) + */ + public boolean isAcceptCheck () + { + Object oo = get_Value(COLUMNNAME_AcceptCheck); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Corporate. + @param AcceptCorporate + Accept Corporate Purchase Cards + */ + public void setAcceptCorporate (boolean AcceptCorporate) + { + set_Value (COLUMNNAME_AcceptCorporate, Boolean.valueOf(AcceptCorporate)); + } + + /** Get Accept Corporate. + @return Accept Corporate Purchase Cards + */ + public boolean isAcceptCorporate () + { + Object oo = get_Value(COLUMNNAME_AcceptCorporate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Diners. + @param AcceptDiners + Accept Diner's Club + */ + public void setAcceptDiners (boolean AcceptDiners) + { + set_Value (COLUMNNAME_AcceptDiners, Boolean.valueOf(AcceptDiners)); + } + + /** Get Accept Diners. + @return Accept Diner's Club + */ + public boolean isAcceptDiners () + { + Object oo = get_Value(COLUMNNAME_AcceptDiners); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Direct Debit. + @param AcceptDirectDebit + Accept Direct Debits (vendor initiated) + */ + public void setAcceptDirectDebit (boolean AcceptDirectDebit) + { + set_Value (COLUMNNAME_AcceptDirectDebit, Boolean.valueOf(AcceptDirectDebit)); + } + + /** Get Accept Direct Debit. + @return Accept Direct Debits (vendor initiated) + */ + public boolean isAcceptDirectDebit () + { + Object oo = get_Value(COLUMNNAME_AcceptDirectDebit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Direct Deposit. + @param AcceptDirectDeposit + Accept Direct Deposit (payee initiated) + */ + public void setAcceptDirectDeposit (boolean AcceptDirectDeposit) + { + set_Value (COLUMNNAME_AcceptDirectDeposit, Boolean.valueOf(AcceptDirectDeposit)); + } + + /** Get Accept Direct Deposit. + @return Accept Direct Deposit (payee initiated) + */ + public boolean isAcceptDirectDeposit () + { + Object oo = get_Value(COLUMNNAME_AcceptDirectDeposit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Discover. + @param AcceptDiscover + Accept Discover Card + */ + public void setAcceptDiscover (boolean AcceptDiscover) + { + set_Value (COLUMNNAME_AcceptDiscover, Boolean.valueOf(AcceptDiscover)); + } + + /** Get Accept Discover. + @return Accept Discover Card + */ + public boolean isAcceptDiscover () + { + Object oo = get_Value(COLUMNNAME_AcceptDiscover); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept MasterCard. + @param AcceptMC + Accept Master Card + */ + public void setAcceptMC (boolean AcceptMC) + { + set_Value (COLUMNNAME_AcceptMC, Boolean.valueOf(AcceptMC)); + } + + /** Get Accept MasterCard. + @return Accept Master Card + */ + public boolean isAcceptMC () + { + Object oo = get_Value(COLUMNNAME_AcceptMC); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accept Visa. + @param AcceptVisa + Accept Visa Cards + */ + public void setAcceptVisa (boolean AcceptVisa) + { + set_Value (COLUMNNAME_AcceptVisa, Boolean.valueOf(AcceptVisa)); + } + + /** Get Accept Visa. + @return Accept Visa Cards + */ + public boolean isAcceptVisa () + { + Object oo = get_Value(COLUMNNAME_AcceptVisa); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Processor. + @param C_PaymentProcessor_ID + Payment processor for electronic payments + */ + public void setC_PaymentProcessor_ID (int C_PaymentProcessor_ID) + { + if (C_PaymentProcessor_ID < 1) + throw new IllegalArgumentException ("C_PaymentProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaymentProcessor_ID, Integer.valueOf(C_PaymentProcessor_ID)); + } + + /** Get Payment Processor. + @return Payment processor for electronic payments + */ + public int getC_PaymentProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commission %. + @param Commission + Commission stated as a percentage + */ + public void setCommission (BigDecimal Commission) + { + if (Commission == null) + throw new IllegalArgumentException ("Commission is mandatory."); + set_Value (COLUMNNAME_Commission, Commission); + } + + /** Get Commission %. + @return Commission stated as a percentage + */ + public BigDecimal getCommission () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Commission); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Cost per transaction. + @param CostPerTrx + Fixed cost per transaction + */ + public void setCostPerTrx (BigDecimal CostPerTrx) + { + if (CostPerTrx == null) + throw new IllegalArgumentException ("CostPerTrx is mandatory."); + set_Value (COLUMNNAME_CostPerTrx, CostPerTrx); + } + + /** Get Cost per transaction. + @return Fixed cost per transaction + */ + public BigDecimal getCostPerTrx () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostPerTrx); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Host Address. + @param HostAddress + Host Address URL or DNS + */ + public void setHostAddress (String HostAddress) + { + if (HostAddress == null) + throw new IllegalArgumentException ("HostAddress is mandatory."); + if (HostAddress.length() > 60) + { + log.warning("Length > 60 - truncated"); + HostAddress = HostAddress.substring(0, 59); + } + set_Value (COLUMNNAME_HostAddress, HostAddress); + } + + /** Get Host Address. + @return Host Address URL or DNS + */ + public String getHostAddress () + { + return (String)get_Value(COLUMNNAME_HostAddress); + } + + /** Set Host port. + @param HostPort + Host Communication Port + */ + public void setHostPort (int HostPort) + { + set_Value (COLUMNNAME_HostPort, Integer.valueOf(HostPort)); + } + + /** Get Host port. + @return Host Communication Port + */ + public int getHostPort () + { + Integer ii = (Integer)get_Value(COLUMNNAME_HostPort); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Minimum Amt. + @param MinimumAmt + Minumum Amout in Document Currency + */ + public void setMinimumAmt (BigDecimal MinimumAmt) + { + set_Value (COLUMNNAME_MinimumAmt, MinimumAmt); + } + + /** Get Minimum Amt. + @return Minumum Amout in Document Currency + */ + public BigDecimal getMinimumAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinimumAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Partner ID. + @param PartnerID + Partner ID or Account for the Payment Processor + */ + public void setPartnerID (String PartnerID) + { + if (PartnerID != null && PartnerID.length() > 60) + { + log.warning("Length > 60 - truncated"); + PartnerID = PartnerID.substring(0, 59); + } + set_Value (COLUMNNAME_PartnerID, PartnerID); + } + + /** Get Partner ID. + @return Partner ID or Account for the Payment Processor + */ + public String getPartnerID () + { + return (String)get_Value(COLUMNNAME_PartnerID); + } + + /** Set Password. + @param Password + Password of any length (case sensitive) + */ + public void setPassword (String Password) + { + if (Password == null) + throw new IllegalArgumentException ("Password is mandatory."); + if (Password.length() > 60) + { + log.warning("Length > 60 - truncated"); + Password = Password.substring(0, 59); + } + set_Value (COLUMNNAME_Password, Password); + } + + /** Get Password. + @return Password of any length (case sensitive) + */ + public String getPassword () + { + return (String)get_Value(COLUMNNAME_Password); + } + + /** Set Payment Processor Class. + @param PayProcessorClass + Payment Processor Java Class + */ + public void setPayProcessorClass (String PayProcessorClass) + { + if (PayProcessorClass != null && PayProcessorClass.length() > 60) + { + log.warning("Length > 60 - truncated"); + PayProcessorClass = PayProcessorClass.substring(0, 59); + } + set_Value (COLUMNNAME_PayProcessorClass, PayProcessorClass); + } + + /** Get Payment Processor Class. + @return Payment Processor Java Class + */ + public String getPayProcessorClass () + { + return (String)get_Value(COLUMNNAME_PayProcessorClass); + } + + /** Set Proxy address. + @param ProxyAddress + Address of your proxy server + */ + public void setProxyAddress (String ProxyAddress) + { + if (ProxyAddress != null && ProxyAddress.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProxyAddress = ProxyAddress.substring(0, 59); + } + set_Value (COLUMNNAME_ProxyAddress, ProxyAddress); + } + + /** Get Proxy address. + @return Address of your proxy server + */ + public String getProxyAddress () + { + return (String)get_Value(COLUMNNAME_ProxyAddress); + } + + /** Set Proxy logon. + @param ProxyLogon + Logon of your proxy server + */ + public void setProxyLogon (String ProxyLogon) + { + if (ProxyLogon != null && ProxyLogon.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProxyLogon = ProxyLogon.substring(0, 59); + } + set_Value (COLUMNNAME_ProxyLogon, ProxyLogon); + } + + /** Get Proxy logon. + @return Logon of your proxy server + */ + public String getProxyLogon () + { + return (String)get_Value(COLUMNNAME_ProxyLogon); + } + + /** Set Proxy password. + @param ProxyPassword + Password of your proxy server + */ + public void setProxyPassword (String ProxyPassword) + { + if (ProxyPassword != null && ProxyPassword.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProxyPassword = ProxyPassword.substring(0, 59); + } + set_Value (COLUMNNAME_ProxyPassword, ProxyPassword); + } + + /** Get Proxy password. + @return Password of your proxy server + */ + public String getProxyPassword () + { + return (String)get_Value(COLUMNNAME_ProxyPassword); + } + + /** Set Proxy port. + @param ProxyPort + Port of your proxy server + */ + public void setProxyPort (int ProxyPort) + { + set_Value (COLUMNNAME_ProxyPort, Integer.valueOf(ProxyPort)); + } + + /** Get Proxy port. + @return Port of your proxy server + */ + public int getProxyPort () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ProxyPort); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Require CreditCard Verification Code. + @param RequireVV + Require 3/4 digit Credit Verification Code + */ + public void setRequireVV (boolean RequireVV) + { + set_Value (COLUMNNAME_RequireVV, Boolean.valueOf(RequireVV)); + } + + /** Get Require CreditCard Verification Code. + @return Require 3/4 digit Credit Verification Code + */ + public boolean isRequireVV () + { + Object oo = get_Value(COLUMNNAME_RequireVV); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set User ID. + @param UserID + User ID or account number + */ + public void setUserID (String UserID) + { + if (UserID == null) + throw new IllegalArgumentException ("UserID is mandatory."); + if (UserID.length() > 60) + { + log.warning("Length > 60 - truncated"); + UserID = UserID.substring(0, 59); + } + set_Value (COLUMNNAME_UserID, UserID); + } + + /** Get User ID. + @return User ID or account number + */ + public String getUserID () + { + return (String)get_Value(COLUMNNAME_UserID); + } + + /** Set Vendor ID. + @param VendorID + Vendor ID for the Payment Processor + */ + public void setVendorID (String VendorID) + { + if (VendorID != null && VendorID.length() > 60) + { + log.warning("Length > 60 - truncated"); + VendorID = VendorID.substring(0, 59); + } + set_Value (COLUMNNAME_VendorID, VendorID); + } + + /** Get Vendor ID. + @return Vendor ID for the Payment Processor + */ + public String getVendorID () + { + return (String)get_Value(COLUMNNAME_VendorID); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PaymentTerm.java b/base/src/org/compiere/model/X_C_PaymentTerm.java index 518f2c905c..fb3ed196f1 100644 --- a/base/src/org/compiere/model/X_C_PaymentTerm.java +++ b/base/src/org/compiere/model/X_C_PaymentTerm.java @@ -1,504 +1,562 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PaymentTerm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PaymentTerm extends PO + +/** Generated Model for C_PaymentTerm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PaymentTerm extends PO implements I_C_PaymentTerm, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PaymentTerm_ID id -@param trxName transaction -*/ -public X_C_PaymentTerm (Properties ctx, int C_PaymentTerm_ID, String trxName) -{ -super (ctx, C_PaymentTerm_ID, trxName); -/** if (C_PaymentTerm_ID == 0) -{ -setAfterDelivery (false); -setC_PaymentTerm_ID (0); -setDiscount (Env.ZERO); -setDiscount2 (Env.ZERO); -setDiscountDays (0); -setDiscountDays2 (0); -setGraceDays (0); -setIsDueFixed (false); -setIsValid (false); -setName (null); -setNetDays (0); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PaymentTerm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PaymentTerm */ -public static final String Table_Name="C_PaymentTerm"; - -/** AD_Table_ID=113 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PaymentTerm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set After Delivery. -@param AfterDelivery Due after delivery rather than after invoicing */ -public void setAfterDelivery (boolean AfterDelivery) -{ -set_Value ("AfterDelivery", Boolean.valueOf(AfterDelivery)); -} -/** Get After Delivery. -@return Due after delivery rather than after invoicing */ -public boolean isAfterDelivery() -{ -Object oo = get_Value("AfterDelivery"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AfterDelivery */ -public static final String COLUMNNAME_AfterDelivery = "AfterDelivery"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID < 1) throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); -set_ValueNoCheck ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Discount %. -@param Discount Discount in percent */ -public void setDiscount (BigDecimal Discount) -{ -if (Discount == null) throw new IllegalArgumentException ("Discount is mandatory."); -set_Value ("Discount", Discount); -} -/** Get Discount %. -@return Discount in percent */ -public BigDecimal getDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Discount */ -public static final String COLUMNNAME_Discount = "Discount"; -/** Set Discount 2 %. -@param Discount2 Discount in percent */ -public void setDiscount2 (BigDecimal Discount2) -{ -if (Discount2 == null) throw new IllegalArgumentException ("Discount2 is mandatory."); -set_Value ("Discount2", Discount2); -} -/** Get Discount 2 %. -@return Discount in percent */ -public BigDecimal getDiscount2() -{ -BigDecimal bd = (BigDecimal)get_Value("Discount2"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Discount2 */ -public static final String COLUMNNAME_Discount2 = "Discount2"; -/** Set Discount Days. -@param DiscountDays Number of days from invoice date to be eligible for discount */ -public void setDiscountDays (int DiscountDays) -{ -set_Value ("DiscountDays", Integer.valueOf(DiscountDays)); -} -/** Get Discount Days. -@return Number of days from invoice date to be eligible for discount */ -public int getDiscountDays() -{ -Integer ii = (Integer)get_Value("DiscountDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DiscountDays */ -public static final String COLUMNNAME_DiscountDays = "DiscountDays"; -/** Set Discount Days 2. -@param DiscountDays2 Number of days from invoice date to be eligible for discount */ -public void setDiscountDays2 (int DiscountDays2) -{ -set_Value ("DiscountDays2", Integer.valueOf(DiscountDays2)); -} -/** Get Discount Days 2. -@return Number of days from invoice date to be eligible for discount */ -public int getDiscountDays2() -{ -Integer ii = (Integer)get_Value("DiscountDays2"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DiscountDays2 */ -public static final String COLUMNNAME_DiscountDays2 = "DiscountDays2"; -/** Set Document Note. -@param DocumentNote Additional information for a Document */ -public void setDocumentNote (String DocumentNote) -{ -if (DocumentNote != null && DocumentNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DocumentNote = DocumentNote.substring(0,1999); -} -set_Value ("DocumentNote", DocumentNote); -} -/** Get Document Note. -@return Additional information for a Document */ -public String getDocumentNote() -{ -return (String)get_Value("DocumentNote"); -} -/** Column name DocumentNote */ -public static final String COLUMNNAME_DocumentNote = "DocumentNote"; -/** Set Fix month cutoff. -@param FixMonthCutoff Last day to include for next due date */ -public void setFixMonthCutoff (int FixMonthCutoff) -{ -set_Value ("FixMonthCutoff", Integer.valueOf(FixMonthCutoff)); -} -/** Get Fix month cutoff. -@return Last day to include for next due date */ -public int getFixMonthCutoff() -{ -Integer ii = (Integer)get_Value("FixMonthCutoff"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FixMonthCutoff */ -public static final String COLUMNNAME_FixMonthCutoff = "FixMonthCutoff"; -/** Set Fix month day. -@param FixMonthDay Day of the month of the due date */ -public void setFixMonthDay (int FixMonthDay) -{ -set_Value ("FixMonthDay", Integer.valueOf(FixMonthDay)); -} -/** Get Fix month day. -@return Day of the month of the due date */ -public int getFixMonthDay() -{ -Integer ii = (Integer)get_Value("FixMonthDay"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FixMonthDay */ -public static final String COLUMNNAME_FixMonthDay = "FixMonthDay"; -/** Set Fix month offset. -@param FixMonthOffset Number of months (0=same, 1=following) */ -public void setFixMonthOffset (int FixMonthOffset) -{ -set_Value ("FixMonthOffset", Integer.valueOf(FixMonthOffset)); -} -/** Get Fix month offset. -@return Number of months (0=same, 1=following) */ -public int getFixMonthOffset() -{ -Integer ii = (Integer)get_Value("FixMonthOffset"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name FixMonthOffset */ -public static final String COLUMNNAME_FixMonthOffset = "FixMonthOffset"; -/** Set Grace Days. -@param GraceDays Days after due date to send first dunning letter */ -public void setGraceDays (int GraceDays) -{ -set_Value ("GraceDays", Integer.valueOf(GraceDays)); -} -/** Get Grace Days. -@return Days after due date to send first dunning letter */ -public int getGraceDays() -{ -Integer ii = (Integer)get_Value("GraceDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GraceDays */ -public static final String COLUMNNAME_GraceDays = "GraceDays"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Fixed due date. -@param IsDueFixed Payment is due on a fixed date */ -public void setIsDueFixed (boolean IsDueFixed) -{ -set_Value ("IsDueFixed", Boolean.valueOf(IsDueFixed)); -} -/** Get Fixed due date. -@return Payment is due on a fixed date */ -public boolean isDueFixed() -{ -Object oo = get_Value("IsDueFixed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDueFixed */ -public static final String COLUMNNAME_IsDueFixed = "IsDueFixed"; -/** Set Next Business Day. -@param IsNextBusinessDay Payment due on the next business day */ -public void setIsNextBusinessDay (boolean IsNextBusinessDay) -{ -set_Value ("IsNextBusinessDay", Boolean.valueOf(IsNextBusinessDay)); -} -/** Get Next Business Day. -@return Payment due on the next business day */ -public boolean isNextBusinessDay() -{ -Object oo = get_Value("IsNextBusinessDay"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsNextBusinessDay */ -public static final String COLUMNNAME_IsNextBusinessDay = "IsNextBusinessDay"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PaymentTerm (Properties ctx, int C_PaymentTerm_ID, String trxName) + { + super (ctx, C_PaymentTerm_ID, trxName); + /** if (C_PaymentTerm_ID == 0) { setAfterDelivery (false); + setC_PaymentTerm_ID (0); + setDiscount (Env.ZERO); + setDiscount2 (Env.ZERO); + setDiscountDays (0); + setDiscountDays2 (0); + setGraceDays (0); + setIsDueFixed (false); + setIsValid (false); + setName (null); + setNetDays (0); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_PaymentTerm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PaymentTerm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set After Delivery. + @param AfterDelivery + Due after delivery rather than after invoicing + */ + public void setAfterDelivery (boolean AfterDelivery) + { + set_Value (COLUMNNAME_AfterDelivery, Boolean.valueOf(AfterDelivery)); + } + + /** Get After Delivery. + @return Due after delivery rather than after invoicing + */ + public boolean isAfterDelivery () + { + Object oo = get_Value(COLUMNNAME_AfterDelivery); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Discount %. + @param Discount + Discount in percent + */ + public void setDiscount (BigDecimal Discount) + { + if (Discount == null) + throw new IllegalArgumentException ("Discount is mandatory."); + set_Value (COLUMNNAME_Discount, Discount); + } + + /** Get Discount %. + @return Discount in percent + */ + public BigDecimal getDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Discount 2 %. + @param Discount2 + Discount in percent + */ + public void setDiscount2 (BigDecimal Discount2) + { + if (Discount2 == null) + throw new IllegalArgumentException ("Discount2 is mandatory."); + set_Value (COLUMNNAME_Discount2, Discount2); + } + + /** Get Discount 2 %. + @return Discount in percent + */ + public BigDecimal getDiscount2 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount2); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Discount Days. + @param DiscountDays + Number of days from invoice date to be eligible for discount + */ + public void setDiscountDays (int DiscountDays) + { + set_Value (COLUMNNAME_DiscountDays, Integer.valueOf(DiscountDays)); + } + + /** Get Discount Days. + @return Number of days from invoice date to be eligible for discount + */ + public int getDiscountDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DiscountDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Discount Days 2. + @param DiscountDays2 + Number of days from invoice date to be eligible for discount + */ + public void setDiscountDays2 (int DiscountDays2) + { + set_Value (COLUMNNAME_DiscountDays2, Integer.valueOf(DiscountDays2)); + } + + /** Get Discount Days 2. + @return Number of days from invoice date to be eligible for discount + */ + public int getDiscountDays2 () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DiscountDays2); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 1999); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + /** Set Fix month cutoff. + @param FixMonthCutoff + Last day to include for next due date + */ + public void setFixMonthCutoff (int FixMonthCutoff) + { + set_Value (COLUMNNAME_FixMonthCutoff, Integer.valueOf(FixMonthCutoff)); + } + + /** Get Fix month cutoff. + @return Last day to include for next due date + */ + public int getFixMonthCutoff () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FixMonthCutoff); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Fix month day. + @param FixMonthDay + Day of the month of the due date + */ + public void setFixMonthDay (int FixMonthDay) + { + set_Value (COLUMNNAME_FixMonthDay, Integer.valueOf(FixMonthDay)); + } + + /** Get Fix month day. + @return Day of the month of the due date + */ + public int getFixMonthDay () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FixMonthDay); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Fix month offset. + @param FixMonthOffset + Number of months (0=same, 1=following) + */ + public void setFixMonthOffset (int FixMonthOffset) + { + set_Value (COLUMNNAME_FixMonthOffset, Integer.valueOf(FixMonthOffset)); + } + + /** Get Fix month offset. + @return Number of months (0=same, 1=following) + */ + public int getFixMonthOffset () + { + Integer ii = (Integer)get_Value(COLUMNNAME_FixMonthOffset); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Grace Days. + @param GraceDays + Days after due date to send first dunning letter + */ + public void setGraceDays (int GraceDays) + { + set_Value (COLUMNNAME_GraceDays, Integer.valueOf(GraceDays)); + } + + /** Get Grace Days. + @return Days after due date to send first dunning letter + */ + public int getGraceDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GraceDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Fixed due date. + @param IsDueFixed + Payment is due on a fixed date + */ + public void setIsDueFixed (boolean IsDueFixed) + { + set_Value (COLUMNNAME_IsDueFixed, Boolean.valueOf(IsDueFixed)); + } + + /** Get Fixed due date. + @return Payment is due on a fixed date + */ + public boolean isDueFixed () + { + Object oo = get_Value(COLUMNNAME_IsDueFixed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Next Business Day. + @param IsNextBusinessDay + Payment due on the next business day + */ + public void setIsNextBusinessDay (boolean IsNextBusinessDay) + { + set_Value (COLUMNNAME_IsNextBusinessDay, Boolean.valueOf(IsNextBusinessDay)); + } + + /** Get Next Business Day. + @return Payment due on the next business day + */ + public boolean isNextBusinessDay () + { + Object oo = get_Value(COLUMNNAME_IsNextBusinessDay); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** NetDay AD_Reference_ID=167 */ -public static final int NETDAY_AD_Reference_ID=167; -/** Monday = 1 */ -public static final String NETDAY_Monday = "1"; -/** Tuesday = 2 */ -public static final String NETDAY_Tuesday = "2"; -/** Wednesday = 3 */ -public static final String NETDAY_Wednesday = "3"; -/** Thursday = 4 */ -public static final String NETDAY_Thursday = "4"; -/** Friday = 5 */ -public static final String NETDAY_Friday = "5"; -/** Saturday = 6 */ -public static final String NETDAY_Saturday = "6"; -/** Sunday = 7 */ +public static final int NETDAY_AD_Reference_ID=167;/** Monday = 1 */ +public static final String NETDAY_Monday = "1";/** Tuesday = 2 */ +public static final String NETDAY_Tuesday = "2";/** Wednesday = 3 */ +public static final String NETDAY_Wednesday = "3";/** Thursday = 4 */ +public static final String NETDAY_Thursday = "4";/** Friday = 5 */ +public static final String NETDAY_Friday = "5";/** Saturday = 6 */ +public static final String NETDAY_Saturday = "6";/** Sunday = 7 */ public static final String NETDAY_Sunday = "7"; -/** Set Net Day. -@param NetDay Day when payment is due net */ -public void setNetDay (String NetDay) -{ -if (NetDay == null || NetDay.equals("1") || NetDay.equals("2") || NetDay.equals("3") || NetDay.equals("4") || NetDay.equals("5") || NetDay.equals("6") || NetDay.equals("7")); - else throw new IllegalArgumentException ("NetDay Invalid value - " + NetDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); -if (NetDay != null && NetDay.length() > 1) -{ -log.warning("Length > 1 - truncated"); -NetDay = NetDay.substring(0,0); -} -set_Value ("NetDay", NetDay); -} -/** Get Net Day. -@return Day when payment is due net */ -public String getNetDay() -{ -return (String)get_Value("NetDay"); -} -/** Column name NetDay */ -public static final String COLUMNNAME_NetDay = "NetDay"; -/** Set Net Days. -@param NetDays Net Days in which payment is due */ -public void setNetDays (int NetDays) -{ -set_Value ("NetDays", Integer.valueOf(NetDays)); -} -/** Get Net Days. -@return Net Days in which payment is due */ -public int getNetDays() -{ -Integer ii = (Integer)get_Value("NetDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NetDays */ -public static final String COLUMNNAME_NetDays = "NetDays"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Net Day. + @param NetDay + Day when payment is due net + */ + public void setNetDay (String NetDay) + { +if (NetDay == null || NetDay.equals("1") || NetDay.equals("2") || NetDay.equals("3") || NetDay.equals("4") || NetDay.equals("5") || NetDay.equals("6") || NetDay.equals("7")); else throw new IllegalArgumentException ("NetDay Invalid value - " + NetDay + " - Reference_ID=167 - 1 - 2 - 3 - 4 - 5 - 6 - 7"); if (NetDay != null && NetDay.length() > 1) + { + log.warning("Length > 1 - truncated"); + NetDay = NetDay.substring(0, 0); + } + set_Value (COLUMNNAME_NetDay, NetDay); + } + + /** Get Net Day. + @return Day when payment is due net + */ + public String getNetDay () + { + return (String)get_Value(COLUMNNAME_NetDay); + } + + /** Set Net Days. + @param NetDays + Net Days in which payment is due + */ + public void setNetDays (int NetDays) + { + set_Value (COLUMNNAME_NetDays, Integer.valueOf(NetDays)); + } + + /** Get Net Days. + @return Net Days in which payment is due + */ + public int getNetDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NetDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Period.java b/base/src/org/compiere/model/X_C_Period.java index 7c98d637da..9ed8a86d4c 100644 --- a/base/src/org/compiere/model/X_C_Period.java +++ b/base/src/org/compiere/model/X_C_Period.java @@ -1,247 +1,274 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Period - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Period extends PO + +/** Generated Model for C_Period + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Period extends PO implements I_C_Period, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Period_ID id -@param trxName transaction -*/ -public X_C_Period (Properties ctx, int C_Period_ID, String trxName) -{ -super (ctx, C_Period_ID, trxName); -/** if (C_Period_ID == 0) -{ -setC_Period_ID (0); -setC_Year_ID (0); -setName (null); -setPeriodNo (0); -setPeriodType (null); // S -setStartDate (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Period (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Period */ -public static final String Table_Name="C_Period"; - -/** AD_Table_ID=145 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Period[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID < 1) throw new IllegalArgumentException ("C_Period_ID is mandatory."); -set_ValueNoCheck ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Year. -@param C_Year_ID Calendar Year */ -public void setC_Year_ID (int C_Year_ID) -{ -if (C_Year_ID < 1) throw new IllegalArgumentException ("C_Year_ID is mandatory."); -set_ValueNoCheck ("C_Year_ID", Integer.valueOf(C_Year_ID)); -} -/** Get Year. -@return Calendar Year */ -public int getC_Year_ID() -{ -Integer ii = (Integer)get_Value("C_Year_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Year_ID */ -public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; -/** Set End Date. -@param EndDate Last effective date (inclusive) */ -public void setEndDate (Timestamp EndDate) -{ -set_Value ("EndDate", EndDate); -} -/** Get End Date. -@return Last effective date (inclusive) */ -public Timestamp getEndDate() -{ -return (Timestamp)get_Value("EndDate"); -} -/** Column name EndDate */ -public static final String COLUMNNAME_EndDate = "EndDate"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Period No. -@param PeriodNo Unique Period Number */ -public void setPeriodNo (int PeriodNo) -{ -set_Value ("PeriodNo", Integer.valueOf(PeriodNo)); -} -/** Get Period No. -@return Unique Period Number */ -public int getPeriodNo() -{ -Integer ii = (Integer)get_Value("PeriodNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PeriodNo */ -public static final String COLUMNNAME_PeriodNo = "PeriodNo"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Period (Properties ctx, int C_Period_ID, String trxName) + { + super (ctx, C_Period_ID, trxName); + /** if (C_Period_ID == 0) { setC_Period_ID (0); + setC_Year_ID (0); + setName (null); + setPeriodNo (0); + setPeriodType (null); +// S + setStartDate (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_Period (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Period[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Year getI_C_Year() throws Exception + { + 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 e; + } + return result; + } + + /** Set Year. + @param C_Year_ID + Calendar Year + */ + public void setC_Year_ID (int C_Year_ID) + { + if (C_Year_ID < 1) + throw new IllegalArgumentException ("C_Year_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + } + + /** Get Year. + @return Calendar Year + */ + public int getC_Year_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Year_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set End Date. + @param EndDate + Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate) + { + set_Value (COLUMNNAME_EndDate, EndDate); + } + + /** Get End Date. + @return Last effective date (inclusive) + */ + public Timestamp getEndDate () + { + return (Timestamp)get_Value(COLUMNNAME_EndDate); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Period No. + @param PeriodNo + Unique Period Number + */ + public void setPeriodNo (int PeriodNo) + { + set_Value (COLUMNNAME_PeriodNo, Integer.valueOf(PeriodNo)); + } + + /** Get Period No. + @return Unique Period Number + */ + public int getPeriodNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PeriodNo); + if (ii == null) + return 0; + return ii.intValue(); + } /** PeriodType AD_Reference_ID=115 */ -public static final int PERIODTYPE_AD_Reference_ID=115; -/** Adjustment Period = A */ -public static final String PERIODTYPE_AdjustmentPeriod = "A"; -/** Standard Calendar Period = S */ +public static final int PERIODTYPE_AD_Reference_ID=115;/** Adjustment Period = A */ +public static final String PERIODTYPE_AdjustmentPeriod = "A";/** Standard Calendar Period = S */ public static final String PERIODTYPE_StandardCalendarPeriod = "S"; -/** Set Period Type. -@param PeriodType Period Type */ -public void setPeriodType (String PeriodType) -{ -if (PeriodType == null) throw new IllegalArgumentException ("PeriodType is mandatory"); -if (PeriodType.equals("A") || PeriodType.equals("S")); - else throw new IllegalArgumentException ("PeriodType Invalid value - " + PeriodType + " - Reference_ID=115 - A - S"); -if (PeriodType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PeriodType = PeriodType.substring(0,0); -} -set_ValueNoCheck ("PeriodType", PeriodType); -} -/** Get Period Type. -@return Period Type */ -public String getPeriodType() -{ -return (String)get_Value("PeriodType"); -} -/** Column name PeriodType */ -public static final String COLUMNNAME_PeriodType = "PeriodType"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -if (StartDate == null) throw new IllegalArgumentException ("StartDate is mandatory."); -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -} + /** Set Period Type. + @param PeriodType + Period Type + */ + public void setPeriodType (String PeriodType) + { +if (PeriodType == null) throw new IllegalArgumentException ("PeriodType is mandatory");if (PeriodType.equals("A") || PeriodType.equals("S")); else throw new IllegalArgumentException ("PeriodType Invalid value - " + PeriodType + " - Reference_ID=115 - A - S"); if (PeriodType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PeriodType = PeriodType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_PeriodType, PeriodType); + } + + /** Get Period Type. + @return Period Type + */ + public String getPeriodType () + { + return (String)get_Value(COLUMNNAME_PeriodType); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + if (StartDate == null) + throw new IllegalArgumentException ("StartDate is mandatory."); + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PeriodControl.java b/base/src/org/compiere/model/X_C_PeriodControl.java index 9a9aeb5581..8f9c9f9079 100644 --- a/base/src/org/compiere/model/X_C_PeriodControl.java +++ b/base/src/org/compiere/model/X_C_PeriodControl.java @@ -1,287 +1,266 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_PeriodControl - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_PeriodControl extends PO + +/** Generated Model for C_PeriodControl + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_PeriodControl_ID id -@param trxName transaction -*/ -public X_C_PeriodControl (Properties ctx, int C_PeriodControl_ID, String trxName) -{ -super (ctx, C_PeriodControl_ID, trxName); -/** if (C_PeriodControl_ID == 0) -{ -setC_PeriodControl_ID (0); -setC_Period_ID (0); -setDocBaseType (null); -setPeriodAction (null); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_PeriodControl (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_PeriodControl */ -public static final String Table_Name="C_PeriodControl"; - -/** AD_Table_ID=229 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_PeriodControl[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Period Control. -@param C_PeriodControl_ID Period Control */ -public void setC_PeriodControl_ID (int C_PeriodControl_ID) -{ -if (C_PeriodControl_ID < 1) throw new IllegalArgumentException ("C_PeriodControl_ID is mandatory."); -set_ValueNoCheck ("C_PeriodControl_ID", Integer.valueOf(C_PeriodControl_ID)); -} -/** Get Period Control. -@return Period Control */ -public int getC_PeriodControl_ID() -{ -Integer ii = (Integer)get_Value("C_PeriodControl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_PeriodControl_ID())); -} -/** Column name C_PeriodControl_ID */ -public static final String COLUMNNAME_C_PeriodControl_ID = "C_PeriodControl_ID"; -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID < 1) throw new IllegalArgumentException ("C_Period_ID is mandatory."); -set_ValueNoCheck ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PeriodControl (Properties ctx, int C_PeriodControl_ID, String trxName) + { + super (ctx, C_PeriodControl_ID, trxName); + /** if (C_PeriodControl_ID == 0) { setC_PeriodControl_ID (0); + setC_Period_ID (0); + setDocBaseType (null); + setPeriodAction (null); +// N +} */ + } + + /** Load Constructor */ + public X_C_PeriodControl (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_PeriodControl[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Period Control. + @param C_PeriodControl_ID Period Control */ + public void setC_PeriodControl_ID (int C_PeriodControl_ID) + { + if (C_PeriodControl_ID < 1) + throw new IllegalArgumentException ("C_PeriodControl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PeriodControl_ID, Integer.valueOf(C_PeriodControl_ID)); + } + + /** Get Period Control. +@return Period Control */ + public int getC_PeriodControl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PeriodControl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_PeriodControl_ID())); + } + + public I_C_Period getI_C_Period() throws Exception + { + 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 e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** DocBaseType AD_Reference_ID=183 */ -public static final int DOCBASETYPE_AD_Reference_ID=183; -/** AP Credit Memo = APC */ -public static final String DOCBASETYPE_APCreditMemo = "APC"; -/** AP Invoice = API */ -public static final String DOCBASETYPE_APInvoice = "API"; -/** AP Payment = APP */ -public static final String DOCBASETYPE_APPayment = "APP"; -/** AR Credit Memo = ARC */ -public static final String DOCBASETYPE_ARCreditMemo = "ARC"; -/** AR Pro Forma Invoice = ARF */ -public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; -/** AR Invoice = ARI */ -public static final String DOCBASETYPE_ARInvoice = "ARI"; -/** AR Receipt = ARR */ -public static final String DOCBASETYPE_ARReceipt = "ARR"; -/** Payment Allocation = CMA */ -public static final String DOCBASETYPE_PaymentAllocation = "CMA"; -/** Bank Statement = CMB */ -public static final String DOCBASETYPE_BankStatement = "CMB"; -/** Cash Journal = CMC */ -public static final String DOCBASETYPE_CashJournal = "CMC"; -/** GL Document = GLD */ -public static final String DOCBASETYPE_GLDocument = "GLD"; -/** GL Journal = GLJ */ -public static final String DOCBASETYPE_GLJournal = "GLJ"; -/** Material Physical Inventory = MMI */ -public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; -/** Material Movement = MMM */ -public static final String DOCBASETYPE_MaterialMovement = "MMM"; -/** Material Production = MMP */ -public static final String DOCBASETYPE_MaterialProduction = "MMP"; -/** Material Receipt = MMR */ -public static final String DOCBASETYPE_MaterialReceipt = "MMR"; -/** Material Delivery = MMS */ -public static final String DOCBASETYPE_MaterialDelivery = "MMS"; -/** Match Invoice = MXI */ -public static final String DOCBASETYPE_MatchInvoice = "MXI"; -/** Match PO = MXP */ -public static final String DOCBASETYPE_MatchPO = "MXP"; -/** Project Issue = PJI */ -public static final String DOCBASETYPE_ProjectIssue = "PJI"; -/** Purchase Order = POO */ -public static final String DOCBASETYPE_PurchaseOrder = "POO"; -/** Purchase Requisition = POR */ -public static final String DOCBASETYPE_PurchaseRequisition = "POR"; -/** Sales Order = SOO */ +public static final int DOCBASETYPE_AD_Reference_ID=183;/** AP Credit Memo = APC */ +public static final String DOCBASETYPE_APCreditMemo = "APC";/** AP Invoice = API */ +public static final String DOCBASETYPE_APInvoice = "API";/** AP Payment = APP */ +public static final String DOCBASETYPE_APPayment = "APP";/** AR Credit Memo = ARC */ +public static final String DOCBASETYPE_ARCreditMemo = "ARC";/** AR Pro Forma Invoice = ARF */ +public static final String DOCBASETYPE_ARProFormaInvoice = "ARF";/** AR Invoice = ARI */ +public static final String DOCBASETYPE_ARInvoice = "ARI";/** AR Receipt = ARR */ +public static final String DOCBASETYPE_ARReceipt = "ARR";/** Payment Allocation = CMA */ +public static final String DOCBASETYPE_PaymentAllocation = "CMA";/** Bank Statement = CMB */ +public static final String DOCBASETYPE_BankStatement = "CMB";/** Cash Journal = CMC */ +public static final String DOCBASETYPE_CashJournal = "CMC";/** GL Document = GLD */ +public static final String DOCBASETYPE_GLDocument = "GLD";/** GL Journal = GLJ */ +public static final String DOCBASETYPE_GLJournal = "GLJ";/** Material Physical Inventory = MMI */ +public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI";/** Material Movement = MMM */ +public static final String DOCBASETYPE_MaterialMovement = "MMM";/** Material Production = MMP */ +public static final String DOCBASETYPE_MaterialProduction = "MMP";/** Material Receipt = MMR */ +public static final String DOCBASETYPE_MaterialReceipt = "MMR";/** Material Delivery = MMS */ +public static final String DOCBASETYPE_MaterialDelivery = "MMS";/** Match Invoice = MXI */ +public static final String DOCBASETYPE_MatchInvoice = "MXI";/** Match PO = MXP */ +public static final String DOCBASETYPE_MatchPO = "MXP";/** Project Issue = PJI */ +public static final String DOCBASETYPE_ProjectIssue = "PJI";/** Purchase Order = POO */ +public static final String DOCBASETYPE_PurchaseOrder = "POO";/** Purchase Requisition = POR */ +public static final String DOCBASETYPE_PurchaseRequisition = "POR";/** Sales Order = SOO */ public static final String DOCBASETYPE_SalesOrder = "SOO"; -/** Set Document BaseType. -@param DocBaseType Logical type of document */ -public void setDocBaseType (String DocBaseType) -{ -if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); -if (DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); - else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); -if (DocBaseType.length() > 3) -{ -log.warning("Length > 3 - truncated"); -DocBaseType = DocBaseType.substring(0,2); -} -set_ValueNoCheck ("DocBaseType", DocBaseType); -} -/** Get Document BaseType. -@return Logical type of document */ -public String getDocBaseType() -{ -return (String)get_Value("DocBaseType"); -} -/** Column name DocBaseType */ -public static final String COLUMNNAME_DocBaseType = "DocBaseType"; + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { +if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory");if (DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); if (DocBaseType.length() > 3) + { + log.warning("Length > 3 - truncated"); + DocBaseType = DocBaseType.substring(0, 2); + } + set_ValueNoCheck (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } /** PeriodAction AD_Reference_ID=176 */ -public static final int PERIODACTION_AD_Reference_ID=176; -/** Close Period = C */ -public static final String PERIODACTION_ClosePeriod = "C"; -/** = N */ -public static final String PERIODACTION_NoAction = "N"; -/** Open Period = O */ -public static final String PERIODACTION_OpenPeriod = "O"; -/** Permanently Close Period = P */ +public static final int PERIODACTION_AD_Reference_ID=176;/** Close Period = C */ +public static final String PERIODACTION_ClosePeriod = "C";/** = N */ +public static final String PERIODACTION_NoAction = "N";/** Open Period = O */ +public static final String PERIODACTION_OpenPeriod = "O";/** Permanently Close Period = P */ public static final String PERIODACTION_PermanentlyClosePeriod = "P"; -/** Set Period Action. -@param PeriodAction Action taken for this period */ -public void setPeriodAction (String PeriodAction) -{ -if (PeriodAction == null) throw new IllegalArgumentException ("PeriodAction is mandatory"); -if (PeriodAction.equals("C") || PeriodAction.equals("N") || PeriodAction.equals("O") || PeriodAction.equals("P")); - else throw new IllegalArgumentException ("PeriodAction Invalid value - " + PeriodAction + " - Reference_ID=176 - C - N - O - P"); -if (PeriodAction.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PeriodAction = PeriodAction.substring(0,0); -} -set_Value ("PeriodAction", PeriodAction); -} -/** Get Period Action. -@return Action taken for this period */ -public String getPeriodAction() -{ -return (String)get_Value("PeriodAction"); -} -/** Column name PeriodAction */ -public static final String COLUMNNAME_PeriodAction = "PeriodAction"; + /** Set Period Action. + @param PeriodAction + Action taken for this period + */ + public void setPeriodAction (String PeriodAction) + { +if (PeriodAction == null) throw new IllegalArgumentException ("PeriodAction is mandatory");if (PeriodAction.equals("C") || PeriodAction.equals("N") || PeriodAction.equals("O") || PeriodAction.equals("P")); else throw new IllegalArgumentException ("PeriodAction Invalid value - " + PeriodAction + " - Reference_ID=176 - C - N - O - P"); if (PeriodAction.length() > 1) + { + log.warning("Length > 1 - truncated"); + PeriodAction = PeriodAction.substring(0, 0); + } + set_Value (COLUMNNAME_PeriodAction, PeriodAction); + } + + /** Get Period Action. + @return Action taken for this period + */ + public String getPeriodAction () + { + return (String)get_Value(COLUMNNAME_PeriodAction); + } /** PeriodStatus AD_Reference_ID=177 */ -public static final int PERIODSTATUS_AD_Reference_ID=177; -/** Closed = C */ -public static final String PERIODSTATUS_Closed = "C"; -/** Never opened = N */ -public static final String PERIODSTATUS_NeverOpened = "N"; -/** Open = O */ -public static final String PERIODSTATUS_Open = "O"; -/** Permanently closed = P */ +public static final int PERIODSTATUS_AD_Reference_ID=177;/** Closed = C */ +public static final String PERIODSTATUS_Closed = "C";/** Never opened = N */ +public static final String PERIODSTATUS_NeverOpened = "N";/** Open = O */ +public static final String PERIODSTATUS_Open = "O";/** Permanently closed = P */ public static final String PERIODSTATUS_PermanentlyClosed = "P"; -/** Set Period Status. -@param PeriodStatus Current state of this period */ -public void setPeriodStatus (String PeriodStatus) -{ -if (PeriodStatus == null || PeriodStatus.equals("C") || PeriodStatus.equals("N") || PeriodStatus.equals("O") || PeriodStatus.equals("P")); - else throw new IllegalArgumentException ("PeriodStatus Invalid value - " + PeriodStatus + " - Reference_ID=177 - C - N - O - P"); -if (PeriodStatus != null && PeriodStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PeriodStatus = PeriodStatus.substring(0,0); -} -set_ValueNoCheck ("PeriodStatus", PeriodStatus); -} -/** Get Period Status. -@return Current state of this period */ -public String getPeriodStatus() -{ -return (String)get_Value("PeriodStatus"); -} -/** Column name PeriodStatus */ -public static final String COLUMNNAME_PeriodStatus = "PeriodStatus"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Period Status. + @param PeriodStatus + Current state of this period + */ + public void setPeriodStatus (String PeriodStatus) + { +if (PeriodStatus == null || PeriodStatus.equals("C") || PeriodStatus.equals("N") || PeriodStatus.equals("O") || PeriodStatus.equals("P")); else throw new IllegalArgumentException ("PeriodStatus Invalid value - " + PeriodStatus + " - Reference_ID=177 - C - N - O - P"); if (PeriodStatus != null && PeriodStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + PeriodStatus = PeriodStatus.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_PeriodStatus, PeriodStatus); + } + + /** Get Period Status. + @return Current state of this period + */ + public String getPeriodStatus () + { + return (String)get_Value(COLUMNNAME_PeriodStatus); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Phase.java b/base/src/org/compiere/model/X_C_Phase.java index 3bf698c91c..128184aed9 100644 --- a/base/src/org/compiere/model/X_C_Phase.java +++ b/base/src/org/compiere/model/X_C_Phase.java @@ -1,243 +1,279 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Phase - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Phase extends PO + +/** Generated Model for C_Phase + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Phase extends PO implements I_C_Phase, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Phase_ID id -@param trxName transaction -*/ -public X_C_Phase (Properties ctx, int C_Phase_ID, String trxName) -{ -super (ctx, C_Phase_ID, trxName); -/** if (C_Phase_ID == 0) -{ -setC_Phase_ID (0); -setC_ProjectType_ID (0); -setName (null); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_Phase WHERE C_ProjectType_ID=@C_ProjectType_ID@ -setStandardQty (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Phase (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Phase */ -public static final String Table_Name="C_Phase"; - -/** AD_Table_ID=577 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Phase[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Standard Phase. -@param C_Phase_ID Standard Phase of the Project Type */ -public void setC_Phase_ID (int C_Phase_ID) -{ -if (C_Phase_ID < 1) throw new IllegalArgumentException ("C_Phase_ID is mandatory."); -set_ValueNoCheck ("C_Phase_ID", Integer.valueOf(C_Phase_ID)); -} -/** Get Standard Phase. -@return Standard Phase of the Project Type */ -public int getC_Phase_ID() -{ -Integer ii = (Integer)get_Value("C_Phase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Phase_ID */ -public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; -/** Set Project Type. -@param C_ProjectType_ID Type of the project */ -public void setC_ProjectType_ID (int C_ProjectType_ID) -{ -if (C_ProjectType_ID < 1) throw new IllegalArgumentException ("C_ProjectType_ID is mandatory."); -set_ValueNoCheck ("C_ProjectType_ID", Integer.valueOf(C_ProjectType_ID)); -} -/** Get Project Type. -@return Type of the project */ -public int getC_ProjectType_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectType_ID */ -public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Standard Quantity. -@param StandardQty Standard Quantity */ -public void setStandardQty (BigDecimal StandardQty) -{ -if (StandardQty == null) throw new IllegalArgumentException ("StandardQty is mandatory."); -set_Value ("StandardQty", StandardQty); -} -/** Get Standard Quantity. -@return Standard Quantity */ -public BigDecimal getStandardQty() -{ -BigDecimal bd = (BigDecimal)get_Value("StandardQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name StandardQty */ -public static final String COLUMNNAME_StandardQty = "StandardQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Phase (Properties ctx, int C_Phase_ID, String trxName) + { + super (ctx, C_Phase_ID, trxName); + /** if (C_Phase_ID == 0) { setC_Phase_ID (0); + setC_ProjectType_ID (0); + setName (null); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_Phase WHERE C_ProjectType_ID=@C_ProjectType_ID@ + setStandardQty (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_C_Phase (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Phase[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Standard Phase. + @param C_Phase_ID + Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID) + { + if (C_Phase_ID < 1) + throw new IllegalArgumentException ("C_Phase_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + } + + /** Get Standard Phase. + @return Standard Phase of the Project Type + */ + public int getC_Phase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Phase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectType getI_C_ProjectType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Type. + @param C_ProjectType_ID + Type of the project + */ + public void setC_ProjectType_ID (int C_ProjectType_ID) + { + if (C_ProjectType_ID < 1) + throw new IllegalArgumentException ("C_ProjectType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); + } + + /** Get Project Type. + @return Type of the project + */ + public int getC_ProjectType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Standard Quantity. + @param StandardQty + Standard Quantity + */ + public void setStandardQty (BigDecimal StandardQty) + { + if (StandardQty == null) + throw new IllegalArgumentException ("StandardQty is mandatory."); + set_Value (COLUMNNAME_StandardQty, StandardQty); + } + + /** Get Standard Quantity. + @return Standard Quantity + */ + public BigDecimal getStandardQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_StandardQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Project.java b/base/src/org/compiere/model/X_C_Project.java index e6ee51d21f..72b1ec6fa5 100644 --- a/base/src/org/compiere/model/X_C_Project.java +++ b/base/src/org/compiere/model/X_C_Project.java @@ -1,847 +1,1087 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Project - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Project extends PO + +/** Generated Model for C_Project + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Project extends PO implements I_C_Project, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Project_ID id -@param trxName transaction -*/ -public X_C_Project (Properties ctx, int C_Project_ID, String trxName) -{ -super (ctx, C_Project_ID, trxName); -/** if (C_Project_ID == 0) -{ -setC_Currency_ID (0); -setC_Project_ID (0); -setCommittedAmt (Env.ZERO); -setCommittedQty (Env.ZERO); -setInvoicedAmt (Env.ZERO); -setInvoicedQty (Env.ZERO); -setIsCommitCeiling (false); -setIsCommitment (false); -setIsSummary (false); -setName (null); -setPlannedAmt (Env.ZERO); -setPlannedMarginAmt (Env.ZERO); -setPlannedQty (Env.ZERO); -setProcessed (false); -setProjInvoiceRule (null); // - -setProjectBalanceAmt (Env.ZERO); -setProjectLineLevel (null); // P -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Project (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Project */ -public static final String Table_Name="C_Project"; - -/** AD_Table_ID=203 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Project[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Project (Properties ctx, int C_Project_ID, String trxName) + { + super (ctx, C_Project_ID, trxName); + /** if (C_Project_ID == 0) { setC_Currency_ID (0); + setC_Project_ID (0); + setCommittedAmt (Env.ZERO); + setCommittedQty (Env.ZERO); + setInvoicedAmt (Env.ZERO); + setInvoicedQty (Env.ZERO); + setIsCommitCeiling (false); + setIsCommitment (false); + setIsSummary (false); + setName (null); + setPlannedAmt (Env.ZERO); + setPlannedMarginAmt (Env.ZERO); + setPlannedQty (Env.ZERO); + setProcessed (false); + setProjInvoiceRule (null); +// - + setProjectBalanceAmt (Env.ZERO); + setProjectLineLevel (null); +// P + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_Project (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Project[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_BPartnerSR_ID AD_Reference_ID=353 */ public static final int C_BPARTNERSR_ID_AD_Reference_ID=353; -/** Set BPartner (Agent). -@param C_BPartnerSR_ID Business Partner (Agent or Sales Rep) */ -public void setC_BPartnerSR_ID (int C_BPartnerSR_ID) -{ -if (C_BPartnerSR_ID <= 0) set_Value ("C_BPartnerSR_ID", null); - else -set_Value ("C_BPartnerSR_ID", Integer.valueOf(C_BPartnerSR_ID)); -} -/** Get BPartner (Agent). -@return Business Partner (Agent or Sales Rep) */ -public int getC_BPartnerSR_ID() -{ -Integer ii = (Integer)get_Value("C_BPartnerSR_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartnerSR_ID */ -public static final String COLUMNNAME_C_BPartnerSR_ID = "C_BPartnerSR_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID <= 0) set_Value ("C_PaymentTerm_ID", null); - else -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Standard Phase. -@param C_Phase_ID Standard Phase of the Project Type */ -public void setC_Phase_ID (int C_Phase_ID) -{ -if (C_Phase_ID <= 0) set_Value ("C_Phase_ID", null); - else -set_Value ("C_Phase_ID", Integer.valueOf(C_Phase_ID)); -} -/** Get Standard Phase. -@return Standard Phase of the Project Type */ -public int getC_Phase_ID() -{ -Integer ii = (Integer)get_Value("C_Phase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Phase_ID */ -public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; -/** Set Project Type. -@param C_ProjectType_ID Type of the project */ -public void setC_ProjectType_ID (String C_ProjectType_ID) -{ -if (C_ProjectType_ID != null && C_ProjectType_ID.length() > 22) -{ -log.warning("Length > 22 - truncated"); -C_ProjectType_ID = C_ProjectType_ID.substring(0,21); -} -set_Value ("C_ProjectType_ID", C_ProjectType_ID); -} -/** Get Project Type. -@return Type of the project */ -public String getC_ProjectType_ID() -{ -return (String)get_Value("C_ProjectType_ID"); -} -/** Column name C_ProjectType_ID */ -public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID < 1) throw new IllegalArgumentException ("C_Project_ID is mandatory."); -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Committed Amount. -@param CommittedAmt The (legal) commitment amount */ -public void setCommittedAmt (BigDecimal CommittedAmt) -{ -if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory."); -set_Value ("CommittedAmt", CommittedAmt); -} -/** Get Committed Amount. -@return The (legal) commitment amount */ -public BigDecimal getCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedAmt */ -public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; -/** Set Committed Quantity. -@param CommittedQty The (legal) commitment Quantity */ -public void setCommittedQty (BigDecimal CommittedQty) -{ -if (CommittedQty == null) throw new IllegalArgumentException ("CommittedQty is mandatory."); -set_Value ("CommittedQty", CommittedQty); -} -/** Get Committed Quantity. -@return The (legal) commitment Quantity */ -public BigDecimal getCommittedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedQty */ -public static final String COLUMNNAME_CommittedQty = "CommittedQty"; -/** Set Copy From. -@param CopyFrom Copy From Record */ -public void setCopyFrom (String CopyFrom) -{ -if (CopyFrom != null && CopyFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CopyFrom = CopyFrom.substring(0,0); -} -set_Value ("CopyFrom", CopyFrom); -} -/** Get Copy From. -@return Copy From Record */ -public String getCopyFrom() -{ -return (String)get_Value("CopyFrom"); -} -/** Column name CopyFrom */ -public static final String COLUMNNAME_CopyFrom = "CopyFrom"; -/** Set Contract Date. -@param DateContract The (planned) effective date of this document. */ -public void setDateContract (Timestamp DateContract) -{ -set_Value ("DateContract", DateContract); -} -/** Get Contract Date. -@return The (planned) effective date of this document. */ -public Timestamp getDateContract() -{ -return (Timestamp)get_Value("DateContract"); -} -/** Column name DateContract */ -public static final String COLUMNNAME_DateContract = "DateContract"; -/** Set Finish Date. -@param DateFinish Finish or (planned) completion date */ -public void setDateFinish (Timestamp DateFinish) -{ -set_Value ("DateFinish", DateFinish); -} -/** Get Finish Date. -@return Finish or (planned) completion date */ -public Timestamp getDateFinish() -{ -return (Timestamp)get_Value("DateFinish"); -} -/** Column name DateFinish */ -public static final String COLUMNNAME_DateFinish = "DateFinish"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Generate To. -@param GenerateTo Generate To */ -public void setGenerateTo (String GenerateTo) -{ -if (GenerateTo != null && GenerateTo.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GenerateTo = GenerateTo.substring(0,0); -} -set_Value ("GenerateTo", GenerateTo); -} -/** Get Generate To. -@return Generate To */ -public String getGenerateTo() -{ -return (String)get_Value("GenerateTo"); -} -/** Column name GenerateTo */ -public static final String COLUMNNAME_GenerateTo = "GenerateTo"; -/** Set Invoiced Amount. -@param InvoicedAmt The amount invoiced */ -public void setInvoicedAmt (BigDecimal InvoicedAmt) -{ -if (InvoicedAmt == null) throw new IllegalArgumentException ("InvoicedAmt is mandatory."); -set_ValueNoCheck ("InvoicedAmt", InvoicedAmt); -} -/** Get Invoiced Amount. -@return The amount invoiced */ -public BigDecimal getInvoicedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoicedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoicedAmt */ -public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; -/** Set Quantity Invoiced . -@param InvoicedQty The quantity invoiced */ -public void setInvoicedQty (BigDecimal InvoicedQty) -{ -if (InvoicedQty == null) throw new IllegalArgumentException ("InvoicedQty is mandatory."); -set_ValueNoCheck ("InvoicedQty", InvoicedQty); -} -/** Get Quantity Invoiced . -@return The quantity invoiced */ -public BigDecimal getInvoicedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoicedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoicedQty */ -public static final String COLUMNNAME_InvoicedQty = "InvoicedQty"; -/** Set Commitment is Ceiling. -@param IsCommitCeiling The commitment amount/quantity is the chargeable ceiling */ -public void setIsCommitCeiling (boolean IsCommitCeiling) -{ -set_Value ("IsCommitCeiling", Boolean.valueOf(IsCommitCeiling)); -} -/** Get Commitment is Ceiling. -@return The commitment amount/quantity is the chargeable ceiling */ -public boolean isCommitCeiling() -{ -Object oo = get_Value("IsCommitCeiling"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCommitCeiling */ -public static final String COLUMNNAME_IsCommitCeiling = "IsCommitCeiling"; -/** Set Commitment. -@param IsCommitment Is this document a (legal) commitment? */ -public void setIsCommitment (boolean IsCommitment) -{ -set_Value ("IsCommitment", Boolean.valueOf(IsCommitment)); -} -/** Get Commitment. -@return Is this document a (legal) commitment? */ -public boolean isCommitment() -{ -Object oo = get_Value("IsCommitment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCommitment */ -public static final String COLUMNNAME_IsCommitment = "IsCommitment"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Price List Version. -@param M_PriceList_Version_ID Identifies a unique instance of a Price List */ -public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) -{ -if (M_PriceList_Version_ID <= 0) set_Value ("M_PriceList_Version_ID", null); - else -set_Value ("M_PriceList_Version_ID", Integer.valueOf(M_PriceList_Version_ID)); -} -/** Get Price List Version. -@return Identifies a unique instance of a Price List */ -public int getM_PriceList_Version_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_Version_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_Version_ID */ -public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID <= 0) set_Value ("M_Warehouse_ID", null); - else -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Note = Note.substring(0,1999); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Order Reference. -@param POReference Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public void setPOReference (String POReference) -{ -if (POReference != null && POReference.length() > 20) -{ -log.warning("Length > 20 - truncated"); -POReference = POReference.substring(0,19); -} -set_Value ("POReference", POReference); -} -/** Get Order Reference. -@return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public String getPOReference() -{ -return (String)get_Value("POReference"); -} -/** Column name POReference */ -public static final String COLUMNNAME_POReference = "POReference"; -/** Set Planned Amount. -@param PlannedAmt Planned amount for this project */ -public void setPlannedAmt (BigDecimal PlannedAmt) -{ -if (PlannedAmt == null) throw new IllegalArgumentException ("PlannedAmt is mandatory."); -set_Value ("PlannedAmt", PlannedAmt); -} -/** Get Planned Amount. -@return Planned amount for this project */ -public BigDecimal getPlannedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedAmt */ -public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; -/** Set Planned Margin. -@param PlannedMarginAmt Project's planned margin amount */ -public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) -{ -if (PlannedMarginAmt == null) throw new IllegalArgumentException ("PlannedMarginAmt is mandatory."); -set_Value ("PlannedMarginAmt", PlannedMarginAmt); -} -/** Get Planned Margin. -@return Project's planned margin amount */ -public BigDecimal getPlannedMarginAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedMarginAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedMarginAmt */ -public static final String COLUMNNAME_PlannedMarginAmt = "PlannedMarginAmt"; -/** Set Planned Quantity. -@param PlannedQty Planned quantity for this project */ -public void setPlannedQty (BigDecimal PlannedQty) -{ -if (PlannedQty == null) throw new IllegalArgumentException ("PlannedQty is mandatory."); -set_Value ("PlannedQty", PlannedQty); -} -/** Get Planned Quantity. -@return Planned quantity for this project */ -public BigDecimal getPlannedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedQty */ -public static final String COLUMNNAME_PlannedQty = "PlannedQty"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set BPartner (Agent). + @param C_BPartnerSR_ID + Business Partner (Agent or Sales Rep) + */ + public void setC_BPartnerSR_ID (int C_BPartnerSR_ID) + { + if (C_BPartnerSR_ID <= 0) set_Value (COLUMNNAME_C_BPartnerSR_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerSR_ID, Integer.valueOf(C_BPartnerSR_ID)); + } + + /** Get BPartner (Agent). + @return Business Partner (Agent or Sales Rep) + */ + public int getC_BPartnerSR_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerSR_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID <= 0) set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Phase getI_C_Phase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Standard Phase. + @param C_Phase_ID + Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID) + { + if (C_Phase_ID <= 0) set_Value (COLUMNNAME_C_Phase_ID, null); + else + set_Value (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + } + + /** Get Standard Phase. + @return Standard Phase of the Project Type + */ + public int getC_Phase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Phase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Type. + @param C_ProjectType_ID + Type of the project + */ + public void setC_ProjectType_ID (String C_ProjectType_ID) + { + if (C_ProjectType_ID != null && C_ProjectType_ID.length() > 22) + { + log.warning("Length > 22 - truncated"); + C_ProjectType_ID = C_ProjectType_ID.substring(0, 21); + } + set_Value (COLUMNNAME_C_ProjectType_ID, C_ProjectType_ID); + } + + /** Get Project Type. + @return Type of the project + */ + public String getC_ProjectType_ID () + { + return (String)get_Value(COLUMNNAME_C_ProjectType_ID); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + throw new IllegalArgumentException ("C_Project_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Committed Amount. + @param CommittedAmt + The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt) + { + if (CommittedAmt == null) + throw new IllegalArgumentException ("CommittedAmt is mandatory."); + set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); + } + + /** Get Committed Amount. + @return The (legal) commitment amount + */ + public BigDecimal getCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Committed Quantity. + @param CommittedQty + The (legal) commitment Quantity + */ + public void setCommittedQty (BigDecimal CommittedQty) + { + if (CommittedQty == null) + throw new IllegalArgumentException ("CommittedQty is mandatory."); + set_Value (COLUMNNAME_CommittedQty, CommittedQty); + } + + /** Get Committed Quantity. + @return The (legal) commitment Quantity + */ + public BigDecimal getCommittedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Contract Date. + @param DateContract + The (planned) effective date of this document. + */ + public void setDateContract (Timestamp DateContract) + { + set_Value (COLUMNNAME_DateContract, DateContract); + } + + /** Get Contract Date. + @return The (planned) effective date of this document. + */ + public Timestamp getDateContract () + { + return (Timestamp)get_Value(COLUMNNAME_DateContract); + } + + /** Set Finish Date. + @param DateFinish + Finish or (planned) completion date + */ + public void setDateFinish (Timestamp DateFinish) + { + set_Value (COLUMNNAME_DateFinish, DateFinish); + } + + /** Get Finish Date. + @return Finish or (planned) completion date + */ + public Timestamp getDateFinish () + { + return (Timestamp)get_Value(COLUMNNAME_DateFinish); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Generate To. + @param GenerateTo + Generate To + */ + public void setGenerateTo (String GenerateTo) + { + if (GenerateTo != null && GenerateTo.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateTo = GenerateTo.substring(0, 0); + } + set_Value (COLUMNNAME_GenerateTo, GenerateTo); + } + + /** Get Generate To. + @return Generate To + */ + public String getGenerateTo () + { + return (String)get_Value(COLUMNNAME_GenerateTo); + } + + /** Set Invoiced Amount. + @param InvoicedAmt + The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt) + { + if (InvoicedAmt == null) + throw new IllegalArgumentException ("InvoicedAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_InvoicedAmt, InvoicedAmt); + } + + /** Get Invoiced Amount. + @return The amount invoiced + */ + public BigDecimal getInvoicedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Invoiced . + @param InvoicedQty + The quantity invoiced + */ + public void setInvoicedQty (BigDecimal InvoicedQty) + { + if (InvoicedQty == null) + throw new IllegalArgumentException ("InvoicedQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_InvoicedQty, InvoicedQty); + } + + /** Get Quantity Invoiced . + @return The quantity invoiced + */ + public BigDecimal getInvoicedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Commitment is Ceiling. + @param IsCommitCeiling + The commitment amount/quantity is the chargeable ceiling + */ + public void setIsCommitCeiling (boolean IsCommitCeiling) + { + set_Value (COLUMNNAME_IsCommitCeiling, Boolean.valueOf(IsCommitCeiling)); + } + + /** Get Commitment is Ceiling. + @return The commitment amount/quantity is the chargeable ceiling + */ + public boolean isCommitCeiling () + { + Object oo = get_Value(COLUMNNAME_IsCommitCeiling); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Commitment. + @param IsCommitment + Is this document a (legal) commitment? + */ + public void setIsCommitment (boolean IsCommitment) + { + set_Value (COLUMNNAME_IsCommitment, Boolean.valueOf(IsCommitment)); + } + + /** Get Commitment. + @return Is this document a (legal) commitment? + */ + public boolean isCommitment () + { + Object oo = get_Value(COLUMNNAME_IsCommitment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List Version. + @param M_PriceList_Version_ID + Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) + { + if (M_PriceList_Version_ID <= 0) set_Value (COLUMNNAME_M_PriceList_Version_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + } + + /** Get Price List Version. + @return Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID <= 0) set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Note = Note.substring(0, 1999); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 19); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** Set Planned Amount. + @param PlannedAmt + Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt) + { + if (PlannedAmt == null) + throw new IllegalArgumentException ("PlannedAmt is mandatory."); + set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); + } + + /** Get Planned Amount. + @return Planned amount for this project + */ + public BigDecimal getPlannedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Planned Margin. + @param PlannedMarginAmt + Project's planned margin amount + */ + public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) + { + if (PlannedMarginAmt == null) + throw new IllegalArgumentException ("PlannedMarginAmt is mandatory."); + set_Value (COLUMNNAME_PlannedMarginAmt, PlannedMarginAmt); + } + + /** Get Planned Margin. + @return Project's planned margin amount + */ + public BigDecimal getPlannedMarginAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedMarginAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Planned Quantity. + @param PlannedQty + Planned quantity for this project + */ + public void setPlannedQty (BigDecimal PlannedQty) + { + if (PlannedQty == null) + throw new IllegalArgumentException ("PlannedQty is mandatory."); + set_Value (COLUMNNAME_PlannedQty, PlannedQty); + } + + /** Get Planned Quantity. + @return Planned quantity for this project + */ + public BigDecimal getPlannedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** ProjInvoiceRule AD_Reference_ID=383 */ -public static final int PROJINVOICERULE_AD_Reference_ID=383; -/** None = - */ -public static final String PROJINVOICERULE_None = "-"; -/** Committed Amount = C */ -public static final String PROJINVOICERULE_CommittedAmount = "C"; -/** Product Quantity = P */ -public static final String PROJINVOICERULE_ProductQuantity = "P"; -/** Time&Material = T */ -public static final String PROJINVOICERULE_TimeMaterial = "T"; -/** Time&Material max Comitted = c */ +public static final int PROJINVOICERULE_AD_Reference_ID=383;/** None = - */ +public static final String PROJINVOICERULE_None = "-";/** Committed Amount = C */ +public static final String PROJINVOICERULE_CommittedAmount = "C";/** Product Quantity = P */ +public static final String PROJINVOICERULE_ProductQuantity = "P";/** Time&Material = T */ +public static final String PROJINVOICERULE_TimeMaterial = "T";/** Time&Material max Comitted = c */ public static final String PROJINVOICERULE_TimeMaterialMaxComitted = "c"; -/** Set Invoice Rule. -@param ProjInvoiceRule Invoice Rule for the project */ -public void setProjInvoiceRule (String ProjInvoiceRule) -{ -if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory"); -if (ProjInvoiceRule.equals("-") || ProjInvoiceRule.equals("C") || ProjInvoiceRule.equals("P") || ProjInvoiceRule.equals("T") || ProjInvoiceRule.equals("c")); - else throw new IllegalArgumentException ("ProjInvoiceRule Invalid value - " + ProjInvoiceRule + " - Reference_ID=383 - - - C - P - T - c"); -if (ProjInvoiceRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProjInvoiceRule = ProjInvoiceRule.substring(0,0); -} -set_Value ("ProjInvoiceRule", ProjInvoiceRule); -} -/** Get Invoice Rule. -@return Invoice Rule for the project */ -public String getProjInvoiceRule() -{ -return (String)get_Value("ProjInvoiceRule"); -} -/** Column name ProjInvoiceRule */ -public static final String COLUMNNAME_ProjInvoiceRule = "ProjInvoiceRule"; -/** Set Project Balance. -@param ProjectBalanceAmt Total Project Balance */ -public void setProjectBalanceAmt (BigDecimal ProjectBalanceAmt) -{ -if (ProjectBalanceAmt == null) throw new IllegalArgumentException ("ProjectBalanceAmt is mandatory."); -set_ValueNoCheck ("ProjectBalanceAmt", ProjectBalanceAmt); -} -/** Get Project Balance. -@return Total Project Balance */ -public BigDecimal getProjectBalanceAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ProjectBalanceAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ProjectBalanceAmt */ -public static final String COLUMNNAME_ProjectBalanceAmt = "ProjectBalanceAmt"; + /** Set Invoice Rule. + @param ProjInvoiceRule + Invoice Rule for the project + */ + public void setProjInvoiceRule (String ProjInvoiceRule) + { +if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory");if (ProjInvoiceRule.equals("-") || ProjInvoiceRule.equals("C") || ProjInvoiceRule.equals("P") || ProjInvoiceRule.equals("T") || ProjInvoiceRule.equals("c")); else throw new IllegalArgumentException ("ProjInvoiceRule Invalid value - " + ProjInvoiceRule + " - Reference_ID=383 - - - C - P - T - c"); if (ProjInvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProjInvoiceRule = ProjInvoiceRule.substring(0, 0); + } + set_Value (COLUMNNAME_ProjInvoiceRule, ProjInvoiceRule); + } + + /** Get Invoice Rule. + @return Invoice Rule for the project + */ + public String getProjInvoiceRule () + { + return (String)get_Value(COLUMNNAME_ProjInvoiceRule); + } + + /** Set Project Balance. + @param ProjectBalanceAmt + Total Project Balance + */ + public void setProjectBalanceAmt (BigDecimal ProjectBalanceAmt) + { + if (ProjectBalanceAmt == null) + throw new IllegalArgumentException ("ProjectBalanceAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_ProjectBalanceAmt, ProjectBalanceAmt); + } + + /** Get Project Balance. + @return Total Project Balance + */ + public BigDecimal getProjectBalanceAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ProjectBalanceAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** ProjectCategory AD_Reference_ID=288 */ -public static final int PROJECTCATEGORY_AD_Reference_ID=288; -/** Asset Project = A */ -public static final String PROJECTCATEGORY_AssetProject = "A"; -/** General = N */ -public static final String PROJECTCATEGORY_General = "N"; -/** Service (Charge) Project = S */ -public static final String PROJECTCATEGORY_ServiceChargeProject = "S"; -/** Work Order (Job) = W */ +public static final int PROJECTCATEGORY_AD_Reference_ID=288;/** Asset Project = A */ +public static final String PROJECTCATEGORY_AssetProject = "A";/** General = N */ +public static final String PROJECTCATEGORY_General = "N";/** Service (Charge) Project = S */ +public static final String PROJECTCATEGORY_ServiceChargeProject = "S";/** Work Order (Job) = W */ public static final String PROJECTCATEGORY_WorkOrderJob = "W"; -/** Set Project Category. -@param ProjectCategory Project Category */ -public void setProjectCategory (String ProjectCategory) -{ -if (ProjectCategory == null || ProjectCategory.equals("A") || ProjectCategory.equals("N") || ProjectCategory.equals("S") || ProjectCategory.equals("W")); - else throw new IllegalArgumentException ("ProjectCategory Invalid value - " + ProjectCategory + " - Reference_ID=288 - A - N - S - W"); -if (ProjectCategory != null && ProjectCategory.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProjectCategory = ProjectCategory.substring(0,0); -} -set_Value ("ProjectCategory", ProjectCategory); -} -/** Get Project Category. -@return Project Category */ -public String getProjectCategory() -{ -return (String)get_Value("ProjectCategory"); -} -/** Column name ProjectCategory */ -public static final String COLUMNNAME_ProjectCategory = "ProjectCategory"; + /** Set Project Category. + @param ProjectCategory + Project Category + */ + public void setProjectCategory (String ProjectCategory) + { +if (ProjectCategory == null || ProjectCategory.equals("A") || ProjectCategory.equals("N") || ProjectCategory.equals("S") || ProjectCategory.equals("W")); else throw new IllegalArgumentException ("ProjectCategory Invalid value - " + ProjectCategory + " - Reference_ID=288 - A - N - S - W"); if (ProjectCategory != null && ProjectCategory.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProjectCategory = ProjectCategory.substring(0, 0); + } + set_Value (COLUMNNAME_ProjectCategory, ProjectCategory); + } + + /** Get Project Category. + @return Project Category + */ + public String getProjectCategory () + { + return (String)get_Value(COLUMNNAME_ProjectCategory); + } /** ProjectLineLevel AD_Reference_ID=384 */ -public static final int PROJECTLINELEVEL_AD_Reference_ID=384; -/** Phase = A */ -public static final String PROJECTLINELEVEL_Phase = "A"; -/** Project = P */ -public static final String PROJECTLINELEVEL_Project = "P"; -/** Task = T */ +public static final int PROJECTLINELEVEL_AD_Reference_ID=384;/** Phase = A */ +public static final String PROJECTLINELEVEL_Phase = "A";/** Project = P */ +public static final String PROJECTLINELEVEL_Project = "P";/** Task = T */ public static final String PROJECTLINELEVEL_Task = "T"; -/** Set Line Level. -@param ProjectLineLevel Project Line Level */ -public void setProjectLineLevel (String ProjectLineLevel) -{ -if (ProjectLineLevel == null) throw new IllegalArgumentException ("ProjectLineLevel is mandatory"); -if (ProjectLineLevel.equals("A") || ProjectLineLevel.equals("P") || ProjectLineLevel.equals("T")); - else throw new IllegalArgumentException ("ProjectLineLevel Invalid value - " + ProjectLineLevel + " - Reference_ID=384 - A - P - T"); -if (ProjectLineLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProjectLineLevel = ProjectLineLevel.substring(0,0); -} -set_Value ("ProjectLineLevel", ProjectLineLevel); -} -/** Get Line Level. -@return Project Line Level */ -public String getProjectLineLevel() -{ -return (String)get_Value("ProjectLineLevel"); -} -/** Column name ProjectLineLevel */ -public static final String COLUMNNAME_ProjectLineLevel = "ProjectLineLevel"; + /** Set Line Level. + @param ProjectLineLevel + Project Line Level + */ + public void setProjectLineLevel (String ProjectLineLevel) + { +if (ProjectLineLevel == null) throw new IllegalArgumentException ("ProjectLineLevel is mandatory");if (ProjectLineLevel.equals("A") || ProjectLineLevel.equals("P") || ProjectLineLevel.equals("T")); else throw new IllegalArgumentException ("ProjectLineLevel Invalid value - " + ProjectLineLevel + " - Reference_ID=384 - A - P - T"); if (ProjectLineLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProjectLineLevel = ProjectLineLevel.substring(0, 0); + } + set_Value (COLUMNNAME_ProjectLineLevel, ProjectLineLevel); + } + + /** Get Line Level. + @return Project Line Level + */ + public String getProjectLineLevel () + { + return (String)get_Value(COLUMNNAME_ProjectLineLevel); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ProjectIssue.java b/base/src/org/compiere/model/X_C_ProjectIssue.java index 604a3d21eb..65282b5263 100644 --- a/base/src/org/compiere/model/X_C_ProjectIssue.java +++ b/base/src/org/compiere/model/X_C_ProjectIssue.java @@ -1,351 +1,414 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ProjectIssue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ProjectIssue extends PO + +/** Generated Model for C_ProjectIssue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ProjectIssue extends PO implements I_C_ProjectIssue, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ProjectIssue_ID id -@param trxName transaction -*/ -public X_C_ProjectIssue (Properties ctx, int C_ProjectIssue_ID, String trxName) -{ -super (ctx, C_ProjectIssue_ID, trxName); -/** if (C_ProjectIssue_ID == 0) -{ -setC_ProjectIssue_ID (0); -setC_Project_ID (0); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_ProjectIssue WHERE C_Project_ID=@C_Project_ID@ -setM_AttributeSetInstance_ID (0); -setM_Locator_ID (0); -setM_Product_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); -setMovementQty (Env.ZERO); -setPosted (false); // N -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ProjectIssue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ProjectIssue */ -public static final String Table_Name="C_ProjectIssue"; - -/** AD_Table_ID=623 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ProjectIssue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Project Issue. -@param C_ProjectIssue_ID Project Issues (Material, Labor) */ -public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) -{ -if (C_ProjectIssue_ID < 1) throw new IllegalArgumentException ("C_ProjectIssue_ID is mandatory."); -set_ValueNoCheck ("C_ProjectIssue_ID", Integer.valueOf(C_ProjectIssue_ID)); -} -/** Get Project Issue. -@return Project Issues (Material, Labor) */ -public int getC_ProjectIssue_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectIssue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectIssue_ID */ -public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID < 1) throw new IllegalArgumentException ("C_Project_ID is mandatory."); -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Project_ID())); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null); - else -set_Value ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Expense Line. -@param S_TimeExpenseLine_ID Time and Expense Report Line */ -public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID) -{ -if (S_TimeExpenseLine_ID <= 0) set_Value ("S_TimeExpenseLine_ID", null); - else -set_Value ("S_TimeExpenseLine_ID", Integer.valueOf(S_TimeExpenseLine_ID)); -} -/** Get Expense Line. -@return Time and Expense Report Line */ -public int getS_TimeExpenseLine_ID() -{ -Integer ii = (Integer)get_Value("S_TimeExpenseLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_TimeExpenseLine_ID */ -public static final String COLUMNNAME_S_TimeExpenseLine_ID = "S_TimeExpenseLine_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ProjectIssue (Properties ctx, int C_ProjectIssue_ID, String trxName) + { + super (ctx, C_ProjectIssue_ID, trxName); + /** if (C_ProjectIssue_ID == 0) { setC_ProjectIssue_ID (0); + setC_Project_ID (0); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_ProjectIssue WHERE C_Project_ID=@C_Project_ID@ + setM_AttributeSetInstance_ID (0); + setM_Locator_ID (0); + setM_Product_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); + setMovementQty (Env.ZERO); + setPosted (false); +// N + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_ProjectIssue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ProjectIssue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID < 1) + throw new IllegalArgumentException ("C_ProjectIssue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + throw new IllegalArgumentException ("C_Project_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Project_ID())); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_Value (COLUMNNAME_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Expense Line. + @param S_TimeExpenseLine_ID + Time and Expense Report Line + */ + public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID) + { + if (S_TimeExpenseLine_ID <= 0) set_Value (COLUMNNAME_S_TimeExpenseLine_ID, null); + else + set_Value (COLUMNNAME_S_TimeExpenseLine_ID, Integer.valueOf(S_TimeExpenseLine_ID)); + } + + /** Get Expense Line. + @return Time and Expense Report Line + */ + public int getS_TimeExpenseLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeExpenseLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ProjectIssueMA.java b/base/src/org/compiere/model/X_C_ProjectIssueMA.java index 31b479d7f4..578da26fb1 100644 --- a/base/src/org/compiere/model/X_C_ProjectIssueMA.java +++ b/base/src/org/compiere/model/X_C_ProjectIssueMA.java @@ -1,147 +1,165 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ProjectIssueMA - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ProjectIssueMA extends PO + +/** Generated Model for C_ProjectIssueMA + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ProjectIssueMA extends PO implements I_C_ProjectIssueMA, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ProjectIssueMA_ID id -@param trxName transaction -*/ -public X_C_ProjectIssueMA (Properties ctx, int C_ProjectIssueMA_ID, String trxName) -{ -super (ctx, C_ProjectIssueMA_ID, trxName); -/** if (C_ProjectIssueMA_ID == 0) -{ -setC_ProjectIssue_ID (0); -setM_AttributeSetInstance_ID (0); -setMovementQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ProjectIssueMA (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ProjectIssueMA */ -public static final String Table_Name="C_ProjectIssueMA"; - -/** AD_Table_ID=761 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ProjectIssueMA[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Project Issue. -@param C_ProjectIssue_ID Project Issues (Material, Labor) */ -public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) -{ -if (C_ProjectIssue_ID < 1) throw new IllegalArgumentException ("C_ProjectIssue_ID is mandatory."); -set_ValueNoCheck ("C_ProjectIssue_ID", Integer.valueOf(C_ProjectIssue_ID)); -} -/** Get Project Issue. -@return Project Issues (Material, Labor) */ -public int getC_ProjectIssue_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectIssue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_ProjectIssue_ID())); -} -/** Column name C_ProjectIssue_ID */ -public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ProjectIssueMA (Properties ctx, int C_ProjectIssueMA_ID, String trxName) + { + super (ctx, C_ProjectIssueMA_ID, trxName); + /** if (C_ProjectIssueMA_ID == 0) { setC_ProjectIssue_ID (0); + setM_AttributeSetInstance_ID (0); + setMovementQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_ProjectIssueMA (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ProjectIssueMA[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ProjectIssue getI_C_ProjectIssue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID < 1) + throw new IllegalArgumentException ("C_ProjectIssue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_ProjectIssue_ID())); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ProjectLine.java b/base/src/org/compiere/model/X_C_ProjectLine.java index 10868abf64..b35cfd3bb7 100644 --- a/base/src/org/compiere/model/X_C_ProjectLine.java +++ b/base/src/org/compiere/model/X_C_ProjectLine.java @@ -1,495 +1,657 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ProjectLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ProjectLine extends PO + +/** Generated Model for C_ProjectLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ProjectLine extends PO implements I_C_ProjectLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ProjectLine_ID id -@param trxName transaction -*/ -public X_C_ProjectLine (Properties ctx, int C_ProjectLine_ID, String trxName) -{ -super (ctx, C_ProjectLine_ID, trxName); -/** if (C_ProjectLine_ID == 0) -{ -setC_ProjectLine_ID (0); -setC_Project_ID (0); -setInvoicedAmt (Env.ZERO); -setInvoicedQty (Env.ZERO); // 0 -setIsPrinted (true); // Y -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_ProjectLine WHERE C_Project_ID=@C_Project_ID@ -setPlannedAmt (Env.ZERO); -setPlannedMarginAmt (Env.ZERO); -setPlannedPrice (Env.ZERO); -setPlannedQty (Env.ZERO); // 1 -setProcessed (false); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ProjectLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ProjectLine */ -public static final String Table_Name="C_ProjectLine"; - -/** AD_Table_ID=434 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ProjectLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ProjectLine (Properties ctx, int C_ProjectLine_ID, String trxName) + { + super (ctx, C_ProjectLine_ID, trxName); + /** if (C_ProjectLine_ID == 0) { setC_ProjectLine_ID (0); + setC_Project_ID (0); + setInvoicedAmt (Env.ZERO); + setInvoicedQty (Env.ZERO); +// 0 + setIsPrinted (true); +// Y + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM C_ProjectLine WHERE C_Project_ID=@C_Project_ID@ + setPlannedAmt (Env.ZERO); + setPlannedMarginAmt (Env.ZERO); + setPlannedPrice (Env.ZERO); + setPlannedQty (Env.ZERO); +// 1 + setProcessed (false); +// N +} */ + } + + /** Load Constructor */ + public X_C_ProjectLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ProjectLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** C_OrderPO_ID AD_Reference_ID=290 */ public static final int C_ORDERPO_ID_AD_Reference_ID=290; -/** Set Purchase Order. -@param C_OrderPO_ID Purchase Order */ -public void setC_OrderPO_ID (int C_OrderPO_ID) -{ -if (C_OrderPO_ID <= 0) set_ValueNoCheck ("C_OrderPO_ID", null); - else -set_ValueNoCheck ("C_OrderPO_ID", Integer.valueOf(C_OrderPO_ID)); -} -/** Get Purchase Order. -@return Purchase Order */ -public int getC_OrderPO_ID() -{ -Integer ii = (Integer)get_Value("C_OrderPO_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderPO_ID */ -public static final String COLUMNNAME_C_OrderPO_ID = "C_OrderPO_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Project Issue. -@param C_ProjectIssue_ID Project Issues (Material, Labor) */ -public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) -{ -if (C_ProjectIssue_ID <= 0) set_ValueNoCheck ("C_ProjectIssue_ID", null); - else -set_ValueNoCheck ("C_ProjectIssue_ID", Integer.valueOf(C_ProjectIssue_ID)); -} -/** Get Project Issue. -@return Project Issues (Material, Labor) */ -public int getC_ProjectIssue_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectIssue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectIssue_ID */ -public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; -/** Set Project Line. -@param C_ProjectLine_ID Task or step in a project */ -public void setC_ProjectLine_ID (int C_ProjectLine_ID) -{ -if (C_ProjectLine_ID < 1) throw new IllegalArgumentException ("C_ProjectLine_ID is mandatory."); -set_ValueNoCheck ("C_ProjectLine_ID", Integer.valueOf(C_ProjectLine_ID)); -} -/** Get Project Line. -@return Task or step in a project */ -public int getC_ProjectLine_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectLine_ID */ -public static final String COLUMNNAME_C_ProjectLine_ID = "C_ProjectLine_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_Value ("C_ProjectPhase_ID", null); - else -set_Value ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_Value ("C_ProjectTask_ID", null); - else -set_Value ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID < 1) throw new IllegalArgumentException ("C_Project_ID is mandatory."); -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Committed Amount. -@param CommittedAmt The (legal) commitment amount */ -public void setCommittedAmt (BigDecimal CommittedAmt) -{ -set_Value ("CommittedAmt", CommittedAmt); -} -/** Get Committed Amount. -@return The (legal) commitment amount */ -public BigDecimal getCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedAmt */ -public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; -/** Set Committed Quantity. -@param CommittedQty The (legal) commitment Quantity */ -public void setCommittedQty (BigDecimal CommittedQty) -{ -set_Value ("CommittedQty", CommittedQty); -} -/** Get Committed Quantity. -@return The (legal) commitment Quantity */ -public BigDecimal getCommittedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedQty */ -public static final String COLUMNNAME_CommittedQty = "CommittedQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Pricing. -@param DoPricing Pricing */ -public void setDoPricing (String DoPricing) -{ -if (DoPricing != null && DoPricing.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DoPricing = DoPricing.substring(0,0); -} -set_Value ("DoPricing", DoPricing); -} -/** Get Pricing. -@return Pricing */ -public String getDoPricing() -{ -return (String)get_Value("DoPricing"); -} -/** Column name DoPricing */ -public static final String COLUMNNAME_DoPricing = "DoPricing"; -/** Set Invoiced Amount. -@param InvoicedAmt The amount invoiced */ -public void setInvoicedAmt (BigDecimal InvoicedAmt) -{ -if (InvoicedAmt == null) throw new IllegalArgumentException ("InvoicedAmt is mandatory."); -set_Value ("InvoicedAmt", InvoicedAmt); -} -/** Get Invoiced Amount. -@return The amount invoiced */ -public BigDecimal getInvoicedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoicedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoicedAmt */ -public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; -/** Set Quantity Invoiced . -@param InvoicedQty The quantity invoiced */ -public void setInvoicedQty (BigDecimal InvoicedQty) -{ -if (InvoicedQty == null) throw new IllegalArgumentException ("InvoicedQty is mandatory."); -set_Value ("InvoicedQty", InvoicedQty); -} -/** Get Quantity Invoiced . -@return The quantity invoiced */ -public BigDecimal getInvoicedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoicedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoicedQty */ -public static final String COLUMNNAME_InvoicedQty = "InvoicedQty"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Planned Amount. -@param PlannedAmt Planned amount for this project */ -public void setPlannedAmt (BigDecimal PlannedAmt) -{ -if (PlannedAmt == null) throw new IllegalArgumentException ("PlannedAmt is mandatory."); -set_Value ("PlannedAmt", PlannedAmt); -} -/** Get Planned Amount. -@return Planned amount for this project */ -public BigDecimal getPlannedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedAmt */ -public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; -/** Set Planned Margin. -@param PlannedMarginAmt Project's planned margin amount */ -public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) -{ -if (PlannedMarginAmt == null) throw new IllegalArgumentException ("PlannedMarginAmt is mandatory."); -set_Value ("PlannedMarginAmt", PlannedMarginAmt); -} -/** Get Planned Margin. -@return Project's planned margin amount */ -public BigDecimal getPlannedMarginAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedMarginAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedMarginAmt */ -public static final String COLUMNNAME_PlannedMarginAmt = "PlannedMarginAmt"; -/** Set Planned Price. -@param PlannedPrice Planned price for this project line */ -public void setPlannedPrice (BigDecimal PlannedPrice) -{ -if (PlannedPrice == null) throw new IllegalArgumentException ("PlannedPrice is mandatory."); -set_Value ("PlannedPrice", PlannedPrice); -} -/** Get Planned Price. -@return Planned price for this project line */ -public BigDecimal getPlannedPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedPrice */ -public static final String COLUMNNAME_PlannedPrice = "PlannedPrice"; -/** Set Planned Quantity. -@param PlannedQty Planned quantity for this project */ -public void setPlannedQty (BigDecimal PlannedQty) -{ -if (PlannedQty == null) throw new IllegalArgumentException ("PlannedQty is mandatory."); -set_Value ("PlannedQty", PlannedQty); -} -/** Get Planned Quantity. -@return Planned quantity for this project */ -public BigDecimal getPlannedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedQty */ -public static final String COLUMNNAME_PlannedQty = "PlannedQty"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -} + /** Set Purchase Order. + @param C_OrderPO_ID + Purchase Order + */ + public void setC_OrderPO_ID (int C_OrderPO_ID) + { + if (C_OrderPO_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_OrderPO_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderPO_ID, Integer.valueOf(C_OrderPO_ID)); + } + + /** Get Purchase Order. + @return Purchase Order + */ + public int getC_OrderPO_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderPO_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectIssue getI_C_ProjectIssue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Line. + @param C_ProjectLine_ID + Task or step in a project + */ + public void setC_ProjectLine_ID (int C_ProjectLine_ID) + { + if (C_ProjectLine_ID < 1) + throw new IllegalArgumentException ("C_ProjectLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectLine_ID, Integer.valueOf(C_ProjectLine_ID)); + } + + /** Get Project Line. + @return Task or step in a project + */ + public int getC_ProjectLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_Value (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_Value (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_Value (COLUMNNAME_C_ProjectTask_ID, null); + else + set_Value (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + throw new IllegalArgumentException ("C_Project_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Committed Amount. + @param CommittedAmt + The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt) + { + set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); + } + + /** Get Committed Amount. + @return The (legal) commitment amount + */ + public BigDecimal getCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Committed Quantity. + @param CommittedQty + The (legal) commitment Quantity + */ + public void setCommittedQty (BigDecimal CommittedQty) + { + set_Value (COLUMNNAME_CommittedQty, CommittedQty); + } + + /** Get Committed Quantity. + @return The (legal) commitment Quantity + */ + public BigDecimal getCommittedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Pricing. + @param DoPricing Pricing */ + public void setDoPricing (String DoPricing) + { + if (DoPricing != null && DoPricing.length() > 1) + { + log.warning("Length > 1 - truncated"); + DoPricing = DoPricing.substring(0, 0); + } + set_Value (COLUMNNAME_DoPricing, DoPricing); + } + + /** Get Pricing. +@return Pricing */ + public String getDoPricing () + { + return (String)get_Value(COLUMNNAME_DoPricing); + } + + /** Set Invoiced Amount. + @param InvoicedAmt + The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt) + { + if (InvoicedAmt == null) + throw new IllegalArgumentException ("InvoicedAmt is mandatory."); + set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt); + } + + /** Get Invoiced Amount. + @return The amount invoiced + */ + public BigDecimal getInvoicedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Invoiced . + @param InvoicedQty + The quantity invoiced + */ + public void setInvoicedQty (BigDecimal InvoicedQty) + { + if (InvoicedQty == null) + throw new IllegalArgumentException ("InvoicedQty is mandatory."); + set_Value (COLUMNNAME_InvoicedQty, InvoicedQty); + } + + /** Get Quantity Invoiced . + @return The quantity invoiced + */ + public BigDecimal getInvoicedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Planned Amount. + @param PlannedAmt + Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt) + { + if (PlannedAmt == null) + throw new IllegalArgumentException ("PlannedAmt is mandatory."); + set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); + } + + /** Get Planned Amount. + @return Planned amount for this project + */ + public BigDecimal getPlannedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Planned Margin. + @param PlannedMarginAmt + Project's planned margin amount + */ + public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) + { + if (PlannedMarginAmt == null) + throw new IllegalArgumentException ("PlannedMarginAmt is mandatory."); + set_Value (COLUMNNAME_PlannedMarginAmt, PlannedMarginAmt); + } + + /** Get Planned Margin. + @return Project's planned margin amount + */ + public BigDecimal getPlannedMarginAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedMarginAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Planned Price. + @param PlannedPrice + Planned price for this project line + */ + public void setPlannedPrice (BigDecimal PlannedPrice) + { + if (PlannedPrice == null) + throw new IllegalArgumentException ("PlannedPrice is mandatory."); + set_Value (COLUMNNAME_PlannedPrice, PlannedPrice); + } + + /** Get Planned Price. + @return Planned price for this project line + */ + public BigDecimal getPlannedPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Planned Quantity. + @param PlannedQty + Planned quantity for this project + */ + public void setPlannedQty (BigDecimal PlannedQty) + { + if (PlannedQty == null) + throw new IllegalArgumentException ("PlannedQty is mandatory."); + set_Value (COLUMNNAME_PlannedQty, PlannedQty); + } + + /** Get Planned Quantity. + @return Planned quantity for this project + */ + public BigDecimal getPlannedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ProjectPhase.java b/base/src/org/compiere/model/X_C_ProjectPhase.java index bfab5194f4..21be3e6c40 100644 --- a/base/src/org/compiere/model/X_C_ProjectPhase.java +++ b/base/src/org/compiere/model/X_C_ProjectPhase.java @@ -1,454 +1,538 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ProjectPhase - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ProjectPhase extends PO + +/** Generated Model for C_ProjectPhase + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ProjectPhase extends PO implements I_C_ProjectPhase, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ProjectPhase_ID id -@param trxName transaction -*/ -public X_C_ProjectPhase (Properties ctx, int C_ProjectPhase_ID, String trxName) -{ -super (ctx, C_ProjectPhase_ID, trxName); -/** if (C_ProjectPhase_ID == 0) -{ -setC_ProjectPhase_ID (0); -setC_Project_ID (0); -setCommittedAmt (Env.ZERO); -setIsCommitCeiling (false); -setIsComplete (false); -setName (null); -setPlannedAmt (Env.ZERO); -setProjInvoiceRule (null); // @ProjInvoiceRule@ -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_ProjectPhase WHERE C_Project_ID=@C_Project_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ProjectPhase (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ProjectPhase */ -public static final String Table_Name="C_ProjectPhase"; - -/** AD_Table_ID=576 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ProjectPhase[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Standard Phase. -@param C_Phase_ID Standard Phase of the Project Type */ -public void setC_Phase_ID (int C_Phase_ID) -{ -if (C_Phase_ID <= 0) set_ValueNoCheck ("C_Phase_ID", null); - else -set_ValueNoCheck ("C_Phase_ID", Integer.valueOf(C_Phase_ID)); -} -/** Get Standard Phase. -@return Standard Phase of the Project Type */ -public int getC_Phase_ID() -{ -Integer ii = (Integer)get_Value("C_Phase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Phase_ID */ -public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID < 1) throw new IllegalArgumentException ("C_ProjectPhase_ID is mandatory."); -set_ValueNoCheck ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID < 1) throw new IllegalArgumentException ("C_Project_ID is mandatory."); -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Committed Amount. -@param CommittedAmt The (legal) commitment amount */ -public void setCommittedAmt (BigDecimal CommittedAmt) -{ -if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory."); -set_Value ("CommittedAmt", CommittedAmt); -} -/** Get Committed Amount. -@return The (legal) commitment amount */ -public BigDecimal getCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedAmt */ -public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set End Date. -@param EndDate Last effective date (inclusive) */ -public void setEndDate (Timestamp EndDate) -{ -set_Value ("EndDate", EndDate); -} -/** Get End Date. -@return Last effective date (inclusive) */ -public Timestamp getEndDate() -{ -return (Timestamp)get_Value("EndDate"); -} -/** Column name EndDate */ -public static final String COLUMNNAME_EndDate = "EndDate"; -/** Set Generate Order. -@param GenerateOrder Generate Order */ -public void setGenerateOrder (String GenerateOrder) -{ -if (GenerateOrder != null && GenerateOrder.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GenerateOrder = GenerateOrder.substring(0,0); -} -set_Value ("GenerateOrder", GenerateOrder); -} -/** Get Generate Order. -@return Generate Order */ -public String getGenerateOrder() -{ -return (String)get_Value("GenerateOrder"); -} -/** Column name GenerateOrder */ -public static final String COLUMNNAME_GenerateOrder = "GenerateOrder"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Commitment is Ceiling. -@param IsCommitCeiling The commitment amount/quantity is the chargeable ceiling */ -public void setIsCommitCeiling (boolean IsCommitCeiling) -{ -set_Value ("IsCommitCeiling", Boolean.valueOf(IsCommitCeiling)); -} -/** Get Commitment is Ceiling. -@return The commitment amount/quantity is the chargeable ceiling */ -public boolean isCommitCeiling() -{ -Object oo = get_Value("IsCommitCeiling"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCommitCeiling */ -public static final String COLUMNNAME_IsCommitCeiling = "IsCommitCeiling"; -/** Set Complete. -@param IsComplete It is complete */ -public void setIsComplete (boolean IsComplete) -{ -set_Value ("IsComplete", Boolean.valueOf(IsComplete)); -} -/** Get Complete. -@return It is complete */ -public boolean isComplete() -{ -Object oo = get_Value("IsComplete"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsComplete */ -public static final String COLUMNNAME_IsComplete = "IsComplete"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Planned Amount. -@param PlannedAmt Planned amount for this project */ -public void setPlannedAmt (BigDecimal PlannedAmt) -{ -if (PlannedAmt == null) throw new IllegalArgumentException ("PlannedAmt is mandatory."); -set_Value ("PlannedAmt", PlannedAmt); -} -/** Get Planned Amount. -@return Planned amount for this project */ -public BigDecimal getPlannedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedAmt */ -public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; -/** Set Unit Price. -@param PriceActual Actual Price */ -public void setPriceActual (BigDecimal PriceActual) -{ -set_Value ("PriceActual", PriceActual); -} -/** Get Unit Price. -@return Actual Price */ -public BigDecimal getPriceActual() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceActual */ -public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ProjectPhase (Properties ctx, int C_ProjectPhase_ID, String trxName) + { + super (ctx, C_ProjectPhase_ID, trxName); + /** if (C_ProjectPhase_ID == 0) { setC_ProjectPhase_ID (0); + setC_Project_ID (0); + setCommittedAmt (Env.ZERO); + setIsCommitCeiling (false); + setIsComplete (false); + setName (null); + setPlannedAmt (Env.ZERO); + setProjInvoiceRule (null); +// @ProjInvoiceRule@ + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_ProjectPhase WHERE C_Project_ID=@C_Project_ID@ +} */ + } + + /** Load Constructor */ + public X_C_ProjectPhase (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ProjectPhase[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Phase getI_C_Phase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Standard Phase. + @param C_Phase_ID + Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID) + { + if (C_Phase_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Phase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + } + + /** Get Standard Phase. + @return Standard Phase of the Project Type + */ + public int getC_Phase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Phase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID < 1) + throw new IllegalArgumentException ("C_ProjectPhase_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + throw new IllegalArgumentException ("C_Project_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Committed Amount. + @param CommittedAmt + The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt) + { + if (CommittedAmt == null) + throw new IllegalArgumentException ("CommittedAmt is mandatory."); + set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); + } + + /** Get Committed Amount. + @return The (legal) commitment amount + */ + public BigDecimal getCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set End Date. + @param EndDate + Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate) + { + set_Value (COLUMNNAME_EndDate, EndDate); + } + + /** Get End Date. + @return Last effective date (inclusive) + */ + public Timestamp getEndDate () + { + return (Timestamp)get_Value(COLUMNNAME_EndDate); + } + + /** Set Generate Order. + @param GenerateOrder + Generate Order + */ + public void setGenerateOrder (String GenerateOrder) + { + if (GenerateOrder != null && GenerateOrder.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateOrder = GenerateOrder.substring(0, 0); + } + set_Value (COLUMNNAME_GenerateOrder, GenerateOrder); + } + + /** Get Generate Order. + @return Generate Order + */ + public String getGenerateOrder () + { + return (String)get_Value(COLUMNNAME_GenerateOrder); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Commitment is Ceiling. + @param IsCommitCeiling + The commitment amount/quantity is the chargeable ceiling + */ + public void setIsCommitCeiling (boolean IsCommitCeiling) + { + set_Value (COLUMNNAME_IsCommitCeiling, Boolean.valueOf(IsCommitCeiling)); + } + + /** Get Commitment is Ceiling. + @return The commitment amount/quantity is the chargeable ceiling + */ + public boolean isCommitCeiling () + { + Object oo = get_Value(COLUMNNAME_IsCommitCeiling); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Complete. + @param IsComplete + It is complete + */ + public void setIsComplete (boolean IsComplete) + { + set_Value (COLUMNNAME_IsComplete, Boolean.valueOf(IsComplete)); + } + + /** Get Complete. + @return It is complete + */ + public boolean isComplete () + { + Object oo = get_Value(COLUMNNAME_IsComplete); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Planned Amount. + @param PlannedAmt + Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt) + { + if (PlannedAmt == null) + throw new IllegalArgumentException ("PlannedAmt is mandatory."); + set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); + } + + /** Get Planned Amount. + @return Planned amount for this project + */ + public BigDecimal getPlannedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + set_Value (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } /** ProjInvoiceRule AD_Reference_ID=383 */ -public static final int PROJINVOICERULE_AD_Reference_ID=383; -/** None = - */ -public static final String PROJINVOICERULE_None = "-"; -/** Committed Amount = C */ -public static final String PROJINVOICERULE_CommittedAmount = "C"; -/** Product Quantity = P */ -public static final String PROJINVOICERULE_ProductQuantity = "P"; -/** Time&Material = T */ -public static final String PROJINVOICERULE_TimeMaterial = "T"; -/** Time&Material max Comitted = c */ +public static final int PROJINVOICERULE_AD_Reference_ID=383;/** None = - */ +public static final String PROJINVOICERULE_None = "-";/** Committed Amount = C */ +public static final String PROJINVOICERULE_CommittedAmount = "C";/** Product Quantity = P */ +public static final String PROJINVOICERULE_ProductQuantity = "P";/** Time&Material = T */ +public static final String PROJINVOICERULE_TimeMaterial = "T";/** Time&Material max Comitted = c */ public static final String PROJINVOICERULE_TimeMaterialMaxComitted = "c"; -/** Set Invoice Rule. -@param ProjInvoiceRule Invoice Rule for the project */ -public void setProjInvoiceRule (String ProjInvoiceRule) -{ -if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory"); -if (ProjInvoiceRule.equals("-") || ProjInvoiceRule.equals("C") || ProjInvoiceRule.equals("P") || ProjInvoiceRule.equals("T") || ProjInvoiceRule.equals("c")); - else throw new IllegalArgumentException ("ProjInvoiceRule Invalid value - " + ProjInvoiceRule + " - Reference_ID=383 - - - C - P - T - c"); -if (ProjInvoiceRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProjInvoiceRule = ProjInvoiceRule.substring(0,0); -} -set_Value ("ProjInvoiceRule", ProjInvoiceRule); -} -/** Get Invoice Rule. -@return Invoice Rule for the project */ -public String getProjInvoiceRule() -{ -return (String)get_Value("ProjInvoiceRule"); -} -/** Column name ProjInvoiceRule */ -public static final String COLUMNNAME_ProjInvoiceRule = "ProjInvoiceRule"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -} + /** Set Invoice Rule. + @param ProjInvoiceRule + Invoice Rule for the project + */ + public void setProjInvoiceRule (String ProjInvoiceRule) + { +if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory");if (ProjInvoiceRule.equals("-") || ProjInvoiceRule.equals("C") || ProjInvoiceRule.equals("P") || ProjInvoiceRule.equals("T") || ProjInvoiceRule.equals("c")); else throw new IllegalArgumentException ("ProjInvoiceRule Invalid value - " + ProjInvoiceRule + " - Reference_ID=383 - - - C - P - T - c"); if (ProjInvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProjInvoiceRule = ProjInvoiceRule.substring(0, 0); + } + set_Value (COLUMNNAME_ProjInvoiceRule, ProjInvoiceRule); + } + + /** Get Invoice Rule. + @return Invoice Rule for the project + */ + public String getProjInvoiceRule () + { + return (String)get_Value(COLUMNNAME_ProjInvoiceRule); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ProjectTask.java b/base/src/org/compiere/model/X_C_ProjectTask.java index 24ab70d1b5..12ca6f9d0d 100644 --- a/base/src/org/compiere/model/X_C_ProjectTask.java +++ b/base/src/org/compiere/model/X_C_ProjectTask.java @@ -1,331 +1,390 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ProjectTask - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ProjectTask extends PO + +/** Generated Model for C_ProjectTask + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ProjectTask extends PO implements I_C_ProjectTask, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ProjectTask_ID id -@param trxName transaction -*/ -public X_C_ProjectTask (Properties ctx, int C_ProjectTask_ID, String trxName) -{ -super (ctx, C_ProjectTask_ID, trxName); -/** if (C_ProjectTask_ID == 0) -{ -setC_ProjectPhase_ID (0); -setC_ProjectTask_ID (0); -setCommittedAmt (Env.ZERO); -setName (null); -setPlannedAmt (Env.ZERO); -setProjInvoiceRule (null); // @ProjInvoiceRule@ -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_ProjectTask WHERE C_ProjectPhase_ID=@C_ProjectPhase_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ProjectTask (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ProjectTask */ -public static final String Table_Name="C_ProjectTask"; - -/** AD_Table_ID=584 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ProjectTask[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID < 1) throw new IllegalArgumentException ("C_ProjectPhase_ID is mandatory."); -set_ValueNoCheck ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID < 1) throw new IllegalArgumentException ("C_ProjectTask_ID is mandatory."); -set_ValueNoCheck ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Standard Task. -@param C_Task_ID Standard Project Type Task */ -public void setC_Task_ID (int C_Task_ID) -{ -if (C_Task_ID <= 0) set_ValueNoCheck ("C_Task_ID", null); - else -set_ValueNoCheck ("C_Task_ID", Integer.valueOf(C_Task_ID)); -} -/** Get Standard Task. -@return Standard Project Type Task */ -public int getC_Task_ID() -{ -Integer ii = (Integer)get_Value("C_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Task_ID */ -public static final String COLUMNNAME_C_Task_ID = "C_Task_ID"; -/** Set Committed Amount. -@param CommittedAmt The (legal) commitment amount */ -public void setCommittedAmt (BigDecimal CommittedAmt) -{ -if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory."); -set_Value ("CommittedAmt", CommittedAmt); -} -/** Get Committed Amount. -@return The (legal) commitment amount */ -public BigDecimal getCommittedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CommittedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CommittedAmt */ -public static final String COLUMNNAME_CommittedAmt = "CommittedAmt"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Planned Amount. -@param PlannedAmt Planned amount for this project */ -public void setPlannedAmt (BigDecimal PlannedAmt) -{ -if (PlannedAmt == null) throw new IllegalArgumentException ("PlannedAmt is mandatory."); -set_Value ("PlannedAmt", PlannedAmt); -} -/** Get Planned Amount. -@return Planned amount for this project */ -public BigDecimal getPlannedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedAmt */ -public static final String COLUMNNAME_PlannedAmt = "PlannedAmt"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ProjectTask (Properties ctx, int C_ProjectTask_ID, String trxName) + { + super (ctx, C_ProjectTask_ID, trxName); + /** if (C_ProjectTask_ID == 0) { setC_ProjectPhase_ID (0); + setC_ProjectTask_ID (0); + setCommittedAmt (Env.ZERO); + setName (null); + setPlannedAmt (Env.ZERO); + setProjInvoiceRule (null); +// @ProjInvoiceRule@ + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_ProjectTask WHERE C_ProjectPhase_ID=@C_ProjectPhase_ID@ +} */ + } + + /** Load Constructor */ + public X_C_ProjectTask (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ProjectTask[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID < 1) + throw new IllegalArgumentException ("C_ProjectPhase_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID < 1) + throw new IllegalArgumentException ("C_ProjectTask_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Task getI_C_Task() throws Exception + { + 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 e; + } + return result; + } + + /** Set Standard Task. + @param C_Task_ID + Standard Project Type Task + */ + public void setC_Task_ID (int C_Task_ID) + { + if (C_Task_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Task_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Task_ID, Integer.valueOf(C_Task_ID)); + } + + /** Get Standard Task. + @return Standard Project Type Task + */ + public int getC_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Committed Amount. + @param CommittedAmt + The (legal) commitment amount + */ + public void setCommittedAmt (BigDecimal CommittedAmt) + { + if (CommittedAmt == null) + throw new IllegalArgumentException ("CommittedAmt is mandatory."); + set_Value (COLUMNNAME_CommittedAmt, CommittedAmt); + } + + /** Get Committed Amount. + @return The (legal) commitment amount + */ + public BigDecimal getCommittedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CommittedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Planned Amount. + @param PlannedAmt + Planned amount for this project + */ + public void setPlannedAmt (BigDecimal PlannedAmt) + { + if (PlannedAmt == null) + throw new IllegalArgumentException ("PlannedAmt is mandatory."); + set_Value (COLUMNNAME_PlannedAmt, PlannedAmt); + } + + /** Get Planned Amount. + @return Planned amount for this project + */ + public BigDecimal getPlannedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** ProjInvoiceRule AD_Reference_ID=383 */ -public static final int PROJINVOICERULE_AD_Reference_ID=383; -/** None = - */ -public static final String PROJINVOICERULE_None = "-"; -/** Committed Amount = C */ -public static final String PROJINVOICERULE_CommittedAmount = "C"; -/** Product Quantity = P */ -public static final String PROJINVOICERULE_ProductQuantity = "P"; -/** Time&Material = T */ -public static final String PROJINVOICERULE_TimeMaterial = "T"; -/** Time&Material max Comitted = c */ +public static final int PROJINVOICERULE_AD_Reference_ID=383;/** None = - */ +public static final String PROJINVOICERULE_None = "-";/** Committed Amount = C */ +public static final String PROJINVOICERULE_CommittedAmount = "C";/** Product Quantity = P */ +public static final String PROJINVOICERULE_ProductQuantity = "P";/** Time&Material = T */ +public static final String PROJINVOICERULE_TimeMaterial = "T";/** Time&Material max Comitted = c */ public static final String PROJINVOICERULE_TimeMaterialMaxComitted = "c"; -/** Set Invoice Rule. -@param ProjInvoiceRule Invoice Rule for the project */ -public void setProjInvoiceRule (String ProjInvoiceRule) -{ -if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory"); -if (ProjInvoiceRule.equals("-") || ProjInvoiceRule.equals("C") || ProjInvoiceRule.equals("P") || ProjInvoiceRule.equals("T") || ProjInvoiceRule.equals("c")); - else throw new IllegalArgumentException ("ProjInvoiceRule Invalid value - " + ProjInvoiceRule + " - Reference_ID=383 - - - C - P - T - c"); -if (ProjInvoiceRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProjInvoiceRule = ProjInvoiceRule.substring(0,0); -} -set_Value ("ProjInvoiceRule", ProjInvoiceRule); -} -/** Get Invoice Rule. -@return Invoice Rule for the project */ -public String getProjInvoiceRule() -{ -return (String)get_Value("ProjInvoiceRule"); -} -/** Column name ProjInvoiceRule */ -public static final String COLUMNNAME_ProjInvoiceRule = "ProjInvoiceRule"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Invoice Rule. + @param ProjInvoiceRule + Invoice Rule for the project + */ + public void setProjInvoiceRule (String ProjInvoiceRule) + { +if (ProjInvoiceRule == null) throw new IllegalArgumentException ("ProjInvoiceRule is mandatory");if (ProjInvoiceRule.equals("-") || ProjInvoiceRule.equals("C") || ProjInvoiceRule.equals("P") || ProjInvoiceRule.equals("T") || ProjInvoiceRule.equals("c")); else throw new IllegalArgumentException ("ProjInvoiceRule Invalid value - " + ProjInvoiceRule + " - Reference_ID=383 - - - C - P - T - c"); if (ProjInvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProjInvoiceRule = ProjInvoiceRule.substring(0, 0); + } + set_Value (COLUMNNAME_ProjInvoiceRule, ProjInvoiceRule); + } + + /** Get Invoice Rule. + @return Invoice Rule for the project + */ + public String getProjInvoiceRule () + { + return (String)get_Value(COLUMNNAME_ProjInvoiceRule); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ProjectType.java b/base/src/org/compiere/model/X_C_ProjectType.java index 3c98c97924..a2cf5a66a5 100644 --- a/base/src/org/compiere/model/X_C_ProjectType.java +++ b/base/src/org/compiere/model/X_C_ProjectType.java @@ -1,204 +1,202 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ProjectType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ProjectType extends PO + +/** Generated Model for C_ProjectType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ProjectType extends PO implements I_C_ProjectType, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ProjectType_ID id -@param trxName transaction -*/ -public X_C_ProjectType (Properties ctx, int C_ProjectType_ID, String trxName) -{ -super (ctx, C_ProjectType_ID, trxName); -/** if (C_ProjectType_ID == 0) -{ -setC_ProjectType_ID (0); -setName (null); -setProjectCategory (null); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ProjectType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ProjectType */ -public static final String Table_Name="C_ProjectType"; - -/** AD_Table_ID=575 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ProjectType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Project Type. -@param C_ProjectType_ID Type of the project */ -public void setC_ProjectType_ID (int C_ProjectType_ID) -{ -if (C_ProjectType_ID < 1) throw new IllegalArgumentException ("C_ProjectType_ID is mandatory."); -set_ValueNoCheck ("C_ProjectType_ID", Integer.valueOf(C_ProjectType_ID)); -} -/** Get Project Type. -@return Type of the project */ -public int getC_ProjectType_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectType_ID */ -public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ProjectType (Properties ctx, int C_ProjectType_ID, String trxName) + { + super (ctx, C_ProjectType_ID, trxName); + /** if (C_ProjectType_ID == 0) { setC_ProjectType_ID (0); + setName (null); + setProjectCategory (null); +// N +} */ + } + + /** Load Constructor */ + public X_C_ProjectType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ProjectType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Project Type. + @param C_ProjectType_ID + Type of the project + */ + public void setC_ProjectType_ID (int C_ProjectType_ID) + { + if (C_ProjectType_ID < 1) + throw new IllegalArgumentException ("C_ProjectType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); + } + + /** Get Project Type. + @return Type of the project + */ + public int getC_ProjectType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** ProjectCategory AD_Reference_ID=288 */ -public static final int PROJECTCATEGORY_AD_Reference_ID=288; -/** Asset Project = A */ -public static final String PROJECTCATEGORY_AssetProject = "A"; -/** General = N */ -public static final String PROJECTCATEGORY_General = "N"; -/** Service (Charge) Project = S */ -public static final String PROJECTCATEGORY_ServiceChargeProject = "S"; -/** Work Order (Job) = W */ +public static final int PROJECTCATEGORY_AD_Reference_ID=288;/** Asset Project = A */ +public static final String PROJECTCATEGORY_AssetProject = "A";/** General = N */ +public static final String PROJECTCATEGORY_General = "N";/** Service (Charge) Project = S */ +public static final String PROJECTCATEGORY_ServiceChargeProject = "S";/** Work Order (Job) = W */ public static final String PROJECTCATEGORY_WorkOrderJob = "W"; -/** Set Project Category. -@param ProjectCategory Project Category */ -public void setProjectCategory (String ProjectCategory) -{ -if (ProjectCategory == null) throw new IllegalArgumentException ("ProjectCategory is mandatory"); -if (ProjectCategory.equals("A") || ProjectCategory.equals("N") || ProjectCategory.equals("S") || ProjectCategory.equals("W")); - else throw new IllegalArgumentException ("ProjectCategory Invalid value - " + ProjectCategory + " - Reference_ID=288 - A - N - S - W"); -if (ProjectCategory.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProjectCategory = ProjectCategory.substring(0,0); -} -set_ValueNoCheck ("ProjectCategory", ProjectCategory); -} -/** Get Project Category. -@return Project Category */ -public String getProjectCategory() -{ -return (String)get_Value("ProjectCategory"); -} -/** Column name ProjectCategory */ -public static final String COLUMNNAME_ProjectCategory = "ProjectCategory"; -} + /** Set Project Category. + @param ProjectCategory + Project Category + */ + public void setProjectCategory (String ProjectCategory) + { +if (ProjectCategory == null) throw new IllegalArgumentException ("ProjectCategory is mandatory");if (ProjectCategory.equals("A") || ProjectCategory.equals("N") || ProjectCategory.equals("S") || ProjectCategory.equals("W")); else throw new IllegalArgumentException ("ProjectCategory Invalid value - " + ProjectCategory + " - Reference_ID=288 - A - N - S - W"); if (ProjectCategory.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProjectCategory = ProjectCategory.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_ProjectCategory, ProjectCategory); + } + + /** Get Project Category. + @return Project Category + */ + public String getProjectCategory () + { + return (String)get_Value(COLUMNNAME_ProjectCategory); + } +} \ No newline at end of file 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 ea2664d8a5..9b55cbfcb4 100644 --- a/base/src/org/compiere/model/X_C_Project_Acct.java +++ b/base/src/org/compiere/model/X_C_Project_Acct.java @@ -1,157 +1,192 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Project_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Project_Acct extends PO + +/** Generated Model for C_Project_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Project_Acct extends PO implements I_C_Project_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Project_Acct_ID id -@param trxName transaction -*/ -public X_C_Project_Acct (Properties ctx, int C_Project_Acct_ID, String trxName) -{ -super (ctx, C_Project_Acct_ID, trxName); -/** if (C_Project_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Project_ID (0); -setPJ_Asset_Acct (0); -setPJ_WIP_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Project_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Project_Acct */ -public static final String Table_Name="C_Project_Acct"; - -/** AD_Table_ID=204 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Project_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID < 1) throw new IllegalArgumentException ("C_Project_ID is mandatory."); -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Project Asset. -@param PJ_Asset_Acct Project Asset Account */ -public void setPJ_Asset_Acct (int PJ_Asset_Acct) -{ -set_Value ("PJ_Asset_Acct", Integer.valueOf(PJ_Asset_Acct)); -} -/** Get Project Asset. -@return Project Asset Account */ -public int getPJ_Asset_Acct() -{ -Integer ii = (Integer)get_Value("PJ_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PJ_Asset_Acct */ -public static final String COLUMNNAME_PJ_Asset_Acct = "PJ_Asset_Acct"; -/** Set Work In Progress. -@param PJ_WIP_Acct Account for Work in Progress */ -public void setPJ_WIP_Acct (int PJ_WIP_Acct) -{ -set_Value ("PJ_WIP_Acct", Integer.valueOf(PJ_WIP_Acct)); -} -/** Get Work In Progress. -@return Account for Work in Progress */ -public int getPJ_WIP_Acct() -{ -Integer ii = (Integer)get_Value("PJ_WIP_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PJ_WIP_Acct */ -public static final String COLUMNNAME_PJ_WIP_Acct = "PJ_WIP_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Project_Acct (Properties ctx, int C_Project_Acct_ID, String trxName) + { + super (ctx, C_Project_Acct_ID, trxName); + /** if (C_Project_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_Project_ID (0); + setPJ_Asset_Acct (0); + setPJ_WIP_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_Project_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Project_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + throw new IllegalArgumentException ("C_Project_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Asset. + @param PJ_Asset_Acct + Project Asset Account + */ + public void setPJ_Asset_Acct (int PJ_Asset_Acct) + { + set_Value (COLUMNNAME_PJ_Asset_Acct, Integer.valueOf(PJ_Asset_Acct)); + } + + /** Get Project Asset. + @return Project Asset Account + */ + public int getPJ_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PJ_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Work In Progress. + @param PJ_WIP_Acct + Account for Work in Progress + */ + public void setPJ_WIP_Acct (int PJ_WIP_Acct) + { + set_Value (COLUMNNAME_PJ_WIP_Acct, Integer.valueOf(PJ_WIP_Acct)); + } + + /** Get Work In Progress. + @return Account for Work in Progress + */ + public int getPJ_WIP_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PJ_WIP_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Recurring.java b/base/src/org/compiere/model/X_C_Recurring.java index a4958b1681..9b59e04c5a 100644 --- a/base/src/org/compiere/model/X_C_Recurring.java +++ b/base/src/org/compiere/model/X_C_Recurring.java @@ -1,428 +1,461 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Recurring - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Recurring extends PO + +/** Generated Model for C_Recurring + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Recurring extends PO implements I_C_Recurring, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Recurring_ID id -@param trxName transaction -*/ -public X_C_Recurring (Properties ctx, int C_Recurring_ID, String trxName) -{ -super (ctx, C_Recurring_ID, trxName); -/** if (C_Recurring_ID == 0) -{ -setC_Recurring_ID (0); -setDateNextRun (new Timestamp(System.currentTimeMillis())); -setFrequencyType (null); // M -setName (null); -setRecurringType (null); -setRunsMax (0); -setRunsRemaining (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Recurring (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Recurring */ -public static final String Table_Name="C_Recurring"; - -/** AD_Table_ID=574 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Recurring[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Recurring. -@param C_Recurring_ID Recurring Document */ -public void setC_Recurring_ID (int C_Recurring_ID) -{ -if (C_Recurring_ID < 1) throw new IllegalArgumentException ("C_Recurring_ID is mandatory."); -set_ValueNoCheck ("C_Recurring_ID", Integer.valueOf(C_Recurring_ID)); -} -/** Get Recurring. -@return Recurring Document */ -public int getC_Recurring_ID() -{ -Integer ii = (Integer)get_Value("C_Recurring_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Recurring_ID */ -public static final String COLUMNNAME_C_Recurring_ID = "C_Recurring_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_ValueNoCheck ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -if (DateNextRun == null) throw new IllegalArgumentException ("DateNextRun is mandatory."); -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Recurring (Properties ctx, int C_Recurring_ID, String trxName) + { + super (ctx, C_Recurring_ID, trxName); + /** if (C_Recurring_ID == 0) { setC_Recurring_ID (0); + setDateNextRun (new Timestamp(System.currentTimeMillis())); + setFrequencyType (null); +// M + setName (null); + setRecurringType (null); + setRunsMax (0); + setRunsRemaining (0); +} */ + } + + /** Load Constructor */ + public X_C_Recurring (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Recurring[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Recurring. + @param C_Recurring_ID + Recurring Document + */ + public void setC_Recurring_ID (int C_Recurring_ID) + { + if (C_Recurring_ID < 1) + throw new IllegalArgumentException ("C_Recurring_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, Integer.valueOf(C_Recurring_ID)); + } + + /** Get Recurring. + @return Recurring Document + */ + public int getC_Recurring_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Recurring_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_ValueNoCheck (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + if (DateNextRun == null) + throw new IllegalArgumentException ("DateNextRun is mandatory."); + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=283 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=283; -/** Daily = D */ -public static final String FREQUENCYTYPE_Daily = "D"; -/** Monthly = M */ -public static final String FREQUENCYTYPE_Monthly = "M"; -/** Quarterly = Q */ -public static final String FREQUENCYTYPE_Quarterly = "Q"; -/** Weekly = W */ +public static final int FREQUENCYTYPE_AD_Reference_ID=283;/** Daily = D */ +public static final String FREQUENCYTYPE_Daily = "D";/** Monthly = M */ +public static final String FREQUENCYTYPE_Monthly = "M";/** Quarterly = Q */ +public static final String FREQUENCYTYPE_Quarterly = "Q";/** Weekly = W */ public static final String FREQUENCYTYPE_Weekly = "W"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("M") || FrequencyType.equals("Q") || FrequencyType.equals("W")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=283 - D - M - Q - W"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Journal Batch. -@param GL_JournalBatch_ID General Ledger Journal Batch */ -public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) -{ -if (GL_JournalBatch_ID <= 0) set_Value ("GL_JournalBatch_ID", null); - else -set_Value ("GL_JournalBatch_ID", Integer.valueOf(GL_JournalBatch_ID)); -} -/** Get Journal Batch. -@return General Ledger Journal Batch */ -public int getGL_JournalBatch_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalBatch_ID */ -public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("M") || FrequencyType.equals("Q") || FrequencyType.equals("W")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=283 - D - M - Q - W"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID <= 0) set_Value (COLUMNNAME_GL_JournalBatch_ID, null); + else + set_Value (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** RecurringType AD_Reference_ID=282 */ -public static final int RECURRINGTYPE_AD_Reference_ID=282; -/** GL Journal = G */ -public static final String RECURRINGTYPE_GLJournal = "G"; -/** Invoice = I */ -public static final String RECURRINGTYPE_Invoice = "I"; -/** Project = J */ -public static final String RECURRINGTYPE_Project = "J"; -/** Order = O */ +public static final int RECURRINGTYPE_AD_Reference_ID=282;/** GL Journal = G */ +public static final String RECURRINGTYPE_GLJournal = "G";/** Invoice = I */ +public static final String RECURRINGTYPE_Invoice = "I";/** Project = J */ +public static final String RECURRINGTYPE_Project = "J";/** Order = O */ public static final String RECURRINGTYPE_Order = "O"; -/** Set Recurring Type. -@param RecurringType Type of Recurring Document */ -public void setRecurringType (String RecurringType) -{ -if (RecurringType == null) throw new IllegalArgumentException ("RecurringType is mandatory"); -if (RecurringType.equals("G") || RecurringType.equals("I") || RecurringType.equals("J") || RecurringType.equals("O")); - else throw new IllegalArgumentException ("RecurringType Invalid value - " + RecurringType + " - Reference_ID=282 - G - I - J - O"); -if (RecurringType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RecurringType = RecurringType.substring(0,0); -} -set_Value ("RecurringType", RecurringType); -} -/** Get Recurring Type. -@return Type of Recurring Document */ -public String getRecurringType() -{ -return (String)get_Value("RecurringType"); -} -/** Column name RecurringType */ -public static final String COLUMNNAME_RecurringType = "RecurringType"; -/** Set Maximum Runs. -@param RunsMax Number of recurring runs */ -public void setRunsMax (int RunsMax) -{ -set_Value ("RunsMax", Integer.valueOf(RunsMax)); -} -/** Get Maximum Runs. -@return Number of recurring runs */ -public int getRunsMax() -{ -Integer ii = (Integer)get_Value("RunsMax"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RunsMax */ -public static final String COLUMNNAME_RunsMax = "RunsMax"; -/** Set Remaining Runs. -@param RunsRemaining Number of recurring runs remaining */ -public void setRunsRemaining (int RunsRemaining) -{ -set_ValueNoCheck ("RunsRemaining", Integer.valueOf(RunsRemaining)); -} -/** Get Remaining Runs. -@return Number of recurring runs remaining */ -public int getRunsRemaining() -{ -Integer ii = (Integer)get_Value("RunsRemaining"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RunsRemaining */ -public static final String COLUMNNAME_RunsRemaining = "RunsRemaining"; -} + /** Set Recurring Type. + @param RecurringType + Type of Recurring Document + */ + public void setRecurringType (String RecurringType) + { +if (RecurringType == null) throw new IllegalArgumentException ("RecurringType is mandatory");if (RecurringType.equals("G") || RecurringType.equals("I") || RecurringType.equals("J") || RecurringType.equals("O")); else throw new IllegalArgumentException ("RecurringType Invalid value - " + RecurringType + " - Reference_ID=282 - G - I - J - O"); if (RecurringType.length() > 1) + { + log.warning("Length > 1 - truncated"); + RecurringType = RecurringType.substring(0, 0); + } + set_Value (COLUMNNAME_RecurringType, RecurringType); + } + + /** Get Recurring Type. + @return Type of Recurring Document + */ + public String getRecurringType () + { + return (String)get_Value(COLUMNNAME_RecurringType); + } + + /** Set Maximum Runs. + @param RunsMax + Number of recurring runs + */ + public void setRunsMax (int RunsMax) + { + set_Value (COLUMNNAME_RunsMax, Integer.valueOf(RunsMax)); + } + + /** Get Maximum Runs. + @return Number of recurring runs + */ + public int getRunsMax () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RunsMax); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Remaining Runs. + @param RunsRemaining + Number of recurring runs remaining + */ + public void setRunsRemaining (int RunsRemaining) + { + set_ValueNoCheck (COLUMNNAME_RunsRemaining, Integer.valueOf(RunsRemaining)); + } + + /** Get Remaining Runs. + @return Number of recurring runs remaining + */ + public int getRunsRemaining () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RunsRemaining); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 4201549a9b..711001f37b 100644 --- a/base/src/org/compiere/model/X_C_Recurring_Run.java +++ b/base/src/org/compiere/model/X_C_Recurring_Run.java @@ -1,227 +1,261 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Recurring_Run - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Recurring_Run extends PO + +/** Generated Model for C_Recurring_Run + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Recurring_Run extends PO implements I_C_Recurring_Run, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Recurring_Run_ID id -@param trxName transaction -*/ -public X_C_Recurring_Run (Properties ctx, int C_Recurring_Run_ID, String trxName) -{ -super (ctx, C_Recurring_Run_ID, trxName); -/** if (C_Recurring_Run_ID == 0) -{ -setC_Recurring_ID (0); -setC_Recurring_Run_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Recurring_Run (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Recurring_Run */ -public static final String Table_Name="C_Recurring_Run"; - -/** AD_Table_ID=573 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Recurring_Run[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_ValueNoCheck ("C_Payment_ID", null); - else -set_ValueNoCheck ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_ValueNoCheck ("C_Project_ID", null); - else -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Recurring. -@param C_Recurring_ID Recurring Document */ -public void setC_Recurring_ID (int C_Recurring_ID) -{ -if (C_Recurring_ID < 1) throw new IllegalArgumentException ("C_Recurring_ID is mandatory."); -set_ValueNoCheck ("C_Recurring_ID", Integer.valueOf(C_Recurring_ID)); -} -/** Get Recurring. -@return Recurring Document */ -public int getC_Recurring_ID() -{ -Integer ii = (Integer)get_Value("C_Recurring_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Recurring_ID */ -public static final String COLUMNNAME_C_Recurring_ID = "C_Recurring_ID"; -/** Set Recurring Run. -@param C_Recurring_Run_ID Recurring Document Run */ -public void setC_Recurring_Run_ID (int C_Recurring_Run_ID) -{ -if (C_Recurring_Run_ID < 1) throw new IllegalArgumentException ("C_Recurring_Run_ID is mandatory."); -set_ValueNoCheck ("C_Recurring_Run_ID", Integer.valueOf(C_Recurring_Run_ID)); -} -/** Get Recurring Run. -@return Recurring Document Run */ -public int getC_Recurring_Run_ID() -{ -Integer ii = (Integer)get_Value("C_Recurring_Run_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Recurring_Run_ID */ -public static final String COLUMNNAME_C_Recurring_Run_ID = "C_Recurring_Run_ID"; -/** Set Document Date. -@param DateDoc Date of the Document */ -public void setDateDoc (Timestamp DateDoc) -{ -set_Value ("DateDoc", DateDoc); -} -/** Get Document Date. -@return Date of the Document */ -public Timestamp getDateDoc() -{ -return (Timestamp)get_Value("DateDoc"); -} -/** Column name DateDoc */ -public static final String COLUMNNAME_DateDoc = "DateDoc"; -/** Set Journal Batch. -@param GL_JournalBatch_ID General Ledger Journal Batch */ -public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) -{ -if (GL_JournalBatch_ID <= 0) set_ValueNoCheck ("GL_JournalBatch_ID", null); - else -set_ValueNoCheck ("GL_JournalBatch_ID", Integer.valueOf(GL_JournalBatch_ID)); -} -/** Get Journal Batch. -@return General Ledger Journal Batch */ -public int getGL_JournalBatch_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalBatch_ID */ -public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Recurring_Run (Properties ctx, int C_Recurring_Run_ID, String trxName) + { + super (ctx, C_Recurring_Run_ID, trxName); + /** if (C_Recurring_Run_ID == 0) { setC_Recurring_ID (0); + setC_Recurring_Run_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_Recurring_Run (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Recurring_Run[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Recurring getI_C_Recurring() throws Exception + { + 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 e; + } + return result; + } + + /** Set Recurring. + @param C_Recurring_ID + Recurring Document + */ + public void setC_Recurring_ID (int C_Recurring_ID) + { + if (C_Recurring_ID < 1) + throw new IllegalArgumentException ("C_Recurring_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Recurring_ID, Integer.valueOf(C_Recurring_ID)); + } + + /** Get Recurring. + @return Recurring Document + */ + public int getC_Recurring_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Recurring_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Recurring Run. + @param C_Recurring_Run_ID + Recurring Document Run + */ + public void setC_Recurring_Run_ID (int C_Recurring_Run_ID) + { + if (C_Recurring_Run_ID < 1) + throw new IllegalArgumentException ("C_Recurring_Run_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Recurring_Run_ID, Integer.valueOf(C_Recurring_Run_ID)); + } + + /** Get Recurring Run. + @return Recurring Document Run + */ + public int getC_Recurring_Run_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Recurring_Run_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID <= 0) set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Region.java b/base/src/org/compiere/model/X_C_Region.java index 086fa0df62..1868f4742c 100644 --- a/base/src/org/compiere/model/X_C_Region.java +++ b/base/src/org/compiere/model/X_C_Region.java @@ -1,189 +1,213 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Region - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Region extends PO + +/** Generated Model for C_Region + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Region extends PO implements I_C_Region, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Region_ID id -@param trxName transaction -*/ -public X_C_Region (Properties ctx, int C_Region_ID, String trxName) -{ -super (ctx, C_Region_ID, trxName); -/** if (C_Region_ID == 0) -{ -setC_Country_ID (0); -setC_Region_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Region (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Region */ -public static final String Table_Name="C_Region"; - -/** AD_Table_ID=164 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Region[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID < 1) throw new IllegalArgumentException ("C_Country_ID is mandatory."); -set_ValueNoCheck ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID < 1) throw new IllegalArgumentException ("C_Region_ID is mandatory."); -set_ValueNoCheck ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Region (Properties ctx, int C_Region_ID, String trxName) + { + super (ctx, C_Region_ID, trxName); + /** if (C_Region_ID == 0) { setC_Country_ID (0); + setC_Region_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Region (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Region[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID < 1) + throw new IllegalArgumentException ("C_Country_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID < 1) + throw new IllegalArgumentException ("C_Region_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Remuneration.java b/base/src/org/compiere/model/X_C_Remuneration.java index f13d69589b..baa5fce883 100644 --- a/base/src/org/compiere/model/X_C_Remuneration.java +++ b/base/src/org/compiere/model/X_C_Remuneration.java @@ -1,297 +1,316 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Remuneration - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Remuneration extends PO + +/** Generated Model for C_Remuneration + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Remuneration extends PO implements I_C_Remuneration, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Remuneration_ID id -@param trxName transaction -*/ -public X_C_Remuneration (Properties ctx, int C_Remuneration_ID, String trxName) -{ -super (ctx, C_Remuneration_ID, trxName); -/** if (C_Remuneration_ID == 0) -{ -setC_Remuneration_ID (0); -setGrossRAmt (Env.ZERO); -setGrossRCost (Env.ZERO); -setName (null); -setOvertimeAmt (Env.ZERO); -setOvertimeCost (Env.ZERO); -setRemunerationType (null); -setStandardHours (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Remuneration (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Remuneration */ -public static final String Table_Name="C_Remuneration"; - -/** AD_Table_ID=792 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Remuneration[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Remuneration. -@param C_Remuneration_ID Wage or Salary */ -public void setC_Remuneration_ID (int C_Remuneration_ID) -{ -if (C_Remuneration_ID < 1) throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); -set_ValueNoCheck ("C_Remuneration_ID", Integer.valueOf(C_Remuneration_ID)); -} -/** Get Remuneration. -@return Wage or Salary */ -public int getC_Remuneration_ID() -{ -Integer ii = (Integer)get_Value("C_Remuneration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Remuneration_ID */ -public static final String COLUMNNAME_C_Remuneration_ID = "C_Remuneration_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Gross Amount. -@param GrossRAmt Gross Remuneration Amount */ -public void setGrossRAmt (BigDecimal GrossRAmt) -{ -if (GrossRAmt == null) throw new IllegalArgumentException ("GrossRAmt is mandatory."); -set_Value ("GrossRAmt", GrossRAmt); -} -/** Get Gross Amount. -@return Gross Remuneration Amount */ -public BigDecimal getGrossRAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("GrossRAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrossRAmt */ -public static final String COLUMNNAME_GrossRAmt = "GrossRAmt"; -/** Set Gross Cost. -@param GrossRCost Gross Remuneration Costs */ -public void setGrossRCost (BigDecimal GrossRCost) -{ -if (GrossRCost == null) throw new IllegalArgumentException ("GrossRCost is mandatory."); -set_Value ("GrossRCost", GrossRCost); -} -/** Get Gross Cost. -@return Gross Remuneration Costs */ -public BigDecimal getGrossRCost() -{ -BigDecimal bd = (BigDecimal)get_Value("GrossRCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrossRCost */ -public static final String COLUMNNAME_GrossRCost = "GrossRCost"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Overtime Amount. -@param OvertimeAmt Hourly Overtime Rate */ -public void setOvertimeAmt (BigDecimal OvertimeAmt) -{ -if (OvertimeAmt == null) throw new IllegalArgumentException ("OvertimeAmt is mandatory."); -set_Value ("OvertimeAmt", OvertimeAmt); -} -/** Get Overtime Amount. -@return Hourly Overtime Rate */ -public BigDecimal getOvertimeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OvertimeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OvertimeAmt */ -public static final String COLUMNNAME_OvertimeAmt = "OvertimeAmt"; -/** Set Overtime Cost. -@param OvertimeCost Hourly Overtime Cost */ -public void setOvertimeCost (BigDecimal OvertimeCost) -{ -if (OvertimeCost == null) throw new IllegalArgumentException ("OvertimeCost is mandatory."); -set_Value ("OvertimeCost", OvertimeCost); -} -/** Get Overtime Cost. -@return Hourly Overtime Cost */ -public BigDecimal getOvertimeCost() -{ -BigDecimal bd = (BigDecimal)get_Value("OvertimeCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OvertimeCost */ -public static final String COLUMNNAME_OvertimeCost = "OvertimeCost"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Remuneration (Properties ctx, int C_Remuneration_ID, String trxName) + { + super (ctx, C_Remuneration_ID, trxName); + /** if (C_Remuneration_ID == 0) { setC_Remuneration_ID (0); + setGrossRAmt (Env.ZERO); + setGrossRCost (Env.ZERO); + setName (null); + setOvertimeAmt (Env.ZERO); + setOvertimeCost (Env.ZERO); + setRemunerationType (null); + setStandardHours (0); +} */ + } + + /** Load Constructor */ + public X_C_Remuneration (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Remuneration[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Remuneration. + @param C_Remuneration_ID + Wage or Salary + */ + public void setC_Remuneration_ID (int C_Remuneration_ID) + { + if (C_Remuneration_ID < 1) + throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); + } + + /** Get Remuneration. + @return Wage or Salary + */ + public int getC_Remuneration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Remuneration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Gross Amount. + @param GrossRAmt + Gross Remuneration Amount + */ + public void setGrossRAmt (BigDecimal GrossRAmt) + { + if (GrossRAmt == null) + throw new IllegalArgumentException ("GrossRAmt is mandatory."); + set_Value (COLUMNNAME_GrossRAmt, GrossRAmt); + } + + /** Get Gross Amount. + @return Gross Remuneration Amount + */ + public BigDecimal getGrossRAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrossRAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Gross Cost. + @param GrossRCost + Gross Remuneration Costs + */ + public void setGrossRCost (BigDecimal GrossRCost) + { + if (GrossRCost == null) + throw new IllegalArgumentException ("GrossRCost is mandatory."); + set_Value (COLUMNNAME_GrossRCost, GrossRCost); + } + + /** Get Gross Cost. + @return Gross Remuneration Costs + */ + public BigDecimal getGrossRCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrossRCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Overtime Amount. + @param OvertimeAmt + Hourly Overtime Rate + */ + public void setOvertimeAmt (BigDecimal OvertimeAmt) + { + if (OvertimeAmt == null) + throw new IllegalArgumentException ("OvertimeAmt is mandatory."); + set_Value (COLUMNNAME_OvertimeAmt, OvertimeAmt); + } + + /** Get Overtime Amount. + @return Hourly Overtime Rate + */ + public BigDecimal getOvertimeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OvertimeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Overtime Cost. + @param OvertimeCost + Hourly Overtime Cost + */ + public void setOvertimeCost (BigDecimal OvertimeCost) + { + if (OvertimeCost == null) + throw new IllegalArgumentException ("OvertimeCost is mandatory."); + set_Value (COLUMNNAME_OvertimeCost, OvertimeCost); + } + + /** Get Overtime Cost. + @return Hourly Overtime Cost + */ + public BigDecimal getOvertimeCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OvertimeCost); + if (bd == null) + return Env.ZERO; + return bd; + } /** RemunerationType AD_Reference_ID=346 */ -public static final int REMUNERATIONTYPE_AD_Reference_ID=346; -/** Bi-Weekly = B */ -public static final String REMUNERATIONTYPE_Bi_Weekly = "B"; -/** Daily = D */ -public static final String REMUNERATIONTYPE_Daily = "D"; -/** Hourly = H */ -public static final String REMUNERATIONTYPE_Hourly = "H"; -/** Monthly = M */ -public static final String REMUNERATIONTYPE_Monthly = "M"; -/** Twice Monthly = T */ -public static final String REMUNERATIONTYPE_TwiceMonthly = "T"; -/** Weekly = W */ +public static final int REMUNERATIONTYPE_AD_Reference_ID=346;/** Bi-Weekly = B */ +public static final String REMUNERATIONTYPE_Bi_Weekly = "B";/** Daily = D */ +public static final String REMUNERATIONTYPE_Daily = "D";/** Hourly = H */ +public static final String REMUNERATIONTYPE_Hourly = "H";/** Monthly = M */ +public static final String REMUNERATIONTYPE_Monthly = "M";/** Twice Monthly = T */ +public static final String REMUNERATIONTYPE_TwiceMonthly = "T";/** Weekly = W */ public static final String REMUNERATIONTYPE_Weekly = "W"; -/** Set Remuneration Type. -@param RemunerationType Type of Remuneration */ -public void setRemunerationType (String RemunerationType) -{ -if (RemunerationType == null) throw new IllegalArgumentException ("RemunerationType is mandatory"); -if (RemunerationType.equals("B") || RemunerationType.equals("D") || RemunerationType.equals("H") || RemunerationType.equals("M") || RemunerationType.equals("T") || RemunerationType.equals("W")); - else throw new IllegalArgumentException ("RemunerationType Invalid value - " + RemunerationType + " - Reference_ID=346 - B - D - H - M - T - W"); -if (RemunerationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RemunerationType = RemunerationType.substring(0,0); -} -set_Value ("RemunerationType", RemunerationType); -} -/** Get Remuneration Type. -@return Type of Remuneration */ -public String getRemunerationType() -{ -return (String)get_Value("RemunerationType"); -} -/** Column name RemunerationType */ -public static final String COLUMNNAME_RemunerationType = "RemunerationType"; -/** Set Standard Hours. -@param StandardHours Standard Work Hours based on Remuneration Type */ -public void setStandardHours (int StandardHours) -{ -set_Value ("StandardHours", Integer.valueOf(StandardHours)); -} -/** Get Standard Hours. -@return Standard Work Hours based on Remuneration Type */ -public int getStandardHours() -{ -Integer ii = (Integer)get_Value("StandardHours"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StandardHours */ -public static final String COLUMNNAME_StandardHours = "StandardHours"; -} + /** Set Remuneration Type. + @param RemunerationType + Type of Remuneration + */ + public void setRemunerationType (String RemunerationType) + { +if (RemunerationType == null) throw new IllegalArgumentException ("RemunerationType is mandatory");if (RemunerationType.equals("B") || RemunerationType.equals("D") || RemunerationType.equals("H") || RemunerationType.equals("M") || RemunerationType.equals("T") || RemunerationType.equals("W")); else throw new IllegalArgumentException ("RemunerationType Invalid value - " + RemunerationType + " - Reference_ID=346 - B - D - H - M - T - W"); if (RemunerationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + RemunerationType = RemunerationType.substring(0, 0); + } + set_Value (COLUMNNAME_RemunerationType, RemunerationType); + } + + /** Get Remuneration Type. + @return Type of Remuneration + */ + public String getRemunerationType () + { + return (String)get_Value(COLUMNNAME_RemunerationType); + } + + /** Set Standard Hours. + @param StandardHours + Standard Work Hours based on Remuneration Type + */ + public void setStandardHours (int StandardHours) + { + set_Value (COLUMNNAME_StandardHours, Integer.valueOf(StandardHours)); + } + + /** Get Standard Hours. + @return Standard Work Hours based on Remuneration Type + */ + public int getStandardHours () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StandardHours); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RevenueRecognition.java b/base/src/org/compiere/model/X_C_RevenueRecognition.java index f4430de534..ae646da45f 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition.java @@ -1,220 +1,217 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RevenueRecognition - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RevenueRecognition extends PO + +/** Generated Model for C_RevenueRecognition + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RevenueRecognition extends PO implements I_C_RevenueRecognition, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RevenueRecognition_ID id -@param trxName transaction -*/ -public X_C_RevenueRecognition (Properties ctx, int C_RevenueRecognition_ID, String trxName) -{ -super (ctx, C_RevenueRecognition_ID, trxName); -/** if (C_RevenueRecognition_ID == 0) -{ -setC_RevenueRecognition_ID (0); -setIsTimeBased (false); -setName (null); -setRecognitionFrequency (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RevenueRecognition (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RevenueRecognition */ -public static final String Table_Name="C_RevenueRecognition"; - -/** AD_Table_ID=336 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Revenue Recognition. -@param C_RevenueRecognition_ID Method for recording revenue */ -public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) -{ -if (C_RevenueRecognition_ID < 1) throw new IllegalArgumentException ("C_RevenueRecognition_ID is mandatory."); -set_ValueNoCheck ("C_RevenueRecognition_ID", Integer.valueOf(C_RevenueRecognition_ID)); -} -/** Get Revenue Recognition. -@return Method for recording revenue */ -public int getC_RevenueRecognition_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RevenueRecognition_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Time based. -@param IsTimeBased Time based Revenue Recognition rather than Service Level based */ -public void setIsTimeBased (boolean IsTimeBased) -{ -set_Value ("IsTimeBased", Boolean.valueOf(IsTimeBased)); -} -/** Get Time based. -@return Time based Revenue Recognition rather than Service Level based */ -public boolean isTimeBased() -{ -Object oo = get_Value("IsTimeBased"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTimeBased */ -public static final String COLUMNNAME_IsTimeBased = "IsTimeBased"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Number of Months. -@param NoMonths Number of Months */ -public void setNoMonths (int NoMonths) -{ -set_Value ("NoMonths", Integer.valueOf(NoMonths)); -} -/** Get Number of Months. -@return Number of Months */ -public int getNoMonths() -{ -Integer ii = (Integer)get_Value("NoMonths"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NoMonths */ -public static final String COLUMNNAME_NoMonths = "NoMonths"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RevenueRecognition (Properties ctx, int C_RevenueRecognition_ID, String trxName) + { + super (ctx, C_RevenueRecognition_ID, trxName); + /** if (C_RevenueRecognition_ID == 0) { setC_RevenueRecognition_ID (0); + setIsTimeBased (false); + setName (null); + setRecognitionFrequency (null); +} */ + } + + /** Load Constructor */ + public X_C_RevenueRecognition (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Revenue Recognition. + @param C_RevenueRecognition_ID + Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) + { + if (C_RevenueRecognition_ID < 1) + throw new IllegalArgumentException ("C_RevenueRecognition_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); + } + + /** Get Revenue Recognition. + @return Method for recording revenue + */ + public int getC_RevenueRecognition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Time based. + @param IsTimeBased + Time based Revenue Recognition rather than Service Level based + */ + public void setIsTimeBased (boolean IsTimeBased) + { + set_Value (COLUMNNAME_IsTimeBased, Boolean.valueOf(IsTimeBased)); + } + + /** Get Time based. + @return Time based Revenue Recognition rather than Service Level based + */ + public boolean isTimeBased () + { + Object oo = get_Value(COLUMNNAME_IsTimeBased); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Number of Months. + @param NoMonths Number of Months */ + public void setNoMonths (int NoMonths) + { + set_Value (COLUMNNAME_NoMonths, Integer.valueOf(NoMonths)); + } + + /** Get Number of Months. +@return Number of Months */ + public int getNoMonths () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NoMonths); + if (ii == null) + return 0; + return ii.intValue(); + } /** RecognitionFrequency AD_Reference_ID=196 */ -public static final int RECOGNITIONFREQUENCY_AD_Reference_ID=196; -/** Month = M */ -public static final String RECOGNITIONFREQUENCY_Month = "M"; -/** Quarter = Q */ -public static final String RECOGNITIONFREQUENCY_Quarter = "Q"; -/** Year = Y */ +public static final int RECOGNITIONFREQUENCY_AD_Reference_ID=196;/** Month = M */ +public static final String RECOGNITIONFREQUENCY_Month = "M";/** Quarter = Q */ +public static final String RECOGNITIONFREQUENCY_Quarter = "Q";/** Year = Y */ public static final String RECOGNITIONFREQUENCY_Year = "Y"; -/** Set Recognition frequency. -@param RecognitionFrequency Recognition frequency */ -public void setRecognitionFrequency (String RecognitionFrequency) -{ -if (RecognitionFrequency == null) throw new IllegalArgumentException ("RecognitionFrequency is mandatory"); -if (RecognitionFrequency.equals("M") || RecognitionFrequency.equals("Q") || RecognitionFrequency.equals("Y")); - else throw new IllegalArgumentException ("RecognitionFrequency Invalid value - " + RecognitionFrequency + " - Reference_ID=196 - M - Q - Y"); -if (RecognitionFrequency.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RecognitionFrequency = RecognitionFrequency.substring(0,0); -} -set_Value ("RecognitionFrequency", RecognitionFrequency); -} -/** Get Recognition frequency. -@return Recognition frequency */ -public String getRecognitionFrequency() -{ -return (String)get_Value("RecognitionFrequency"); -} -/** Column name RecognitionFrequency */ -public static final String COLUMNNAME_RecognitionFrequency = "RecognitionFrequency"; -} + /** Set Recognition frequency. + @param RecognitionFrequency Recognition frequency */ + public void setRecognitionFrequency (String RecognitionFrequency) + { +if (RecognitionFrequency == null) throw new IllegalArgumentException ("RecognitionFrequency is mandatory");if (RecognitionFrequency.equals("M") || RecognitionFrequency.equals("Q") || RecognitionFrequency.equals("Y")); else throw new IllegalArgumentException ("RecognitionFrequency Invalid value - " + RecognitionFrequency + " - Reference_ID=196 - M - Q - Y"); if (RecognitionFrequency.length() > 1) + { + log.warning("Length > 1 - truncated"); + RecognitionFrequency = RecognitionFrequency.substring(0, 0); + } + set_Value (COLUMNNAME_RecognitionFrequency, RecognitionFrequency); + } + + /** Get Recognition frequency. +@return Recognition frequency */ + public String getRecognitionFrequency () + { + return (String)get_Value(COLUMNNAME_RecognitionFrequency); + } +} \ No newline at end of file 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 dc51d9492f..6e02a7409e 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition_Plan.java @@ -1,253 +1,328 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RevenueRecognition_Plan - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RevenueRecognition_Plan extends PO + +/** Generated Model for C_RevenueRecognition_Plan + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RevenueRecognition_Plan extends PO implements I_C_RevenueRecognition_Plan, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RevenueRecognition_Plan_ID id -@param trxName transaction -*/ -public X_C_RevenueRecognition_Plan (Properties ctx, int C_RevenueRecognition_Plan_ID, String trxName) -{ -super (ctx, C_RevenueRecognition_Plan_ID, trxName); -/** if (C_RevenueRecognition_Plan_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Currency_ID (0); -setC_InvoiceLine_ID (0); -setC_RevenueRecognition_ID (0); -setC_RevenueRecognition_Plan_ID (0); -setP_Revenue_Acct (0); -setRecognizedAmt (Env.ZERO); -setTotalAmt (Env.ZERO); -setUnEarnedRevenue_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RevenueRecognition_Plan (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RevenueRecognition_Plan */ -public static final String Table_Name="C_RevenueRecognition_Plan"; - -/** AD_Table_ID=443 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition_Plan[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID < 1) throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Revenue Recognition. -@param C_RevenueRecognition_ID Method for recording revenue */ -public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) -{ -if (C_RevenueRecognition_ID < 1) throw new IllegalArgumentException ("C_RevenueRecognition_ID is mandatory."); -set_ValueNoCheck ("C_RevenueRecognition_ID", Integer.valueOf(C_RevenueRecognition_ID)); -} -/** Get Revenue Recognition. -@return Method for recording revenue */ -public int getC_RevenueRecognition_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_RevenueRecognition_ID())); -} -/** Column name C_RevenueRecognition_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; -/** Set Revenue Recognition Plan. -@param C_RevenueRecognition_Plan_ID Plan for recognizing or recording revenue */ -public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) -{ -if (C_RevenueRecognition_Plan_ID < 1) throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); -set_ValueNoCheck ("C_RevenueRecognition_Plan_ID", Integer.valueOf(C_RevenueRecognition_Plan_ID)); -} -/** Get Revenue Recognition Plan. -@return Plan for recognizing or recording revenue */ -public int getC_RevenueRecognition_Plan_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_Plan_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RevenueRecognition_Plan_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_Plan_ID = "C_RevenueRecognition_Plan_ID"; -/** Set Product Revenue. -@param P_Revenue_Acct Account for Product Revenue (Sales Account) */ -public void setP_Revenue_Acct (int P_Revenue_Acct) -{ -set_ValueNoCheck ("P_Revenue_Acct", Integer.valueOf(P_Revenue_Acct)); -} -/** Get Product Revenue. -@return Account for Product Revenue (Sales Account) */ -public int getP_Revenue_Acct() -{ -Integer ii = (Integer)get_Value("P_Revenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Revenue_Acct */ -public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; -/** Set Recognized Amount. -@param RecognizedAmt Recognized Amount */ -public void setRecognizedAmt (BigDecimal RecognizedAmt) -{ -if (RecognizedAmt == null) throw new IllegalArgumentException ("RecognizedAmt is mandatory."); -set_ValueNoCheck ("RecognizedAmt", RecognizedAmt); -} -/** Get Recognized Amount. -@return Recognized Amount */ -public BigDecimal getRecognizedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RecognizedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RecognizedAmt */ -public static final String COLUMNNAME_RecognizedAmt = "RecognizedAmt"; -/** Set Total Amount. -@param TotalAmt Total Amount */ -public void setTotalAmt (BigDecimal TotalAmt) -{ -if (TotalAmt == null) throw new IllegalArgumentException ("TotalAmt is mandatory."); -set_ValueNoCheck ("TotalAmt", TotalAmt); -} -/** Get Total Amount. -@return Total Amount */ -public BigDecimal getTotalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalAmt */ -public static final String COLUMNNAME_TotalAmt = "TotalAmt"; -/** Set Unearned Revenue. -@param UnEarnedRevenue_Acct Account for unearned revenue */ -public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) -{ -set_ValueNoCheck ("UnEarnedRevenue_Acct", Integer.valueOf(UnEarnedRevenue_Acct)); -} -/** Get Unearned Revenue. -@return Account for unearned revenue */ -public int getUnEarnedRevenue_Acct() -{ -Integer ii = (Integer)get_Value("UnEarnedRevenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnEarnedRevenue_Acct */ -public static final String COLUMNNAME_UnEarnedRevenue_Acct = "UnEarnedRevenue_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RevenueRecognition_Plan (Properties ctx, int C_RevenueRecognition_Plan_ID, String trxName) + { + super (ctx, C_RevenueRecognition_Plan_ID, trxName); + /** if (C_RevenueRecognition_Plan_ID == 0) { setC_AcctSchema_ID (0); + setC_Currency_ID (0); + setC_InvoiceLine_ID (0); + setC_RevenueRecognition_ID (0); + setC_RevenueRecognition_Plan_ID (0); + setP_Revenue_Acct (0); + setRecognizedAmt (Env.ZERO); + setTotalAmt (Env.ZERO); + setUnEarnedRevenue_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_RevenueRecognition_Plan (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition_Plan[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID < 1) + throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception + { + 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 e; + } + return result; + } + + /** Set Revenue Recognition. + @param C_RevenueRecognition_ID + Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) + { + if (C_RevenueRecognition_ID < 1) + throw new IllegalArgumentException ("C_RevenueRecognition_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); + } + + /** Get Revenue Recognition. + @return Method for recording revenue + */ + public int getC_RevenueRecognition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_RevenueRecognition_ID())); + } + + /** Set Revenue Recognition Plan. + @param C_RevenueRecognition_Plan_ID + Plan for recognizing or recording revenue + */ + public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) + { + if (C_RevenueRecognition_Plan_ID < 1) + throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); + } + + /** Get Revenue Recognition Plan. + @return Plan for recognizing or recording revenue + */ + public int getC_RevenueRecognition_Plan_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_Plan_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Revenue. + @param P_Revenue_Acct + Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct) + { + set_ValueNoCheck (COLUMNNAME_P_Revenue_Acct, Integer.valueOf(P_Revenue_Acct)); + } + + /** Get Product Revenue. + @return Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Revenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Recognized Amount. + @param RecognizedAmt Recognized Amount */ + public void setRecognizedAmt (BigDecimal RecognizedAmt) + { + if (RecognizedAmt == null) + throw new IllegalArgumentException ("RecognizedAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_RecognizedAmt, RecognizedAmt); + } + + /** Get Recognized Amount. +@return Recognized Amount */ + public BigDecimal getRecognizedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RecognizedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Amount. + @param TotalAmt + Total Amount + */ + public void setTotalAmt (BigDecimal TotalAmt) + { + if (TotalAmt == null) + throw new IllegalArgumentException ("TotalAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalAmt, TotalAmt); + } + + /** Get Total Amount. + @return Total Amount + */ + public BigDecimal getTotalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Unearned Revenue. + @param UnEarnedRevenue_Acct + Account for unearned revenue + */ + public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) + { + set_ValueNoCheck (COLUMNNAME_UnEarnedRevenue_Acct, Integer.valueOf(UnEarnedRevenue_Acct)); + } + + /** Get Unearned Revenue. + @return Account for unearned revenue + */ + public int getUnEarnedRevenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnEarnedRevenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 440e66d098..f8591814ed 100644 --- a/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java +++ b/base/src/org/compiere/model/X_C_RevenueRecognition_Run.java @@ -1,165 +1,201 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RevenueRecognition_Run - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RevenueRecognition_Run extends PO + +/** Generated Model for C_RevenueRecognition_Run + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RevenueRecognition_Run extends PO implements I_C_RevenueRecognition_Run, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RevenueRecognition_Run_ID id -@param trxName transaction -*/ -public X_C_RevenueRecognition_Run (Properties ctx, int C_RevenueRecognition_Run_ID, String trxName) -{ -super (ctx, C_RevenueRecognition_Run_ID, trxName); -/** if (C_RevenueRecognition_Run_ID == 0) -{ -setC_RevenueRecognition_Plan_ID (0); -setC_RevenueRecognition_Run_ID (0); -setGL_Journal_ID (0); -setRecognizedAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RevenueRecognition_Run (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RevenueRecognition_Run */ -public static final String Table_Name="C_RevenueRecognition_Run"; - -/** AD_Table_ID=444 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition_Run[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Revenue Recognition Plan. -@param C_RevenueRecognition_Plan_ID Plan for recognizing or recording revenue */ -public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) -{ -if (C_RevenueRecognition_Plan_ID < 1) throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); -set_ValueNoCheck ("C_RevenueRecognition_Plan_ID", Integer.valueOf(C_RevenueRecognition_Plan_ID)); -} -/** Get Revenue Recognition Plan. -@return Plan for recognizing or recording revenue */ -public int getC_RevenueRecognition_Plan_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_Plan_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_RevenueRecognition_Plan_ID())); -} -/** Column name C_RevenueRecognition_Plan_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_Plan_ID = "C_RevenueRecognition_Plan_ID"; -/** Set Revenue Recognition Run. -@param C_RevenueRecognition_Run_ID Revenue Recognition Run or Process */ -public void setC_RevenueRecognition_Run_ID (int C_RevenueRecognition_Run_ID) -{ -if (C_RevenueRecognition_Run_ID < 1) throw new IllegalArgumentException ("C_RevenueRecognition_Run_ID is mandatory."); -set_ValueNoCheck ("C_RevenueRecognition_Run_ID", Integer.valueOf(C_RevenueRecognition_Run_ID)); -} -/** Get Revenue Recognition Run. -@return Revenue Recognition Run or Process */ -public int getC_RevenueRecognition_Run_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_Run_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RevenueRecognition_Run_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_Run_ID = "C_RevenueRecognition_Run_ID"; -/** Set Journal. -@param GL_Journal_ID General Ledger Journal */ -public void setGL_Journal_ID (int GL_Journal_ID) -{ -if (GL_Journal_ID < 1) throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); -set_ValueNoCheck ("GL_Journal_ID", Integer.valueOf(GL_Journal_ID)); -} -/** Get Journal. -@return General Ledger Journal */ -public int getGL_Journal_ID() -{ -Integer ii = (Integer)get_Value("GL_Journal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Journal_ID */ -public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; -/** Set Recognized Amount. -@param RecognizedAmt Recognized Amount */ -public void setRecognizedAmt (BigDecimal RecognizedAmt) -{ -if (RecognizedAmt == null) throw new IllegalArgumentException ("RecognizedAmt is mandatory."); -set_ValueNoCheck ("RecognizedAmt", RecognizedAmt); -} -/** Get Recognized Amount. -@return Recognized Amount */ -public BigDecimal getRecognizedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RecognizedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RecognizedAmt */ -public static final String COLUMNNAME_RecognizedAmt = "RecognizedAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RevenueRecognition_Run (Properties ctx, int C_RevenueRecognition_Run_ID, String trxName) + { + super (ctx, C_RevenueRecognition_Run_ID, trxName); + /** if (C_RevenueRecognition_Run_ID == 0) { setC_RevenueRecognition_Plan_ID (0); + setC_RevenueRecognition_Run_ID (0); + setGL_Journal_ID (0); + setRecognizedAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_RevenueRecognition_Run (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition_Run[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_RevenueRecognition_Plan getI_C_RevenueRecognition_Plan() throws Exception + { + 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 e; + } + return result; + } + + /** Set Revenue Recognition Plan. + @param C_RevenueRecognition_Plan_ID + Plan for recognizing or recording revenue + */ + public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) + { + if (C_RevenueRecognition_Plan_ID < 1) + throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); + } + + /** Get Revenue Recognition Plan. + @return Plan for recognizing or recording revenue + */ + public int getC_RevenueRecognition_Plan_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_Plan_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_RevenueRecognition_Plan_ID())); + } + + /** Set Revenue Recognition Run. + @param C_RevenueRecognition_Run_ID + Revenue Recognition Run or Process + */ + public void setC_RevenueRecognition_Run_ID (int C_RevenueRecognition_Run_ID) + { + if (C_RevenueRecognition_Run_ID < 1) + throw new IllegalArgumentException ("C_RevenueRecognition_Run_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Run_ID, Integer.valueOf(C_RevenueRecognition_Run_ID)); + } + + /** Get Revenue Recognition Run. + @return Revenue Recognition Run or Process + */ + public int getC_RevenueRecognition_Run_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_Run_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Journal getI_GL_Journal() throws Exception + { + 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 e; + } + return result; + } + + /** Set Journal. + @param GL_Journal_ID + General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID) + { + if (GL_Journal_ID < 1) + throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + } + + /** Get Journal. + @return General Ledger Journal + */ + public int getGL_Journal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Journal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Recognized Amount. + @param RecognizedAmt Recognized Amount */ + public void setRecognizedAmt (BigDecimal RecognizedAmt) + { + if (RecognizedAmt == null) + throw new IllegalArgumentException ("RecognizedAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_RecognizedAmt, RecognizedAmt); + } + + /** Get Recognized Amount. +@return Recognized Amount */ + public BigDecimal getRecognizedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RecognizedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RfQ.java b/base/src/org/compiere/model/X_C_RfQ.java index c3d1dac827..7ae3841878 100644 --- a/base/src/org/compiere/model/X_C_RfQ.java +++ b/base/src/org/compiere/model/X_C_RfQ.java @@ -1,669 +1,815 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQ - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQ extends PO -{ -/** Standard Constructor -@param ctx context -@param C_RfQ_ID id -@param trxName transaction -*/ -public X_C_RfQ (Properties ctx, int C_RfQ_ID, String trxName) -{ -super (ctx, C_RfQ_ID, trxName); -/** if (C_RfQ_ID == 0) -{ -setC_Currency_ID (0); // @$C_Currency_ID @ -setC_RfQ_ID (0); -setC_RfQ_Topic_ID (0); -setDateResponse (new Timestamp(System.currentTimeMillis())); -setDocumentNo (null); -setIsInvitedVendorsOnly (false); -setIsQuoteAllQty (false); -setIsQuoteTotalAmt (false); -setIsRfQResponseAccepted (true); // Y -setIsSelfService (true); // Y -setName (null); -setProcessed (false); -setQuoteType (null); // S -setSalesRep_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQ (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQ */ -public static final String Table_Name="C_RfQ"; - -/** AD_Table_ID=677 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQ[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set RfQ. -@param C_RfQ_ID Request for Quotation */ -public void setC_RfQ_ID (int C_RfQ_ID) -{ -if (C_RfQ_ID < 1) throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_ID", Integer.valueOf(C_RfQ_ID)); -} -/** Get RfQ. -@return Request for Quotation */ -public int getC_RfQ_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_ID */ -public static final String COLUMNNAME_C_RfQ_ID = "C_RfQ_ID"; -/** Set RfQ Topic. -@param C_RfQ_Topic_ID Topic for Request for Quotations */ -public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) -{ -if (C_RfQ_Topic_ID < 1) throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); -set_Value ("C_RfQ_Topic_ID", Integer.valueOf(C_RfQ_Topic_ID)); -} -/** Get RfQ Topic. -@return Topic for Request for Quotations */ -public int getC_RfQ_Topic_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_Topic_ID */ -public static final String COLUMNNAME_C_RfQ_Topic_ID = "C_RfQ_Topic_ID"; -/** Set Copy Lines. -@param CopyLines Copy Lines */ -public void setCopyLines (String CopyLines) -{ -if (CopyLines != null && CopyLines.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CopyLines = CopyLines.substring(0,0); -} -set_Value ("CopyLines", CopyLines); -} -/** Get Copy Lines. -@return Copy Lines */ -public String getCopyLines() -{ -return (String)get_Value("CopyLines"); -} -/** Column name CopyLines */ -public static final String COLUMNNAME_CopyLines = "CopyLines"; -/** Set Create PO. -@param CreatePO Create Purchase Order */ -public void setCreatePO (String CreatePO) -{ -if (CreatePO != null && CreatePO.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreatePO = CreatePO.substring(0,0); -} -set_Value ("CreatePO", CreatePO); -} -/** Get Create PO. -@return Create Purchase Order */ -public String getCreatePO() -{ -return (String)get_Value("CreatePO"); -} -/** Column name CreatePO */ -public static final String COLUMNNAME_CreatePO = "CreatePO"; -/** Set Create SO. -@param CreateSO Create SO */ -public void setCreateSO (String CreateSO) -{ -if (CreateSO != null && CreateSO.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateSO = CreateSO.substring(0,0); -} -set_Value ("CreateSO", CreateSO); -} -/** Get Create SO. -@return Create SO */ -public String getCreateSO() -{ -return (String)get_Value("CreateSO"); -} -/** Column name CreateSO */ -public static final String COLUMNNAME_CreateSO = "CreateSO"; -/** Set Response Date. -@param DateResponse Date of the Response */ -public void setDateResponse (Timestamp DateResponse) -{ -if (DateResponse == null) throw new IllegalArgumentException ("DateResponse is mandatory."); -set_Value ("DateResponse", DateResponse); -} -/** Get Response Date. -@return Date of the Response */ -public Timestamp getDateResponse() -{ -return (Timestamp)get_Value("DateResponse"); -} -/** Column name DateResponse */ -public static final String COLUMNNAME_DateResponse = "DateResponse"; -/** Set Work Complete. -@param DateWorkComplete Date when work is (planned to be) complete */ -public void setDateWorkComplete (Timestamp DateWorkComplete) -{ -set_Value ("DateWorkComplete", DateWorkComplete); -} -/** Get Work Complete. -@return Date when work is (planned to be) complete */ -public Timestamp getDateWorkComplete() -{ -return (Timestamp)get_Value("DateWorkComplete"); -} -/** Column name DateWorkComplete */ -public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; -/** Set Work Start. -@param DateWorkStart Date when work is (planned to be) started */ -public void setDateWorkStart (Timestamp DateWorkStart) -{ -set_Value ("DateWorkStart", DateWorkStart); -} -/** Get Work Start. -@return Date when work is (planned to be) started */ -public Timestamp getDateWorkStart() -{ -return (Timestamp)get_Value("DateWorkStart"); -} -/** Column name DateWorkStart */ -public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; -/** Set Delivery Days. -@param DeliveryDays Number of Days (planned) until Delivery */ -public void setDeliveryDays (int DeliveryDays) -{ -set_Value ("DeliveryDays", Integer.valueOf(DeliveryDays)); -} -/** Get Delivery Days. -@return Number of Days (planned) until Delivery */ -public int getDeliveryDays() -{ -Integer ii = (Integer)get_Value("DeliveryDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryDays */ -public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Invited Vendors Only. -@param IsInvitedVendorsOnly Only invited vendors can respond to an RfQ */ -public void setIsInvitedVendorsOnly (boolean IsInvitedVendorsOnly) -{ -set_Value ("IsInvitedVendorsOnly", Boolean.valueOf(IsInvitedVendorsOnly)); -} -/** Get Invited Vendors Only. -@return Only invited vendors can respond to an RfQ */ -public boolean isInvitedVendorsOnly() -{ -Object oo = get_Value("IsInvitedVendorsOnly"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvitedVendorsOnly */ -public static final String COLUMNNAME_IsInvitedVendorsOnly = "IsInvitedVendorsOnly"; -/** Set Quote All Quantities. -@param IsQuoteAllQty Suppliers are requested to provide responses for all quantities */ -public void setIsQuoteAllQty (boolean IsQuoteAllQty) -{ -set_Value ("IsQuoteAllQty", Boolean.valueOf(IsQuoteAllQty)); -} -/** Get Quote All Quantities. -@return Suppliers are requested to provide responses for all quantities */ -public boolean isQuoteAllQty() -{ -Object oo = get_Value("IsQuoteAllQty"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsQuoteAllQty */ -public static final String COLUMNNAME_IsQuoteAllQty = "IsQuoteAllQty"; -/** Set Quote Total Amt. -@param IsQuoteTotalAmt The respnse can have just the total amount for the RfQ */ -public void setIsQuoteTotalAmt (boolean IsQuoteTotalAmt) -{ -set_Value ("IsQuoteTotalAmt", Boolean.valueOf(IsQuoteTotalAmt)); -} -/** Get Quote Total Amt. -@return The respnse can have just the total amount for the RfQ */ -public boolean isQuoteTotalAmt() -{ -Object oo = get_Value("IsQuoteTotalAmt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsQuoteTotalAmt */ -public static final String COLUMNNAME_IsQuoteTotalAmt = "IsQuoteTotalAmt"; -/** Set Responses Accepted. -@param IsRfQResponseAccepted Are Resonses to the Request for Quotation accepted */ -public void setIsRfQResponseAccepted (boolean IsRfQResponseAccepted) -{ -set_Value ("IsRfQResponseAccepted", Boolean.valueOf(IsRfQResponseAccepted)); -} -/** Get Responses Accepted. -@return Are Resonses to the Request for Quotation accepted */ -public boolean isRfQResponseAccepted() -{ -Object oo = get_Value("IsRfQResponseAccepted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRfQResponseAccepted */ -public static final String COLUMNNAME_IsRfQResponseAccepted = "IsRfQResponseAccepted"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Margin %. -@param Margin Margin for a product as a percentage */ -public void setMargin (BigDecimal Margin) -{ -set_Value ("Margin", Margin); -} -/** Get Margin %. -@return Margin for a product as a percentage */ -public BigDecimal getMargin() -{ -BigDecimal bd = (BigDecimal)get_Value("Margin"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Margin */ -public static final String COLUMNNAME_Margin = "Margin"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Publish RfQ. -@param PublishRfQ Publish RfQ */ -public void setPublishRfQ (String PublishRfQ) -{ -if (PublishRfQ != null && PublishRfQ.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PublishRfQ = PublishRfQ.substring(0,0); -} -set_Value ("PublishRfQ", PublishRfQ); -} -/** Get Publish RfQ. -@return Publish RfQ */ -public String getPublishRfQ() -{ -return (String)get_Value("PublishRfQ"); -} -/** Column name PublishRfQ */ -public static final String COLUMNNAME_PublishRfQ = "PublishRfQ"; + +/** Generated Model for C_RfQ + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQ extends PO implements I_C_RfQ, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQ (Properties ctx, int C_RfQ_ID, String trxName) + { + super (ctx, C_RfQ_ID, trxName); + /** if (C_RfQ_ID == 0) { setC_Currency_ID (0); +// @$C_Currency_ID @ + setC_RfQ_ID (0); + setC_RfQ_Topic_ID (0); + setDateResponse (new Timestamp(System.currentTimeMillis())); + setDocumentNo (null); + setIsInvitedVendorsOnly (false); + setIsQuoteAllQty (false); + setIsQuoteTotalAmt (false); + setIsRfQResponseAccepted (true); +// Y + setIsSelfService (true); +// Y + setName (null); + setProcessed (false); + setQuoteType (null); +// S + setSalesRep_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_RfQ (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQ[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RfQ. + @param C_RfQ_ID + Request for Quotation + */ + public void setC_RfQ_ID (int C_RfQ_ID) + { + if (C_RfQ_ID < 1) + throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); + } + + /** Get RfQ. + @return Request for Quotation + */ + public int getC_RfQ_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQ_Topic getI_C_RfQ_Topic() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Topic. + @param C_RfQ_Topic_ID + Topic for Request for Quotations + */ + public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) + { + if (C_RfQ_Topic_ID < 1) + throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); + set_Value (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); + } + + /** Get RfQ Topic. + @return Topic for Request for Quotations + */ + public int getC_RfQ_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Copy Lines. + @param CopyLines Copy Lines */ + public void setCopyLines (String CopyLines) + { + if (CopyLines != null && CopyLines.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyLines = CopyLines.substring(0, 0); + } + set_Value (COLUMNNAME_CopyLines, CopyLines); + } + + /** Get Copy Lines. +@return Copy Lines */ + public String getCopyLines () + { + return (String)get_Value(COLUMNNAME_CopyLines); + } + + /** Set Create PO. + @param CreatePO + Create Purchase Order + */ + public void setCreatePO (String CreatePO) + { + if (CreatePO != null && CreatePO.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreatePO = CreatePO.substring(0, 0); + } + set_Value (COLUMNNAME_CreatePO, CreatePO); + } + + /** Get Create PO. + @return Create Purchase Order + */ + public String getCreatePO () + { + return (String)get_Value(COLUMNNAME_CreatePO); + } + + /** Set Create SO. + @param CreateSO Create SO */ + public void setCreateSO (String CreateSO) + { + if (CreateSO != null && CreateSO.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateSO = CreateSO.substring(0, 0); + } + set_Value (COLUMNNAME_CreateSO, CreateSO); + } + + /** Get Create SO. +@return Create SO */ + public String getCreateSO () + { + return (String)get_Value(COLUMNNAME_CreateSO); + } + + /** Set Response Date. + @param DateResponse + Date of the Response + */ + public void setDateResponse (Timestamp DateResponse) + { + if (DateResponse == null) + throw new IllegalArgumentException ("DateResponse is mandatory."); + set_Value (COLUMNNAME_DateResponse, DateResponse); + } + + /** Get Response Date. + @return Date of the Response + */ + public Timestamp getDateResponse () + { + return (Timestamp)get_Value(COLUMNNAME_DateResponse); + } + + /** Set Work Complete. + @param DateWorkComplete + Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete) + { + set_Value (COLUMNNAME_DateWorkComplete, DateWorkComplete); + } + + /** Get Work Complete. + @return Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkComplete); + } + + /** Set Work Start. + @param DateWorkStart + Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart) + { + set_Value (COLUMNNAME_DateWorkStart, DateWorkStart); + } + + /** Get Work Start. + @return Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkStart); + } + + /** Set Delivery Days. + @param DeliveryDays + Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays) + { + set_Value (COLUMNNAME_DeliveryDays, Integer.valueOf(DeliveryDays)); + } + + /** Get Delivery Days. + @return Number of Days (planned) until Delivery + */ + public int getDeliveryDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Invited Vendors Only. + @param IsInvitedVendorsOnly + Only invited vendors can respond to an RfQ + */ + public void setIsInvitedVendorsOnly (boolean IsInvitedVendorsOnly) + { + set_Value (COLUMNNAME_IsInvitedVendorsOnly, Boolean.valueOf(IsInvitedVendorsOnly)); + } + + /** Get Invited Vendors Only. + @return Only invited vendors can respond to an RfQ + */ + public boolean isInvitedVendorsOnly () + { + Object oo = get_Value(COLUMNNAME_IsInvitedVendorsOnly); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quote All Quantities. + @param IsQuoteAllQty + Suppliers are requested to provide responses for all quantities + */ + public void setIsQuoteAllQty (boolean IsQuoteAllQty) + { + set_Value (COLUMNNAME_IsQuoteAllQty, Boolean.valueOf(IsQuoteAllQty)); + } + + /** Get Quote All Quantities. + @return Suppliers are requested to provide responses for all quantities + */ + public boolean isQuoteAllQty () + { + Object oo = get_Value(COLUMNNAME_IsQuoteAllQty); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quote Total Amt. + @param IsQuoteTotalAmt + The respnse can have just the total amount for the RfQ + */ + public void setIsQuoteTotalAmt (boolean IsQuoteTotalAmt) + { + set_Value (COLUMNNAME_IsQuoteTotalAmt, Boolean.valueOf(IsQuoteTotalAmt)); + } + + /** Get Quote Total Amt. + @return The respnse can have just the total amount for the RfQ + */ + public boolean isQuoteTotalAmt () + { + Object oo = get_Value(COLUMNNAME_IsQuoteTotalAmt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Responses Accepted. + @param IsRfQResponseAccepted + Are Resonses to the Request for Quotation accepted + */ + public void setIsRfQResponseAccepted (boolean IsRfQResponseAccepted) + { + set_Value (COLUMNNAME_IsRfQResponseAccepted, Boolean.valueOf(IsRfQResponseAccepted)); + } + + /** Get Responses Accepted. + @return Are Resonses to the Request for Quotation accepted + */ + public boolean isRfQResponseAccepted () + { + Object oo = get_Value(COLUMNNAME_IsRfQResponseAccepted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Margin %. + @param Margin + Margin for a product as a percentage + */ + public void setMargin (BigDecimal Margin) + { + set_Value (COLUMNNAME_Margin, Margin); + } + + /** Get Margin %. + @return Margin for a product as a percentage + */ + public BigDecimal getMargin () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Margin); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Publish RfQ. + @param PublishRfQ Publish RfQ */ + public void setPublishRfQ (String PublishRfQ) + { + if (PublishRfQ != null && PublishRfQ.length() > 1) + { + log.warning("Length > 1 - truncated"); + PublishRfQ = PublishRfQ.substring(0, 0); + } + set_Value (COLUMNNAME_PublishRfQ, PublishRfQ); + } + + /** Get Publish RfQ. +@return Publish RfQ */ + public String getPublishRfQ () + { + return (String)get_Value(COLUMNNAME_PublishRfQ); + } /** QuoteType AD_Reference_ID=314 */ -public static final int QUOTETYPE_AD_Reference_ID=314; -/** Quote All Lines = A */ -public static final String QUOTETYPE_QuoteAllLines = "A"; -/** Quote Selected Lines = S */ -public static final String QUOTETYPE_QuoteSelectedLines = "S"; -/** Quote Total only = T */ +public static final int QUOTETYPE_AD_Reference_ID=314;/** Quote All Lines = A */ +public static final String QUOTETYPE_QuoteAllLines = "A";/** Quote Selected Lines = S */ +public static final String QUOTETYPE_QuoteSelectedLines = "S";/** Quote Total only = T */ public static final String QUOTETYPE_QuoteTotalOnly = "T"; -/** Set RfQ Type. -@param QuoteType Request for Quotation Type */ -public void setQuoteType (String QuoteType) -{ -if (QuoteType == null) throw new IllegalArgumentException ("QuoteType is mandatory"); -if (QuoteType.equals("A") || QuoteType.equals("S") || QuoteType.equals("T")); - else throw new IllegalArgumentException ("QuoteType Invalid value - " + QuoteType + " - Reference_ID=314 - A - S - T"); -if (QuoteType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -QuoteType = QuoteType.substring(0,0); -} -set_Value ("QuoteType", QuoteType); -} -/** Get RfQ Type. -@return Request for Quotation Type */ -public String getQuoteType() -{ -return (String)get_Value("QuoteType"); -} -/** Column name QuoteType */ -public static final String COLUMNNAME_QuoteType = "QuoteType"; -/** Set Rank RfQ. -@param RankRfQ Rank RfQ */ -public void setRankRfQ (String RankRfQ) -{ -if (RankRfQ != null && RankRfQ.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RankRfQ = RankRfQ.substring(0,0); -} -set_Value ("RankRfQ", RankRfQ); -} -/** Get Rank RfQ. -@return Rank RfQ */ -public String getRankRfQ() -{ -return (String)get_Value("RankRfQ"); -} -/** Column name RankRfQ */ -public static final String COLUMNNAME_RankRfQ = "RankRfQ"; + /** Set RfQ Type. + @param QuoteType + Request for Quotation Type + */ + public void setQuoteType (String QuoteType) + { +if (QuoteType == null) throw new IllegalArgumentException ("QuoteType is mandatory");if (QuoteType.equals("A") || QuoteType.equals("S") || QuoteType.equals("T")); else throw new IllegalArgumentException ("QuoteType Invalid value - " + QuoteType + " - Reference_ID=314 - A - S - T"); if (QuoteType.length() > 1) + { + log.warning("Length > 1 - truncated"); + QuoteType = QuoteType.substring(0, 0); + } + set_Value (COLUMNNAME_QuoteType, QuoteType); + } + + /** Get RfQ Type. + @return Request for Quotation Type + */ + public String getQuoteType () + { + return (String)get_Value(COLUMNNAME_QuoteType); + } + + /** Set Rank RfQ. + @param RankRfQ Rank RfQ */ + public void setRankRfQ (String RankRfQ) + { + if (RankRfQ != null && RankRfQ.length() > 1) + { + log.warning("Length > 1 - truncated"); + RankRfQ = RankRfQ.substring(0, 0); + } + set_Value (COLUMNNAME_RankRfQ, RankRfQ); + } + + /** Get Rank RfQ. +@return Rank RfQ */ + public String getRankRfQ () + { + return (String)get_Value(COLUMNNAME_RankRfQ); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RfQLine.java b/base/src/org/compiere/model/X_C_RfQLine.java index 36d2f911f9..704b92f7d8 100644 --- a/base/src/org/compiere/model/X_C_RfQLine.java +++ b/base/src/org/compiere/model/X_C_RfQLine.java @@ -1,264 +1,307 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQLine extends PO + +/** Generated Model for C_RfQLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQLine extends PO implements I_C_RfQLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQLine_ID id -@param trxName transaction -*/ -public X_C_RfQLine (Properties ctx, int C_RfQLine_ID, String trxName) -{ -super (ctx, C_RfQLine_ID, trxName); -/** if (C_RfQLine_ID == 0) -{ -setC_RfQLine_ID (0); -setC_RfQ_ID (0); -setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_RfQLine WHERE C_RfQ_ID=@C_RfQ_ID@ -setM_AttributeSetInstance_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQLine */ -public static final String Table_Name="C_RfQLine"; - -/** AD_Table_ID=676 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set RfQ Line. -@param C_RfQLine_ID Request for Quotation Line */ -public void setC_RfQLine_ID (int C_RfQLine_ID) -{ -if (C_RfQLine_ID < 1) throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); -set_ValueNoCheck ("C_RfQLine_ID", Integer.valueOf(C_RfQLine_ID)); -} -/** Get RfQ Line. -@return Request for Quotation Line */ -public int getC_RfQLine_ID() -{ -Integer ii = (Integer)get_Value("C_RfQLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQLine_ID */ -public static final String COLUMNNAME_C_RfQLine_ID = "C_RfQLine_ID"; -/** Set RfQ. -@param C_RfQ_ID Request for Quotation */ -public void setC_RfQ_ID (int C_RfQ_ID) -{ -if (C_RfQ_ID < 1) throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_ID", Integer.valueOf(C_RfQ_ID)); -} -/** Get RfQ. -@return Request for Quotation */ -public int getC_RfQ_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_RfQ_ID())); -} -/** Column name C_RfQ_ID */ -public static final String COLUMNNAME_C_RfQ_ID = "C_RfQ_ID"; -/** Set Work Complete. -@param DateWorkComplete Date when work is (planned to be) complete */ -public void setDateWorkComplete (Timestamp DateWorkComplete) -{ -set_Value ("DateWorkComplete", DateWorkComplete); -} -/** Get Work Complete. -@return Date when work is (planned to be) complete */ -public Timestamp getDateWorkComplete() -{ -return (Timestamp)get_Value("DateWorkComplete"); -} -/** Column name DateWorkComplete */ -public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; -/** Set Work Start. -@param DateWorkStart Date when work is (planned to be) started */ -public void setDateWorkStart (Timestamp DateWorkStart) -{ -set_Value ("DateWorkStart", DateWorkStart); -} -/** Get Work Start. -@return Date when work is (planned to be) started */ -public Timestamp getDateWorkStart() -{ -return (Timestamp)get_Value("DateWorkStart"); -} -/** Column name DateWorkStart */ -public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; -/** Set Delivery Days. -@param DeliveryDays Number of Days (planned) until Delivery */ -public void setDeliveryDays (int DeliveryDays) -{ -set_Value ("DeliveryDays", Integer.valueOf(DeliveryDays)); -} -/** Get Delivery Days. -@return Number of Days (planned) until Delivery */ -public int getDeliveryDays() -{ -Integer ii = (Integer)get_Value("DeliveryDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryDays */ -public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQLine (Properties ctx, int C_RfQLine_ID, String trxName) + { + super (ctx, C_RfQLine_ID, trxName); + /** if (C_RfQLine_ID == 0) { setC_RfQLine_ID (0); + setC_RfQ_ID (0); + setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_RfQLine WHERE C_RfQ_ID=@C_RfQ_ID@ + setM_AttributeSetInstance_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_RfQLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set RfQ Line. + @param C_RfQLine_ID + Request for Quotation Line + */ + public void setC_RfQLine_ID (int C_RfQLine_ID) + { + if (C_RfQLine_ID < 1) + throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); + } + + /** Get RfQ Line. + @return Request for Quotation Line + */ + public int getC_RfQLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQ getI_C_RfQ() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ. + @param C_RfQ_ID + Request for Quotation + */ + public void setC_RfQ_ID (int C_RfQ_ID) + { + if (C_RfQ_ID < 1) + throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); + } + + /** Get RfQ. + @return Request for Quotation + */ + public int getC_RfQ_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_RfQ_ID())); + } + + /** Set Work Complete. + @param DateWorkComplete + Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete) + { + set_Value (COLUMNNAME_DateWorkComplete, DateWorkComplete); + } + + /** Get Work Complete. + @return Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkComplete); + } + + /** Set Work Start. + @param DateWorkStart + Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart) + { + set_Value (COLUMNNAME_DateWorkStart, DateWorkStart); + } + + /** Get Work Start. + @return Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkStart); + } + + /** Set Delivery Days. + @param DeliveryDays + Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays) + { + set_Value (COLUMNNAME_DeliveryDays, Integer.valueOf(DeliveryDays)); + } + + /** Get Delivery Days. + @return Number of Days (planned) until Delivery + */ + public int getDeliveryDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RfQLineQty.java b/base/src/org/compiere/model/X_C_RfQLineQty.java index 8224a2a14e..aaae1fb4ee 100644 --- a/base/src/org/compiere/model/X_C_RfQLineQty.java +++ b/base/src/org/compiere/model/X_C_RfQLineQty.java @@ -1,294 +1,364 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQLineQty - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQLineQty extends PO + +/** Generated Model for C_RfQLineQty + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQLineQty extends PO implements I_C_RfQLineQty, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQLineQty_ID id -@param trxName transaction -*/ -public X_C_RfQLineQty (Properties ctx, int C_RfQLineQty_ID, String trxName) -{ -super (ctx, C_RfQLineQty_ID, trxName); -/** if (C_RfQLineQty_ID == 0) -{ -setBenchmarkPrice (Env.ZERO); -setC_RfQLineQty_ID (0); -setC_RfQLine_ID (0); -setC_UOM_ID (0); -setIsOfferQty (false); -setIsPurchaseQty (false); -setIsRfQQty (true); // Y -setQty (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQLineQty (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQLineQty */ -public static final String Table_Name="C_RfQLineQty"; - -/** AD_Table_ID=675 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQLineQty[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Benchmark Price. -@param BenchmarkPrice Price to compare responses to */ -public void setBenchmarkPrice (BigDecimal BenchmarkPrice) -{ -if (BenchmarkPrice == null) throw new IllegalArgumentException ("BenchmarkPrice is mandatory."); -set_Value ("BenchmarkPrice", BenchmarkPrice); -} -/** Get Benchmark Price. -@return Price to compare responses to */ -public BigDecimal getBenchmarkPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("BenchmarkPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BenchmarkPrice */ -public static final String COLUMNNAME_BenchmarkPrice = "BenchmarkPrice"; -/** Set Best Response Amount. -@param BestResponseAmt Best Response Amount */ -public void setBestResponseAmt (BigDecimal BestResponseAmt) -{ -set_Value ("BestResponseAmt", BestResponseAmt); -} -/** Get Best Response Amount. -@return Best Response Amount */ -public BigDecimal getBestResponseAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("BestResponseAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BestResponseAmt */ -public static final String COLUMNNAME_BestResponseAmt = "BestResponseAmt"; -/** Set RfQ Line Quantity. -@param C_RfQLineQty_ID Request for Quotation Line Quantity */ -public void setC_RfQLineQty_ID (int C_RfQLineQty_ID) -{ -if (C_RfQLineQty_ID < 1) throw new IllegalArgumentException ("C_RfQLineQty_ID is mandatory."); -set_ValueNoCheck ("C_RfQLineQty_ID", Integer.valueOf(C_RfQLineQty_ID)); -} -/** Get RfQ Line Quantity. -@return Request for Quotation Line Quantity */ -public int getC_RfQLineQty_ID() -{ -Integer ii = (Integer)get_Value("C_RfQLineQty_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQLineQty_ID */ -public static final String COLUMNNAME_C_RfQLineQty_ID = "C_RfQLineQty_ID"; -/** Set RfQ Line. -@param C_RfQLine_ID Request for Quotation Line */ -public void setC_RfQLine_ID (int C_RfQLine_ID) -{ -if (C_RfQLine_ID < 1) throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); -set_ValueNoCheck ("C_RfQLine_ID", Integer.valueOf(C_RfQLine_ID)); -} -/** Get RfQ Line. -@return Request for Quotation Line */ -public int getC_RfQLine_ID() -{ -Integer ii = (Integer)get_Value("C_RfQLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQLine_ID */ -public static final String COLUMNNAME_C_RfQLine_ID = "C_RfQLine_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_UOM_ID())); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Offer Quantity. -@param IsOfferQty This quantity is used in the Offer to the Customer */ -public void setIsOfferQty (boolean IsOfferQty) -{ -set_Value ("IsOfferQty", Boolean.valueOf(IsOfferQty)); -} -/** Get Offer Quantity. -@return This quantity is used in the Offer to the Customer */ -public boolean isOfferQty() -{ -Object oo = get_Value("IsOfferQty"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOfferQty */ -public static final String COLUMNNAME_IsOfferQty = "IsOfferQty"; -/** Set Purchase Quantity. -@param IsPurchaseQty This quantity is used in the Purchase Order to the Supplier */ -public void setIsPurchaseQty (boolean IsPurchaseQty) -{ -set_Value ("IsPurchaseQty", Boolean.valueOf(IsPurchaseQty)); -} -/** Get Purchase Quantity. -@return This quantity is used in the Purchase Order to the Supplier */ -public boolean isPurchaseQty() -{ -Object oo = get_Value("IsPurchaseQty"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPurchaseQty */ -public static final String COLUMNNAME_IsPurchaseQty = "IsPurchaseQty"; -/** Set RfQ Quantity. -@param IsRfQQty The quantity is used when generating RfQ Responses */ -public void setIsRfQQty (boolean IsRfQQty) -{ -set_Value ("IsRfQQty", Boolean.valueOf(IsRfQQty)); -} -/** Get RfQ Quantity. -@return The quantity is used when generating RfQ Responses */ -public boolean isRfQQty() -{ -Object oo = get_Value("IsRfQQty"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsRfQQty */ -public static final String COLUMNNAME_IsRfQQty = "IsRfQQty"; -/** Set Margin %. -@param Margin Margin for a product as a percentage */ -public void setMargin (BigDecimal Margin) -{ -set_Value ("Margin", Margin); -} -/** Get Margin %. -@return Margin for a product as a percentage */ -public BigDecimal getMargin() -{ -BigDecimal bd = (BigDecimal)get_Value("Margin"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Margin */ -public static final String COLUMNNAME_Margin = "Margin"; -/** Set Offer Amount. -@param OfferAmt Amount of the Offer */ -public void setOfferAmt (BigDecimal OfferAmt) -{ -set_Value ("OfferAmt", OfferAmt); -} -/** Get Offer Amount. -@return Amount of the Offer */ -public BigDecimal getOfferAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OfferAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OfferAmt */ -public static final String COLUMNNAME_OfferAmt = "OfferAmt"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQLineQty (Properties ctx, int C_RfQLineQty_ID, String trxName) + { + super (ctx, C_RfQLineQty_ID, trxName); + /** if (C_RfQLineQty_ID == 0) { setBenchmarkPrice (Env.ZERO); + setC_RfQLineQty_ID (0); + setC_RfQLine_ID (0); + setC_UOM_ID (0); + setIsOfferQty (false); + setIsPurchaseQty (false); + setIsRfQQty (true); +// Y + setQty (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_C_RfQLineQty (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQLineQty[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Benchmark Price. + @param BenchmarkPrice + Price to compare responses to + */ + public void setBenchmarkPrice (BigDecimal BenchmarkPrice) + { + if (BenchmarkPrice == null) + throw new IllegalArgumentException ("BenchmarkPrice is mandatory."); + set_Value (COLUMNNAME_BenchmarkPrice, BenchmarkPrice); + } + + /** Get Benchmark Price. + @return Price to compare responses to + */ + public BigDecimal getBenchmarkPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BenchmarkPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Best Response Amount. + @param BestResponseAmt + Best Response Amount + */ + public void setBestResponseAmt (BigDecimal BestResponseAmt) + { + set_Value (COLUMNNAME_BestResponseAmt, BestResponseAmt); + } + + /** Get Best Response Amount. + @return Best Response Amount + */ + public BigDecimal getBestResponseAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BestResponseAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set RfQ Line Quantity. + @param C_RfQLineQty_ID + Request for Quotation Line Quantity + */ + public void setC_RfQLineQty_ID (int C_RfQLineQty_ID) + { + if (C_RfQLineQty_ID < 1) + throw new IllegalArgumentException ("C_RfQLineQty_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, Integer.valueOf(C_RfQLineQty_ID)); + } + + /** Get RfQ Line Quantity. + @return Request for Quotation Line Quantity + */ + public int getC_RfQLineQty_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQLineQty_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQLine getI_C_RfQLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Line. + @param C_RfQLine_ID + Request for Quotation Line + */ + public void setC_RfQLine_ID (int C_RfQLine_ID) + { + if (C_RfQLine_ID < 1) + throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); + } + + /** Get RfQ Line. + @return Request for Quotation Line + */ + public int getC_RfQLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_UOM_ID())); + } + + /** Set Offer Quantity. + @param IsOfferQty + This quantity is used in the Offer to the Customer + */ + public void setIsOfferQty (boolean IsOfferQty) + { + set_Value (COLUMNNAME_IsOfferQty, Boolean.valueOf(IsOfferQty)); + } + + /** Get Offer Quantity. + @return This quantity is used in the Offer to the Customer + */ + public boolean isOfferQty () + { + Object oo = get_Value(COLUMNNAME_IsOfferQty); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Purchase Quantity. + @param IsPurchaseQty + This quantity is used in the Purchase Order to the Supplier + */ + public void setIsPurchaseQty (boolean IsPurchaseQty) + { + set_Value (COLUMNNAME_IsPurchaseQty, Boolean.valueOf(IsPurchaseQty)); + } + + /** Get Purchase Quantity. + @return This quantity is used in the Purchase Order to the Supplier + */ + public boolean isPurchaseQty () + { + Object oo = get_Value(COLUMNNAME_IsPurchaseQty); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set RfQ Quantity. + @param IsRfQQty + The quantity is used when generating RfQ Responses + */ + public void setIsRfQQty (boolean IsRfQQty) + { + set_Value (COLUMNNAME_IsRfQQty, Boolean.valueOf(IsRfQQty)); + } + + /** Get RfQ Quantity. + @return The quantity is used when generating RfQ Responses + */ + public boolean isRfQQty () + { + Object oo = get_Value(COLUMNNAME_IsRfQQty); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Margin %. + @param Margin + Margin for a product as a percentage + */ + public void setMargin (BigDecimal Margin) + { + set_Value (COLUMNNAME_Margin, Margin); + } + + /** Get Margin %. + @return Margin for a product as a percentage + */ + public BigDecimal getMargin () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Margin); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Offer Amount. + @param OfferAmt + Amount of the Offer + */ + public void setOfferAmt (BigDecimal OfferAmt) + { + set_Value (COLUMNNAME_OfferAmt, OfferAmt); + } + + /** Get Offer Amount. + @return Amount of the Offer + */ + public BigDecimal getOfferAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OfferAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RfQResponse.java b/base/src/org/compiere/model/X_C_RfQResponse.java index 3c19aa0104..a9aaa52507 100644 --- a/base/src/org/compiere/model/X_C_RfQResponse.java +++ b/base/src/org/compiere/model/X_C_RfQResponse.java @@ -1,507 +1,660 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQResponse - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQResponse extends PO + +/** Generated Model for C_RfQResponse + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQResponse extends PO implements I_C_RfQResponse, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQResponse_ID id -@param trxName transaction -*/ -public X_C_RfQResponse (Properties ctx, int C_RfQResponse_ID, String trxName) -{ -super (ctx, C_RfQResponse_ID, trxName); -/** if (C_RfQResponse_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_Currency_ID (0); // @C_Currency_ID@ -setC_RfQResponse_ID (0); -setC_RfQ_ID (0); -setIsComplete (false); -setIsSelectedWinner (false); -setIsSelfService (false); -setName (null); -setPrice (Env.ZERO); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQResponse (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQResponse */ -public static final String Table_Name="C_RfQResponse"; - -/** AD_Table_ID=674 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQResponse[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_ValueNoCheck ("AD_User_ID", null); - else -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set RfQ Response. -@param C_RfQResponse_ID Request for Quotation Response from a potential Vendor */ -public void setC_RfQResponse_ID (int C_RfQResponse_ID) -{ -if (C_RfQResponse_ID < 1) throw new IllegalArgumentException ("C_RfQResponse_ID is mandatory."); -set_ValueNoCheck ("C_RfQResponse_ID", Integer.valueOf(C_RfQResponse_ID)); -} -/** Get RfQ Response. -@return Request for Quotation Response from a potential Vendor */ -public int getC_RfQResponse_ID() -{ -Integer ii = (Integer)get_Value("C_RfQResponse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQResponse_ID */ -public static final String COLUMNNAME_C_RfQResponse_ID = "C_RfQResponse_ID"; -/** Set RfQ. -@param C_RfQ_ID Request for Quotation */ -public void setC_RfQ_ID (int C_RfQ_ID) -{ -if (C_RfQ_ID < 1) throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_ID", Integer.valueOf(C_RfQ_ID)); -} -/** Get RfQ. -@return Request for Quotation */ -public int getC_RfQ_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_ID */ -public static final String COLUMNNAME_C_RfQ_ID = "C_RfQ_ID"; -/** Set Check Complete. -@param CheckComplete Check Complete */ -public void setCheckComplete (String CheckComplete) -{ -if (CheckComplete != null && CheckComplete.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CheckComplete = CheckComplete.substring(0,0); -} -set_Value ("CheckComplete", CheckComplete); -} -/** Get Check Complete. -@return Check Complete */ -public String getCheckComplete() -{ -return (String)get_Value("CheckComplete"); -} -/** Column name CheckComplete */ -public static final String COLUMNNAME_CheckComplete = "CheckComplete"; -/** Set Invited. -@param DateInvited Date when (last) invitation was sent */ -public void setDateInvited (Timestamp DateInvited) -{ -set_Value ("DateInvited", DateInvited); -} -/** Get Invited. -@return Date when (last) invitation was sent */ -public Timestamp getDateInvited() -{ -return (Timestamp)get_Value("DateInvited"); -} -/** Column name DateInvited */ -public static final String COLUMNNAME_DateInvited = "DateInvited"; -/** Set Response Date. -@param DateResponse Date of the Response */ -public void setDateResponse (Timestamp DateResponse) -{ -set_Value ("DateResponse", DateResponse); -} -/** Get Response Date. -@return Date of the Response */ -public Timestamp getDateResponse() -{ -return (Timestamp)get_Value("DateResponse"); -} -/** Column name DateResponse */ -public static final String COLUMNNAME_DateResponse = "DateResponse"; -/** Set Work Complete. -@param DateWorkComplete Date when work is (planned to be) complete */ -public void setDateWorkComplete (Timestamp DateWorkComplete) -{ -set_Value ("DateWorkComplete", DateWorkComplete); -} -/** Get Work Complete. -@return Date when work is (planned to be) complete */ -public Timestamp getDateWorkComplete() -{ -return (Timestamp)get_Value("DateWorkComplete"); -} -/** Column name DateWorkComplete */ -public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; -/** Set Work Start. -@param DateWorkStart Date when work is (planned to be) started */ -public void setDateWorkStart (Timestamp DateWorkStart) -{ -set_Value ("DateWorkStart", DateWorkStart); -} -/** Get Work Start. -@return Date when work is (planned to be) started */ -public Timestamp getDateWorkStart() -{ -return (Timestamp)get_Value("DateWorkStart"); -} -/** Column name DateWorkStart */ -public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; -/** Set Delivery Days. -@param DeliveryDays Number of Days (planned) until Delivery */ -public void setDeliveryDays (int DeliveryDays) -{ -set_Value ("DeliveryDays", Integer.valueOf(DeliveryDays)); -} -/** Get Delivery Days. -@return Number of Days (planned) until Delivery */ -public int getDeliveryDays() -{ -Integer ii = (Integer)get_Value("DeliveryDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryDays */ -public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Complete. -@param IsComplete It is complete */ -public void setIsComplete (boolean IsComplete) -{ -set_Value ("IsComplete", Boolean.valueOf(IsComplete)); -} -/** Get Complete. -@return It is complete */ -public boolean isComplete() -{ -Object oo = get_Value("IsComplete"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsComplete */ -public static final String COLUMNNAME_IsComplete = "IsComplete"; -/** Set Selected Winner. -@param IsSelectedWinner The resonse is the selected winner */ -public void setIsSelectedWinner (boolean IsSelectedWinner) -{ -set_Value ("IsSelectedWinner", Boolean.valueOf(IsSelectedWinner)); -} -/** Get Selected Winner. -@return The resonse is the selected winner */ -public boolean isSelectedWinner() -{ -Object oo = get_Value("IsSelectedWinner"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelectedWinner */ -public static final String COLUMNNAME_IsSelectedWinner = "IsSelectedWinner"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Price. -@param Price Price */ -public void setPrice (BigDecimal Price) -{ -if (Price == null) throw new IllegalArgumentException ("Price is mandatory."); -set_Value ("Price", Price); -} -/** Get Price. -@return Price */ -public BigDecimal getPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("Price"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Price */ -public static final String COLUMNNAME_Price = "Price"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Ranking. -@param Ranking Relative Rank Number */ -public void setRanking (int Ranking) -{ -set_Value ("Ranking", Integer.valueOf(Ranking)); -} -/** Get Ranking. -@return Relative Rank Number */ -public int getRanking() -{ -Integer ii = (Integer)get_Value("Ranking"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ranking */ -public static final String COLUMNNAME_Ranking = "Ranking"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQResponse (Properties ctx, int C_RfQResponse_ID, String trxName) + { + super (ctx, C_RfQResponse_ID, trxName); + /** if (C_RfQResponse_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_RfQResponse_ID (0); + setC_RfQ_ID (0); + setIsComplete (false); + setIsSelectedWinner (false); + setIsSelfService (false); + setName (null); + setPrice (Env.ZERO); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_RfQResponse (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQResponse[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Order getI_C_Order() throws Exception + { + 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 e; + } + return result; + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RfQ Response. + @param C_RfQResponse_ID + Request for Quotation Response from a potential Vendor + */ + public void setC_RfQResponse_ID (int C_RfQResponse_ID) + { + if (C_RfQResponse_ID < 1) + throw new IllegalArgumentException ("C_RfQResponse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, Integer.valueOf(C_RfQResponse_ID)); + } + + /** Get RfQ Response. + @return Request for Quotation Response from a potential Vendor + */ + public int getC_RfQResponse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQResponse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQ getI_C_RfQ() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ. + @param C_RfQ_ID + Request for Quotation + */ + public void setC_RfQ_ID (int C_RfQ_ID) + { + if (C_RfQ_ID < 1) + throw new IllegalArgumentException ("C_RfQ_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_ID, Integer.valueOf(C_RfQ_ID)); + } + + /** Get RfQ. + @return Request for Quotation + */ + public int getC_RfQ_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Check Complete. + @param CheckComplete Check Complete */ + public void setCheckComplete (String CheckComplete) + { + if (CheckComplete != null && CheckComplete.length() > 1) + { + log.warning("Length > 1 - truncated"); + CheckComplete = CheckComplete.substring(0, 0); + } + set_Value (COLUMNNAME_CheckComplete, CheckComplete); + } + + /** Get Check Complete. +@return Check Complete */ + public String getCheckComplete () + { + return (String)get_Value(COLUMNNAME_CheckComplete); + } + + /** Set Invited. + @param DateInvited + Date when (last) invitation was sent + */ + public void setDateInvited (Timestamp DateInvited) + { + set_Value (COLUMNNAME_DateInvited, DateInvited); + } + + /** Get Invited. + @return Date when (last) invitation was sent + */ + public Timestamp getDateInvited () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvited); + } + + /** Set Response Date. + @param DateResponse + Date of the Response + */ + public void setDateResponse (Timestamp DateResponse) + { + set_Value (COLUMNNAME_DateResponse, DateResponse); + } + + /** Get Response Date. + @return Date of the Response + */ + public Timestamp getDateResponse () + { + return (Timestamp)get_Value(COLUMNNAME_DateResponse); + } + + /** Set Work Complete. + @param DateWorkComplete + Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete) + { + set_Value (COLUMNNAME_DateWorkComplete, DateWorkComplete); + } + + /** Get Work Complete. + @return Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkComplete); + } + + /** Set Work Start. + @param DateWorkStart + Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart) + { + set_Value (COLUMNNAME_DateWorkStart, DateWorkStart); + } + + /** Get Work Start. + @return Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkStart); + } + + /** Set Delivery Days. + @param DeliveryDays + Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays) + { + set_Value (COLUMNNAME_DeliveryDays, Integer.valueOf(DeliveryDays)); + } + + /** Get Delivery Days. + @return Number of Days (planned) until Delivery + */ + public int getDeliveryDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Complete. + @param IsComplete + It is complete + */ + public void setIsComplete (boolean IsComplete) + { + set_Value (COLUMNNAME_IsComplete, Boolean.valueOf(IsComplete)); + } + + /** Get Complete. + @return It is complete + */ + public boolean isComplete () + { + Object oo = get_Value(COLUMNNAME_IsComplete); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Selected Winner. + @param IsSelectedWinner + The resonse is the selected winner + */ + public void setIsSelectedWinner (boolean IsSelectedWinner) + { + set_Value (COLUMNNAME_IsSelectedWinner, Boolean.valueOf(IsSelectedWinner)); + } + + /** Get Selected Winner. + @return The resonse is the selected winner + */ + public boolean isSelectedWinner () + { + Object oo = get_Value(COLUMNNAME_IsSelectedWinner); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Price. + @param Price + Price + */ + public void setPrice (BigDecimal Price) + { + if (Price == null) + throw new IllegalArgumentException ("Price is mandatory."); + set_Value (COLUMNNAME_Price, Price); + } + + /** Get Price. + @return Price + */ + public BigDecimal getPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Price); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ranking. + @param Ranking + Relative Rank Number + */ + public void setRanking (int Ranking) + { + set_Value (COLUMNNAME_Ranking, Integer.valueOf(Ranking)); + } + + /** Get Ranking. + @return Relative Rank Number + */ + public int getRanking () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ranking); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RfQResponseLine.java b/base/src/org/compiere/model/X_C_RfQResponseLine.java index c0ef698577..d1859226c5 100644 --- a/base/src/org/compiere/model/X_C_RfQResponseLine.java +++ b/base/src/org/compiere/model/X_C_RfQResponseLine.java @@ -1,265 +1,321 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQResponseLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQResponseLine extends PO + +/** Generated Model for C_RfQResponseLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQResponseLine extends PO implements I_C_RfQResponseLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQResponseLine_ID id -@param trxName transaction -*/ -public X_C_RfQResponseLine (Properties ctx, int C_RfQResponseLine_ID, String trxName) -{ -super (ctx, C_RfQResponseLine_ID, trxName); -/** if (C_RfQResponseLine_ID == 0) -{ -setC_RfQLine_ID (0); -setC_RfQResponseLine_ID (0); -setC_RfQResponse_ID (0); -setIsSelectedWinner (false); -setIsSelfService (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQResponseLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQResponseLine */ -public static final String Table_Name="C_RfQResponseLine"; - -/** AD_Table_ID=673 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQResponseLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set RfQ Line. -@param C_RfQLine_ID Request for Quotation Line */ -public void setC_RfQLine_ID (int C_RfQLine_ID) -{ -if (C_RfQLine_ID < 1) throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); -set_ValueNoCheck ("C_RfQLine_ID", Integer.valueOf(C_RfQLine_ID)); -} -/** Get RfQ Line. -@return Request for Quotation Line */ -public int getC_RfQLine_ID() -{ -Integer ii = (Integer)get_Value("C_RfQLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQLine_ID */ -public static final String COLUMNNAME_C_RfQLine_ID = "C_RfQLine_ID"; -/** Set RfQ Response Line. -@param C_RfQResponseLine_ID Request for Quotation Response Line */ -public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID) -{ -if (C_RfQResponseLine_ID < 1) throw new IllegalArgumentException ("C_RfQResponseLine_ID is mandatory."); -set_ValueNoCheck ("C_RfQResponseLine_ID", Integer.valueOf(C_RfQResponseLine_ID)); -} -/** Get RfQ Response Line. -@return Request for Quotation Response Line */ -public int getC_RfQResponseLine_ID() -{ -Integer ii = (Integer)get_Value("C_RfQResponseLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQResponseLine_ID */ -public static final String COLUMNNAME_C_RfQResponseLine_ID = "C_RfQResponseLine_ID"; -/** Set RfQ Response. -@param C_RfQResponse_ID Request for Quotation Response from a potential Vendor */ -public void setC_RfQResponse_ID (int C_RfQResponse_ID) -{ -if (C_RfQResponse_ID < 1) throw new IllegalArgumentException ("C_RfQResponse_ID is mandatory."); -set_ValueNoCheck ("C_RfQResponse_ID", Integer.valueOf(C_RfQResponse_ID)); -} -/** Get RfQ Response. -@return Request for Quotation Response from a potential Vendor */ -public int getC_RfQResponse_ID() -{ -Integer ii = (Integer)get_Value("C_RfQResponse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQResponse_ID */ -public static final String COLUMNNAME_C_RfQResponse_ID = "C_RfQResponse_ID"; -/** Set Work Complete. -@param DateWorkComplete Date when work is (planned to be) complete */ -public void setDateWorkComplete (Timestamp DateWorkComplete) -{ -set_Value ("DateWorkComplete", DateWorkComplete); -} -/** Get Work Complete. -@return Date when work is (planned to be) complete */ -public Timestamp getDateWorkComplete() -{ -return (Timestamp)get_Value("DateWorkComplete"); -} -/** Column name DateWorkComplete */ -public static final String COLUMNNAME_DateWorkComplete = "DateWorkComplete"; -/** Set Work Start. -@param DateWorkStart Date when work is (planned to be) started */ -public void setDateWorkStart (Timestamp DateWorkStart) -{ -set_Value ("DateWorkStart", DateWorkStart); -} -/** Get Work Start. -@return Date when work is (planned to be) started */ -public Timestamp getDateWorkStart() -{ -return (Timestamp)get_Value("DateWorkStart"); -} -/** Column name DateWorkStart */ -public static final String COLUMNNAME_DateWorkStart = "DateWorkStart"; -/** Set Delivery Days. -@param DeliveryDays Number of Days (planned) until Delivery */ -public void setDeliveryDays (int DeliveryDays) -{ -set_Value ("DeliveryDays", Integer.valueOf(DeliveryDays)); -} -/** Get Delivery Days. -@return Number of Days (planned) until Delivery */ -public int getDeliveryDays() -{ -Integer ii = (Integer)get_Value("DeliveryDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryDays */ -public static final String COLUMNNAME_DeliveryDays = "DeliveryDays"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Selected Winner. -@param IsSelectedWinner The resonse is the selected winner */ -public void setIsSelectedWinner (boolean IsSelectedWinner) -{ -set_Value ("IsSelectedWinner", Boolean.valueOf(IsSelectedWinner)); -} -/** Get Selected Winner. -@return The resonse is the selected winner */ -public boolean isSelectedWinner() -{ -Object oo = get_Value("IsSelectedWinner"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelectedWinner */ -public static final String COLUMNNAME_IsSelectedWinner = "IsSelectedWinner"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQResponseLine (Properties ctx, int C_RfQResponseLine_ID, String trxName) + { + super (ctx, C_RfQResponseLine_ID, trxName); + /** if (C_RfQResponseLine_ID == 0) { setC_RfQLine_ID (0); + setC_RfQResponseLine_ID (0); + setC_RfQResponse_ID (0); + setIsSelectedWinner (false); + setIsSelfService (false); +} */ + } + + /** Load Constructor */ + public X_C_RfQResponseLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQResponseLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_RfQLine getI_C_RfQLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Line. + @param C_RfQLine_ID + Request for Quotation Line + */ + public void setC_RfQLine_ID (int C_RfQLine_ID) + { + if (C_RfQLine_ID < 1) + throw new IllegalArgumentException ("C_RfQLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQLine_ID, Integer.valueOf(C_RfQLine_ID)); + } + + /** Get RfQ Line. + @return Request for Quotation Line + */ + public int getC_RfQLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RfQ Response Line. + @param C_RfQResponseLine_ID + Request for Quotation Response Line + */ + public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID) + { + if (C_RfQResponseLine_ID < 1) + throw new IllegalArgumentException ("C_RfQResponseLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, Integer.valueOf(C_RfQResponseLine_ID)); + } + + /** Get RfQ Response Line. + @return Request for Quotation Response Line + */ + public int getC_RfQResponseLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQResponseLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQResponse getI_C_RfQResponse() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Response. + @param C_RfQResponse_ID + Request for Quotation Response from a potential Vendor + */ + public void setC_RfQResponse_ID (int C_RfQResponse_ID) + { + if (C_RfQResponse_ID < 1) + throw new IllegalArgumentException ("C_RfQResponse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQResponse_ID, Integer.valueOf(C_RfQResponse_ID)); + } + + /** Get RfQ Response. + @return Request for Quotation Response from a potential Vendor + */ + public int getC_RfQResponse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQResponse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Work Complete. + @param DateWorkComplete + Date when work is (planned to be) complete + */ + public void setDateWorkComplete (Timestamp DateWorkComplete) + { + set_Value (COLUMNNAME_DateWorkComplete, DateWorkComplete); + } + + /** Get Work Complete. + @return Date when work is (planned to be) complete + */ + public Timestamp getDateWorkComplete () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkComplete); + } + + /** Set Work Start. + @param DateWorkStart + Date when work is (planned to be) started + */ + public void setDateWorkStart (Timestamp DateWorkStart) + { + set_Value (COLUMNNAME_DateWorkStart, DateWorkStart); + } + + /** Get Work Start. + @return Date when work is (planned to be) started + */ + public Timestamp getDateWorkStart () + { + return (Timestamp)get_Value(COLUMNNAME_DateWorkStart); + } + + /** Set Delivery Days. + @param DeliveryDays + Number of Days (planned) until Delivery + */ + public void setDeliveryDays (int DeliveryDays) + { + set_Value (COLUMNNAME_DeliveryDays, Integer.valueOf(DeliveryDays)); + } + + /** Get Delivery Days. + @return Number of Days (planned) until Delivery + */ + public int getDeliveryDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Selected Winner. + @param IsSelectedWinner + The resonse is the selected winner + */ + public void setIsSelectedWinner (boolean IsSelectedWinner) + { + set_Value (COLUMNNAME_IsSelectedWinner, Boolean.valueOf(IsSelectedWinner)); + } + + /** Get Selected Winner. + @return The resonse is the selected winner + */ + public boolean isSelectedWinner () + { + Object oo = get_Value(COLUMNNAME_IsSelectedWinner); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_RfQResponseLineQty.java b/base/src/org/compiere/model/X_C_RfQResponseLineQty.java index 66ebedfb62..e900d06fdc 100644 --- a/base/src/org/compiere/model/X_C_RfQResponseLineQty.java +++ b/base/src/org/compiere/model/X_C_RfQResponseLineQty.java @@ -1,197 +1,244 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQResponseLineQty - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQResponseLineQty extends PO + +/** Generated Model for C_RfQResponseLineQty + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQResponseLineQty extends PO implements I_C_RfQResponseLineQty, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQResponseLineQty_ID id -@param trxName transaction -*/ -public X_C_RfQResponseLineQty (Properties ctx, int C_RfQResponseLineQty_ID, String trxName) -{ -super (ctx, C_RfQResponseLineQty_ID, trxName); -/** if (C_RfQResponseLineQty_ID == 0) -{ -setC_RfQLineQty_ID (0); -setC_RfQResponseLineQty_ID (0); -setC_RfQResponseLine_ID (0); -setPrice (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQResponseLineQty (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQResponseLineQty */ -public static final String Table_Name="C_RfQResponseLineQty"; - -/** AD_Table_ID=672 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQResponseLineQty[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set RfQ Line Quantity. -@param C_RfQLineQty_ID Request for Quotation Line Quantity */ -public void setC_RfQLineQty_ID (int C_RfQLineQty_ID) -{ -if (C_RfQLineQty_ID < 1) throw new IllegalArgumentException ("C_RfQLineQty_ID is mandatory."); -set_ValueNoCheck ("C_RfQLineQty_ID", Integer.valueOf(C_RfQLineQty_ID)); -} -/** Get RfQ Line Quantity. -@return Request for Quotation Line Quantity */ -public int getC_RfQLineQty_ID() -{ -Integer ii = (Integer)get_Value("C_RfQLineQty_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQLineQty_ID */ -public static final String COLUMNNAME_C_RfQLineQty_ID = "C_RfQLineQty_ID"; -/** Set RfQ Response Line Qty. -@param C_RfQResponseLineQty_ID Request for Quotation Response Line Quantity */ -public void setC_RfQResponseLineQty_ID (int C_RfQResponseLineQty_ID) -{ -if (C_RfQResponseLineQty_ID < 1) throw new IllegalArgumentException ("C_RfQResponseLineQty_ID is mandatory."); -set_ValueNoCheck ("C_RfQResponseLineQty_ID", Integer.valueOf(C_RfQResponseLineQty_ID)); -} -/** Get RfQ Response Line Qty. -@return Request for Quotation Response Line Quantity */ -public int getC_RfQResponseLineQty_ID() -{ -Integer ii = (Integer)get_Value("C_RfQResponseLineQty_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQResponseLineQty_ID */ -public static final String COLUMNNAME_C_RfQResponseLineQty_ID = "C_RfQResponseLineQty_ID"; -/** Set RfQ Response Line. -@param C_RfQResponseLine_ID Request for Quotation Response Line */ -public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID) -{ -if (C_RfQResponseLine_ID < 1) throw new IllegalArgumentException ("C_RfQResponseLine_ID is mandatory."); -set_ValueNoCheck ("C_RfQResponseLine_ID", Integer.valueOf(C_RfQResponseLine_ID)); -} -/** Get RfQ Response Line. -@return Request for Quotation Response Line */ -public int getC_RfQResponseLine_ID() -{ -Integer ii = (Integer)get_Value("C_RfQResponseLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_RfQResponseLine_ID())); -} -/** Column name C_RfQResponseLine_ID */ -public static final String COLUMNNAME_C_RfQResponseLine_ID = "C_RfQResponseLine_ID"; -/** Set Discount %. -@param Discount Discount in percent */ -public void setDiscount (BigDecimal Discount) -{ -set_Value ("Discount", Discount); -} -/** Get Discount %. -@return Discount in percent */ -public BigDecimal getDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Discount */ -public static final String COLUMNNAME_Discount = "Discount"; -/** Set Price. -@param Price Price */ -public void setPrice (BigDecimal Price) -{ -if (Price == null) throw new IllegalArgumentException ("Price is mandatory."); -set_Value ("Price", Price); -} -/** Get Price. -@return Price */ -public BigDecimal getPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("Price"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Price */ -public static final String COLUMNNAME_Price = "Price"; -/** Set Ranking. -@param Ranking Relative Rank Number */ -public void setRanking (int Ranking) -{ -set_Value ("Ranking", Integer.valueOf(Ranking)); -} -/** Get Ranking. -@return Relative Rank Number */ -public int getRanking() -{ -Integer ii = (Integer)get_Value("Ranking"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ranking */ -public static final String COLUMNNAME_Ranking = "Ranking"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQResponseLineQty (Properties ctx, int C_RfQResponseLineQty_ID, String trxName) + { + super (ctx, C_RfQResponseLineQty_ID, trxName); + /** if (C_RfQResponseLineQty_ID == 0) { setC_RfQLineQty_ID (0); + setC_RfQResponseLineQty_ID (0); + setC_RfQResponseLine_ID (0); + setPrice (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_RfQResponseLineQty (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQResponseLineQty[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_RfQLineQty getI_C_RfQLineQty() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Line Quantity. + @param C_RfQLineQty_ID + Request for Quotation Line Quantity + */ + public void setC_RfQLineQty_ID (int C_RfQLineQty_ID) + { + if (C_RfQLineQty_ID < 1) + throw new IllegalArgumentException ("C_RfQLineQty_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQLineQty_ID, Integer.valueOf(C_RfQLineQty_ID)); + } + + /** Get RfQ Line Quantity. + @return Request for Quotation Line Quantity + */ + public int getC_RfQLineQty_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQLineQty_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RfQ Response Line Qty. + @param C_RfQResponseLineQty_ID + Request for Quotation Response Line Quantity + */ + public void setC_RfQResponseLineQty_ID (int C_RfQResponseLineQty_ID) + { + if (C_RfQResponseLineQty_ID < 1) + throw new IllegalArgumentException ("C_RfQResponseLineQty_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLineQty_ID, Integer.valueOf(C_RfQResponseLineQty_ID)); + } + + /** Get RfQ Response Line Qty. + @return Request for Quotation Response Line Quantity + */ + public int getC_RfQResponseLineQty_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQResponseLineQty_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQResponseLine getI_C_RfQResponseLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Response Line. + @param C_RfQResponseLine_ID + Request for Quotation Response Line + */ + public void setC_RfQResponseLine_ID (int C_RfQResponseLine_ID) + { + if (C_RfQResponseLine_ID < 1) + throw new IllegalArgumentException ("C_RfQResponseLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQResponseLine_ID, Integer.valueOf(C_RfQResponseLine_ID)); + } + + /** Get RfQ Response Line. + @return Request for Quotation Response Line + */ + public int getC_RfQResponseLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQResponseLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_RfQResponseLine_ID())); + } + + /** Set Discount %. + @param Discount + Discount in percent + */ + public void setDiscount (BigDecimal Discount) + { + set_Value (COLUMNNAME_Discount, Discount); + } + + /** Get Discount %. + @return Discount in percent + */ + public BigDecimal getDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price. + @param Price + Price + */ + public void setPrice (BigDecimal Price) + { + if (Price == null) + throw new IllegalArgumentException ("Price is mandatory."); + set_Value (COLUMNNAME_Price, Price); + } + + /** Get Price. + @return Price + */ + public BigDecimal getPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Price); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ranking. + @param Ranking + Relative Rank Number + */ + public void setRanking (int Ranking) + { + set_Value (COLUMNNAME_Ranking, Integer.valueOf(Ranking)); + } + + /** Get Ranking. + @return Relative Rank Number + */ + public int getRanking () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ranking); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 7023b47526..254ef8fae8 100644 --- a/base/src/org/compiere/model/X_C_RfQ_Topic.java +++ b/base/src/org/compiere/model/X_C_RfQ_Topic.java @@ -1,190 +1,213 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQ_Topic - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQ_Topic extends PO + +/** Generated Model for C_RfQ_Topic + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQ_Topic extends PO implements I_C_RfQ_Topic, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQ_Topic_ID id -@param trxName transaction -*/ -public X_C_RfQ_Topic (Properties ctx, int C_RfQ_Topic_ID, String trxName) -{ -super (ctx, C_RfQ_Topic_ID, trxName); -/** if (C_RfQ_Topic_ID == 0) -{ -setC_RfQ_Topic_ID (0); -setIsSelfService (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQ_Topic (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQ_Topic */ -public static final String Table_Name="C_RfQ_Topic"; - -/** AD_Table_ID=671 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQ_Topic[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID <= 0) set_Value ("AD_PrintFormat_ID", null); - else -set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set RfQ Topic. -@param C_RfQ_Topic_ID Topic for Request for Quotations */ -public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) -{ -if (C_RfQ_Topic_ID < 1) throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_Topic_ID", Integer.valueOf(C_RfQ_Topic_ID)); -} -/** Get RfQ Topic. -@return Topic for Request for Quotations */ -public int getC_RfQ_Topic_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_Topic_ID */ -public static final String COLUMNNAME_C_RfQ_Topic_ID = "C_RfQ_Topic_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQ_Topic (Properties ctx, int C_RfQ_Topic_ID, String trxName) + { + super (ctx, C_RfQ_Topic_ID, trxName); + /** if (C_RfQ_Topic_ID == 0) { setC_RfQ_Topic_ID (0); + setIsSelfService (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_RfQ_Topic (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQ_Topic[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RfQ Topic. + @param C_RfQ_Topic_ID + Topic for Request for Quotations + */ + public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) + { + if (C_RfQ_Topic_ID < 1) + throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); + } + + /** Get RfQ Topic. + @return Topic for Request for Quotations + */ + public int getC_RfQ_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 c3bb970e16..a4d06f8bdf 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriber.java @@ -1,211 +1,276 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQ_TopicSubscriber - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQ_TopicSubscriber extends PO + +/** Generated Model for C_RfQ_TopicSubscriber + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQ_TopicSubscriber extends PO implements I_C_RfQ_TopicSubscriber, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQ_TopicSubscriber_ID id -@param trxName transaction -*/ -public X_C_RfQ_TopicSubscriber (Properties ctx, int C_RfQ_TopicSubscriber_ID, String trxName) -{ -super (ctx, C_RfQ_TopicSubscriber_ID, trxName); -/** if (C_RfQ_TopicSubscriber_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_RfQ_TopicSubscriber_ID (0); -setC_RfQ_Topic_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQ_TopicSubscriber (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQ_TopicSubscriber */ -public static final String Table_Name="C_RfQ_TopicSubscriber"; - -/** AD_Table_ID=670 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQ_TopicSubscriber[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set RfQ Subscriber. -@param C_RfQ_TopicSubscriber_ID Request for Quotation Topic Subscriber */ -public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID) -{ -if (C_RfQ_TopicSubscriber_ID < 1) throw new IllegalArgumentException ("C_RfQ_TopicSubscriber_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_TopicSubscriber_ID", Integer.valueOf(C_RfQ_TopicSubscriber_ID)); -} -/** Get RfQ Subscriber. -@return Request for Quotation Topic Subscriber */ -public int getC_RfQ_TopicSubscriber_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_TopicSubscriber_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_TopicSubscriber_ID */ -public static final String COLUMNNAME_C_RfQ_TopicSubscriber_ID = "C_RfQ_TopicSubscriber_ID"; -/** Set RfQ Topic. -@param C_RfQ_Topic_ID Topic for Request for Quotations */ -public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) -{ -if (C_RfQ_Topic_ID < 1) throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_Topic_ID", Integer.valueOf(C_RfQ_Topic_ID)); -} -/** Get RfQ Topic. -@return Topic for Request for Quotations */ -public int getC_RfQ_Topic_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_RfQ_Topic_ID())); -} -/** Column name C_RfQ_Topic_ID */ -public static final String COLUMNNAME_C_RfQ_Topic_ID = "C_RfQ_Topic_ID"; -/** Set Opt-out Date. -@param OptOutDate Date the contact opted out */ -public void setOptOutDate (Timestamp OptOutDate) -{ -set_Value ("OptOutDate", OptOutDate); -} -/** Get Opt-out Date. -@return Date the contact opted out */ -public Timestamp getOptOutDate() -{ -return (Timestamp)get_Value("OptOutDate"); -} -/** Column name OptOutDate */ -public static final String COLUMNNAME_OptOutDate = "OptOutDate"; -/** Set Subscribe Date. -@param SubscribeDate Date the contact actively subscribed */ -public void setSubscribeDate (Timestamp SubscribeDate) -{ -set_Value ("SubscribeDate", SubscribeDate); -} -/** Get Subscribe Date. -@return Date the contact actively subscribed */ -public Timestamp getSubscribeDate() -{ -return (Timestamp)get_Value("SubscribeDate"); -} -/** Column name SubscribeDate */ -public static final String COLUMNNAME_SubscribeDate = "SubscribeDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQ_TopicSubscriber (Properties ctx, int C_RfQ_TopicSubscriber_ID, String trxName) + { + super (ctx, C_RfQ_TopicSubscriber_ID, trxName); + /** if (C_RfQ_TopicSubscriber_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_RfQ_TopicSubscriber_ID (0); + setC_RfQ_Topic_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_RfQ_TopicSubscriber (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQ_TopicSubscriber[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RfQ Subscriber. + @param C_RfQ_TopicSubscriber_ID + Request for Quotation Topic Subscriber + */ + public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID) + { + if (C_RfQ_TopicSubscriber_ID < 1) + throw new IllegalArgumentException ("C_RfQ_TopicSubscriber_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, Integer.valueOf(C_RfQ_TopicSubscriber_ID)); + } + + /** Get RfQ Subscriber. + @return Request for Quotation Topic Subscriber + */ + public int getC_RfQ_TopicSubscriber_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_TopicSubscriber_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQ_Topic getI_C_RfQ_Topic() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Topic. + @param C_RfQ_Topic_ID + Topic for Request for Quotations + */ + public void setC_RfQ_Topic_ID (int C_RfQ_Topic_ID) + { + if (C_RfQ_Topic_ID < 1) + throw new IllegalArgumentException ("C_RfQ_Topic_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_Topic_ID, Integer.valueOf(C_RfQ_Topic_ID)); + } + + /** Get RfQ Topic. + @return Topic for Request for Quotations + */ + public int getC_RfQ_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_RfQ_Topic_ID())); + } + + /** Set Opt-out Date. + @param OptOutDate + Date the contact opted out + */ + public void setOptOutDate (Timestamp OptOutDate) + { + set_Value (COLUMNNAME_OptOutDate, OptOutDate); + } + + /** Get Opt-out Date. + @return Date the contact opted out + */ + public Timestamp getOptOutDate () + { + return (Timestamp)get_Value(COLUMNNAME_OptOutDate); + } + + /** Set Subscribe Date. + @param SubscribeDate + Date the contact actively subscribed + */ + public void setSubscribeDate (Timestamp SubscribeDate) + { + set_Value (COLUMNNAME_SubscribeDate, SubscribeDate); + } + + /** Get Subscribe Date. + @return Date the contact actively subscribed + */ + public Timestamp getSubscribeDate () + { + return (Timestamp)get_Value(COLUMNNAME_SubscribeDate); + } +} \ No newline at end of file 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 4b30e44d11..7d649ff49a 100644 --- a/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java +++ b/base/src/org/compiere/model/X_C_RfQ_TopicSubscriberOnly.java @@ -1,184 +1,224 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_RfQ_TopicSubscriberOnly - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_RfQ_TopicSubscriberOnly extends PO + +/** Generated Model for C_RfQ_TopicSubscriberOnly + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_RfQ_TopicSubscriberOnly extends PO implements I_C_RfQ_TopicSubscriberOnly, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_RfQ_TopicSubscriberOnly_ID id -@param trxName transaction -*/ -public X_C_RfQ_TopicSubscriberOnly (Properties ctx, int C_RfQ_TopicSubscriberOnly_ID, String trxName) -{ -super (ctx, C_RfQ_TopicSubscriberOnly_ID, trxName); -/** if (C_RfQ_TopicSubscriberOnly_ID == 0) -{ -setC_RfQ_TopicSubscriberOnly_ID (0); -setC_RfQ_TopicSubscriber_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_RfQ_TopicSubscriberOnly (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_RfQ_TopicSubscriberOnly */ -public static final String Table_Name="C_RfQ_TopicSubscriberOnly"; - -/** AD_Table_ID=747 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_RfQ_TopicSubscriberOnly[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set RfQ Topic Subscriber Restriction. -@param C_RfQ_TopicSubscriberOnly_ID Include Subscriber only for certain products or product categories */ -public void setC_RfQ_TopicSubscriberOnly_ID (int C_RfQ_TopicSubscriberOnly_ID) -{ -if (C_RfQ_TopicSubscriberOnly_ID < 1) throw new IllegalArgumentException ("C_RfQ_TopicSubscriberOnly_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_TopicSubscriberOnly_ID", Integer.valueOf(C_RfQ_TopicSubscriberOnly_ID)); -} -/** Get RfQ Topic Subscriber Restriction. -@return Include Subscriber only for certain products or product categories */ -public int getC_RfQ_TopicSubscriberOnly_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_TopicSubscriberOnly_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_TopicSubscriberOnly_ID */ -public static final String COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID = "C_RfQ_TopicSubscriberOnly_ID"; -/** Set RfQ Subscriber. -@param C_RfQ_TopicSubscriber_ID Request for Quotation Topic Subscriber */ -public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID) -{ -if (C_RfQ_TopicSubscriber_ID < 1) throw new IllegalArgumentException ("C_RfQ_TopicSubscriber_ID is mandatory."); -set_ValueNoCheck ("C_RfQ_TopicSubscriber_ID", Integer.valueOf(C_RfQ_TopicSubscriber_ID)); -} -/** Get RfQ Subscriber. -@return Request for Quotation Topic Subscriber */ -public int getC_RfQ_TopicSubscriber_ID() -{ -Integer ii = (Integer)get_Value("C_RfQ_TopicSubscriber_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RfQ_TopicSubscriber_ID */ -public static final String COLUMNNAME_C_RfQ_TopicSubscriber_ID = "C_RfQ_TopicSubscriber_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_Product_Category_ID())); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_RfQ_TopicSubscriberOnly (Properties ctx, int C_RfQ_TopicSubscriberOnly_ID, String trxName) + { + super (ctx, C_RfQ_TopicSubscriberOnly_ID, trxName); + /** if (C_RfQ_TopicSubscriberOnly_ID == 0) { setC_RfQ_TopicSubscriberOnly_ID (0); + setC_RfQ_TopicSubscriber_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_RfQ_TopicSubscriberOnly (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_RfQ_TopicSubscriberOnly[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set RfQ Topic Subscriber Restriction. + @param C_RfQ_TopicSubscriberOnly_ID + Include Subscriber only for certain products or product categories + */ + public void setC_RfQ_TopicSubscriberOnly_ID (int C_RfQ_TopicSubscriberOnly_ID) + { + if (C_RfQ_TopicSubscriberOnly_ID < 1) + throw new IllegalArgumentException ("C_RfQ_TopicSubscriberOnly_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID, Integer.valueOf(C_RfQ_TopicSubscriberOnly_ID)); + } + + /** Get RfQ Topic Subscriber Restriction. + @return Include Subscriber only for certain products or product categories + */ + public int getC_RfQ_TopicSubscriberOnly_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_TopicSubscriberOnly_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_RfQ_TopicSubscriber getI_C_RfQ_TopicSubscriber() throws Exception + { + 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 e; + } + return result; + } + + /** Set RfQ Subscriber. + @param C_RfQ_TopicSubscriber_ID + Request for Quotation Topic Subscriber + */ + public void setC_RfQ_TopicSubscriber_ID (int C_RfQ_TopicSubscriber_ID) + { + if (C_RfQ_TopicSubscriber_ID < 1) + throw new IllegalArgumentException ("C_RfQ_TopicSubscriber_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RfQ_TopicSubscriber_ID, Integer.valueOf(C_RfQ_TopicSubscriber_ID)); + } + + /** Get RfQ Subscriber. + @return Request for Quotation Topic Subscriber + */ + public int getC_RfQ_TopicSubscriber_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RfQ_TopicSubscriber_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_Product_Category_ID())); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_SalesRegion.java b/base/src/org/compiere/model/X_C_SalesRegion.java index 9d8c93804f..6018eaaaf9 100644 --- a/base/src/org/compiere/model/X_C_SalesRegion.java +++ b/base/src/org/compiere/model/X_C_SalesRegion.java @@ -1,235 +1,249 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_SalesRegion - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_SalesRegion extends PO + +/** Generated Model for C_SalesRegion + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_SalesRegion extends PO implements I_C_SalesRegion, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_SalesRegion_ID id -@param trxName transaction -*/ -public X_C_SalesRegion (Properties ctx, int C_SalesRegion_ID, String trxName) -{ -super (ctx, C_SalesRegion_ID, trxName); -/** if (C_SalesRegion_ID == 0) -{ -setC_SalesRegion_ID (0); -setIsDefault (false); -setIsSummary (false); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_SalesRegion (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_SalesRegion */ -public static final String Table_Name="C_SalesRegion"; - -/** AD_Table_ID=230 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_SalesRegion[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID < 1) throw new IllegalArgumentException ("C_SalesRegion_ID is mandatory."); -set_ValueNoCheck ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_SalesRegion (Properties ctx, int C_SalesRegion_ID, String trxName) + { + super (ctx, C_SalesRegion_ID, trxName); + /** if (C_SalesRegion_ID == 0) { setC_SalesRegion_ID (0); + setIsDefault (false); + setIsSummary (false); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_SalesRegion (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_SalesRegion[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID < 1) + throw new IllegalArgumentException ("C_SalesRegion_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ServiceLevel.java b/base/src/org/compiere/model/X_C_ServiceLevel.java index 55bf8d8269..2aeb3d5afb 100644 --- a/base/src/org/compiere/model/X_C_ServiceLevel.java +++ b/base/src/org/compiere/model/X_C_ServiceLevel.java @@ -1,242 +1,278 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ServiceLevel - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ServiceLevel extends PO + +/** Generated Model for C_ServiceLevel + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ServiceLevel extends PO implements I_C_ServiceLevel, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ServiceLevel_ID id -@param trxName transaction -*/ -public X_C_ServiceLevel (Properties ctx, int C_ServiceLevel_ID, String trxName) -{ -super (ctx, C_ServiceLevel_ID, trxName); -/** if (C_ServiceLevel_ID == 0) -{ -setC_RevenueRecognition_Plan_ID (0); -setC_ServiceLevel_ID (0); -setM_Product_ID (0); -setServiceLevelInvoiced (Env.ZERO); -setServiceLevelProvided (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ServiceLevel (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ServiceLevel */ -public static final String Table_Name="C_ServiceLevel"; - -/** AD_Table_ID=337 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ServiceLevel[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Revenue Recognition Plan. -@param C_RevenueRecognition_Plan_ID Plan for recognizing or recording revenue */ -public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) -{ -if (C_RevenueRecognition_Plan_ID < 1) throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); -set_ValueNoCheck ("C_RevenueRecognition_Plan_ID", Integer.valueOf(C_RevenueRecognition_Plan_ID)); -} -/** Get Revenue Recognition Plan. -@return Plan for recognizing or recording revenue */ -public int getC_RevenueRecognition_Plan_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_Plan_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RevenueRecognition_Plan_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_Plan_ID = "C_RevenueRecognition_Plan_ID"; -/** Set Service Level. -@param C_ServiceLevel_ID Product Revenue Recognition Service Level */ -public void setC_ServiceLevel_ID (int C_ServiceLevel_ID) -{ -if (C_ServiceLevel_ID < 1) throw new IllegalArgumentException ("C_ServiceLevel_ID is mandatory."); -set_ValueNoCheck ("C_ServiceLevel_ID", Integer.valueOf(C_ServiceLevel_ID)); -} -/** Get Service Level. -@return Product Revenue Recognition Service Level */ -public int getC_ServiceLevel_ID() -{ -Integer ii = (Integer)get_Value("C_ServiceLevel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ServiceLevel_ID */ -public static final String COLUMNNAME_C_ServiceLevel_ID = "C_ServiceLevel_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDescription()); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Quantity Invoiced. -@param ServiceLevelInvoiced Quantity of product or service invoiced */ -public void setServiceLevelInvoiced (BigDecimal ServiceLevelInvoiced) -{ -if (ServiceLevelInvoiced == null) throw new IllegalArgumentException ("ServiceLevelInvoiced is mandatory."); -set_ValueNoCheck ("ServiceLevelInvoiced", ServiceLevelInvoiced); -} -/** Get Quantity Invoiced. -@return Quantity of product or service invoiced */ -public BigDecimal getServiceLevelInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("ServiceLevelInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ServiceLevelInvoiced */ -public static final String COLUMNNAME_ServiceLevelInvoiced = "ServiceLevelInvoiced"; -/** Set Quantity Provided. -@param ServiceLevelProvided Quantity of service or product provided */ -public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) -{ -if (ServiceLevelProvided == null) throw new IllegalArgumentException ("ServiceLevelProvided is mandatory."); -set_ValueNoCheck ("ServiceLevelProvided", ServiceLevelProvided); -} -/** Get Quantity Provided. -@return Quantity of service or product provided */ -public BigDecimal getServiceLevelProvided() -{ -BigDecimal bd = (BigDecimal)get_Value("ServiceLevelProvided"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ServiceLevelProvided */ -public static final String COLUMNNAME_ServiceLevelProvided = "ServiceLevelProvided"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ServiceLevel (Properties ctx, int C_ServiceLevel_ID, String trxName) + { + super (ctx, C_ServiceLevel_ID, trxName); + /** if (C_ServiceLevel_ID == 0) { setC_RevenueRecognition_Plan_ID (0); + setC_ServiceLevel_ID (0); + setM_Product_ID (0); + setServiceLevelInvoiced (Env.ZERO); + setServiceLevelProvided (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_ServiceLevel (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ServiceLevel[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_RevenueRecognition_Plan getI_C_RevenueRecognition_Plan() throws Exception + { + 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 e; + } + return result; + } + + /** Set Revenue Recognition Plan. + @param C_RevenueRecognition_Plan_ID + Plan for recognizing or recording revenue + */ + public void setC_RevenueRecognition_Plan_ID (int C_RevenueRecognition_Plan_ID) + { + if (C_RevenueRecognition_Plan_ID < 1) + throw new IllegalArgumentException ("C_RevenueRecognition_Plan_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_RevenueRecognition_Plan_ID, Integer.valueOf(C_RevenueRecognition_Plan_ID)); + } + + /** Get Revenue Recognition Plan. + @return Plan for recognizing or recording revenue + */ + public int getC_RevenueRecognition_Plan_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_Plan_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Service Level. + @param C_ServiceLevel_ID + Product Revenue Recognition Service Level + */ + public void setC_ServiceLevel_ID (int C_ServiceLevel_ID) + { + if (C_ServiceLevel_ID < 1) + throw new IllegalArgumentException ("C_ServiceLevel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, Integer.valueOf(C_ServiceLevel_ID)); + } + + /** Get Service Level. + @return Product Revenue Recognition Service Level + */ + public int getC_ServiceLevel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ServiceLevel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDescription()); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity Invoiced. + @param ServiceLevelInvoiced + Quantity of product or service invoiced + */ + public void setServiceLevelInvoiced (BigDecimal ServiceLevelInvoiced) + { + if (ServiceLevelInvoiced == null) + throw new IllegalArgumentException ("ServiceLevelInvoiced is mandatory."); + set_ValueNoCheck (COLUMNNAME_ServiceLevelInvoiced, ServiceLevelInvoiced); + } + + /** Get Quantity Invoiced. + @return Quantity of product or service invoiced + */ + public BigDecimal getServiceLevelInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ServiceLevelInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Provided. + @param ServiceLevelProvided + Quantity of service or product provided + */ + public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) + { + if (ServiceLevelProvided == null) + throw new IllegalArgumentException ("ServiceLevelProvided is mandatory."); + set_ValueNoCheck (COLUMNNAME_ServiceLevelProvided, ServiceLevelProvided); + } + + /** Get Quantity Provided. + @return Quantity of service or product provided + */ + public BigDecimal getServiceLevelProvided () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ServiceLevelProvided); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ServiceLevelLine.java b/base/src/org/compiere/model/X_C_ServiceLevelLine.java index e5a201a009..3aa7c28077 100644 --- a/base/src/org/compiere/model/X_C_ServiceLevelLine.java +++ b/base/src/org/compiere/model/X_C_ServiceLevelLine.java @@ -1,202 +1,231 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ServiceLevelLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ServiceLevelLine extends PO + +/** Generated Model for C_ServiceLevelLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ServiceLevelLine extends PO implements I_C_ServiceLevelLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ServiceLevelLine_ID id -@param trxName transaction -*/ -public X_C_ServiceLevelLine (Properties ctx, int C_ServiceLevelLine_ID, String trxName) -{ -super (ctx, C_ServiceLevelLine_ID, trxName); -/** if (C_ServiceLevelLine_ID == 0) -{ -setC_ServiceLevelLine_ID (0); -setC_ServiceLevel_ID (0); -setServiceDate (new Timestamp(System.currentTimeMillis())); -setServiceLevelProvided (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ServiceLevelLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ServiceLevelLine */ -public static final String Table_Name="C_ServiceLevelLine"; - -/** AD_Table_ID=338 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ServiceLevelLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Service Level Line. -@param C_ServiceLevelLine_ID Product Revenue Recognition Service Level Line */ -public void setC_ServiceLevelLine_ID (int C_ServiceLevelLine_ID) -{ -if (C_ServiceLevelLine_ID < 1) throw new IllegalArgumentException ("C_ServiceLevelLine_ID is mandatory."); -set_ValueNoCheck ("C_ServiceLevelLine_ID", Integer.valueOf(C_ServiceLevelLine_ID)); -} -/** Get Service Level Line. -@return Product Revenue Recognition Service Level Line */ -public int getC_ServiceLevelLine_ID() -{ -Integer ii = (Integer)get_Value("C_ServiceLevelLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ServiceLevelLine_ID */ -public static final String COLUMNNAME_C_ServiceLevelLine_ID = "C_ServiceLevelLine_ID"; -/** Set Service Level. -@param C_ServiceLevel_ID Product Revenue Recognition Service Level */ -public void setC_ServiceLevel_ID (int C_ServiceLevel_ID) -{ -if (C_ServiceLevel_ID < 1) throw new IllegalArgumentException ("C_ServiceLevel_ID is mandatory."); -set_ValueNoCheck ("C_ServiceLevel_ID", Integer.valueOf(C_ServiceLevel_ID)); -} -/** Get Service Level. -@return Product Revenue Recognition Service Level */ -public int getC_ServiceLevel_ID() -{ -Integer ii = (Integer)get_Value("C_ServiceLevel_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ServiceLevel_ID */ -public static final String COLUMNNAME_C_ServiceLevel_ID = "C_ServiceLevel_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Service date. -@param ServiceDate Date service was provided */ -public void setServiceDate (Timestamp ServiceDate) -{ -if (ServiceDate == null) throw new IllegalArgumentException ("ServiceDate is mandatory."); -set_ValueNoCheck ("ServiceDate", ServiceDate); -} -/** Get Service date. -@return Date service was provided */ -public Timestamp getServiceDate() -{ -return (Timestamp)get_Value("ServiceDate"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getServiceDate())); -} -/** Column name ServiceDate */ -public static final String COLUMNNAME_ServiceDate = "ServiceDate"; -/** Set Quantity Provided. -@param ServiceLevelProvided Quantity of service or product provided */ -public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) -{ -if (ServiceLevelProvided == null) throw new IllegalArgumentException ("ServiceLevelProvided is mandatory."); -set_ValueNoCheck ("ServiceLevelProvided", ServiceLevelProvided); -} -/** Get Quantity Provided. -@return Quantity of service or product provided */ -public BigDecimal getServiceLevelProvided() -{ -BigDecimal bd = (BigDecimal)get_Value("ServiceLevelProvided"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ServiceLevelProvided */ -public static final String COLUMNNAME_ServiceLevelProvided = "ServiceLevelProvided"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ServiceLevelLine (Properties ctx, int C_ServiceLevelLine_ID, String trxName) + { + super (ctx, C_ServiceLevelLine_ID, trxName); + /** if (C_ServiceLevelLine_ID == 0) { setC_ServiceLevelLine_ID (0); + setC_ServiceLevel_ID (0); + setServiceDate (new Timestamp(System.currentTimeMillis())); + setServiceLevelProvided (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_ServiceLevelLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ServiceLevelLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Service Level Line. + @param C_ServiceLevelLine_ID + Product Revenue Recognition Service Level Line + */ + public void setC_ServiceLevelLine_ID (int C_ServiceLevelLine_ID) + { + if (C_ServiceLevelLine_ID < 1) + throw new IllegalArgumentException ("C_ServiceLevelLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ServiceLevelLine_ID, Integer.valueOf(C_ServiceLevelLine_ID)); + } + + /** Get Service Level Line. + @return Product Revenue Recognition Service Level Line + */ + public int getC_ServiceLevelLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ServiceLevelLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ServiceLevel getI_C_ServiceLevel() throws Exception + { + 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 e; + } + return result; + } + + /** Set Service Level. + @param C_ServiceLevel_ID + Product Revenue Recognition Service Level + */ + public void setC_ServiceLevel_ID (int C_ServiceLevel_ID) + { + if (C_ServiceLevel_ID < 1) + throw new IllegalArgumentException ("C_ServiceLevel_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ServiceLevel_ID, Integer.valueOf(C_ServiceLevel_ID)); + } + + /** Get Service Level. + @return Product Revenue Recognition Service Level + */ + public int getC_ServiceLevel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ServiceLevel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Service date. + @param ServiceDate + Date service was provided + */ + public void setServiceDate (Timestamp ServiceDate) + { + if (ServiceDate == null) + throw new IllegalArgumentException ("ServiceDate is mandatory."); + set_ValueNoCheck (COLUMNNAME_ServiceDate, ServiceDate); + } + + /** Get Service date. + @return Date service was provided + */ + public Timestamp getServiceDate () + { + return (Timestamp)get_Value(COLUMNNAME_ServiceDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getServiceDate())); + } + + /** Set Quantity Provided. + @param ServiceLevelProvided + Quantity of service or product provided + */ + public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) + { + if (ServiceLevelProvided == null) + throw new IllegalArgumentException ("ServiceLevelProvided is mandatory."); + set_ValueNoCheck (COLUMNNAME_ServiceLevelProvided, ServiceLevelProvided); + } + + /** Get Quantity Provided. + @return Quantity of service or product provided + */ + public BigDecimal getServiceLevelProvided () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ServiceLevelProvided); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_SubAcct.java b/base/src/org/compiere/model/X_C_SubAcct.java index 7dd7be0d68..67a85ab01c 100644 --- a/base/src/org/compiere/model/X_C_SubAcct.java +++ b/base/src/org/compiere/model/X_C_SubAcct.java @@ -1,209 +1,236 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_SubAcct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_SubAcct extends PO + +/** Generated Model for C_SubAcct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_SubAcct extends PO implements I_C_SubAcct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_SubAcct_ID id -@param trxName transaction -*/ -public X_C_SubAcct (Properties ctx, int C_SubAcct_ID, String trxName) -{ -super (ctx, C_SubAcct_ID, trxName); -/** if (C_SubAcct_ID == 0) -{ -setC_ElementValue_ID (0); -setC_SubAcct_ID (0); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_SubAcct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_SubAcct */ -public static final String Table_Name="C_SubAcct"; - -/** AD_Table_ID=825 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_SubAcct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID < 1) throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); -set_ValueNoCheck ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Sub Account. -@param C_SubAcct_ID Sub account for Element Value */ -public void setC_SubAcct_ID (int C_SubAcct_ID) -{ -if (C_SubAcct_ID < 1) throw new IllegalArgumentException ("C_SubAcct_ID is mandatory."); -set_ValueNoCheck ("C_SubAcct_ID", Integer.valueOf(C_SubAcct_ID)); -} -/** Get Sub Account. -@return Sub account for Element Value */ -public int getC_SubAcct_ID() -{ -Integer ii = (Integer)get_Value("C_SubAcct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubAcct_ID */ -public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_SubAcct (Properties ctx, int C_SubAcct_ID, String trxName) + { + super (ctx, C_SubAcct_ID, trxName); + /** if (C_SubAcct_ID == 0) { setC_ElementValue_ID (0); + setC_SubAcct_ID (0); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_C_SubAcct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_SubAcct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ElementValue getI_C_ElementValue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID < 1) + throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sub Account. + @param C_SubAcct_ID + Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID) + { + if (C_SubAcct_ID < 1) + throw new IllegalArgumentException ("C_SubAcct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID)); + } + + /** Get Sub Account. + @return Sub account for Element Value + */ + public int getC_SubAcct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubAcct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Subscription.java b/base/src/org/compiere/model/X_C_Subscription.java index daf8164bb0..e01c79316d 100644 --- a/base/src/org/compiere/model/X_C_Subscription.java +++ b/base/src/org/compiere/model/X_C_Subscription.java @@ -1,255 +1,295 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Subscription - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Subscription extends PO + +/** Generated Model for C_Subscription + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Subscription extends PO implements I_C_Subscription, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Subscription_ID id -@param trxName transaction -*/ -public X_C_Subscription (Properties ctx, int C_Subscription_ID, String trxName) -{ -super (ctx, C_Subscription_ID, trxName); -/** if (C_Subscription_ID == 0) -{ -setC_BPartner_ID (0); -setC_SubscriptionType_ID (0); -setC_Subscription_ID (0); -setIsDue (false); -setM_Product_ID (0); -setName (null); -setPaidUntilDate (new Timestamp(System.currentTimeMillis())); -setRenewalDate (new Timestamp(System.currentTimeMillis())); -setStartDate (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Subscription (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Subscription */ -public static final String Table_Name="C_Subscription"; - -/** AD_Table_ID=669 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Subscription[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Subscription Type. -@param C_SubscriptionType_ID Type of subscription */ -public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) -{ -if (C_SubscriptionType_ID < 1) throw new IllegalArgumentException ("C_SubscriptionType_ID is mandatory."); -set_Value ("C_SubscriptionType_ID", Integer.valueOf(C_SubscriptionType_ID)); -} -/** Get Subscription Type. -@return Type of subscription */ -public int getC_SubscriptionType_ID() -{ -Integer ii = (Integer)get_Value("C_SubscriptionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubscriptionType_ID */ -public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; -/** Set Subscription. -@param C_Subscription_ID Subscription of a Business Partner of a Product to renew */ -public void setC_Subscription_ID (int C_Subscription_ID) -{ -if (C_Subscription_ID < 1) throw new IllegalArgumentException ("C_Subscription_ID is mandatory."); -set_ValueNoCheck ("C_Subscription_ID", Integer.valueOf(C_Subscription_ID)); -} -/** Get Subscription. -@return Subscription of a Business Partner of a Product to renew */ -public int getC_Subscription_ID() -{ -Integer ii = (Integer)get_Value("C_Subscription_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Subscription_ID */ -public static final String COLUMNNAME_C_Subscription_ID = "C_Subscription_ID"; -/** Set Due. -@param IsDue Subscription Renewal is Due */ -public void setIsDue (boolean IsDue) -{ -set_Value ("IsDue", Boolean.valueOf(IsDue)); -} -/** Get Due. -@return Subscription Renewal is Due */ -public boolean isDue() -{ -Object oo = get_Value("IsDue"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDue */ -public static final String COLUMNNAME_IsDue = "IsDue"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Paid Until. -@param PaidUntilDate Subscription is paid/valid until this date */ -public void setPaidUntilDate (Timestamp PaidUntilDate) -{ -if (PaidUntilDate == null) throw new IllegalArgumentException ("PaidUntilDate is mandatory."); -set_Value ("PaidUntilDate", PaidUntilDate); -} -/** Get Paid Until. -@return Subscription is paid/valid until this date */ -public Timestamp getPaidUntilDate() -{ -return (Timestamp)get_Value("PaidUntilDate"); -} -/** Column name PaidUntilDate */ -public static final String COLUMNNAME_PaidUntilDate = "PaidUntilDate"; -/** Set Renewal Date. -@param RenewalDate Renewal Date */ -public void setRenewalDate (Timestamp RenewalDate) -{ -if (RenewalDate == null) throw new IllegalArgumentException ("RenewalDate is mandatory."); -set_Value ("RenewalDate", RenewalDate); -} -/** Get Renewal Date. -@return Renewal Date */ -public Timestamp getRenewalDate() -{ -return (Timestamp)get_Value("RenewalDate"); -} -/** Column name RenewalDate */ -public static final String COLUMNNAME_RenewalDate = "RenewalDate"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -if (StartDate == null) throw new IllegalArgumentException ("StartDate is mandatory."); -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Subscription (Properties ctx, int C_Subscription_ID, String trxName) + { + super (ctx, C_Subscription_ID, trxName); + /** if (C_Subscription_ID == 0) { setC_BPartner_ID (0); + setC_SubscriptionType_ID (0); + setC_Subscription_ID (0); + setIsDue (false); + setM_Product_ID (0); + setName (null); + setPaidUntilDate (new Timestamp(System.currentTimeMillis())); + setRenewalDate (new Timestamp(System.currentTimeMillis())); + setStartDate (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_Subscription (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Subscription[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SubscriptionType getI_C_SubscriptionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Subscription Type. + @param C_SubscriptionType_ID + Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) + { + if (C_SubscriptionType_ID < 1) + throw new IllegalArgumentException ("C_SubscriptionType_ID is mandatory."); + set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); + } + + /** Get Subscription Type. + @return Type of subscription + */ + public int getC_SubscriptionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubscriptionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Subscription. + @param C_Subscription_ID + Subscription of a Business Partner of a Product to renew + */ + public void setC_Subscription_ID (int C_Subscription_ID) + { + if (C_Subscription_ID < 1) + throw new IllegalArgumentException ("C_Subscription_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, Integer.valueOf(C_Subscription_ID)); + } + + /** Get Subscription. + @return Subscription of a Business Partner of a Product to renew + */ + public int getC_Subscription_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Subscription_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Due. + @param IsDue + Subscription Renewal is Due + */ + public void setIsDue (boolean IsDue) + { + set_Value (COLUMNNAME_IsDue, Boolean.valueOf(IsDue)); + } + + /** Get Due. + @return Subscription Renewal is Due + */ + public boolean isDue () + { + Object oo = get_Value(COLUMNNAME_IsDue); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Paid Until. + @param PaidUntilDate + Subscription is paid/valid until this date + */ + public void setPaidUntilDate (Timestamp PaidUntilDate) + { + if (PaidUntilDate == null) + throw new IllegalArgumentException ("PaidUntilDate is mandatory."); + set_Value (COLUMNNAME_PaidUntilDate, PaidUntilDate); + } + + /** Get Paid Until. + @return Subscription is paid/valid until this date + */ + public Timestamp getPaidUntilDate () + { + return (Timestamp)get_Value(COLUMNNAME_PaidUntilDate); + } + + /** Set Renewal Date. + @param RenewalDate Renewal Date */ + public void setRenewalDate (Timestamp RenewalDate) + { + if (RenewalDate == null) + throw new IllegalArgumentException ("RenewalDate is mandatory."); + set_Value (COLUMNNAME_RenewalDate, RenewalDate); + } + + /** Get Renewal Date. +@return Renewal Date */ + public Timestamp getRenewalDate () + { + return (Timestamp)get_Value(COLUMNNAME_RenewalDate); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + if (StartDate == null) + throw new IllegalArgumentException ("StartDate is mandatory."); + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_SubscriptionType.java b/base/src/org/compiere/model/X_C_SubscriptionType.java index 907389987b..c47721a988 100644 --- a/base/src/org/compiere/model/X_C_SubscriptionType.java +++ b/base/src/org/compiere/model/X_C_SubscriptionType.java @@ -1,200 +1,199 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_SubscriptionType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_SubscriptionType extends PO + +/** Generated Model for C_SubscriptionType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_SubscriptionType extends PO implements I_C_SubscriptionType, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_SubscriptionType_ID id -@param trxName transaction -*/ -public X_C_SubscriptionType (Properties ctx, int C_SubscriptionType_ID, String trxName) -{ -super (ctx, C_SubscriptionType_ID, trxName); -/** if (C_SubscriptionType_ID == 0) -{ -setC_SubscriptionType_ID (0); -setFrequency (0); -setFrequencyType (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_SubscriptionType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_SubscriptionType */ -public static final String Table_Name="C_SubscriptionType"; - -/** AD_Table_ID=668 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_SubscriptionType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Subscription Type. -@param C_SubscriptionType_ID Type of subscription */ -public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) -{ -if (C_SubscriptionType_ID < 1) throw new IllegalArgumentException ("C_SubscriptionType_ID is mandatory."); -set_ValueNoCheck ("C_SubscriptionType_ID", Integer.valueOf(C_SubscriptionType_ID)); -} -/** Get Subscription Type. -@return Type of subscription */ -public int getC_SubscriptionType_ID() -{ -Integer ii = (Integer)get_Value("C_SubscriptionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubscriptionType_ID */ -public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_SubscriptionType (Properties ctx, int C_SubscriptionType_ID, String trxName) + { + super (ctx, C_SubscriptionType_ID, trxName); + /** if (C_SubscriptionType_ID == 0) { setC_SubscriptionType_ID (0); + setFrequency (0); + setFrequencyType (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_SubscriptionType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_SubscriptionType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Subscription Type. + @param C_SubscriptionType_ID + Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) + { + if (C_SubscriptionType_ID < 1) + throw new IllegalArgumentException ("C_SubscriptionType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); + } + + /** Get Subscription Type. + @return Type of subscription + */ + public int getC_SubscriptionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubscriptionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=221 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=221; -/** Day = D */ -public static final String FREQUENCYTYPE_Day = "D"; -/** Hour = H */ -public static final String FREQUENCYTYPE_Hour = "H"; -/** Minute = M */ +public static final int FREQUENCYTYPE_AD_Reference_ID=221;/** Day = D */ +public static final String FREQUENCYTYPE_Day = "D";/** Hour = H */ +public static final String FREQUENCYTYPE_Hour = "H";/** Minute = M */ public static final String FREQUENCYTYPE_Minute = "M"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file 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 6bc020838d..d35590b92c 100644 --- a/base/src/org/compiere/model/X_C_Subscription_Delivery.java +++ b/base/src/org/compiere/model/X_C_Subscription_Delivery.java @@ -1,129 +1,142 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Subscription_Delivery - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Subscription_Delivery extends PO + +/** Generated Model for C_Subscription_Delivery + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Subscription_Delivery extends PO implements I_C_Subscription_Delivery, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Subscription_Delivery_ID id -@param trxName transaction -*/ -public X_C_Subscription_Delivery (Properties ctx, int C_Subscription_Delivery_ID, String trxName) -{ -super (ctx, C_Subscription_Delivery_ID, trxName); -/** if (C_Subscription_Delivery_ID == 0) -{ -setC_Subscription_Delivery_ID (0); -setC_Subscription_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Subscription_Delivery (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Subscription_Delivery */ -public static final String Table_Name="C_Subscription_Delivery"; - -/** AD_Table_ID=667 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Subscription_Delivery[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Subscription Delivery. -@param C_Subscription_Delivery_ID Optional Delivery Record for a Subscription */ -public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID) -{ -if (C_Subscription_Delivery_ID < 1) throw new IllegalArgumentException ("C_Subscription_Delivery_ID is mandatory."); -set_ValueNoCheck ("C_Subscription_Delivery_ID", Integer.valueOf(C_Subscription_Delivery_ID)); -} -/** Get Subscription Delivery. -@return Optional Delivery Record for a Subscription */ -public int getC_Subscription_Delivery_ID() -{ -Integer ii = (Integer)get_Value("C_Subscription_Delivery_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Subscription_Delivery_ID())); -} -/** Column name C_Subscription_Delivery_ID */ -public static final String COLUMNNAME_C_Subscription_Delivery_ID = "C_Subscription_Delivery_ID"; -/** Set Subscription. -@param C_Subscription_ID Subscription of a Business Partner of a Product to renew */ -public void setC_Subscription_ID (int C_Subscription_ID) -{ -if (C_Subscription_ID < 1) throw new IllegalArgumentException ("C_Subscription_ID is mandatory."); -set_ValueNoCheck ("C_Subscription_ID", Integer.valueOf(C_Subscription_ID)); -} -/** Get Subscription. -@return Subscription of a Business Partner of a Product to renew */ -public int getC_Subscription_ID() -{ -Integer ii = (Integer)get_Value("C_Subscription_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Subscription_ID */ -public static final String COLUMNNAME_C_Subscription_ID = "C_Subscription_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Subscription_Delivery (Properties ctx, int C_Subscription_Delivery_ID, String trxName) + { + super (ctx, C_Subscription_Delivery_ID, trxName); + /** if (C_Subscription_Delivery_ID == 0) { setC_Subscription_Delivery_ID (0); + setC_Subscription_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_Subscription_Delivery (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Subscription_Delivery[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Subscription Delivery. + @param C_Subscription_Delivery_ID + Optional Delivery Record for a Subscription + */ + public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID) + { + if (C_Subscription_Delivery_ID < 1) + throw new IllegalArgumentException ("C_Subscription_Delivery_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Subscription_Delivery_ID, Integer.valueOf(C_Subscription_Delivery_ID)); + } + + /** Get Subscription Delivery. + @return Optional Delivery Record for a Subscription + */ + public int getC_Subscription_Delivery_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Subscription_Delivery_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Subscription_Delivery_ID())); + } + + public I_C_Subscription getI_C_Subscription() throws Exception + { + 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 e; + } + return result; + } + + /** Set Subscription. + @param C_Subscription_ID + Subscription of a Business Partner of a Product to renew + */ + public void setC_Subscription_ID (int C_Subscription_ID) + { + if (C_Subscription_ID < 1) + throw new IllegalArgumentException ("C_Subscription_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Subscription_ID, Integer.valueOf(C_Subscription_ID)); + } + + /** Get Subscription. + @return Subscription of a Business Partner of a Product to renew + */ + public int getC_Subscription_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Subscription_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Task.java b/base/src/org/compiere/model/X_C_Task.java index 8866fa7452..fc9fae77c0 100644 --- a/base/src/org/compiere/model/X_C_Task.java +++ b/base/src/org/compiere/model/X_C_Task.java @@ -1,243 +1,279 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Task - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Task extends PO + +/** Generated Model for C_Task + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Task extends PO implements I_C_Task, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Task_ID id -@param trxName transaction -*/ -public X_C_Task (Properties ctx, int C_Task_ID, String trxName) -{ -super (ctx, C_Task_ID, trxName); -/** if (C_Task_ID == 0) -{ -setC_Phase_ID (0); -setC_Task_ID (0); -setName (null); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_Task WHERE C_Phase_ID=@C_Phase_ID@ -setStandardQty (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Task (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Task */ -public static final String Table_Name="C_Task"; - -/** AD_Table_ID=583 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Task[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Standard Phase. -@param C_Phase_ID Standard Phase of the Project Type */ -public void setC_Phase_ID (int C_Phase_ID) -{ -if (C_Phase_ID < 1) throw new IllegalArgumentException ("C_Phase_ID is mandatory."); -set_ValueNoCheck ("C_Phase_ID", Integer.valueOf(C_Phase_ID)); -} -/** Get Standard Phase. -@return Standard Phase of the Project Type */ -public int getC_Phase_ID() -{ -Integer ii = (Integer)get_Value("C_Phase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Phase_ID */ -public static final String COLUMNNAME_C_Phase_ID = "C_Phase_ID"; -/** Set Standard Task. -@param C_Task_ID Standard Project Type Task */ -public void setC_Task_ID (int C_Task_ID) -{ -if (C_Task_ID < 1) throw new IllegalArgumentException ("C_Task_ID is mandatory."); -set_ValueNoCheck ("C_Task_ID", Integer.valueOf(C_Task_ID)); -} -/** Get Standard Task. -@return Standard Project Type Task */ -public int getC_Task_ID() -{ -Integer ii = (Integer)get_Value("C_Task_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Task_ID */ -public static final String COLUMNNAME_C_Task_ID = "C_Task_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Standard Quantity. -@param StandardQty Standard Quantity */ -public void setStandardQty (BigDecimal StandardQty) -{ -if (StandardQty == null) throw new IllegalArgumentException ("StandardQty is mandatory."); -set_Value ("StandardQty", StandardQty); -} -/** Get Standard Quantity. -@return Standard Quantity */ -public BigDecimal getStandardQty() -{ -BigDecimal bd = (BigDecimal)get_Value("StandardQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name StandardQty */ -public static final String COLUMNNAME_StandardQty = "StandardQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Task (Properties ctx, int C_Task_ID, String trxName) + { + super (ctx, C_Task_ID, trxName); + /** if (C_Task_ID == 0) { setC_Phase_ID (0); + setC_Task_ID (0); + setName (null); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM C_Task WHERE C_Phase_ID=@C_Phase_ID@ + setStandardQty (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_C_Task (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Task[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Phase getI_C_Phase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Standard Phase. + @param C_Phase_ID + Standard Phase of the Project Type + */ + public void setC_Phase_ID (int C_Phase_ID) + { + if (C_Phase_ID < 1) + throw new IllegalArgumentException ("C_Phase_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Phase_ID, Integer.valueOf(C_Phase_ID)); + } + + /** Get Standard Phase. + @return Standard Phase of the Project Type + */ + public int getC_Phase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Phase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Standard Task. + @param C_Task_ID + Standard Project Type Task + */ + public void setC_Task_ID (int C_Task_ID) + { + if (C_Task_ID < 1) + throw new IllegalArgumentException ("C_Task_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Task_ID, Integer.valueOf(C_Task_ID)); + } + + /** Get Standard Task. + @return Standard Project Type Task + */ + public int getC_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Standard Quantity. + @param StandardQty + Standard Quantity + */ + public void setStandardQty (BigDecimal StandardQty) + { + if (StandardQty == null) + throw new IllegalArgumentException ("StandardQty is mandatory."); + set_Value (COLUMNNAME_StandardQty, StandardQty); + } + + /** Get Standard Quantity. + @return Standard Quantity + */ + public BigDecimal getStandardQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_StandardQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Tax.java b/base/src/org/compiere/model/X_C_Tax.java index 024449d841..8f76480e5a 100644 --- a/base/src/org/compiere/model/X_C_Tax.java +++ b/base/src/org/compiere/model/X_C_Tax.java @@ -1,485 +1,554 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Tax - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Tax extends PO + +/** Generated Model for C_Tax + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Tax extends PO implements I_C_Tax, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Tax_ID id -@param trxName transaction -*/ -public X_C_Tax (Properties ctx, int C_Tax_ID, String trxName) -{ -super (ctx, C_Tax_ID, trxName); -/** if (C_Tax_ID == 0) -{ -setC_TaxCategory_ID (0); -setC_Tax_ID (0); -setIsDefault (false); -setIsDocumentLevel (false); -setIsSalesTax (false); // N -setIsSummary (false); -setIsTaxExempt (false); -setName (null); -setRate (Env.ZERO); -setRequiresTaxCertificate (false); -setSOPOType (null); // B -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Tax (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Tax */ -public static final String Table_Name="C_Tax"; - -/** AD_Table_ID=261 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Tax[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Tax (Properties ctx, int C_Tax_ID, String trxName) + { + super (ctx, C_Tax_ID, trxName); + /** if (C_Tax_ID == 0) { setC_TaxCategory_ID (0); + setC_Tax_ID (0); + setIsDefault (false); + setIsDocumentLevel (false); + setIsSalesTax (false); +// N + setIsSummary (false); + setIsTaxExempt (false); + setName (null); + setRate (Env.ZERO); + setRequiresTaxCertificate (false); + setSOPOType (null); +// B + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_Tax (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Tax[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** C_Country_ID AD_Reference_ID=156 */ public static final int C_COUNTRY_ID_AD_Reference_ID=156; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID <= 0) set_Value ("C_Country_ID", null); - else -set_Value ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID <= 0) set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Region_ID AD_Reference_ID=157 */ public static final int C_REGION_ID_AD_Reference_ID=157; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_Value ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Document Level. -@param IsDocumentLevel Tax is calculated on document level (rather than line by line) */ -public void setIsDocumentLevel (boolean IsDocumentLevel) -{ -set_Value ("IsDocumentLevel", Boolean.valueOf(IsDocumentLevel)); -} -/** Get Document Level. -@return Tax is calculated on document level (rather than line by line) */ -public boolean isDocumentLevel() -{ -Object oo = get_Value("IsDocumentLevel"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDocumentLevel */ -public static final String COLUMNNAME_IsDocumentLevel = "IsDocumentLevel"; -/** Set Sales Tax. -@param IsSalesTax This is a sales tax (i.e. not a value added tax) */ -public void setIsSalesTax (boolean IsSalesTax) -{ -set_Value ("IsSalesTax", Boolean.valueOf(IsSalesTax)); -} -/** Get Sales Tax. -@return This is a sales tax (i.e. not a value added tax) */ -public boolean isSalesTax() -{ -Object oo = get_Value("IsSalesTax"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSalesTax */ -public static final String COLUMNNAME_IsSalesTax = "IsSalesTax"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Tax exempt. -@param IsTaxExempt Business partner is exempt from tax */ -public void setIsTaxExempt (boolean IsTaxExempt) -{ -set_Value ("IsTaxExempt", Boolean.valueOf(IsTaxExempt)); -} -/** Get Tax exempt. -@return Business partner is exempt from tax */ -public boolean isTaxExempt() -{ -Object oo = get_Value("IsTaxExempt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxExempt */ -public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Document Level. + @param IsDocumentLevel + Tax is calculated on document level (rather than line by line) + */ + public void setIsDocumentLevel (boolean IsDocumentLevel) + { + set_Value (COLUMNNAME_IsDocumentLevel, Boolean.valueOf(IsDocumentLevel)); + } + + /** Get Document Level. + @return Tax is calculated on document level (rather than line by line) + */ + public boolean isDocumentLevel () + { + Object oo = get_Value(COLUMNNAME_IsDocumentLevel); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Tax. + @param IsSalesTax + This is a sales tax (i.e. not a value added tax) + */ + public void setIsSalesTax (boolean IsSalesTax) + { + set_Value (COLUMNNAME_IsSalesTax, Boolean.valueOf(IsSalesTax)); + } + + /** Get Sales Tax. + @return This is a sales tax (i.e. not a value added tax) + */ + public boolean isSalesTax () + { + Object oo = get_Value(COLUMNNAME_IsSalesTax); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax exempt. + @param IsTaxExempt + Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt) + { + set_Value (COLUMNNAME_IsTaxExempt, Boolean.valueOf(IsTaxExempt)); + } + + /** Get Tax exempt. + @return Business partner is exempt from tax + */ + public boolean isTaxExempt () + { + Object oo = get_Value(COLUMNNAME_IsTaxExempt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Parent_Tax_ID AD_Reference_ID=158 */ public static final int PARENT_TAX_ID_AD_Reference_ID=158; -/** Set Parent Tax. -@param Parent_Tax_ID Parent Tax indicates a tax that is made up of multiple taxes */ -public void setParent_Tax_ID (int Parent_Tax_ID) -{ -if (Parent_Tax_ID <= 0) set_Value ("Parent_Tax_ID", null); - else -set_Value ("Parent_Tax_ID", Integer.valueOf(Parent_Tax_ID)); -} -/** Get Parent Tax. -@return Parent Tax indicates a tax that is made up of multiple taxes */ -public int getParent_Tax_ID() -{ -Integer ii = (Integer)get_Value("Parent_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Parent_Tax_ID */ -public static final String COLUMNNAME_Parent_Tax_ID = "Parent_Tax_ID"; -/** Set Rate. -@param Rate Rate or Tax or Exchange */ -public void setRate (BigDecimal Rate) -{ -if (Rate == null) throw new IllegalArgumentException ("Rate is mandatory."); -set_Value ("Rate", Rate); -} -/** Get Rate. -@return Rate or Tax or Exchange */ -public BigDecimal getRate() -{ -BigDecimal bd = (BigDecimal)get_Value("Rate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Rate */ -public static final String COLUMNNAME_Rate = "Rate"; -/** Set Requires Tax Certificate. -@param RequiresTaxCertificate This tax rate requires the Business Partner to be tax exempt */ -public void setRequiresTaxCertificate (boolean RequiresTaxCertificate) -{ -set_Value ("RequiresTaxCertificate", Boolean.valueOf(RequiresTaxCertificate)); -} -/** Get Requires Tax Certificate. -@return This tax rate requires the Business Partner to be tax exempt */ -public boolean isRequiresTaxCertificate() -{ -Object oo = get_Value("RequiresTaxCertificate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name RequiresTaxCertificate */ -public static final String COLUMNNAME_RequiresTaxCertificate = "RequiresTaxCertificate"; + /** Set Parent Tax. + @param Parent_Tax_ID + Parent Tax indicates a tax that is made up of multiple taxes + */ + public void setParent_Tax_ID (int Parent_Tax_ID) + { + if (Parent_Tax_ID <= 0) set_Value (COLUMNNAME_Parent_Tax_ID, null); + else + set_Value (COLUMNNAME_Parent_Tax_ID, Integer.valueOf(Parent_Tax_ID)); + } + + /** Get Parent Tax. + @return Parent Tax indicates a tax that is made up of multiple taxes + */ + public int getParent_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Rate. + @param Rate + Rate or Tax or Exchange + */ + public void setRate (BigDecimal Rate) + { + if (Rate == null) + throw new IllegalArgumentException ("Rate is mandatory."); + set_Value (COLUMNNAME_Rate, Rate); + } + + /** Get Rate. + @return Rate or Tax or Exchange + */ + public BigDecimal getRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Rate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Requires Tax Certificate. + @param RequiresTaxCertificate + This tax rate requires the Business Partner to be tax exempt + */ + public void setRequiresTaxCertificate (boolean RequiresTaxCertificate) + { + set_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate)); + } + + /** Get Requires Tax Certificate. + @return This tax rate requires the Business Partner to be tax exempt + */ + public boolean isRequiresTaxCertificate () + { + Object oo = get_Value(COLUMNNAME_RequiresTaxCertificate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** SOPOType AD_Reference_ID=287 */ -public static final int SOPOTYPE_AD_Reference_ID=287; -/** Both = B */ -public static final String SOPOTYPE_Both = "B"; -/** Purchase Tax = P */ -public static final String SOPOTYPE_PurchaseTax = "P"; -/** Sales Tax = S */ +public static final int SOPOTYPE_AD_Reference_ID=287;/** Both = B */ +public static final String SOPOTYPE_Both = "B";/** Purchase Tax = P */ +public static final String SOPOTYPE_PurchaseTax = "P";/** Sales Tax = S */ public static final String SOPOTYPE_SalesTax = "S"; -/** Set SO/PO Type. -@param SOPOType Sales Tax applies to sales situations, Purchase Tax to purchase situations */ -public void setSOPOType (String SOPOType) -{ -if (SOPOType == null) throw new IllegalArgumentException ("SOPOType is mandatory"); -if (SOPOType.equals("B") || SOPOType.equals("P") || SOPOType.equals("S")); - else throw new IllegalArgumentException ("SOPOType Invalid value - " + SOPOType + " - Reference_ID=287 - B - P - S"); -if (SOPOType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SOPOType = SOPOType.substring(0,0); -} -set_Value ("SOPOType", SOPOType); -} -/** Get SO/PO Type. -@return Sales Tax applies to sales situations, Purchase Tax to purchase situations */ -public String getSOPOType() -{ -return (String)get_Value("SOPOType"); -} -/** Column name SOPOType */ -public static final String COLUMNNAME_SOPOType = "SOPOType"; -/** Set Tax Indicator. -@param TaxIndicator Short form for Tax to be printed on documents */ -public void setTaxIndicator (String TaxIndicator) -{ -if (TaxIndicator != null && TaxIndicator.length() > 10) -{ -log.warning("Length > 10 - truncated"); -TaxIndicator = TaxIndicator.substring(0,9); -} -set_Value ("TaxIndicator", TaxIndicator); -} -/** Get Tax Indicator. -@return Short form for Tax to be printed on documents */ -public String getTaxIndicator() -{ -return (String)get_Value("TaxIndicator"); -} -/** Column name TaxIndicator */ -public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; + /** Set SO/PO Type. + @param SOPOType + Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public void setSOPOType (String SOPOType) + { +if (SOPOType == null) throw new IllegalArgumentException ("SOPOType is mandatory");if (SOPOType.equals("B") || SOPOType.equals("P") || SOPOType.equals("S")); else throw new IllegalArgumentException ("SOPOType Invalid value - " + SOPOType + " - Reference_ID=287 - B - P - S"); if (SOPOType.length() > 1) + { + log.warning("Length > 1 - truncated"); + SOPOType = SOPOType.substring(0, 0); + } + set_Value (COLUMNNAME_SOPOType, SOPOType); + } + + /** Get SO/PO Type. + @return Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public String getSOPOType () + { + return (String)get_Value(COLUMNNAME_SOPOType); + } + + /** Set Tax Indicator. + @param TaxIndicator + Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator) + { + if (TaxIndicator != null && TaxIndicator.length() > 10) + { + log.warning("Length > 10 - truncated"); + TaxIndicator = TaxIndicator.substring(0, 9); + } + set_Value (COLUMNNAME_TaxIndicator, TaxIndicator); + } + + /** Get Tax Indicator. + @return Short form for Tax to be printed on documents + */ + public String getTaxIndicator () + { + return (String)get_Value(COLUMNNAME_TaxIndicator); + } /** To_Country_ID AD_Reference_ID=156 */ public static final int TO_COUNTRY_ID_AD_Reference_ID=156; -/** Set To. -@param To_Country_ID Receiving Country */ -public void setTo_Country_ID (int To_Country_ID) -{ -if (To_Country_ID <= 0) set_Value ("To_Country_ID", null); - else -set_Value ("To_Country_ID", Integer.valueOf(To_Country_ID)); -} -/** Get To. -@return Receiving Country */ -public int getTo_Country_ID() -{ -Integer ii = (Integer)get_Value("To_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name To_Country_ID */ -public static final String COLUMNNAME_To_Country_ID = "To_Country_ID"; + /** Set To. + @param To_Country_ID + Receiving Country + */ + public void setTo_Country_ID (int To_Country_ID) + { + if (To_Country_ID <= 0) set_Value (COLUMNNAME_To_Country_ID, null); + else + set_Value (COLUMNNAME_To_Country_ID, Integer.valueOf(To_Country_ID)); + } + + /** Get To. + @return Receiving Country + */ + public int getTo_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_To_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** To_Region_ID AD_Reference_ID=157 */ public static final int TO_REGION_ID_AD_Reference_ID=157; -/** Set To. -@param To_Region_ID Receiving Region */ -public void setTo_Region_ID (int To_Region_ID) -{ -if (To_Region_ID <= 0) set_Value ("To_Region_ID", null); - else -set_Value ("To_Region_ID", Integer.valueOf(To_Region_ID)); -} -/** Get To. -@return Receiving Region */ -public int getTo_Region_ID() -{ -Integer ii = (Integer)get_Value("To_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name To_Region_ID */ -public static final String COLUMNNAME_To_Region_ID = "To_Region_ID"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -} + /** Set To. + @param To_Region_ID + Receiving Region + */ + public void setTo_Region_ID (int To_Region_ID) + { + if (To_Region_ID <= 0) set_Value (COLUMNNAME_To_Region_ID, null); + else + set_Value (COLUMNNAME_To_Region_ID, Integer.valueOf(To_Region_ID)); + } + + /** Get To. + @return Receiving Region + */ + public int getTo_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_To_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_TaxCategory.java b/base/src/org/compiere/model/X_C_TaxCategory.java index 8cb0b742d8..f87953ff7d 100644 --- a/base/src/org/compiere/model/X_C_TaxCategory.java +++ b/base/src/org/compiere/model/X_C_TaxCategory.java @@ -1,191 +1,197 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_TaxCategory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_TaxCategory extends PO + +/** Generated Model for C_TaxCategory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_TaxCategory extends PO implements I_C_TaxCategory, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_TaxCategory_ID id -@param trxName transaction -*/ -public X_C_TaxCategory (Properties ctx, int C_TaxCategory_ID, String trxName) -{ -super (ctx, C_TaxCategory_ID, trxName); -/** if (C_TaxCategory_ID == 0) -{ -setC_TaxCategory_ID (0); -setIsDefault (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_TaxCategory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_TaxCategory */ -public static final String Table_Name="C_TaxCategory"; - -/** AD_Table_ID=252 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_TaxCategory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_ValueNoCheck ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set Commodity Code. -@param CommodityCode Commodity code used for tax calculation */ -public void setCommodityCode (String CommodityCode) -{ -if (CommodityCode != null && CommodityCode.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CommodityCode = CommodityCode.substring(0,19); -} -set_Value ("CommodityCode", CommodityCode); -} -/** Get Commodity Code. -@return Commodity code used for tax calculation */ -public String getCommodityCode() -{ -return (String)get_Value("CommodityCode"); -} -/** Column name CommodityCode */ -public static final String COLUMNNAME_CommodityCode = "CommodityCode"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_TaxCategory (Properties ctx, int C_TaxCategory_ID, String trxName) + { + super (ctx, C_TaxCategory_ID, trxName); + /** if (C_TaxCategory_ID == 0) { setC_TaxCategory_ID (0); + setIsDefault (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_TaxCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_TaxCategory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Commodity Code. + @param CommodityCode + Commodity code used for tax calculation + */ + public void setCommodityCode (String CommodityCode) + { + if (CommodityCode != null && CommodityCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + CommodityCode = CommodityCode.substring(0, 19); + } + set_Value (COLUMNNAME_CommodityCode, CommodityCode); + } + + /** Get Commodity Code. + @return Commodity code used for tax calculation + */ + public String getCommodityCode () + { + return (String)get_Value(COLUMNNAME_CommodityCode); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_TaxDeclaration.java b/base/src/org/compiere/model/X_C_TaxDeclaration.java index 5913ab81c8..d725518e04 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclaration.java +++ b/base/src/org/compiere/model/X_C_TaxDeclaration.java @@ -1,240 +1,256 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_TaxDeclaration - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_TaxDeclaration extends PO + +/** Generated Model for C_TaxDeclaration + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_TaxDeclaration extends PO implements I_C_TaxDeclaration, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_TaxDeclaration_ID id -@param trxName transaction -*/ -public X_C_TaxDeclaration (Properties ctx, int C_TaxDeclaration_ID, String trxName) -{ -super (ctx, C_TaxDeclaration_ID, trxName); -/** if (C_TaxDeclaration_ID == 0) -{ -setC_TaxDeclaration_ID (0); -setDateFrom (new Timestamp(System.currentTimeMillis())); -setDateTo (new Timestamp(System.currentTimeMillis())); -setDateTrx (new Timestamp(System.currentTimeMillis())); -setName (null); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_TaxDeclaration (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_TaxDeclaration */ -public static final String Table_Name="C_TaxDeclaration"; - -/** AD_Table_ID=818 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_TaxDeclaration[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tax Declaration. -@param C_TaxDeclaration_ID Define the declaration to the tax authorities */ -public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) -{ -if (C_TaxDeclaration_ID < 1) throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); -set_ValueNoCheck ("C_TaxDeclaration_ID", Integer.valueOf(C_TaxDeclaration_ID)); -} -/** Get Tax Declaration. -@return Define the declaration to the tax authorities */ -public int getC_TaxDeclaration_ID() -{ -Integer ii = (Integer)get_Value("C_TaxDeclaration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxDeclaration_ID */ -public static final String COLUMNNAME_C_TaxDeclaration_ID = "C_TaxDeclaration_ID"; -/** Set Date From. -@param DateFrom Starting date for a range */ -public void setDateFrom (Timestamp DateFrom) -{ -if (DateFrom == null) throw new IllegalArgumentException ("DateFrom is mandatory."); -set_Value ("DateFrom", DateFrom); -} -/** Get Date From. -@return Starting date for a range */ -public Timestamp getDateFrom() -{ -return (Timestamp)get_Value("DateFrom"); -} -/** Column name DateFrom */ -public static final String COLUMNNAME_DateFrom = "DateFrom"; -/** Set Date To. -@param DateTo End date of a date range */ -public void setDateTo (Timestamp DateTo) -{ -if (DateTo == null) throw new IllegalArgumentException ("DateTo is mandatory."); -set_Value ("DateTo", DateTo); -} -/** Get Date To. -@return End date of a date range */ -public Timestamp getDateTo() -{ -return (Timestamp)get_Value("DateTo"); -} -/** Column name DateTo */ -public static final String COLUMNNAME_DateTo = "DateTo"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_Value ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_TaxDeclaration (Properties ctx, int C_TaxDeclaration_ID, String trxName) + { + super (ctx, C_TaxDeclaration_ID, trxName); + /** if (C_TaxDeclaration_ID == 0) { setC_TaxDeclaration_ID (0); + setDateFrom (new Timestamp(System.currentTimeMillis())); + setDateTo (new Timestamp(System.currentTimeMillis())); + setDateTrx (new Timestamp(System.currentTimeMillis())); + setName (null); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_C_TaxDeclaration (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_TaxDeclaration[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Tax Declaration. + @param C_TaxDeclaration_ID + Define the declaration to the tax authorities + */ + public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) + { + if (C_TaxDeclaration_ID < 1) + throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); + } + + /** Get Tax Declaration. + @return Define the declaration to the tax authorities + */ + public int getC_TaxDeclaration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxDeclaration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date From. + @param DateFrom + Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom) + { + if (DateFrom == null) + throw new IllegalArgumentException ("DateFrom is mandatory."); + set_Value (COLUMNNAME_DateFrom, DateFrom); + } + + /** Get Date From. + @return Starting date for a range + */ + public Timestamp getDateFrom () + { + return (Timestamp)get_Value(COLUMNNAME_DateFrom); + } + + /** Set Date To. + @param DateTo + End date of a date range + */ + public void setDateTo (Timestamp DateTo) + { + if (DateTo == null) + throw new IllegalArgumentException ("DateTo is mandatory."); + set_Value (COLUMNNAME_DateTo, DateTo); + } + + /** Get Date To. + @return End date of a date range + */ + public Timestamp getDateTo () + { + return (Timestamp)get_Value(COLUMNNAME_DateTo); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java b/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java index e3d9986ffc..c12cd126f7 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java +++ b/base/src/org/compiere/model/X_C_TaxDeclarationAcct.java @@ -1,339 +1,405 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_TaxDeclarationAcct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_TaxDeclarationAcct extends PO + +/** Generated Model for C_TaxDeclarationAcct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_TaxDeclarationAcct extends PO implements I_C_TaxDeclarationAcct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_TaxDeclarationAcct_ID id -@param trxName transaction -*/ -public X_C_TaxDeclarationAcct (Properties ctx, int C_TaxDeclarationAcct_ID, String trxName) -{ -super (ctx, C_TaxDeclarationAcct_ID, trxName); -/** if (C_TaxDeclarationAcct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_TaxDeclarationAcct_ID (0); -setC_TaxDeclaration_ID (0); -setFact_Acct_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_TaxDeclarationAcct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_TaxDeclarationAcct */ -public static final String Table_Name="C_TaxDeclarationAcct"; - -/** AD_Table_ID=820 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_TaxDeclarationAcct[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_TaxDeclarationAcct (Properties ctx, int C_TaxDeclarationAcct_ID, String trxName) + { + super (ctx, C_TaxDeclarationAcct_ID, trxName); + /** if (C_TaxDeclarationAcct_ID == 0) { setC_AcctSchema_ID (0); + setC_TaxDeclarationAcct_ID (0); + setC_TaxDeclaration_ID (0); + setFact_Acct_ID (0); +} */ + } + + /** Load Constructor */ + public X_C_TaxDeclarationAcct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_TaxDeclarationAcct[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** Account_ID AD_Reference_ID=331 */ public static final int ACCOUNT_ID_AD_Reference_ID=331; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -throw new IllegalArgumentException ("Account_ID is virtual column"); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Accounted Credit. -@param AmtAcctCr Accounted Credit Amount */ -public void setAmtAcctCr (BigDecimal AmtAcctCr) -{ -throw new IllegalArgumentException ("AmtAcctCr is virtual column"); -} -/** Get Accounted Credit. -@return Accounted Credit Amount */ -public BigDecimal getAmtAcctCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctCr */ -public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; -/** Set Accounted Debit. -@param AmtAcctDr Accounted Debit Amount */ -public void setAmtAcctDr (BigDecimal AmtAcctDr) -{ -throw new IllegalArgumentException ("AmtAcctDr is virtual column"); -} -/** Get Accounted Debit. -@return Accounted Debit Amount */ -public BigDecimal getAmtAcctDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctDr */ -public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; -/** Set Source Credit. -@param AmtSourceCr Source Credit Amount */ -public void setAmtSourceCr (BigDecimal AmtSourceCr) -{ -throw new IllegalArgumentException ("AmtSourceCr is virtual column"); -} -/** Get Source Credit. -@return Source Credit Amount */ -public BigDecimal getAmtSourceCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceCr */ -public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; -/** Set Source Debit. -@param AmtSourceDr Source Debit Amount */ -public void setAmtSourceDr (BigDecimal AmtSourceDr) -{ -throw new IllegalArgumentException ("AmtSourceDr is virtual column"); -} -/** Get Source Debit. -@return Source Debit Amount */ -public BigDecimal getAmtSourceDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceDr */ -public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -throw new IllegalArgumentException ("C_BPartner_ID is virtual column"); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -throw new IllegalArgumentException ("C_Currency_ID is virtual column"); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Tax Declaration Accounting. -@param C_TaxDeclarationAcct_ID Tax Accounting Reconciliation */ -public void setC_TaxDeclarationAcct_ID (int C_TaxDeclarationAcct_ID) -{ -if (C_TaxDeclarationAcct_ID < 1) throw new IllegalArgumentException ("C_TaxDeclarationAcct_ID is mandatory."); -set_ValueNoCheck ("C_TaxDeclarationAcct_ID", Integer.valueOf(C_TaxDeclarationAcct_ID)); -} -/** Get Tax Declaration Accounting. -@return Tax Accounting Reconciliation */ -public int getC_TaxDeclarationAcct_ID() -{ -Integer ii = (Integer)get_Value("C_TaxDeclarationAcct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxDeclarationAcct_ID */ -public static final String COLUMNNAME_C_TaxDeclarationAcct_ID = "C_TaxDeclarationAcct_ID"; -/** Set Tax Declaration. -@param C_TaxDeclaration_ID Define the declaration to the tax authorities */ -public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) -{ -if (C_TaxDeclaration_ID < 1) throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); -set_ValueNoCheck ("C_TaxDeclaration_ID", Integer.valueOf(C_TaxDeclaration_ID)); -} -/** Get Tax Declaration. -@return Define the declaration to the tax authorities */ -public int getC_TaxDeclaration_ID() -{ -Integer ii = (Integer)get_Value("C_TaxDeclaration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxDeclaration_ID */ -public static final String COLUMNNAME_C_TaxDeclaration_ID = "C_TaxDeclaration_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -throw new IllegalArgumentException ("C_Tax_ID is virtual column"); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -throw new IllegalArgumentException ("DateAcct is virtual column"); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Accounting Fact. -@param Fact_Acct_ID Accounting Fact */ -public void setFact_Acct_ID (int Fact_Acct_ID) -{ -if (Fact_Acct_ID < 1) throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); -set_ValueNoCheck ("Fact_Acct_ID", Integer.valueOf(Fact_Acct_ID)); -} -/** Get Accounting Fact. -@return Accounting Fact */ -public int getFact_Acct_ID() -{ -Integer ii = (Integer)get_Value("Fact_Acct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Fact_Acct_ID */ -public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -} + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + throw new IllegalArgumentException ("Account_ID is virtual column"); } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accounted Credit. + @param AmtAcctCr + Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr) + { + throw new IllegalArgumentException ("AmtAcctCr is virtual column"); } + + /** Get Accounted Credit. + @return Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accounted Debit. + @param AmtAcctDr + Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr) + { + throw new IllegalArgumentException ("AmtAcctDr is virtual column"); } + + /** Get Accounted Debit. + @return Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Credit. + @param AmtSourceCr + Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr) + { + throw new IllegalArgumentException ("AmtSourceCr is virtual column"); } + + /** Get Source Credit. + @return Source Credit Amount + */ + public BigDecimal getAmtSourceCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Debit. + @param AmtSourceDr + Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr) + { + throw new IllegalArgumentException ("AmtSourceDr is virtual column"); } + + /** Get Source Debit. + @return Source Debit Amount + */ + public BigDecimal getAmtSourceDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + throw new IllegalArgumentException ("C_BPartner_ID is virtual column"); } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + throw new IllegalArgumentException ("C_Currency_ID is virtual column"); } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Declaration Accounting. + @param C_TaxDeclarationAcct_ID + Tax Accounting Reconciliation + */ + public void setC_TaxDeclarationAcct_ID (int C_TaxDeclarationAcct_ID) + { + if (C_TaxDeclarationAcct_ID < 1) + throw new IllegalArgumentException ("C_TaxDeclarationAcct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationAcct_ID, Integer.valueOf(C_TaxDeclarationAcct_ID)); + } + + /** Get Tax Declaration Accounting. + @return Tax Accounting Reconciliation + */ + public int getC_TaxDeclarationAcct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxDeclarationAcct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxDeclaration getI_C_TaxDeclaration() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Declaration. + @param C_TaxDeclaration_ID + Define the declaration to the tax authorities + */ + public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) + { + if (C_TaxDeclaration_ID < 1) + throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); + } + + /** Get Tax Declaration. + @return Define the declaration to the tax authorities + */ + public int getC_TaxDeclaration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxDeclaration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + throw new IllegalArgumentException ("C_Tax_ID is virtual column"); } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + throw new IllegalArgumentException ("DateAcct is virtual column"); } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Accounting Fact. + @param Fact_Acct_ID Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID) + { + if (Fact_Acct_ID < 1) + throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + } + + /** Get Accounting Fact. +@return Accounting Fact */ + public int getFact_Acct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_TaxDeclarationLine.java b/base/src/org/compiere/model/X_C_TaxDeclarationLine.java index 367aee9e2b..5bbfa2899c 100644 --- a/base/src/org/compiere/model/X_C_TaxDeclarationLine.java +++ b/base/src/org/compiere/model/X_C_TaxDeclarationLine.java @@ -1,340 +1,436 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_TaxDeclarationLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_TaxDeclarationLine extends PO + +/** Generated Model for C_TaxDeclarationLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_TaxDeclarationLine extends PO implements I_C_TaxDeclarationLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_TaxDeclarationLine_ID id -@param trxName transaction -*/ -public X_C_TaxDeclarationLine (Properties ctx, int C_TaxDeclarationLine_ID, String trxName) -{ -super (ctx, C_TaxDeclarationLine_ID, trxName); -/** if (C_TaxDeclarationLine_ID == 0) -{ -setC_BPartner_ID (0); -setC_Currency_ID (0); -setC_TaxDeclarationLine_ID (0); -setC_TaxDeclaration_ID (0); -setC_Tax_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setIsManual (true); // Y -setLine (0); -setTaxAmt (Env.ZERO); -setTaxBaseAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_TaxDeclarationLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_TaxDeclarationLine */ -public static final String Table_Name="C_TaxDeclarationLine"; - -/** AD_Table_ID=819 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_TaxDeclarationLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Allocation Line. -@param C_AllocationLine_ID Allocation Line */ -public void setC_AllocationLine_ID (int C_AllocationLine_ID) -{ -if (C_AllocationLine_ID <= 0) set_ValueNoCheck ("C_AllocationLine_ID", null); - else -set_ValueNoCheck ("C_AllocationLine_ID", Integer.valueOf(C_AllocationLine_ID)); -} -/** Get Allocation Line. -@return Allocation Line */ -public int getC_AllocationLine_ID() -{ -Integer ii = (Integer)get_Value("C_AllocationLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AllocationLine_ID */ -public static final String COLUMNNAME_C_AllocationLine_ID = "C_AllocationLine_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_ValueNoCheck ("C_InvoiceLine_ID", null); - else -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Tax Declaration Line. -@param C_TaxDeclarationLine_ID Tax Declaration Document Information */ -public void setC_TaxDeclarationLine_ID (int C_TaxDeclarationLine_ID) -{ -if (C_TaxDeclarationLine_ID < 1) throw new IllegalArgumentException ("C_TaxDeclarationLine_ID is mandatory."); -set_ValueNoCheck ("C_TaxDeclarationLine_ID", Integer.valueOf(C_TaxDeclarationLine_ID)); -} -/** Get Tax Declaration Line. -@return Tax Declaration Document Information */ -public int getC_TaxDeclarationLine_ID() -{ -Integer ii = (Integer)get_Value("C_TaxDeclarationLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxDeclarationLine_ID */ -public static final String COLUMNNAME_C_TaxDeclarationLine_ID = "C_TaxDeclarationLine_ID"; -/** Set Tax Declaration. -@param C_TaxDeclaration_ID Define the declaration to the tax authorities */ -public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) -{ -if (C_TaxDeclaration_ID < 1) throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); -set_ValueNoCheck ("C_TaxDeclaration_ID", Integer.valueOf(C_TaxDeclaration_ID)); -} -/** Get Tax Declaration. -@return Define the declaration to the tax authorities */ -public int getC_TaxDeclaration_ID() -{ -Integer ii = (Integer)get_Value("C_TaxDeclaration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxDeclaration_ID */ -public static final String COLUMNNAME_C_TaxDeclaration_ID = "C_TaxDeclaration_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_ValueNoCheck ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_ValueNoCheck ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -if (TaxAmt == null) throw new IllegalArgumentException ("TaxAmt is mandatory."); -set_ValueNoCheck ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; -/** Set Tax base Amount. -@param TaxBaseAmt Base for calculating the tax amount */ -public void setTaxBaseAmt (BigDecimal TaxBaseAmt) -{ -if (TaxBaseAmt == null) throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); -set_ValueNoCheck ("TaxBaseAmt", TaxBaseAmt); -} -/** Get Tax base Amount. -@return Base for calculating the tax amount */ -public BigDecimal getTaxBaseAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxBaseAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxBaseAmt */ -public static final String COLUMNNAME_TaxBaseAmt = "TaxBaseAmt"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_TaxDeclarationLine (Properties ctx, int C_TaxDeclarationLine_ID, String trxName) + { + super (ctx, C_TaxDeclarationLine_ID, trxName); + /** if (C_TaxDeclarationLine_ID == 0) { setC_BPartner_ID (0); + setC_Currency_ID (0); + setC_TaxDeclarationLine_ID (0); + setC_TaxDeclaration_ID (0); + setC_Tax_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setIsManual (true); +// Y + setLine (0); + setTaxAmt (Env.ZERO); + setTaxBaseAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_TaxDeclarationLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_TaxDeclarationLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Allocation Line. + @param C_AllocationLine_ID + Allocation Line + */ + public void setC_AllocationLine_ID (int C_AllocationLine_ID) + { + if (C_AllocationLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_AllocationLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_AllocationLine_ID, Integer.valueOf(C_AllocationLine_ID)); + } + + /** Get Allocation Line. + @return Allocation Line + */ + public int getC_AllocationLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AllocationLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Declaration Line. + @param C_TaxDeclarationLine_ID + Tax Declaration Document Information + */ + public void setC_TaxDeclarationLine_ID (int C_TaxDeclarationLine_ID) + { + if (C_TaxDeclarationLine_ID < 1) + throw new IllegalArgumentException ("C_TaxDeclarationLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxDeclarationLine_ID, Integer.valueOf(C_TaxDeclarationLine_ID)); + } + + /** Get Tax Declaration Line. + @return Tax Declaration Document Information + */ + public int getC_TaxDeclarationLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxDeclarationLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxDeclaration getI_C_TaxDeclaration() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Declaration. + @param C_TaxDeclaration_ID + Define the declaration to the tax authorities + */ + public void setC_TaxDeclaration_ID (int C_TaxDeclaration_ID) + { + if (C_TaxDeclaration_ID < 1) + throw new IllegalArgumentException ("C_TaxDeclaration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxDeclaration_ID, Integer.valueOf(C_TaxDeclaration_ID)); + } + + /** Get Tax Declaration. + @return Define the declaration to the tax authorities + */ + public int getC_TaxDeclaration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxDeclaration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_ValueNoCheck (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + if (TaxAmt == null) + throw new IllegalArgumentException ("TaxAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tax base Amount. + @param TaxBaseAmt + Base for calculating the tax amount + */ + public void setTaxBaseAmt (BigDecimal TaxBaseAmt) + { + if (TaxBaseAmt == null) + throw new IllegalArgumentException ("TaxBaseAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TaxBaseAmt, TaxBaseAmt); + } + + /** Get Tax base Amount. + @return Base for calculating the tax amount + */ + public BigDecimal getTaxBaseAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxBaseAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_TaxPostal.java b/base/src/org/compiere/model/X_C_TaxPostal.java index 979e0ce0b4..58ce62134b 100644 --- a/base/src/org/compiere/model/X_C_TaxPostal.java +++ b/base/src/org/compiere/model/X_C_TaxPostal.java @@ -1,169 +1,189 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_TaxPostal - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_TaxPostal extends PO + +/** Generated Model for C_TaxPostal + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_TaxPostal extends PO implements I_C_TaxPostal, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_TaxPostal_ID id -@param trxName transaction -*/ -public X_C_TaxPostal (Properties ctx, int C_TaxPostal_ID, String trxName) -{ -super (ctx, C_TaxPostal_ID, trxName); -/** if (C_TaxPostal_ID == 0) -{ -setC_TaxPostal_ID (0); -setC_Tax_ID (0); -setPostal (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_TaxPostal (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_TaxPostal */ -public static final String Table_Name="C_TaxPostal"; - -/** AD_Table_ID=701 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_TaxPostal[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tax ZIP. -@param C_TaxPostal_ID Tax Postal/ZIP */ -public void setC_TaxPostal_ID (int C_TaxPostal_ID) -{ -if (C_TaxPostal_ID < 1) throw new IllegalArgumentException ("C_TaxPostal_ID is mandatory."); -set_ValueNoCheck ("C_TaxPostal_ID", Integer.valueOf(C_TaxPostal_ID)); -} -/** Get Tax ZIP. -@return Tax Postal/ZIP */ -public int getC_TaxPostal_ID() -{ -Integer ii = (Integer)get_Value("C_TaxPostal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxPostal_ID */ -public static final String COLUMNNAME_C_TaxPostal_ID = "C_TaxPostal_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal == null) throw new IllegalArgumentException ("Postal is mandatory."); -if (Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_Value ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getPostal()); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -/** Set ZIP To. -@param Postal_To Postal code to */ -public void setPostal_To (String Postal_To) -{ -if (Postal_To != null && Postal_To.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal_To = Postal_To.substring(0,9); -} -set_Value ("Postal_To", Postal_To); -} -/** Get ZIP To. -@return Postal code to */ -public String getPostal_To() -{ -return (String)get_Value("Postal_To"); -} -/** Column name Postal_To */ -public static final String COLUMNNAME_Postal_To = "Postal_To"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_TaxPostal (Properties ctx, int C_TaxPostal_ID, String trxName) + { + super (ctx, C_TaxPostal_ID, trxName); + /** if (C_TaxPostal_ID == 0) { setC_TaxPostal_ID (0); + setC_Tax_ID (0); + setPostal (null); +} */ + } + + /** Load Constructor */ + public X_C_TaxPostal (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_TaxPostal[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Tax ZIP. + @param C_TaxPostal_ID + Tax Postal/ZIP + */ + public void setC_TaxPostal_ID (int C_TaxPostal_ID) + { + if (C_TaxPostal_ID < 1) + throw new IllegalArgumentException ("C_TaxPostal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_TaxPostal_ID, Integer.valueOf(C_TaxPostal_ID)); + } + + /** Get Tax ZIP. + @return Tax Postal/ZIP + */ + public int getC_TaxPostal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxPostal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal == null) + throw new IllegalArgumentException ("Postal is mandatory."); + if (Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_Value (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getPostal()); + } + + /** Set ZIP To. + @param Postal_To + Postal code to + */ + public void setPostal_To (String Postal_To) + { + if (Postal_To != null && Postal_To.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal_To = Postal_To.substring(0, 9); + } + set_Value (COLUMNNAME_Postal_To, Postal_To); + } + + /** Get ZIP To. + @return Postal code to + */ + public String getPostal_To () + { + return (String)get_Value(COLUMNNAME_Postal_To); + } +} \ No newline at end of file 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 ab971baed8..0ed5e661fa 100644 --- a/base/src/org/compiere/model/X_C_Tax_Acct.java +++ b/base/src/org/compiere/model/X_C_Tax_Acct.java @@ -1,208 +1,255 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Tax_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Tax_Acct extends PO + +/** Generated Model for C_Tax_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Tax_Acct extends PO implements I_C_Tax_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Tax_Acct_ID id -@param trxName transaction -*/ -public X_C_Tax_Acct (Properties ctx, int C_Tax_Acct_ID, String trxName) -{ -super (ctx, C_Tax_Acct_ID, trxName); -/** if (C_Tax_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Tax_ID (0); -setT_Credit_Acct (0); -setT_Due_Acct (0); -setT_Expense_Acct (0); -setT_Liability_Acct (0); -setT_Receivables_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Tax_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Tax_Acct */ -public static final String Table_Name="C_Tax_Acct"; - -/** AD_Table_ID=399 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Tax_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID < 1) throw new IllegalArgumentException ("C_Tax_ID is mandatory."); -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set Tax Credit. -@param T_Credit_Acct Account for Tax you can reclaim */ -public void setT_Credit_Acct (int T_Credit_Acct) -{ -set_Value ("T_Credit_Acct", Integer.valueOf(T_Credit_Acct)); -} -/** Get Tax Credit. -@return Account for Tax you can reclaim */ -public int getT_Credit_Acct() -{ -Integer ii = (Integer)get_Value("T_Credit_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Credit_Acct */ -public static final String COLUMNNAME_T_Credit_Acct = "T_Credit_Acct"; -/** Set Tax Due. -@param T_Due_Acct Account for Tax you have to pay */ -public void setT_Due_Acct (int T_Due_Acct) -{ -set_Value ("T_Due_Acct", Integer.valueOf(T_Due_Acct)); -} -/** Get Tax Due. -@return Account for Tax you have to pay */ -public int getT_Due_Acct() -{ -Integer ii = (Integer)get_Value("T_Due_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Due_Acct */ -public static final String COLUMNNAME_T_Due_Acct = "T_Due_Acct"; -/** Set Tax Expense. -@param T_Expense_Acct Account for paid tax you cannot reclaim */ -public void setT_Expense_Acct (int T_Expense_Acct) -{ -set_Value ("T_Expense_Acct", Integer.valueOf(T_Expense_Acct)); -} -/** Get Tax Expense. -@return Account for paid tax you cannot reclaim */ -public int getT_Expense_Acct() -{ -Integer ii = (Integer)get_Value("T_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Expense_Acct */ -public static final String COLUMNNAME_T_Expense_Acct = "T_Expense_Acct"; -/** Set Tax Liability. -@param T_Liability_Acct Account for Tax declaration liability */ -public void setT_Liability_Acct (int T_Liability_Acct) -{ -set_Value ("T_Liability_Acct", Integer.valueOf(T_Liability_Acct)); -} -/** Get Tax Liability. -@return Account for Tax declaration liability */ -public int getT_Liability_Acct() -{ -Integer ii = (Integer)get_Value("T_Liability_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Liability_Acct */ -public static final String COLUMNNAME_T_Liability_Acct = "T_Liability_Acct"; -/** Set Tax Receivables. -@param T_Receivables_Acct Account for Tax credit after tax declaration */ -public void setT_Receivables_Acct (int T_Receivables_Acct) -{ -set_Value ("T_Receivables_Acct", Integer.valueOf(T_Receivables_Acct)); -} -/** Get Tax Receivables. -@return Account for Tax credit after tax declaration */ -public int getT_Receivables_Acct() -{ -Integer ii = (Integer)get_Value("T_Receivables_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Receivables_Acct */ -public static final String COLUMNNAME_T_Receivables_Acct = "T_Receivables_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Tax_Acct (Properties ctx, int C_Tax_Acct_ID, String trxName) + { + super (ctx, C_Tax_Acct_ID, trxName); + /** if (C_Tax_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_Tax_ID (0); + setT_Credit_Acct (0); + setT_Due_Acct (0); + setT_Expense_Acct (0); + setT_Liability_Acct (0); + setT_Receivables_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_Tax_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Tax_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Credit. + @param T_Credit_Acct + Account for Tax you can reclaim + */ + public void setT_Credit_Acct (int T_Credit_Acct) + { + set_Value (COLUMNNAME_T_Credit_Acct, Integer.valueOf(T_Credit_Acct)); + } + + /** Get Tax Credit. + @return Account for Tax you can reclaim + */ + public int getT_Credit_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Credit_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Due. + @param T_Due_Acct + Account for Tax you have to pay + */ + public void setT_Due_Acct (int T_Due_Acct) + { + set_Value (COLUMNNAME_T_Due_Acct, Integer.valueOf(T_Due_Acct)); + } + + /** Get Tax Due. + @return Account for Tax you have to pay + */ + public int getT_Due_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Due_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Expense. + @param T_Expense_Acct + Account for paid tax you cannot reclaim + */ + public void setT_Expense_Acct (int T_Expense_Acct) + { + set_Value (COLUMNNAME_T_Expense_Acct, Integer.valueOf(T_Expense_Acct)); + } + + /** Get Tax Expense. + @return Account for paid tax you cannot reclaim + */ + public int getT_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Liability. + @param T_Liability_Acct + Account for Tax declaration liability + */ + public void setT_Liability_Acct (int T_Liability_Acct) + { + set_Value (COLUMNNAME_T_Liability_Acct, Integer.valueOf(T_Liability_Acct)); + } + + /** Get Tax Liability. + @return Account for Tax declaration liability + */ + public int getT_Liability_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Liability_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Receivables. + @param T_Receivables_Acct + Account for Tax credit after tax declaration + */ + public void setT_Receivables_Acct (int T_Receivables_Acct) + { + set_Value (COLUMNNAME_T_Receivables_Acct, Integer.valueOf(T_Receivables_Acct)); + } + + /** Get Tax Receivables. + @return Account for Tax credit after tax declaration + */ + public int getT_Receivables_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Receivables_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_UOM.java b/base/src/org/compiere/model/X_C_UOM.java index 12812bf7d2..d2f5377a7c 100644 --- a/base/src/org/compiere/model/X_C_UOM.java +++ b/base/src/org/compiere/model/X_C_UOM.java @@ -1,246 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_UOM - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_UOM extends PO + +/** Generated Model for C_UOM + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_UOM extends PO implements I_C_UOM, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_UOM_ID id -@param trxName transaction -*/ -public X_C_UOM (Properties ctx, int C_UOM_ID, String trxName) -{ -super (ctx, C_UOM_ID, trxName); -/** if (C_UOM_ID == 0) -{ -setC_UOM_ID (0); -setCostingPrecision (0); -setIsDefault (false); -setName (null); -setStdPrecision (0); -setX12DE355 (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_UOM (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_UOM */ -public static final String Table_Name="C_UOM"; - -/** AD_Table_ID=146 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_UOM[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_ValueNoCheck ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Costing Precision. -@param CostingPrecision Rounding used costing calculations */ -public void setCostingPrecision (int CostingPrecision) -{ -set_Value ("CostingPrecision", Integer.valueOf(CostingPrecision)); -} -/** Get Costing Precision. -@return Rounding used costing calculations */ -public int getCostingPrecision() -{ -Integer ii = (Integer)get_Value("CostingPrecision"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CostingPrecision */ -public static final String COLUMNNAME_CostingPrecision = "CostingPrecision"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Standard Precision. -@param StdPrecision Rule for rounding calculated amounts */ -public void setStdPrecision (int StdPrecision) -{ -set_Value ("StdPrecision", Integer.valueOf(StdPrecision)); -} -/** Get Standard Precision. -@return Rule for rounding calculated amounts */ -public int getStdPrecision() -{ -Integer ii = (Integer)get_Value("StdPrecision"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StdPrecision */ -public static final String COLUMNNAME_StdPrecision = "StdPrecision"; -/** Set Symbol. -@param UOMSymbol Symbol for a Unit of Measure */ -public void setUOMSymbol (String UOMSymbol) -{ -if (UOMSymbol != null && UOMSymbol.length() > 10) -{ -log.warning("Length > 10 - truncated"); -UOMSymbol = UOMSymbol.substring(0,9); -} -set_Value ("UOMSymbol", UOMSymbol); -} -/** Get Symbol. -@return Symbol for a Unit of Measure */ -public String getUOMSymbol() -{ -return (String)get_Value("UOMSymbol"); -} -/** Column name UOMSymbol */ -public static final String COLUMNNAME_UOMSymbol = "UOMSymbol"; -/** Set UOM Code. -@param X12DE355 UOM EDI X12 Code */ -public void setX12DE355 (String X12DE355) -{ -if (X12DE355 == null) throw new IllegalArgumentException ("X12DE355 is mandatory."); -if (X12DE355.length() > 4) -{ -log.warning("Length > 4 - truncated"); -X12DE355 = X12DE355.substring(0,3); -} -set_Value ("X12DE355", X12DE355); -} -/** Get UOM Code. -@return UOM EDI X12 Code */ -public String getX12DE355() -{ -return (String)get_Value("X12DE355"); -} -/** Column name X12DE355 */ -public static final String COLUMNNAME_X12DE355 = "X12DE355"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_UOM (Properties ctx, int C_UOM_ID, String trxName) + { + super (ctx, C_UOM_ID, trxName); + /** if (C_UOM_ID == 0) { setC_UOM_ID (0); + setCostingPrecision (0); + setIsDefault (false); + setName (null); + setStdPrecision (0); + setX12DE355 (null); +} */ + } + + /** Load Constructor */ + public X_C_UOM (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_UOM[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Costing Precision. + @param CostingPrecision + Rounding used costing calculations + */ + public void setCostingPrecision (int CostingPrecision) + { + set_Value (COLUMNNAME_CostingPrecision, Integer.valueOf(CostingPrecision)); + } + + /** Get Costing Precision. + @return Rounding used costing calculations + */ + public int getCostingPrecision () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CostingPrecision); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Standard Precision. + @param StdPrecision + Rule for rounding calculated amounts + */ + public void setStdPrecision (int StdPrecision) + { + set_Value (COLUMNNAME_StdPrecision, Integer.valueOf(StdPrecision)); + } + + /** Get Standard Precision. + @return Rule for rounding calculated amounts + */ + public int getStdPrecision () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StdPrecision); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Symbol. + @param UOMSymbol + Symbol for a Unit of Measure + */ + public void setUOMSymbol (String UOMSymbol) + { + if (UOMSymbol != null && UOMSymbol.length() > 10) + { + log.warning("Length > 10 - truncated"); + UOMSymbol = UOMSymbol.substring(0, 9); + } + set_Value (COLUMNNAME_UOMSymbol, UOMSymbol); + } + + /** Get Symbol. + @return Symbol for a Unit of Measure + */ + public String getUOMSymbol () + { + return (String)get_Value(COLUMNNAME_UOMSymbol); + } + + /** Set UOM Code. + @param X12DE355 + UOM EDI X12 Code + */ + public void setX12DE355 (String X12DE355) + { + if (X12DE355 == null) + throw new IllegalArgumentException ("X12DE355 is mandatory."); + if (X12DE355.length() > 4) + { + log.warning("Length > 4 - truncated"); + X12DE355 = X12DE355.substring(0, 3); + } + set_Value (COLUMNNAME_X12DE355, X12DE355); + } + + /** Get UOM Code. + @return UOM EDI X12 Code + */ + public String getX12DE355 () + { + return (String)get_Value(COLUMNNAME_X12DE355); + } +} \ No newline at end of file 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 edda1c2d2b..25229045f7 100644 --- a/base/src/org/compiere/model/X_C_UOM_Conversion.java +++ b/base/src/org/compiere/model/X_C_UOM_Conversion.java @@ -1,207 +1,237 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_UOM_Conversion - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_UOM_Conversion extends PO + +/** Generated Model for C_UOM_Conversion + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_UOM_Conversion extends PO implements I_C_UOM_Conversion, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_UOM_Conversion_ID id -@param trxName transaction -*/ -public X_C_UOM_Conversion (Properties ctx, int C_UOM_Conversion_ID, String trxName) -{ -super (ctx, C_UOM_Conversion_ID, trxName); -/** if (C_UOM_Conversion_ID == 0) -{ -setC_UOM_Conversion_ID (0); -setC_UOM_ID (0); -setC_UOM_To_ID (0); -setDivideRate (Env.ZERO); -setMultiplyRate (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_UOM_Conversion (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_UOM_Conversion */ -public static final String Table_Name="C_UOM_Conversion"; - -/** AD_Table_ID=175 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_UOM_Conversion[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set UOM Conversion. -@param C_UOM_Conversion_ID Unit of Measure Conversion */ -public void setC_UOM_Conversion_ID (int C_UOM_Conversion_ID) -{ -if (C_UOM_Conversion_ID < 1) throw new IllegalArgumentException ("C_UOM_Conversion_ID is mandatory."); -set_ValueNoCheck ("C_UOM_Conversion_ID", Integer.valueOf(C_UOM_Conversion_ID)); -} -/** Get UOM Conversion. -@return Unit of Measure Conversion */ -public int getC_UOM_Conversion_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_Conversion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_UOM_Conversion_ID())); -} -/** Column name C_UOM_Conversion_ID */ -public static final String COLUMNNAME_C_UOM_Conversion_ID = "C_UOM_Conversion_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_UOM_Conversion (Properties ctx, int C_UOM_Conversion_ID, String trxName) + { + super (ctx, C_UOM_Conversion_ID, trxName); + /** if (C_UOM_Conversion_ID == 0) { setC_UOM_Conversion_ID (0); + setC_UOM_ID (0); + setC_UOM_To_ID (0); + setDivideRate (Env.ZERO); + setMultiplyRate (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_C_UOM_Conversion (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_UOM_Conversion[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set UOM Conversion. + @param C_UOM_Conversion_ID + Unit of Measure Conversion + */ + public void setC_UOM_Conversion_ID (int C_UOM_Conversion_ID) + { + if (C_UOM_Conversion_ID < 1) + throw new IllegalArgumentException ("C_UOM_Conversion_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UOM_Conversion_ID, Integer.valueOf(C_UOM_Conversion_ID)); + } + + /** Get UOM Conversion. + @return Unit of Measure Conversion + */ + public int getC_UOM_Conversion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_Conversion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_UOM_Conversion_ID())); + } /** C_UOM_ID AD_Reference_ID=114 */ public static final int C_UOM_ID_AD_Reference_ID=114; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_UOM_To_ID AD_Reference_ID=114 */ public static final int C_UOM_TO_ID_AD_Reference_ID=114; -/** Set UoM To. -@param C_UOM_To_ID Target or destination Unit of Measure */ -public void setC_UOM_To_ID (int C_UOM_To_ID) -{ -if (C_UOM_To_ID < 1) throw new IllegalArgumentException ("C_UOM_To_ID is mandatory."); -set_Value ("C_UOM_To_ID", Integer.valueOf(C_UOM_To_ID)); -} -/** Get UoM To. -@return Target or destination Unit of Measure */ -public int getC_UOM_To_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_To_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_To_ID */ -public static final String COLUMNNAME_C_UOM_To_ID = "C_UOM_To_ID"; -/** Set Divide Rate. -@param DivideRate To convert Source number to Target number, the Source is divided */ -public void setDivideRate (BigDecimal DivideRate) -{ -if (DivideRate == null) throw new IllegalArgumentException ("DivideRate is mandatory."); -set_Value ("DivideRate", DivideRate); -} -/** Get Divide Rate. -@return To convert Source number to Target number, the Source is divided */ -public BigDecimal getDivideRate() -{ -BigDecimal bd = (BigDecimal)get_Value("DivideRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DivideRate */ -public static final String COLUMNNAME_DivideRate = "DivideRate"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Multiply Rate. -@param MultiplyRate Rate to multiple the source by to calculate the target. */ -public void setMultiplyRate (BigDecimal MultiplyRate) -{ -if (MultiplyRate == null) throw new IllegalArgumentException ("MultiplyRate is mandatory."); -set_Value ("MultiplyRate", MultiplyRate); -} -/** Get Multiply Rate. -@return Rate to multiple the source by to calculate the target. */ -public BigDecimal getMultiplyRate() -{ -BigDecimal bd = (BigDecimal)get_Value("MultiplyRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MultiplyRate */ -public static final String COLUMNNAME_MultiplyRate = "MultiplyRate"; -} + /** Set UoM To. + @param C_UOM_To_ID + Target or destination Unit of Measure + */ + public void setC_UOM_To_ID (int C_UOM_To_ID) + { + if (C_UOM_To_ID < 1) + throw new IllegalArgumentException ("C_UOM_To_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_To_ID, Integer.valueOf(C_UOM_To_ID)); + } + + /** Get UoM To. + @return Target or destination Unit of Measure + */ + public int getC_UOM_To_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_To_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Divide Rate. + @param DivideRate + To convert Source number to Target number, the Source is divided + */ + public void setDivideRate (BigDecimal DivideRate) + { + if (DivideRate == null) + throw new IllegalArgumentException ("DivideRate is mandatory."); + set_Value (COLUMNNAME_DivideRate, DivideRate); + } + + /** Get Divide Rate. + @return To convert Source number to Target number, the Source is divided + */ + public BigDecimal getDivideRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DivideRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Multiply Rate. + @param MultiplyRate + Rate to multiple the source by to calculate the target. + */ + public void setMultiplyRate (BigDecimal MultiplyRate) + { + if (MultiplyRate == null) + throw new IllegalArgumentException ("MultiplyRate is mandatory."); + set_Value (COLUMNNAME_MultiplyRate, MultiplyRate); + } + + /** Get Multiply Rate. + @return Rate to multiple the source by to calculate the target. + */ + public BigDecimal getMultiplyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MultiplyRate); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_UserRemuneration.java b/base/src/org/compiere/model/X_C_UserRemuneration.java index ff2c739ca6..eee0bb719d 100644 --- a/base/src/org/compiere/model/X_C_UserRemuneration.java +++ b/base/src/org/compiere/model/X_C_UserRemuneration.java @@ -1,268 +1,316 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_UserRemuneration - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_UserRemuneration extends PO + +/** Generated Model for C_UserRemuneration + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_UserRemuneration extends PO implements I_C_UserRemuneration, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_UserRemuneration_ID id -@param trxName transaction -*/ -public X_C_UserRemuneration (Properties ctx, int C_UserRemuneration_ID, String trxName) -{ -super (ctx, C_UserRemuneration_ID, trxName); -/** if (C_UserRemuneration_ID == 0) -{ -setAD_User_ID (0); -setC_Remuneration_ID (0); -setC_UserRemuneration_ID (0); -setGrossRAmt (Env.ZERO); -setGrossRCost (Env.ZERO); -setOvertimeAmt (Env.ZERO); -setOvertimeCost (Env.ZERO); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_UserRemuneration (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_UserRemuneration */ -public static final String Table_Name="C_UserRemuneration"; - -/** AD_Table_ID=794 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_UserRemuneration[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Remuneration. -@param C_Remuneration_ID Wage or Salary */ -public void setC_Remuneration_ID (int C_Remuneration_ID) -{ -if (C_Remuneration_ID < 1) throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); -set_ValueNoCheck ("C_Remuneration_ID", Integer.valueOf(C_Remuneration_ID)); -} -/** Get Remuneration. -@return Wage or Salary */ -public int getC_Remuneration_ID() -{ -Integer ii = (Integer)get_Value("C_Remuneration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Remuneration_ID */ -public static final String COLUMNNAME_C_Remuneration_ID = "C_Remuneration_ID"; -/** Set Employee Remuneration. -@param C_UserRemuneration_ID Employee Wage or Salary Overwrite */ -public void setC_UserRemuneration_ID (int C_UserRemuneration_ID) -{ -if (C_UserRemuneration_ID < 1) throw new IllegalArgumentException ("C_UserRemuneration_ID is mandatory."); -set_ValueNoCheck ("C_UserRemuneration_ID", Integer.valueOf(C_UserRemuneration_ID)); -} -/** Get Employee Remuneration. -@return Employee Wage or Salary Overwrite */ -public int getC_UserRemuneration_ID() -{ -Integer ii = (Integer)get_Value("C_UserRemuneration_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UserRemuneration_ID */ -public static final String COLUMNNAME_C_UserRemuneration_ID = "C_UserRemuneration_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Gross Amount. -@param GrossRAmt Gross Remuneration Amount */ -public void setGrossRAmt (BigDecimal GrossRAmt) -{ -if (GrossRAmt == null) throw new IllegalArgumentException ("GrossRAmt is mandatory."); -set_Value ("GrossRAmt", GrossRAmt); -} -/** Get Gross Amount. -@return Gross Remuneration Amount */ -public BigDecimal getGrossRAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("GrossRAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrossRAmt */ -public static final String COLUMNNAME_GrossRAmt = "GrossRAmt"; -/** Set Gross Cost. -@param GrossRCost Gross Remuneration Costs */ -public void setGrossRCost (BigDecimal GrossRCost) -{ -if (GrossRCost == null) throw new IllegalArgumentException ("GrossRCost is mandatory."); -set_Value ("GrossRCost", GrossRCost); -} -/** Get Gross Cost. -@return Gross Remuneration Costs */ -public BigDecimal getGrossRCost() -{ -BigDecimal bd = (BigDecimal)get_Value("GrossRCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrossRCost */ -public static final String COLUMNNAME_GrossRCost = "GrossRCost"; -/** Set Overtime Amount. -@param OvertimeAmt Hourly Overtime Rate */ -public void setOvertimeAmt (BigDecimal OvertimeAmt) -{ -if (OvertimeAmt == null) throw new IllegalArgumentException ("OvertimeAmt is mandatory."); -set_Value ("OvertimeAmt", OvertimeAmt); -} -/** Get Overtime Amount. -@return Hourly Overtime Rate */ -public BigDecimal getOvertimeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OvertimeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OvertimeAmt */ -public static final String COLUMNNAME_OvertimeAmt = "OvertimeAmt"; -/** Set Overtime Cost. -@param OvertimeCost Hourly Overtime Cost */ -public void setOvertimeCost (BigDecimal OvertimeCost) -{ -if (OvertimeCost == null) throw new IllegalArgumentException ("OvertimeCost is mandatory."); -set_Value ("OvertimeCost", OvertimeCost); -} -/** Get Overtime Cost. -@return Hourly Overtime Cost */ -public BigDecimal getOvertimeCost() -{ -BigDecimal bd = (BigDecimal)get_Value("OvertimeCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OvertimeCost */ -public static final String COLUMNNAME_OvertimeCost = "OvertimeCost"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_UserRemuneration (Properties ctx, int C_UserRemuneration_ID, String trxName) + { + super (ctx, C_UserRemuneration_ID, trxName); + /** if (C_UserRemuneration_ID == 0) { setAD_User_ID (0); + setC_Remuneration_ID (0); + setC_UserRemuneration_ID (0); + setGrossRAmt (Env.ZERO); + setGrossRCost (Env.ZERO); + setOvertimeAmt (Env.ZERO); + setOvertimeCost (Env.ZERO); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_C_UserRemuneration (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_UserRemuneration[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } + + public I_C_Remuneration getI_C_Remuneration() throws Exception + { + 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 e; + } + return result; + } + + /** Set Remuneration. + @param C_Remuneration_ID + Wage or Salary + */ + public void setC_Remuneration_ID (int C_Remuneration_ID) + { + if (C_Remuneration_ID < 1) + throw new IllegalArgumentException ("C_Remuneration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Remuneration_ID, Integer.valueOf(C_Remuneration_ID)); + } + + /** Get Remuneration. + @return Wage or Salary + */ + public int getC_Remuneration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Remuneration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Employee Remuneration. + @param C_UserRemuneration_ID + Employee Wage or Salary Overwrite + */ + public void setC_UserRemuneration_ID (int C_UserRemuneration_ID) + { + if (C_UserRemuneration_ID < 1) + throw new IllegalArgumentException ("C_UserRemuneration_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UserRemuneration_ID, Integer.valueOf(C_UserRemuneration_ID)); + } + + /** Get Employee Remuneration. + @return Employee Wage or Salary Overwrite + */ + public int getC_UserRemuneration_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UserRemuneration_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Gross Amount. + @param GrossRAmt + Gross Remuneration Amount + */ + public void setGrossRAmt (BigDecimal GrossRAmt) + { + if (GrossRAmt == null) + throw new IllegalArgumentException ("GrossRAmt is mandatory."); + set_Value (COLUMNNAME_GrossRAmt, GrossRAmt); + } + + /** Get Gross Amount. + @return Gross Remuneration Amount + */ + public BigDecimal getGrossRAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrossRAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Gross Cost. + @param GrossRCost + Gross Remuneration Costs + */ + public void setGrossRCost (BigDecimal GrossRCost) + { + if (GrossRCost == null) + throw new IllegalArgumentException ("GrossRCost is mandatory."); + set_Value (COLUMNNAME_GrossRCost, GrossRCost); + } + + /** Get Gross Cost. + @return Gross Remuneration Costs + */ + public BigDecimal getGrossRCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrossRCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Overtime Amount. + @param OvertimeAmt + Hourly Overtime Rate + */ + public void setOvertimeAmt (BigDecimal OvertimeAmt) + { + if (OvertimeAmt == null) + throw new IllegalArgumentException ("OvertimeAmt is mandatory."); + set_Value (COLUMNNAME_OvertimeAmt, OvertimeAmt); + } + + /** Get Overtime Amount. + @return Hourly Overtime Rate + */ + public BigDecimal getOvertimeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OvertimeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Overtime Cost. + @param OvertimeCost + Hourly Overtime Cost + */ + public void setOvertimeCost (BigDecimal OvertimeCost) + { + if (OvertimeCost == null) + throw new IllegalArgumentException ("OvertimeCost is mandatory."); + set_Value (COLUMNNAME_OvertimeCost, OvertimeCost); + } + + /** Get Overtime Cost. + @return Hourly Overtime Cost + */ + public BigDecimal getOvertimeCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OvertimeCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_ValidCombination.java b/base/src/org/compiere/model/X_C_ValidCombination.java index 2a47baa917..21681d3729 100644 --- a/base/src/org/compiere/model/X_C_ValidCombination.java +++ b/base/src/org/compiere/model/X_C_ValidCombination.java @@ -1,513 +1,604 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_ValidCombination - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_ValidCombination extends PO + +/** Generated Model for C_ValidCombination + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_ValidCombination extends PO implements I_C_ValidCombination, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_ValidCombination_ID id -@param trxName transaction -*/ -public X_C_ValidCombination (Properties ctx, int C_ValidCombination_ID, String trxName) -{ -super (ctx, C_ValidCombination_ID, trxName); -/** if (C_ValidCombination_ID == 0) -{ -setAccount_ID (0); -setC_AcctSchema_ID (0); -setC_ValidCombination_ID (0); -setIsFullyQualified (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_ValidCombination (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_ValidCombination */ -public static final String Table_Name="C_ValidCombination"; - -/** AD_Table_ID=176 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_ValidCombination[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_ValidCombination (Properties ctx, int C_ValidCombination_ID, String trxName) + { + super (ctx, C_ValidCombination_ID, trxName); + /** if (C_ValidCombination_ID == 0) { setAccount_ID (0); + setC_AcctSchema_ID (0); + setC_ValidCombination_ID (0); + setIsFullyQualified (false); +} */ + } + + /** Load Constructor */ + public X_C_ValidCombination (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_ValidCombination[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_ValueNoCheck ("AD_OrgTrx_ID", null); - else -set_ValueNoCheck ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Account_ID AD_Reference_ID=362 */ public static final int ACCOUNT_ID_AD_Reference_ID=362; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID < 1) throw new IllegalArgumentException ("Account_ID is mandatory."); -set_ValueNoCheck ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Alias. -@param Alias Defines an alternate method of indicating an account combination. */ -public void setAlias (String Alias) -{ -if (Alias != null && Alias.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Alias = Alias.substring(0,39); -} -set_Value ("Alias", Alias); -} -/** Get Alias. -@return Defines an alternate method of indicating an account combination. */ -public String getAlias() -{ -return (String)get_Value("Alias"); -} -/** Column name Alias */ -public static final String COLUMNNAME_Alias = "Alias"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID < 1) + throw new IllegalArgumentException ("Account_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Alias. + @param Alias + Defines an alternate method of indicating an account combination. + */ + public void setAlias (String Alias) + { + if (Alias != null && Alias.length() > 40) + { + log.warning("Length > 40 - truncated"); + Alias = Alias.substring(0, 39); + } + set_Value (COLUMNNAME_Alias, Alias); + } + + /** Get Alias. + @return Defines an alternate method of indicating an account combination. + */ + public String getAlias () + { + return (String)get_Value(COLUMNNAME_Alias); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Activity_ID AD_Reference_ID=142 */ public static final int C_ACTIVITY_ID_AD_Reference_ID=142; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_ValueNoCheck ("C_Activity_ID", null); - else -set_ValueNoCheck ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_BPartner_ID AD_Reference_ID=138 */ public static final int C_BPARTNER_ID_AD_Reference_ID=138; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_ValueNoCheck ("C_BPartner_ID", null); - else -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Campaign_ID AD_Reference_ID=143 */ public static final int C_CAMPAIGN_ID_AD_Reference_ID=143; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_ValueNoCheck ("C_Campaign_ID", null); - else -set_ValueNoCheck ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocFrom_ID AD_Reference_ID=133 */ public static final int C_LOCFROM_ID_AD_Reference_ID=133; -/** Set Location From. -@param C_LocFrom_ID Location that inventory was moved from */ -public void setC_LocFrom_ID (int C_LocFrom_ID) -{ -if (C_LocFrom_ID <= 0) set_ValueNoCheck ("C_LocFrom_ID", null); - else -set_ValueNoCheck ("C_LocFrom_ID", Integer.valueOf(C_LocFrom_ID)); -} -/** Get Location From. -@return Location that inventory was moved from */ -public int getC_LocFrom_ID() -{ -Integer ii = (Integer)get_Value("C_LocFrom_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocFrom_ID */ -public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + /** Set Location From. + @param C_LocFrom_ID + Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID) + { + if (C_LocFrom_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_LocFrom_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); + } + + /** Get Location From. + @return Location that inventory was moved from + */ + public int getC_LocFrom_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocTo_ID AD_Reference_ID=133 */ public static final int C_LOCTO_ID_AD_Reference_ID=133; -/** Set Location To. -@param C_LocTo_ID Location that inventory was moved to */ -public void setC_LocTo_ID (int C_LocTo_ID) -{ -if (C_LocTo_ID <= 0) set_ValueNoCheck ("C_LocTo_ID", null); - else -set_ValueNoCheck ("C_LocTo_ID", Integer.valueOf(C_LocTo_ID)); -} -/** Get Location To. -@return Location that inventory was moved to */ -public int getC_LocTo_ID() -{ -Integer ii = (Integer)get_Value("C_LocTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocTo_ID */ -public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; + /** Set Location To. + @param C_LocTo_ID + Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID) + { + if (C_LocTo_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_LocTo_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); + } + + /** Get Location To. + @return Location that inventory was moved to + */ + public int getC_LocTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Project_ID AD_Reference_ID=141 */ public static final int C_PROJECT_ID_AD_Reference_ID=141; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_ValueNoCheck ("C_Project_ID", null); - else -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_SalesRegion_ID AD_Reference_ID=144 */ public static final int C_SALESREGION_ID_AD_Reference_ID=144; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_ValueNoCheck ("C_SalesRegion_ID", null); - else -set_ValueNoCheck ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Sub Account. -@param C_SubAcct_ID Sub account for Element Value */ -public void setC_SubAcct_ID (int C_SubAcct_ID) -{ -if (C_SubAcct_ID <= 0) set_ValueNoCheck ("C_SubAcct_ID", null); - else -set_ValueNoCheck ("C_SubAcct_ID", Integer.valueOf(C_SubAcct_ID)); -} -/** Get Sub Account. -@return Sub account for Element Value */ -public int getC_SubAcct_ID() -{ -Integer ii = (Integer)get_Value("C_SubAcct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubAcct_ID */ -public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; -/** Set Combination. -@param C_ValidCombination_ID Valid Account Combination */ -public void setC_ValidCombination_ID (int C_ValidCombination_ID) -{ -if (C_ValidCombination_ID < 1) throw new IllegalArgumentException ("C_ValidCombination_ID is mandatory."); -set_ValueNoCheck ("C_ValidCombination_ID", Integer.valueOf(C_ValidCombination_ID)); -} -/** Get Combination. -@return Valid Account Combination */ -public int getC_ValidCombination_ID() -{ -Integer ii = (Integer)get_Value("C_ValidCombination_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ValidCombination_ID */ -public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; -/** Set Combination. -@param Combination Unique combination of account elements */ -public void setCombination (String Combination) -{ -if (Combination != null && Combination.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Combination = Combination.substring(0,59); -} -set_ValueNoCheck ("Combination", Combination); -} -/** Get Combination. -@return Unique combination of account elements */ -public String getCombination() -{ -return (String)get_Value("Combination"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getCombination()); -} -/** Column name Combination */ -public static final String COLUMNNAME_Combination = "Combination"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_ValueNoCheck ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Fully Qualified. -@param IsFullyQualified This account is fully qualified */ -public void setIsFullyQualified (boolean IsFullyQualified) -{ -set_ValueNoCheck ("IsFullyQualified", Boolean.valueOf(IsFullyQualified)); -} -/** Get Fully Qualified. -@return This account is fully qualified */ -public boolean isFullyQualified() -{ -Object oo = get_Value("IsFullyQualified"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFullyQualified */ -public static final String COLUMNNAME_IsFullyQualified = "IsFullyQualified"; + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SubAcct getI_C_SubAcct() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sub Account. + @param C_SubAcct_ID + Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID) + { + if (C_SubAcct_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID)); + } + + /** Get Sub Account. + @return Sub account for Element Value + */ + public int getC_SubAcct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubAcct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Combination. + @param C_ValidCombination_ID + Valid Account Combination + */ + public void setC_ValidCombination_ID (int C_ValidCombination_ID) + { + if (C_ValidCombination_ID < 1) + throw new IllegalArgumentException ("C_ValidCombination_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); + } + + /** Get Combination. + @return Valid Account Combination + */ + public int getC_ValidCombination_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ValidCombination_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Combination. + @param Combination + Unique combination of account elements + */ + public void setCombination (String Combination) + { + if (Combination != null && Combination.length() > 60) + { + log.warning("Length > 60 - truncated"); + Combination = Combination.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Combination, Combination); + } + + /** Get Combination. + @return Unique combination of account elements + */ + public String getCombination () + { + return (String)get_Value(COLUMNNAME_Combination); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getCombination()); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Fully Qualified. + @param IsFullyQualified + This account is fully qualified + */ + public void setIsFullyQualified (boolean IsFullyQualified) + { + set_ValueNoCheck (COLUMNNAME_IsFullyQualified, Boolean.valueOf(IsFullyQualified)); + } + + /** Get Fully Qualified. + @return This account is fully qualified + */ + public boolean isFullyQualified () + { + Object oo = get_Value(COLUMNNAME_IsFullyQualified); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** M_Product_ID AD_Reference_ID=162 */ public static final int M_PRODUCT_ID_AD_Reference_ID=162; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_ValueNoCheck ("M_Product_ID", null); - else -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_ValueNoCheck ("User1_ID", null); - else -set_ValueNoCheck ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_ValueNoCheck (COLUMNNAME_User1_ID, null); + else + set_ValueNoCheck (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_ValueNoCheck ("User2_ID", null); - else -set_ValueNoCheck ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -/** Set User Element 1. -@param UserElement1_ID User defined accounting Element */ -public void setUserElement1_ID (int UserElement1_ID) -{ -if (UserElement1_ID <= 0) set_Value ("UserElement1_ID", null); - else -set_Value ("UserElement1_ID", Integer.valueOf(UserElement1_ID)); -} -/** Get User Element 1. -@return User defined accounting Element */ -public int getUserElement1_ID() -{ -Integer ii = (Integer)get_Value("UserElement1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UserElement1_ID */ -public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; -/** Set User Element 2. -@param UserElement2_ID User defined accounting Element */ -public void setUserElement2_ID (int UserElement2_ID) -{ -if (UserElement2_ID <= 0) set_Value ("UserElement2_ID", null); - else -set_Value ("UserElement2_ID", Integer.valueOf(UserElement2_ID)); -} -/** Get User Element 2. -@return User defined accounting Element */ -public int getUserElement2_ID() -{ -Integer ii = (Integer)get_Value("UserElement2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UserElement2_ID */ -public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_ValueNoCheck (COLUMNNAME_User2_ID, null); + else + set_ValueNoCheck (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Element 1. + @param UserElement1_ID + User defined accounting Element + */ + public void setUserElement1_ID (int UserElement1_ID) + { + if (UserElement1_ID <= 0) set_Value (COLUMNNAME_UserElement1_ID, null); + else + set_Value (COLUMNNAME_UserElement1_ID, Integer.valueOf(UserElement1_ID)); + } + + /** Get User Element 1. + @return User defined accounting Element + */ + public int getUserElement1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UserElement1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Element 2. + @param UserElement2_ID + User defined accounting Element + */ + public void setUserElement2_ID (int UserElement2_ID) + { + if (UserElement2_ID <= 0) set_Value (COLUMNNAME_UserElement2_ID, null); + else + set_Value (COLUMNNAME_UserElement2_ID, Integer.valueOf(UserElement2_ID)); + } + + /** Get User Element 2. + @return User defined accounting Element + */ + public int getUserElement2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UserElement2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Withholding.java b/base/src/org/compiere/model/X_C_Withholding.java index c07efb0e5c..da82f9e060 100644 --- a/base/src/org/compiere/model/X_C_Withholding.java +++ b/base/src/org/compiere/model/X_C_Withholding.java @@ -1,369 +1,432 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Withholding - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Withholding extends PO + +/** Generated Model for C_Withholding + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Withholding extends PO implements I_C_Withholding, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Withholding_ID id -@param trxName transaction -*/ -public X_C_Withholding (Properties ctx, int C_Withholding_ID, String trxName) -{ -super (ctx, C_Withholding_ID, trxName); -/** if (C_Withholding_ID == 0) -{ -setBeneficiary (0); -setC_PaymentTerm_ID (0); -setC_Withholding_ID (0); -setIsPaidTo3Party (false); -setIsPercentWithholding (false); -setIsTaxProrated (false); -setIsTaxWithholding (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Withholding (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Withholding */ -public static final String Table_Name="C_Withholding"; - -/** AD_Table_ID=304 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Withholding[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Withholding (Properties ctx, int C_Withholding_ID, String trxName) + { + super (ctx, C_Withholding_ID, trxName); + /** if (C_Withholding_ID == 0) { setBeneficiary (0); + setC_PaymentTerm_ID (0); + setC_Withholding_ID (0); + setIsPaidTo3Party (false); + setIsPercentWithholding (false); + setIsTaxProrated (false); + setIsTaxWithholding (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_C_Withholding (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Withholding[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** Beneficiary AD_Reference_ID=138 */ public static final int BENEFICIARY_AD_Reference_ID=138; -/** Set Beneficiary. -@param Beneficiary Business Partner to whom payment is made */ -public void setBeneficiary (int Beneficiary) -{ -set_Value ("Beneficiary", Integer.valueOf(Beneficiary)); -} -/** Get Beneficiary. -@return Business Partner to whom payment is made */ -public int getBeneficiary() -{ -Integer ii = (Integer)get_Value("Beneficiary"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Beneficiary */ -public static final String COLUMNNAME_Beneficiary = "Beneficiary"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID < 1) throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Withholding. -@param C_Withholding_ID Withholding type defined */ -public void setC_Withholding_ID (int C_Withholding_ID) -{ -if (C_Withholding_ID < 1) throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); -set_ValueNoCheck ("C_Withholding_ID", Integer.valueOf(C_Withholding_ID)); -} -/** Get Withholding. -@return Withholding type defined */ -public int getC_Withholding_ID() -{ -Integer ii = (Integer)get_Value("C_Withholding_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Withholding_ID */ -public static final String COLUMNNAME_C_Withholding_ID = "C_Withholding_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Fix amount. -@param FixAmt Fix amounted amount to be levied or paid */ -public void setFixAmt (BigDecimal FixAmt) -{ -set_Value ("FixAmt", FixAmt); -} -/** Get Fix amount. -@return Fix amounted amount to be levied or paid */ -public BigDecimal getFixAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FixAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FixAmt */ -public static final String COLUMNNAME_FixAmt = "FixAmt"; -/** Set Paid to third party. -@param IsPaidTo3Party Amount paid to someone other than the Business Partner */ -public void setIsPaidTo3Party (boolean IsPaidTo3Party) -{ -set_Value ("IsPaidTo3Party", Boolean.valueOf(IsPaidTo3Party)); -} -/** Get Paid to third party. -@return Amount paid to someone other than the Business Partner */ -public boolean isPaidTo3Party() -{ -Object oo = get_Value("IsPaidTo3Party"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPaidTo3Party */ -public static final String COLUMNNAME_IsPaidTo3Party = "IsPaidTo3Party"; -/** Set Percent withholding. -@param IsPercentWithholding Withholding amount is a percentage of the invoice amount */ -public void setIsPercentWithholding (boolean IsPercentWithholding) -{ -set_Value ("IsPercentWithholding", Boolean.valueOf(IsPercentWithholding)); -} -/** Get Percent withholding. -@return Withholding amount is a percentage of the invoice amount */ -public boolean isPercentWithholding() -{ -Object oo = get_Value("IsPercentWithholding"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPercentWithholding */ -public static final String COLUMNNAME_IsPercentWithholding = "IsPercentWithholding"; -/** Set Prorate tax. -@param IsTaxProrated Tax is Prorated */ -public void setIsTaxProrated (boolean IsTaxProrated) -{ -set_Value ("IsTaxProrated", Boolean.valueOf(IsTaxProrated)); -} -/** Get Prorate tax. -@return Tax is Prorated */ -public boolean isTaxProrated() -{ -Object oo = get_Value("IsTaxProrated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxProrated */ -public static final String COLUMNNAME_IsTaxProrated = "IsTaxProrated"; -/** Set Tax withholding. -@param IsTaxWithholding This is a tax related withholding */ -public void setIsTaxWithholding (boolean IsTaxWithholding) -{ -set_Value ("IsTaxWithholding", Boolean.valueOf(IsTaxWithholding)); -} -/** Get Tax withholding. -@return This is a tax related withholding */ -public boolean isTaxWithholding() -{ -Object oo = get_Value("IsTaxWithholding"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxWithholding */ -public static final String COLUMNNAME_IsTaxWithholding = "IsTaxWithholding"; -/** Set Max Amount. -@param MaxAmt Maximum Amount in invoice currency */ -public void setMaxAmt (BigDecimal MaxAmt) -{ -set_Value ("MaxAmt", MaxAmt); -} -/** Get Max Amount. -@return Maximum Amount in invoice currency */ -public BigDecimal getMaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("MaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MaxAmt */ -public static final String COLUMNNAME_MaxAmt = "MaxAmt"; -/** Set Min Amount. -@param MinAmt Minimum Amount in invoice currency */ -public void setMinAmt (BigDecimal MinAmt) -{ -set_Value ("MinAmt", MinAmt); -} -/** Get Min Amount. -@return Minimum Amount in invoice currency */ -public BigDecimal getMinAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("MinAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MinAmt */ -public static final String COLUMNNAME_MinAmt = "MinAmt"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Percent. -@param Percent Percentage */ -public void setPercent (BigDecimal Percent) -{ -set_Value ("Percent", Percent); -} -/** Get Percent. -@return Percentage */ -public BigDecimal getPercent() -{ -BigDecimal bd = (BigDecimal)get_Value("Percent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Percent */ -public static final String COLUMNNAME_Percent = "Percent"; -/** Set Threshold max. -@param ThresholdMax Maximum gross amount for withholding calculation (0=no limit) */ -public void setThresholdMax (BigDecimal ThresholdMax) -{ -set_Value ("ThresholdMax", ThresholdMax); -} -/** Get Threshold max. -@return Maximum gross amount for withholding calculation (0=no limit) */ -public BigDecimal getThresholdMax() -{ -BigDecimal bd = (BigDecimal)get_Value("ThresholdMax"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ThresholdMax */ -public static final String COLUMNNAME_ThresholdMax = "ThresholdMax"; -/** Set Threshold min. -@param Thresholdmin Minimum gross amount for withholding calculation */ -public void setThresholdmin (BigDecimal Thresholdmin) -{ -set_Value ("Thresholdmin", Thresholdmin); -} -/** Get Threshold min. -@return Minimum gross amount for withholding calculation */ -public BigDecimal getThresholdmin() -{ -BigDecimal bd = (BigDecimal)get_Value("Thresholdmin"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Thresholdmin */ -public static final String COLUMNNAME_Thresholdmin = "Thresholdmin"; -} + /** Set Beneficiary. + @param Beneficiary + Business Partner to whom payment is made + */ + public void setBeneficiary (int Beneficiary) + { + set_Value (COLUMNNAME_Beneficiary, Integer.valueOf(Beneficiary)); + } + + /** Get Beneficiary. + @return Business Partner to whom payment is made + */ + public int getBeneficiary () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Beneficiary); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Withholding. + @param C_Withholding_ID + Withholding type defined + */ + public void setC_Withholding_ID (int C_Withholding_ID) + { + if (C_Withholding_ID < 1) + throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); + } + + /** Get Withholding. + @return Withholding type defined + */ + public int getC_Withholding_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Withholding_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Fix amount. + @param FixAmt + Fix amounted amount to be levied or paid + */ + public void setFixAmt (BigDecimal FixAmt) + { + set_Value (COLUMNNAME_FixAmt, FixAmt); + } + + /** Get Fix amount. + @return Fix amounted amount to be levied or paid + */ + public BigDecimal getFixAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FixAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Paid to third party. + @param IsPaidTo3Party + Amount paid to someone other than the Business Partner + */ + public void setIsPaidTo3Party (boolean IsPaidTo3Party) + { + set_Value (COLUMNNAME_IsPaidTo3Party, Boolean.valueOf(IsPaidTo3Party)); + } + + /** Get Paid to third party. + @return Amount paid to someone other than the Business Partner + */ + public boolean isPaidTo3Party () + { + Object oo = get_Value(COLUMNNAME_IsPaidTo3Party); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Percent withholding. + @param IsPercentWithholding + Withholding amount is a percentage of the invoice amount + */ + public void setIsPercentWithholding (boolean IsPercentWithholding) + { + set_Value (COLUMNNAME_IsPercentWithholding, Boolean.valueOf(IsPercentWithholding)); + } + + /** Get Percent withholding. + @return Withholding amount is a percentage of the invoice amount + */ + public boolean isPercentWithholding () + { + Object oo = get_Value(COLUMNNAME_IsPercentWithholding); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Prorate tax. + @param IsTaxProrated + Tax is Prorated + */ + public void setIsTaxProrated (boolean IsTaxProrated) + { + set_Value (COLUMNNAME_IsTaxProrated, Boolean.valueOf(IsTaxProrated)); + } + + /** Get Prorate tax. + @return Tax is Prorated + */ + public boolean isTaxProrated () + { + Object oo = get_Value(COLUMNNAME_IsTaxProrated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax withholding. + @param IsTaxWithholding + This is a tax related withholding + */ + public void setIsTaxWithholding (boolean IsTaxWithholding) + { + set_Value (COLUMNNAME_IsTaxWithholding, Boolean.valueOf(IsTaxWithholding)); + } + + /** Get Tax withholding. + @return This is a tax related withholding + */ + public boolean isTaxWithholding () + { + Object oo = get_Value(COLUMNNAME_IsTaxWithholding); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Max Amount. + @param MaxAmt + Maximum Amount in invoice currency + */ + public void setMaxAmt (BigDecimal MaxAmt) + { + set_Value (COLUMNNAME_MaxAmt, MaxAmt); + } + + /** Get Max Amount. + @return Maximum Amount in invoice currency + */ + public BigDecimal getMaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Min Amount. + @param MinAmt + Minimum Amount in invoice currency + */ + public void setMinAmt (BigDecimal MinAmt) + { + set_Value (COLUMNNAME_MinAmt, MinAmt); + } + + /** Get Min Amount. + @return Minimum Amount in invoice currency + */ + public BigDecimal getMinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Percent. + @param Percent + Percentage + */ + public void setPercent (BigDecimal Percent) + { + set_Value (COLUMNNAME_Percent, Percent); + } + + /** Get Percent. + @return Percentage + */ + public BigDecimal getPercent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Percent); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Threshold max. + @param ThresholdMax + Maximum gross amount for withholding calculation (0=no limit) + */ + public void setThresholdMax (BigDecimal ThresholdMax) + { + set_Value (COLUMNNAME_ThresholdMax, ThresholdMax); + } + + /** Get Threshold max. + @return Maximum gross amount for withholding calculation (0=no limit) + */ + public BigDecimal getThresholdMax () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ThresholdMax); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Threshold min. + @param Thresholdmin + Minimum gross amount for withholding calculation + */ + public void setThresholdmin (BigDecimal Thresholdmin) + { + set_Value (COLUMNNAME_Thresholdmin, Thresholdmin); + } + + /** Get Threshold min. + @return Minimum gross amount for withholding calculation + */ + public BigDecimal getThresholdmin () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Thresholdmin); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 40757ec600..654e6f5f85 100644 --- a/base/src/org/compiere/model/X_C_Withholding_Acct.java +++ b/base/src/org/compiere/model/X_C_Withholding_Acct.java @@ -1,140 +1,171 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Withholding_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Withholding_Acct extends PO + +/** Generated Model for C_Withholding_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Withholding_Acct extends PO implements I_C_Withholding_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Withholding_Acct_ID id -@param trxName transaction -*/ -public X_C_Withholding_Acct (Properties ctx, int C_Withholding_Acct_ID, String trxName) -{ -super (ctx, C_Withholding_Acct_ID, trxName); -/** if (C_Withholding_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Withholding_ID (0); -setWithholding_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Withholding_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Withholding_Acct */ -public static final String Table_Name="C_Withholding_Acct"; - -/** AD_Table_ID=400 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Withholding_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Withholding. -@param C_Withholding_ID Withholding type defined */ -public void setC_Withholding_ID (int C_Withholding_ID) -{ -if (C_Withholding_ID < 1) throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); -set_ValueNoCheck ("C_Withholding_ID", Integer.valueOf(C_Withholding_ID)); -} -/** Get Withholding. -@return Withholding type defined */ -public int getC_Withholding_ID() -{ -Integer ii = (Integer)get_Value("C_Withholding_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Withholding_ID */ -public static final String COLUMNNAME_C_Withholding_ID = "C_Withholding_ID"; -/** Set Withholding. -@param Withholding_Acct Account for Withholdings */ -public void setWithholding_Acct (int Withholding_Acct) -{ -set_Value ("Withholding_Acct", Integer.valueOf(Withholding_Acct)); -} -/** Get Withholding. -@return Account for Withholdings */ -public int getWithholding_Acct() -{ -Integer ii = (Integer)get_Value("Withholding_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Withholding_Acct */ -public static final String COLUMNNAME_Withholding_Acct = "Withholding_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Withholding_Acct (Properties ctx, int C_Withholding_Acct_ID, String trxName) + { + super (ctx, C_Withholding_Acct_ID, trxName); + /** if (C_Withholding_Acct_ID == 0) { setC_AcctSchema_ID (0); + setC_Withholding_ID (0); + setWithholding_Acct (0); +} */ + } + + /** Load Constructor */ + public X_C_Withholding_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Withholding_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Withholding getI_C_Withholding() throws Exception + { + 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 e; + } + return result; + } + + /** Set Withholding. + @param C_Withholding_ID + Withholding type defined + */ + public void setC_Withholding_ID (int C_Withholding_ID) + { + if (C_Withholding_ID < 1) + throw new IllegalArgumentException ("C_Withholding_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Withholding_ID, Integer.valueOf(C_Withholding_ID)); + } + + /** Get Withholding. + @return Withholding type defined + */ + public int getC_Withholding_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Withholding_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Withholding. + @param Withholding_Acct + Account for Withholdings + */ + public void setWithholding_Acct (int Withholding_Acct) + { + set_Value (COLUMNNAME_Withholding_Acct, Integer.valueOf(Withholding_Acct)); + } + + /** Get Withholding. + @return Account for Withholdings + */ + public int getWithholding_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Withholding_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Year.java b/base/src/org/compiere/model/X_C_Year.java index ca9c991a75..d479ab1d63 100644 --- a/base/src/org/compiere/model/X_C_Year.java +++ b/base/src/org/compiere/model/X_C_Year.java @@ -1,189 +1,210 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for C_Year - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_C_Year extends PO + +/** Generated Model for C_Year + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_C_Year extends PO implements I_C_Year, I_Persistent { -/** Standard Constructor -@param ctx context -@param C_Year_ID id -@param trxName transaction -*/ -public X_C_Year (Properties ctx, int C_Year_ID, String trxName) -{ -super (ctx, C_Year_ID, trxName); -/** if (C_Year_ID == 0) -{ -setC_Calendar_ID (0); -setC_Year_ID (0); -setFiscalYear (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_C_Year (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=C_Year */ -public static final String Table_Name="C_Year"; - -/** AD_Table_ID=177 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_C_Year[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID < 1) throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); -set_ValueNoCheck ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; -/** Set Year. -@param C_Year_ID Calendar Year */ -public void setC_Year_ID (int C_Year_ID) -{ -if (C_Year_ID < 1) throw new IllegalArgumentException ("C_Year_ID is mandatory."); -set_ValueNoCheck ("C_Year_ID", Integer.valueOf(C_Year_ID)); -} -/** Get Year. -@return Calendar Year */ -public int getC_Year_ID() -{ -Integer ii = (Integer)get_Value("C_Year_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Year_ID */ -public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Year. -@param FiscalYear The Fiscal Year */ -public void setFiscalYear (String FiscalYear) -{ -if (FiscalYear == null) throw new IllegalArgumentException ("FiscalYear is mandatory."); -if (FiscalYear.length() > 10) -{ -log.warning("Length > 10 - truncated"); -FiscalYear = FiscalYear.substring(0,9); -} -set_Value ("FiscalYear", FiscalYear); -} -/** Get Year. -@return The Fiscal Year */ -public String getFiscalYear() -{ -return (String)get_Value("FiscalYear"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getFiscalYear()); -} -/** Column name FiscalYear */ -public static final String COLUMNNAME_FiscalYear = "FiscalYear"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Year (Properties ctx, int C_Year_ID, String trxName) + { + super (ctx, C_Year_ID, trxName); + /** if (C_Year_ID == 0) { setC_Calendar_ID (0); + setC_Year_ID (0); + setFiscalYear (null); +} */ + } + + /** Load Constructor */ + public X_C_Year (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_C_Year[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Calendar getI_C_Calendar() throws Exception + { + 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 e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Year. + @param C_Year_ID + Calendar Year + */ + public void setC_Year_ID (int C_Year_ID) + { + if (C_Year_ID < 1) + throw new IllegalArgumentException ("C_Year_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + } + + /** Get Year. + @return Calendar Year + */ + public int getC_Year_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Year_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Year. + @param FiscalYear + The Fiscal Year + */ + public void setFiscalYear (String FiscalYear) + { + if (FiscalYear == null) + throw new IllegalArgumentException ("FiscalYear is mandatory."); + if (FiscalYear.length() > 10) + { + log.warning("Length > 10 - truncated"); + FiscalYear = FiscalYear.substring(0, 9); + } + set_Value (COLUMNNAME_FiscalYear, FiscalYear); + } + + /** Get Year. + @return The Fiscal Year + */ + public String getFiscalYear () + { + return (String)get_Value(COLUMNNAME_FiscalYear); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getFiscalYear()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_Fact_Acct.java b/base/src/org/compiere/model/X_Fact_Acct.java index e9055d2930..b2639dfe14 100644 --- a/base/src/org/compiere/model/X_Fact_Acct.java +++ b/base/src/org/compiere/model/X_Fact_Acct.java @@ -1,826 +1,1217 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for Fact_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_Fact_Acct extends PO + +/** Generated Model for Fact_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_Fact_Acct extends PO implements I_Fact_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param Fact_Acct_ID id -@param trxName transaction -*/ -public X_Fact_Acct (Properties ctx, int Fact_Acct_ID, String trxName) -{ -super (ctx, Fact_Acct_ID, trxName); -/** if (Fact_Acct_ID == 0) -{ -setAD_Table_ID (0); -setAccount_ID (0); -setAmtAcctCr (Env.ZERO); -setAmtAcctDr (Env.ZERO); -setAmtSourceCr (Env.ZERO); -setAmtSourceDr (Env.ZERO); -setC_AcctSchema_ID (0); -setC_Currency_ID (0); -setC_Period_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setDateTrx (new Timestamp(System.currentTimeMillis())); -setFact_Acct_ID (0); -setGL_Category_ID (0); -setPostingType (null); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_Fact_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=Fact_Acct */ -public static final String Table_Name="Fact_Acct"; - -/** AD_Table_ID=270 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_Fact_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_Fact_Acct (Properties ctx, int Fact_Acct_ID, String trxName) + { + super (ctx, Fact_Acct_ID, trxName); + /** if (Fact_Acct_ID == 0) { setAD_Table_ID (0); + setAccount_ID (0); + setAmtAcctCr (Env.ZERO); + setAmtAcctDr (Env.ZERO); + setAmtSourceCr (Env.ZERO); + setAmtSourceDr (Env.ZERO); + setC_AcctSchema_ID (0); + setC_Currency_ID (0); + setC_Period_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setDateTrx (new Timestamp(System.currentTimeMillis())); + setFact_Acct_ID (0); + setGL_Category_ID (0); + setPostingType (null); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_Fact_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_Fact_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_ValueNoCheck ("AD_OrgTrx_ID", null); - else -set_ValueNoCheck ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Account_ID AD_Reference_ID=132 */ public static final int ACCOUNT_ID_AD_Reference_ID=132; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID < 1) throw new IllegalArgumentException ("Account_ID is mandatory."); -set_ValueNoCheck ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Accounted Credit. -@param AmtAcctCr Accounted Credit Amount */ -public void setAmtAcctCr (BigDecimal AmtAcctCr) -{ -if (AmtAcctCr == null) throw new IllegalArgumentException ("AmtAcctCr is mandatory."); -set_ValueNoCheck ("AmtAcctCr", AmtAcctCr); -} -/** Get Accounted Credit. -@return Accounted Credit Amount */ -public BigDecimal getAmtAcctCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctCr */ -public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; -/** Set Accounted Debit. -@param AmtAcctDr Accounted Debit Amount */ -public void setAmtAcctDr (BigDecimal AmtAcctDr) -{ -if (AmtAcctDr == null) throw new IllegalArgumentException ("AmtAcctDr is mandatory."); -set_ValueNoCheck ("AmtAcctDr", AmtAcctDr); -} -/** Get Accounted Debit. -@return Accounted Debit Amount */ -public BigDecimal getAmtAcctDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctDr */ -public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; -/** Set Source Credit. -@param AmtSourceCr Source Credit Amount */ -public void setAmtSourceCr (BigDecimal AmtSourceCr) -{ -if (AmtSourceCr == null) throw new IllegalArgumentException ("AmtSourceCr is mandatory."); -set_ValueNoCheck ("AmtSourceCr", AmtSourceCr); -} -/** Get Source Credit. -@return Source Credit Amount */ -public BigDecimal getAmtSourceCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceCr */ -public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; -/** Set Source Debit. -@param AmtSourceDr Source Debit Amount */ -public void setAmtSourceDr (BigDecimal AmtSourceDr) -{ -if (AmtSourceDr == null) throw new IllegalArgumentException ("AmtSourceDr is mandatory."); -set_ValueNoCheck ("AmtSourceDr", AmtSourceDr); -} -/** Get Source Debit. -@return Source Debit Amount */ -public BigDecimal getAmtSourceDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceDr */ -public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_ValueNoCheck ("C_Activity_ID", null); - else -set_ValueNoCheck ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_ValueNoCheck ("C_BPartner_ID", null); - else -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_ValueNoCheck ("C_Campaign_ID", null); - else -set_ValueNoCheck ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID < 1) + throw new IllegalArgumentException ("Account_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accounted Credit. + @param AmtAcctCr + Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr) + { + if (AmtAcctCr == null) + throw new IllegalArgumentException ("AmtAcctCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_AmtAcctCr, AmtAcctCr); + } + + /** Get Accounted Credit. + @return Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accounted Debit. + @param AmtAcctDr + Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr) + { + if (AmtAcctDr == null) + throw new IllegalArgumentException ("AmtAcctDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_AmtAcctDr, AmtAcctDr); + } + + /** Get Accounted Debit. + @return Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Credit. + @param AmtSourceCr + Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr) + { + if (AmtSourceCr == null) + throw new IllegalArgumentException ("AmtSourceCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_AmtSourceCr, AmtSourceCr); + } + + /** Get Source Credit. + @return Source Credit Amount + */ + public BigDecimal getAmtSourceCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Debit. + @param AmtSourceDr + Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr) + { + if (AmtSourceDr == null) + throw new IllegalArgumentException ("AmtSourceDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_AmtSourceDr, AmtSourceDr); + } + + /** Get Source Debit. + @return Source Debit Amount + */ + public BigDecimal getAmtSourceDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocFrom_ID AD_Reference_ID=133 */ public static final int C_LOCFROM_ID_AD_Reference_ID=133; -/** Set Location From. -@param C_LocFrom_ID Location that inventory was moved from */ -public void setC_LocFrom_ID (int C_LocFrom_ID) -{ -if (C_LocFrom_ID <= 0) set_ValueNoCheck ("C_LocFrom_ID", null); - else -set_ValueNoCheck ("C_LocFrom_ID", Integer.valueOf(C_LocFrom_ID)); -} -/** Get Location From. -@return Location that inventory was moved from */ -public int getC_LocFrom_ID() -{ -Integer ii = (Integer)get_Value("C_LocFrom_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocFrom_ID */ -public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + /** Set Location From. + @param C_LocFrom_ID + Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID) + { + if (C_LocFrom_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_LocFrom_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); + } + + /** Get Location From. + @return Location that inventory was moved from + */ + public int getC_LocFrom_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocTo_ID AD_Reference_ID=133 */ public static final int C_LOCTO_ID_AD_Reference_ID=133; -/** Set Location To. -@param C_LocTo_ID Location that inventory was moved to */ -public void setC_LocTo_ID (int C_LocTo_ID) -{ -if (C_LocTo_ID <= 0) set_ValueNoCheck ("C_LocTo_ID", null); - else -set_ValueNoCheck ("C_LocTo_ID", Integer.valueOf(C_LocTo_ID)); -} -/** Get Location To. -@return Location that inventory was moved to */ -public int getC_LocTo_ID() -{ -Integer ii = (Integer)get_Value("C_LocTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocTo_ID */ -public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID < 1) throw new IllegalArgumentException ("C_Period_ID is mandatory."); -set_ValueNoCheck ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_ValueNoCheck ("C_ProjectPhase_ID", null); - else -set_ValueNoCheck ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_ValueNoCheck ("C_ProjectTask_ID", null); - else -set_ValueNoCheck ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_ValueNoCheck ("C_Project_ID", null); - else -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_ValueNoCheck ("C_SalesRegion_ID", null); - else -set_ValueNoCheck ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Sub Account. -@param C_SubAcct_ID Sub account for Element Value */ -public void setC_SubAcct_ID (int C_SubAcct_ID) -{ -if (C_SubAcct_ID <= 0) set_Value ("C_SubAcct_ID", null); - else -set_Value ("C_SubAcct_ID", Integer.valueOf(C_SubAcct_ID)); -} -/** Get Sub Account. -@return Sub account for Element Value */ -public int getC_SubAcct_ID() -{ -Integer ii = (Integer)get_Value("C_SubAcct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubAcct_ID */ -public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID <= 0) set_ValueNoCheck ("C_Tax_ID", null); - else -set_ValueNoCheck ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_ValueNoCheck ("C_UOM_ID", null); - else -set_ValueNoCheck ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_ValueNoCheck ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_ValueNoCheck ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Accounting Fact. -@param Fact_Acct_ID Accounting Fact */ -public void setFact_Acct_ID (int Fact_Acct_ID) -{ -if (Fact_Acct_ID < 1) throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); -set_ValueNoCheck ("Fact_Acct_ID", Integer.valueOf(Fact_Acct_ID)); -} -/** Get Accounting Fact. -@return Accounting Fact */ -public int getFact_Acct_ID() -{ -Integer ii = (Integer)get_Value("Fact_Acct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getFact_Acct_ID())); -} -/** Column name Fact_Acct_ID */ -public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID <= 0) set_ValueNoCheck ("GL_Budget_ID", null); - else -set_ValueNoCheck ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set GL Category. -@param GL_Category_ID General Ledger Category */ -public void setGL_Category_ID (int GL_Category_ID) -{ -if (GL_Category_ID < 1) throw new IllegalArgumentException ("GL_Category_ID is mandatory."); -set_ValueNoCheck ("GL_Category_ID", Integer.valueOf(GL_Category_ID)); -} -/** Get GL Category. -@return General Ledger Category */ -public int getGL_Category_ID() -{ -Integer ii = (Integer)get_Value("GL_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Category_ID */ -public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; -/** Set Line ID. -@param Line_ID Transaction line ID (internal) */ -public void setLine_ID (int Line_ID) -{ -if (Line_ID <= 0) set_ValueNoCheck ("Line_ID", null); - else -set_ValueNoCheck ("Line_ID", Integer.valueOf(Line_ID)); -} -/** Get Line ID. -@return Transaction line ID (internal) */ -public int getLine_ID() -{ -Integer ii = (Integer)get_Value("Line_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line_ID */ -public static final String COLUMNNAME_Line_ID = "Line_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID <= 0) set_ValueNoCheck ("M_Locator_ID", null); - else -set_ValueNoCheck ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_ValueNoCheck ("M_Product_ID", null); - else -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + /** Set Location To. + @param C_LocTo_ID + Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID) + { + if (C_LocTo_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_LocTo_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); + } + + /** Get Location To. + @return Location that inventory was moved to + */ + public int getC_LocTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Period getI_C_Period() throws Exception + { + 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 e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SubAcct getI_C_SubAcct() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sub Account. + @param C_SubAcct_ID + Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID) + { + if (C_SubAcct_ID <= 0) set_Value (COLUMNNAME_C_SubAcct_ID, null); + else + set_Value (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID)); + } + + /** Get Sub Account. + @return Sub account for Element Value + */ + public int getC_SubAcct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubAcct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Accounting Fact. + @param Fact_Acct_ID Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID) + { + if (Fact_Acct_ID < 1) + throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + } + + /** Get Accounting Fact. +@return Accounting Fact */ + public int getFact_Acct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getFact_Acct_ID())); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID <= 0) set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Category getI_GL_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + throw new IllegalArgumentException ("GL_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line ID. + @param Line_ID + Transaction line ID (internal) + */ + public void setLine_ID (int Line_ID) + { + if (Line_ID <= 0) set_ValueNoCheck (COLUMNNAME_Line_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Line_ID, Integer.valueOf(Line_ID)); + } + + /** Get Line ID. + @return Transaction line ID (internal) + */ + public int getLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Locator getI_M_Locator() throws Exception + { + 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 e; + } + return result; + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_Locator_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); -if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_ValueNoCheck ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_ValueNoCheck ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory");if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_ValueNoCheck (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_ValueNoCheck ("User1_ID", null); - else -set_ValueNoCheck ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_ValueNoCheck (COLUMNNAME_User1_ID, null); + else + set_ValueNoCheck (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_ValueNoCheck ("User2_ID", null); - else -set_ValueNoCheck ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -/** Set User Element 1. -@param UserElement1_ID User defined accounting Element */ -public void setUserElement1_ID (int UserElement1_ID) -{ -if (UserElement1_ID <= 0) set_ValueNoCheck ("UserElement1_ID", null); - else -set_ValueNoCheck ("UserElement1_ID", Integer.valueOf(UserElement1_ID)); -} -/** Get User Element 1. -@return User defined accounting Element */ -public int getUserElement1_ID() -{ -Integer ii = (Integer)get_Value("UserElement1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UserElement1_ID */ -public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; -/** Set User Element 2. -@param UserElement2_ID User defined accounting Element */ -public void setUserElement2_ID (int UserElement2_ID) -{ -if (UserElement2_ID <= 0) set_ValueNoCheck ("UserElement2_ID", null); - else -set_ValueNoCheck ("UserElement2_ID", Integer.valueOf(UserElement2_ID)); -} -/** Get User Element 2. -@return User defined accounting Element */ -public int getUserElement2_ID() -{ -Integer ii = (Integer)get_Value("UserElement2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UserElement2_ID */ -public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_ValueNoCheck (COLUMNNAME_User2_ID, null); + else + set_ValueNoCheck (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Element 1. + @param UserElement1_ID + User defined accounting Element + */ + public void setUserElement1_ID (int UserElement1_ID) + { + if (UserElement1_ID <= 0) set_ValueNoCheck (COLUMNNAME_UserElement1_ID, null); + else + set_ValueNoCheck (COLUMNNAME_UserElement1_ID, Integer.valueOf(UserElement1_ID)); + } + + /** Get User Element 1. + @return User defined accounting Element + */ + public int getUserElement1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UserElement1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Element 2. + @param UserElement2_ID + User defined accounting Element + */ + public void setUserElement2_ID (int UserElement2_ID) + { + if (UserElement2_ID <= 0) set_ValueNoCheck (COLUMNNAME_UserElement2_ID, null); + else + set_ValueNoCheck (COLUMNNAME_UserElement2_ID, Integer.valueOf(UserElement2_ID)); + } + + /** Get User Element 2. + @return User defined accounting Element + */ + public int getUserElement2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UserElement2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_Fact_Acct_Balance.java b/base/src/org/compiere/model/X_Fact_Acct_Balance.java index 31f1bb6127..41f79a3d9d 100644 --- a/base/src/org/compiere/model/X_Fact_Acct_Balance.java +++ b/base/src/org/compiere/model/X_Fact_Acct_Balance.java @@ -1,559 +1,775 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for Fact_Acct_Balance - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_Fact_Acct_Balance extends PO + +/** Generated Model for Fact_Acct_Balance + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_Fact_Acct_Balance extends PO implements I_Fact_Acct_Balance, I_Persistent { -/** Standard Constructor -@param ctx context -@param Fact_Acct_Balance_ID id -@param trxName transaction -*/ -public X_Fact_Acct_Balance (Properties ctx, int Fact_Acct_Balance_ID, String trxName) -{ -super (ctx, Fact_Acct_Balance_ID, trxName); -/** if (Fact_Acct_Balance_ID == 0) -{ -setAccount_ID (0); -setAmtAcctCr (Env.ZERO); -setAmtAcctDr (Env.ZERO); -setC_AcctSchema_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setPostingType (null); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_Fact_Acct_Balance (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=Fact_Acct_Balance */ -public static final String Table_Name="Fact_Acct_Balance"; - -/** AD_Table_ID=547 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_Fact_Acct_Balance[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_Fact_Acct_Balance (Properties ctx, int Fact_Acct_Balance_ID, String trxName) + { + super (ctx, Fact_Acct_Balance_ID, trxName); + /** if (Fact_Acct_Balance_ID == 0) { setAccount_ID (0); + setAmtAcctCr (Env.ZERO); + setAmtAcctDr (Env.ZERO); + setC_AcctSchema_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setPostingType (null); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_Fact_Acct_Balance (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_Fact_Acct_Balance[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=276 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=276; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Account_ID AD_Reference_ID=182 */ public static final int ACCOUNT_ID_AD_Reference_ID=182; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID < 1) throw new IllegalArgumentException ("Account_ID is mandatory."); -set_Value ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Accounted Credit. -@param AmtAcctCr Accounted Credit Amount */ -public void setAmtAcctCr (BigDecimal AmtAcctCr) -{ -if (AmtAcctCr == null) throw new IllegalArgumentException ("AmtAcctCr is mandatory."); -set_Value ("AmtAcctCr", AmtAcctCr); -} -/** Get Accounted Credit. -@return Accounted Credit Amount */ -public BigDecimal getAmtAcctCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctCr */ -public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; -/** Set Accounted Debit. -@param AmtAcctDr Accounted Debit Amount */ -public void setAmtAcctDr (BigDecimal AmtAcctDr) -{ -if (AmtAcctDr == null) throw new IllegalArgumentException ("AmtAcctDr is mandatory."); -set_Value ("AmtAcctDr", AmtAcctDr); -} -/** Get Accounted Debit. -@return Accounted Debit Amount */ -public BigDecimal getAmtAcctDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctDr */ -public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID < 1) + throw new IllegalArgumentException ("Account_ID is mandatory."); + set_Value (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accounted Credit. + @param AmtAcctCr + Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr) + { + if (AmtAcctCr == null) + throw new IllegalArgumentException ("AmtAcctCr is mandatory."); + set_Value (COLUMNNAME_AmtAcctCr, AmtAcctCr); + } + + /** Get Accounted Credit. + @return Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accounted Debit. + @param AmtAcctDr + Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr) + { + if (AmtAcctDr == null) + throw new IllegalArgumentException ("AmtAcctDr is mandatory."); + set_Value (COLUMNNAME_AmtAcctDr, AmtAcctDr); + } + + /** Get Accounted Debit. + @return Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID())); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocFrom_ID AD_Reference_ID=133 */ public static final int C_LOCFROM_ID_AD_Reference_ID=133; -/** Set Location From. -@param C_LocFrom_ID Location that inventory was moved from */ -public void setC_LocFrom_ID (int C_LocFrom_ID) -{ -if (C_LocFrom_ID <= 0) set_Value ("C_LocFrom_ID", null); - else -set_Value ("C_LocFrom_ID", Integer.valueOf(C_LocFrom_ID)); -} -/** Get Location From. -@return Location that inventory was moved from */ -public int getC_LocFrom_ID() -{ -Integer ii = (Integer)get_Value("C_LocFrom_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocFrom_ID */ -public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + /** Set Location From. + @param C_LocFrom_ID + Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID) + { + if (C_LocFrom_ID <= 0) set_Value (COLUMNNAME_C_LocFrom_ID, null); + else + set_Value (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); + } + + /** Get Location From. + @return Location that inventory was moved from + */ + public int getC_LocFrom_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocTo_ID AD_Reference_ID=133 */ public static final int C_LOCTO_ID_AD_Reference_ID=133; -/** Set Location To. -@param C_LocTo_ID Location that inventory was moved to */ -public void setC_LocTo_ID (int C_LocTo_ID) -{ -if (C_LocTo_ID <= 0) set_Value ("C_LocTo_ID", null); - else -set_Value ("C_LocTo_ID", Integer.valueOf(C_LocTo_ID)); -} -/** Get Location To. -@return Location that inventory was moved to */ -public int getC_LocTo_ID() -{ -Integer ii = (Integer)get_Value("C_LocTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocTo_ID */ -public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_ValueNoCheck ("C_ProjectPhase_ID", null); - else -set_ValueNoCheck ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_ValueNoCheck ("C_ProjectTask_ID", null); - else -set_ValueNoCheck ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Sub Account. -@param C_SubAcct_ID Sub account for Element Value */ -public void setC_SubAcct_ID (int C_SubAcct_ID) -{ -if (C_SubAcct_ID <= 0) set_ValueNoCheck ("C_SubAcct_ID", null); - else -set_ValueNoCheck ("C_SubAcct_ID", Integer.valueOf(C_SubAcct_ID)); -} -/** Get Sub Account. -@return Sub account for Element Value */ -public int getC_SubAcct_ID() -{ -Integer ii = (Integer)get_Value("C_SubAcct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubAcct_ID */ -public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID <= 0) set_Value ("GL_Budget_ID", null); - else -set_Value ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + /** Set Location To. + @param C_LocTo_ID + Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID) + { + if (C_LocTo_ID <= 0) set_Value (COLUMNNAME_C_LocTo_ID, null); + else + set_Value (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); + } + + /** Get Location To. + @return Location that inventory was moved to + */ + public int getC_LocTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SubAcct getI_C_SubAcct() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sub Account. + @param C_SubAcct_ID + Sub account for Element Value + */ + public void setC_SubAcct_ID (int C_SubAcct_ID) + { + if (C_SubAcct_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID)); + } + + /** Get Sub Account. + @return Sub account for Element Value + */ + public int getC_SubAcct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubAcct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID <= 0) set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); -if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory");if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -/** Set User Element 1. -@param UserElement1_ID User defined accounting Element */ -public void setUserElement1_ID (int UserElement1_ID) -{ -if (UserElement1_ID <= 0) set_Value ("UserElement1_ID", null); - else -set_Value ("UserElement1_ID", Integer.valueOf(UserElement1_ID)); -} -/** Get User Element 1. -@return User defined accounting Element */ -public int getUserElement1_ID() -{ -Integer ii = (Integer)get_Value("UserElement1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UserElement1_ID */ -public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID"; -/** Set User Element 2. -@param UserElement2_ID User defined accounting Element */ -public void setUserElement2_ID (int UserElement2_ID) -{ -if (UserElement2_ID <= 0) set_Value ("UserElement2_ID", null); - else -set_Value ("UserElement2_ID", Integer.valueOf(UserElement2_ID)); -} -/** Get User Element 2. -@return User defined accounting Element */ -public int getUserElement2_ID() -{ -Integer ii = (Integer)get_Value("UserElement2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UserElement2_ID */ -public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Element 1. + @param UserElement1_ID + User defined accounting Element + */ + public void setUserElement1_ID (int UserElement1_ID) + { + if (UserElement1_ID <= 0) set_Value (COLUMNNAME_UserElement1_ID, null); + else + set_Value (COLUMNNAME_UserElement1_ID, Integer.valueOf(UserElement1_ID)); + } + + /** Get User Element 1. + @return User defined accounting Element + */ + public int getUserElement1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UserElement1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User Element 2. + @param UserElement2_ID + User defined accounting Element + */ + public void setUserElement2_ID (int UserElement2_ID) + { + if (UserElement2_ID <= 0) set_Value (COLUMNNAME_UserElement2_ID, null); + else + set_Value (COLUMNNAME_UserElement2_ID, Integer.valueOf(UserElement2_ID)); + } + + /** Get User Element 2. + @return User defined accounting Element + */ + public int getUserElement2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UserElement2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_Budget.java b/base/src/org/compiere/model/X_GL_Budget.java index 23eaa1a703..d68ee4b710 100644 --- a/base/src/org/compiere/model/X_GL_Budget.java +++ b/base/src/org/compiere/model/X_GL_Budget.java @@ -1,200 +1,201 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_Budget - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_Budget extends PO + +/** Generated Model for GL_Budget + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_Budget extends PO implements I_GL_Budget, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_Budget_ID id -@param trxName transaction -*/ -public X_GL_Budget (Properties ctx, int GL_Budget_ID, String trxName) -{ -super (ctx, GL_Budget_ID, trxName); -/** if (GL_Budget_ID == 0) -{ -setGL_Budget_ID (0); -setIsPrimary (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_Budget (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_Budget */ -public static final String Table_Name="GL_Budget"; - -/** AD_Table_ID=271 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_Budget[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_Budget (Properties ctx, int GL_Budget_ID, String trxName) + { + super (ctx, GL_Budget_ID, trxName); + /** if (GL_Budget_ID == 0) { setGL_Budget_ID (0); + setIsPrimary (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_GL_Budget (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_Budget[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** BudgetStatus AD_Reference_ID=178 */ -public static final int BUDGETSTATUS_AD_Reference_ID=178; -/** Approved = A */ -public static final String BUDGETSTATUS_Approved = "A"; -/** Draft = D */ +public static final int BUDGETSTATUS_AD_Reference_ID=178;/** Approved = A */ +public static final String BUDGETSTATUS_Approved = "A";/** Draft = D */ public static final String BUDGETSTATUS_Draft = "D"; -/** Set Budget Status. -@param BudgetStatus Indicates the current status of this budget */ -public void setBudgetStatus (String BudgetStatus) -{ -if (BudgetStatus == null || BudgetStatus.equals("A") || BudgetStatus.equals("D")); - else throw new IllegalArgumentException ("BudgetStatus Invalid value - " + BudgetStatus + " - Reference_ID=178 - A - D"); -if (BudgetStatus != null && BudgetStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BudgetStatus = BudgetStatus.substring(0,0); -} -set_Value ("BudgetStatus", BudgetStatus); -} -/** Get Budget Status. -@return Indicates the current status of this budget */ -public String getBudgetStatus() -{ -return (String)get_Value("BudgetStatus"); -} -/** Column name BudgetStatus */ -public static final String COLUMNNAME_BudgetStatus = "BudgetStatus"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID < 1) throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); -set_ValueNoCheck ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set Primary. -@param IsPrimary Indicates if this is the primary budget */ -public void setIsPrimary (boolean IsPrimary) -{ -set_Value ("IsPrimary", Boolean.valueOf(IsPrimary)); -} -/** Get Primary. -@return Indicates if this is the primary budget */ -public boolean isPrimary() -{ -Object oo = get_Value("IsPrimary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrimary */ -public static final String COLUMNNAME_IsPrimary = "IsPrimary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Budget Status. + @param BudgetStatus + Indicates the current status of this budget + */ + public void setBudgetStatus (String BudgetStatus) + { +if (BudgetStatus == null || BudgetStatus.equals("A") || BudgetStatus.equals("D")); else throw new IllegalArgumentException ("BudgetStatus Invalid value - " + BudgetStatus + " - Reference_ID=178 - A - D"); if (BudgetStatus != null && BudgetStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + BudgetStatus = BudgetStatus.substring(0, 0); + } + set_Value (COLUMNNAME_BudgetStatus, BudgetStatus); + } + + /** Get Budget Status. + @return Indicates the current status of this budget + */ + public String getBudgetStatus () + { + return (String)get_Value(COLUMNNAME_BudgetStatus); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID < 1) + throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Primary. + @param IsPrimary + Indicates if this is the primary budget + */ + public void setIsPrimary (boolean IsPrimary) + { + set_Value (COLUMNNAME_IsPrimary, Boolean.valueOf(IsPrimary)); + } + + /** Get Primary. + @return Indicates if this is the primary budget + */ + public boolean isPrimary () + { + Object oo = get_Value(COLUMNNAME_IsPrimary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_BudgetControl.java b/base/src/org/compiere/model/X_GL_BudgetControl.java index 332bd2f591..0e21c48544 100644 --- a/base/src/org/compiere/model/X_GL_BudgetControl.java +++ b/base/src/org/compiere/model/X_GL_BudgetControl.java @@ -1,291 +1,332 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_BudgetControl - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_BudgetControl extends PO + +/** Generated Model for GL_BudgetControl + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_BudgetControl_ID id -@param trxName transaction -*/ -public X_GL_BudgetControl (Properties ctx, int GL_BudgetControl_ID, String trxName) -{ -super (ctx, GL_BudgetControl_ID, trxName); -/** if (GL_BudgetControl_ID == 0) -{ -setBudgetControlScope (null); -setC_AcctSchema_ID (0); -setCommitmentType (null); // C -setGL_BudgetControl_ID (0); -setGL_Budget_ID (0); -setIsBeforeApproval (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_BudgetControl (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_BudgetControl */ -public static final String Table_Name="GL_BudgetControl"; - -/** AD_Table_ID=822 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_BudgetControl[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_BudgetControl (Properties ctx, int GL_BudgetControl_ID, String trxName) + { + super (ctx, GL_BudgetControl_ID, trxName); + /** if (GL_BudgetControl_ID == 0) { setBudgetControlScope (null); + setC_AcctSchema_ID (0); + setCommitmentType (null); +// C + setGL_BudgetControl_ID (0); + setGL_Budget_ID (0); + setIsBeforeApproval (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_GL_BudgetControl (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_BudgetControl[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** BudgetControlScope AD_Reference_ID=361 */ -public static final int BUDGETCONTROLSCOPE_AD_Reference_ID=361; -/** Period only = P */ -public static final String BUDGETCONTROLSCOPE_PeriodOnly = "P"; -/** Total = T */ -public static final String BUDGETCONTROLSCOPE_Total = "T"; -/** Year To Date = Y */ +public static final int BUDGETCONTROLSCOPE_AD_Reference_ID=361;/** Period only = P */ +public static final String BUDGETCONTROLSCOPE_PeriodOnly = "P";/** Total = T */ +public static final String BUDGETCONTROLSCOPE_Total = "T";/** Year To Date = Y */ public static final String BUDGETCONTROLSCOPE_YearToDate = "Y"; -/** Set Control Scope. -@param BudgetControlScope Scope of the Budget Control */ -public void setBudgetControlScope (String BudgetControlScope) -{ -if (BudgetControlScope == null) throw new IllegalArgumentException ("BudgetControlScope is mandatory"); -if (BudgetControlScope.equals("P") || BudgetControlScope.equals("T") || BudgetControlScope.equals("Y")); - else throw new IllegalArgumentException ("BudgetControlScope Invalid value - " + BudgetControlScope + " - Reference_ID=361 - P - T - Y"); -if (BudgetControlScope.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BudgetControlScope = BudgetControlScope.substring(0,0); -} -set_Value ("BudgetControlScope", BudgetControlScope); -} -/** Get Control Scope. -@return Scope of the Budget Control */ -public String getBudgetControlScope() -{ -return (String)get_Value("BudgetControlScope"); -} -/** Column name BudgetControlScope */ -public static final String COLUMNNAME_BudgetControlScope = "BudgetControlScope"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + /** Set Control Scope. + @param BudgetControlScope + Scope of the Budget Control + */ + public void setBudgetControlScope (String BudgetControlScope) + { +if (BudgetControlScope == null) throw new IllegalArgumentException ("BudgetControlScope is mandatory");if (BudgetControlScope.equals("P") || BudgetControlScope.equals("T") || BudgetControlScope.equals("Y")); else throw new IllegalArgumentException ("BudgetControlScope Invalid value - " + BudgetControlScope + " - Reference_ID=361 - P - T - Y"); if (BudgetControlScope.length() > 1) + { + log.warning("Length > 1 - truncated"); + BudgetControlScope = BudgetControlScope.substring(0, 0); + } + set_Value (COLUMNNAME_BudgetControlScope, BudgetControlScope); + } + + /** Get Control Scope. + @return Scope of the Budget Control + */ + public String getBudgetControlScope () + { + return (String)get_Value(COLUMNNAME_BudgetControlScope); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CommitmentType AD_Reference_ID=359 */ -public static final int COMMITMENTTYPE_AD_Reference_ID=359; -/** Commitment & Reservation = B */ -public static final String COMMITMENTTYPE_CommitmentReservation = "B"; -/** Commitment only = C */ -public static final String COMMITMENTTYPE_CommitmentOnly = "C"; -/** None = N */ +public static final int COMMITMENTTYPE_AD_Reference_ID=359;/** Commitment & Reservation = B */ +public static final String COMMITMENTTYPE_CommitmentReservation = "B";/** Commitment only = C */ +public static final String COMMITMENTTYPE_CommitmentOnly = "C";/** None = N */ public static final String COMMITMENTTYPE_None = "N"; -/** Set Commitment Type. -@param CommitmentType Create Commitment and/or Reservations for Budget Control */ -public void setCommitmentType (String CommitmentType) -{ -if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory"); -if (CommitmentType.equals("B") || CommitmentType.equals("C") || CommitmentType.equals("N")); - else throw new IllegalArgumentException ("CommitmentType Invalid value - " + CommitmentType + " - Reference_ID=359 - B - C - N"); -if (CommitmentType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CommitmentType = CommitmentType.substring(0,0); -} -set_Value ("CommitmentType", CommitmentType); -} -/** Get Commitment Type. -@return Create Commitment and/or Reservations for Budget Control */ -public String getCommitmentType() -{ -return (String)get_Value("CommitmentType"); -} -/** Column name CommitmentType */ -public static final String COLUMNNAME_CommitmentType = "CommitmentType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Budget Control. -@param GL_BudgetControl_ID Budget Control */ -public void setGL_BudgetControl_ID (int GL_BudgetControl_ID) -{ -if (GL_BudgetControl_ID < 1) throw new IllegalArgumentException ("GL_BudgetControl_ID is mandatory."); -set_ValueNoCheck ("GL_BudgetControl_ID", Integer.valueOf(GL_BudgetControl_ID)); -} -/** Get Budget Control. -@return Budget Control */ -public int getGL_BudgetControl_ID() -{ -Integer ii = (Integer)get_Value("GL_BudgetControl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_BudgetControl_ID */ -public static final String COLUMNNAME_GL_BudgetControl_ID = "GL_BudgetControl_ID"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID < 1) throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); -set_Value ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Before Approval. -@param IsBeforeApproval The Check is before the (manual) approval */ -public void setIsBeforeApproval (boolean IsBeforeApproval) -{ -set_Value ("IsBeforeApproval", Boolean.valueOf(IsBeforeApproval)); -} -/** Get Before Approval. -@return The Check is before the (manual) approval */ -public boolean isBeforeApproval() -{ -Object oo = get_Value("IsBeforeApproval"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBeforeApproval */ -public static final String COLUMNNAME_IsBeforeApproval = "IsBeforeApproval"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Commitment Type. + @param CommitmentType + Create Commitment and/or Reservations for Budget Control + */ + public void setCommitmentType (String CommitmentType) + { +if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory");if (CommitmentType.equals("B") || CommitmentType.equals("C") || CommitmentType.equals("N")); else throw new IllegalArgumentException ("CommitmentType Invalid value - " + CommitmentType + " - Reference_ID=359 - B - C - N"); if (CommitmentType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CommitmentType = CommitmentType.substring(0, 0); + } + set_Value (COLUMNNAME_CommitmentType, CommitmentType); + } + + /** Get Commitment Type. + @return Create Commitment and/or Reservations for Budget Control + */ + public String getCommitmentType () + { + return (String)get_Value(COLUMNNAME_CommitmentType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Budget Control. + @param GL_BudgetControl_ID + Budget Control + */ + public void setGL_BudgetControl_ID (int GL_BudgetControl_ID) + { + if (GL_BudgetControl_ID < 1) + throw new IllegalArgumentException ("GL_BudgetControl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_BudgetControl_ID, Integer.valueOf(GL_BudgetControl_ID)); + } + + /** Get Budget Control. + @return Budget Control + */ + public int getGL_BudgetControl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_BudgetControl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID < 1) + throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Before Approval. + @param IsBeforeApproval + The Check is before the (manual) approval + */ + public void setIsBeforeApproval (boolean IsBeforeApproval) + { + set_Value (COLUMNNAME_IsBeforeApproval, Boolean.valueOf(IsBeforeApproval)); + } + + /** Get Before Approval. + @return The Check is before the (manual) approval + */ + public boolean isBeforeApproval () + { + Object oo = get_Value(COLUMNNAME_IsBeforeApproval); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_Category.java b/base/src/org/compiere/model/X_GL_Category.java index 45fd85db0e..f6e114a1df 100644 --- a/base/src/org/compiere/model/X_GL_Category.java +++ b/base/src/org/compiere/model/X_GL_Category.java @@ -1,206 +1,252 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_Category - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_Category extends PO + +/** Generated Model for GL_Category + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_Category extends PO implements I_GL_Category, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_Category_ID id -@param trxName transaction -*/ -public X_GL_Category (Properties ctx, int GL_Category_ID, String trxName) -{ -super (ctx, GL_Category_ID, trxName); -/** if (GL_Category_ID == 0) -{ -setCategoryType (null); // M -setGL_Category_ID (0); -setIsDefault (false); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_Category (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_Category */ -public static final String Table_Name="GL_Category"; - -/** AD_Table_ID=218 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_Category[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_Category (Properties ctx, int GL_Category_ID, String trxName) + { + super (ctx, GL_Category_ID, trxName); + /** if (GL_Category_ID == 0) { setCategoryType (null); +// M + setGL_Category_ID (0); + setIsDefault (false); + setName (null); +} */ + } + + /** Load Constructor */ + public X_GL_Category (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_Category[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** CategoryType AD_Reference_ID=207 */ -public static final int CATEGORYTYPE_AD_Reference_ID=207; -/** Document = D */ -public static final String CATEGORYTYPE_Document = "D"; -/** Import = I */ -public static final String CATEGORYTYPE_Import = "I"; -/** Manual = M */ -public static final String CATEGORYTYPE_Manual = "M"; -/** System generated = S */ +public static final int CATEGORYTYPE_AD_Reference_ID=207;/** Document = D */ +public static final String CATEGORYTYPE_Document = "D";/** Import = I */ +public static final String CATEGORYTYPE_Import = "I";/** Manual = M */ +public static final String CATEGORYTYPE_Manual = "M";/** System generated = S */ public static final String CATEGORYTYPE_SystemGenerated = "S"; -/** Set Category Type. -@param CategoryType Source of the Journal with this category */ -public void setCategoryType (String CategoryType) -{ -if (CategoryType == null) throw new IllegalArgumentException ("CategoryType is mandatory"); -if (CategoryType.equals("D") || CategoryType.equals("I") || CategoryType.equals("M") || CategoryType.equals("S")); - else throw new IllegalArgumentException ("CategoryType Invalid value - " + CategoryType + " - Reference_ID=207 - D - I - M - S"); -if (CategoryType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CategoryType = CategoryType.substring(0,0); -} -set_Value ("CategoryType", CategoryType); -} -/** Get Category Type. -@return Source of the Journal with this category */ -public String getCategoryType() -{ -return (String)get_Value("CategoryType"); -} -/** Column name CategoryType */ -public static final String COLUMNNAME_CategoryType = "CategoryType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set GL Category. -@param GL_Category_ID General Ledger Category */ -public void setGL_Category_ID (int GL_Category_ID) -{ -if (GL_Category_ID < 1) throw new IllegalArgumentException ("GL_Category_ID is mandatory."); -set_ValueNoCheck ("GL_Category_ID", Integer.valueOf(GL_Category_ID)); -} -/** Get GL Category. -@return General Ledger Category */ -public int getGL_Category_ID() -{ -Integer ii = (Integer)get_Value("GL_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Category_ID */ -public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Category Type. + @param CategoryType + Source of the Journal with this category + */ + public void setCategoryType (String CategoryType) + { +if (CategoryType == null) throw new IllegalArgumentException ("CategoryType is mandatory");if (CategoryType.equals("D") || CategoryType.equals("I") || CategoryType.equals("M") || CategoryType.equals("S")); else throw new IllegalArgumentException ("CategoryType Invalid value - " + CategoryType + " - Reference_ID=207 - D - I - M - S"); if (CategoryType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CategoryType = CategoryType.substring(0, 0); + } + set_Value (COLUMNNAME_CategoryType, CategoryType); + } + + /** Get Category Type. + @return Source of the Journal with this category + */ + public String getCategoryType () + { + return (String)get_Value(COLUMNNAME_CategoryType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + +/** DocBaseType AD_Reference_ID=183 */ +public static final int DOCBASETYPE_AD_Reference_ID=183;/** AP Credit Memo = APC */ +public static final String DOCBASETYPE_APCreditMemo = "APC";/** AP Invoice = API */ +public static final String DOCBASETYPE_APInvoice = "API";/** AP Payment = APP */ +public static final String DOCBASETYPE_APPayment = "APP";/** AR Credit Memo = ARC */ +public static final String DOCBASETYPE_ARCreditMemo = "ARC";/** AR Pro Forma Invoice = ARF */ +public static final String DOCBASETYPE_ARProFormaInvoice = "ARF";/** AR Invoice = ARI */ +public static final String DOCBASETYPE_ARInvoice = "ARI";/** AR Receipt = ARR */ +public static final String DOCBASETYPE_ARReceipt = "ARR";/** Payment Allocation = CMA */ +public static final String DOCBASETYPE_PaymentAllocation = "CMA";/** Bank Statement = CMB */ +public static final String DOCBASETYPE_BankStatement = "CMB";/** Cash Journal = CMC */ +public static final String DOCBASETYPE_CashJournal = "CMC";/** GL Document = GLD */ +public static final String DOCBASETYPE_GLDocument = "GLD";/** GL Journal = GLJ */ +public static final String DOCBASETYPE_GLJournal = "GLJ";/** Material Physical Inventory = MMI */ +public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI";/** Material Movement = MMM */ +public static final String DOCBASETYPE_MaterialMovement = "MMM";/** Material Production = MMP */ +public static final String DOCBASETYPE_MaterialProduction = "MMP";/** Material Receipt = MMR */ +public static final String DOCBASETYPE_MaterialReceipt = "MMR";/** Material Delivery = MMS */ +public static final String DOCBASETYPE_MaterialDelivery = "MMS";/** Match Invoice = MXI */ +public static final String DOCBASETYPE_MatchInvoice = "MXI";/** Match PO = MXP */ +public static final String DOCBASETYPE_MatchPO = "MXP";/** Project Issue = PJI */ +public static final String DOCBASETYPE_ProjectIssue = "PJI";/** Purchase Order = POO */ +public static final String DOCBASETYPE_PurchaseOrder = "POO";/** Purchase Requisition = POR */ +public static final String DOCBASETYPE_PurchaseRequisition = "POR";/** Sales Order = SOO */ +public static final String DOCBASETYPE_SalesOrder = "SOO"; + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { +if (DocBaseType == null || DocBaseType.equals("APC") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARC") || DocBaseType.equals("ARF") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("CMA") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("GLD") || DocBaseType.equals("GLJ") || DocBaseType.equals("MMI") || DocBaseType.equals("MMM") || DocBaseType.equals("MMP") || DocBaseType.equals("MMR") || DocBaseType.equals("MMS") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("SOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - APC - API - APP - ARC - ARF - ARI - ARR - CMA - CMB - CMC - GLD - GLJ - MMI - MMM - MMP - MMR - MMS - MXI - MXP - PJI - POO - POR - SOO"); if (DocBaseType != null && DocBaseType.length() > 3) + { + log.warning("Length > 3 - truncated"); + DocBaseType = DocBaseType.substring(0, 2); + } + set_Value (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + throw new IllegalArgumentException ("GL_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_Distribution.java b/base/src/org/compiere/model/X_GL_Distribution.java index 0e4e869a58..bd3ec280fd 100644 --- a/base/src/org/compiere/model/X_GL_Distribution.java +++ b/base/src/org/compiere/model/X_GL_Distribution.java @@ -1,827 +1,1034 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_Distribution - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_Distribution extends PO + +/** Generated Model for GL_Distribution + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_Distribution extends PO implements I_GL_Distribution, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_Distribution_ID id -@param trxName transaction -*/ -public X_GL_Distribution (Properties ctx, int GL_Distribution_ID, String trxName) -{ -super (ctx, GL_Distribution_ID, trxName); -/** if (GL_Distribution_ID == 0) -{ -setAnyAcct (true); // Y -setAnyActivity (true); // Y -setAnyBPartner (true); // Y -setAnyCampaign (true); // Y -setAnyLocFrom (true); // Y -setAnyLocTo (true); // Y -setAnyOrg (true); // Y -setAnyOrgTrx (true); // Y -setAnyProduct (true); // Y -setAnyProject (true); // Y -setAnySalesRegion (true); // Y -setAnyUser1 (true); // Y -setAnyUser2 (true); // Y -setC_AcctSchema_ID (0); -setGL_Distribution_ID (0); -setIsValid (false); // N -setName (null); -setPercentTotal (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_Distribution (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_Distribution */ -public static final String Table_Name="GL_Distribution"; - -/** AD_Table_ID=708 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_Distribution[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_Distribution (Properties ctx, int GL_Distribution_ID, String trxName) + { + super (ctx, GL_Distribution_ID, trxName); + /** if (GL_Distribution_ID == 0) { setAnyAcct (true); +// Y + setAnyActivity (true); +// Y + setAnyBPartner (true); +// Y + setAnyCampaign (true); +// Y + setAnyLocFrom (true); +// Y + setAnyLocTo (true); +// Y + setAnyOrg (true); +// Y + setAnyOrgTrx (true); +// Y + setAnyProduct (true); +// Y + setAnyProject (true); +// Y + setAnySalesRegion (true); +// Y + setAnyUser1 (true); +// Y + setAnyUser2 (true); +// Y + setC_AcctSchema_ID (0); + setGL_Distribution_ID (0); + setIsValid (false); +// N + setName (null); + setPercentTotal (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_GL_Distribution (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_Distribution[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Account_ID AD_Reference_ID=132 */ public static final int ACCOUNT_ID_AD_Reference_ID=132; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID <= 0) set_Value ("Account_ID", null); - else -set_Value ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Any Account. -@param AnyAcct Match any value of the Account segment */ -public void setAnyAcct (boolean AnyAcct) -{ -set_Value ("AnyAcct", Boolean.valueOf(AnyAcct)); -} -/** Get Any Account. -@return Match any value of the Account segment */ -public boolean isAnyAcct() -{ -Object oo = get_Value("AnyAcct"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyAcct */ -public static final String COLUMNNAME_AnyAcct = "AnyAcct"; -/** Set Any Activity. -@param AnyActivity Match any value of the Activity segment */ -public void setAnyActivity (boolean AnyActivity) -{ -set_Value ("AnyActivity", Boolean.valueOf(AnyActivity)); -} -/** Get Any Activity. -@return Match any value of the Activity segment */ -public boolean isAnyActivity() -{ -Object oo = get_Value("AnyActivity"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyActivity */ -public static final String COLUMNNAME_AnyActivity = "AnyActivity"; -/** Set Any Bus.Partner. -@param AnyBPartner Match any value of the Business Partner segment */ -public void setAnyBPartner (boolean AnyBPartner) -{ -set_Value ("AnyBPartner", Boolean.valueOf(AnyBPartner)); -} -/** Get Any Bus.Partner. -@return Match any value of the Business Partner segment */ -public boolean isAnyBPartner() -{ -Object oo = get_Value("AnyBPartner"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyBPartner */ -public static final String COLUMNNAME_AnyBPartner = "AnyBPartner"; -/** Set Any Campaign. -@param AnyCampaign Match any value of the Campaign segment */ -public void setAnyCampaign (boolean AnyCampaign) -{ -set_Value ("AnyCampaign", Boolean.valueOf(AnyCampaign)); -} -/** Get Any Campaign. -@return Match any value of the Campaign segment */ -public boolean isAnyCampaign() -{ -Object oo = get_Value("AnyCampaign"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyCampaign */ -public static final String COLUMNNAME_AnyCampaign = "AnyCampaign"; -/** Set Any Location From. -@param AnyLocFrom Match any value of the Location From segment */ -public void setAnyLocFrom (boolean AnyLocFrom) -{ -set_Value ("AnyLocFrom", Boolean.valueOf(AnyLocFrom)); -} -/** Get Any Location From. -@return Match any value of the Location From segment */ -public boolean isAnyLocFrom() -{ -Object oo = get_Value("AnyLocFrom"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyLocFrom */ -public static final String COLUMNNAME_AnyLocFrom = "AnyLocFrom"; -/** Set Any Location To. -@param AnyLocTo Match any value of the Location To segment */ -public void setAnyLocTo (boolean AnyLocTo) -{ -set_Value ("AnyLocTo", Boolean.valueOf(AnyLocTo)); -} -/** Get Any Location To. -@return Match any value of the Location To segment */ -public boolean isAnyLocTo() -{ -Object oo = get_Value("AnyLocTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyLocTo */ -public static final String COLUMNNAME_AnyLocTo = "AnyLocTo"; -/** Set Any Organization. -@param AnyOrg Match any value of the Organization segment */ -public void setAnyOrg (boolean AnyOrg) -{ -set_Value ("AnyOrg", Boolean.valueOf(AnyOrg)); -} -/** Get Any Organization. -@return Match any value of the Organization segment */ -public boolean isAnyOrg() -{ -Object oo = get_Value("AnyOrg"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyOrg */ -public static final String COLUMNNAME_AnyOrg = "AnyOrg"; -/** Set Any Trx Organization. -@param AnyOrgTrx Match any value of the Transaction Organization segment */ -public void setAnyOrgTrx (boolean AnyOrgTrx) -{ -set_Value ("AnyOrgTrx", Boolean.valueOf(AnyOrgTrx)); -} -/** Get Any Trx Organization. -@return Match any value of the Transaction Organization segment */ -public boolean isAnyOrgTrx() -{ -Object oo = get_Value("AnyOrgTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyOrgTrx */ -public static final String COLUMNNAME_AnyOrgTrx = "AnyOrgTrx"; -/** Set Any Product. -@param AnyProduct Match any value of the Product segment */ -public void setAnyProduct (boolean AnyProduct) -{ -set_Value ("AnyProduct", Boolean.valueOf(AnyProduct)); -} -/** Get Any Product. -@return Match any value of the Product segment */ -public boolean isAnyProduct() -{ -Object oo = get_Value("AnyProduct"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyProduct */ -public static final String COLUMNNAME_AnyProduct = "AnyProduct"; -/** Set Any Project. -@param AnyProject Match any value of the Project segment */ -public void setAnyProject (boolean AnyProject) -{ -set_Value ("AnyProject", Boolean.valueOf(AnyProject)); -} -/** Get Any Project. -@return Match any value of the Project segment */ -public boolean isAnyProject() -{ -Object oo = get_Value("AnyProject"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyProject */ -public static final String COLUMNNAME_AnyProject = "AnyProject"; -/** Set Any Sales Region. -@param AnySalesRegion Match any value of the Sales Region segment */ -public void setAnySalesRegion (boolean AnySalesRegion) -{ -set_Value ("AnySalesRegion", Boolean.valueOf(AnySalesRegion)); -} -/** Get Any Sales Region. -@return Match any value of the Sales Region segment */ -public boolean isAnySalesRegion() -{ -Object oo = get_Value("AnySalesRegion"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnySalesRegion */ -public static final String COLUMNNAME_AnySalesRegion = "AnySalesRegion"; -/** Set Any User 1. -@param AnyUser1 Match any value of the User 1 segment */ -public void setAnyUser1 (boolean AnyUser1) -{ -set_Value ("AnyUser1", Boolean.valueOf(AnyUser1)); -} -/** Get Any User 1. -@return Match any value of the User 1 segment */ -public boolean isAnyUser1() -{ -Object oo = get_Value("AnyUser1"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyUser1 */ -public static final String COLUMNNAME_AnyUser1 = "AnyUser1"; -/** Set Any User 2. -@param AnyUser2 Match any value of the User 2 segment */ -public void setAnyUser2 (boolean AnyUser2) -{ -set_Value ("AnyUser2", Boolean.valueOf(AnyUser2)); -} -/** Get Any User 2. -@return Match any value of the User 2 segment */ -public boolean isAnyUser2() -{ -Object oo = get_Value("AnyUser2"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AnyUser2 */ -public static final String COLUMNNAME_AnyUser2 = "AnyUser2"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID <= 0) set_Value (COLUMNNAME_Account_ID, null); + else + set_Value (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Any Account. + @param AnyAcct + Match any value of the Account segment + */ + public void setAnyAcct (boolean AnyAcct) + { + set_Value (COLUMNNAME_AnyAcct, Boolean.valueOf(AnyAcct)); + } + + /** Get Any Account. + @return Match any value of the Account segment + */ + public boolean isAnyAcct () + { + Object oo = get_Value(COLUMNNAME_AnyAcct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Activity. + @param AnyActivity + Match any value of the Activity segment + */ + public void setAnyActivity (boolean AnyActivity) + { + set_Value (COLUMNNAME_AnyActivity, Boolean.valueOf(AnyActivity)); + } + + /** Get Any Activity. + @return Match any value of the Activity segment + */ + public boolean isAnyActivity () + { + Object oo = get_Value(COLUMNNAME_AnyActivity); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Bus.Partner. + @param AnyBPartner + Match any value of the Business Partner segment + */ + public void setAnyBPartner (boolean AnyBPartner) + { + set_Value (COLUMNNAME_AnyBPartner, Boolean.valueOf(AnyBPartner)); + } + + /** Get Any Bus.Partner. + @return Match any value of the Business Partner segment + */ + public boolean isAnyBPartner () + { + Object oo = get_Value(COLUMNNAME_AnyBPartner); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Campaign. + @param AnyCampaign + Match any value of the Campaign segment + */ + public void setAnyCampaign (boolean AnyCampaign) + { + set_Value (COLUMNNAME_AnyCampaign, Boolean.valueOf(AnyCampaign)); + } + + /** Get Any Campaign. + @return Match any value of the Campaign segment + */ + public boolean isAnyCampaign () + { + Object oo = get_Value(COLUMNNAME_AnyCampaign); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Location From. + @param AnyLocFrom + Match any value of the Location From segment + */ + public void setAnyLocFrom (boolean AnyLocFrom) + { + set_Value (COLUMNNAME_AnyLocFrom, Boolean.valueOf(AnyLocFrom)); + } + + /** Get Any Location From. + @return Match any value of the Location From segment + */ + public boolean isAnyLocFrom () + { + Object oo = get_Value(COLUMNNAME_AnyLocFrom); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Location To. + @param AnyLocTo + Match any value of the Location To segment + */ + public void setAnyLocTo (boolean AnyLocTo) + { + set_Value (COLUMNNAME_AnyLocTo, Boolean.valueOf(AnyLocTo)); + } + + /** Get Any Location To. + @return Match any value of the Location To segment + */ + public boolean isAnyLocTo () + { + Object oo = get_Value(COLUMNNAME_AnyLocTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Organization. + @param AnyOrg + Match any value of the Organization segment + */ + public void setAnyOrg (boolean AnyOrg) + { + set_Value (COLUMNNAME_AnyOrg, Boolean.valueOf(AnyOrg)); + } + + /** Get Any Organization. + @return Match any value of the Organization segment + */ + public boolean isAnyOrg () + { + Object oo = get_Value(COLUMNNAME_AnyOrg); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Trx Organization. + @param AnyOrgTrx + Match any value of the Transaction Organization segment + */ + public void setAnyOrgTrx (boolean AnyOrgTrx) + { + set_Value (COLUMNNAME_AnyOrgTrx, Boolean.valueOf(AnyOrgTrx)); + } + + /** Get Any Trx Organization. + @return Match any value of the Transaction Organization segment + */ + public boolean isAnyOrgTrx () + { + Object oo = get_Value(COLUMNNAME_AnyOrgTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Product. + @param AnyProduct + Match any value of the Product segment + */ + public void setAnyProduct (boolean AnyProduct) + { + set_Value (COLUMNNAME_AnyProduct, Boolean.valueOf(AnyProduct)); + } + + /** Get Any Product. + @return Match any value of the Product segment + */ + public boolean isAnyProduct () + { + Object oo = get_Value(COLUMNNAME_AnyProduct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Project. + @param AnyProject + Match any value of the Project segment + */ + public void setAnyProject (boolean AnyProject) + { + set_Value (COLUMNNAME_AnyProject, Boolean.valueOf(AnyProject)); + } + + /** Get Any Project. + @return Match any value of the Project segment + */ + public boolean isAnyProject () + { + Object oo = get_Value(COLUMNNAME_AnyProject); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any Sales Region. + @param AnySalesRegion + Match any value of the Sales Region segment + */ + public void setAnySalesRegion (boolean AnySalesRegion) + { + set_Value (COLUMNNAME_AnySalesRegion, Boolean.valueOf(AnySalesRegion)); + } + + /** Get Any Sales Region. + @return Match any value of the Sales Region segment + */ + public boolean isAnySalesRegion () + { + Object oo = get_Value(COLUMNNAME_AnySalesRegion); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any User 1. + @param AnyUser1 + Match any value of the User 1 segment + */ + public void setAnyUser1 (boolean AnyUser1) + { + set_Value (COLUMNNAME_AnyUser1, Boolean.valueOf(AnyUser1)); + } + + /** Get Any User 1. + @return Match any value of the User 1 segment + */ + public boolean isAnyUser1 () + { + Object oo = get_Value(COLUMNNAME_AnyUser1); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Any User 2. + @param AnyUser2 + Match any value of the User 2 segment + */ + public void setAnyUser2 (boolean AnyUser2) + { + set_Value (COLUMNNAME_AnyUser2, Boolean.valueOf(AnyUser2)); + } + + /** Get Any User 2. + @return Match any value of the User 2 segment + */ + public boolean isAnyUser2 () + { + Object oo = get_Value(COLUMNNAME_AnyUser2); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocFrom_ID AD_Reference_ID=133 */ public static final int C_LOCFROM_ID_AD_Reference_ID=133; -/** Set Location From. -@param C_LocFrom_ID Location that inventory was moved from */ -public void setC_LocFrom_ID (int C_LocFrom_ID) -{ -if (C_LocFrom_ID <= 0) set_Value ("C_LocFrom_ID", null); - else -set_Value ("C_LocFrom_ID", Integer.valueOf(C_LocFrom_ID)); -} -/** Get Location From. -@return Location that inventory was moved from */ -public int getC_LocFrom_ID() -{ -Integer ii = (Integer)get_Value("C_LocFrom_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocFrom_ID */ -public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + /** Set Location From. + @param C_LocFrom_ID + Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID) + { + if (C_LocFrom_ID <= 0) set_Value (COLUMNNAME_C_LocFrom_ID, null); + else + set_Value (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); + } + + /** Get Location From. + @return Location that inventory was moved from + */ + public int getC_LocFrom_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocTo_ID AD_Reference_ID=133 */ public static final int C_LOCTO_ID_AD_Reference_ID=133; -/** Set Location To. -@param C_LocTo_ID Location that inventory was moved to */ -public void setC_LocTo_ID (int C_LocTo_ID) -{ -if (C_LocTo_ID <= 0) set_Value ("C_LocTo_ID", null); - else -set_Value ("C_LocTo_ID", Integer.valueOf(C_LocTo_ID)); -} -/** Get Location To. -@return Location that inventory was moved to */ -public int getC_LocTo_ID() -{ -Integer ii = (Integer)get_Value("C_LocTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocTo_ID */ -public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set GL Distribution. -@param GL_Distribution_ID General Ledger Distribution */ -public void setGL_Distribution_ID (int GL_Distribution_ID) -{ -if (GL_Distribution_ID < 1) throw new IllegalArgumentException ("GL_Distribution_ID is mandatory."); -set_ValueNoCheck ("GL_Distribution_ID", Integer.valueOf(GL_Distribution_ID)); -} -/** Get GL Distribution. -@return General Ledger Distribution */ -public int getGL_Distribution_ID() -{ -Integer ii = (Integer)get_Value("GL_Distribution_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Distribution_ID */ -public static final String COLUMNNAME_GL_Distribution_ID = "GL_Distribution_ID"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Valid. -@param IsValid Element is valid */ -public void setIsValid (boolean IsValid) -{ -set_Value ("IsValid", Boolean.valueOf(IsValid)); -} -/** Get Valid. -@return Element is valid */ -public boolean isValid() -{ -Object oo = get_Value("IsValid"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsValid */ -public static final String COLUMNNAME_IsValid = "IsValid"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Location To. + @param C_LocTo_ID + Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID) + { + if (C_LocTo_ID <= 0) set_Value (COLUMNNAME_C_LocTo_ID, null); + else + set_Value (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); + } + + /** Get Location To. + @return Location that inventory was moved to + */ + public int getC_LocTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set GL Distribution. + @param GL_Distribution_ID + General Ledger Distribution + */ + public void setGL_Distribution_ID (int GL_Distribution_ID) + { + if (GL_Distribution_ID < 1) + throw new IllegalArgumentException ("GL_Distribution_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, Integer.valueOf(GL_Distribution_ID)); + } + + /** Get GL Distribution. + @return General Ledger Distribution + */ + public int getGL_Distribution_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Distribution_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Org_ID AD_Reference_ID=130 */ public static final int ORG_ID_AD_Reference_ID=130; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID <= 0) set_Value ("Org_ID", null); - else -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Total Percent. -@param PercentTotal Sum of the Percent details */ -public void setPercentTotal (BigDecimal PercentTotal) -{ -if (PercentTotal == null) throw new IllegalArgumentException ("PercentTotal is mandatory."); -set_Value ("PercentTotal", PercentTotal); -} -/** Get Total Percent. -@return Sum of the Percent details */ -public BigDecimal getPercentTotal() -{ -BigDecimal bd = (BigDecimal)get_Value("PercentTotal"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PercentTotal */ -public static final String COLUMNNAME_PercentTotal = "PercentTotal"; + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID <= 0) set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Total Percent. + @param PercentTotal + Sum of the Percent details + */ + public void setPercentTotal (BigDecimal PercentTotal) + { + if (PercentTotal == null) + throw new IllegalArgumentException ("PercentTotal is mandatory."); + set_Value (COLUMNNAME_PercentTotal, PercentTotal); + } + + /** Get Total Percent. + @return Sum of the Percent details + */ + public BigDecimal getPercentTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PercentTotal); + if (bd == null) + return Env.ZERO; + return bd; + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType != null && PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType != null && PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_DistributionLine.java b/base/src/org/compiere/model/X_GL_DistributionLine.java index 73aab5951b..58410056bd 100644 --- a/base/src/org/compiere/model/X_GL_DistributionLine.java +++ b/base/src/org/compiere/model/X_GL_DistributionLine.java @@ -1,711 +1,898 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_DistributionLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_DistributionLine extends PO + +/** Generated Model for GL_DistributionLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_DistributionLine extends PO implements I_GL_DistributionLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_DistributionLine_ID id -@param trxName transaction -*/ -public X_GL_DistributionLine (Properties ctx, int GL_DistributionLine_ID, String trxName) -{ -super (ctx, GL_DistributionLine_ID, trxName); -/** if (GL_DistributionLine_ID == 0) -{ -setGL_DistributionLine_ID (0); -setGL_Distribution_ID (0); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM GL_DistributionLine WHERE GL_Distribution_ID=@GL_Distribution_ID@ -setOverwriteAcct (false); -setOverwriteActivity (false); -setOverwriteBPartner (false); -setOverwriteCampaign (false); -setOverwriteLocFrom (false); -setOverwriteLocTo (false); -setOverwriteOrg (false); -setOverwriteOrgTrx (false); -setOverwriteProduct (false); -setOverwriteProject (false); -setOverwriteSalesRegion (false); -setOverwriteUser1 (false); -setOverwriteUser2 (false); -setPercent (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_DistributionLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_DistributionLine */ -public static final String Table_Name="GL_DistributionLine"; - -/** AD_Table_ID=707 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_DistributionLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_DistributionLine (Properties ctx, int GL_DistributionLine_ID, String trxName) + { + super (ctx, GL_DistributionLine_ID, trxName); + /** if (GL_DistributionLine_ID == 0) { setGL_DistributionLine_ID (0); + setGL_Distribution_ID (0); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM GL_DistributionLine WHERE GL_Distribution_ID=@GL_Distribution_ID@ + setOverwriteAcct (false); + setOverwriteActivity (false); + setOverwriteBPartner (false); + setOverwriteCampaign (false); + setOverwriteLocFrom (false); + setOverwriteLocTo (false); + setOverwriteOrg (false); + setOverwriteOrgTrx (false); + setOverwriteProduct (false); + setOverwriteProject (false); + setOverwriteSalesRegion (false); + setOverwriteUser1 (false); + setOverwriteUser2 (false); + setPercent (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_GL_DistributionLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_DistributionLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Account_ID AD_Reference_ID=132 */ public static final int ACCOUNT_ID_AD_Reference_ID=132; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID <= 0) set_Value ("Account_ID", null); - else -set_Value ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID <= 0) set_Value (COLUMNNAME_Account_ID, null); + else + set_Value (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocFrom_ID AD_Reference_ID=133 */ public static final int C_LOCFROM_ID_AD_Reference_ID=133; -/** Set Location From. -@param C_LocFrom_ID Location that inventory was moved from */ -public void setC_LocFrom_ID (int C_LocFrom_ID) -{ -if (C_LocFrom_ID <= 0) set_Value ("C_LocFrom_ID", null); - else -set_Value ("C_LocFrom_ID", Integer.valueOf(C_LocFrom_ID)); -} -/** Get Location From. -@return Location that inventory was moved from */ -public int getC_LocFrom_ID() -{ -Integer ii = (Integer)get_Value("C_LocFrom_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocFrom_ID */ -public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + /** Set Location From. + @param C_LocFrom_ID + Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID) + { + if (C_LocFrom_ID <= 0) set_Value (COLUMNNAME_C_LocFrom_ID, null); + else + set_Value (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); + } + + /** Get Location From. + @return Location that inventory was moved from + */ + public int getC_LocFrom_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocTo_ID AD_Reference_ID=133 */ public static final int C_LOCTO_ID_AD_Reference_ID=133; -/** Set Location To. -@param C_LocTo_ID Location that inventory was moved to */ -public void setC_LocTo_ID (int C_LocTo_ID) -{ -if (C_LocTo_ID <= 0) set_Value ("C_LocTo_ID", null); - else -set_Value ("C_LocTo_ID", Integer.valueOf(C_LocTo_ID)); -} -/** Get Location To. -@return Location that inventory was moved to */ -public int getC_LocTo_ID() -{ -Integer ii = (Integer)get_Value("C_LocTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocTo_ID */ -public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set GL Distribution Line. -@param GL_DistributionLine_ID General Ledger Distribution Line */ -public void setGL_DistributionLine_ID (int GL_DistributionLine_ID) -{ -if (GL_DistributionLine_ID < 1) throw new IllegalArgumentException ("GL_DistributionLine_ID is mandatory."); -set_ValueNoCheck ("GL_DistributionLine_ID", Integer.valueOf(GL_DistributionLine_ID)); -} -/** Get GL Distribution Line. -@return General Ledger Distribution Line */ -public int getGL_DistributionLine_ID() -{ -Integer ii = (Integer)get_Value("GL_DistributionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_DistributionLine_ID */ -public static final String COLUMNNAME_GL_DistributionLine_ID = "GL_DistributionLine_ID"; -/** Set GL Distribution. -@param GL_Distribution_ID General Ledger Distribution */ -public void setGL_Distribution_ID (int GL_Distribution_ID) -{ -if (GL_Distribution_ID < 1) throw new IllegalArgumentException ("GL_Distribution_ID is mandatory."); -set_ValueNoCheck ("GL_Distribution_ID", Integer.valueOf(GL_Distribution_ID)); -} -/** Get GL Distribution. -@return General Ledger Distribution */ -public int getGL_Distribution_ID() -{ -Integer ii = (Integer)get_Value("GL_Distribution_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Distribution_ID */ -public static final String COLUMNNAME_GL_Distribution_ID = "GL_Distribution_ID"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + /** Set Location To. + @param C_LocTo_ID + Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID) + { + if (C_LocTo_ID <= 0) set_Value (COLUMNNAME_C_LocTo_ID, null); + else + set_Value (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); + } + + /** Get Location To. + @return Location that inventory was moved to + */ + public int getC_LocTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set GL Distribution Line. + @param GL_DistributionLine_ID + General Ledger Distribution Line + */ + public void setGL_DistributionLine_ID (int GL_DistributionLine_ID) + { + if (GL_DistributionLine_ID < 1) + throw new IllegalArgumentException ("GL_DistributionLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_DistributionLine_ID, Integer.valueOf(GL_DistributionLine_ID)); + } + + /** Get GL Distribution Line. + @return General Ledger Distribution Line + */ + public int getGL_DistributionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_DistributionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Distribution getI_GL_Distribution() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Distribution. + @param GL_Distribution_ID + General Ledger Distribution + */ + public void setGL_Distribution_ID (int GL_Distribution_ID) + { + if (GL_Distribution_ID < 1) + throw new IllegalArgumentException ("GL_Distribution_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Distribution_ID, Integer.valueOf(GL_Distribution_ID)); + } + + /** Get GL Distribution. + @return General Ledger Distribution + */ + public int getGL_Distribution_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Distribution_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Org_ID AD_Reference_ID=130 */ public static final int ORG_ID_AD_Reference_ID=130; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID <= 0) set_Value ("Org_ID", null); - else -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Overwrite Account. -@param OverwriteAcct Overwrite the account segment Account with the value specified */ -public void setOverwriteAcct (boolean OverwriteAcct) -{ -set_Value ("OverwriteAcct", Boolean.valueOf(OverwriteAcct)); -} -/** Get Overwrite Account. -@return Overwrite the account segment Account with the value specified */ -public boolean isOverwriteAcct() -{ -Object oo = get_Value("OverwriteAcct"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteAcct */ -public static final String COLUMNNAME_OverwriteAcct = "OverwriteAcct"; -/** Set Overwrite Activity. -@param OverwriteActivity Overwrite the account segment Activity with the value specified */ -public void setOverwriteActivity (boolean OverwriteActivity) -{ -set_Value ("OverwriteActivity", Boolean.valueOf(OverwriteActivity)); -} -/** Get Overwrite Activity. -@return Overwrite the account segment Activity with the value specified */ -public boolean isOverwriteActivity() -{ -Object oo = get_Value("OverwriteActivity"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteActivity */ -public static final String COLUMNNAME_OverwriteActivity = "OverwriteActivity"; -/** Set Overwrite Bus.Partner. -@param OverwriteBPartner Overwrite the account segment Business Partner with the value specified */ -public void setOverwriteBPartner (boolean OverwriteBPartner) -{ -set_Value ("OverwriteBPartner", Boolean.valueOf(OverwriteBPartner)); -} -/** Get Overwrite Bus.Partner. -@return Overwrite the account segment Business Partner with the value specified */ -public boolean isOverwriteBPartner() -{ -Object oo = get_Value("OverwriteBPartner"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteBPartner */ -public static final String COLUMNNAME_OverwriteBPartner = "OverwriteBPartner"; -/** Set Overwrite Campaign. -@param OverwriteCampaign Overwrite the account segment Campaign with the value specified */ -public void setOverwriteCampaign (boolean OverwriteCampaign) -{ -set_Value ("OverwriteCampaign", Boolean.valueOf(OverwriteCampaign)); -} -/** Get Overwrite Campaign. -@return Overwrite the account segment Campaign with the value specified */ -public boolean isOverwriteCampaign() -{ -Object oo = get_Value("OverwriteCampaign"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteCampaign */ -public static final String COLUMNNAME_OverwriteCampaign = "OverwriteCampaign"; -/** Set Overwrite Location From. -@param OverwriteLocFrom Overwrite the account segment Location From with the value specified */ -public void setOverwriteLocFrom (boolean OverwriteLocFrom) -{ -set_Value ("OverwriteLocFrom", Boolean.valueOf(OverwriteLocFrom)); -} -/** Get Overwrite Location From. -@return Overwrite the account segment Location From with the value specified */ -public boolean isOverwriteLocFrom() -{ -Object oo = get_Value("OverwriteLocFrom"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteLocFrom */ -public static final String COLUMNNAME_OverwriteLocFrom = "OverwriteLocFrom"; -/** Set Overwrite Location To. -@param OverwriteLocTo Overwrite the account segment Location From with the value specified */ -public void setOverwriteLocTo (boolean OverwriteLocTo) -{ -set_Value ("OverwriteLocTo", Boolean.valueOf(OverwriteLocTo)); -} -/** Get Overwrite Location To. -@return Overwrite the account segment Location From with the value specified */ -public boolean isOverwriteLocTo() -{ -Object oo = get_Value("OverwriteLocTo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteLocTo */ -public static final String COLUMNNAME_OverwriteLocTo = "OverwriteLocTo"; -/** Set Overwrite Organization. -@param OverwriteOrg Overwrite the account segment Organization with the value specified */ -public void setOverwriteOrg (boolean OverwriteOrg) -{ -set_Value ("OverwriteOrg", Boolean.valueOf(OverwriteOrg)); -} -/** Get Overwrite Organization. -@return Overwrite the account segment Organization with the value specified */ -public boolean isOverwriteOrg() -{ -Object oo = get_Value("OverwriteOrg"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteOrg */ -public static final String COLUMNNAME_OverwriteOrg = "OverwriteOrg"; -/** Set Overwrite Trx Organuzation. -@param OverwriteOrgTrx Overwrite the account segment Transaction Organization with the value specified */ -public void setOverwriteOrgTrx (boolean OverwriteOrgTrx) -{ -set_Value ("OverwriteOrgTrx", Boolean.valueOf(OverwriteOrgTrx)); -} -/** Get Overwrite Trx Organuzation. -@return Overwrite the account segment Transaction Organization with the value specified */ -public boolean isOverwriteOrgTrx() -{ -Object oo = get_Value("OverwriteOrgTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteOrgTrx */ -public static final String COLUMNNAME_OverwriteOrgTrx = "OverwriteOrgTrx"; -/** Set Overwrite Product. -@param OverwriteProduct Overwrite the account segment Product with the value specified */ -public void setOverwriteProduct (boolean OverwriteProduct) -{ -set_Value ("OverwriteProduct", Boolean.valueOf(OverwriteProduct)); -} -/** Get Overwrite Product. -@return Overwrite the account segment Product with the value specified */ -public boolean isOverwriteProduct() -{ -Object oo = get_Value("OverwriteProduct"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteProduct */ -public static final String COLUMNNAME_OverwriteProduct = "OverwriteProduct"; -/** Set Overwrite Project. -@param OverwriteProject Overwrite the account segment Project with the value specified */ -public void setOverwriteProject (boolean OverwriteProject) -{ -set_Value ("OverwriteProject", Boolean.valueOf(OverwriteProject)); -} -/** Get Overwrite Project. -@return Overwrite the account segment Project with the value specified */ -public boolean isOverwriteProject() -{ -Object oo = get_Value("OverwriteProject"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteProject */ -public static final String COLUMNNAME_OverwriteProject = "OverwriteProject"; -/** Set Overwrite Sales Region. -@param OverwriteSalesRegion Overwrite the account segment Sales Region with the value specified */ -public void setOverwriteSalesRegion (boolean OverwriteSalesRegion) -{ -set_Value ("OverwriteSalesRegion", Boolean.valueOf(OverwriteSalesRegion)); -} -/** Get Overwrite Sales Region. -@return Overwrite the account segment Sales Region with the value specified */ -public boolean isOverwriteSalesRegion() -{ -Object oo = get_Value("OverwriteSalesRegion"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteSalesRegion */ -public static final String COLUMNNAME_OverwriteSalesRegion = "OverwriteSalesRegion"; -/** Set Overwrite User1. -@param OverwriteUser1 Overwrite the account segment User 1 with the value specified */ -public void setOverwriteUser1 (boolean OverwriteUser1) -{ -set_Value ("OverwriteUser1", Boolean.valueOf(OverwriteUser1)); -} -/** Get Overwrite User1. -@return Overwrite the account segment User 1 with the value specified */ -public boolean isOverwriteUser1() -{ -Object oo = get_Value("OverwriteUser1"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteUser1 */ -public static final String COLUMNNAME_OverwriteUser1 = "OverwriteUser1"; -/** Set Overwrite User2. -@param OverwriteUser2 Overwrite the account segment User 2 with the value specified */ -public void setOverwriteUser2 (boolean OverwriteUser2) -{ -set_Value ("OverwriteUser2", Boolean.valueOf(OverwriteUser2)); -} -/** Get Overwrite User2. -@return Overwrite the account segment User 2 with the value specified */ -public boolean isOverwriteUser2() -{ -Object oo = get_Value("OverwriteUser2"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OverwriteUser2 */ -public static final String COLUMNNAME_OverwriteUser2 = "OverwriteUser2"; -/** Set Percent. -@param Percent Percentage */ -public void setPercent (BigDecimal Percent) -{ -if (Percent == null) throw new IllegalArgumentException ("Percent is mandatory."); -set_Value ("Percent", Percent); -} -/** Get Percent. -@return Percentage */ -public BigDecimal getPercent() -{ -BigDecimal bd = (BigDecimal)get_Value("Percent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Percent */ -public static final String COLUMNNAME_Percent = "Percent"; + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID <= 0) set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Overwrite Account. + @param OverwriteAcct + Overwrite the account segment Account with the value specified + */ + public void setOverwriteAcct (boolean OverwriteAcct) + { + set_Value (COLUMNNAME_OverwriteAcct, Boolean.valueOf(OverwriteAcct)); + } + + /** Get Overwrite Account. + @return Overwrite the account segment Account with the value specified + */ + public boolean isOverwriteAcct () + { + Object oo = get_Value(COLUMNNAME_OverwriteAcct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Activity. + @param OverwriteActivity + Overwrite the account segment Activity with the value specified + */ + public void setOverwriteActivity (boolean OverwriteActivity) + { + set_Value (COLUMNNAME_OverwriteActivity, Boolean.valueOf(OverwriteActivity)); + } + + /** Get Overwrite Activity. + @return Overwrite the account segment Activity with the value specified + */ + public boolean isOverwriteActivity () + { + Object oo = get_Value(COLUMNNAME_OverwriteActivity); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Bus.Partner. + @param OverwriteBPartner + Overwrite the account segment Business Partner with the value specified + */ + public void setOverwriteBPartner (boolean OverwriteBPartner) + { + set_Value (COLUMNNAME_OverwriteBPartner, Boolean.valueOf(OverwriteBPartner)); + } + + /** Get Overwrite Bus.Partner. + @return Overwrite the account segment Business Partner with the value specified + */ + public boolean isOverwriteBPartner () + { + Object oo = get_Value(COLUMNNAME_OverwriteBPartner); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Campaign. + @param OverwriteCampaign + Overwrite the account segment Campaign with the value specified + */ + public void setOverwriteCampaign (boolean OverwriteCampaign) + { + set_Value (COLUMNNAME_OverwriteCampaign, Boolean.valueOf(OverwriteCampaign)); + } + + /** Get Overwrite Campaign. + @return Overwrite the account segment Campaign with the value specified + */ + public boolean isOverwriteCampaign () + { + Object oo = get_Value(COLUMNNAME_OverwriteCampaign); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Location From. + @param OverwriteLocFrom + Overwrite the account segment Location From with the value specified + */ + public void setOverwriteLocFrom (boolean OverwriteLocFrom) + { + set_Value (COLUMNNAME_OverwriteLocFrom, Boolean.valueOf(OverwriteLocFrom)); + } + + /** Get Overwrite Location From. + @return Overwrite the account segment Location From with the value specified + */ + public boolean isOverwriteLocFrom () + { + Object oo = get_Value(COLUMNNAME_OverwriteLocFrom); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Location To. + @param OverwriteLocTo + Overwrite the account segment Location From with the value specified + */ + public void setOverwriteLocTo (boolean OverwriteLocTo) + { + set_Value (COLUMNNAME_OverwriteLocTo, Boolean.valueOf(OverwriteLocTo)); + } + + /** Get Overwrite Location To. + @return Overwrite the account segment Location From with the value specified + */ + public boolean isOverwriteLocTo () + { + Object oo = get_Value(COLUMNNAME_OverwriteLocTo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Organization. + @param OverwriteOrg + Overwrite the account segment Organization with the value specified + */ + public void setOverwriteOrg (boolean OverwriteOrg) + { + set_Value (COLUMNNAME_OverwriteOrg, Boolean.valueOf(OverwriteOrg)); + } + + /** Get Overwrite Organization. + @return Overwrite the account segment Organization with the value specified + */ + public boolean isOverwriteOrg () + { + Object oo = get_Value(COLUMNNAME_OverwriteOrg); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Trx Organuzation. + @param OverwriteOrgTrx + Overwrite the account segment Transaction Organization with the value specified + */ + public void setOverwriteOrgTrx (boolean OverwriteOrgTrx) + { + set_Value (COLUMNNAME_OverwriteOrgTrx, Boolean.valueOf(OverwriteOrgTrx)); + } + + /** Get Overwrite Trx Organuzation. + @return Overwrite the account segment Transaction Organization with the value specified + */ + public boolean isOverwriteOrgTrx () + { + Object oo = get_Value(COLUMNNAME_OverwriteOrgTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Product. + @param OverwriteProduct + Overwrite the account segment Product with the value specified + */ + public void setOverwriteProduct (boolean OverwriteProduct) + { + set_Value (COLUMNNAME_OverwriteProduct, Boolean.valueOf(OverwriteProduct)); + } + + /** Get Overwrite Product. + @return Overwrite the account segment Product with the value specified + */ + public boolean isOverwriteProduct () + { + Object oo = get_Value(COLUMNNAME_OverwriteProduct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Project. + @param OverwriteProject + Overwrite the account segment Project with the value specified + */ + public void setOverwriteProject (boolean OverwriteProject) + { + set_Value (COLUMNNAME_OverwriteProject, Boolean.valueOf(OverwriteProject)); + } + + /** Get Overwrite Project. + @return Overwrite the account segment Project with the value specified + */ + public boolean isOverwriteProject () + { + Object oo = get_Value(COLUMNNAME_OverwriteProject); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Sales Region. + @param OverwriteSalesRegion + Overwrite the account segment Sales Region with the value specified + */ + public void setOverwriteSalesRegion (boolean OverwriteSalesRegion) + { + set_Value (COLUMNNAME_OverwriteSalesRegion, Boolean.valueOf(OverwriteSalesRegion)); + } + + /** Get Overwrite Sales Region. + @return Overwrite the account segment Sales Region with the value specified + */ + public boolean isOverwriteSalesRegion () + { + Object oo = get_Value(COLUMNNAME_OverwriteSalesRegion); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite User1. + @param OverwriteUser1 + Overwrite the account segment User 1 with the value specified + */ + public void setOverwriteUser1 (boolean OverwriteUser1) + { + set_Value (COLUMNNAME_OverwriteUser1, Boolean.valueOf(OverwriteUser1)); + } + + /** Get Overwrite User1. + @return Overwrite the account segment User 1 with the value specified + */ + public boolean isOverwriteUser1 () + { + Object oo = get_Value(COLUMNNAME_OverwriteUser1); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite User2. + @param OverwriteUser2 + Overwrite the account segment User 2 with the value specified + */ + public void setOverwriteUser2 (boolean OverwriteUser2) + { + set_Value (COLUMNNAME_OverwriteUser2, Boolean.valueOf(OverwriteUser2)); + } + + /** Get Overwrite User2. + @return Overwrite the account segment User 2 with the value specified + */ + public boolean isOverwriteUser2 () + { + Object oo = get_Value(COLUMNNAME_OverwriteUser2); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Percent. + @param Percent + Percentage + */ + public void setPercent (BigDecimal Percent) + { + if (Percent == null) + throw new IllegalArgumentException ("Percent is mandatory."); + set_Value (COLUMNNAME_Percent, Percent); + } + + /** Get Percent. + @return Percentage + */ + public BigDecimal getPercent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Percent); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_Fund.java b/base/src/org/compiere/model/X_GL_Fund.java index 3e05b685f9..65b28526bf 100644 --- a/base/src/org/compiere/model/X_GL_Fund.java +++ b/base/src/org/compiere/model/X_GL_Fund.java @@ -1,234 +1,268 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_Fund - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_Fund extends PO + +/** Generated Model for GL_Fund + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_Fund extends PO implements I_GL_Fund, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_Fund_ID id -@param trxName transaction -*/ -public X_GL_Fund (Properties ctx, int GL_Fund_ID, String trxName) -{ -super (ctx, GL_Fund_ID, trxName); -/** if (GL_Fund_ID == 0) -{ -setAmt (Env.ZERO); -setC_AcctSchema_ID (0); -setGL_Fund_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_Fund (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_Fund */ -public static final String Table_Name="GL_Fund"; - -/** AD_Table_ID=823 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_Fund[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory."); -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Date From. -@param DateFrom Starting date for a range */ -public void setDateFrom (Timestamp DateFrom) -{ -set_Value ("DateFrom", DateFrom); -} -/** Get Date From. -@return Starting date for a range */ -public Timestamp getDateFrom() -{ -return (Timestamp)get_Value("DateFrom"); -} -/** Column name DateFrom */ -public static final String COLUMNNAME_DateFrom = "DateFrom"; -/** Set Date To. -@param DateTo End date of a date range */ -public void setDateTo (Timestamp DateTo) -{ -set_Value ("DateTo", DateTo); -} -/** Get Date To. -@return End date of a date range */ -public Timestamp getDateTo() -{ -return (Timestamp)get_Value("DateTo"); -} -/** Column name DateTo */ -public static final String COLUMNNAME_DateTo = "DateTo"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set GL Fund. -@param GL_Fund_ID General Ledger Funds Control */ -public void setGL_Fund_ID (int GL_Fund_ID) -{ -if (GL_Fund_ID < 1) throw new IllegalArgumentException ("GL_Fund_ID is mandatory."); -set_ValueNoCheck ("GL_Fund_ID", Integer.valueOf(GL_Fund_ID)); -} -/** Get GL Fund. -@return General Ledger Funds Control */ -public int getGL_Fund_ID() -{ -Integer ii = (Integer)get_Value("GL_Fund_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Fund_ID */ -public static final String COLUMNNAME_GL_Fund_ID = "GL_Fund_ID"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_Fund (Properties ctx, int GL_Fund_ID, String trxName) + { + super (ctx, GL_Fund_ID, trxName); + /** if (GL_Fund_ID == 0) { setAmt (Env.ZERO); + setC_AcctSchema_ID (0); + setGL_Fund_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_GL_Fund (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_Fund[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + if (Amt == null) + throw new IllegalArgumentException ("Amt is mandatory."); + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date From. + @param DateFrom + Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom) + { + set_Value (COLUMNNAME_DateFrom, DateFrom); + } + + /** Get Date From. + @return Starting date for a range + */ + public Timestamp getDateFrom () + { + return (Timestamp)get_Value(COLUMNNAME_DateFrom); + } + + /** Set Date To. + @param DateTo + End date of a date range + */ + public void setDateTo (Timestamp DateTo) + { + set_Value (COLUMNNAME_DateTo, DateTo); + } + + /** Get Date To. + @return End date of a date range + */ + public Timestamp getDateTo () + { + return (Timestamp)get_Value(COLUMNNAME_DateTo); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set GL Fund. + @param GL_Fund_ID + General Ledger Funds Control + */ + public void setGL_Fund_ID (int GL_Fund_ID) + { + if (GL_Fund_ID < 1) + throw new IllegalArgumentException ("GL_Fund_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, Integer.valueOf(GL_Fund_ID)); + } + + /** Get GL Fund. + @return General Ledger Funds Control + */ + public int getGL_Fund_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Fund_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_FundRestriction.java b/base/src/org/compiere/model/X_GL_FundRestriction.java index bbbb570043..35c5247ef6 100644 --- a/base/src/org/compiere/model/X_GL_FundRestriction.java +++ b/base/src/org/compiere/model/X_GL_FundRestriction.java @@ -1,187 +1,212 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_FundRestriction - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_FundRestriction extends PO + +/** Generated Model for GL_FundRestriction + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_FundRestriction extends PO implements I_GL_FundRestriction, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_FundRestriction_ID id -@param trxName transaction -*/ -public X_GL_FundRestriction (Properties ctx, int GL_FundRestriction_ID, String trxName) -{ -super (ctx, GL_FundRestriction_ID, trxName); -/** if (GL_FundRestriction_ID == 0) -{ -setC_ElementValue_ID (0); -setGL_FundRestriction_ID (0); -setGL_Fund_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_FundRestriction (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_FundRestriction */ -public static final String Table_Name="GL_FundRestriction"; - -/** AD_Table_ID=824 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_FundRestriction[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID < 1) throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); -set_Value ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Fund Restriction. -@param GL_FundRestriction_ID Restriction of Funds */ -public void setGL_FundRestriction_ID (int GL_FundRestriction_ID) -{ -if (GL_FundRestriction_ID < 1) throw new IllegalArgumentException ("GL_FundRestriction_ID is mandatory."); -set_ValueNoCheck ("GL_FundRestriction_ID", Integer.valueOf(GL_FundRestriction_ID)); -} -/** Get Fund Restriction. -@return Restriction of Funds */ -public int getGL_FundRestriction_ID() -{ -Integer ii = (Integer)get_Value("GL_FundRestriction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_FundRestriction_ID */ -public static final String COLUMNNAME_GL_FundRestriction_ID = "GL_FundRestriction_ID"; -/** Set GL Fund. -@param GL_Fund_ID General Ledger Funds Control */ -public void setGL_Fund_ID (int GL_Fund_ID) -{ -if (GL_Fund_ID < 1) throw new IllegalArgumentException ("GL_Fund_ID is mandatory."); -set_ValueNoCheck ("GL_Fund_ID", Integer.valueOf(GL_Fund_ID)); -} -/** Get GL Fund. -@return General Ledger Funds Control */ -public int getGL_Fund_ID() -{ -Integer ii = (Integer)get_Value("GL_Fund_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Fund_ID */ -public static final String COLUMNNAME_GL_Fund_ID = "GL_Fund_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_FundRestriction (Properties ctx, int GL_FundRestriction_ID, String trxName) + { + super (ctx, GL_FundRestriction_ID, trxName); + /** if (GL_FundRestriction_ID == 0) { setC_ElementValue_ID (0); + setGL_FundRestriction_ID (0); + setGL_Fund_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_GL_FundRestriction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_FundRestriction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID < 1) + throw new IllegalArgumentException ("C_ElementValue_ID is mandatory."); + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Fund Restriction. + @param GL_FundRestriction_ID + Restriction of Funds + */ + public void setGL_FundRestriction_ID (int GL_FundRestriction_ID) + { + if (GL_FundRestriction_ID < 1) + throw new IllegalArgumentException ("GL_FundRestriction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_FundRestriction_ID, Integer.valueOf(GL_FundRestriction_ID)); + } + + /** Get Fund Restriction. + @return Restriction of Funds + */ + public int getGL_FundRestriction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_FundRestriction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Fund getI_GL_Fund() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Fund. + @param GL_Fund_ID + General Ledger Funds Control + */ + public void setGL_Fund_ID (int GL_Fund_ID) + { + if (GL_Fund_ID < 1) + throw new IllegalArgumentException ("GL_Fund_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Fund_ID, Integer.valueOf(GL_Fund_ID)); + } + + /** Get GL Fund. + @return General Ledger Funds Control + */ + public int getGL_Fund_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Fund_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_Journal.java b/base/src/org/compiere/model/X_GL_Journal.java index 0e7b3a88e7..79ccefe7eb 100644 --- a/base/src/org/compiere/model/X_GL_Journal.java +++ b/base/src/org/compiere/model/X_GL_Journal.java @@ -1,645 +1,820 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_Journal - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_Journal extends PO + +/** Generated Model for GL_Journal + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_Journal_ID id -@param trxName transaction -*/ -public X_GL_Journal (Properties ctx, int GL_Journal_ID, String trxName) -{ -super (ctx, GL_Journal_ID, trxName); -/** if (GL_Journal_ID == 0) -{ -setC_AcctSchema_ID (0); // @$C_AcctSchema_ID@ -setC_ConversionType_ID (0); -setC_Currency_ID (0); // @C_Currency_ID@ -setC_DocType_ID (0); // @C_DocType_ID@ -setC_Period_ID (0); // @C_Period_ID@ -setCurrencyRate (Env.ZERO); // 1 -setDateAcct (new Timestamp(System.currentTimeMillis())); // @DateAcct@ -setDateDoc (new Timestamp(System.currentTimeMillis())); // @DateDoc@ -setDescription (null); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setGL_Category_ID (0); // @GL_Category_ID@ -setGL_Journal_ID (0); -setIsApproved (true); // Y -setIsPrinted (false); // N -setPosted (false); // N -setPostingType (null); // @PostingType@ -setTotalCr (Env.ZERO); // 0 -setTotalDr (Env.ZERO); // 0 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_Journal (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_Journal */ -public static final String Table_Name="GL_Journal"; - -/** AD_Table_ID=224 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_Journal[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID < 1) throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_Journal (Properties ctx, int GL_Journal_ID, String trxName) + { + super (ctx, GL_Journal_ID, trxName); + /** if (GL_Journal_ID == 0) { setC_AcctSchema_ID (0); +// @$C_AcctSchema_ID@ + setC_ConversionType_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_DocType_ID (0); +// @C_DocType_ID@ + setC_Period_ID (0); +// @C_Period_ID@ + setCurrencyRate (Env.ZERO); +// 1 + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @DateAcct@ + setDateDoc (new Timestamp(System.currentTimeMillis())); +// @DateDoc@ + setDescription (null); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setGL_Category_ID (0); +// @GL_Category_ID@ + setGL_Journal_ID (0); + setIsApproved (true); +// Y + setIsPrinted (false); +// N + setPosted (false); +// N + setPostingType (null); +// @PostingType@ + setTotalCr (Env.ZERO); +// 0 + setTotalDr (Env.ZERO); +// 0 +} */ + } + + /** Load Constructor */ + public X_GL_Journal (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_Journal[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Period_ID AD_Reference_ID=275 */ public static final int C_PERIOD_ID_AD_Reference_ID=275; -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID < 1) throw new IllegalArgumentException ("C_Period_ID is mandatory."); -set_Value ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Control Amount. -@param ControlAmt If not zero, the Debit amount of the document must be equal this amount */ -public void setControlAmt (BigDecimal ControlAmt) -{ -set_Value ("ControlAmt", ControlAmt); -} -/** Get Control Amount. -@return If not zero, the Debit amount of the document must be equal this amount */ -public BigDecimal getControlAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ControlAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ControlAmt */ -public static final String COLUMNNAME_ControlAmt = "ControlAmt"; -/** Set Rate. -@param CurrencyRate Currency Conversion Rate */ -public void setCurrencyRate (BigDecimal CurrencyRate) -{ -if (CurrencyRate == null) throw new IllegalArgumentException ("CurrencyRate is mandatory."); -set_Value ("CurrencyRate", CurrencyRate); -} -/** Get Rate. -@return Currency Conversion Rate */ -public BigDecimal getCurrencyRate() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrencyRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrencyRate */ -public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Document Date. -@param DateDoc Date of the Document */ -public void setDateDoc (Timestamp DateDoc) -{ -if (DateDoc == null) throw new IllegalArgumentException ("DateDoc is mandatory."); -set_Value ("DateDoc", DateDoc); -} -/** Get Document Date. -@return Date of the Document */ -public Timestamp getDateDoc() -{ -return (Timestamp)get_Value("DateDoc"); -} -/** Column name DateDoc */ -public static final String COLUMNNAME_DateDoc = "DateDoc"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Control Amount. + @param ControlAmt + If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt) + { + set_Value (COLUMNNAME_ControlAmt, ControlAmt); + } + + /** Get Control Amount. + @return If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ControlAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Rate. + @param CurrencyRate + Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate) + { + if (CurrencyRate == null) + throw new IllegalArgumentException ("CurrencyRate is mandatory."); + set_Value (COLUMNNAME_CurrencyRate, CurrencyRate); + } + + /** Get Rate. + @return Currency Conversion Rate + */ + public BigDecimal getCurrencyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrencyRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + if (DateDoc == null) + throw new IllegalArgumentException ("DateDoc is mandatory."); + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID <= 0) set_Value ("GL_Budget_ID", null); - else -set_Value ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set GL Category. -@param GL_Category_ID General Ledger Category */ -public void setGL_Category_ID (int GL_Category_ID) -{ -if (GL_Category_ID < 1) throw new IllegalArgumentException ("GL_Category_ID is mandatory."); -set_Value ("GL_Category_ID", Integer.valueOf(GL_Category_ID)); -} -/** Get GL Category. -@return General Ledger Category */ -public int getGL_Category_ID() -{ -Integer ii = (Integer)get_Value("GL_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Category_ID */ -public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; -/** Set Journal Batch. -@param GL_JournalBatch_ID General Ledger Journal Batch */ -public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) -{ -if (GL_JournalBatch_ID <= 0) set_ValueNoCheck ("GL_JournalBatch_ID", null); - else -set_ValueNoCheck ("GL_JournalBatch_ID", Integer.valueOf(GL_JournalBatch_ID)); -} -/** Get Journal Batch. -@return General Ledger Journal Batch */ -public int getGL_JournalBatch_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalBatch_ID */ -public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; -/** Set Journal. -@param GL_Journal_ID General Ledger Journal */ -public void setGL_Journal_ID (int GL_Journal_ID) -{ -if (GL_Journal_ID < 1) throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); -set_ValueNoCheck ("GL_Journal_ID", Integer.valueOf(GL_Journal_ID)); -} -/** Get Journal. -@return General Ledger Journal */ -public int getGL_Journal_ID() -{ -Integer ii = (Integer)get_Value("GL_Journal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Journal_ID */ -public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_ValueNoCheck ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_ValueNoCheck ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_ValueNoCheck ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID <= 0) set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Category getI_GL_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + throw new IllegalArgumentException ("GL_Category_ID is mandatory."); + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_JournalBatch getI_GL_JournalBatch() throws Exception + { + 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 e; + } + return result; + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID <= 0) set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal. + @param GL_Journal_ID + General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID) + { + if (GL_Journal_ID < 1) + throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + } + + /** Get Journal. + @return General Ledger Journal + */ + public int getGL_Journal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Journal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_ValueNoCheck (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); -if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Total Credit. -@param TotalCr Total Credit in document currency */ -public void setTotalCr (BigDecimal TotalCr) -{ -if (TotalCr == null) throw new IllegalArgumentException ("TotalCr is mandatory."); -set_ValueNoCheck ("TotalCr", TotalCr); -} -/** Get Total Credit. -@return Total Credit in document currency */ -public BigDecimal getTotalCr() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalCr */ -public static final String COLUMNNAME_TotalCr = "TotalCr"; -/** Set Total Debit. -@param TotalDr Total debit in document currency */ -public void setTotalDr (BigDecimal TotalDr) -{ -if (TotalDr == null) throw new IllegalArgumentException ("TotalDr is mandatory."); -set_ValueNoCheck ("TotalDr", TotalDr); -} -/** Get Total Debit. -@return Total debit in document currency */ -public BigDecimal getTotalDr() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalDr */ -public static final String COLUMNNAME_TotalDr = "TotalDr"; -} + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory");if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Credit. + @param TotalCr + Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr) + { + if (TotalCr == null) + throw new IllegalArgumentException ("TotalCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); + } + + /** Get Total Credit. + @return Total Credit in document currency + */ + public BigDecimal getTotalCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Debit. + @param TotalDr + Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr) + { + if (TotalDr == null) + throw new IllegalArgumentException ("TotalDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalDr, TotalDr); + } + + /** Get Total Debit. + @return Total debit in document currency + */ + public BigDecimal getTotalDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalDr); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_JournalBatch.java b/base/src/org/compiere/model/X_GL_JournalBatch.java index 11f129ae3d..5cd84ea4e1 100644 --- a/base/src/org/compiere/model/X_GL_JournalBatch.java +++ b/base/src/org/compiere/model/X_GL_JournalBatch.java @@ -1,529 +1,594 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_JournalBatch - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_JournalBatch extends PO + +/** Generated Model for GL_JournalBatch + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_JournalBatch_ID id -@param trxName transaction -*/ -public X_GL_JournalBatch (Properties ctx, int GL_JournalBatch_ID, String trxName) -{ -super (ctx, GL_JournalBatch_ID, trxName); -/** if (GL_JournalBatch_ID == 0) -{ -setC_DocType_ID (0); -setDescription (null); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setGL_JournalBatch_ID (0); -setPostingType (null); // A -setProcessed (false); -setProcessing (false); -setTotalCr (Env.ZERO); -setTotalDr (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_JournalBatch (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_JournalBatch */ -public static final String Table_Name="GL_JournalBatch"; - -/** AD_Table_ID=225 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_JournalBatch[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_JournalBatch (Properties ctx, int GL_JournalBatch_ID, String trxName) + { + super (ctx, GL_JournalBatch_ID, trxName); + /** if (GL_JournalBatch_ID == 0) { setC_DocType_ID (0); + setDescription (null); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setGL_JournalBatch_ID (0); + setPostingType (null); +// A + setProcessed (false); + setProcessing (false); + setTotalCr (Env.ZERO); + setTotalDr (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_GL_JournalBatch (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_JournalBatch[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Period_ID AD_Reference_ID=275 */ public static final int C_PERIOD_ID_AD_Reference_ID=275; -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID <= 0) set_Value ("C_Period_ID", null); - else -set_Value ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Control Amount. -@param ControlAmt If not zero, the Debit amount of the document must be equal this amount */ -public void setControlAmt (BigDecimal ControlAmt) -{ -set_Value ("ControlAmt", ControlAmt); -} -/** Get Control Amount. -@return If not zero, the Debit amount of the document must be equal this amount */ -public BigDecimal getControlAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ControlAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ControlAmt */ -public static final String COLUMNNAME_ControlAmt = "ControlAmt"; -/** Set Copy From. -@param CopyFrom Copy From Record */ -public void setCopyFrom (String CopyFrom) -{ -if (CopyFrom != null && CopyFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CopyFrom = CopyFrom.substring(0,0); -} -set_Value ("CopyFrom", CopyFrom); -} -/** Get Copy From. -@return Copy From Record */ -public String getCopyFrom() -{ -return (String)get_Value("CopyFrom"); -} -/** Column name CopyFrom */ -public static final String COLUMNNAME_CopyFrom = "CopyFrom"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Document Date. -@param DateDoc Date of the Document */ -public void setDateDoc (Timestamp DateDoc) -{ -set_Value ("DateDoc", DateDoc); -} -/** Get Document Date. -@return Date of the Document */ -public Timestamp getDateDoc() -{ -return (Timestamp)get_Value("DateDoc"); -} -/** Column name DateDoc */ -public static final String COLUMNNAME_DateDoc = "DateDoc"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID <= 0) set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Control Amount. + @param ControlAmt + If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt) + { + set_Value (COLUMNNAME_ControlAmt, ControlAmt); + } + + /** Get Control Amount. + @return If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ControlAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set GL Category. -@param GL_Category_ID General Ledger Category */ -public void setGL_Category_ID (int GL_Category_ID) -{ -if (GL_Category_ID <= 0) set_Value ("GL_Category_ID", null); - else -set_Value ("GL_Category_ID", Integer.valueOf(GL_Category_ID)); -} -/** Get GL Category. -@return General Ledger Category */ -public int getGL_Category_ID() -{ -Integer ii = (Integer)get_Value("GL_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Category_ID */ -public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; -/** Set Journal Batch. -@param GL_JournalBatch_ID General Ledger Journal Batch */ -public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) -{ -if (GL_JournalBatch_ID < 1) throw new IllegalArgumentException ("GL_JournalBatch_ID is mandatory."); -set_ValueNoCheck ("GL_JournalBatch_ID", Integer.valueOf(GL_JournalBatch_ID)); -} -/** Get Journal Batch. -@return General Ledger Journal Batch */ -public int getGL_JournalBatch_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalBatch_ID */ -public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + public I_GL_Category getI_GL_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID <= 0) set_Value (COLUMNNAME_GL_Category_ID, null); + else + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID < 1) + throw new IllegalArgumentException ("GL_JournalBatch_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); -if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Total Credit. -@param TotalCr Total Credit in document currency */ -public void setTotalCr (BigDecimal TotalCr) -{ -if (TotalCr == null) throw new IllegalArgumentException ("TotalCr is mandatory."); -set_ValueNoCheck ("TotalCr", TotalCr); -} -/** Get Total Credit. -@return Total Credit in document currency */ -public BigDecimal getTotalCr() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalCr */ -public static final String COLUMNNAME_TotalCr = "TotalCr"; -/** Set Total Debit. -@param TotalDr Total debit in document currency */ -public void setTotalDr (BigDecimal TotalDr) -{ -if (TotalDr == null) throw new IllegalArgumentException ("TotalDr is mandatory."); -set_ValueNoCheck ("TotalDr", TotalDr); -} -/** Get Total Debit. -@return Total debit in document currency */ -public BigDecimal getTotalDr() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalDr */ -public static final String COLUMNNAME_TotalDr = "TotalDr"; -} + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory");if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Credit. + @param TotalCr + Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr) + { + if (TotalCr == null) + throw new IllegalArgumentException ("TotalCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); + } + + /** Get Total Credit. + @return Total Credit in document currency + */ + public BigDecimal getTotalCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Debit. + @param TotalDr + Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr) + { + if (TotalDr == null) + throw new IllegalArgumentException ("TotalDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalDr, TotalDr); + } + + /** Get Total Debit. + @return Total debit in document currency + */ + public BigDecimal getTotalDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalDr); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_JournalLine.java b/base/src/org/compiere/model/X_GL_JournalLine.java index 9187b7c8c0..cb51bce678 100644 --- a/base/src/org/compiere/model/X_GL_JournalLine.java +++ b/base/src/org/compiere/model/X_GL_JournalLine.java @@ -1,402 +1,533 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for GL_JournalLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_GL_JournalLine extends PO + +/** Generated Model for GL_JournalLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_GL_JournalLine extends PO implements I_GL_JournalLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param GL_JournalLine_ID id -@param trxName transaction -*/ -public X_GL_JournalLine (Properties ctx, int GL_JournalLine_ID, String trxName) -{ -super (ctx, GL_JournalLine_ID, trxName); -/** if (GL_JournalLine_ID == 0) -{ -setAmtAcctCr (Env.ZERO); -setAmtAcctDr (Env.ZERO); -setAmtSourceCr (Env.ZERO); -setAmtSourceDr (Env.ZERO); -setC_ConversionType_ID (0); -setC_Currency_ID (0); // @C_Currency_ID@ -setC_ValidCombination_ID (0); -setCurrencyRate (Env.ZERO); // @CurrencyRate@; -1 -setDateAcct (new Timestamp(System.currentTimeMillis())); // @DateAcct@ -setGL_JournalLine_ID (0); -setGL_Journal_ID (0); -setIsGenerated (false); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM GL_JournalLine WHERE GL_Journal_ID=@GL_Journal_ID@ -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_GL_JournalLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=GL_JournalLine */ -public static final String Table_Name="GL_JournalLine"; - -/** AD_Table_ID=226 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_GL_JournalLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounted Credit. -@param AmtAcctCr Accounted Credit Amount */ -public void setAmtAcctCr (BigDecimal AmtAcctCr) -{ -if (AmtAcctCr == null) throw new IllegalArgumentException ("AmtAcctCr is mandatory."); -set_ValueNoCheck ("AmtAcctCr", AmtAcctCr); -} -/** Get Accounted Credit. -@return Accounted Credit Amount */ -public BigDecimal getAmtAcctCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctCr */ -public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; -/** Set Accounted Debit. -@param AmtAcctDr Accounted Debit Amount */ -public void setAmtAcctDr (BigDecimal AmtAcctDr) -{ -if (AmtAcctDr == null) throw new IllegalArgumentException ("AmtAcctDr is mandatory."); -set_ValueNoCheck ("AmtAcctDr", AmtAcctDr); -} -/** Get Accounted Debit. -@return Accounted Debit Amount */ -public BigDecimal getAmtAcctDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctDr */ -public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; -/** Set Source Credit. -@param AmtSourceCr Source Credit Amount */ -public void setAmtSourceCr (BigDecimal AmtSourceCr) -{ -if (AmtSourceCr == null) throw new IllegalArgumentException ("AmtSourceCr is mandatory."); -set_Value ("AmtSourceCr", AmtSourceCr); -} -/** Get Source Credit. -@return Source Credit Amount */ -public BigDecimal getAmtSourceCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceCr */ -public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; -/** Set Source Debit. -@param AmtSourceDr Source Debit Amount */ -public void setAmtSourceDr (BigDecimal AmtSourceDr) -{ -if (AmtSourceDr == null) throw new IllegalArgumentException ("AmtSourceDr is mandatory."); -set_Value ("AmtSourceDr", AmtSourceDr); -} -/** Get Source Debit. -@return Source Debit Amount */ -public BigDecimal getAmtSourceDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceDr */ -public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID < 1) throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Combination. -@param C_ValidCombination_ID Valid Account Combination */ -public void setC_ValidCombination_ID (int C_ValidCombination_ID) -{ -if (C_ValidCombination_ID < 1) throw new IllegalArgumentException ("C_ValidCombination_ID is mandatory."); -set_Value ("C_ValidCombination_ID", Integer.valueOf(C_ValidCombination_ID)); -} -/** Get Combination. -@return Valid Account Combination */ -public int getC_ValidCombination_ID() -{ -Integer ii = (Integer)get_Value("C_ValidCombination_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ValidCombination_ID */ -public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; -/** Set Rate. -@param CurrencyRate Currency Conversion Rate */ -public void setCurrencyRate (BigDecimal CurrencyRate) -{ -if (CurrencyRate == null) throw new IllegalArgumentException ("CurrencyRate is mandatory."); -set_ValueNoCheck ("CurrencyRate", CurrencyRate); -} -/** Get Rate. -@return Currency Conversion Rate */ -public BigDecimal getCurrencyRate() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrencyRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrencyRate */ -public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Journal Line. -@param GL_JournalLine_ID General Ledger Journal Line */ -public void setGL_JournalLine_ID (int GL_JournalLine_ID) -{ -if (GL_JournalLine_ID < 1) throw new IllegalArgumentException ("GL_JournalLine_ID is mandatory."); -set_ValueNoCheck ("GL_JournalLine_ID", Integer.valueOf(GL_JournalLine_ID)); -} -/** Get Journal Line. -@return General Ledger Journal Line */ -public int getGL_JournalLine_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalLine_ID */ -public static final String COLUMNNAME_GL_JournalLine_ID = "GL_JournalLine_ID"; -/** Set Journal. -@param GL_Journal_ID General Ledger Journal */ -public void setGL_Journal_ID (int GL_Journal_ID) -{ -if (GL_Journal_ID < 1) throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); -set_ValueNoCheck ("GL_Journal_ID", Integer.valueOf(GL_Journal_ID)); -} -/** Get Journal. -@return General Ledger Journal */ -public int getGL_Journal_ID() -{ -Integer ii = (Integer)get_Value("GL_Journal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Journal_ID */ -public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; -/** Set Generated. -@param IsGenerated This Line is generated */ -public void setIsGenerated (boolean IsGenerated) -{ -set_ValueNoCheck ("IsGenerated", Boolean.valueOf(IsGenerated)); -} -/** Get Generated. -@return This Line is generated */ -public boolean isGenerated() -{ -Object oo = get_Value("IsGenerated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsGenerated */ -public static final String COLUMNNAME_IsGenerated = "IsGenerated"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_JournalLine (Properties ctx, int GL_JournalLine_ID, String trxName) + { + super (ctx, GL_JournalLine_ID, trxName); + /** if (GL_JournalLine_ID == 0) { setAmtAcctCr (Env.ZERO); + setAmtAcctDr (Env.ZERO); + setAmtSourceCr (Env.ZERO); + setAmtSourceDr (Env.ZERO); + setC_ConversionType_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_ValidCombination_ID (0); + setCurrencyRate (Env.ZERO); +// @CurrencyRate@;1 + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @DateAcct@ + setGL_JournalLine_ID (0); + setGL_Journal_ID (0); + setIsGenerated (false); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM GL_JournalLine WHERE GL_Journal_ID=@GL_Journal_ID@ + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_GL_JournalLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_GL_JournalLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Accounted Credit. + @param AmtAcctCr + Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr) + { + if (AmtAcctCr == null) + throw new IllegalArgumentException ("AmtAcctCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_AmtAcctCr, AmtAcctCr); + } + + /** Get Accounted Credit. + @return Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accounted Debit. + @param AmtAcctDr + Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr) + { + if (AmtAcctDr == null) + throw new IllegalArgumentException ("AmtAcctDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_AmtAcctDr, AmtAcctDr); + } + + /** Get Accounted Debit. + @return Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Credit. + @param AmtSourceCr + Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr) + { + if (AmtSourceCr == null) + throw new IllegalArgumentException ("AmtSourceCr is mandatory."); + set_Value (COLUMNNAME_AmtSourceCr, AmtSourceCr); + } + + /** Get Source Credit. + @return Source Credit Amount + */ + public BigDecimal getAmtSourceCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Debit. + @param AmtSourceDr + Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr) + { + if (AmtSourceDr == null) + throw new IllegalArgumentException ("AmtSourceDr is mandatory."); + set_Value (COLUMNNAME_AmtSourceDr, AmtSourceDr); + } + + /** Get Source Debit. + @return Source Debit Amount + */ + public BigDecimal getAmtSourceDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Combination. + @param C_ValidCombination_ID + Valid Account Combination + */ + public void setC_ValidCombination_ID (int C_ValidCombination_ID) + { + if (C_ValidCombination_ID < 1) + throw new IllegalArgumentException ("C_ValidCombination_ID is mandatory."); + set_Value (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); + } + + /** Get Combination. + @return Valid Account Combination + */ + public int getC_ValidCombination_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ValidCombination_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Rate. + @param CurrencyRate + Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate) + { + if (CurrencyRate == null) + throw new IllegalArgumentException ("CurrencyRate is mandatory."); + set_ValueNoCheck (COLUMNNAME_CurrencyRate, CurrencyRate); + } + + /** Get Rate. + @return Currency Conversion Rate + */ + public BigDecimal getCurrencyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrencyRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Journal Line. + @param GL_JournalLine_ID + General Ledger Journal Line + */ + public void setGL_JournalLine_ID (int GL_JournalLine_ID) + { + if (GL_JournalLine_ID < 1) + throw new IllegalArgumentException ("GL_JournalLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_JournalLine_ID, Integer.valueOf(GL_JournalLine_ID)); + } + + /** Get Journal Line. + @return General Ledger Journal Line + */ + public int getGL_JournalLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Journal getI_GL_Journal() throws Exception + { + 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 e; + } + return result; + } + + /** Set Journal. + @param GL_Journal_ID + General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID) + { + if (GL_Journal_ID < 1) + throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + } + + /** Get Journal. + @return General Ledger Journal + */ + public int getGL_Journal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Journal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Generated. + @param IsGenerated + This Line is generated + */ + public void setIsGenerated (boolean IsGenerated) + { + set_ValueNoCheck (COLUMNNAME_IsGenerated, Boolean.valueOf(IsGenerated)); + } + + /** Get Generated. + @return This Line is generated + */ + public boolean isGenerated () + { + Object oo = get_Value(COLUMNNAME_IsGenerated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_BPartner.java b/base/src/org/compiere/model/X_I_BPartner.java index 1272cce55d..b7b8b3c379 100644 --- a/base/src/org/compiere/model/X_I_BPartner.java +++ b/base/src/org/compiere/model/X_I_BPartner.java @@ -1,843 +1,1070 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_BPartner - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_BPartner extends PO -{ -/** Standard Constructor -@param ctx context -@param I_BPartner_ID id -@param trxName transaction -*/ -public X_I_BPartner (Properties ctx, int I_BPartner_ID, String trxName) -{ -super (ctx, I_BPartner_ID, trxName); -/** if (I_BPartner_ID == 0) -{ -setI_BPartner_ID (0); -setI_IsImported (false); // N -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_BPartner (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_BPartner */ -public static final String Table_Name="I_BPartner"; - -/** AD_Table_ID=533 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_BPartner[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Address 1. -@param Address1 Address line 1 for this location */ -public void setAddress1 (String Address1) -{ -if (Address1 != null && Address1.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address1 = Address1.substring(0,59); -} -set_Value ("Address1", Address1); -} -/** Get Address 1. -@return Address line 1 for this location */ -public String getAddress1() -{ -return (String)get_Value("Address1"); -} -/** Column name Address1 */ -public static final String COLUMNNAME_Address1 = "Address1"; -/** Set Address 2. -@param Address2 Address line 2 for this location */ -public void setAddress2 (String Address2) -{ -if (Address2 != null && Address2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address2 = Address2.substring(0,59); -} -set_Value ("Address2", Address2); -} -/** Get Address 2. -@return Address line 2 for this location */ -public String getAddress2() -{ -return (String)get_Value("Address2"); -} -/** Column name Address2 */ -public static final String COLUMNNAME_Address2 = "Address2"; -/** Set BP Contact Greeting. -@param BPContactGreeting Greeting for Business Partner Contact */ -public void setBPContactGreeting (String BPContactGreeting) -{ -if (BPContactGreeting != null && BPContactGreeting.length() > 60) -{ -log.warning("Length > 60 - truncated"); -BPContactGreeting = BPContactGreeting.substring(0,59); -} -set_Value ("BPContactGreeting", BPContactGreeting); -} -/** Get BP Contact Greeting. -@return Greeting for Business Partner Contact */ -public String getBPContactGreeting() -{ -return (String)get_Value("BPContactGreeting"); -} -/** Column name BPContactGreeting */ -public static final String COLUMNNAME_BPContactGreeting = "BPContactGreeting"; -/** Set Birthday. -@param Birthday Birthday or Anniversary day */ -public void setBirthday (Timestamp Birthday) -{ -set_Value ("Birthday", Birthday); -} -/** Get Birthday. -@return Birthday or Anniversary day */ -public Timestamp getBirthday() -{ -return (Timestamp)get_Value("Birthday"); -} -/** Column name Birthday */ -public static final String COLUMNNAME_Birthday = "Birthday"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID <= 0) set_Value ("C_BP_Group_ID", null); - else -set_Value ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID <= 0) set_Value ("C_Country_ID", null); - else -set_Value ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Greeting. -@param C_Greeting_ID Greeting to print on correspondence */ -public void setC_Greeting_ID (int C_Greeting_ID) -{ -if (C_Greeting_ID <= 0) set_Value ("C_Greeting_ID", null); - else -set_Value ("C_Greeting_ID", Integer.valueOf(C_Greeting_ID)); -} -/** Get Greeting. -@return Greeting to print on correspondence */ -public int getC_Greeting_ID() -{ -Integer ii = (Integer)get_Value("C_Greeting_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Greeting_ID */ -public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set City. -@param City Identifies a City */ -public void setCity (String City) -{ -if (City != null && City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -City = City.substring(0,59); -} -set_Value ("City", City); -} -/** Get City. -@return Identifies a City */ -public String getCity() -{ -return (String)get_Value("City"); -} -/** Column name City */ -public static final String COLUMNNAME_City = "City"; -/** Set Comments. -@param Comments Comments or additional information */ -public void setComments (String Comments) -{ -if (Comments != null && Comments.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Comments = Comments.substring(0,1999); -} -set_Value ("Comments", Comments); -} -/** Get Comments. -@return Comments or additional information */ -public String getComments() -{ -return (String)get_Value("Comments"); -} -/** Column name Comments */ -public static final String COLUMNNAME_Comments = "Comments"; -/** Set Contact Description. -@param ContactDescription Description of Contact */ -public void setContactDescription (String ContactDescription) -{ -if (ContactDescription != null && ContactDescription.length() > 255) -{ -log.warning("Length > 255 - truncated"); -ContactDescription = ContactDescription.substring(0,254); -} -set_Value ("ContactDescription", ContactDescription); -} -/** Get Contact Description. -@return Description of Contact */ -public String getContactDescription() -{ -return (String)get_Value("ContactDescription"); -} -/** Column name ContactDescription */ -public static final String COLUMNNAME_ContactDescription = "ContactDescription"; -/** Set Contact Name. -@param ContactName Business Partner Contact Name */ -public void setContactName (String ContactName) -{ -if (ContactName != null && ContactName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ContactName = ContactName.substring(0,59); -} -set_Value ("ContactName", ContactName); -} -/** Get Contact Name. -@return Business Partner Contact Name */ -public String getContactName() -{ -return (String)get_Value("ContactName"); -} -/** Column name ContactName */ -public static final String COLUMNNAME_ContactName = "ContactName"; -/** Set ISO Country Code. -@param CountryCode Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public void setCountryCode (String CountryCode) -{ -if (CountryCode != null && CountryCode.length() > 2) -{ -log.warning("Length > 2 - truncated"); -CountryCode = CountryCode.substring(0,1); -} -set_Value ("CountryCode", CountryCode); -} -/** Get ISO Country Code. -@return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public String getCountryCode() -{ -return (String)get_Value("CountryCode"); -} -/** Column name CountryCode */ -public static final String COLUMNNAME_CountryCode = "CountryCode"; -/** Set D-U-N-S. -@param DUNS Dun & Bradstreet Number */ -public void setDUNS (String DUNS) -{ -if (DUNS != null && DUNS.length() > 11) -{ -log.warning("Length > 11 - truncated"); -DUNS = DUNS.substring(0,10); -} -set_Value ("DUNS", DUNS); -} -/** Get D-U-N-S. -@return Dun & Bradstreet Number */ -public String getDUNS() -{ -return (String)get_Value("DUNS"); -} -/** Column name DUNS */ -public static final String COLUMNNAME_DUNS = "DUNS"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Fax. -@param Fax Facsimile number */ -public void setFax (String Fax) -{ -if (Fax != null && Fax.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Fax = Fax.substring(0,39); -} -set_Value ("Fax", Fax); -} -/** Get Fax. -@return Facsimile number */ -public String getFax() -{ -return (String)get_Value("Fax"); -} -/** Column name Fax */ -public static final String COLUMNNAME_Fax = "Fax"; -/** Set Group Key. -@param GroupValue Business Partner Group Key */ -public void setGroupValue (String GroupValue) -{ -if (GroupValue != null && GroupValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -GroupValue = GroupValue.substring(0,39); -} -set_Value ("GroupValue", GroupValue); -} -/** Get Group Key. -@return Business Partner Group Key */ -public String getGroupValue() -{ -return (String)get_Value("GroupValue"); -} -/** Column name GroupValue */ -public static final String COLUMNNAME_GroupValue = "GroupValue"; -/** Set Import Business Partner. -@param I_BPartner_ID Import Business Partner */ -public void setI_BPartner_ID (int I_BPartner_ID) -{ -if (I_BPartner_ID < 1) throw new IllegalArgumentException ("I_BPartner_ID is mandatory."); -set_ValueNoCheck ("I_BPartner_ID", Integer.valueOf(I_BPartner_ID)); -} -/** Get Import Business Partner. -@return Import Business Partner */ -public int getI_BPartner_ID() -{ -Integer ii = (Integer)get_Value("I_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_BPartner_ID */ -public static final String COLUMNNAME_I_BPartner_ID = "I_BPartner_ID"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Interest Area. -@param InterestAreaName Name of the Interest Area */ -public void setInterestAreaName (String InterestAreaName) -{ -if (InterestAreaName != null && InterestAreaName.length() > 40) -{ -log.warning("Length > 40 - truncated"); -InterestAreaName = InterestAreaName.substring(0,39); -} -set_Value ("InterestAreaName", InterestAreaName); -} -/** Get Interest Area. -@return Name of the Interest Area */ -public String getInterestAreaName() -{ -return (String)get_Value("InterestAreaName"); -} -/** Column name InterestAreaName */ -public static final String COLUMNNAME_InterestAreaName = "InterestAreaName"; -/** Set NAICS/SIC. -@param NAICS Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html */ -public void setNAICS (String NAICS) -{ -if (NAICS != null && NAICS.length() > 6) -{ -log.warning("Length > 6 - truncated"); -NAICS = NAICS.substring(0,5); -} -set_Value ("NAICS", NAICS); -} -/** Get NAICS/SIC. -@return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html */ -public String getNAICS() -{ -return (String)get_Value("NAICS"); -} -/** Column name NAICS */ -public static final String COLUMNNAME_NAICS = "NAICS"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Name 2. -@param Name2 Additional Name */ -public void setName2 (String Name2) -{ -if (Name2 != null && Name2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name2 = Name2.substring(0,59); -} -set_Value ("Name2", Name2); -} -/** Get Name 2. -@return Additional Name */ -public String getName2() -{ -return (String)get_Value("Name2"); -} -/** Column name Name2 */ -public static final String COLUMNNAME_Name2 = "Name2"; -/** Set Password. -@param Password Password of any length (case sensitive) */ -public void setPassword (String Password) -{ -if (Password != null && Password.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Password = Password.substring(0,19); -} -set_Value ("Password", Password); -} -/** Get Password. -@return Password of any length (case sensitive) */ -public String getPassword() -{ -return (String)get_Value("Password"); -} -/** Column name Password */ -public static final String COLUMNNAME_Password = "Password"; -/** Set Phone. -@param Phone Identifies a telephone number */ -public void setPhone (String Phone) -{ -if (Phone != null && Phone.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone = Phone.substring(0,39); -} -set_Value ("Phone", Phone); -} -/** Get Phone. -@return Identifies a telephone number */ -public String getPhone() -{ -return (String)get_Value("Phone"); -} -/** Column name Phone */ -public static final String COLUMNNAME_Phone = "Phone"; -/** Set 2nd Phone. -@param Phone2 Identifies an alternate telephone number. */ -public void setPhone2 (String Phone2) -{ -if (Phone2 != null && Phone2.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone2 = Phone2.substring(0,39); -} -set_Value ("Phone2", Phone2); -} -/** Get 2nd Phone. -@return Identifies an alternate telephone number. */ -public String getPhone2() -{ -return (String)get_Value("Phone2"); -} -/** Column name Phone2 */ -public static final String COLUMNNAME_Phone2 = "Phone2"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal != null && Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_Value ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -/** Set -. -@param Postal_Add Additional ZIP or Postal code */ -public void setPostal_Add (String Postal_Add) -{ -if (Postal_Add != null && Postal_Add.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal_Add = Postal_Add.substring(0,9); -} -set_Value ("Postal_Add", Postal_Add); -} -/** Get -. -@return Additional ZIP or Postal code */ -public String getPostal_Add() -{ -return (String)get_Value("Postal_Add"); -} -/** Column name Postal_Add */ -public static final String COLUMNNAME_Postal_Add = "Postal_Add"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Interest Area. -@param R_InterestArea_ID Interest Area or Topic */ -public void setR_InterestArea_ID (int R_InterestArea_ID) -{ -if (R_InterestArea_ID <= 0) set_Value ("R_InterestArea_ID", null); - else -set_Value ("R_InterestArea_ID", Integer.valueOf(R_InterestArea_ID)); -} -/** Get Interest Area. -@return Interest Area or Topic */ -public int getR_InterestArea_ID() -{ -Integer ii = (Integer)get_Value("R_InterestArea_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_InterestArea_ID */ -public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; -/** Set Region. -@param RegionName Name of the Region */ -public void setRegionName (String RegionName) -{ -if (RegionName != null && RegionName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RegionName = RegionName.substring(0,59); -} -set_Value ("RegionName", RegionName); -} -/** Get Region. -@return Name of the Region */ -public String getRegionName() -{ -return (String)get_Value("RegionName"); -} -/** Column name RegionName */ -public static final String COLUMNNAME_RegionName = "RegionName"; -/** Set Tax ID. -@param TaxID Tax Identification */ -public void setTaxID (String TaxID) -{ -if (TaxID != null && TaxID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -TaxID = TaxID.substring(0,19); -} -set_Value ("TaxID", TaxID); -} -/** Get Tax ID. -@return Tax Identification */ -public String getTaxID() -{ -return (String)get_Value("TaxID"); -} -/** Column name TaxID */ -public static final String COLUMNNAME_TaxID = "TaxID"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title != null && Title.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Title = Title.substring(0,39); -} -set_Value ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value != null && Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + +/** Generated Model for I_BPartner + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_BPartner extends PO implements I_I_BPartner, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_BPartner (Properties ctx, int I_BPartner_ID, String trxName) + { + super (ctx, I_BPartner_ID, trxName); + /** if (I_BPartner_ID == 0) { setI_BPartner_ID (0); + setI_IsImported (false); +// N +} */ + } + + /** Load Constructor */ + public X_I_BPartner (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_BPartner[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address 1. + @param Address1 + Address line 1 for this location + */ + public void setAddress1 (String Address1) + { + if (Address1 != null && Address1.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address1 = Address1.substring(0, 59); + } + set_Value (COLUMNNAME_Address1, Address1); + } + + /** Get Address 1. + @return Address line 1 for this location + */ + public String getAddress1 () + { + return (String)get_Value(COLUMNNAME_Address1); + } + + /** Set Address 2. + @param Address2 + Address line 2 for this location + */ + public void setAddress2 (String Address2) + { + if (Address2 != null && Address2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address2 = Address2.substring(0, 59); + } + set_Value (COLUMNNAME_Address2, Address2); + } + + /** Get Address 2. + @return Address line 2 for this location + */ + public String getAddress2 () + { + return (String)get_Value(COLUMNNAME_Address2); + } + + /** Set BP Contact Greeting. + @param BPContactGreeting + Greeting for Business Partner Contact + */ + public void setBPContactGreeting (String BPContactGreeting) + { + if (BPContactGreeting != null && BPContactGreeting.length() > 60) + { + log.warning("Length > 60 - truncated"); + BPContactGreeting = BPContactGreeting.substring(0, 59); + } + set_Value (COLUMNNAME_BPContactGreeting, BPContactGreeting); + } + + /** Get BP Contact Greeting. + @return Greeting for Business Partner Contact + */ + public String getBPContactGreeting () + { + return (String)get_Value(COLUMNNAME_BPContactGreeting); + } + + /** Set Birthday. + @param Birthday + Birthday or Anniversary day + */ + public void setBirthday (Timestamp Birthday) + { + set_Value (COLUMNNAME_Birthday, Birthday); + } + + /** Get Birthday. + @return Birthday or Anniversary day + */ + public Timestamp getBirthday () + { + return (Timestamp)get_Value(COLUMNNAME_Birthday); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID <= 0) set_Value (COLUMNNAME_C_BP_Group_ID, null); + else + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID <= 0) set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Greeting getI_C_Greeting() throws Exception + { + 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 e; + } + return result; + } + + /** Set Greeting. + @param C_Greeting_ID + Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID) + { + if (C_Greeting_ID <= 0) set_Value (COLUMNNAME_C_Greeting_ID, null); + else + set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + } + + /** Get Greeting. + @return Greeting to print on correspondence + */ + public int getC_Greeting_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Region getI_C_Region() throws Exception + { + 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 e; + } + return result; + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set City. + @param City + Identifies a City + */ + public void setCity (String City) + { + if (City != null && City.length() > 60) + { + log.warning("Length > 60 - truncated"); + City = City.substring(0, 59); + } + set_Value (COLUMNNAME_City, City); + } + + /** Get City. + @return Identifies a City + */ + public String getCity () + { + return (String)get_Value(COLUMNNAME_City); + } + + /** Set Comments. + @param Comments + Comments or additional information + */ + public void setComments (String Comments) + { + if (Comments != null && Comments.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Comments = Comments.substring(0, 1999); + } + set_Value (COLUMNNAME_Comments, Comments); + } + + /** Get Comments. + @return Comments or additional information + */ + public String getComments () + { + return (String)get_Value(COLUMNNAME_Comments); + } + + /** Set Contact Description. + @param ContactDescription + Description of Contact + */ + public void setContactDescription (String ContactDescription) + { + if (ContactDescription != null && ContactDescription.length() > 255) + { + log.warning("Length > 255 - truncated"); + ContactDescription = ContactDescription.substring(0, 254); + } + set_Value (COLUMNNAME_ContactDescription, ContactDescription); + } + + /** Get Contact Description. + @return Description of Contact + */ + public String getContactDescription () + { + return (String)get_Value(COLUMNNAME_ContactDescription); + } + + /** Set Contact Name. + @param ContactName + Business Partner Contact Name + */ + public void setContactName (String ContactName) + { + if (ContactName != null && ContactName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ContactName = ContactName.substring(0, 59); + } + set_Value (COLUMNNAME_ContactName, ContactName); + } + + /** Get Contact Name. + @return Business Partner Contact Name + */ + public String getContactName () + { + return (String)get_Value(COLUMNNAME_ContactName); + } + + /** Set ISO Country Code. + @param CountryCode + Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode) + { + if (CountryCode != null && CountryCode.length() > 2) + { + log.warning("Length > 2 - truncated"); + CountryCode = CountryCode.substring(0, 1); + } + set_Value (COLUMNNAME_CountryCode, CountryCode); + } + + /** Get ISO Country Code. + @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode () + { + return (String)get_Value(COLUMNNAME_CountryCode); + } + + /** Set D-U-N-S. + @param DUNS + Dun & Bradstreet Number + */ + public void setDUNS (String DUNS) + { + if (DUNS != null && DUNS.length() > 11) + { + log.warning("Length > 11 - truncated"); + DUNS = DUNS.substring(0, 10); + } + set_Value (COLUMNNAME_DUNS, DUNS); + } + + /** Get D-U-N-S. + @return Dun & Bradstreet Number + */ + public String getDUNS () + { + return (String)get_Value(COLUMNNAME_DUNS); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Fax. + @param Fax + Facsimile number + */ + public void setFax (String Fax) + { + if (Fax != null && Fax.length() > 40) + { + log.warning("Length > 40 - truncated"); + Fax = Fax.substring(0, 39); + } + set_Value (COLUMNNAME_Fax, Fax); + } + + /** Get Fax. + @return Facsimile number + */ + public String getFax () + { + return (String)get_Value(COLUMNNAME_Fax); + } + + /** Set Group Key. + @param GroupValue + Business Partner Group Key + */ + public void setGroupValue (String GroupValue) + { + if (GroupValue != null && GroupValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + GroupValue = GroupValue.substring(0, 39); + } + set_Value (COLUMNNAME_GroupValue, GroupValue); + } + + /** Get Group Key. + @return Business Partner Group Key + */ + public String getGroupValue () + { + return (String)get_Value(COLUMNNAME_GroupValue); + } + + /** Set Import Business Partner. + @param I_BPartner_ID Import Business Partner */ + public void setI_BPartner_ID (int I_BPartner_ID) + { + if (I_BPartner_ID < 1) + throw new IllegalArgumentException ("I_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_BPartner_ID, Integer.valueOf(I_BPartner_ID)); + } + + /** Get Import Business Partner. +@return Import Business Partner */ + public int getI_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Interest Area. + @param InterestAreaName + Name of the Interest Area + */ + public void setInterestAreaName (String InterestAreaName) + { + if (InterestAreaName != null && InterestAreaName.length() > 40) + { + log.warning("Length > 40 - truncated"); + InterestAreaName = InterestAreaName.substring(0, 39); + } + set_Value (COLUMNNAME_InterestAreaName, InterestAreaName); + } + + /** Get Interest Area. + @return Name of the Interest Area + */ + public String getInterestAreaName () + { + return (String)get_Value(COLUMNNAME_InterestAreaName); + } + + /** Set NAICS/SIC. + @param NAICS + Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS) + { + if (NAICS != null && NAICS.length() > 6) + { + log.warning("Length > 6 - truncated"); + NAICS = NAICS.substring(0, 5); + } + set_Value (COLUMNNAME_NAICS, NAICS); + } + + /** Get NAICS/SIC. + @return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS () + { + return (String)get_Value(COLUMNNAME_NAICS); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Name 2. + @param Name2 + Additional Name + */ + public void setName2 (String Name2) + { + if (Name2 != null && Name2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name2 = Name2.substring(0, 59); + } + set_Value (COLUMNNAME_Name2, Name2); + } + + /** Get Name 2. + @return Additional Name + */ + public String getName2 () + { + return (String)get_Value(COLUMNNAME_Name2); + } + + /** Set Password. + @param Password + Password of any length (case sensitive) + */ + public void setPassword (String Password) + { + if (Password != null && Password.length() > 20) + { + log.warning("Length > 20 - truncated"); + Password = Password.substring(0, 19); + } + set_Value (COLUMNNAME_Password, Password); + } + + /** Get Password. + @return Password of any length (case sensitive) + */ + public String getPassword () + { + return (String)get_Value(COLUMNNAME_Password); + } + + /** Set Phone. + @param Phone + Identifies a telephone number + */ + public void setPhone (String Phone) + { + if (Phone != null && Phone.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone = Phone.substring(0, 39); + } + set_Value (COLUMNNAME_Phone, Phone); + } + + /** Get Phone. + @return Identifies a telephone number + */ + public String getPhone () + { + return (String)get_Value(COLUMNNAME_Phone); + } + + /** Set 2nd Phone. + @param Phone2 + Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2) + { + if (Phone2 != null && Phone2.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone2 = Phone2.substring(0, 39); + } + set_Value (COLUMNNAME_Phone2, Phone2); + } + + /** Get 2nd Phone. + @return Identifies an alternate telephone number. + */ + public String getPhone2 () + { + return (String)get_Value(COLUMNNAME_Phone2); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal != null && Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_Value (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } + + /** Set -. + @param Postal_Add + Additional ZIP or Postal code + */ + public void setPostal_Add (String Postal_Add) + { + if (Postal_Add != null && Postal_Add.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal_Add = Postal_Add.substring(0, 9); + } + set_Value (COLUMNNAME_Postal_Add, Postal_Add); + } + + /** Get -. + @return Additional ZIP or Postal code + */ + public String getPostal_Add () + { + return (String)get_Value(COLUMNNAME_Postal_Add); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_R_InterestArea getI_R_InterestArea() throws Exception + { + 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 e; + } + return result; + } + + /** Set Interest Area. + @param R_InterestArea_ID + Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID) + { + if (R_InterestArea_ID <= 0) set_Value (COLUMNNAME_R_InterestArea_ID, null); + else + set_Value (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); + } + + /** Get Interest Area. + @return Interest Area or Topic + */ + public int getR_InterestArea_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_InterestArea_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Region. + @param RegionName + Name of the Region + */ + public void setRegionName (String RegionName) + { + if (RegionName != null && RegionName.length() > 60) + { + log.warning("Length > 60 - truncated"); + RegionName = RegionName.substring(0, 59); + } + set_Value (COLUMNNAME_RegionName, RegionName); + } + + /** Get Region. + @return Name of the Region + */ + public String getRegionName () + { + return (String)get_Value(COLUMNNAME_RegionName); + } + + /** Set Tax ID. + @param TaxID + Tax Identification + */ + public void setTaxID (String TaxID) + { + if (TaxID != null && TaxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + TaxID = TaxID.substring(0, 19); + } + set_Value (COLUMNNAME_TaxID, TaxID); + } + + /** Get Tax ID. + @return Tax Identification + */ + public String getTaxID () + { + return (String)get_Value(COLUMNNAME_TaxID); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title != null && Title.length() > 40) + { + log.warning("Length > 40 - truncated"); + Title = Title.substring(0, 39); + } + set_Value (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value != null && Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_BankStatement.java b/base/src/org/compiere/model/X_I_BankStatement.java index b4ca39ca4d..4d00803064 100644 --- a/base/src/org/compiere/model/X_I_BankStatement.java +++ b/base/src/org/compiere/model/X_I_BankStatement.java @@ -1,1016 +1,1204 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_BankStatement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_BankStatement extends PO -{ -/** Standard Constructor -@param ctx context -@param I_BankStatement_ID id -@param trxName transaction -*/ -public X_I_BankStatement (Properties ctx, int I_BankStatement_ID, String trxName) -{ -super (ctx, I_BankStatement_ID, trxName); -/** if (I_BankStatement_ID == 0) -{ -setI_BankStatement_ID (0); -setI_IsImported (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_BankStatement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_BankStatement */ -public static final String Table_Name="I_BankStatement"; - -/** AD_Table_ID=600 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_BankStatement[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner Key. -@param BPartnerValue Key of the Business Partner */ -public void setBPartnerValue (String BPartnerValue) -{ -if (BPartnerValue != null && BPartnerValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BPartnerValue = BPartnerValue.substring(0,39); -} -set_Value ("BPartnerValue", BPartnerValue); -} -/** Get Business Partner Key. -@return Key of the Business Partner */ -public String getBPartnerValue() -{ -return (String)get_Value("BPartnerValue"); -} -/** Column name BPartnerValue */ -public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; -/** Set Bank Account No. -@param BankAccountNo Bank Account Number */ -public void setBankAccountNo (String BankAccountNo) -{ -if (BankAccountNo != null && BankAccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -BankAccountNo = BankAccountNo.substring(0,19); -} -set_Value ("BankAccountNo", BankAccountNo); -} -/** Get Bank Account No. -@return Bank Account Number */ -public String getBankAccountNo() -{ -return (String)get_Value("BankAccountNo"); -} -/** Column name BankAccountNo */ -public static final String COLUMNNAME_BankAccountNo = "BankAccountNo"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID <= 0) set_Value ("C_BankAccount_ID", null); - else -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Bank statement line. -@param C_BankStatementLine_ID Line on a statement from this Bank */ -public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) -{ -if (C_BankStatementLine_ID <= 0) set_Value ("C_BankStatementLine_ID", null); - else -set_Value ("C_BankStatementLine_ID", Integer.valueOf(C_BankStatementLine_ID)); -} -/** Get Bank statement line. -@return Line on a statement from this Bank */ -public int getC_BankStatementLine_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatementLine_ID */ -public static final String COLUMNNAME_C_BankStatementLine_ID = "C_BankStatementLine_ID"; -/** Set Bank Statement. -@param C_BankStatement_ID Bank Statement of account */ -public void setC_BankStatement_ID (int C_BankStatement_ID) -{ -if (C_BankStatement_ID <= 0) set_Value ("C_BankStatement_ID", null); - else -set_Value ("C_BankStatement_ID", Integer.valueOf(C_BankStatement_ID)); -} -/** Get Bank Statement. -@return Bank Statement of account */ -public int getC_BankStatement_ID() -{ -Integer ii = (Integer)get_Value("C_BankStatement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankStatement_ID */ -public static final String COLUMNNAME_C_BankStatement_ID = "C_BankStatement_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Charge Name. -@param ChargeName Name of the Charge */ -public void setChargeName (String ChargeName) -{ -if (ChargeName != null && ChargeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ChargeName = ChargeName.substring(0,59); -} -set_Value ("ChargeName", ChargeName); -} -/** Get Charge Name. -@return Name of the Charge */ -public String getChargeName() -{ -return (String)get_Value("ChargeName"); -} -/** Column name ChargeName */ -public static final String COLUMNNAME_ChargeName = "ChargeName"; -/** Set Create Payment. -@param CreatePayment Create Payment */ -public void setCreatePayment (String CreatePayment) -{ -if (CreatePayment != null && CreatePayment.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreatePayment = CreatePayment.substring(0,0); -} -set_Value ("CreatePayment", CreatePayment); -} -/** Get Create Payment. -@return Create Payment */ -public String getCreatePayment() -{ -return (String)get_Value("CreatePayment"); -} -/** Column name CreatePayment */ -public static final String COLUMNNAME_CreatePayment = "CreatePayment"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EFT Amount. -@param EftAmt Electronic Funds Transfer Amount */ -public void setEftAmt (BigDecimal EftAmt) -{ -set_Value ("EftAmt", EftAmt); -} -/** Get EFT Amount. -@return Electronic Funds Transfer Amount */ -public BigDecimal getEftAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("EftAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name EftAmt */ -public static final String COLUMNNAME_EftAmt = "EftAmt"; -/** Set EFT Check No. -@param EftCheckNo Electronic Funds Transfer Check No */ -public void setEftCheckNo (String EftCheckNo) -{ -if (EftCheckNo != null && EftCheckNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EftCheckNo = EftCheckNo.substring(0,19); -} -set_Value ("EftCheckNo", EftCheckNo); -} -/** Get EFT Check No. -@return Electronic Funds Transfer Check No */ -public String getEftCheckNo() -{ -return (String)get_Value("EftCheckNo"); -} -/** Column name EftCheckNo */ -public static final String COLUMNNAME_EftCheckNo = "EftCheckNo"; -/** Set EFT Currency. -@param EftCurrency Electronic Funds Transfer Currency */ -public void setEftCurrency (String EftCurrency) -{ -if (EftCurrency != null && EftCurrency.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EftCurrency = EftCurrency.substring(0,19); -} -set_Value ("EftCurrency", EftCurrency); -} -/** Get EFT Currency. -@return Electronic Funds Transfer Currency */ -public String getEftCurrency() -{ -return (String)get_Value("EftCurrency"); -} -/** Column name EftCurrency */ -public static final String COLUMNNAME_EftCurrency = "EftCurrency"; -/** Set EFT Memo. -@param EftMemo Electronic Funds Transfer Memo */ -public void setEftMemo (String EftMemo) -{ -if (EftMemo != null && EftMemo.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -EftMemo = EftMemo.substring(0,1999); -} -set_Value ("EftMemo", EftMemo); -} -/** Get EFT Memo. -@return Electronic Funds Transfer Memo */ -public String getEftMemo() -{ -return (String)get_Value("EftMemo"); -} -/** Column name EftMemo */ -public static final String COLUMNNAME_EftMemo = "EftMemo"; -/** Set EFT Payee. -@param EftPayee Electronic Funds Transfer Payee information */ -public void setEftPayee (String EftPayee) -{ -if (EftPayee != null && EftPayee.length() > 255) -{ -log.warning("Length > 255 - truncated"); -EftPayee = EftPayee.substring(0,254); -} -set_Value ("EftPayee", EftPayee); -} -/** Get EFT Payee. -@return Electronic Funds Transfer Payee information */ -public String getEftPayee() -{ -return (String)get_Value("EftPayee"); -} -/** Column name EftPayee */ -public static final String COLUMNNAME_EftPayee = "EftPayee"; -/** Set EFT Payee Account. -@param EftPayeeAccount Electronic Funds Transfer Payyee Account Information */ -public void setEftPayeeAccount (String EftPayeeAccount) -{ -if (EftPayeeAccount != null && EftPayeeAccount.length() > 40) -{ -log.warning("Length > 40 - truncated"); -EftPayeeAccount = EftPayeeAccount.substring(0,39); -} -set_Value ("EftPayeeAccount", EftPayeeAccount); -} -/** Get EFT Payee Account. -@return Electronic Funds Transfer Payyee Account Information */ -public String getEftPayeeAccount() -{ -return (String)get_Value("EftPayeeAccount"); -} -/** Column name EftPayeeAccount */ -public static final String COLUMNNAME_EftPayeeAccount = "EftPayeeAccount"; -/** Set EFT Reference. -@param EftReference Electronic Funds Transfer Reference */ -public void setEftReference (String EftReference) -{ -if (EftReference != null && EftReference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EftReference = EftReference.substring(0,59); -} -set_Value ("EftReference", EftReference); -} -/** Get EFT Reference. -@return Electronic Funds Transfer Reference */ -public String getEftReference() -{ -return (String)get_Value("EftReference"); -} -/** Column name EftReference */ -public static final String COLUMNNAME_EftReference = "EftReference"; -/** Set EFT Statement Date. -@param EftStatementDate Electronic Funds Transfer Statement Date */ -public void setEftStatementDate (Timestamp EftStatementDate) -{ -set_Value ("EftStatementDate", EftStatementDate); -} -/** Get EFT Statement Date. -@return Electronic Funds Transfer Statement Date */ -public Timestamp getEftStatementDate() -{ -return (Timestamp)get_Value("EftStatementDate"); -} -/** Column name EftStatementDate */ -public static final String COLUMNNAME_EftStatementDate = "EftStatementDate"; -/** Set EFT Statement Line Date. -@param EftStatementLineDate Electronic Funds Transfer Statement Line Date */ -public void setEftStatementLineDate (Timestamp EftStatementLineDate) -{ -set_Value ("EftStatementLineDate", EftStatementLineDate); -} -/** Get EFT Statement Line Date. -@return Electronic Funds Transfer Statement Line Date */ -public Timestamp getEftStatementLineDate() -{ -return (Timestamp)get_Value("EftStatementLineDate"); -} -/** Column name EftStatementLineDate */ -public static final String COLUMNNAME_EftStatementLineDate = "EftStatementLineDate"; -/** Set EFT Statement Reference. -@param EftStatementReference Electronic Funds Transfer Statement Reference */ -public void setEftStatementReference (String EftStatementReference) -{ -if (EftStatementReference != null && EftStatementReference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EftStatementReference = EftStatementReference.substring(0,59); -} -set_Value ("EftStatementReference", EftStatementReference); -} -/** Get EFT Statement Reference. -@return Electronic Funds Transfer Statement Reference */ -public String getEftStatementReference() -{ -return (String)get_Value("EftStatementReference"); -} -/** Column name EftStatementReference */ -public static final String COLUMNNAME_EftStatementReference = "EftStatementReference"; -/** Set EFT Trx ID. -@param EftTrxID Electronic Funds Transfer Transaction ID */ -public void setEftTrxID (String EftTrxID) -{ -if (EftTrxID != null && EftTrxID.length() > 40) -{ -log.warning("Length > 40 - truncated"); -EftTrxID = EftTrxID.substring(0,39); -} -set_Value ("EftTrxID", EftTrxID); -} -/** Get EFT Trx ID. -@return Electronic Funds Transfer Transaction ID */ -public String getEftTrxID() -{ -return (String)get_Value("EftTrxID"); -} -/** Column name EftTrxID */ -public static final String COLUMNNAME_EftTrxID = "EftTrxID"; -/** Set EFT Trx Type. -@param EftTrxType Electronic Funds Transfer Transaction Type */ -public void setEftTrxType (String EftTrxType) -{ -if (EftTrxType != null && EftTrxType.length() > 20) -{ -log.warning("Length > 20 - truncated"); -EftTrxType = EftTrxType.substring(0,19); -} -set_Value ("EftTrxType", EftTrxType); -} -/** Get EFT Trx Type. -@return Electronic Funds Transfer Transaction Type */ -public String getEftTrxType() -{ -return (String)get_Value("EftTrxType"); -} -/** Column name EftTrxType */ -public static final String COLUMNNAME_EftTrxType = "EftTrxType"; -/** Set EFT Effective Date. -@param EftValutaDate Electronic Funds Transfer Valuta (effective) Date */ -public void setEftValutaDate (Timestamp EftValutaDate) -{ -set_Value ("EftValutaDate", EftValutaDate); -} -/** Get EFT Effective Date. -@return Electronic Funds Transfer Valuta (effective) Date */ -public Timestamp getEftValutaDate() -{ -return (Timestamp)get_Value("EftValutaDate"); -} -/** Column name EftValutaDate */ -public static final String COLUMNNAME_EftValutaDate = "EftValutaDate"; -/** Set ISO Currency Code. -@param ISO_Code Three letter ISO 4217 Code of the Currency */ -public void setISO_Code (String ISO_Code) -{ -if (ISO_Code != null && ISO_Code.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code = ISO_Code.substring(0,2); -} -set_Value ("ISO_Code", ISO_Code); -} -/** Get ISO Currency Code. -@return Three letter ISO 4217 Code of the Currency */ -public String getISO_Code() -{ -return (String)get_Value("ISO_Code"); -} -/** Column name ISO_Code */ -public static final String COLUMNNAME_ISO_Code = "ISO_Code"; -/** Set Import Bank Statement. -@param I_BankStatement_ID Import of the Bank Statement */ -public void setI_BankStatement_ID (int I_BankStatement_ID) -{ -if (I_BankStatement_ID < 1) throw new IllegalArgumentException ("I_BankStatement_ID is mandatory."); -set_ValueNoCheck ("I_BankStatement_ID", Integer.valueOf(I_BankStatement_ID)); -} -/** Get Import Bank Statement. -@return Import of the Bank Statement */ -public int getI_BankStatement_ID() -{ -Integer ii = (Integer)get_Value("I_BankStatement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_BankStatement_ID */ -public static final String COLUMNNAME_I_BankStatement_ID = "I_BankStatement_ID"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Interest Amount. -@param InterestAmt Interest Amount */ -public void setInterestAmt (BigDecimal InterestAmt) -{ -set_Value ("InterestAmt", InterestAmt); -} -/** Get Interest Amount. -@return Interest Amount */ -public BigDecimal getInterestAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InterestAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InterestAmt */ -public static final String COLUMNNAME_InterestAmt = "InterestAmt"; -/** Set Invoice Document No. -@param InvoiceDocumentNo Document Number of the Invoice */ -public void setInvoiceDocumentNo (String InvoiceDocumentNo) -{ -if (InvoiceDocumentNo != null && InvoiceDocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -InvoiceDocumentNo = InvoiceDocumentNo.substring(0,29); -} -set_Value ("InvoiceDocumentNo", InvoiceDocumentNo); -} -/** Get Invoice Document No. -@return Document Number of the Invoice */ -public String getInvoiceDocumentNo() -{ -return (String)get_Value("InvoiceDocumentNo"); -} -/** Column name InvoiceDocumentNo */ -public static final String COLUMNNAME_InvoiceDocumentNo = "InvoiceDocumentNo"; -/** Set Reversal. -@param IsReversal This is a reversing transaction */ -public void setIsReversal (boolean IsReversal) -{ -set_Value ("IsReversal", Boolean.valueOf(IsReversal)); -} -/** Get Reversal. -@return This is a reversing transaction */ -public boolean isReversal() -{ -Object oo = get_Value("IsReversal"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReversal */ -public static final String COLUMNNAME_IsReversal = "IsReversal"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Line Description. -@param LineDescription Description of the Line */ -public void setLineDescription (String LineDescription) -{ -if (LineDescription != null && LineDescription.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LineDescription = LineDescription.substring(0,254); -} -set_Value ("LineDescription", LineDescription); -} -/** Get Line Description. -@return Description of the Line */ -public String getLineDescription() -{ -return (String)get_Value("LineDescription"); -} -/** Column name LineDescription */ -public static final String COLUMNNAME_LineDescription = "LineDescription"; -/** Set Match Statement. -@param MatchStatement Match Statement */ -public void setMatchStatement (String MatchStatement) -{ -if (MatchStatement != null && MatchStatement.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MatchStatement = MatchStatement.substring(0,0); -} -set_Value ("MatchStatement", MatchStatement); -} -/** Get Match Statement. -@return Match Statement */ -public String getMatchStatement() -{ -return (String)get_Value("MatchStatement"); -} -/** Column name MatchStatement */ -public static final String COLUMNNAME_MatchStatement = "MatchStatement"; -/** Set Memo. -@param Memo Memo Text */ -public void setMemo (String Memo) -{ -if (Memo != null && Memo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Memo = Memo.substring(0,254); -} -set_Value ("Memo", Memo); -} -/** Get Memo. -@return Memo Text */ -public String getMemo() -{ -return (String)get_Value("Memo"); -} -/** Column name Memo */ -public static final String COLUMNNAME_Memo = "Memo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Payment Document No. -@param PaymentDocumentNo Document number of the Payment */ -public void setPaymentDocumentNo (String PaymentDocumentNo) -{ -if (PaymentDocumentNo != null && PaymentDocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -PaymentDocumentNo = PaymentDocumentNo.substring(0,29); -} -set_Value ("PaymentDocumentNo", PaymentDocumentNo); -} -/** Get Payment Document No. -@return Document number of the Payment */ -public String getPaymentDocumentNo() -{ -return (String)get_Value("PaymentDocumentNo"); -} -/** Column name PaymentDocumentNo */ -public static final String COLUMNNAME_PaymentDocumentNo = "PaymentDocumentNo"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Reference No. -@param ReferenceNo Your customer or vendor number at the Business Partner's site */ -public void setReferenceNo (String ReferenceNo) -{ -if (ReferenceNo != null && ReferenceNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ReferenceNo = ReferenceNo.substring(0,39); -} -set_Value ("ReferenceNo", ReferenceNo); -} -/** Get Reference No. -@return Your customer or vendor number at the Business Partner's site */ -public String getReferenceNo() -{ -return (String)get_Value("ReferenceNo"); -} -/** Column name ReferenceNo */ -public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; -/** Set Routing No. -@param RoutingNo Bank Routing Number */ -public void setRoutingNo (String RoutingNo) -{ -if (RoutingNo != null && RoutingNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RoutingNo = RoutingNo.substring(0,19); -} -set_Value ("RoutingNo", RoutingNo); -} -/** Get Routing No. -@return Bank Routing Number */ -public String getRoutingNo() -{ -return (String)get_Value("RoutingNo"); -} -/** Column name RoutingNo */ -public static final String COLUMNNAME_RoutingNo = "RoutingNo"; -/** Set Statement date. -@param StatementDate Date of the statement */ -public void setStatementDate (Timestamp StatementDate) -{ -set_Value ("StatementDate", StatementDate); -} -/** Get Statement date. -@return Date of the statement */ -public Timestamp getStatementDate() -{ -return (Timestamp)get_Value("StatementDate"); -} -/** Column name StatementDate */ -public static final String COLUMNNAME_StatementDate = "StatementDate"; -/** Set Statement Line Date. -@param StatementLineDate Date of the Statement Line */ -public void setStatementLineDate (Timestamp StatementLineDate) -{ -set_Value ("StatementLineDate", StatementLineDate); -} -/** Get Statement Line Date. -@return Date of the Statement Line */ -public Timestamp getStatementLineDate() -{ -return (Timestamp)get_Value("StatementLineDate"); -} -/** Column name StatementLineDate */ -public static final String COLUMNNAME_StatementLineDate = "StatementLineDate"; -/** Set Statement amount. -@param StmtAmt Statement Amount */ -public void setStmtAmt (BigDecimal StmtAmt) -{ -set_Value ("StmtAmt", StmtAmt); -} -/** Get Statement amount. -@return Statement Amount */ -public BigDecimal getStmtAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("StmtAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name StmtAmt */ -public static final String COLUMNNAME_StmtAmt = "StmtAmt"; -/** Set Transaction Amount. -@param TrxAmt Amount of a transaction */ -public void setTrxAmt (BigDecimal TrxAmt) -{ -set_Value ("TrxAmt", TrxAmt); -} -/** Get Transaction Amount. -@return Amount of a transaction */ -public BigDecimal getTrxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TrxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TrxAmt */ -public static final String COLUMNNAME_TrxAmt = "TrxAmt"; + +/** Generated Model for I_BankStatement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_BankStatement extends PO implements I_I_BankStatement, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_BankStatement (Properties ctx, int I_BankStatement_ID, String trxName) + { + super (ctx, I_BankStatement_ID, trxName); + /** if (I_BankStatement_ID == 0) { setI_BankStatement_ID (0); + setI_IsImported (false); +} */ + } + + /** Load Constructor */ + public X_I_BankStatement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_BankStatement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner Key. + @param BPartnerValue + Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue) + { + if (BPartnerValue != null && BPartnerValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartnerValue = BPartnerValue.substring(0, 39); + } + set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); + } + + /** Get Business Partner Key. + @return Key of the Business Partner + */ + public String getBPartnerValue () + { + return (String)get_Value(COLUMNNAME_BPartnerValue); + } + + /** Set Bank Account No. + @param BankAccountNo + Bank Account Number + */ + public void setBankAccountNo (String BankAccountNo) + { + if (BankAccountNo != null && BankAccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + BankAccountNo = BankAccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_BankAccountNo, BankAccountNo); + } + + /** Get Bank Account No. + @return Bank Account Number + */ + public String getBankAccountNo () + { + return (String)get_Value(COLUMNNAME_BankAccountNo); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID <= 0) set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank statement line. + @param C_BankStatementLine_ID + Line on a statement from this Bank + */ + public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) + { + if (C_BankStatementLine_ID <= 0) set_Value (COLUMNNAME_C_BankStatementLine_ID, null); + else + set_Value (COLUMNNAME_C_BankStatementLine_ID, Integer.valueOf(C_BankStatementLine_ID)); + } + + /** Get Bank statement line. + @return Line on a statement from this Bank + */ + public int getC_BankStatementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Bank Statement. + @param C_BankStatement_ID + Bank Statement of account + */ + public void setC_BankStatement_ID (int C_BankStatement_ID) + { + if (C_BankStatement_ID <= 0) set_Value (COLUMNNAME_C_BankStatement_ID, null); + else + set_Value (COLUMNNAME_C_BankStatement_ID, Integer.valueOf(C_BankStatement_ID)); + } + + /** Get Bank Statement. + @return Bank Statement of account + */ + public int getC_BankStatement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankStatement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Charge Name. + @param ChargeName + Name of the Charge + */ + public void setChargeName (String ChargeName) + { + if (ChargeName != null && ChargeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ChargeName = ChargeName.substring(0, 59); + } + set_Value (COLUMNNAME_ChargeName, ChargeName); + } + + /** Get Charge Name. + @return Name of the Charge + */ + public String getChargeName () + { + return (String)get_Value(COLUMNNAME_ChargeName); + } + + /** Set Create Payment. + @param CreatePayment Create Payment */ + public void setCreatePayment (String CreatePayment) + { + if (CreatePayment != null && CreatePayment.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreatePayment = CreatePayment.substring(0, 0); + } + set_Value (COLUMNNAME_CreatePayment, CreatePayment); + } + + /** Get Create Payment. +@return Create Payment */ + public String getCreatePayment () + { + return (String)get_Value(COLUMNNAME_CreatePayment); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EFT Amount. + @param EftAmt + Electronic Funds Transfer Amount + */ + public void setEftAmt (BigDecimal EftAmt) + { + set_Value (COLUMNNAME_EftAmt, EftAmt); + } + + /** Get EFT Amount. + @return Electronic Funds Transfer Amount + */ + public BigDecimal getEftAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EftAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set EFT Check No. + @param EftCheckNo + Electronic Funds Transfer Check No + */ + public void setEftCheckNo (String EftCheckNo) + { + if (EftCheckNo != null && EftCheckNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + EftCheckNo = EftCheckNo.substring(0, 19); + } + set_Value (COLUMNNAME_EftCheckNo, EftCheckNo); + } + + /** Get EFT Check No. + @return Electronic Funds Transfer Check No + */ + public String getEftCheckNo () + { + return (String)get_Value(COLUMNNAME_EftCheckNo); + } + + /** Set EFT Currency. + @param EftCurrency + Electronic Funds Transfer Currency + */ + public void setEftCurrency (String EftCurrency) + { + if (EftCurrency != null && EftCurrency.length() > 20) + { + log.warning("Length > 20 - truncated"); + EftCurrency = EftCurrency.substring(0, 19); + } + set_Value (COLUMNNAME_EftCurrency, EftCurrency); + } + + /** Get EFT Currency. + @return Electronic Funds Transfer Currency + */ + public String getEftCurrency () + { + return (String)get_Value(COLUMNNAME_EftCurrency); + } + + /** Set EFT Memo. + @param EftMemo + Electronic Funds Transfer Memo + */ + public void setEftMemo (String EftMemo) + { + if (EftMemo != null && EftMemo.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + EftMemo = EftMemo.substring(0, 1999); + } + set_Value (COLUMNNAME_EftMemo, EftMemo); + } + + /** Get EFT Memo. + @return Electronic Funds Transfer Memo + */ + public String getEftMemo () + { + return (String)get_Value(COLUMNNAME_EftMemo); + } + + /** Set EFT Payee. + @param EftPayee + Electronic Funds Transfer Payee information + */ + public void setEftPayee (String EftPayee) + { + if (EftPayee != null && EftPayee.length() > 255) + { + log.warning("Length > 255 - truncated"); + EftPayee = EftPayee.substring(0, 254); + } + set_Value (COLUMNNAME_EftPayee, EftPayee); + } + + /** Get EFT Payee. + @return Electronic Funds Transfer Payee information + */ + public String getEftPayee () + { + return (String)get_Value(COLUMNNAME_EftPayee); + } + + /** Set EFT Payee Account. + @param EftPayeeAccount + Electronic Funds Transfer Payyee Account Information + */ + public void setEftPayeeAccount (String EftPayeeAccount) + { + if (EftPayeeAccount != null && EftPayeeAccount.length() > 40) + { + log.warning("Length > 40 - truncated"); + EftPayeeAccount = EftPayeeAccount.substring(0, 39); + } + set_Value (COLUMNNAME_EftPayeeAccount, EftPayeeAccount); + } + + /** Get EFT Payee Account. + @return Electronic Funds Transfer Payyee Account Information + */ + public String getEftPayeeAccount () + { + return (String)get_Value(COLUMNNAME_EftPayeeAccount); + } + + /** Set EFT Reference. + @param EftReference + Electronic Funds Transfer Reference + */ + public void setEftReference (String EftReference) + { + if (EftReference != null && EftReference.length() > 60) + { + log.warning("Length > 60 - truncated"); + EftReference = EftReference.substring(0, 59); + } + set_Value (COLUMNNAME_EftReference, EftReference); + } + + /** Get EFT Reference. + @return Electronic Funds Transfer Reference + */ + public String getEftReference () + { + return (String)get_Value(COLUMNNAME_EftReference); + } + + /** Set EFT Statement Date. + @param EftStatementDate + Electronic Funds Transfer Statement Date + */ + public void setEftStatementDate (Timestamp EftStatementDate) + { + set_Value (COLUMNNAME_EftStatementDate, EftStatementDate); + } + + /** Get EFT Statement Date. + @return Electronic Funds Transfer Statement Date + */ + public Timestamp getEftStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_EftStatementDate); + } + + /** Set EFT Statement Line Date. + @param EftStatementLineDate + Electronic Funds Transfer Statement Line Date + */ + public void setEftStatementLineDate (Timestamp EftStatementLineDate) + { + set_Value (COLUMNNAME_EftStatementLineDate, EftStatementLineDate); + } + + /** Get EFT Statement Line Date. + @return Electronic Funds Transfer Statement Line Date + */ + public Timestamp getEftStatementLineDate () + { + return (Timestamp)get_Value(COLUMNNAME_EftStatementLineDate); + } + + /** Set EFT Statement Reference. + @param EftStatementReference + Electronic Funds Transfer Statement Reference + */ + public void setEftStatementReference (String EftStatementReference) + { + if (EftStatementReference != null && EftStatementReference.length() > 60) + { + log.warning("Length > 60 - truncated"); + EftStatementReference = EftStatementReference.substring(0, 59); + } + set_Value (COLUMNNAME_EftStatementReference, EftStatementReference); + } + + /** Get EFT Statement Reference. + @return Electronic Funds Transfer Statement Reference + */ + public String getEftStatementReference () + { + return (String)get_Value(COLUMNNAME_EftStatementReference); + } + + /** Set EFT Trx ID. + @param EftTrxID + Electronic Funds Transfer Transaction ID + */ + public void setEftTrxID (String EftTrxID) + { + if (EftTrxID != null && EftTrxID.length() > 40) + { + log.warning("Length > 40 - truncated"); + EftTrxID = EftTrxID.substring(0, 39); + } + set_Value (COLUMNNAME_EftTrxID, EftTrxID); + } + + /** Get EFT Trx ID. + @return Electronic Funds Transfer Transaction ID + */ + public String getEftTrxID () + { + return (String)get_Value(COLUMNNAME_EftTrxID); + } + + /** Set EFT Trx Type. + @param EftTrxType + Electronic Funds Transfer Transaction Type + */ + public void setEftTrxType (String EftTrxType) + { + if (EftTrxType != null && EftTrxType.length() > 20) + { + log.warning("Length > 20 - truncated"); + EftTrxType = EftTrxType.substring(0, 19); + } + set_Value (COLUMNNAME_EftTrxType, EftTrxType); + } + + /** Get EFT Trx Type. + @return Electronic Funds Transfer Transaction Type + */ + public String getEftTrxType () + { + return (String)get_Value(COLUMNNAME_EftTrxType); + } + + /** Set EFT Effective Date. + @param EftValutaDate + Electronic Funds Transfer Valuta (effective) Date + */ + public void setEftValutaDate (Timestamp EftValutaDate) + { + set_Value (COLUMNNAME_EftValutaDate, EftValutaDate); + } + + /** Get EFT Effective Date. + @return Electronic Funds Transfer Valuta (effective) Date + */ + public Timestamp getEftValutaDate () + { + return (Timestamp)get_Value(COLUMNNAME_EftValutaDate); + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + if (ISO_Code != null && ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Set Import Bank Statement. + @param I_BankStatement_ID + Import of the Bank Statement + */ + public void setI_BankStatement_ID (int I_BankStatement_ID) + { + if (I_BankStatement_ID < 1) + throw new IllegalArgumentException ("I_BankStatement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_BankStatement_ID, Integer.valueOf(I_BankStatement_ID)); + } + + /** Get Import Bank Statement. + @return Import of the Bank Statement + */ + public int getI_BankStatement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_BankStatement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Interest Amount. + @param InterestAmt + Interest Amount + */ + public void setInterestAmt (BigDecimal InterestAmt) + { + set_Value (COLUMNNAME_InterestAmt, InterestAmt); + } + + /** Get Interest Amount. + @return Interest Amount + */ + public BigDecimal getInterestAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InterestAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice Document No. + @param InvoiceDocumentNo + Document Number of the Invoice + */ + public void setInvoiceDocumentNo (String InvoiceDocumentNo) + { + if (InvoiceDocumentNo != null && InvoiceDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + InvoiceDocumentNo = InvoiceDocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_InvoiceDocumentNo, InvoiceDocumentNo); + } + + /** Get Invoice Document No. + @return Document Number of the Invoice + */ + public String getInvoiceDocumentNo () + { + return (String)get_Value(COLUMNNAME_InvoiceDocumentNo); + } + + /** Set Reversal. + @param IsReversal + This is a reversing transaction + */ + public void setIsReversal (boolean IsReversal) + { + set_Value (COLUMNNAME_IsReversal, Boolean.valueOf(IsReversal)); + } + + /** Get Reversal. + @return This is a reversing transaction + */ + public boolean isReversal () + { + Object oo = get_Value(COLUMNNAME_IsReversal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line Description. + @param LineDescription + Description of the Line + */ + public void setLineDescription (String LineDescription) + { + if (LineDescription != null && LineDescription.length() > 255) + { + log.warning("Length > 255 - truncated"); + LineDescription = LineDescription.substring(0, 254); + } + set_Value (COLUMNNAME_LineDescription, LineDescription); + } + + /** Get Line Description. + @return Description of the Line + */ + public String getLineDescription () + { + return (String)get_Value(COLUMNNAME_LineDescription); + } + + /** Set Match Statement. + @param MatchStatement Match Statement */ + public void setMatchStatement (String MatchStatement) + { + if (MatchStatement != null && MatchStatement.length() > 1) + { + log.warning("Length > 1 - truncated"); + MatchStatement = MatchStatement.substring(0, 0); + } + set_Value (COLUMNNAME_MatchStatement, MatchStatement); + } + + /** Get Match Statement. +@return Match Statement */ + public String getMatchStatement () + { + return (String)get_Value(COLUMNNAME_MatchStatement); + } + + /** Set Memo. + @param Memo + Memo Text + */ + public void setMemo (String Memo) + { + if (Memo != null && Memo.length() > 255) + { + log.warning("Length > 255 - truncated"); + Memo = Memo.substring(0, 254); + } + set_Value (COLUMNNAME_Memo, Memo); + } + + /** Get Memo. + @return Memo Text + */ + public String getMemo () + { + return (String)get_Value(COLUMNNAME_Memo); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Payment Document No. + @param PaymentDocumentNo + Document number of the Payment + */ + public void setPaymentDocumentNo (String PaymentDocumentNo) + { + if (PaymentDocumentNo != null && PaymentDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + PaymentDocumentNo = PaymentDocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_PaymentDocumentNo, PaymentDocumentNo); + } + + /** Get Payment Document No. + @return Document number of the Payment + */ + public String getPaymentDocumentNo () + { + return (String)get_Value(COLUMNNAME_PaymentDocumentNo); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reference No. + @param ReferenceNo + Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo) + { + if (ReferenceNo != null && ReferenceNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + ReferenceNo = ReferenceNo.substring(0, 39); + } + set_Value (COLUMNNAME_ReferenceNo, ReferenceNo); + } + + /** Get Reference No. + @return Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo () + { + return (String)get_Value(COLUMNNAME_ReferenceNo); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + if (RoutingNo != null && RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 19); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } + + /** Set Statement date. + @param StatementDate + Date of the statement + */ + public void setStatementDate (Timestamp StatementDate) + { + set_Value (COLUMNNAME_StatementDate, StatementDate); + } + + /** Get Statement date. + @return Date of the statement + */ + public Timestamp getStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementDate); + } + + /** Set Statement Line Date. + @param StatementLineDate + Date of the Statement Line + */ + public void setStatementLineDate (Timestamp StatementLineDate) + { + set_Value (COLUMNNAME_StatementLineDate, StatementLineDate); + } + + /** Get Statement Line Date. + @return Date of the Statement Line + */ + public Timestamp getStatementLineDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementLineDate); + } + + /** Set Statement amount. + @param StmtAmt + Statement Amount + */ + public void setStmtAmt (BigDecimal StmtAmt) + { + set_Value (COLUMNNAME_StmtAmt, StmtAmt); + } + + /** Get Statement amount. + @return Statement Amount + */ + public BigDecimal getStmtAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_StmtAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Transaction Amount. + @param TrxAmt + Amount of a transaction + */ + public void setTrxAmt (BigDecimal TrxAmt) + { + set_Value (COLUMNNAME_TrxAmt, TrxAmt); + } + + /** Get Transaction Amount. + @return Amount of a transaction + */ + public BigDecimal getTrxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TrxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** TrxType AD_Reference_ID=215 */ -public static final int TRXTYPE_AD_Reference_ID=215; -/** Authorization = A */ -public static final String TRXTYPE_Authorization = "A"; -/** Credit (Payment) = C */ -public static final String TRXTYPE_CreditPayment = "C"; -/** Delayed Capture = D */ -public static final String TRXTYPE_DelayedCapture = "D"; -/** Voice Authorization = F */ -public static final String TRXTYPE_VoiceAuthorization = "F"; -/** Sales = S */ -public static final String TRXTYPE_Sales = "S"; -/** Void = V */ +public static final int TRXTYPE_AD_Reference_ID=215;/** Authorization = A */ +public static final String TRXTYPE_Authorization = "A";/** Credit (Payment) = C */ +public static final String TRXTYPE_CreditPayment = "C";/** Delayed Capture = D */ +public static final String TRXTYPE_DelayedCapture = "D";/** Voice Authorization = F */ +public static final String TRXTYPE_VoiceAuthorization = "F";/** Sales = S */ +public static final String TRXTYPE_Sales = "S";/** Void = V */ public static final String TRXTYPE_Void = "V"; -/** Set Transaction Type. -@param TrxType Type of credit card transaction */ -public void setTrxType (String TrxType) -{ -if (TrxType == null || TrxType.equals("A") || TrxType.equals("C") || TrxType.equals("D") || TrxType.equals("F") || TrxType.equals("S") || TrxType.equals("V")); - else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - A - C - D - F - S - V"); -if (TrxType != null && TrxType.length() > 20) -{ -log.warning("Length > 20 - truncated"); -TrxType = TrxType.substring(0,19); -} -set_Value ("TrxType", TrxType); -} -/** Get Transaction Type. -@return Type of credit card transaction */ -public String getTrxType() -{ -return (String)get_Value("TrxType"); -} -/** Column name TrxType */ -public static final String COLUMNNAME_TrxType = "TrxType"; -/** Set Effective date. -@param ValutaDate Date when money is available */ -public void setValutaDate (Timestamp ValutaDate) -{ -set_Value ("ValutaDate", ValutaDate); -} -/** Get Effective date. -@return Date when money is available */ -public Timestamp getValutaDate() -{ -return (Timestamp)get_Value("ValutaDate"); -} -/** Column name ValutaDate */ -public static final String COLUMNNAME_ValutaDate = "ValutaDate"; -} + /** Set Transaction Type. + @param TrxType + Type of credit card transaction + */ + public void setTrxType (String TrxType) + { +if (TrxType == null || TrxType.equals("A") || TrxType.equals("C") || TrxType.equals("D") || TrxType.equals("F") || TrxType.equals("S") || TrxType.equals("V")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - A - C - D - F - S - V"); if (TrxType != null && TrxType.length() > 20) + { + log.warning("Length > 20 - truncated"); + TrxType = TrxType.substring(0, 19); + } + set_Value (COLUMNNAME_TrxType, TrxType); + } + + /** Get Transaction Type. + @return Type of credit card transaction + */ + public String getTrxType () + { + return (String)get_Value(COLUMNNAME_TrxType); + } + + /** Set Effective date. + @param ValutaDate + Date when money is available + */ + public void setValutaDate (Timestamp ValutaDate) + { + set_Value (COLUMNNAME_ValutaDate, ValutaDate); + } + + /** Get Effective date. + @return Date when money is available + */ + public Timestamp getValutaDate () + { + return (Timestamp)get_Value(COLUMNNAME_ValutaDate); + } +} \ No newline at end of file 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 d684fc2837..b721b7d55b 100644 --- a/base/src/org/compiere/model/X_I_Conversion_Rate.java +++ b/base/src/org/compiere/model/X_I_Conversion_Rate.java @@ -1,400 +1,494 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_Conversion_Rate - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_Conversion_Rate extends PO + +/** Generated Model for I_Conversion_Rate + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_Conversion_Rate extends PO implements I_I_Conversion_Rate, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_Conversion_Rate_ID id -@param trxName transaction -*/ -public X_I_Conversion_Rate (Properties ctx, int I_Conversion_Rate_ID, String trxName) -{ -super (ctx, I_Conversion_Rate_ID, trxName); -/** if (I_Conversion_Rate_ID == 0) -{ -setI_Conversion_Rate_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_Conversion_Rate (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_Conversion_Rate */ -public static final String Table_Name="I_Conversion_Rate"; - -/** AD_Table_ID=641 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_Conversion_Rate[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID <= 0) set_Value ("C_ConversionType_ID", null); - else -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Conversion Rate. -@param C_Conversion_Rate_ID Rate used for converting currencies */ -public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID) -{ -if (C_Conversion_Rate_ID <= 0) set_Value ("C_Conversion_Rate_ID", null); - else -set_Value ("C_Conversion_Rate_ID", Integer.valueOf(C_Conversion_Rate_ID)); -} -/** Get Conversion Rate. -@return Rate used for converting currencies */ -public int getC_Conversion_Rate_ID() -{ -Integer ii = (Integer)get_Value("C_Conversion_Rate_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Conversion_Rate_ID */ -public static final String COLUMNNAME_C_Conversion_Rate_ID = "C_Conversion_Rate_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Conversion_Rate (Properties ctx, int I_Conversion_Rate_ID, String trxName) + { + super (ctx, I_Conversion_Rate_ID, trxName); + /** if (I_Conversion_Rate_ID == 0) { setI_Conversion_Rate_ID (0); +} */ + } + + /** Load Constructor */ + public X_I_Conversion_Rate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_Conversion_Rate[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Conversion_Rate getI_C_Conversion_Rate() throws Exception + { + 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 e; + } + return result; + } + + /** Set Conversion Rate. + @param C_Conversion_Rate_ID + Rate used for converting currencies + */ + public void setC_Conversion_Rate_ID (int C_Conversion_Rate_ID) + { + if (C_Conversion_Rate_ID <= 0) set_Value (COLUMNNAME_C_Conversion_Rate_ID, null); + else + set_Value (COLUMNNAME_C_Conversion_Rate_ID, Integer.valueOf(C_Conversion_Rate_ID)); + } + + /** Get Conversion Rate. + @return Rate used for converting currencies + */ + public int getC_Conversion_Rate_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Conversion_Rate_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Currency_ID_To AD_Reference_ID=112 */ public static final int C_CURRENCY_ID_TO_AD_Reference_ID=112; -/** Set Currency To. -@param C_Currency_ID_To Target currency */ -public void setC_Currency_ID_To (int C_Currency_ID_To) -{ -set_Value ("C_Currency_ID_To", Integer.valueOf(C_Currency_ID_To)); -} -/** Get Currency To. -@return Target currency */ -public int getC_Currency_ID_To() -{ -Integer ii = (Integer)get_Value("C_Currency_ID_To"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID_To */ -public static final String COLUMNNAME_C_Currency_ID_To = "C_Currency_ID_To"; -/** Set Currency Type Key. -@param ConversionTypeValue Key value for the Currency Conversion Rate Type */ -public void setConversionTypeValue (String ConversionTypeValue) -{ -if (ConversionTypeValue != null && ConversionTypeValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ConversionTypeValue = ConversionTypeValue.substring(0,39); -} -set_Value ("ConversionTypeValue", ConversionTypeValue); -} -/** Get Currency Type Key. -@return Key value for the Currency Conversion Rate Type */ -public String getConversionTypeValue() -{ -return (String)get_Value("ConversionTypeValue"); -} -/** Column name ConversionTypeValue */ -public static final String COLUMNNAME_ConversionTypeValue = "ConversionTypeValue"; -/** Set Create Reciprocal Rate. -@param CreateReciprocalRate Create Reciprocal Rate from current information */ -public void setCreateReciprocalRate (boolean CreateReciprocalRate) -{ -set_Value ("CreateReciprocalRate", Boolean.valueOf(CreateReciprocalRate)); -} -/** Get Create Reciprocal Rate. -@return Create Reciprocal Rate from current information */ -public boolean isCreateReciprocalRate() -{ -Object oo = get_Value("CreateReciprocalRate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name CreateReciprocalRate */ -public static final String COLUMNNAME_CreateReciprocalRate = "CreateReciprocalRate"; -/** Set Divide Rate. -@param DivideRate To convert Source number to Target number, the Source is divided */ -public void setDivideRate (BigDecimal DivideRate) -{ -set_Value ("DivideRate", DivideRate); -} -/** Get Divide Rate. -@return To convert Source number to Target number, the Source is divided */ -public BigDecimal getDivideRate() -{ -BigDecimal bd = (BigDecimal)get_Value("DivideRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DivideRate */ -public static final String COLUMNNAME_DivideRate = "DivideRate"; -/** Set ISO Currency Code. -@param ISO_Code Three letter ISO 4217 Code of the Currency */ -public void setISO_Code (String ISO_Code) -{ -if (ISO_Code != null && ISO_Code.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code = ISO_Code.substring(0,2); -} -set_Value ("ISO_Code", ISO_Code); -} -/** Get ISO Currency Code. -@return Three letter ISO 4217 Code of the Currency */ -public String getISO_Code() -{ -return (String)get_Value("ISO_Code"); -} -/** Column name ISO_Code */ -public static final String COLUMNNAME_ISO_Code = "ISO_Code"; -/** Set ISO Currency To Code. -@param ISO_Code_To Three letter ISO 4217 Code of the To Currency */ -public void setISO_Code_To (String ISO_Code_To) -{ -if (ISO_Code_To != null && ISO_Code_To.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code_To = ISO_Code_To.substring(0,2); -} -set_Value ("ISO_Code_To", ISO_Code_To); -} -/** Get ISO Currency To Code. -@return Three letter ISO 4217 Code of the To Currency */ -public String getISO_Code_To() -{ -return (String)get_Value("ISO_Code_To"); -} -/** Column name ISO_Code_To */ -public static final String COLUMNNAME_ISO_Code_To = "ISO_Code_To"; -/** Set Import Conversion Rate. -@param I_Conversion_Rate_ID Import Currency Conversion Rate */ -public void setI_Conversion_Rate_ID (int I_Conversion_Rate_ID) -{ -if (I_Conversion_Rate_ID < 1) throw new IllegalArgumentException ("I_Conversion_Rate_ID is mandatory."); -set_ValueNoCheck ("I_Conversion_Rate_ID", Integer.valueOf(I_Conversion_Rate_ID)); -} -/** Get Import Conversion Rate. -@return Import Currency Conversion Rate */ -public int getI_Conversion_Rate_ID() -{ -Integer ii = (Integer)get_Value("I_Conversion_Rate_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getI_Conversion_Rate_ID())); -} -/** Column name I_Conversion_Rate_ID */ -public static final String COLUMNNAME_I_Conversion_Rate_ID = "I_Conversion_Rate_ID"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Multiply Rate. -@param MultiplyRate Rate to multiple the source by to calculate the target. */ -public void setMultiplyRate (BigDecimal MultiplyRate) -{ -set_Value ("MultiplyRate", MultiplyRate); -} -/** Get Multiply Rate. -@return Rate to multiple the source by to calculate the target. */ -public BigDecimal getMultiplyRate() -{ -BigDecimal bd = (BigDecimal)get_Value("MultiplyRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MultiplyRate */ -public static final String COLUMNNAME_MultiplyRate = "MultiplyRate"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + /** Set Currency To. + @param C_Currency_ID_To + Target currency + */ + public void setC_Currency_ID_To (int C_Currency_ID_To) + { + set_Value (COLUMNNAME_C_Currency_ID_To, Integer.valueOf(C_Currency_ID_To)); + } + + /** Get Currency To. + @return Target currency + */ + public int getC_Currency_ID_To () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID_To); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Currency Type Key. + @param ConversionTypeValue + Key value for the Currency Conversion Rate Type + */ + public void setConversionTypeValue (String ConversionTypeValue) + { + if (ConversionTypeValue != null && ConversionTypeValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ConversionTypeValue = ConversionTypeValue.substring(0, 39); + } + set_Value (COLUMNNAME_ConversionTypeValue, ConversionTypeValue); + } + + /** Get Currency Type Key. + @return Key value for the Currency Conversion Rate Type + */ + public String getConversionTypeValue () + { + return (String)get_Value(COLUMNNAME_ConversionTypeValue); + } + + /** Set Create Reciprocal Rate. + @param CreateReciprocalRate + Create Reciprocal Rate from current information + */ + public void setCreateReciprocalRate (boolean CreateReciprocalRate) + { + set_Value (COLUMNNAME_CreateReciprocalRate, Boolean.valueOf(CreateReciprocalRate)); + } + + /** Get Create Reciprocal Rate. + @return Create Reciprocal Rate from current information + */ + public boolean isCreateReciprocalRate () + { + Object oo = get_Value(COLUMNNAME_CreateReciprocalRate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Divide Rate. + @param DivideRate + To convert Source number to Target number, the Source is divided + */ + public void setDivideRate (BigDecimal DivideRate) + { + set_Value (COLUMNNAME_DivideRate, DivideRate); + } + + /** Get Divide Rate. + @return To convert Source number to Target number, the Source is divided + */ + public BigDecimal getDivideRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DivideRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + if (ISO_Code != null && ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Set ISO Currency To Code. + @param ISO_Code_To + Three letter ISO 4217 Code of the To Currency + */ + public void setISO_Code_To (String ISO_Code_To) + { + if (ISO_Code_To != null && ISO_Code_To.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code_To = ISO_Code_To.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code_To, ISO_Code_To); + } + + /** Get ISO Currency To Code. + @return Three letter ISO 4217 Code of the To Currency + */ + public String getISO_Code_To () + { + return (String)get_Value(COLUMNNAME_ISO_Code_To); + } + + /** Set Import Conversion Rate. + @param I_Conversion_Rate_ID + Import Currency Conversion Rate + */ + public void setI_Conversion_Rate_ID (int I_Conversion_Rate_ID) + { + if (I_Conversion_Rate_ID < 1) + throw new IllegalArgumentException ("I_Conversion_Rate_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Conversion_Rate_ID, Integer.valueOf(I_Conversion_Rate_ID)); + } + + /** Get Import Conversion Rate. + @return Import Currency Conversion Rate + */ + public int getI_Conversion_Rate_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Conversion_Rate_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getI_Conversion_Rate_ID())); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Multiply Rate. + @param MultiplyRate + Rate to multiple the source by to calculate the target. + */ + public void setMultiplyRate (BigDecimal MultiplyRate) + { + set_Value (COLUMNNAME_MultiplyRate, MultiplyRate); + } + + /** Get Multiply Rate. + @return Rate to multiple the source by to calculate the target. + */ + public BigDecimal getMultiplyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MultiplyRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_ElementValue.java b/base/src/org/compiere/model/X_I_ElementValue.java index 61082263af..216c021bbb 100644 --- a/base/src/org/compiere/model/X_I_ElementValue.java +++ b/base/src/org/compiere/model/X_I_ElementValue.java @@ -1,569 +1,652 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_ElementValue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_ElementValue extends PO + +/** Generated Model for I_ElementValue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_ElementValue extends PO implements I_I_ElementValue, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_ElementValue_ID id -@param trxName transaction -*/ -public X_I_ElementValue (Properties ctx, int I_ElementValue_ID, String trxName) -{ -super (ctx, I_ElementValue_ID, trxName); -/** if (I_ElementValue_ID == 0) -{ -setI_ElementValue_ID (0); -setI_IsImported (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_ElementValue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_ElementValue */ -public static final String Table_Name="I_ElementValue"; - -/** AD_Table_ID=534 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_ElementValue[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_ElementValue (Properties ctx, int I_ElementValue_ID, String trxName) + { + super (ctx, I_ElementValue_ID, trxName); + /** if (I_ElementValue_ID == 0) { setI_ElementValue_ID (0); + setI_IsImported (false); +} */ + } + + /** Load Constructor */ + public X_I_ElementValue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_ElementValue[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Column_ID AD_Reference_ID=272 */ public static final int AD_COLUMN_ID_AD_Reference_ID=272; -/** Set Column. -@param AD_Column_ID Column in the table */ -public void setAD_Column_ID (int AD_Column_ID) -{ -if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null); - else -set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID)); -} -/** Get Column. -@return Column in the table */ -public int getAD_Column_ID() -{ -Integer ii = (Integer)get_Value("AD_Column_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Column_ID */ -public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID <= 0) set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AccountSign AD_Reference_ID=118 */ -public static final int ACCOUNTSIGN_AD_Reference_ID=118; -/** Credit = C */ -public static final String ACCOUNTSIGN_Credit = "C"; -/** Debit = D */ -public static final String ACCOUNTSIGN_Debit = "D"; -/** Natural = N */ +public static final int ACCOUNTSIGN_AD_Reference_ID=118;/** Credit = C */ +public static final String ACCOUNTSIGN_Credit = "C";/** Debit = D */ +public static final String ACCOUNTSIGN_Debit = "D";/** Natural = N */ public static final String ACCOUNTSIGN_Natural = "N"; -/** Set Account Sign. -@param AccountSign Indicates the Natural Sign of the Account as a Debit or Credit */ -public void setAccountSign (String AccountSign) -{ -if (AccountSign == null || AccountSign.equals("C") || AccountSign.equals("D") || AccountSign.equals("N")); - else throw new IllegalArgumentException ("AccountSign Invalid value - " + AccountSign + " - Reference_ID=118 - C - D - N"); -if (AccountSign != null && AccountSign.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccountSign = AccountSign.substring(0,0); -} -set_Value ("AccountSign", AccountSign); -} -/** Get Account Sign. -@return Indicates the Natural Sign of the Account as a Debit or Credit */ -public String getAccountSign() -{ -return (String)get_Value("AccountSign"); -} -/** Column name AccountSign */ -public static final String COLUMNNAME_AccountSign = "AccountSign"; + /** Set Account Sign. + @param AccountSign + Indicates the Natural Sign of the Account as a Debit or Credit + */ + public void setAccountSign (String AccountSign) + { +if (AccountSign == null || AccountSign.equals("C") || AccountSign.equals("D") || AccountSign.equals("N")); else throw new IllegalArgumentException ("AccountSign Invalid value - " + AccountSign + " - Reference_ID=118 - C - D - N"); if (AccountSign != null && AccountSign.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccountSign = AccountSign.substring(0, 0); + } + set_Value (COLUMNNAME_AccountSign, AccountSign); + } + + /** Get Account Sign. + @return Indicates the Natural Sign of the Account as a Debit or Credit + */ + public String getAccountSign () + { + return (String)get_Value(COLUMNNAME_AccountSign); + } /** AccountType AD_Reference_ID=117 */ -public static final int ACCOUNTTYPE_AD_Reference_ID=117; -/** Asset = A */ -public static final String ACCOUNTTYPE_Asset = "A"; -/** Expense = E */ -public static final String ACCOUNTTYPE_Expense = "E"; -/** Liability = L */ -public static final String ACCOUNTTYPE_Liability = "L"; -/** Memo = M */ -public static final String ACCOUNTTYPE_Memo = "M"; -/** Owner's Equity = O */ -public static final String ACCOUNTTYPE_OwnerSEquity = "O"; -/** Revenue = R */ +public static final int ACCOUNTTYPE_AD_Reference_ID=117;/** Asset = A */ +public static final String ACCOUNTTYPE_Asset = "A";/** Expense = E */ +public static final String ACCOUNTTYPE_Expense = "E";/** Liability = L */ +public static final String ACCOUNTTYPE_Liability = "L";/** Memo = M */ +public static final String ACCOUNTTYPE_Memo = "M";/** Owner's Equity = O */ +public static final String ACCOUNTTYPE_OwnerSEquity = "O";/** Revenue = R */ public static final String ACCOUNTTYPE_Revenue = "R"; -/** Set Account Type. -@param AccountType Indicates the type of account */ -public void setAccountType (String AccountType) -{ -if (AccountType == null || AccountType.equals("A") || AccountType.equals("E") || AccountType.equals("L") || AccountType.equals("M") || AccountType.equals("O") || AccountType.equals("R")); - else throw new IllegalArgumentException ("AccountType Invalid value - " + AccountType + " - Reference_ID=117 - A - E - L - M - O - R"); -if (AccountType != null && AccountType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccountType = AccountType.substring(0,0); -} -set_Value ("AccountType", AccountType); -} -/** Get Account Type. -@return Indicates the type of account */ -public String getAccountType() -{ -return (String)get_Value("AccountType"); -} -/** Column name AccountType */ -public static final String COLUMNNAME_AccountType = "AccountType"; -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID <= 0) set_Value ("C_ElementValue_ID", null); - else -set_Value ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Element. -@param C_Element_ID Accounting Element */ -public void setC_Element_ID (int C_Element_ID) -{ -if (C_Element_ID <= 0) set_Value ("C_Element_ID", null); - else -set_Value ("C_Element_ID", Integer.valueOf(C_Element_ID)); -} -/** Get Element. -@return Accounting Element */ -public int getC_Element_ID() -{ -Integer ii = (Integer)get_Value("C_Element_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Element_ID */ -public static final String COLUMNNAME_C_Element_ID = "C_Element_ID"; -/** Set Default Account. -@param Default_Account Name of the Default Account Column */ -public void setDefault_Account (String Default_Account) -{ -if (Default_Account != null && Default_Account.length() > 30) -{ -log.warning("Length > 30 - truncated"); -Default_Account = Default_Account.substring(0,29); -} -set_Value ("Default_Account", Default_Account); -} -/** Get Default Account. -@return Name of the Default Account Column */ -public String getDefault_Account() -{ -return (String)get_Value("Default_Account"); -} -/** Column name Default_Account */ -public static final String COLUMNNAME_Default_Account = "Default_Account"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Element Name. -@param ElementName Name of the Element */ -public void setElementName (String ElementName) -{ -if (ElementName != null && ElementName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ElementName = ElementName.substring(0,59); -} -set_Value ("ElementName", ElementName); -} -/** Get Element Name. -@return Name of the Element */ -public String getElementName() -{ -return (String)get_Value("ElementName"); -} -/** Column name ElementName */ -public static final String COLUMNNAME_ElementName = "ElementName"; -/** Set Import Account. -@param I_ElementValue_ID Import Account Value */ -public void setI_ElementValue_ID (int I_ElementValue_ID) -{ -if (I_ElementValue_ID < 1) throw new IllegalArgumentException ("I_ElementValue_ID is mandatory."); -set_ValueNoCheck ("I_ElementValue_ID", Integer.valueOf(I_ElementValue_ID)); -} -/** Get Import Account. -@return Import Account Value */ -public int getI_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("I_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_ElementValue_ID */ -public static final String COLUMNNAME_I_ElementValue_ID = "I_ElementValue_ID"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Document Controlled. -@param IsDocControlled Control account - If an account is controlled by a document, you cannot post manually to it */ -public void setIsDocControlled (boolean IsDocControlled) -{ -set_Value ("IsDocControlled", Boolean.valueOf(IsDocControlled)); -} -/** Get Document Controlled. -@return Control account - If an account is controlled by a document, you cannot post manually to it */ -public boolean isDocControlled() -{ -Object oo = get_Value("IsDocControlled"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDocControlled */ -public static final String COLUMNNAME_IsDocControlled = "IsDocControlled"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Account Type. + @param AccountType + Indicates the type of account + */ + public void setAccountType (String AccountType) + { +if (AccountType == null || AccountType.equals("A") || AccountType.equals("E") || AccountType.equals("L") || AccountType.equals("M") || AccountType.equals("O") || AccountType.equals("R")); else throw new IllegalArgumentException ("AccountType Invalid value - " + AccountType + " - Reference_ID=117 - A - E - L - M - O - R"); if (AccountType != null && AccountType.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccountType = AccountType.substring(0, 0); + } + set_Value (COLUMNNAME_AccountType, AccountType); + } + + /** Get Account Type. + @return Indicates the type of account + */ + public String getAccountType () + { + return (String)get_Value(COLUMNNAME_AccountType); + } + + public I_C_ElementValue getI_C_ElementValue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID <= 0) set_Value (COLUMNNAME_C_ElementValue_ID, null); + else + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Element getI_C_Element() throws Exception + { + 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 e; + } + return result; + } + + /** Set Element. + @param C_Element_ID + Accounting Element + */ + public void setC_Element_ID (int C_Element_ID) + { + if (C_Element_ID <= 0) set_Value (COLUMNNAME_C_Element_ID, null); + else + set_Value (COLUMNNAME_C_Element_ID, Integer.valueOf(C_Element_ID)); + } + + /** Get Element. + @return Accounting Element + */ + public int getC_Element_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Element_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Default Account. + @param Default_Account + Name of the Default Account Column + */ + public void setDefault_Account (String Default_Account) + { + if (Default_Account != null && Default_Account.length() > 30) + { + log.warning("Length > 30 - truncated"); + Default_Account = Default_Account.substring(0, 29); + } + set_Value (COLUMNNAME_Default_Account, Default_Account); + } + + /** Get Default Account. + @return Name of the Default Account Column + */ + public String getDefault_Account () + { + return (String)get_Value(COLUMNNAME_Default_Account); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Element Name. + @param ElementName + Name of the Element + */ + public void setElementName (String ElementName) + { + if (ElementName != null && ElementName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ElementName = ElementName.substring(0, 59); + } + set_Value (COLUMNNAME_ElementName, ElementName); + } + + /** Get Element Name. + @return Name of the Element + */ + public String getElementName () + { + return (String)get_Value(COLUMNNAME_ElementName); + } + + /** Set Import Account. + @param I_ElementValue_ID + Import Account Value + */ + public void setI_ElementValue_ID (int I_ElementValue_ID) + { + if (I_ElementValue_ID < 1) + throw new IllegalArgumentException ("I_ElementValue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_ElementValue_ID, Integer.valueOf(I_ElementValue_ID)); + } + + /** Get Import Account. + @return Import Account Value + */ + public int getI_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Document Controlled. + @param IsDocControlled + Control account - If an account is controlled by a document, you cannot post manually to it + */ + public void setIsDocControlled (boolean IsDocControlled) + { + set_Value (COLUMNNAME_IsDocControlled, Boolean.valueOf(IsDocControlled)); + } + + /** Get Document Controlled. + @return Control account - If an account is controlled by a document, you cannot post manually to it + */ + public boolean isDocControlled () + { + Object oo = get_Value(COLUMNNAME_IsDocControlled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } /** ParentElementValue_ID AD_Reference_ID=182 */ public static final int PARENTELEMENTVALUE_ID_AD_Reference_ID=182; -/** Set Parent Account. -@param ParentElementValue_ID The parent (summary) account */ -public void setParentElementValue_ID (int ParentElementValue_ID) -{ -if (ParentElementValue_ID <= 0) set_Value ("ParentElementValue_ID", null); - else -set_Value ("ParentElementValue_ID", Integer.valueOf(ParentElementValue_ID)); -} -/** Get Parent Account. -@return The parent (summary) account */ -public int getParentElementValue_ID() -{ -Integer ii = (Integer)get_Value("ParentElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ParentElementValue_ID */ -public static final String COLUMNNAME_ParentElementValue_ID = "ParentElementValue_ID"; -/** Set Parent Key. -@param ParentValue Key if the Parent */ -public void setParentValue (String ParentValue) -{ -if (ParentValue != null && ParentValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ParentValue = ParentValue.substring(0,39); -} -set_Value ("ParentValue", ParentValue); -} -/** Get Parent Key. -@return Key if the Parent */ -public String getParentValue() -{ -return (String)get_Value("ParentValue"); -} -/** Column name ParentValue */ -public static final String COLUMNNAME_ParentValue = "ParentValue"; -/** Set Post Actual. -@param PostActual Actual Values can be posted */ -public void setPostActual (boolean PostActual) -{ -set_Value ("PostActual", Boolean.valueOf(PostActual)); -} -/** Get Post Actual. -@return Actual Values can be posted */ -public boolean isPostActual() -{ -Object oo = get_Value("PostActual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostActual */ -public static final String COLUMNNAME_PostActual = "PostActual"; -/** Set Post Budget. -@param PostBudget Budget values can be posted */ -public void setPostBudget (boolean PostBudget) -{ -set_Value ("PostBudget", Boolean.valueOf(PostBudget)); -} -/** Get Post Budget. -@return Budget values can be posted */ -public boolean isPostBudget() -{ -Object oo = get_Value("PostBudget"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostBudget */ -public static final String COLUMNNAME_PostBudget = "PostBudget"; -/** Set Post Encumbrance. -@param PostEncumbrance Post commitments to this account */ -public void setPostEncumbrance (boolean PostEncumbrance) -{ -set_Value ("PostEncumbrance", Boolean.valueOf(PostEncumbrance)); -} -/** Get Post Encumbrance. -@return Post commitments to this account */ -public boolean isPostEncumbrance() -{ -Object oo = get_Value("PostEncumbrance"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostEncumbrance */ -public static final String COLUMNNAME_PostEncumbrance = "PostEncumbrance"; -/** Set Post Statistical. -@param PostStatistical Post statistical quantities to this account? */ -public void setPostStatistical (boolean PostStatistical) -{ -set_Value ("PostStatistical", Boolean.valueOf(PostStatistical)); -} -/** Get Post Statistical. -@return Post statistical quantities to this account? */ -public boolean isPostStatistical() -{ -Object oo = get_Value("PostStatistical"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name PostStatistical */ -public static final String COLUMNNAME_PostStatistical = "PostStatistical"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value != null && Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Parent Account. + @param ParentElementValue_ID + The parent (summary) account + */ + public void setParentElementValue_ID (int ParentElementValue_ID) + { + if (ParentElementValue_ID <= 0) set_Value (COLUMNNAME_ParentElementValue_ID, null); + else + set_Value (COLUMNNAME_ParentElementValue_ID, Integer.valueOf(ParentElementValue_ID)); + } + + /** Get Parent Account. + @return The parent (summary) account + */ + public int getParentElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ParentElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Parent Key. + @param ParentValue + Key if the Parent + */ + public void setParentValue (String ParentValue) + { + if (ParentValue != null && ParentValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ParentValue = ParentValue.substring(0, 39); + } + set_Value (COLUMNNAME_ParentValue, ParentValue); + } + + /** Get Parent Key. + @return Key if the Parent + */ + public String getParentValue () + { + return (String)get_Value(COLUMNNAME_ParentValue); + } + + /** Set Post Actual. + @param PostActual + Actual Values can be posted + */ + public void setPostActual (boolean PostActual) + { + set_Value (COLUMNNAME_PostActual, Boolean.valueOf(PostActual)); + } + + /** Get Post Actual. + @return Actual Values can be posted + */ + public boolean isPostActual () + { + Object oo = get_Value(COLUMNNAME_PostActual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Budget. + @param PostBudget + Budget values can be posted + */ + public void setPostBudget (boolean PostBudget) + { + set_Value (COLUMNNAME_PostBudget, Boolean.valueOf(PostBudget)); + } + + /** Get Post Budget. + @return Budget values can be posted + */ + public boolean isPostBudget () + { + Object oo = get_Value(COLUMNNAME_PostBudget); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Encumbrance. + @param PostEncumbrance + Post commitments to this account + */ + public void setPostEncumbrance (boolean PostEncumbrance) + { + set_Value (COLUMNNAME_PostEncumbrance, Boolean.valueOf(PostEncumbrance)); + } + + /** Get Post Encumbrance. + @return Post commitments to this account + */ + public boolean isPostEncumbrance () + { + Object oo = get_Value(COLUMNNAME_PostEncumbrance); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Statistical. + @param PostStatistical + Post statistical quantities to this account? + */ + public void setPostStatistical (boolean PostStatistical) + { + set_Value (COLUMNNAME_PostStatistical, Boolean.valueOf(PostStatistical)); + } + + /** Get Post Statistical. + @return Post statistical quantities to this account? + */ + public boolean isPostStatistical () + { + Object oo = get_Value(COLUMNNAME_PostStatistical); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value != null && Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_GLJournal.java b/base/src/org/compiere/model/X_I_GLJournal.java index 425e341b50..813697fb45 100644 --- a/base/src/org/compiere/model/X_I_GLJournal.java +++ b/base/src/org/compiere/model/X_I_GLJournal.java @@ -1,1204 +1,1565 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_GLJournal - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_GLJournal extends PO + +/** Generated Model for I_GLJournal + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_GLJournal extends PO implements I_I_GLJournal, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_GLJournal_ID id -@param trxName transaction -*/ -public X_I_GLJournal (Properties ctx, int I_GLJournal_ID, String trxName) -{ -super (ctx, I_GLJournal_ID, trxName); -/** if (I_GLJournal_ID == 0) -{ -setI_GLJournal_ID (0); -setI_IsImported (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_GLJournal (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_GLJournal */ -public static final String Table_Name="I_GLJournal"; - -/** AD_Table_ID=599 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_GLJournal[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_GLJournal (Properties ctx, int I_GLJournal_ID, String trxName) + { + super (ctx, I_GLJournal_ID, trxName); + /** if (I_GLJournal_ID == 0) { setI_GLJournal_ID (0); + setI_IsImported (false); +} */ + } + + /** Load Constructor */ + public X_I_GLJournal (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_GLJournal[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgDoc_ID AD_Reference_ID=130 */ public static final int AD_ORGDOC_ID_AD_Reference_ID=130; -/** Set Document Org. -@param AD_OrgDoc_ID Document Organization (independent from account organization) */ -public void setAD_OrgDoc_ID (int AD_OrgDoc_ID) -{ -if (AD_OrgDoc_ID <= 0) set_Value ("AD_OrgDoc_ID", null); - else -set_Value ("AD_OrgDoc_ID", Integer.valueOf(AD_OrgDoc_ID)); -} -/** Get Document Org. -@return Document Organization (independent from account organization) */ -public int getAD_OrgDoc_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgDoc_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgDoc_ID */ -public static final String COLUMNNAME_AD_OrgDoc_ID = "AD_OrgDoc_ID"; + /** Set Document Org. + @param AD_OrgDoc_ID + Document Organization (independent from account organization) + */ + public void setAD_OrgDoc_ID (int AD_OrgDoc_ID) + { + if (AD_OrgDoc_ID <= 0) set_Value (COLUMNNAME_AD_OrgDoc_ID, null); + else + set_Value (COLUMNNAME_AD_OrgDoc_ID, Integer.valueOf(AD_OrgDoc_ID)); + } + + /** Get Document Org. + @return Document Organization (independent from account organization) + */ + public int getAD_OrgDoc_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgDoc_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Account Key. -@param AccountValue Key of Account Element */ -public void setAccountValue (String AccountValue) -{ -if (AccountValue != null && AccountValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -AccountValue = AccountValue.substring(0,39); -} -set_Value ("AccountValue", AccountValue); -} -/** Get Account Key. -@return Key of Account Element */ -public String getAccountValue() -{ -return (String)get_Value("AccountValue"); -} -/** Column name AccountValue */ -public static final String COLUMNNAME_AccountValue = "AccountValue"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Key. + @param AccountValue + Key of Account Element + */ + public void setAccountValue (String AccountValue) + { + if (AccountValue != null && AccountValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + AccountValue = AccountValue.substring(0, 39); + } + set_Value (COLUMNNAME_AccountValue, AccountValue); + } + + /** Get Account Key. + @return Key of Account Element + */ + public String getAccountValue () + { + return (String)get_Value(COLUMNNAME_AccountValue); + } /** Account_ID AD_Reference_ID=132 */ public static final int ACCOUNT_ID_AD_Reference_ID=132; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID <= 0) set_Value ("Account_ID", null); - else -set_Value ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Account Schema Name. -@param AcctSchemaName Name of the Accounting Schema */ -public void setAcctSchemaName (String AcctSchemaName) -{ -if (AcctSchemaName != null && AcctSchemaName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AcctSchemaName = AcctSchemaName.substring(0,59); -} -set_Value ("AcctSchemaName", AcctSchemaName); -} -/** Get Account Schema Name. -@return Name of the Accounting Schema */ -public String getAcctSchemaName() -{ -return (String)get_Value("AcctSchemaName"); -} -/** Column name AcctSchemaName */ -public static final String COLUMNNAME_AcctSchemaName = "AcctSchemaName"; -/** Set Accounted Credit. -@param AmtAcctCr Accounted Credit Amount */ -public void setAmtAcctCr (BigDecimal AmtAcctCr) -{ -set_Value ("AmtAcctCr", AmtAcctCr); -} -/** Get Accounted Credit. -@return Accounted Credit Amount */ -public BigDecimal getAmtAcctCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctCr */ -public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; -/** Set Accounted Debit. -@param AmtAcctDr Accounted Debit Amount */ -public void setAmtAcctDr (BigDecimal AmtAcctDr) -{ -set_Value ("AmtAcctDr", AmtAcctDr); -} -/** Get Accounted Debit. -@return Accounted Debit Amount */ -public BigDecimal getAmtAcctDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctDr */ -public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; -/** Set Source Credit. -@param AmtSourceCr Source Credit Amount */ -public void setAmtSourceCr (BigDecimal AmtSourceCr) -{ -set_Value ("AmtSourceCr", AmtSourceCr); -} -/** Get Source Credit. -@return Source Credit Amount */ -public BigDecimal getAmtSourceCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceCr */ -public static final String COLUMNNAME_AmtSourceCr = "AmtSourceCr"; -/** Set Source Debit. -@param AmtSourceDr Source Debit Amount */ -public void setAmtSourceDr (BigDecimal AmtSourceDr) -{ -set_Value ("AmtSourceDr", AmtSourceDr); -} -/** Get Source Debit. -@return Source Debit Amount */ -public BigDecimal getAmtSourceDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceDr */ -public static final String COLUMNNAME_AmtSourceDr = "AmtSourceDr"; -/** Set Business Partner Key. -@param BPartnerValue Key of the Business Partner */ -public void setBPartnerValue (String BPartnerValue) -{ -if (BPartnerValue != null && BPartnerValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BPartnerValue = BPartnerValue.substring(0,39); -} -set_Value ("BPartnerValue", BPartnerValue); -} -/** Get Business Partner Key. -@return Key of the Business Partner */ -public String getBPartnerValue() -{ -return (String)get_Value("BPartnerValue"); -} -/** Column name BPartnerValue */ -public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; -/** Set Batch Description. -@param BatchDescription Description of the Batch */ -public void setBatchDescription (String BatchDescription) -{ -if (BatchDescription != null && BatchDescription.length() > 255) -{ -log.warning("Length > 255 - truncated"); -BatchDescription = BatchDescription.substring(0,254); -} -set_Value ("BatchDescription", BatchDescription); -} -/** Get Batch Description. -@return Description of the Batch */ -public String getBatchDescription() -{ -return (String)get_Value("BatchDescription"); -} -/** Column name BatchDescription */ -public static final String COLUMNNAME_BatchDescription = "BatchDescription"; -/** Set Batch Document No. -@param BatchDocumentNo Document Number of the Batch */ -public void setBatchDocumentNo (String BatchDocumentNo) -{ -if (BatchDocumentNo != null && BatchDocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -BatchDocumentNo = BatchDocumentNo.substring(0,29); -} -set_Value ("BatchDocumentNo", BatchDocumentNo); -} -/** Get Batch Document No. -@return Document Number of the Batch */ -public String getBatchDocumentNo() -{ -return (String)get_Value("BatchDocumentNo"); -} -/** Column name BatchDocumentNo */ -public static final String COLUMNNAME_BatchDocumentNo = "BatchDocumentNo"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID <= 0) set_Value ("C_AcctSchema_ID", null); - else -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID <= 0) set_Value ("C_ConversionType_ID", null); - else -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID <= 0) set_Value (COLUMNNAME_Account_ID, null); + else + set_Value (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Schema Name. + @param AcctSchemaName + Name of the Accounting Schema + */ + public void setAcctSchemaName (String AcctSchemaName) + { + if (AcctSchemaName != null && AcctSchemaName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AcctSchemaName = AcctSchemaName.substring(0, 59); + } + set_Value (COLUMNNAME_AcctSchemaName, AcctSchemaName); + } + + /** Get Account Schema Name. + @return Name of the Accounting Schema + */ + public String getAcctSchemaName () + { + return (String)get_Value(COLUMNNAME_AcctSchemaName); + } + + /** Set Accounted Credit. + @param AmtAcctCr + Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr) + { + set_Value (COLUMNNAME_AmtAcctCr, AmtAcctCr); + } + + /** Get Accounted Credit. + @return Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accounted Debit. + @param AmtAcctDr + Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr) + { + set_Value (COLUMNNAME_AmtAcctDr, AmtAcctDr); + } + + /** Get Accounted Debit. + @return Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Credit. + @param AmtSourceCr + Source Credit Amount + */ + public void setAmtSourceCr (BigDecimal AmtSourceCr) + { + set_Value (COLUMNNAME_AmtSourceCr, AmtSourceCr); + } + + /** Get Source Credit. + @return Source Credit Amount + */ + public BigDecimal getAmtSourceCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Debit. + @param AmtSourceDr + Source Debit Amount + */ + public void setAmtSourceDr (BigDecimal AmtSourceDr) + { + set_Value (COLUMNNAME_AmtSourceDr, AmtSourceDr); + } + + /** Get Source Debit. + @return Source Debit Amount + */ + public BigDecimal getAmtSourceDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Business Partner Key. + @param BPartnerValue + Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue) + { + if (BPartnerValue != null && BPartnerValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartnerValue = BPartnerValue.substring(0, 39); + } + set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); + } + + /** Get Business Partner Key. + @return Key of the Business Partner + */ + public String getBPartnerValue () + { + return (String)get_Value(COLUMNNAME_BPartnerValue); + } + + /** Set Batch Description. + @param BatchDescription + Description of the Batch + */ + public void setBatchDescription (String BatchDescription) + { + if (BatchDescription != null && BatchDescription.length() > 255) + { + log.warning("Length > 255 - truncated"); + BatchDescription = BatchDescription.substring(0, 254); + } + set_Value (COLUMNNAME_BatchDescription, BatchDescription); + } + + /** Get Batch Description. + @return Description of the Batch + */ + public String getBatchDescription () + { + return (String)get_Value(COLUMNNAME_BatchDescription); + } + + /** Set Batch Document No. + @param BatchDocumentNo + Document Number of the Batch + */ + public void setBatchDocumentNo (String BatchDocumentNo) + { + if (BatchDocumentNo != null && BatchDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + BatchDocumentNo = BatchDocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_BatchDocumentNo, BatchDocumentNo); + } + + /** Get Batch Document No. + @return Document Number of the Batch + */ + public String getBatchDocumentNo () + { + return (String)get_Value(COLUMNNAME_BatchDocumentNo); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID <= 0) set_Value (COLUMNNAME_C_AcctSchema_ID, null); + else + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID <= 0) set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocFrom_ID AD_Reference_ID=133 */ public static final int C_LOCFROM_ID_AD_Reference_ID=133; -/** Set Location From. -@param C_LocFrom_ID Location that inventory was moved from */ -public void setC_LocFrom_ID (int C_LocFrom_ID) -{ -if (C_LocFrom_ID <= 0) set_Value ("C_LocFrom_ID", null); - else -set_Value ("C_LocFrom_ID", Integer.valueOf(C_LocFrom_ID)); -} -/** Get Location From. -@return Location that inventory was moved from */ -public int getC_LocFrom_ID() -{ -Integer ii = (Integer)get_Value("C_LocFrom_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocFrom_ID */ -public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID"; + /** Set Location From. + @param C_LocFrom_ID + Location that inventory was moved from + */ + public void setC_LocFrom_ID (int C_LocFrom_ID) + { + if (C_LocFrom_ID <= 0) set_Value (COLUMNNAME_C_LocFrom_ID, null); + else + set_Value (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); + } + + /** Get Location From. + @return Location that inventory was moved from + */ + public int getC_LocFrom_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_LocTo_ID AD_Reference_ID=133 */ public static final int C_LOCTO_ID_AD_Reference_ID=133; -/** Set Location To. -@param C_LocTo_ID Location that inventory was moved to */ -public void setC_LocTo_ID (int C_LocTo_ID) -{ -if (C_LocTo_ID <= 0) set_Value ("C_LocTo_ID", null); - else -set_Value ("C_LocTo_ID", Integer.valueOf(C_LocTo_ID)); -} -/** Get Location To. -@return Location that inventory was moved to */ -public int getC_LocTo_ID() -{ -Integer ii = (Integer)get_Value("C_LocTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_LocTo_ID */ -public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID"; -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID <= 0) set_Value ("C_Period_ID", null); - else -set_Value ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Combination. -@param C_ValidCombination_ID Valid Account Combination */ -public void setC_ValidCombination_ID (int C_ValidCombination_ID) -{ -if (C_ValidCombination_ID <= 0) set_Value ("C_ValidCombination_ID", null); - else -set_Value ("C_ValidCombination_ID", Integer.valueOf(C_ValidCombination_ID)); -} -/** Get Combination. -@return Valid Account Combination */ -public int getC_ValidCombination_ID() -{ -Integer ii = (Integer)get_Value("C_ValidCombination_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ValidCombination_ID */ -public static final String COLUMNNAME_C_ValidCombination_ID = "C_ValidCombination_ID"; -/** Set Category Name. -@param CategoryName Name of the Category */ -public void setCategoryName (String CategoryName) -{ -if (CategoryName != null && CategoryName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -CategoryName = CategoryName.substring(0,59); -} -set_Value ("CategoryName", CategoryName); -} -/** Get Category Name. -@return Name of the Category */ -public String getCategoryName() -{ -return (String)get_Value("CategoryName"); -} -/** Column name CategoryName */ -public static final String COLUMNNAME_CategoryName = "CategoryName"; -/** Set Client Key. -@param ClientValue Key of the Client */ -public void setClientValue (String ClientValue) -{ -if (ClientValue != null && ClientValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ClientValue = ClientValue.substring(0,39); -} -set_Value ("ClientValue", ClientValue); -} -/** Get Client Key. -@return Key of the Client */ -public String getClientValue() -{ -return (String)get_Value("ClientValue"); -} -/** Column name ClientValue */ -public static final String COLUMNNAME_ClientValue = "ClientValue"; -/** Set Currency Type Key. -@param ConversionTypeValue Key value for the Currency Conversion Rate Type */ -public void setConversionTypeValue (String ConversionTypeValue) -{ -if (ConversionTypeValue != null && ConversionTypeValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ConversionTypeValue = ConversionTypeValue.substring(0,39); -} -set_Value ("ConversionTypeValue", ConversionTypeValue); -} -/** Get Currency Type Key. -@return Key value for the Currency Conversion Rate Type */ -public String getConversionTypeValue() -{ -return (String)get_Value("ConversionTypeValue"); -} -/** Column name ConversionTypeValue */ -public static final String COLUMNNAME_ConversionTypeValue = "ConversionTypeValue"; -/** Set Rate. -@param CurrencyRate Currency Conversion Rate */ -public void setCurrencyRate (BigDecimal CurrencyRate) -{ -set_Value ("CurrencyRate", CurrencyRate); -} -/** Get Rate. -@return Currency Conversion Rate */ -public BigDecimal getCurrencyRate() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrencyRate"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrencyRate */ -public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Type Name. -@param DocTypeName Name of the Document Type */ -public void setDocTypeName (String DocTypeName) -{ -if (DocTypeName != null && DocTypeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DocTypeName = DocTypeName.substring(0,59); -} -set_Value ("DocTypeName", DocTypeName); -} -/** Get Document Type Name. -@return Name of the Document Type */ -public String getDocTypeName() -{ -return (String)get_Value("DocTypeName"); -} -/** Column name DocTypeName */ -public static final String COLUMNNAME_DocTypeName = "DocTypeName"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID <= 0) set_Value ("GL_Budget_ID", null); - else -set_Value ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set GL Category. -@param GL_Category_ID General Ledger Category */ -public void setGL_Category_ID (int GL_Category_ID) -{ -if (GL_Category_ID <= 0) set_Value ("GL_Category_ID", null); - else -set_Value ("GL_Category_ID", Integer.valueOf(GL_Category_ID)); -} -/** Get GL Category. -@return General Ledger Category */ -public int getGL_Category_ID() -{ -Integer ii = (Integer)get_Value("GL_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Category_ID */ -public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; -/** Set Journal Batch. -@param GL_JournalBatch_ID General Ledger Journal Batch */ -public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) -{ -if (GL_JournalBatch_ID <= 0) set_Value ("GL_JournalBatch_ID", null); - else -set_Value ("GL_JournalBatch_ID", Integer.valueOf(GL_JournalBatch_ID)); -} -/** Get Journal Batch. -@return General Ledger Journal Batch */ -public int getGL_JournalBatch_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalBatch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalBatch_ID */ -public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; -/** Set Journal Line. -@param GL_JournalLine_ID General Ledger Journal Line */ -public void setGL_JournalLine_ID (int GL_JournalLine_ID) -{ -if (GL_JournalLine_ID <= 0) set_Value ("GL_JournalLine_ID", null); - else -set_Value ("GL_JournalLine_ID", Integer.valueOf(GL_JournalLine_ID)); -} -/** Get Journal Line. -@return General Ledger Journal Line */ -public int getGL_JournalLine_ID() -{ -Integer ii = (Integer)get_Value("GL_JournalLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_JournalLine_ID */ -public static final String COLUMNNAME_GL_JournalLine_ID = "GL_JournalLine_ID"; -/** Set Journal. -@param GL_Journal_ID General Ledger Journal */ -public void setGL_Journal_ID (int GL_Journal_ID) -{ -if (GL_Journal_ID <= 0) set_Value ("GL_Journal_ID", null); - else -set_Value ("GL_Journal_ID", Integer.valueOf(GL_Journal_ID)); -} -/** Get Journal. -@return General Ledger Journal */ -public int getGL_Journal_ID() -{ -Integer ii = (Integer)get_Value("GL_Journal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Journal_ID */ -public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; -/** Set ISO Currency Code. -@param ISO_Code Three letter ISO 4217 Code of the Currency */ -public void setISO_Code (String ISO_Code) -{ -if (ISO_Code != null && ISO_Code.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code = ISO_Code.substring(0,2); -} -set_Value ("ISO_Code", ISO_Code); -} -/** Get ISO Currency Code. -@return Three letter ISO 4217 Code of the Currency */ -public String getISO_Code() -{ -return (String)get_Value("ISO_Code"); -} -/** Column name ISO_Code */ -public static final String COLUMNNAME_ISO_Code = "ISO_Code"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Import GL Journal. -@param I_GLJournal_ID Import General Ledger Journal */ -public void setI_GLJournal_ID (int I_GLJournal_ID) -{ -if (I_GLJournal_ID < 1) throw new IllegalArgumentException ("I_GLJournal_ID is mandatory."); -set_ValueNoCheck ("I_GLJournal_ID", Integer.valueOf(I_GLJournal_ID)); -} -/** Get Import GL Journal. -@return Import General Ledger Journal */ -public int getI_GLJournal_ID() -{ -Integer ii = (Integer)get_Value("I_GLJournal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getI_GLJournal_ID())); -} -/** Column name I_GLJournal_ID */ -public static final String COLUMNNAME_I_GLJournal_ID = "I_GLJournal_ID"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Create New Batch. -@param IsCreateNewBatch If selected a new batch is created */ -public void setIsCreateNewBatch (boolean IsCreateNewBatch) -{ -set_Value ("IsCreateNewBatch", Boolean.valueOf(IsCreateNewBatch)); -} -/** Get Create New Batch. -@return If selected a new batch is created */ -public boolean isCreateNewBatch() -{ -Object oo = get_Value("IsCreateNewBatch"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreateNewBatch */ -public static final String COLUMNNAME_IsCreateNewBatch = "IsCreateNewBatch"; -/** Set Create New Journal. -@param IsCreateNewJournal If selected a new journal within the batch is created */ -public void setIsCreateNewJournal (boolean IsCreateNewJournal) -{ -set_Value ("IsCreateNewJournal", Boolean.valueOf(IsCreateNewJournal)); -} -/** Get Create New Journal. -@return If selected a new journal within the batch is created */ -public boolean isCreateNewJournal() -{ -Object oo = get_Value("IsCreateNewJournal"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreateNewJournal */ -public static final String COLUMNNAME_IsCreateNewJournal = "IsCreateNewJournal"; -/** Set Journal Document No. -@param JournalDocumentNo Document number of the Journal */ -public void setJournalDocumentNo (String JournalDocumentNo) -{ -if (JournalDocumentNo != null && JournalDocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -JournalDocumentNo = JournalDocumentNo.substring(0,29); -} -set_Value ("JournalDocumentNo", JournalDocumentNo); -} -/** Get Journal Document No. -@return Document number of the Journal */ -public String getJournalDocumentNo() -{ -return (String)get_Value("JournalDocumentNo"); -} -/** Column name JournalDocumentNo */ -public static final String COLUMNNAME_JournalDocumentNo = "JournalDocumentNo"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Trx Org Key. -@param OrgTrxValue Key of the Transaction Organization */ -public void setOrgTrxValue (String OrgTrxValue) -{ -if (OrgTrxValue != null && OrgTrxValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -OrgTrxValue = OrgTrxValue.substring(0,39); -} -set_Value ("OrgTrxValue", OrgTrxValue); -} -/** Get Trx Org Key. -@return Key of the Transaction Organization */ -public String getOrgTrxValue() -{ -return (String)get_Value("OrgTrxValue"); -} -/** Column name OrgTrxValue */ -public static final String COLUMNNAME_OrgTrxValue = "OrgTrxValue"; -/** Set Org Key. -@param OrgValue Key of the Organization */ -public void setOrgValue (String OrgValue) -{ -if (OrgValue != null && OrgValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -OrgValue = OrgValue.substring(0,39); -} -set_Value ("OrgValue", OrgValue); -} -/** Get Org Key. -@return Key of the Organization */ -public String getOrgValue() -{ -return (String)get_Value("OrgValue"); -} -/** Column name OrgValue */ -public static final String COLUMNNAME_OrgValue = "OrgValue"; + /** Set Location To. + @param C_LocTo_ID + Location that inventory was moved to + */ + public void setC_LocTo_ID (int C_LocTo_ID) + { + if (C_LocTo_ID <= 0) set_Value (COLUMNNAME_C_LocTo_ID, null); + else + set_Value (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); + } + + /** Get Location To. + @return Location that inventory was moved to + */ + public int getC_LocTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Period getI_C_Period() throws Exception + { + 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 e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID <= 0) set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Combination. + @param C_ValidCombination_ID + Valid Account Combination + */ + public void setC_ValidCombination_ID (int C_ValidCombination_ID) + { + if (C_ValidCombination_ID <= 0) set_Value (COLUMNNAME_C_ValidCombination_ID, null); + else + set_Value (COLUMNNAME_C_ValidCombination_ID, Integer.valueOf(C_ValidCombination_ID)); + } + + /** Get Combination. + @return Valid Account Combination + */ + public int getC_ValidCombination_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ValidCombination_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Category Name. + @param CategoryName + Name of the Category + */ + public void setCategoryName (String CategoryName) + { + if (CategoryName != null && CategoryName.length() > 60) + { + log.warning("Length > 60 - truncated"); + CategoryName = CategoryName.substring(0, 59); + } + set_Value (COLUMNNAME_CategoryName, CategoryName); + } + + /** Get Category Name. + @return Name of the Category + */ + public String getCategoryName () + { + return (String)get_Value(COLUMNNAME_CategoryName); + } + + /** Set Client Key. + @param ClientValue + Key of the Client + */ + public void setClientValue (String ClientValue) + { + if (ClientValue != null && ClientValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ClientValue = ClientValue.substring(0, 39); + } + set_Value (COLUMNNAME_ClientValue, ClientValue); + } + + /** Get Client Key. + @return Key of the Client + */ + public String getClientValue () + { + return (String)get_Value(COLUMNNAME_ClientValue); + } + + /** Set Currency Type Key. + @param ConversionTypeValue + Key value for the Currency Conversion Rate Type + */ + public void setConversionTypeValue (String ConversionTypeValue) + { + if (ConversionTypeValue != null && ConversionTypeValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ConversionTypeValue = ConversionTypeValue.substring(0, 39); + } + set_Value (COLUMNNAME_ConversionTypeValue, ConversionTypeValue); + } + + /** Get Currency Type Key. + @return Key value for the Currency Conversion Rate Type + */ + public String getConversionTypeValue () + { + return (String)get_Value(COLUMNNAME_ConversionTypeValue); + } + + /** Set Rate. + @param CurrencyRate + Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate) + { + set_Value (COLUMNNAME_CurrencyRate, CurrencyRate); + } + + /** Get Rate. + @return Currency Conversion Rate + */ + public BigDecimal getCurrencyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrencyRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Type Name. + @param DocTypeName + Name of the Document Type + */ + public void setDocTypeName (String DocTypeName) + { + if (DocTypeName != null && DocTypeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocTypeName = DocTypeName.substring(0, 59); + } + set_Value (COLUMNNAME_DocTypeName, DocTypeName); + } + + /** Get Document Type Name. + @return Name of the Document Type + */ + public String getDocTypeName () + { + return (String)get_Value(COLUMNNAME_DocTypeName); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID <= 0) set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Category getI_GL_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID <= 0) set_Value (COLUMNNAME_GL_Category_ID, null); + else + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID <= 0) set_Value (COLUMNNAME_GL_JournalBatch_ID, null); + else + set_Value (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal Line. + @param GL_JournalLine_ID + General Ledger Journal Line + */ + public void setGL_JournalLine_ID (int GL_JournalLine_ID) + { + if (GL_JournalLine_ID <= 0) set_Value (COLUMNNAME_GL_JournalLine_ID, null); + else + set_Value (COLUMNNAME_GL_JournalLine_ID, Integer.valueOf(GL_JournalLine_ID)); + } + + /** Get Journal Line. + @return General Ledger Journal Line + */ + public int getGL_JournalLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal. + @param GL_Journal_ID + General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID) + { + if (GL_Journal_ID <= 0) set_Value (COLUMNNAME_GL_Journal_ID, null); + else + set_Value (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + } + + /** Get Journal. + @return General Ledger Journal + */ + public int getGL_Journal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Journal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + if (ISO_Code != null && ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Import GL Journal. + @param I_GLJournal_ID + Import General Ledger Journal + */ + public void setI_GLJournal_ID (int I_GLJournal_ID) + { + if (I_GLJournal_ID < 1) + throw new IllegalArgumentException ("I_GLJournal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_GLJournal_ID, Integer.valueOf(I_GLJournal_ID)); + } + + /** Get Import GL Journal. + @return Import General Ledger Journal + */ + public int getI_GLJournal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_GLJournal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getI_GLJournal_ID())); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Create New Batch. + @param IsCreateNewBatch + If selected a new batch is created + */ + public void setIsCreateNewBatch (boolean IsCreateNewBatch) + { + set_Value (COLUMNNAME_IsCreateNewBatch, Boolean.valueOf(IsCreateNewBatch)); + } + + /** Get Create New Batch. + @return If selected a new batch is created + */ + public boolean isCreateNewBatch () + { + Object oo = get_Value(COLUMNNAME_IsCreateNewBatch); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Create New Journal. + @param IsCreateNewJournal + If selected a new journal within the batch is created + */ + public void setIsCreateNewJournal (boolean IsCreateNewJournal) + { + set_Value (COLUMNNAME_IsCreateNewJournal, Boolean.valueOf(IsCreateNewJournal)); + } + + /** Get Create New Journal. + @return If selected a new journal within the batch is created + */ + public boolean isCreateNewJournal () + { + Object oo = get_Value(COLUMNNAME_IsCreateNewJournal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Journal Document No. + @param JournalDocumentNo + Document number of the Journal + */ + public void setJournalDocumentNo (String JournalDocumentNo) + { + if (JournalDocumentNo != null && JournalDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + JournalDocumentNo = JournalDocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_JournalDocumentNo, JournalDocumentNo); + } + + /** Get Journal Document No. + @return Document number of the Journal + */ + public String getJournalDocumentNo () + { + return (String)get_Value(COLUMNNAME_JournalDocumentNo); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trx Org Key. + @param OrgTrxValue + Key of the Transaction Organization + */ + public void setOrgTrxValue (String OrgTrxValue) + { + if (OrgTrxValue != null && OrgTrxValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + OrgTrxValue = OrgTrxValue.substring(0, 39); + } + set_Value (COLUMNNAME_OrgTrxValue, OrgTrxValue); + } + + /** Get Trx Org Key. + @return Key of the Transaction Organization + */ + public String getOrgTrxValue () + { + return (String)get_Value(COLUMNNAME_OrgTrxValue); + } + + /** Set Org Key. + @param OrgValue + Key of the Organization + */ + public void setOrgValue (String OrgValue) + { + if (OrgValue != null && OrgValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + OrgValue = OrgValue.substring(0, 39); + } + set_Value (COLUMNNAME_OrgValue, OrgValue); + } + + /** Get Org Key. + @return Key of the Organization + */ + public String getOrgValue () + { + return (String)get_Value(COLUMNNAME_OrgValue); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType != null && PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Product Key. -@param ProductValue Key of the Product */ -public void setProductValue (String ProductValue) -{ -if (ProductValue != null && ProductValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ProductValue = ProductValue.substring(0,39); -} -set_Value ("ProductValue", ProductValue); -} -/** Get Product Key. -@return Key of the Product */ -public String getProductValue() -{ -return (String)get_Value("ProductValue"); -} -/** Column name ProductValue */ -public static final String COLUMNNAME_ProductValue = "ProductValue"; -/** Set Project Key. -@param ProjectValue Key of the Project */ -public void setProjectValue (String ProjectValue) -{ -if (ProjectValue != null && ProjectValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ProjectValue = ProjectValue.substring(0,39); -} -set_Value ("ProjectValue", ProjectValue); -} -/** Get Project Key. -@return Key of the Project */ -public String getProjectValue() -{ -return (String)get_Value("ProjectValue"); -} -/** Column name ProjectValue */ -public static final String COLUMNNAME_ProjectValue = "ProjectValue"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set SKU. -@param SKU Stock Keeping Unit */ -public void setSKU (String SKU) -{ -if (SKU != null && SKU.length() > 30) -{ -log.warning("Length > 30 - truncated"); -SKU = SKU.substring(0,29); -} -set_Value ("SKU", SKU); -} -/** Get SKU. -@return Stock Keeping Unit */ -public String getSKU() -{ -return (String)get_Value("SKU"); -} -/** Column name SKU */ -public static final String COLUMNNAME_SKU = "SKU"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType != null && PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product Key. + @param ProductValue + Key of the Product + */ + public void setProductValue (String ProductValue) + { + if (ProductValue != null && ProductValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ProductValue = ProductValue.substring(0, 39); + } + set_Value (COLUMNNAME_ProductValue, ProductValue); + } + + /** Get Product Key. + @return Key of the Product + */ + public String getProductValue () + { + return (String)get_Value(COLUMNNAME_ProductValue); + } + + /** Set Project Key. + @param ProjectValue + Key of the Project + */ + public void setProjectValue (String ProjectValue) + { + if (ProjectValue != null && ProjectValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ProjectValue = ProjectValue.substring(0, 39); + } + set_Value (COLUMNNAME_ProjectValue, ProjectValue); + } + + /** Get Project Key. + @return Key of the Project + */ + public String getProjectValue () + { + return (String)get_Value(COLUMNNAME_ProjectValue); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 29); + } + set_Value (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_InOutLineConfirm.java b/base/src/org/compiere/model/X_I_InOutLineConfirm.java index 2d47f672c2..4b16cc9194 100644 --- a/base/src/org/compiere/model/X_I_InOutLineConfirm.java +++ b/base/src/org/compiere/model/X_I_InOutLineConfirm.java @@ -1,303 +1,334 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_InOutLineConfirm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_InOutLineConfirm extends PO + +/** Generated Model for I_InOutLineConfirm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_InOutLineConfirm extends PO implements I_I_InOutLineConfirm, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_InOutLineConfirm_ID id -@param trxName transaction -*/ -public X_I_InOutLineConfirm (Properties ctx, int I_InOutLineConfirm_ID, String trxName) -{ -super (ctx, I_InOutLineConfirm_ID, trxName); -/** if (I_InOutLineConfirm_ID == 0) -{ -setConfirmationNo (null); -setConfirmedQty (Env.ZERO); -setDifferenceQty (Env.ZERO); -setI_InOutLineConfirm_ID (0); -setI_IsImported (false); -setM_InOutLineConfirm_ID (0); -setScrappedQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_InOutLineConfirm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_InOutLineConfirm */ -public static final String Table_Name="I_InOutLineConfirm"; - -/** AD_Table_ID=740 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_InOutLineConfirm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Confirmation No. -@param ConfirmationNo Confirmation Number */ -public void setConfirmationNo (String ConfirmationNo) -{ -if (ConfirmationNo == null) throw new IllegalArgumentException ("ConfirmationNo is mandatory."); -if (ConfirmationNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ConfirmationNo = ConfirmationNo.substring(0,19); -} -set_Value ("ConfirmationNo", ConfirmationNo); -} -/** Get Confirmation No. -@return Confirmation Number */ -public String getConfirmationNo() -{ -return (String)get_Value("ConfirmationNo"); -} -/** Column name ConfirmationNo */ -public static final String COLUMNNAME_ConfirmationNo = "ConfirmationNo"; -/** Set Confirmed Quantity. -@param ConfirmedQty Confirmation of a received quantity */ -public void setConfirmedQty (BigDecimal ConfirmedQty) -{ -if (ConfirmedQty == null) throw new IllegalArgumentException ("ConfirmedQty is mandatory."); -set_Value ("ConfirmedQty", ConfirmedQty); -} -/** Get Confirmed Quantity. -@return Confirmation of a received quantity */ -public BigDecimal getConfirmedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ConfirmedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConfirmedQty */ -public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Difference. -@param DifferenceQty Difference Quantity */ -public void setDifferenceQty (BigDecimal DifferenceQty) -{ -if (DifferenceQty == null) throw new IllegalArgumentException ("DifferenceQty is mandatory."); -set_Value ("DifferenceQty", DifferenceQty); -} -/** Get Difference. -@return Difference Quantity */ -public BigDecimal getDifferenceQty() -{ -BigDecimal bd = (BigDecimal)get_Value("DifferenceQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DifferenceQty */ -public static final String COLUMNNAME_DifferenceQty = "DifferenceQty"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Ship/Receipt Confirmation Import Line. -@param I_InOutLineConfirm_ID Material Shipment or Receipt Confirmation Import Line */ -public void setI_InOutLineConfirm_ID (int I_InOutLineConfirm_ID) -{ -if (I_InOutLineConfirm_ID < 1) throw new IllegalArgumentException ("I_InOutLineConfirm_ID is mandatory."); -set_ValueNoCheck ("I_InOutLineConfirm_ID", Integer.valueOf(I_InOutLineConfirm_ID)); -} -/** Get Ship/Receipt Confirmation Import Line. -@return Material Shipment or Receipt Confirmation Import Line */ -public int getI_InOutLineConfirm_ID() -{ -Integer ii = (Integer)get_Value("I_InOutLineConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getI_InOutLineConfirm_ID())); -} -/** Column name I_InOutLineConfirm_ID */ -public static final String COLUMNNAME_I_InOutLineConfirm_ID = "I_InOutLineConfirm_ID"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Ship/Receipt Confirmation Line. -@param M_InOutLineConfirm_ID Material Shipment or Receipt Confirmation Line */ -public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID) -{ -if (M_InOutLineConfirm_ID < 1) throw new IllegalArgumentException ("M_InOutLineConfirm_ID is mandatory."); -set_Value ("M_InOutLineConfirm_ID", Integer.valueOf(M_InOutLineConfirm_ID)); -} -/** Get Ship/Receipt Confirmation Line. -@return Material Shipment or Receipt Confirmation Line */ -public int getM_InOutLineConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLineConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLineConfirm_ID */ -public static final String COLUMNNAME_M_InOutLineConfirm_ID = "M_InOutLineConfirm_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Scrapped Quantity. -@param ScrappedQty The Quantity scrapped due to QA issues */ -public void setScrappedQty (BigDecimal ScrappedQty) -{ -if (ScrappedQty == null) throw new IllegalArgumentException ("ScrappedQty is mandatory."); -set_Value ("ScrappedQty", ScrappedQty); -} -/** Get Scrapped Quantity. -@return The Quantity scrapped due to QA issues */ -public BigDecimal getScrappedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ScrappedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ScrappedQty */ -public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_InOutLineConfirm (Properties ctx, int I_InOutLineConfirm_ID, String trxName) + { + super (ctx, I_InOutLineConfirm_ID, trxName); + /** if (I_InOutLineConfirm_ID == 0) { setConfirmationNo (null); + setConfirmedQty (Env.ZERO); + setDifferenceQty (Env.ZERO); + setI_InOutLineConfirm_ID (0); + setI_IsImported (false); + setM_InOutLineConfirm_ID (0); + setScrappedQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_I_InOutLineConfirm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_InOutLineConfirm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Confirmation No. + @param ConfirmationNo + Confirmation Number + */ + public void setConfirmationNo (String ConfirmationNo) + { + if (ConfirmationNo == null) + throw new IllegalArgumentException ("ConfirmationNo is mandatory."); + if (ConfirmationNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ConfirmationNo = ConfirmationNo.substring(0, 19); + } + set_Value (COLUMNNAME_ConfirmationNo, ConfirmationNo); + } + + /** Get Confirmation No. + @return Confirmation Number + */ + public String getConfirmationNo () + { + return (String)get_Value(COLUMNNAME_ConfirmationNo); + } + + /** Set Confirmed Quantity. + @param ConfirmedQty + Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty) + { + if (ConfirmedQty == null) + throw new IllegalArgumentException ("ConfirmedQty is mandatory."); + set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); + } + + /** Get Confirmed Quantity. + @return Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Difference. + @param DifferenceQty + Difference Quantity + */ + public void setDifferenceQty (BigDecimal DifferenceQty) + { + if (DifferenceQty == null) + throw new IllegalArgumentException ("DifferenceQty is mandatory."); + set_Value (COLUMNNAME_DifferenceQty, DifferenceQty); + } + + /** Get Difference. + @return Difference Quantity + */ + public BigDecimal getDifferenceQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DifferenceQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Ship/Receipt Confirmation Import Line. + @param I_InOutLineConfirm_ID + Material Shipment or Receipt Confirmation Import Line + */ + public void setI_InOutLineConfirm_ID (int I_InOutLineConfirm_ID) + { + if (I_InOutLineConfirm_ID < 1) + throw new IllegalArgumentException ("I_InOutLineConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_InOutLineConfirm_ID, Integer.valueOf(I_InOutLineConfirm_ID)); + } + + /** Get Ship/Receipt Confirmation Import Line. + @return Material Shipment or Receipt Confirmation Import Line + */ + public int getI_InOutLineConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_InOutLineConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getI_InOutLineConfirm_ID())); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship/Receipt Confirmation Line. + @param M_InOutLineConfirm_ID + Material Shipment or Receipt Confirmation Line + */ + public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID) + { + if (M_InOutLineConfirm_ID < 1) + throw new IllegalArgumentException ("M_InOutLineConfirm_ID is mandatory."); + set_Value (COLUMNNAME_M_InOutLineConfirm_ID, Integer.valueOf(M_InOutLineConfirm_ID)); + } + + /** Get Ship/Receipt Confirmation Line. + @return Material Shipment or Receipt Confirmation Line + */ + public int getM_InOutLineConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLineConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + if (ScrappedQty == null) + throw new IllegalArgumentException ("ScrappedQty is mandatory."); + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_Inventory.java b/base/src/org/compiere/model/X_I_Inventory.java index f37eb23860..f4cab843ec 100644 --- a/base/src/org/compiere/model/X_I_Inventory.java +++ b/base/src/org/compiere/model/X_I_Inventory.java @@ -1,517 +1,614 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_Inventory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_Inventory extends PO -{ -/** Standard Constructor -@param ctx context -@param I_Inventory_ID id -@param trxName transaction -*/ -public X_I_Inventory (Properties ctx, int I_Inventory_ID, String trxName) -{ -super (ctx, I_Inventory_ID, trxName); -/** if (I_Inventory_ID == 0) -{ -setI_Inventory_ID (0); -setI_IsImported (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_Inventory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_Inventory */ -public static final String Table_Name="I_Inventory"; - -/** AD_Table_ID=572 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_Inventory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Import Inventory. -@param I_Inventory_ID Import Inventory Transactions */ -public void setI_Inventory_ID (int I_Inventory_ID) -{ -if (I_Inventory_ID < 1) throw new IllegalArgumentException ("I_Inventory_ID is mandatory."); -set_ValueNoCheck ("I_Inventory_ID", Integer.valueOf(I_Inventory_ID)); -} -/** Get Import Inventory. -@return Import Inventory Transactions */ -public int getI_Inventory_ID() -{ -Integer ii = (Integer)get_Value("I_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getI_Inventory_ID())); -} -/** Column name I_Inventory_ID */ -public static final String COLUMNNAME_I_Inventory_ID = "I_Inventory_ID"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Locator Key. -@param LocatorValue Key of the Warehouse Locator */ -public void setLocatorValue (String LocatorValue) -{ -if (LocatorValue != null && LocatorValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -LocatorValue = LocatorValue.substring(0,39); -} -set_Value ("LocatorValue", LocatorValue); -} -/** Get Locator Key. -@return Key of the Warehouse Locator */ -public String getLocatorValue() -{ -return (String)get_Value("LocatorValue"); -} -/** Column name LocatorValue */ -public static final String COLUMNNAME_LocatorValue = "LocatorValue"; -/** Set Lot No. -@param Lot Lot number (alphanumeric) */ -public void setLot (String Lot) -{ -if (Lot != null && Lot.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Lot = Lot.substring(0,19); -} -set_Value ("Lot", Lot); -} -/** Get Lot No. -@return Lot number (alphanumeric) */ -public String getLot() -{ -return (String)get_Value("Lot"); -} -/** Column name Lot */ -public static final String COLUMNNAME_Lot = "Lot"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_Value ("M_InventoryLine_ID", null); - else -set_Value ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Phys.Inventory. -@param M_Inventory_ID Parameters for a Physical Inventory */ -public void setM_Inventory_ID (int M_Inventory_ID) -{ -if (M_Inventory_ID <= 0) set_Value ("M_Inventory_ID", null); - else -set_Value ("M_Inventory_ID", Integer.valueOf(M_Inventory_ID)); -} -/** Get Phys.Inventory. -@return Parameters for a Physical Inventory */ -public int getM_Inventory_ID() -{ -Integer ii = (Integer)get_Value("M_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Inventory_ID */ -public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID <= 0) set_Value ("M_Locator_ID", null); - else -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID <= 0) set_Value ("M_Warehouse_ID", null); - else -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Quantity book. -@param QtyBook Book Quantity */ -public void setQtyBook (BigDecimal QtyBook) -{ -set_Value ("QtyBook", QtyBook); -} -/** Get Quantity book. -@return Book Quantity */ -public BigDecimal getQtyBook() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyBook"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyBook */ -public static final String COLUMNNAME_QtyBook = "QtyBook"; -/** Set Quantity count. -@param QtyCount Counted Quantity */ -public void setQtyCount (BigDecimal QtyCount) -{ -set_Value ("QtyCount", QtyCount); -} -/** Get Quantity count. -@return Counted Quantity */ -public BigDecimal getQtyCount() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyCount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyCount */ -public static final String COLUMNNAME_QtyCount = "QtyCount"; -/** Set Serial No. -@param SerNo Product Serial Number */ -public void setSerNo (String SerNo) -{ -if (SerNo != null && SerNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -SerNo = SerNo.substring(0,19); -} -set_Value ("SerNo", SerNo); -} -/** Get Serial No. -@return Product Serial Number */ -public String getSerNo() -{ -return (String)get_Value("SerNo"); -} -/** Column name SerNo */ -public static final String COLUMNNAME_SerNo = "SerNo"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value != null && Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Warehouse Key. -@param WarehouseValue Key of the Warehouse */ -public void setWarehouseValue (String WarehouseValue) -{ -if (WarehouseValue != null && WarehouseValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -WarehouseValue = WarehouseValue.substring(0,39); -} -set_Value ("WarehouseValue", WarehouseValue); -} -/** Get Warehouse Key. -@return Key of the Warehouse */ -public String getWarehouseValue() -{ -return (String)get_Value("WarehouseValue"); -} -/** Column name WarehouseValue */ -public static final String COLUMNNAME_WarehouseValue = "WarehouseValue"; -/** Set Aisle (X). -@param X X dimension, e.g., Aisle */ -public void setX (String X) -{ -if (X != null && X.length() > 60) -{ -log.warning("Length > 60 - truncated"); -X = X.substring(0,59); -} -set_Value ("X", X); -} -/** Get Aisle (X). -@return X dimension, e.g., Aisle */ -public String getX() -{ -return (String)get_Value("X"); -} -/** Column name X */ -public static final String COLUMNNAME_X = "X"; -/** Set Bin (Y). -@param Y Y dimension, e.g., Bin */ -public void setY (String Y) -{ -if (Y != null && Y.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Y = Y.substring(0,59); -} -set_Value ("Y", Y); -} -/** Get Bin (Y). -@return Y dimension, e.g., Bin */ -public String getY() -{ -return (String)get_Value("Y"); -} -/** Column name Y */ -public static final String COLUMNNAME_Y = "Y"; -/** Set Level (Z). -@param Z Z dimension, e.g., Level */ -public void setZ (String Z) -{ -if (Z != null && Z.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Z = Z.substring(0,59); -} -set_Value ("Z", Z); -} -/** Get Level (Z). -@return Z dimension, e.g., Level */ -public String getZ() -{ -return (String)get_Value("Z"); -} -/** Column name Z */ -public static final String COLUMNNAME_Z = "Z"; -} + +/** Generated Model for I_Inventory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_Inventory extends PO implements I_I_Inventory, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Inventory (Properties ctx, int I_Inventory_ID, String trxName) + { + super (ctx, I_Inventory_ID, trxName); + /** if (I_Inventory_ID == 0) { setI_Inventory_ID (0); + setI_IsImported (false); +} */ + } + + /** Load Constructor */ + public X_I_Inventory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_Inventory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Import Inventory. + @param I_Inventory_ID + Import Inventory Transactions + */ + public void setI_Inventory_ID (int I_Inventory_ID) + { + if (I_Inventory_ID < 1) + throw new IllegalArgumentException ("I_Inventory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Inventory_ID, Integer.valueOf(I_Inventory_ID)); + } + + /** Get Import Inventory. + @return Import Inventory Transactions + */ + public int getI_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getI_Inventory_ID())); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Locator Key. + @param LocatorValue + Key of the Warehouse Locator + */ + public void setLocatorValue (String LocatorValue) + { + if (LocatorValue != null && LocatorValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + LocatorValue = LocatorValue.substring(0, 39); + } + set_Value (COLUMNNAME_LocatorValue, LocatorValue); + } + + /** Get Locator Key. + @return Key of the Warehouse Locator + */ + public String getLocatorValue () + { + return (String)get_Value(COLUMNNAME_LocatorValue); + } + + /** Set Lot No. + @param Lot + Lot number (alphanumeric) + */ + public void setLot (String Lot) + { + if (Lot != null && Lot.length() > 20) + { + log.warning("Length > 20 - truncated"); + Lot = Lot.substring(0, 19); + } + set_Value (COLUMNNAME_Lot, Lot); + } + + /** Get Lot No. + @return Lot number (alphanumeric) + */ + public String getLot () + { + return (String)get_Value(COLUMNNAME_Lot); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID <= 0) set_Value (COLUMNNAME_M_Inventory_ID, null); + else + set_Value (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Locator getI_M_Locator() throws Exception + { + 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 e; + } + return result; + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID <= 0) set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID <= 0) set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity book. + @param QtyBook + Book Quantity + */ + public void setQtyBook (BigDecimal QtyBook) + { + set_Value (COLUMNNAME_QtyBook, QtyBook); + } + + /** Get Quantity book. + @return Book Quantity + */ + public BigDecimal getQtyBook () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBook); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity count. + @param QtyCount + Counted Quantity + */ + public void setQtyCount (BigDecimal QtyCount) + { + set_Value (COLUMNNAME_QtyCount, QtyCount); + } + + /** Get Quantity count. + @return Counted Quantity + */ + public BigDecimal getQtyCount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Serial No. + @param SerNo + Product Serial Number + */ + public void setSerNo (String SerNo) + { + if (SerNo != null && SerNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + SerNo = SerNo.substring(0, 19); + } + set_Value (COLUMNNAME_SerNo, SerNo); + } + + /** Get Serial No. + @return Product Serial Number + */ + public String getSerNo () + { + return (String)get_Value(COLUMNNAME_SerNo); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value != null && Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Warehouse Key. + @param WarehouseValue + Key of the Warehouse + */ + public void setWarehouseValue (String WarehouseValue) + { + if (WarehouseValue != null && WarehouseValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + WarehouseValue = WarehouseValue.substring(0, 39); + } + set_Value (COLUMNNAME_WarehouseValue, WarehouseValue); + } + + /** Get Warehouse Key. + @return Key of the Warehouse + */ + public String getWarehouseValue () + { + return (String)get_Value(COLUMNNAME_WarehouseValue); + } + + /** Set Aisle (X). + @param X + X dimension, e.g., Aisle + */ + public void setX (String X) + { + if (X != null && X.length() > 60) + { + log.warning("Length > 60 - truncated"); + X = X.substring(0, 59); + } + set_Value (COLUMNNAME_X, X); + } + + /** Get Aisle (X). + @return X dimension, e.g., Aisle + */ + public String getX () + { + return (String)get_Value(COLUMNNAME_X); + } + + /** Set Bin (Y). + @param Y + Y dimension, e.g., Bin + */ + public void setY (String Y) + { + if (Y != null && Y.length() > 60) + { + log.warning("Length > 60 - truncated"); + Y = Y.substring(0, 59); + } + set_Value (COLUMNNAME_Y, Y); + } + + /** Get Bin (Y). + @return Y dimension, e.g., Bin + */ + public String getY () + { + return (String)get_Value(COLUMNNAME_Y); + } + + /** Set Level (Z). + @param Z + Z dimension, e.g., Level + */ + public void setZ (String Z) + { + if (Z != null && Z.length() > 60) + { + log.warning("Length > 60 - truncated"); + Z = Z.substring(0, 59); + } + set_Value (COLUMNNAME_Z, Z); + } + + /** Get Level (Z). + @return Z dimension, e.g., Level + */ + public String getZ () + { + return (String)get_Value(COLUMNNAME_Z); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_Invoice.java b/base/src/org/compiere/model/X_I_Invoice.java index 4332cc4e96..4cdb380d70 100644 --- a/base/src/org/compiere/model/X_I_Invoice.java +++ b/base/src/org/compiere/model/X_I_Invoice.java @@ -1,1010 +1,1345 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_Invoice - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_Invoice extends PO + +/** Generated Model for I_Invoice + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_Invoice extends PO implements I_I_Invoice, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_Invoice_ID id -@param trxName transaction -*/ -public X_I_Invoice (Properties ctx, int I_Invoice_ID, String trxName) -{ -super (ctx, I_Invoice_ID, trxName); -/** if (I_Invoice_ID == 0) -{ -setI_Invoice_ID (0); -setI_IsImported (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_Invoice (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_Invoice */ -public static final String Table_Name="I_Invoice"; - -/** AD_Table_ID=598 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_Invoice[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Invoice (Properties ctx, int I_Invoice_ID, String trxName) + { + super (ctx, I_Invoice_ID, trxName); + /** if (I_Invoice_ID == 0) { setI_Invoice_ID (0); + setI_IsImported (false); +} */ + } + + /** Load Constructor */ + public X_I_Invoice (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_Invoice[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Address 1. -@param Address1 Address line 1 for this location */ -public void setAddress1 (String Address1) -{ -if (Address1 != null && Address1.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address1 = Address1.substring(0,59); -} -set_Value ("Address1", Address1); -} -/** Get Address 1. -@return Address line 1 for this location */ -public String getAddress1() -{ -return (String)get_Value("Address1"); -} -/** Column name Address1 */ -public static final String COLUMNNAME_Address1 = "Address1"; -/** Set Address 2. -@param Address2 Address line 2 for this location */ -public void setAddress2 (String Address2) -{ -if (Address2 != null && Address2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address2 = Address2.substring(0,59); -} -set_Value ("Address2", Address2); -} -/** Get Address 2. -@return Address line 2 for this location */ -public String getAddress2() -{ -return (String)get_Value("Address2"); -} -/** Column name Address2 */ -public static final String COLUMNNAME_Address2 = "Address2"; -/** Set Business Partner Key. -@param BPartnerValue Key of the Business Partner */ -public void setBPartnerValue (String BPartnerValue) -{ -if (BPartnerValue != null && BPartnerValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BPartnerValue = BPartnerValue.substring(0,39); -} -set_Value ("BPartnerValue", BPartnerValue); -} -/** Get Business Partner Key. -@return Key of the Business Partner */ -public String getBPartnerValue() -{ -return (String)get_Value("BPartnerValue"); -} -/** Column name BPartnerValue */ -public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID <= 0) set_Value ("C_Country_ID", null); - else -set_Value ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_Value ("C_InvoiceLine_ID", null); - else -set_Value ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID <= 0) set_Value ("C_PaymentTerm_ID", null); - else -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID <= 0) set_Value ("C_Tax_ID", null); - else -set_Value ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set City. -@param City Identifies a City */ -public void setCity (String City) -{ -if (City != null && City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -City = City.substring(0,59); -} -set_Value ("City", City); -} -/** Get City. -@return Identifies a City */ -public String getCity() -{ -return (String)get_Value("City"); -} -/** Column name City */ -public static final String COLUMNNAME_City = "City"; -/** Set Contact Name. -@param ContactName Business Partner Contact Name */ -public void setContactName (String ContactName) -{ -if (ContactName != null && ContactName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ContactName = ContactName.substring(0,59); -} -set_Value ("ContactName", ContactName); -} -/** Get Contact Name. -@return Business Partner Contact Name */ -public String getContactName() -{ -return (String)get_Value("ContactName"); -} -/** Column name ContactName */ -public static final String COLUMNNAME_ContactName = "ContactName"; -/** Set ISO Country Code. -@param CountryCode Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public void setCountryCode (boolean CountryCode) -{ -set_Value ("CountryCode", Boolean.valueOf(CountryCode)); -} -/** Get ISO Country Code. -@return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public boolean isCountryCode() -{ -Object oo = get_Value("CountryCode"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name CountryCode */ -public static final String COLUMNNAME_CountryCode = "CountryCode"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Date Invoiced. -@param DateInvoiced Date printed on Invoice */ -public void setDateInvoiced (Timestamp DateInvoiced) -{ -set_Value ("DateInvoiced", DateInvoiced); -} -/** Get Date Invoiced. -@return Date printed on Invoice */ -public Timestamp getDateInvoiced() -{ -return (Timestamp)get_Value("DateInvoiced"); -} -/** Column name DateInvoiced */ -public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Type Name. -@param DocTypeName Name of the Document Type */ -public void setDocTypeName (String DocTypeName) -{ -if (DocTypeName != null && DocTypeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DocTypeName = DocTypeName.substring(0,59); -} -set_Value ("DocTypeName", DocTypeName); -} -/** Get Document Type Name. -@return Name of the Document Type */ -public String getDocTypeName() -{ -return (String)get_Value("DocTypeName"); -} -/** Column name DocTypeName */ -public static final String COLUMNNAME_DocTypeName = "DocTypeName"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Import Invoice. -@param I_Invoice_ID Import Invoice */ -public void setI_Invoice_ID (int I_Invoice_ID) -{ -if (I_Invoice_ID < 1) throw new IllegalArgumentException ("I_Invoice_ID is mandatory."); -set_ValueNoCheck ("I_Invoice_ID", Integer.valueOf(I_Invoice_ID)); -} -/** Get Import Invoice. -@return Import Invoice */ -public int getI_Invoice_ID() -{ -Integer ii = (Integer)get_Value("I_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_Invoice_ID */ -public static final String COLUMNNAME_I_Invoice_ID = "I_Invoice_ID"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Line Description. -@param LineDescription Description of the Line */ -public void setLineDescription (String LineDescription) -{ -if (LineDescription != null && LineDescription.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LineDescription = LineDescription.substring(0,254); -} -set_Value ("LineDescription", LineDescription); -} -/** Get Line Description. -@return Description of the Line */ -public String getLineDescription() -{ -return (String)get_Value("LineDescription"); -} -/** Column name LineDescription */ -public static final String COLUMNNAME_LineDescription = "LineDescription"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID <= 0) set_Value ("M_PriceList_ID", null); - else -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Payment Term Key. -@param PaymentTermValue Key of the Payment Term */ -public void setPaymentTermValue (String PaymentTermValue) -{ -if (PaymentTermValue != null && PaymentTermValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -PaymentTermValue = PaymentTermValue.substring(0,39); -} -set_Value ("PaymentTermValue", PaymentTermValue); -} -/** Get Payment Term Key. -@return Key of the Payment Term */ -public String getPaymentTermValue() -{ -return (String)get_Value("PaymentTermValue"); -} -/** Column name PaymentTermValue */ -public static final String COLUMNNAME_PaymentTermValue = "PaymentTermValue"; -/** Set Phone. -@param Phone Identifies a telephone number */ -public void setPhone (String Phone) -{ -if (Phone != null && Phone.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone = Phone.substring(0,39); -} -set_Value ("Phone", Phone); -} -/** Get Phone. -@return Identifies a telephone number */ -public String getPhone() -{ -return (String)get_Value("Phone"); -} -/** Column name Phone */ -public static final String COLUMNNAME_Phone = "Phone"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal != null && Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_Value ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -/** Set Unit Price. -@param PriceActual Actual Price */ -public void setPriceActual (BigDecimal PriceActual) -{ -set_Value ("PriceActual", PriceActual); -} -/** Get Unit Price. -@return Actual Price */ -public BigDecimal getPriceActual() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceActual */ -public static final String COLUMNNAME_PriceActual = "PriceActual"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Product Key. -@param ProductValue Key of the Product */ -public void setProductValue (String ProductValue) -{ -if (ProductValue != null && ProductValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ProductValue = ProductValue.substring(0,39); -} -set_Value ("ProductValue", ProductValue); -} -/** Get Product Key. -@return Key of the Product */ -public String getProductValue() -{ -return (String)get_Value("ProductValue"); -} -/** Column name ProductValue */ -public static final String COLUMNNAME_ProductValue = "ProductValue"; -/** Set Ordered Quantity. -@param QtyOrdered Ordered Quantity */ -public void setQtyOrdered (BigDecimal QtyOrdered) -{ -set_Value ("QtyOrdered", QtyOrdered); -} -/** Get Ordered Quantity. -@return Ordered Quantity */ -public BigDecimal getQtyOrdered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOrdered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOrdered */ -public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; -/** Set Region. -@param RegionName Name of the Region */ -public void setRegionName (String RegionName) -{ -if (RegionName != null && RegionName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RegionName = RegionName.substring(0,59); -} -set_Value ("RegionName", RegionName); -} -/** Get Region. -@return Name of the Region */ -public String getRegionName() -{ -return (String)get_Value("RegionName"); -} -/** Column name RegionName */ -public static final String COLUMNNAME_RegionName = "RegionName"; -/** Set SKU. -@param SKU Stock Keeping Unit */ -public void setSKU (String SKU) -{ -if (SKU != null && SKU.length() > 30) -{ -log.warning("Length > 30 - truncated"); -SKU = SKU.substring(0,29); -} -set_Value ("SKU", SKU); -} -/** Get SKU. -@return Stock Keeping Unit */ -public String getSKU() -{ -return (String)get_Value("SKU"); -} -/** Column name SKU */ -public static final String COLUMNNAME_SKU = "SKU"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address 1. + @param Address1 + Address line 1 for this location + */ + public void setAddress1 (String Address1) + { + if (Address1 != null && Address1.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address1 = Address1.substring(0, 59); + } + set_Value (COLUMNNAME_Address1, Address1); + } + + /** Get Address 1. + @return Address line 1 for this location + */ + public String getAddress1 () + { + return (String)get_Value(COLUMNNAME_Address1); + } + + /** Set Address 2. + @param Address2 + Address line 2 for this location + */ + public void setAddress2 (String Address2) + { + if (Address2 != null && Address2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address2 = Address2.substring(0, 59); + } + set_Value (COLUMNNAME_Address2, Address2); + } + + /** Get Address 2. + @return Address line 2 for this location + */ + public String getAddress2 () + { + return (String)get_Value(COLUMNNAME_Address2); + } + + /** Set Business Partner Key. + @param BPartnerValue + Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue) + { + if (BPartnerValue != null && BPartnerValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartnerValue = BPartnerValue.substring(0, 39); + } + set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); + } + + /** Get Business Partner Key. + @return Key of the Business Partner + */ + public String getBPartnerValue () + { + return (String)get_Value(COLUMNNAME_BPartnerValue); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID <= 0) set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_Value (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_Value (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID <= 0) set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Region getI_C_Region() throws Exception + { + 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 e; + } + return result; + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID <= 0) set_Value (COLUMNNAME_C_Tax_ID, null); + else + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set City. + @param City + Identifies a City + */ + public void setCity (String City) + { + if (City != null && City.length() > 60) + { + log.warning("Length > 60 - truncated"); + City = City.substring(0, 59); + } + set_Value (COLUMNNAME_City, City); + } + + /** Get City. + @return Identifies a City + */ + public String getCity () + { + return (String)get_Value(COLUMNNAME_City); + } + + /** Set Contact Name. + @param ContactName + Business Partner Contact Name + */ + public void setContactName (String ContactName) + { + if (ContactName != null && ContactName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ContactName = ContactName.substring(0, 59); + } + set_Value (COLUMNNAME_ContactName, ContactName); + } + + /** Get Contact Name. + @return Business Partner Contact Name + */ + public String getContactName () + { + return (String)get_Value(COLUMNNAME_ContactName); + } + + /** Set ISO Country Code. + @param CountryCode + Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (boolean CountryCode) + { + set_Value (COLUMNNAME_CountryCode, Boolean.valueOf(CountryCode)); + } + + /** Get ISO Country Code. + @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public boolean isCountryCode () + { + Object oo = get_Value(COLUMNNAME_CountryCode); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Invoiced. + @param DateInvoiced + Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced) + { + set_Value (COLUMNNAME_DateInvoiced, DateInvoiced); + } + + /** Get Date Invoiced. + @return Date printed on Invoice + */ + public Timestamp getDateInvoiced () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvoiced); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Type Name. + @param DocTypeName + Name of the Document Type + */ + public void setDocTypeName (String DocTypeName) + { + if (DocTypeName != null && DocTypeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocTypeName = DocTypeName.substring(0, 59); + } + set_Value (COLUMNNAME_DocTypeName, DocTypeName); + } + + /** Get Document Type Name. + @return Name of the Document Type + */ + public String getDocTypeName () + { + return (String)get_Value(COLUMNNAME_DocTypeName); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Import Invoice. + @param I_Invoice_ID + Import Invoice + */ + public void setI_Invoice_ID (int I_Invoice_ID) + { + if (I_Invoice_ID < 1) + throw new IllegalArgumentException ("I_Invoice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Invoice_ID, Integer.valueOf(I_Invoice_ID)); + } + + /** Get Import Invoice. + @return Import Invoice + */ + public int getI_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line Description. + @param LineDescription + Description of the Line + */ + public void setLineDescription (String LineDescription) + { + if (LineDescription != null && LineDescription.length() > 255) + { + log.warning("Length > 255 - truncated"); + LineDescription = LineDescription.substring(0, 254); + } + set_Value (COLUMNNAME_LineDescription, LineDescription); + } + + /** Get Line Description. + @return Description of the Line + */ + public String getLineDescription () + { + return (String)get_Value(COLUMNNAME_LineDescription); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID <= 0) set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Payment Term Key. + @param PaymentTermValue + Key of the Payment Term + */ + public void setPaymentTermValue (String PaymentTermValue) + { + if (PaymentTermValue != null && PaymentTermValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + PaymentTermValue = PaymentTermValue.substring(0, 39); + } + set_Value (COLUMNNAME_PaymentTermValue, PaymentTermValue); + } + + /** Get Payment Term Key. + @return Key of the Payment Term + */ + public String getPaymentTermValue () + { + return (String)get_Value(COLUMNNAME_PaymentTermValue); + } + + /** Set Phone. + @param Phone + Identifies a telephone number + */ + public void setPhone (String Phone) + { + if (Phone != null && Phone.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone = Phone.substring(0, 39); + } + set_Value (COLUMNNAME_Phone, Phone); + } + + /** Get Phone. + @return Identifies a telephone number + */ + public String getPhone () + { + return (String)get_Value(COLUMNNAME_Phone); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal != null && Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_Value (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + set_Value (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product Key. + @param ProductValue + Key of the Product + */ + public void setProductValue (String ProductValue) + { + if (ProductValue != null && ProductValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ProductValue = ProductValue.substring(0, 39); + } + set_Value (COLUMNNAME_ProductValue, ProductValue); + } + + /** Get Product Key. + @return Key of the Product + */ + public String getProductValue () + { + return (String)get_Value(COLUMNNAME_ProductValue); + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Region. + @param RegionName + Name of the Region + */ + public void setRegionName (String RegionName) + { + if (RegionName != null && RegionName.length() > 60) + { + log.warning("Length > 60 - truncated"); + RegionName = RegionName.substring(0, 59); + } + set_Value (COLUMNNAME_RegionName, RegionName); + } + + /** Get Region. + @return Name of the Region + */ + public String getRegionName () + { + return (String)get_Value(COLUMNNAME_RegionName); + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 29); + } + set_Value (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -set_Value ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; -/** Set Tax Indicator. -@param TaxIndicator Short form for Tax to be printed on documents */ -public void setTaxIndicator (String TaxIndicator) -{ -if (TaxIndicator != null && TaxIndicator.length() > 5) -{ -log.warning("Length > 5 - truncated"); -TaxIndicator = TaxIndicator.substring(0,4); -} -set_Value ("TaxIndicator", TaxIndicator); -} -/** Get Tax Indicator. -@return Short form for Tax to be printed on documents */ -public String getTaxIndicator() -{ -return (String)get_Value("TaxIndicator"); -} -/** Column name TaxIndicator */ -public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tax Indicator. + @param TaxIndicator + Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator) + { + if (TaxIndicator != null && TaxIndicator.length() > 5) + { + log.warning("Length > 5 - truncated"); + TaxIndicator = TaxIndicator.substring(0, 4); + } + set_Value (COLUMNNAME_TaxIndicator, TaxIndicator); + } + + /** Get Tax Indicator. + @return Short form for Tax to be printed on documents + */ + public String getTaxIndicator () + { + return (String)get_Value(COLUMNNAME_TaxIndicator); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_Order.java b/base/src/org/compiere/model/X_I_Order.java index a494dd6bc3..ae4024ad27 100644 --- a/base/src/org/compiere/model/X_I_Order.java +++ b/base/src/org/compiere/model/X_I_Order.java @@ -1,1100 +1,1501 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_Order - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_Order extends PO + +/** Generated Model for I_Order + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_Order extends PO implements I_I_Order, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_Order_ID id -@param trxName transaction -*/ -public X_I_Order (Properties ctx, int I_Order_ID, String trxName) -{ -super (ctx, I_Order_ID, trxName); -/** if (I_Order_ID == 0) -{ -setI_IsImported (false); -setI_Order_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_Order (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_Order */ -public static final String Table_Name="I_Order"; - -/** AD_Table_ID=591 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_Order[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Order (Properties ctx, int I_Order_ID, String trxName) + { + super (ctx, I_Order_ID, trxName); + /** if (I_Order_ID == 0) { setI_IsImported (false); + setI_Order_ID (0); +} */ + } + + /** Load Constructor */ + public X_I_Order (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_Order[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Address 1. -@param Address1 Address line 1 for this location */ -public void setAddress1 (String Address1) -{ -if (Address1 != null && Address1.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address1 = Address1.substring(0,59); -} -set_Value ("Address1", Address1); -} -/** Get Address 1. -@return Address line 1 for this location */ -public String getAddress1() -{ -return (String)get_Value("Address1"); -} -/** Column name Address1 */ -public static final String COLUMNNAME_Address1 = "Address1"; -/** Set Address 2. -@param Address2 Address line 2 for this location */ -public void setAddress2 (String Address2) -{ -if (Address2 != null && Address2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address2 = Address2.substring(0,59); -} -set_Value ("Address2", Address2); -} -/** Get Address 2. -@return Address line 2 for this location */ -public String getAddress2() -{ -return (String)get_Value("Address2"); -} -/** Column name Address2 */ -public static final String COLUMNNAME_Address2 = "Address2"; -/** Set Business Partner Key. -@param BPartnerValue Key of the Business Partner */ -public void setBPartnerValue (String BPartnerValue) -{ -if (BPartnerValue != null && BPartnerValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BPartnerValue = BPartnerValue.substring(0,39); -} -set_Value ("BPartnerValue", BPartnerValue); -} -/** Get Business Partner Key. -@return Key of the Business Partner */ -public String getBPartnerValue() -{ -return (String)get_Value("BPartnerValue"); -} -/** Column name BPartnerValue */ -public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address 1. + @param Address1 + Address line 1 for this location + */ + public void setAddress1 (String Address1) + { + if (Address1 != null && Address1.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address1 = Address1.substring(0, 59); + } + set_Value (COLUMNNAME_Address1, Address1); + } + + /** Get Address 1. + @return Address line 1 for this location + */ + public String getAddress1 () + { + return (String)get_Value(COLUMNNAME_Address1); + } + + /** Set Address 2. + @param Address2 + Address line 2 for this location + */ + public void setAddress2 (String Address2) + { + if (Address2 != null && Address2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address2 = Address2.substring(0, 59); + } + set_Value (COLUMNNAME_Address2, Address2); + } + + /** Get Address 2. + @return Address line 2 for this location + */ + public String getAddress2 () + { + return (String)get_Value(COLUMNNAME_Address2); + } + + /** Set Business Partner Key. + @param BPartnerValue + Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue) + { + if (BPartnerValue != null && BPartnerValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartnerValue = BPartnerValue.substring(0, 39); + } + set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); + } + + /** Get Business Partner Key. + @return Key of the Business Partner + */ + public String getBPartnerValue () + { + return (String)get_Value(COLUMNNAME_BPartnerValue); + } /** BillTo_ID AD_Reference_ID=159 */ public static final int BILLTO_ID_AD_Reference_ID=159; -/** Set Invoice To. -@param BillTo_ID Bill to Address */ -public void setBillTo_ID (int BillTo_ID) -{ -if (BillTo_ID <= 0) set_Value ("BillTo_ID", null); - else -set_Value ("BillTo_ID", Integer.valueOf(BillTo_ID)); -} -/** Get Invoice To. -@return Bill to Address */ -public int getBillTo_ID() -{ -Integer ii = (Integer)get_Value("BillTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BillTo_ID */ -public static final String COLUMNNAME_BillTo_ID = "BillTo_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID <= 0) set_Value ("C_Country_ID", null); - else -set_Value ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_Value ("C_OrderLine_ID", null); - else -set_Value ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID <= 0) set_Value ("C_PaymentTerm_ID", null); - else -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set Tax. -@param C_Tax_ID Tax identifier */ -public void setC_Tax_ID (int C_Tax_ID) -{ -if (C_Tax_ID <= 0) set_Value ("C_Tax_ID", null); - else -set_Value ("C_Tax_ID", Integer.valueOf(C_Tax_ID)); -} -/** Get Tax. -@return Tax identifier */ -public int getC_Tax_ID() -{ -Integer ii = (Integer)get_Value("C_Tax_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Tax_ID */ -public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set City. -@param City Identifies a City */ -public void setCity (String City) -{ -if (City != null && City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -City = City.substring(0,59); -} -set_Value ("City", City); -} -/** Get City. -@return Identifies a City */ -public String getCity() -{ -return (String)get_Value("City"); -} -/** Column name City */ -public static final String COLUMNNAME_City = "City"; -/** Set Contact Name. -@param ContactName Business Partner Contact Name */ -public void setContactName (String ContactName) -{ -if (ContactName != null && ContactName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ContactName = ContactName.substring(0,59); -} -set_Value ("ContactName", ContactName); -} -/** Get Contact Name. -@return Business Partner Contact Name */ -public String getContactName() -{ -return (String)get_Value("ContactName"); -} -/** Column name ContactName */ -public static final String COLUMNNAME_ContactName = "ContactName"; -/** Set ISO Country Code. -@param CountryCode Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public void setCountryCode (String CountryCode) -{ -if (CountryCode != null && CountryCode.length() > 2) -{ -log.warning("Length > 2 - truncated"); -CountryCode = CountryCode.substring(0,1); -} -set_Value ("CountryCode", CountryCode); -} -/** Get ISO Country Code. -@return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */ -public String getCountryCode() -{ -return (String)get_Value("CountryCode"); -} -/** Column name CountryCode */ -public static final String COLUMNNAME_CountryCode = "CountryCode"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Date Ordered. -@param DateOrdered Date of Order */ -public void setDateOrdered (Timestamp DateOrdered) -{ -set_Value ("DateOrdered", DateOrdered); -} -/** Get Date Ordered. -@return Date of Order */ -public Timestamp getDateOrdered() -{ -return (Timestamp)get_Value("DateOrdered"); -} -/** Column name DateOrdered */ -public static final String COLUMNNAME_DateOrdered = "DateOrdered"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Type Name. -@param DocTypeName Name of the Document Type */ -public void setDocTypeName (String DocTypeName) -{ -if (DocTypeName != null && DocTypeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DocTypeName = DocTypeName.substring(0,59); -} -set_Value ("DocTypeName", DocTypeName); -} -/** Get Document Type Name. -@return Name of the Document Type */ -public String getDocTypeName() -{ -return (String)get_Value("DocTypeName"); -} -/** Column name DocTypeName */ -public static final String COLUMNNAME_DocTypeName = "DocTypeName"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Freight Amount. -@param FreightAmt Freight Amount */ -public void setFreightAmt (BigDecimal FreightAmt) -{ -set_Value ("FreightAmt", FreightAmt); -} -/** Get Freight Amount. -@return Freight Amount */ -public BigDecimal getFreightAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FreightAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FreightAmt */ -public static final String COLUMNNAME_FreightAmt = "FreightAmt"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Import Order. -@param I_Order_ID Import Orders */ -public void setI_Order_ID (int I_Order_ID) -{ -if (I_Order_ID < 1) throw new IllegalArgumentException ("I_Order_ID is mandatory."); -set_ValueNoCheck ("I_Order_ID", Integer.valueOf(I_Order_ID)); -} -/** Get Import Order. -@return Import Orders */ -public int getI_Order_ID() -{ -Integer ii = (Integer)get_Value("I_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_Order_ID */ -public static final String COLUMNNAME_I_Order_ID = "I_Order_ID"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Line Description. -@param LineDescription Description of the Line */ -public void setLineDescription (String LineDescription) -{ -if (LineDescription != null && LineDescription.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LineDescription = LineDescription.substring(0,254); -} -set_Value ("LineDescription", LineDescription); -} -/** Get Line Description. -@return Description of the Line */ -public String getLineDescription() -{ -return (String)get_Value("LineDescription"); -} -/** Column name LineDescription */ -public static final String COLUMNNAME_LineDescription = "LineDescription"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID <= 0) set_Value ("M_PriceList_ID", null); - else -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID <= 0) set_Value ("M_Shipper_ID", null); - else -set_Value ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID <= 0) set_Value ("M_Warehouse_ID", null); - else -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Payment Term Key. -@param PaymentTermValue Key of the Payment Term */ -public void setPaymentTermValue (String PaymentTermValue) -{ -if (PaymentTermValue != null && PaymentTermValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -PaymentTermValue = PaymentTermValue.substring(0,39); -} -set_Value ("PaymentTermValue", PaymentTermValue); -} -/** Get Payment Term Key. -@return Key of the Payment Term */ -public String getPaymentTermValue() -{ -return (String)get_Value("PaymentTermValue"); -} -/** Column name PaymentTermValue */ -public static final String COLUMNNAME_PaymentTermValue = "PaymentTermValue"; -/** Set Phone. -@param Phone Identifies a telephone number */ -public void setPhone (String Phone) -{ -if (Phone != null && Phone.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone = Phone.substring(0,39); -} -set_Value ("Phone", Phone); -} -/** Get Phone. -@return Identifies a telephone number */ -public String getPhone() -{ -return (String)get_Value("Phone"); -} -/** Column name Phone */ -public static final String COLUMNNAME_Phone = "Phone"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal != null && Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_Value ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -/** Set Unit Price. -@param PriceActual Actual Price */ -public void setPriceActual (BigDecimal PriceActual) -{ -set_Value ("PriceActual", PriceActual); -} -/** Get Unit Price. -@return Actual Price */ -public BigDecimal getPriceActual() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceActual */ -public static final String COLUMNNAME_PriceActual = "PriceActual"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Product Key. -@param ProductValue Key of the Product */ -public void setProductValue (String ProductValue) -{ -if (ProductValue != null && ProductValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ProductValue = ProductValue.substring(0,39); -} -set_Value ("ProductValue", ProductValue); -} -/** Get Product Key. -@return Key of the Product */ -public String getProductValue() -{ -return (String)get_Value("ProductValue"); -} -/** Column name ProductValue */ -public static final String COLUMNNAME_ProductValue = "ProductValue"; -/** Set Ordered Quantity. -@param QtyOrdered Ordered Quantity */ -public void setQtyOrdered (BigDecimal QtyOrdered) -{ -set_Value ("QtyOrdered", QtyOrdered); -} -/** Get Ordered Quantity. -@return Ordered Quantity */ -public BigDecimal getQtyOrdered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOrdered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOrdered */ -public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; -/** Set Region. -@param RegionName Name of the Region */ -public void setRegionName (String RegionName) -{ -if (RegionName != null && RegionName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RegionName = RegionName.substring(0,59); -} -set_Value ("RegionName", RegionName); -} -/** Get Region. -@return Name of the Region */ -public String getRegionName() -{ -return (String)get_Value("RegionName"); -} -/** Column name RegionName */ -public static final String COLUMNNAME_RegionName = "RegionName"; -/** Set SKU. -@param SKU Stock Keeping Unit */ -public void setSKU (String SKU) -{ -if (SKU != null && SKU.length() > 30) -{ -log.warning("Length > 30 - truncated"); -SKU = SKU.substring(0,29); -} -set_Value ("SKU", SKU); -} -/** Get SKU. -@return Stock Keeping Unit */ -public String getSKU() -{ -return (String)get_Value("SKU"); -} -/** Column name SKU */ -public static final String COLUMNNAME_SKU = "SKU"; + /** Set Invoice To. + @param BillTo_ID + Bill to Address + */ + public void setBillTo_ID (int BillTo_ID) + { + if (BillTo_ID <= 0) set_Value (COLUMNNAME_BillTo_ID, null); + else + set_Value (COLUMNNAME_BillTo_ID, Integer.valueOf(BillTo_ID)); + } + + /** Get Invoice To. + @return Bill to Address + */ + public int getBillTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BillTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID <= 0) set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_Value (COLUMNNAME_C_OrderLine_ID, null); + else + set_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID <= 0) set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Region getI_C_Region() throws Exception + { + 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 e; + } + return result; + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getI_C_Tax() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID <= 0) set_Value (COLUMNNAME_C_Tax_ID, null); + else + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set City. + @param City + Identifies a City + */ + public void setCity (String City) + { + if (City != null && City.length() > 60) + { + log.warning("Length > 60 - truncated"); + City = City.substring(0, 59); + } + set_Value (COLUMNNAME_City, City); + } + + /** Get City. + @return Identifies a City + */ + public String getCity () + { + return (String)get_Value(COLUMNNAME_City); + } + + /** Set Contact Name. + @param ContactName + Business Partner Contact Name + */ + public void setContactName (String ContactName) + { + if (ContactName != null && ContactName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ContactName = ContactName.substring(0, 59); + } + set_Value (COLUMNNAME_ContactName, ContactName); + } + + /** Get Contact Name. + @return Business Partner Contact Name + */ + public String getContactName () + { + return (String)get_Value(COLUMNNAME_ContactName); + } + + /** Set ISO Country Code. + @param CountryCode + Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public void setCountryCode (String CountryCode) + { + if (CountryCode != null && CountryCode.length() > 2) + { + log.warning("Length > 2 - truncated"); + CountryCode = CountryCode.substring(0, 1); + } + set_Value (COLUMNNAME_CountryCode, CountryCode); + } + + /** Get ISO Country Code. + @return Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html + */ + public String getCountryCode () + { + return (String)get_Value(COLUMNNAME_CountryCode); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + set_Value (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Type Name. + @param DocTypeName + Name of the Document Type + */ + public void setDocTypeName (String DocTypeName) + { + if (DocTypeName != null && DocTypeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocTypeName = DocTypeName.substring(0, 59); + } + set_Value (COLUMNNAME_DocTypeName, DocTypeName); + } + + /** Get Document Type Name. + @return Name of the Document Type + */ + public String getDocTypeName () + { + return (String)get_Value(COLUMNNAME_DocTypeName); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Import Order. + @param I_Order_ID + Import Orders + */ + public void setI_Order_ID (int I_Order_ID) + { + if (I_Order_ID < 1) + throw new IllegalArgumentException ("I_Order_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Order_ID, Integer.valueOf(I_Order_ID)); + } + + /** Get Import Order. + @return Import Orders + */ + public int getI_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line Description. + @param LineDescription + Description of the Line + */ + public void setLineDescription (String LineDescription) + { + if (LineDescription != null && LineDescription.length() > 255) + { + log.warning("Length > 255 - truncated"); + LineDescription = LineDescription.substring(0, 254); + } + set_Value (COLUMNNAME_LineDescription, LineDescription); + } + + /** Get Line Description. + @return Description of the Line + */ + public String getLineDescription () + { + return (String)get_Value(COLUMNNAME_LineDescription); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID <= 0) set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getI_M_Shipper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID <= 0) set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID <= 0) set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Payment Term Key. + @param PaymentTermValue + Key of the Payment Term + */ + public void setPaymentTermValue (String PaymentTermValue) + { + if (PaymentTermValue != null && PaymentTermValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + PaymentTermValue = PaymentTermValue.substring(0, 39); + } + set_Value (COLUMNNAME_PaymentTermValue, PaymentTermValue); + } + + /** Get Payment Term Key. + @return Key of the Payment Term + */ + public String getPaymentTermValue () + { + return (String)get_Value(COLUMNNAME_PaymentTermValue); + } + + /** Set Phone. + @param Phone + Identifies a telephone number + */ + public void setPhone (String Phone) + { + if (Phone != null && Phone.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone = Phone.substring(0, 39); + } + set_Value (COLUMNNAME_Phone, Phone); + } + + /** Get Phone. + @return Identifies a telephone number + */ + public String getPhone () + { + return (String)get_Value(COLUMNNAME_Phone); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal != null && Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_Value (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + set_Value (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product Key. + @param ProductValue + Key of the Product + */ + public void setProductValue (String ProductValue) + { + if (ProductValue != null && ProductValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ProductValue = ProductValue.substring(0, 39); + } + set_Value (COLUMNNAME_ProductValue, ProductValue); + } + + /** Get Product Key. + @return Key of the Product + */ + public String getProductValue () + { + return (String)get_Value(COLUMNNAME_ProductValue); + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Region. + @param RegionName + Name of the Region + */ + public void setRegionName (String RegionName) + { + if (RegionName != null && RegionName.length() > 60) + { + log.warning("Length > 60 - truncated"); + RegionName = RegionName.substring(0, 59); + } + set_Value (COLUMNNAME_RegionName, RegionName); + } + + /** Get Region. + @return Name of the Region + */ + public String getRegionName () + { + return (String)get_Value(COLUMNNAME_RegionName); + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 29); + } + set_Value (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -set_Value ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; -/** Set Tax Indicator. -@param TaxIndicator Short form for Tax to be printed on documents */ -public void setTaxIndicator (String TaxIndicator) -{ -if (TaxIndicator != null && TaxIndicator.length() > 5) -{ -log.warning("Length > 5 - truncated"); -TaxIndicator = TaxIndicator.substring(0,4); -} -set_Value ("TaxIndicator", TaxIndicator); -} -/** Get Tax Indicator. -@return Short form for Tax to be printed on documents */ -public String getTaxIndicator() -{ -return (String)get_Value("TaxIndicator"); -} -/** Column name TaxIndicator */ -public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Tax Indicator. + @param TaxIndicator + Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator) + { + if (TaxIndicator != null && TaxIndicator.length() > 5) + { + log.warning("Length > 5 - truncated"); + TaxIndicator = TaxIndicator.substring(0, 4); + } + set_Value (COLUMNNAME_TaxIndicator, TaxIndicator); + } + + /** Get Tax Indicator. + @return Short form for Tax to be printed on documents + */ + public String getTaxIndicator () + { + return (String)get_Value(COLUMNNAME_TaxIndicator); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_Payment.java b/base/src/org/compiere/model/X_I_Payment.java index 070245a65a..e20bb20e16 100644 --- a/base/src/org/compiere/model/X_I_Payment.java +++ b/base/src/org/compiere/model/X_I_Payment.java @@ -1,1262 +1,1490 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_Payment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_Payment extends PO -{ -/** Standard Constructor -@param ctx context -@param I_Payment_ID id -@param trxName transaction -*/ -public X_I_Payment (Properties ctx, int I_Payment_ID, String trxName) -{ -super (ctx, I_Payment_ID, trxName); -/** if (I_Payment_ID == 0) -{ -setI_IsImported (false); -setI_Payment_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_Payment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_Payment */ -public static final String Table_Name="I_Payment"; - -/** AD_Table_ID=597 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_Payment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Account City. -@param A_City City or the Credit Card or Account Holder */ -public void setA_City (String A_City) -{ -if (A_City != null && A_City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_City = A_City.substring(0,59); -} -set_Value ("A_City", A_City); -} -/** Get Account City. -@return City or the Credit Card or Account Holder */ -public String getA_City() -{ -return (String)get_Value("A_City"); -} -/** Column name A_City */ -public static final String COLUMNNAME_A_City = "A_City"; -/** Set Account Country. -@param A_Country Country */ -public void setA_Country (String A_Country) -{ -if (A_Country != null && A_Country.length() > 40) -{ -log.warning("Length > 40 - truncated"); -A_Country = A_Country.substring(0,39); -} -set_Value ("A_Country", A_Country); -} -/** Get Account Country. -@return Country */ -public String getA_Country() -{ -return (String)get_Value("A_Country"); -} -/** Column name A_Country */ -public static final String COLUMNNAME_A_Country = "A_Country"; -/** Set Account EMail. -@param A_EMail Email Address */ -public void setA_EMail (String A_EMail) -{ -if (A_EMail != null && A_EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_EMail = A_EMail.substring(0,59); -} -set_Value ("A_EMail", A_EMail); -} -/** Get Account EMail. -@return Email Address */ -public String getA_EMail() -{ -return (String)get_Value("A_EMail"); -} -/** Column name A_EMail */ -public static final String COLUMNNAME_A_EMail = "A_EMail"; -/** Set Driver License. -@param A_Ident_DL Payment Identification - Driver License */ -public void setA_Ident_DL (String A_Ident_DL) -{ -if (A_Ident_DL != null && A_Ident_DL.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Ident_DL = A_Ident_DL.substring(0,19); -} -set_Value ("A_Ident_DL", A_Ident_DL); -} -/** Get Driver License. -@return Payment Identification - Driver License */ -public String getA_Ident_DL() -{ -return (String)get_Value("A_Ident_DL"); -} -/** Column name A_Ident_DL */ -public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; -/** Set Social Security No. -@param A_Ident_SSN Payment Identification - Social Security No */ -public void setA_Ident_SSN (String A_Ident_SSN) -{ -if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Ident_SSN = A_Ident_SSN.substring(0,19); -} -set_Value ("A_Ident_SSN", A_Ident_SSN); -} -/** Get Social Security No. -@return Payment Identification - Social Security No */ -public String getA_Ident_SSN() -{ -return (String)get_Value("A_Ident_SSN"); -} -/** Column name A_Ident_SSN */ -public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; -/** Set Account Name. -@param A_Name Name on Credit Card or Account holder */ -public void setA_Name (String A_Name) -{ -if (A_Name != null && A_Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_Name = A_Name.substring(0,59); -} -set_Value ("A_Name", A_Name); -} -/** Get Account Name. -@return Name on Credit Card or Account holder */ -public String getA_Name() -{ -return (String)get_Value("A_Name"); -} -/** Column name A_Name */ -public static final String COLUMNNAME_A_Name = "A_Name"; -/** Set Account State. -@param A_State State of the Credit Card or Account holder */ -public void setA_State (String A_State) -{ -if (A_State != null && A_State.length() > 40) -{ -log.warning("Length > 40 - truncated"); -A_State = A_State.substring(0,39); -} -set_Value ("A_State", A_State); -} -/** Get Account State. -@return State of the Credit Card or Account holder */ -public String getA_State() -{ -return (String)get_Value("A_State"); -} -/** Column name A_State */ -public static final String COLUMNNAME_A_State = "A_State"; -/** Set Account Street. -@param A_Street Street address of the Credit Card or Account holder */ -public void setA_Street (String A_Street) -{ -if (A_Street != null && A_Street.length() > 60) -{ -log.warning("Length > 60 - truncated"); -A_Street = A_Street.substring(0,59); -} -set_Value ("A_Street", A_Street); -} -/** Get Account Street. -@return Street address of the Credit Card or Account holder */ -public String getA_Street() -{ -return (String)get_Value("A_Street"); -} -/** Column name A_Street */ -public static final String COLUMNNAME_A_Street = "A_Street"; -/** Set Account Zip/Postal. -@param A_Zip Zip Code of the Credit Card or Account Holder */ -public void setA_Zip (String A_Zip) -{ -if (A_Zip != null && A_Zip.length() > 20) -{ -log.warning("Length > 20 - truncated"); -A_Zip = A_Zip.substring(0,19); -} -set_Value ("A_Zip", A_Zip); -} -/** Get Account Zip/Postal. -@return Zip Code of the Credit Card or Account Holder */ -public String getA_Zip() -{ -return (String)get_Value("A_Zip"); -} -/** Column name A_Zip */ -public static final String COLUMNNAME_A_Zip = "A_Zip"; -/** Set Account No. -@param AccountNo Account Number */ -public void setAccountNo (String AccountNo) -{ -if (AccountNo != null && AccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -AccountNo = AccountNo.substring(0,19); -} -set_Value ("AccountNo", AccountNo); -} -/** Get Account No. -@return Account Number */ -public String getAccountNo() -{ -return (String)get_Value("AccountNo"); -} -/** Column name AccountNo */ -public static final String COLUMNNAME_AccountNo = "AccountNo"; -/** Set Business Partner Key. -@param BPartnerValue Key of the Business Partner */ -public void setBPartnerValue (String BPartnerValue) -{ -if (BPartnerValue != null && BPartnerValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BPartnerValue = BPartnerValue.substring(0,39); -} -set_Value ("BPartnerValue", BPartnerValue); -} -/** Get Business Partner Key. -@return Key of the Business Partner */ -public String getBPartnerValue() -{ -return (String)get_Value("BPartnerValue"); -} -/** Column name BPartnerValue */ -public static final String COLUMNNAME_BPartnerValue = "BPartnerValue"; -/** Set Bank Account No. -@param BankAccountNo Bank Account Number */ -public void setBankAccountNo (String BankAccountNo) -{ -if (BankAccountNo != null && BankAccountNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -BankAccountNo = BankAccountNo.substring(0,19); -} -set_Value ("BankAccountNo", BankAccountNo); -} -/** Get Bank Account No. -@return Bank Account Number */ -public String getBankAccountNo() -{ -return (String)get_Value("BankAccountNo"); -} -/** Column name BankAccountNo */ -public static final String COLUMNNAME_BankAccountNo = "BankAccountNo"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Bank Account. -@param C_BankAccount_ID Account at the Bank */ -public void setC_BankAccount_ID (int C_BankAccount_ID) -{ -if (C_BankAccount_ID <= 0) set_Value ("C_BankAccount_ID", null); - else -set_Value ("C_BankAccount_ID", Integer.valueOf(C_BankAccount_ID)); -} -/** Get Bank Account. -@return Account at the Bank */ -public int getC_BankAccount_ID() -{ -Integer ii = (Integer)get_Value("C_BankAccount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BankAccount_ID */ -public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Charge Name. -@param ChargeName Name of the Charge */ -public void setChargeName (String ChargeName) -{ -if (ChargeName != null && ChargeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ChargeName = ChargeName.substring(0,59); -} -set_Value ("ChargeName", ChargeName); -} -/** Get Charge Name. -@return Name of the Charge */ -public String getChargeName() -{ -return (String)get_Value("ChargeName"); -} -/** Column name ChargeName */ -public static final String COLUMNNAME_ChargeName = "ChargeName"; -/** Set Check No. -@param CheckNo Check Number */ -public void setCheckNo (String CheckNo) -{ -if (CheckNo != null && CheckNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CheckNo = CheckNo.substring(0,19); -} -set_Value ("CheckNo", CheckNo); -} -/** Get Check No. -@return Check Number */ -public String getCheckNo() -{ -return (String)get_Value("CheckNo"); -} -/** Column name CheckNo */ -public static final String COLUMNNAME_CheckNo = "CheckNo"; -/** Set Exp. Month. -@param CreditCardExpMM Expiry Month */ -public void setCreditCardExpMM (int CreditCardExpMM) -{ -set_Value ("CreditCardExpMM", Integer.valueOf(CreditCardExpMM)); -} -/** Get Exp. Month. -@return Expiry Month */ -public int getCreditCardExpMM() -{ -Integer ii = (Integer)get_Value("CreditCardExpMM"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CreditCardExpMM */ -public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; -/** Set Exp. Year. -@param CreditCardExpYY Expiry Year */ -public void setCreditCardExpYY (int CreditCardExpYY) -{ -set_Value ("CreditCardExpYY", Integer.valueOf(CreditCardExpYY)); -} -/** Get Exp. Year. -@return Expiry Year */ -public int getCreditCardExpYY() -{ -Integer ii = (Integer)get_Value("CreditCardExpYY"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CreditCardExpYY */ -public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; -/** Set Number. -@param CreditCardNumber Credit Card Number */ -public void setCreditCardNumber (String CreditCardNumber) -{ -if (CreditCardNumber != null && CreditCardNumber.length() > 20) -{ -log.warning("Length > 20 - truncated"); -CreditCardNumber = CreditCardNumber.substring(0,19); -} -set_Value ("CreditCardNumber", CreditCardNumber); -} -/** Get Number. -@return Credit Card Number */ -public String getCreditCardNumber() -{ -return (String)get_Value("CreditCardNumber"); -} -/** Column name CreditCardNumber */ -public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + +/** Generated Model for I_Payment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_Payment extends PO implements I_I_Payment, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Payment (Properties ctx, int I_Payment_ID, String trxName) + { + super (ctx, I_Payment_ID, trxName); + /** if (I_Payment_ID == 0) { setI_IsImported (false); + setI_Payment_ID (0); +} */ + } + + /** Load Constructor */ + public X_I_Payment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_Payment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Account City. + @param A_City + City or the Credit Card or Account Holder + */ + public void setA_City (String A_City) + { + if (A_City != null && A_City.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_City = A_City.substring(0, 59); + } + set_Value (COLUMNNAME_A_City, A_City); + } + + /** Get Account City. + @return City or the Credit Card or Account Holder + */ + public String getA_City () + { + return (String)get_Value(COLUMNNAME_A_City); + } + + /** Set Account Country. + @param A_Country + Country + */ + public void setA_Country (String A_Country) + { + if (A_Country != null && A_Country.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_Country = A_Country.substring(0, 39); + } + set_Value (COLUMNNAME_A_Country, A_Country); + } + + /** Get Account Country. + @return Country + */ + public String getA_Country () + { + return (String)get_Value(COLUMNNAME_A_Country); + } + + /** Set Account EMail. + @param A_EMail + Email Address + */ + public void setA_EMail (String A_EMail) + { + if (A_EMail != null && A_EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_EMail = A_EMail.substring(0, 59); + } + set_Value (COLUMNNAME_A_EMail, A_EMail); + } + + /** Get Account EMail. + @return Email Address + */ + public String getA_EMail () + { + return (String)get_Value(COLUMNNAME_A_EMail); + } + + /** Set Driver License. + @param A_Ident_DL + Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL) + { + if (A_Ident_DL != null && A_Ident_DL.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_DL = A_Ident_DL.substring(0, 19); + } + set_Value (COLUMNNAME_A_Ident_DL, A_Ident_DL); + } + + /** Get Driver License. + @return Payment Identification - Driver License + */ + public String getA_Ident_DL () + { + return (String)get_Value(COLUMNNAME_A_Ident_DL); + } + + /** Set Social Security No. + @param A_Ident_SSN + Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN) + { + if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_SSN = A_Ident_SSN.substring(0, 19); + } + set_Value (COLUMNNAME_A_Ident_SSN, A_Ident_SSN); + } + + /** Get Social Security No. + @return Payment Identification - Social Security No + */ + public String getA_Ident_SSN () + { + return (String)get_Value(COLUMNNAME_A_Ident_SSN); + } + + /** Set Account Name. + @param A_Name + Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name) + { + if (A_Name != null && A_Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Name = A_Name.substring(0, 59); + } + set_Value (COLUMNNAME_A_Name, A_Name); + } + + /** Get Account Name. + @return Name on Credit Card or Account holder + */ + public String getA_Name () + { + return (String)get_Value(COLUMNNAME_A_Name); + } + + /** Set Account State. + @param A_State + State of the Credit Card or Account holder + */ + public void setA_State (String A_State) + { + if (A_State != null && A_State.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_State = A_State.substring(0, 39); + } + set_Value (COLUMNNAME_A_State, A_State); + } + + /** Get Account State. + @return State of the Credit Card or Account holder + */ + public String getA_State () + { + return (String)get_Value(COLUMNNAME_A_State); + } + + /** Set Account Street. + @param A_Street + Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street) + { + if (A_Street != null && A_Street.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Street = A_Street.substring(0, 59); + } + set_Value (COLUMNNAME_A_Street, A_Street); + } + + /** Get Account Street. + @return Street address of the Credit Card or Account holder + */ + public String getA_Street () + { + return (String)get_Value(COLUMNNAME_A_Street); + } + + /** Set Account Zip/Postal. + @param A_Zip + Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip) + { + if (A_Zip != null && A_Zip.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Zip = A_Zip.substring(0, 19); + } + set_Value (COLUMNNAME_A_Zip, A_Zip); + } + + /** Get Account Zip/Postal. + @return Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip () + { + return (String)get_Value(COLUMNNAME_A_Zip); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + if (AccountNo != null && AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } + + /** Set Business Partner Key. + @param BPartnerValue + Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue) + { + if (BPartnerValue != null && BPartnerValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartnerValue = BPartnerValue.substring(0, 39); + } + set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); + } + + /** Get Business Partner Key. + @return Key of the Business Partner + */ + public String getBPartnerValue () + { + return (String)get_Value(COLUMNNAME_BPartnerValue); + } + + /** Set Bank Account No. + @param BankAccountNo + Bank Account Number + */ + public void setBankAccountNo (String BankAccountNo) + { + if (BankAccountNo != null && BankAccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + BankAccountNo = BankAccountNo.substring(0, 19); + } + set_Value (COLUMNNAME_BankAccountNo, BankAccountNo); + } + + /** Get Bank Account No. + @return Bank Account Number + */ + public String getBankAccountNo () + { + return (String)get_Value(COLUMNNAME_BankAccountNo); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankAccount getI_C_BankAccount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID <= 0) set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Charge Name. + @param ChargeName + Name of the Charge + */ + public void setChargeName (String ChargeName) + { + if (ChargeName != null && ChargeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ChargeName = ChargeName.substring(0, 59); + } + set_Value (COLUMNNAME_ChargeName, ChargeName); + } + + /** Get Charge Name. + @return Name of the Charge + */ + public String getChargeName () + { + return (String)get_Value(COLUMNNAME_ChargeName); + } + + /** Set Check No. + @param CheckNo + Check Number + */ + public void setCheckNo (String CheckNo) + { + if (CheckNo != null && CheckNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + CheckNo = CheckNo.substring(0, 19); + } + set_Value (COLUMNNAME_CheckNo, CheckNo); + } + + /** Get Check No. + @return Check Number + */ + public String getCheckNo () + { + return (String)get_Value(COLUMNNAME_CheckNo); + } + + /** Set Exp. Month. + @param CreditCardExpMM + Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM) + { + set_Value (COLUMNNAME_CreditCardExpMM, Integer.valueOf(CreditCardExpMM)); + } + + /** Get Exp. Month. + @return Expiry Month + */ + public int getCreditCardExpMM () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpMM); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exp. Year. + @param CreditCardExpYY + Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY) + { + set_Value (COLUMNNAME_CreditCardExpYY, Integer.valueOf(CreditCardExpYY)); + } + + /** Get Exp. Year. + @return Expiry Year + */ + public int getCreditCardExpYY () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpYY); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number. + @param CreditCardNumber + Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber) + { + if (CreditCardNumber != null && CreditCardNumber.length() > 20) + { + log.warning("Length > 20 - truncated"); + CreditCardNumber = CreditCardNumber.substring(0, 19); + } + set_Value (COLUMNNAME_CreditCardNumber, CreditCardNumber); + } + + /** Get Number. + @return Credit Card Number + */ + public String getCreditCardNumber () + { + return (String)get_Value(COLUMNNAME_CreditCardNumber); + } /** CreditCardType AD_Reference_ID=149 */ -public static final int CREDITCARDTYPE_AD_Reference_ID=149; -/** Amex = A */ -public static final String CREDITCARDTYPE_Amex = "A"; -/** ATM = C */ -public static final String CREDITCARDTYPE_ATM = "C"; -/** Diners = D */ -public static final String CREDITCARDTYPE_Diners = "D"; -/** MasterCard = M */ -public static final String CREDITCARDTYPE_MasterCard = "M"; -/** Discover = N */ -public static final String CREDITCARDTYPE_Discover = "N"; -/** Purchase Card = P */ -public static final String CREDITCARDTYPE_PurchaseCard = "P"; -/** Visa = V */ +public static final int CREDITCARDTYPE_AD_Reference_ID=149;/** Amex = A */ +public static final String CREDITCARDTYPE_Amex = "A";/** ATM = C */ +public static final String CREDITCARDTYPE_ATM = "C";/** Diners = D */ +public static final String CREDITCARDTYPE_Diners = "D";/** MasterCard = M */ +public static final String CREDITCARDTYPE_MasterCard = "M";/** Discover = N */ +public static final String CREDITCARDTYPE_Discover = "N";/** Purchase Card = P */ +public static final String CREDITCARDTYPE_PurchaseCard = "P";/** Visa = V */ public static final String CREDITCARDTYPE_Visa = "V"; -/** Set Credit Card. -@param CreditCardType Credit Card (Visa, MC, AmEx) */ -public void setCreditCardType (String CreditCardType) -{ -if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("M") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("V")); - else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V"); -if (CreditCardType != null && CreditCardType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreditCardType = CreditCardType.substring(0,0); -} -set_Value ("CreditCardType", CreditCardType); -} -/** Get Credit Card. -@return Credit Card (Visa, MC, AmEx) */ -public String getCreditCardType() -{ -return (String)get_Value("CreditCardType"); -} -/** Column name CreditCardType */ -public static final String COLUMNNAME_CreditCardType = "CreditCardType"; -/** Set Verification Code. -@param CreditCardVV Credit Card Verification code on credit card */ -public void setCreditCardVV (String CreditCardVV) -{ -if (CreditCardVV != null && CreditCardVV.length() > 4) -{ -log.warning("Length > 4 - truncated"); -CreditCardVV = CreditCardVV.substring(0,3); -} -set_Value ("CreditCardVV", CreditCardVV); -} -/** Get Verification Code. -@return Credit Card Verification code on credit card */ -public String getCreditCardVV() -{ -return (String)get_Value("CreditCardVV"); -} -/** Column name CreditCardVV */ -public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -set_Value ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Discount Amount. -@param DiscountAmt Calculated amount of discount */ -public void setDiscountAmt (BigDecimal DiscountAmt) -{ -set_Value ("DiscountAmt", DiscountAmt); -} -/** Get Discount Amount. -@return Calculated amount of discount */ -public BigDecimal getDiscountAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DiscountAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DiscountAmt */ -public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; -/** Set Document Type Name. -@param DocTypeName Name of the Document Type */ -public void setDocTypeName (String DocTypeName) -{ -if (DocTypeName != null && DocTypeName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DocTypeName = DocTypeName.substring(0,59); -} -set_Value ("DocTypeName", DocTypeName); -} -/** Get Document Type Name. -@return Name of the Document Type */ -public String getDocTypeName() -{ -return (String)get_Value("DocTypeName"); -} -/** Column name DocTypeName */ -public static final String COLUMNNAME_DocTypeName = "DocTypeName"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set ISO Currency Code. -@param ISO_Code Three letter ISO 4217 Code of the Currency */ -public void setISO_Code (String ISO_Code) -{ -if (ISO_Code != null && ISO_Code.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code = ISO_Code.substring(0,2); -} -set_Value ("ISO_Code", ISO_Code); -} -/** Get ISO Currency Code. -@return Three letter ISO 4217 Code of the Currency */ -public String getISO_Code() -{ -return (String)get_Value("ISO_Code"); -} -/** Column name ISO_Code */ -public static final String COLUMNNAME_ISO_Code = "ISO_Code"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Import Payment. -@param I_Payment_ID Import Payment */ -public void setI_Payment_ID (int I_Payment_ID) -{ -if (I_Payment_ID < 1) throw new IllegalArgumentException ("I_Payment_ID is mandatory."); -set_ValueNoCheck ("I_Payment_ID", Integer.valueOf(I_Payment_ID)); -} -/** Get Import Payment. -@return Import Payment */ -public int getI_Payment_ID() -{ -Integer ii = (Integer)get_Value("I_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_Payment_ID */ -public static final String COLUMNNAME_I_Payment_ID = "I_Payment_ID"; -/** Set Invoice Document No. -@param InvoiceDocumentNo Document Number of the Invoice */ -public void setInvoiceDocumentNo (String InvoiceDocumentNo) -{ -if (InvoiceDocumentNo != null && InvoiceDocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -InvoiceDocumentNo = InvoiceDocumentNo.substring(0,29); -} -set_Value ("InvoiceDocumentNo", InvoiceDocumentNo); -} -/** Get Invoice Document No. -@return Document Number of the Invoice */ -public String getInvoiceDocumentNo() -{ -return (String)get_Value("InvoiceDocumentNo"); -} -/** Column name InvoiceDocumentNo */ -public static final String COLUMNNAME_InvoiceDocumentNo = "InvoiceDocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Delayed Capture. -@param IsDelayedCapture Charge after Shipment */ -public void setIsDelayedCapture (boolean IsDelayedCapture) -{ -set_Value ("IsDelayedCapture", Boolean.valueOf(IsDelayedCapture)); -} -/** Get Delayed Capture. -@return Charge after Shipment */ -public boolean isDelayedCapture() -{ -Object oo = get_Value("IsDelayedCapture"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDelayedCapture */ -public static final String COLUMNNAME_IsDelayedCapture = "IsDelayedCapture"; -/** Set Over/Under Payment. -@param IsOverUnderPayment Over-Payment (unallocated) or Under-Payment (partial payment) */ -public void setIsOverUnderPayment (boolean IsOverUnderPayment) -{ -set_Value ("IsOverUnderPayment", Boolean.valueOf(IsOverUnderPayment)); -} -/** Get Over/Under Payment. -@return Over-Payment (unallocated) or Under-Payment (partial payment) */ -public boolean isOverUnderPayment() -{ -Object oo = get_Value("IsOverUnderPayment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOverUnderPayment */ -public static final String COLUMNNAME_IsOverUnderPayment = "IsOverUnderPayment"; -/** Set Receipt. -@param IsReceipt This is a sales transaction (receipt) */ -public void setIsReceipt (boolean IsReceipt) -{ -set_Value ("IsReceipt", Boolean.valueOf(IsReceipt)); -} -/** Get Receipt. -@return This is a sales transaction (receipt) */ -public boolean isReceipt() -{ -Object oo = get_Value("IsReceipt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsReceipt */ -public static final String COLUMNNAME_IsReceipt = "IsReceipt"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Micr. -@param Micr Combination of routing no, account and check no */ -public void setMicr (String Micr) -{ -if (Micr != null && Micr.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Micr = Micr.substring(0,19); -} -set_Value ("Micr", Micr); -} -/** Get Micr. -@return Combination of routing no, account and check no */ -public String getMicr() -{ -return (String)get_Value("Micr"); -} -/** Column name Micr */ -public static final String COLUMNNAME_Micr = "Micr"; -/** Set Original Transaction ID. -@param Orig_TrxID Original Transaction ID */ -public void setOrig_TrxID (String Orig_TrxID) -{ -if (Orig_TrxID != null && Orig_TrxID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -Orig_TrxID = Orig_TrxID.substring(0,19); -} -set_Value ("Orig_TrxID", Orig_TrxID); -} -/** Get Original Transaction ID. -@return Original Transaction ID */ -public String getOrig_TrxID() -{ -return (String)get_Value("Orig_TrxID"); -} -/** Column name Orig_TrxID */ -public static final String COLUMNNAME_Orig_TrxID = "Orig_TrxID"; -/** Set Over/Under Payment. -@param OverUnderAmt Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public void setOverUnderAmt (BigDecimal OverUnderAmt) -{ -set_Value ("OverUnderAmt", OverUnderAmt); -} -/** Get Over/Under Payment. -@return Over-Payment (unallocated) or Under-Payment (partial payment) Amount */ -public BigDecimal getOverUnderAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OverUnderAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OverUnderAmt */ -public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; -/** Set PO Number. -@param PONum Purchase Order Number */ -public void setPONum (String PONum) -{ -if (PONum != null && PONum.length() > 60) -{ -log.warning("Length > 60 - truncated"); -PONum = PONum.substring(0,59); -} -set_Value ("PONum", PONum); -} -/** Get PO Number. -@return Purchase Order Number */ -public String getPONum() -{ -return (String)get_Value("PONum"); -} -/** Column name PONum */ -public static final String COLUMNNAME_PONum = "PONum"; -/** Set Payment amount. -@param PayAmt Amount being paid */ -public void setPayAmt (BigDecimal PayAmt) -{ -set_Value ("PayAmt", PayAmt); -} -/** Get Payment amount. -@return Amount being paid */ -public BigDecimal getPayAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PayAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PayAmt */ -public static final String COLUMNNAME_PayAmt = "PayAmt"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Authorization Code. -@param R_AuthCode Authorization Code returned */ -public void setR_AuthCode (String R_AuthCode) -{ -if (R_AuthCode != null && R_AuthCode.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_AuthCode = R_AuthCode.substring(0,19); -} -set_Value ("R_AuthCode", R_AuthCode); -} -/** Get Authorization Code. -@return Authorization Code returned */ -public String getR_AuthCode() -{ -return (String)get_Value("R_AuthCode"); -} -/** Column name R_AuthCode */ -public static final String COLUMNNAME_R_AuthCode = "R_AuthCode"; -/** Set Info. -@param R_Info Response info */ -public void setR_Info (String R_Info) -{ -if (R_Info != null && R_Info.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -R_Info = R_Info.substring(0,1999); -} -set_Value ("R_Info", R_Info); -} -/** Get Info. -@return Response info */ -public String getR_Info() -{ -return (String)get_Value("R_Info"); -} -/** Column name R_Info */ -public static final String COLUMNNAME_R_Info = "R_Info"; -/** Set Reference. -@param R_PnRef Payment reference */ -public void setR_PnRef (String R_PnRef) -{ -if (R_PnRef != null && R_PnRef.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_PnRef = R_PnRef.substring(0,19); -} -set_Value ("R_PnRef", R_PnRef); -} -/** Get Reference. -@return Payment reference */ -public String getR_PnRef() -{ -return (String)get_Value("R_PnRef"); -} -/** Column name R_PnRef */ -public static final String COLUMNNAME_R_PnRef = "R_PnRef"; -/** Set Response Message. -@param R_RespMsg Response message */ -public void setR_RespMsg (String R_RespMsg) -{ -if (R_RespMsg != null && R_RespMsg.length() > 60) -{ -log.warning("Length > 60 - truncated"); -R_RespMsg = R_RespMsg.substring(0,59); -} -set_Value ("R_RespMsg", R_RespMsg); -} -/** Get Response Message. -@return Response message */ -public String getR_RespMsg() -{ -return (String)get_Value("R_RespMsg"); -} -/** Column name R_RespMsg */ -public static final String COLUMNNAME_R_RespMsg = "R_RespMsg"; -/** Set Result. -@param R_Result Result of transmission */ -public void setR_Result (String R_Result) -{ -if (R_Result != null && R_Result.length() > 20) -{ -log.warning("Length > 20 - truncated"); -R_Result = R_Result.substring(0,19); -} -set_Value ("R_Result", R_Result); -} -/** Get Result. -@return Result of transmission */ -public String getR_Result() -{ -return (String)get_Value("R_Result"); -} -/** Column name R_Result */ -public static final String COLUMNNAME_R_Result = "R_Result"; -/** Set Routing No. -@param RoutingNo Bank Routing Number */ -public void setRoutingNo (String RoutingNo) -{ -if (RoutingNo != null && RoutingNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -RoutingNo = RoutingNo.substring(0,19); -} -set_Value ("RoutingNo", RoutingNo); -} -/** Get Routing No. -@return Bank Routing Number */ -public String getRoutingNo() -{ -return (String)get_Value("RoutingNo"); -} -/** Column name RoutingNo */ -public static final String COLUMNNAME_RoutingNo = "RoutingNo"; -/** Set Swipe. -@param Swipe Track 1 and 2 of the Credit Card */ -public void setSwipe (String Swipe) -{ -if (Swipe != null && Swipe.length() > 80) -{ -log.warning("Length > 80 - truncated"); -Swipe = Swipe.substring(0,79); -} -set_Value ("Swipe", Swipe); -} -/** Get Swipe. -@return Track 1 and 2 of the Credit Card */ -public String getSwipe() -{ -return (String)get_Value("Swipe"); -} -/** Column name Swipe */ -public static final String COLUMNNAME_Swipe = "Swipe"; -/** Set Tax Amount. -@param TaxAmt Tax Amount for a document */ -public void setTaxAmt (BigDecimal TaxAmt) -{ -set_Value ("TaxAmt", TaxAmt); -} -/** Get Tax Amount. -@return Tax Amount for a document */ -public BigDecimal getTaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TaxAmt */ -public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + /** Set Credit Card. + @param CreditCardType + Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType) + { +if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("M") || CreditCardType.equals("N") || CreditCardType.equals("P") || CreditCardType.equals("V")); else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - C - D - M - N - P - V"); if (CreditCardType != null && CreditCardType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreditCardType = CreditCardType.substring(0, 0); + } + set_Value (COLUMNNAME_CreditCardType, CreditCardType); + } + + /** Get Credit Card. + @return Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType () + { + return (String)get_Value(COLUMNNAME_CreditCardType); + } + + /** Set Verification Code. + @param CreditCardVV + Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV) + { + if (CreditCardVV != null && CreditCardVV.length() > 4) + { + log.warning("Length > 4 - truncated"); + CreditCardVV = CreditCardVV.substring(0, 3); + } + set_Value (COLUMNNAME_CreditCardVV, CreditCardVV); + } + + /** Get Verification Code. + @return Credit Card Verification code on credit card + */ + public String getCreditCardVV () + { + return (String)get_Value(COLUMNNAME_CreditCardVV); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Document Type Name. + @param DocTypeName + Name of the Document Type + */ + public void setDocTypeName (String DocTypeName) + { + if (DocTypeName != null && DocTypeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocTypeName = DocTypeName.substring(0, 59); + } + set_Value (COLUMNNAME_DocTypeName, DocTypeName); + } + + /** Get Document Type Name. + @return Name of the Document Type + */ + public String getDocTypeName () + { + return (String)get_Value(COLUMNNAME_DocTypeName); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + if (ISO_Code != null && ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Import Payment. + @param I_Payment_ID + Import Payment + */ + public void setI_Payment_ID (int I_Payment_ID) + { + if (I_Payment_ID < 1) + throw new IllegalArgumentException ("I_Payment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Payment_ID, Integer.valueOf(I_Payment_ID)); + } + + /** Get Import Payment. + @return Import Payment + */ + public int getI_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Document No. + @param InvoiceDocumentNo + Document Number of the Invoice + */ + public void setInvoiceDocumentNo (String InvoiceDocumentNo) + { + if (InvoiceDocumentNo != null && InvoiceDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + InvoiceDocumentNo = InvoiceDocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_InvoiceDocumentNo, InvoiceDocumentNo); + } + + /** Get Invoice Document No. + @return Document Number of the Invoice + */ + public String getInvoiceDocumentNo () + { + return (String)get_Value(COLUMNNAME_InvoiceDocumentNo); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delayed Capture. + @param IsDelayedCapture + Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture) + { + set_Value (COLUMNNAME_IsDelayedCapture, Boolean.valueOf(IsDelayedCapture)); + } + + /** Get Delayed Capture. + @return Charge after Shipment + */ + public boolean isDelayedCapture () + { + Object oo = get_Value(COLUMNNAME_IsDelayedCapture); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Over/Under Payment. + @param IsOverUnderPayment + Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment) + { + set_Value (COLUMNNAME_IsOverUnderPayment, Boolean.valueOf(IsOverUnderPayment)); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment () + { + Object oo = get_Value(COLUMNNAME_IsOverUnderPayment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Receipt. + @param IsReceipt + This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt) + { + set_Value (COLUMNNAME_IsReceipt, Boolean.valueOf(IsReceipt)); + } + + /** Get Receipt. + @return This is a sales transaction (receipt) + */ + public boolean isReceipt () + { + Object oo = get_Value(COLUMNNAME_IsReceipt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Micr. + @param Micr + Combination of routing no, account and check no + */ + public void setMicr (String Micr) + { + if (Micr != null && Micr.length() > 20) + { + log.warning("Length > 20 - truncated"); + Micr = Micr.substring(0, 19); + } + set_Value (COLUMNNAME_Micr, Micr); + } + + /** Get Micr. + @return Combination of routing no, account and check no + */ + public String getMicr () + { + return (String)get_Value(COLUMNNAME_Micr); + } + + /** Set Original Transaction ID. + @param Orig_TrxID + Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID) + { + if (Orig_TrxID != null && Orig_TrxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + Orig_TrxID = Orig_TrxID.substring(0, 19); + } + set_Value (COLUMNNAME_Orig_TrxID, Orig_TrxID); + } + + /** Get Original Transaction ID. + @return Original Transaction ID + */ + public String getOrig_TrxID () + { + return (String)get_Value(COLUMNNAME_Orig_TrxID); + } + + /** Set Over/Under Payment. + @param OverUnderAmt + Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt) + { + set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Number. + @param PONum + Purchase Order Number + */ + public void setPONum (String PONum) + { + if (PONum != null && PONum.length() > 60) + { + log.warning("Length > 60 - truncated"); + PONum = PONum.substring(0, 59); + } + set_Value (COLUMNNAME_PONum, PONum); + } + + /** Get PO Number. + @return Purchase Order Number + */ + public String getPONum () + { + return (String)get_Value(COLUMNNAME_PONum); + } + + /** Set Payment amount. + @param PayAmt + Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt) + { + set_Value (COLUMNNAME_PayAmt, PayAmt); + } + + /** Get Payment amount. + @return Amount being paid + */ + public BigDecimal getPayAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Authorization Code. + @param R_AuthCode + Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode) + { + if (R_AuthCode != null && R_AuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_AuthCode = R_AuthCode.substring(0, 19); + } + set_Value (COLUMNNAME_R_AuthCode, R_AuthCode); + } + + /** Get Authorization Code. + @return Authorization Code returned + */ + public String getR_AuthCode () + { + return (String)get_Value(COLUMNNAME_R_AuthCode); + } + + /** Set Info. + @param R_Info + Response info + */ + public void setR_Info (String R_Info) + { + if (R_Info != null && R_Info.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + R_Info = R_Info.substring(0, 1999); + } + set_Value (COLUMNNAME_R_Info, R_Info); + } + + /** Get Info. + @return Response info + */ + public String getR_Info () + { + return (String)get_Value(COLUMNNAME_R_Info); + } + + /** Set Reference. + @param R_PnRef + Payment reference + */ + public void setR_PnRef (String R_PnRef) + { + if (R_PnRef != null && R_PnRef.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_PnRef = R_PnRef.substring(0, 19); + } + set_Value (COLUMNNAME_R_PnRef, R_PnRef); + } + + /** Get Reference. + @return Payment reference + */ + public String getR_PnRef () + { + return (String)get_Value(COLUMNNAME_R_PnRef); + } + + /** Set Response Message. + @param R_RespMsg + Response message + */ + public void setR_RespMsg (String R_RespMsg) + { + if (R_RespMsg != null && R_RespMsg.length() > 60) + { + log.warning("Length > 60 - truncated"); + R_RespMsg = R_RespMsg.substring(0, 59); + } + set_Value (COLUMNNAME_R_RespMsg, R_RespMsg); + } + + /** Get Response Message. + @return Response message + */ + public String getR_RespMsg () + { + return (String)get_Value(COLUMNNAME_R_RespMsg); + } + + /** Set Result. + @param R_Result + Result of transmission + */ + public void setR_Result (String R_Result) + { + if (R_Result != null && R_Result.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_Result = R_Result.substring(0, 19); + } + set_Value (COLUMNNAME_R_Result, R_Result); + } + + /** Get Result. + @return Result of transmission + */ + public String getR_Result () + { + return (String)get_Value(COLUMNNAME_R_Result); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + if (RoutingNo != null && RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 19); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } + + /** Set Swipe. + @param Swipe + Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe) + { + if (Swipe != null && Swipe.length() > 80) + { + log.warning("Length > 80 - truncated"); + Swipe = Swipe.substring(0, 79); + } + set_Value (COLUMNNAME_Swipe, Swipe); + } + + /** Get Swipe. + @return Track 1 and 2 of the Credit Card + */ + public String getSwipe () + { + return (String)get_Value(COLUMNNAME_Swipe); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** TenderType AD_Reference_ID=214 */ -public static final int TENDERTYPE_AD_Reference_ID=214; -/** Direct Deposit = A */ -public static final String TENDERTYPE_DirectDeposit = "A"; -/** Credit Card = C */ -public static final String TENDERTYPE_CreditCard = "C"; -/** Direct Debit = D */ -public static final String TENDERTYPE_DirectDebit = "D"; -/** Check = K */ +public static final int TENDERTYPE_AD_Reference_ID=214;/** Direct Deposit = A */ +public static final String TENDERTYPE_DirectDeposit = "A";/** Credit Card = C */ +public static final String TENDERTYPE_CreditCard = "C";/** Direct Debit = D */ +public static final String TENDERTYPE_DirectDebit = "D";/** Check = K */ public static final String TENDERTYPE_Check = "K"; -/** Set Tender type. -@param TenderType Method of Payment */ -public void setTenderType (String TenderType) -{ -if (TenderType == null || TenderType.equals("A") || TenderType.equals("C") || TenderType.equals("D") || TenderType.equals("K")); - else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - A - C - D - K"); -if (TenderType != null && TenderType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TenderType = TenderType.substring(0,0); -} -set_Value ("TenderType", TenderType); -} -/** Get Tender type. -@return Method of Payment */ -public String getTenderType() -{ -return (String)get_Value("TenderType"); -} -/** Column name TenderType */ -public static final String COLUMNNAME_TenderType = "TenderType"; + /** Set Tender type. + @param TenderType + Method of Payment + */ + public void setTenderType (String TenderType) + { +if (TenderType == null || TenderType.equals("A") || TenderType.equals("C") || TenderType.equals("D") || TenderType.equals("K")); else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - A - C - D - K"); if (TenderType != null && TenderType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TenderType = TenderType.substring(0, 0); + } + set_Value (COLUMNNAME_TenderType, TenderType); + } + + /** Get Tender type. + @return Method of Payment + */ + public String getTenderType () + { + return (String)get_Value(COLUMNNAME_TenderType); + } /** TrxType AD_Reference_ID=215 */ -public static final int TRXTYPE_AD_Reference_ID=215; -/** Authorization = A */ -public static final String TRXTYPE_Authorization = "A"; -/** Credit (Payment) = C */ -public static final String TRXTYPE_CreditPayment = "C"; -/** Delayed Capture = D */ -public static final String TRXTYPE_DelayedCapture = "D"; -/** Voice Authorization = F */ -public static final String TRXTYPE_VoiceAuthorization = "F"; -/** Sales = S */ -public static final String TRXTYPE_Sales = "S"; -/** Void = V */ +public static final int TRXTYPE_AD_Reference_ID=215;/** Authorization = A */ +public static final String TRXTYPE_Authorization = "A";/** Credit (Payment) = C */ +public static final String TRXTYPE_CreditPayment = "C";/** Delayed Capture = D */ +public static final String TRXTYPE_DelayedCapture = "D";/** Voice Authorization = F */ +public static final String TRXTYPE_VoiceAuthorization = "F";/** Sales = S */ +public static final String TRXTYPE_Sales = "S";/** Void = V */ public static final String TRXTYPE_Void = "V"; -/** Set Transaction Type. -@param TrxType Type of credit card transaction */ -public void setTrxType (String TrxType) -{ -if (TrxType == null || TrxType.equals("A") || TrxType.equals("C") || TrxType.equals("D") || TrxType.equals("F") || TrxType.equals("S") || TrxType.equals("V")); - else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - A - C - D - F - S - V"); -if (TrxType != null && TrxType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TrxType = TrxType.substring(0,0); -} -set_Value ("TrxType", TrxType); -} -/** Get Transaction Type. -@return Type of credit card transaction */ -public String getTrxType() -{ -return (String)get_Value("TrxType"); -} -/** Column name TrxType */ -public static final String COLUMNNAME_TrxType = "TrxType"; -/** Set Voice authorization code. -@param VoiceAuthCode Voice Authorization Code from credit card company */ -public void setVoiceAuthCode (String VoiceAuthCode) -{ -if (VoiceAuthCode != null && VoiceAuthCode.length() > 20) -{ -log.warning("Length > 20 - truncated"); -VoiceAuthCode = VoiceAuthCode.substring(0,19); -} -set_Value ("VoiceAuthCode", VoiceAuthCode); -} -/** Get Voice authorization code. -@return Voice Authorization Code from credit card company */ -public String getVoiceAuthCode() -{ -return (String)get_Value("VoiceAuthCode"); -} -/** Column name VoiceAuthCode */ -public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode"; -/** Set Write-off Amount. -@param WriteOffAmt Amount to write-off */ -public void setWriteOffAmt (BigDecimal WriteOffAmt) -{ -set_Value ("WriteOffAmt", WriteOffAmt); -} -/** Get Write-off Amount. -@return Amount to write-off */ -public BigDecimal getWriteOffAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("WriteOffAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name WriteOffAmt */ -public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; -} + /** Set Transaction Type. + @param TrxType + Type of credit card transaction + */ + public void setTrxType (String TrxType) + { +if (TrxType == null || TrxType.equals("A") || TrxType.equals("C") || TrxType.equals("D") || TrxType.equals("F") || TrxType.equals("S") || TrxType.equals("V")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - A - C - D - F - S - V"); if (TrxType != null && TrxType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TrxType = TrxType.substring(0, 0); + } + set_Value (COLUMNNAME_TrxType, TrxType); + } + + /** Get Transaction Type. + @return Type of credit card transaction + */ + public String getTrxType () + { + return (String)get_Value(COLUMNNAME_TrxType); + } + + /** Set Voice authorization code. + @param VoiceAuthCode + Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode) + { + if (VoiceAuthCode != null && VoiceAuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + VoiceAuthCode = VoiceAuthCode.substring(0, 19); + } + set_Value (COLUMNNAME_VoiceAuthCode, VoiceAuthCode); + } + + /** Get Voice authorization code. + @return Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode () + { + return (String)get_Value(COLUMNNAME_VoiceAuthCode); + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_Product.java b/base/src/org/compiere/model/X_I_Product.java index 3b2c738d2b..44c80ebd0d 100644 --- a/base/src/org/compiere/model/X_I_Product.java +++ b/base/src/org/compiere/model/X_I_Product.java @@ -1,926 +1,1127 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_Product - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_Product extends PO -{ -/** Standard Constructor -@param ctx context -@param I_Product_ID id -@param trxName transaction -*/ -public X_I_Product (Properties ctx, int I_Product_ID, String trxName) -{ -super (ctx, I_Product_ID, trxName); -/** if (I_Product_ID == 0) -{ -setI_IsImported (false); -setI_Product_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_Product (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_Product */ -public static final String Table_Name="I_Product"; - -/** AD_Table_ID=532 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_Product[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner Key. -@param BPartner_Value The Key of the Business Partner */ -public void setBPartner_Value (String BPartner_Value) -{ -if (BPartner_Value != null && BPartner_Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -BPartner_Value = BPartner_Value.substring(0,39); -} -set_Value ("BPartner_Value", BPartner_Value); -} -/** Get Business Partner Key. -@return The Key of the Business Partner */ -public String getBPartner_Value() -{ -return (String)get_Value("BPartner_Value"); -} -/** Column name BPartner_Value */ -public static final String COLUMNNAME_BPartner_Value = "BPartner_Value"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Classification. -@param Classification Classification for grouping */ -public void setClassification (String Classification) -{ -if (Classification != null && Classification.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Classification = Classification.substring(0,0); -} -set_Value ("Classification", Classification); -} -/** Get Classification. -@return Classification for grouping */ -public String getClassification() -{ -return (String)get_Value("Classification"); -} -/** Column name Classification */ -public static final String COLUMNNAME_Classification = "Classification"; -/** Set Cost per Order. -@param CostPerOrder Fixed Cost Per Order */ -public void setCostPerOrder (BigDecimal CostPerOrder) -{ -set_Value ("CostPerOrder", CostPerOrder); -} -/** Get Cost per Order. -@return Fixed Cost Per Order */ -public BigDecimal getCostPerOrder() -{ -BigDecimal bd = (BigDecimal)get_Value("CostPerOrder"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostPerOrder */ -public static final String COLUMNNAME_CostPerOrder = "CostPerOrder"; -/** Set Promised Delivery Time. -@param DeliveryTime_Promised Promised days between order and delivery */ -public void setDeliveryTime_Promised (int DeliveryTime_Promised) -{ -set_Value ("DeliveryTime_Promised", Integer.valueOf(DeliveryTime_Promised)); -} -/** Get Promised Delivery Time. -@return Promised days between order and delivery */ -public int getDeliveryTime_Promised() -{ -Integer ii = (Integer)get_Value("DeliveryTime_Promised"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryTime_Promised */ -public static final String COLUMNNAME_DeliveryTime_Promised = "DeliveryTime_Promised"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Description URL. -@param DescriptionURL URL for the description */ -public void setDescriptionURL (String DescriptionURL) -{ -if (DescriptionURL != null && DescriptionURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DescriptionURL = DescriptionURL.substring(0,119); -} -set_Value ("DescriptionURL", DescriptionURL); -} -/** Get Description URL. -@return URL for the description */ -public String getDescriptionURL() -{ -return (String)get_Value("DescriptionURL"); -} -/** Column name DescriptionURL */ -public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; -/** Set Discontinued. -@param Discontinued This product is no longer available */ -public void setDiscontinued (boolean Discontinued) -{ -set_Value ("Discontinued", Boolean.valueOf(Discontinued)); -} -/** Get Discontinued. -@return This product is no longer available */ -public boolean isDiscontinued() -{ -Object oo = get_Value("Discontinued"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Discontinued */ -public static final String COLUMNNAME_Discontinued = "Discontinued"; -/** Set Discontinued by. -@param DiscontinuedBy Discontinued By */ -public void setDiscontinuedBy (Timestamp DiscontinuedBy) -{ -set_Value ("DiscontinuedBy", DiscontinuedBy); -} -/** Get Discontinued by. -@return Discontinued By */ -public Timestamp getDiscontinuedBy() -{ -return (Timestamp)get_Value("DiscontinuedBy"); -} -/** Column name DiscontinuedBy */ -public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; -/** Set Document Note. -@param DocumentNote Additional information for a Document */ -public void setDocumentNote (String DocumentNote) -{ -if (DocumentNote != null && DocumentNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DocumentNote = DocumentNote.substring(0,1999); -} -set_Value ("DocumentNote", DocumentNote); -} -/** Get Document Note. -@return Additional information for a Document */ -public String getDocumentNote() -{ -return (String)get_Value("DocumentNote"); -} -/** Column name DocumentNote */ -public static final String COLUMNNAME_DocumentNote = "DocumentNote"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set ISO Currency Code. -@param ISO_Code Three letter ISO 4217 Code of the Currency */ -public void setISO_Code (String ISO_Code) -{ -if (ISO_Code != null && ISO_Code.length() > 3) -{ -log.warning("Length > 3 - truncated"); -ISO_Code = ISO_Code.substring(0,2); -} -set_Value ("ISO_Code", ISO_Code); -} -/** Get ISO Currency Code. -@return Three letter ISO 4217 Code of the Currency */ -public String getISO_Code() -{ -return (String)get_Value("ISO_Code"); -} -/** Column name ISO_Code */ -public static final String COLUMNNAME_ISO_Code = "ISO_Code"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Import Product. -@param I_Product_ID Import Item or Service */ -public void setI_Product_ID (int I_Product_ID) -{ -if (I_Product_ID < 1) throw new IllegalArgumentException ("I_Product_ID is mandatory."); -set_ValueNoCheck ("I_Product_ID", Integer.valueOf(I_Product_ID)); -} -/** Get Import Product. -@return Import Item or Service */ -public int getI_Product_ID() -{ -Integer ii = (Integer)get_Value("I_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_Product_ID */ -public static final String COLUMNNAME_I_Product_ID = "I_Product_ID"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Manufacturer. -@param Manufacturer Manufacturer of the Product */ -public void setManufacturer (String Manufacturer) -{ -if (Manufacturer != null && Manufacturer.length() > 30) -{ -log.warning("Length > 30 - truncated"); -Manufacturer = Manufacturer.substring(0,29); -} -set_Value ("Manufacturer", Manufacturer); -} -/** Get Manufacturer. -@return Manufacturer of the Product */ -public String getManufacturer() -{ -return (String)get_Value("Manufacturer"); -} -/** Column name Manufacturer */ -public static final String COLUMNNAME_Manufacturer = "Manufacturer"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Minimum Order Qty. -@param Order_Min Minimum order quantity in UOM */ -public void setOrder_Min (int Order_Min) -{ -set_Value ("Order_Min", Integer.valueOf(Order_Min)); -} -/** Get Minimum Order Qty. -@return Minimum order quantity in UOM */ -public int getOrder_Min() -{ -Integer ii = (Integer)get_Value("Order_Min"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Order_Min */ -public static final String COLUMNNAME_Order_Min = "Order_Min"; -/** Set Order Pack Qty. -@param Order_Pack Package order size in UOM (e.g. order set of 5 units) */ -public void setOrder_Pack (int Order_Pack) -{ -set_Value ("Order_Pack", Integer.valueOf(Order_Pack)); -} -/** Get Order Pack Qty. -@return Package order size in UOM (e.g. order set of 5 units) */ -public int getOrder_Pack() -{ -Integer ii = (Integer)get_Value("Order_Pack"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Order_Pack */ -public static final String COLUMNNAME_Order_Pack = "Order_Pack"; -/** Set Price effective. -@param PriceEffective Effective Date of Price */ -public void setPriceEffective (Timestamp PriceEffective) -{ -set_Value ("PriceEffective", PriceEffective); -} -/** Get Price effective. -@return Effective Date of Price */ -public Timestamp getPriceEffective() -{ -return (Timestamp)get_Value("PriceEffective"); -} -/** Column name PriceEffective */ -public static final String COLUMNNAME_PriceEffective = "PriceEffective"; -/** Set Limit Price. -@param PriceLimit Lowest price for a product */ -public void setPriceLimit (BigDecimal PriceLimit) -{ -set_Value ("PriceLimit", PriceLimit); -} -/** Get Limit Price. -@return Lowest price for a product */ -public BigDecimal getPriceLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimit */ -public static final String COLUMNNAME_PriceLimit = "PriceLimit"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -set_Value ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set PO Price. -@param PricePO Price based on a purchase order */ -public void setPricePO (BigDecimal PricePO) -{ -set_Value ("PricePO", PricePO); -} -/** Get PO Price. -@return Price based on a purchase order */ -public BigDecimal getPricePO() -{ -BigDecimal bd = (BigDecimal)get_Value("PricePO"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PricePO */ -public static final String COLUMNNAME_PricePO = "PricePO"; -/** Set Standard Price. -@param PriceStd Standard Price */ -public void setPriceStd (BigDecimal PriceStd) -{ -set_Value ("PriceStd", PriceStd); -} -/** Get Standard Price. -@return Standard Price */ -public BigDecimal getPriceStd() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceStd"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceStd */ -public static final String COLUMNNAME_PriceStd = "PriceStd"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Product Category Key. -@param ProductCategory_Value Product Category Key */ -public void setProductCategory_Value (String ProductCategory_Value) -{ -if (ProductCategory_Value != null && ProductCategory_Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ProductCategory_Value = ProductCategory_Value.substring(0,39); -} -set_Value ("ProductCategory_Value", ProductCategory_Value); -} -/** Get Product Category Key. -@return Product Category Key */ -public String getProductCategory_Value() -{ -return (String)get_Value("ProductCategory_Value"); -} -/** Column name ProductCategory_Value */ -public static final String COLUMNNAME_ProductCategory_Value = "ProductCategory_Value"; + +/** Generated Model for I_Product + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_Product extends PO implements I_I_Product, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Product (Properties ctx, int I_Product_ID, String trxName) + { + super (ctx, I_Product_ID, trxName); + /** if (I_Product_ID == 0) { setI_IsImported (false); + setI_Product_ID (0); +} */ + } + + /** Load Constructor */ + public X_I_Product (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_Product[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner Key. + @param BPartner_Value + The Key of the Business Partner + */ + public void setBPartner_Value (String BPartner_Value) + { + if (BPartner_Value != null && BPartner_Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartner_Value = BPartner_Value.substring(0, 39); + } + set_Value (COLUMNNAME_BPartner_Value, BPartner_Value); + } + + /** Get Business Partner Key. + @return The Key of the Business Partner + */ + public String getBPartner_Value () + { + return (String)get_Value(COLUMNNAME_BPartner_Value); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Classification. + @param Classification + Classification for grouping + */ + public void setClassification (String Classification) + { + if (Classification != null && Classification.length() > 1) + { + log.warning("Length > 1 - truncated"); + Classification = Classification.substring(0, 0); + } + set_Value (COLUMNNAME_Classification, Classification); + } + + /** Get Classification. + @return Classification for grouping + */ + public String getClassification () + { + return (String)get_Value(COLUMNNAME_Classification); + } + + /** Set Cost per Order. + @param CostPerOrder + Fixed Cost Per Order + */ + public void setCostPerOrder (BigDecimal CostPerOrder) + { + set_Value (COLUMNNAME_CostPerOrder, CostPerOrder); + } + + /** Get Cost per Order. + @return Fixed Cost Per Order + */ + public BigDecimal getCostPerOrder () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostPerOrder); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Promised Delivery Time. + @param DeliveryTime_Promised + Promised days between order and delivery + */ + public void setDeliveryTime_Promised (int DeliveryTime_Promised) + { + set_Value (COLUMNNAME_DeliveryTime_Promised, Integer.valueOf(DeliveryTime_Promised)); + } + + /** Get Promised Delivery Time. + @return Promised days between order and delivery + */ + public int getDeliveryTime_Promised () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryTime_Promised); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Description URL. + @param DescriptionURL + URL for the description + */ + public void setDescriptionURL (String DescriptionURL) + { + if (DescriptionURL != null && DescriptionURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DescriptionURL = DescriptionURL.substring(0, 119); + } + set_Value (COLUMNNAME_DescriptionURL, DescriptionURL); + } + + /** Get Description URL. + @return URL for the description + */ + public String getDescriptionURL () + { + return (String)get_Value(COLUMNNAME_DescriptionURL); + } + + /** Set Discontinued. + @param Discontinued + This product is no longer available + */ + public void setDiscontinued (boolean Discontinued) + { + set_Value (COLUMNNAME_Discontinued, Boolean.valueOf(Discontinued)); + } + + /** Get Discontinued. + @return This product is no longer available + */ + public boolean isDiscontinued () + { + Object oo = get_Value(COLUMNNAME_Discontinued); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discontinued by. + @param DiscontinuedBy + Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy) + { + set_Value (COLUMNNAME_DiscontinuedBy, DiscontinuedBy); + } + + /** Get Discontinued by. + @return Discontinued By + */ + public Timestamp getDiscontinuedBy () + { + return (Timestamp)get_Value(COLUMNNAME_DiscontinuedBy); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 1999); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + if (ISO_Code != null && ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 2); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Import Product. + @param I_Product_ID + Import Item or Service + */ + public void setI_Product_ID (int I_Product_ID) + { + if (I_Product_ID < 1) + throw new IllegalArgumentException ("I_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Product_ID, Integer.valueOf(I_Product_ID)); + } + + /** Get Import Product. + @return Import Item or Service + */ + public int getI_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getI_M_Product() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Manufacturer. + @param Manufacturer + Manufacturer of the Product + */ + public void setManufacturer (String Manufacturer) + { + if (Manufacturer != null && Manufacturer.length() > 30) + { + log.warning("Length > 30 - truncated"); + Manufacturer = Manufacturer.substring(0, 29); + } + set_Value (COLUMNNAME_Manufacturer, Manufacturer); + } + + /** Get Manufacturer. + @return Manufacturer of the Product + */ + public String getManufacturer () + { + return (String)get_Value(COLUMNNAME_Manufacturer); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Minimum Order Qty. + @param Order_Min + Minimum order quantity in UOM + */ + public void setOrder_Min (int Order_Min) + { + set_Value (COLUMNNAME_Order_Min, Integer.valueOf(Order_Min)); + } + + /** Get Minimum Order Qty. + @return Minimum order quantity in UOM + */ + public int getOrder_Min () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Order_Min); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Pack Qty. + @param Order_Pack + Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (int Order_Pack) + { + set_Value (COLUMNNAME_Order_Pack, Integer.valueOf(Order_Pack)); + } + + /** Get Order Pack Qty. + @return Package order size in UOM (e.g. order set of 5 units) + */ + public int getOrder_Pack () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Order_Pack); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price effective. + @param PriceEffective + Effective Date of Price + */ + public void setPriceEffective (Timestamp PriceEffective) + { + set_Value (COLUMNNAME_PriceEffective, PriceEffective); + } + + /** Get Price effective. + @return Effective Date of Price + */ + public Timestamp getPriceEffective () + { + return (Timestamp)get_Value(COLUMNNAME_PriceEffective); + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + set_Value (COLUMNNAME_PriceLimit, PriceLimit); + } + + /** Get Limit Price. + @return Lowest price for a product + */ + public BigDecimal getPriceLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + set_Value (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Price. + @param PricePO + Price based on a purchase order + */ + public void setPricePO (BigDecimal PricePO) + { + set_Value (COLUMNNAME_PricePO, PricePO); + } + + /** Get PO Price. + @return Price based on a purchase order + */ + public BigDecimal getPricePO () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePO); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Price. + @param PriceStd + Standard Price + */ + public void setPriceStd (BigDecimal PriceStd) + { + set_Value (COLUMNNAME_PriceStd, PriceStd); + } + + /** Get Standard Price. + @return Standard Price + */ + public BigDecimal getPriceStd () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product Category Key. + @param ProductCategory_Value Product Category Key */ + public void setProductCategory_Value (String ProductCategory_Value) + { + if (ProductCategory_Value != null && ProductCategory_Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + ProductCategory_Value = ProductCategory_Value.substring(0, 39); + } + set_Value (COLUMNNAME_ProductCategory_Value, ProductCategory_Value); + } + + /** Get Product Category Key. +@return Product Category Key */ + public String getProductCategory_Value () + { + return (String)get_Value(COLUMNNAME_ProductCategory_Value); + } /** ProductType AD_Reference_ID=270 */ -public static final int PRODUCTTYPE_AD_Reference_ID=270; -/** Expense type = E */ -public static final String PRODUCTTYPE_ExpenseType = "E"; -/** Item = I */ -public static final String PRODUCTTYPE_Item = "I"; -/** Online = O */ -public static final String PRODUCTTYPE_Online = "O"; -/** Resource = R */ -public static final String PRODUCTTYPE_Resource = "R"; -/** Service = S */ +public static final int PRODUCTTYPE_AD_Reference_ID=270;/** Expense type = E */ +public static final String PRODUCTTYPE_ExpenseType = "E";/** Item = I */ +public static final String PRODUCTTYPE_Item = "I";/** Online = O */ +public static final String PRODUCTTYPE_Online = "O";/** Resource = R */ +public static final String PRODUCTTYPE_Resource = "R";/** Service = S */ public static final String PRODUCTTYPE_Service = "S"; -/** Set Product Type. -@param ProductType Type of product */ -public void setProductType (String ProductType) -{ -if (ProductType == null || ProductType.equals("E") || ProductType.equals("I") || ProductType.equals("O") || ProductType.equals("R") || ProductType.equals("S")); - else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - E - I - O - R - S"); -if (ProductType != null && ProductType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProductType = ProductType.substring(0,0); -} -set_Value ("ProductType", ProductType); -} -/** Get Product Type. -@return Type of product */ -public String getProductType() -{ -return (String)get_Value("ProductType"); -} -/** Column name ProductType */ -public static final String COLUMNNAME_ProductType = "ProductType"; -/** Set Royalty Amount. -@param RoyaltyAmt (Included) Amount for copyright, etc. */ -public void setRoyaltyAmt (BigDecimal RoyaltyAmt) -{ -set_Value ("RoyaltyAmt", RoyaltyAmt); -} -/** Get Royalty Amount. -@return (Included) Amount for copyright, etc. */ -public BigDecimal getRoyaltyAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RoyaltyAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RoyaltyAmt */ -public static final String COLUMNNAME_RoyaltyAmt = "RoyaltyAmt"; -/** Set SKU. -@param SKU Stock Keeping Unit */ -public void setSKU (String SKU) -{ -if (SKU != null && SKU.length() > 30) -{ -log.warning("Length > 30 - truncated"); -SKU = SKU.substring(0,29); -} -set_Value ("SKU", SKU); -} -/** Get SKU. -@return Stock Keeping Unit */ -public String getSKU() -{ -return (String)get_Value("SKU"); -} -/** Column name SKU */ -public static final String COLUMNNAME_SKU = "SKU"; -/** Set Shelf Depth. -@param ShelfDepth Shelf depth required */ -public void setShelfDepth (int ShelfDepth) -{ -set_Value ("ShelfDepth", Integer.valueOf(ShelfDepth)); -} -/** Get Shelf Depth. -@return Shelf depth required */ -public int getShelfDepth() -{ -Integer ii = (Integer)get_Value("ShelfDepth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfDepth */ -public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; -/** Set Shelf Height. -@param ShelfHeight Shelf height required */ -public void setShelfHeight (int ShelfHeight) -{ -set_Value ("ShelfHeight", Integer.valueOf(ShelfHeight)); -} -/** Get Shelf Height. -@return Shelf height required */ -public int getShelfHeight() -{ -Integer ii = (Integer)get_Value("ShelfHeight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfHeight */ -public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; -/** Set Shelf Width. -@param ShelfWidth Shelf width required */ -public void setShelfWidth (int ShelfWidth) -{ -set_Value ("ShelfWidth", Integer.valueOf(ShelfWidth)); -} -/** Get Shelf Width. -@return Shelf width required */ -public int getShelfWidth() -{ -Integer ii = (Integer)get_Value("ShelfWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfWidth */ -public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -/** Set Units Per Pallet. -@param UnitsPerPallet Units Per Pallet */ -public void setUnitsPerPallet (int UnitsPerPallet) -{ -set_Value ("UnitsPerPallet", Integer.valueOf(UnitsPerPallet)); -} -/** Get Units Per Pallet. -@return Units Per Pallet */ -public int getUnitsPerPallet() -{ -Integer ii = (Integer)get_Value("UnitsPerPallet"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnitsPerPallet */ -public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value != null && Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Partner Category. -@param VendorCategory Product Category of the Business Partner */ -public void setVendorCategory (String VendorCategory) -{ -if (VendorCategory != null && VendorCategory.length() > 30) -{ -log.warning("Length > 30 - truncated"); -VendorCategory = VendorCategory.substring(0,29); -} -set_Value ("VendorCategory", VendorCategory); -} -/** Get Partner Category. -@return Product Category of the Business Partner */ -public String getVendorCategory() -{ -return (String)get_Value("VendorCategory"); -} -/** Column name VendorCategory */ -public static final String COLUMNNAME_VendorCategory = "VendorCategory"; -/** Set Partner Product Key. -@param VendorProductNo Product Key of the Business Partner */ -public void setVendorProductNo (String VendorProductNo) -{ -if (VendorProductNo != null && VendorProductNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -VendorProductNo = VendorProductNo.substring(0,29); -} -set_Value ("VendorProductNo", VendorProductNo); -} -/** Get Partner Product Key. -@return Product Key of the Business Partner */ -public String getVendorProductNo() -{ -return (String)get_Value("VendorProductNo"); -} -/** Column name VendorProductNo */ -public static final String COLUMNNAME_VendorProductNo = "VendorProductNo"; -/** Set Volume. -@param Volume Volume of a product */ -public void setVolume (int Volume) -{ -set_Value ("Volume", Integer.valueOf(Volume)); -} -/** Get Volume. -@return Volume of a product */ -public int getVolume() -{ -Integer ii = (Integer)get_Value("Volume"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Volume */ -public static final String COLUMNNAME_Volume = "Volume"; -/** Set Weight. -@param Weight Weight of a product */ -public void setWeight (int Weight) -{ -set_Value ("Weight", Integer.valueOf(Weight)); -} -/** Get Weight. -@return Weight of a product */ -public int getWeight() -{ -Integer ii = (Integer)get_Value("Weight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Weight */ -public static final String COLUMNNAME_Weight = "Weight"; -/** Set UOM Code. -@param X12DE355 UOM EDI X12 Code */ -public void setX12DE355 (String X12DE355) -{ -if (X12DE355 != null && X12DE355.length() > 4) -{ -log.warning("Length > 4 - truncated"); -X12DE355 = X12DE355.substring(0,3); -} -set_Value ("X12DE355", X12DE355); -} -/** Get UOM Code. -@return UOM EDI X12 Code */ -public String getX12DE355() -{ -return (String)get_Value("X12DE355"); -} -/** Column name X12DE355 */ -public static final String COLUMNNAME_X12DE355 = "X12DE355"; -} + /** Set Product Type. + @param ProductType + Type of product + */ + public void setProductType (String ProductType) + { +if (ProductType == null || ProductType.equals("E") || ProductType.equals("I") || ProductType.equals("O") || ProductType.equals("R") || ProductType.equals("S")); else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - E - I - O - R - S"); if (ProductType != null && ProductType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProductType = ProductType.substring(0, 0); + } + set_Value (COLUMNNAME_ProductType, ProductType); + } + + /** Get Product Type. + @return Type of product + */ + public String getProductType () + { + return (String)get_Value(COLUMNNAME_ProductType); + } + + /** Set Royalty Amount. + @param RoyaltyAmt + (Included) Amount for copyright, etc. + */ + public void setRoyaltyAmt (BigDecimal RoyaltyAmt) + { + set_Value (COLUMNNAME_RoyaltyAmt, RoyaltyAmt); + } + + /** Get Royalty Amount. + @return (Included) Amount for copyright, etc. + */ + public BigDecimal getRoyaltyAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RoyaltyAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 29); + } + set_Value (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } + + /** Set Shelf Depth. + @param ShelfDepth + Shelf depth required + */ + public void setShelfDepth (int ShelfDepth) + { + set_Value (COLUMNNAME_ShelfDepth, Integer.valueOf(ShelfDepth)); + } + + /** Get Shelf Depth. + @return Shelf depth required + */ + public int getShelfDepth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfDepth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shelf Height. + @param ShelfHeight + Shelf height required + */ + public void setShelfHeight (int ShelfHeight) + { + set_Value (COLUMNNAME_ShelfHeight, Integer.valueOf(ShelfHeight)); + } + + /** Get Shelf Height. + @return Shelf height required + */ + public int getShelfHeight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfHeight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shelf Width. + @param ShelfWidth + Shelf width required + */ + public void setShelfWidth (int ShelfWidth) + { + set_Value (COLUMNNAME_ShelfWidth, Integer.valueOf(ShelfWidth)); + } + + /** Get Shelf Width. + @return Shelf width required + */ + public int getShelfWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Units Per Pallet. + @param UnitsPerPallet + Units Per Pallet + */ + public void setUnitsPerPallet (int UnitsPerPallet) + { + set_Value (COLUMNNAME_UnitsPerPallet, Integer.valueOf(UnitsPerPallet)); + } + + /** Get Units Per Pallet. + @return Units Per Pallet + */ + public int getUnitsPerPallet () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnitsPerPallet); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value != null && Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } + + /** Set Partner Category. + @param VendorCategory + Product Category of the Business Partner + */ + public void setVendorCategory (String VendorCategory) + { + if (VendorCategory != null && VendorCategory.length() > 30) + { + log.warning("Length > 30 - truncated"); + VendorCategory = VendorCategory.substring(0, 29); + } + set_Value (COLUMNNAME_VendorCategory, VendorCategory); + } + + /** Get Partner Category. + @return Product Category of the Business Partner + */ + public String getVendorCategory () + { + return (String)get_Value(COLUMNNAME_VendorCategory); + } + + /** Set Partner Product Key. + @param VendorProductNo + Product Key of the Business Partner + */ + public void setVendorProductNo (String VendorProductNo) + { + if (VendorProductNo != null && VendorProductNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + VendorProductNo = VendorProductNo.substring(0, 29); + } + set_Value (COLUMNNAME_VendorProductNo, VendorProductNo); + } + + /** Get Partner Product Key. + @return Product Key of the Business Partner + */ + public String getVendorProductNo () + { + return (String)get_Value(COLUMNNAME_VendorProductNo); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (int Volume) + { + set_Value (COLUMNNAME_Volume, Integer.valueOf(Volume)); + } + + /** Get Volume. + @return Volume of a product + */ + public int getVolume () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Volume); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (int Weight) + { + set_Value (COLUMNNAME_Weight, Integer.valueOf(Weight)); + } + + /** Get Weight. + @return Weight of a product + */ + public int getWeight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Weight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set UOM Code. + @param X12DE355 + UOM EDI X12 Code + */ + public void setX12DE355 (String X12DE355) + { + if (X12DE355 != null && X12DE355.length() > 4) + { + log.warning("Length > 4 - truncated"); + X12DE355 = X12DE355.substring(0, 3); + } + set_Value (COLUMNNAME_X12DE355, X12DE355); + } + + /** Get UOM Code. + @return UOM EDI X12 Code + */ + public String getX12DE355 () + { + return (String)get_Value(COLUMNNAME_X12DE355); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_ReportLine.java b/base/src/org/compiere/model/X_I_ReportLine.java index 49b16e5ba6..cc9be51d7c 100644 --- a/base/src/org/compiere/model/X_I_ReportLine.java +++ b/base/src/org/compiere/model/X_I_ReportLine.java @@ -1,539 +1,610 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for I_ReportLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_I_ReportLine extends PO + +/** Generated Model for I_ReportLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_I_ReportLine extends PO implements I_I_ReportLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param I_ReportLine_ID id -@param trxName transaction -*/ -public X_I_ReportLine (Properties ctx, int I_ReportLine_ID, String trxName) -{ -super (ctx, I_ReportLine_ID, trxName); -/** if (I_ReportLine_ID == 0) -{ -setI_IsImported (false); -setI_ReportLine_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_I_ReportLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=I_ReportLine */ -public static final String Table_Name="I_ReportLine"; - -/** AD_Table_ID=535 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_I_ReportLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_ReportLine (Properties ctx, int I_ReportLine_ID, String trxName) + { + super (ctx, I_ReportLine_ID, trxName); + /** if (I_ReportLine_ID == 0) { setI_IsImported (false); + setI_ReportLine_ID (0); +} */ + } + + /** Load Constructor */ + public X_I_ReportLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_I_ReportLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AmountType AD_Reference_ID=235 */ -public static final int AMOUNTTYPE_AD_Reference_ID=235; -/** Period Balance = BP */ -public static final String AMOUNTTYPE_PeriodBalance = "BP"; -/** Total Balance = BT */ -public static final String AMOUNTTYPE_TotalBalance = "BT"; -/** Year Balance = BY */ -public static final String AMOUNTTYPE_YearBalance = "BY"; -/** Period Credit Only = CP */ -public static final String AMOUNTTYPE_PeriodCreditOnly = "CP"; -/** Total Credit Only = CT */ -public static final String AMOUNTTYPE_TotalCreditOnly = "CT"; -/** Year Credit Only = CY */ -public static final String AMOUNTTYPE_YearCreditOnly = "CY"; -/** Period Debit Only = DP */ -public static final String AMOUNTTYPE_PeriodDebitOnly = "DP"; -/** Total Debit Only = DT */ -public static final String AMOUNTTYPE_TotalDebitOnly = "DT"; -/** Year Debit Only = DY */ -public static final String AMOUNTTYPE_YearDebitOnly = "DY"; -/** Period Quantity = QP */ -public static final String AMOUNTTYPE_PeriodQuantity = "QP"; -/** Total Quantity = QT */ -public static final String AMOUNTTYPE_TotalQuantity = "QT"; -/** Year Quantity = QY */ +public static final int AMOUNTTYPE_AD_Reference_ID=235;/** Period Balance = BP */ +public static final String AMOUNTTYPE_PeriodBalance = "BP";/** Total Balance = BT */ +public static final String AMOUNTTYPE_TotalBalance = "BT";/** Year Balance = BY */ +public static final String AMOUNTTYPE_YearBalance = "BY";/** Period Credit Only = CP */ +public static final String AMOUNTTYPE_PeriodCreditOnly = "CP";/** Total Credit Only = CT */ +public static final String AMOUNTTYPE_TotalCreditOnly = "CT";/** Year Credit Only = CY */ +public static final String AMOUNTTYPE_YearCreditOnly = "CY";/** Period Debit Only = DP */ +public static final String AMOUNTTYPE_PeriodDebitOnly = "DP";/** Total Debit Only = DT */ +public static final String AMOUNTTYPE_TotalDebitOnly = "DT";/** Year Debit Only = DY */ +public static final String AMOUNTTYPE_YearDebitOnly = "DY";/** Period Quantity = QP */ +public static final String AMOUNTTYPE_PeriodQuantity = "QP";/** Total Quantity = QT */ +public static final String AMOUNTTYPE_TotalQuantity = "QT";/** Year Quantity = QY */ public static final String AMOUNTTYPE_YearQuantity = "QY"; -/** Set Amount Type. -@param AmountType Type of amount to report */ -public void setAmountType (String AmountType) -{ -if (AmountType == null || AmountType.equals("BP") || AmountType.equals("BT") || AmountType.equals("BY") || AmountType.equals("CP") || AmountType.equals("CT") || AmountType.equals("CY") || AmountType.equals("DP") || AmountType.equals("DT") || AmountType.equals("DY") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("QY")); - else throw new IllegalArgumentException ("AmountType Invalid value - " + AmountType + " - Reference_ID=235 - BP - BT - BY - CP - CT - CY - DP - DT - DY - QP - QT - QY"); -if (AmountType != null && AmountType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -AmountType = AmountType.substring(0,1); -} -set_Value ("AmountType", AmountType); -} -/** Get Amount Type. -@return Type of amount to report */ -public String getAmountType() -{ -return (String)get_Value("AmountType"); -} -/** Column name AmountType */ -public static final String COLUMNNAME_AmountType = "AmountType"; -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID <= 0) set_Value ("C_ElementValue_ID", null); - else -set_Value ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; + /** Set Amount Type. + @param AmountType + Type of amount to report + */ + public void setAmountType (String AmountType) + { +if (AmountType == null || AmountType.equals("BP") || AmountType.equals("BT") || AmountType.equals("BY") || AmountType.equals("CP") || AmountType.equals("CT") || AmountType.equals("CY") || AmountType.equals("DP") || AmountType.equals("DT") || AmountType.equals("DY") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("QY")); else throw new IllegalArgumentException ("AmountType Invalid value - " + AmountType + " - Reference_ID=235 - BP - BT - BY - CP - CT - CY - DP - DT - DY - QP - QT - QY"); if (AmountType != null && AmountType.length() > 2) + { + log.warning("Length > 2 - truncated"); + AmountType = AmountType.substring(0, 1); + } + set_Value (COLUMNNAME_AmountType, AmountType); + } + + /** Get Amount Type. + @return Type of amount to report + */ + public String getAmountType () + { + return (String)get_Value(COLUMNNAME_AmountType); + } + + public I_C_ElementValue getI_C_ElementValue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID <= 0) set_Value (COLUMNNAME_C_ElementValue_ID, null); + else + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CalculationType AD_Reference_ID=236 */ -public static final int CALCULATIONTYPE_AD_Reference_ID=236; -/** Add (Op1+Op2) = A */ -public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A"; -/** Percentage (Op1 of Op2) = P */ -public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P"; -/** Add Range (Op1 to Op2) = R */ -public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R"; -/** Subtract (Op1-Op2) = S */ +public static final int CALCULATIONTYPE_AD_Reference_ID=236;/** Add (Op1+Op2) = A */ +public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A";/** Percentage (Op1 of Op2) = P */ +public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P";/** Add Range (Op1 to Op2) = R */ +public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R";/** Subtract (Op1-Op2) = S */ public static final String CALCULATIONTYPE_SubtractOp1_Op2 = "S"; -/** Set Calculation. -@param CalculationType Calculation */ -public void setCalculationType (String CalculationType) -{ -if (CalculationType == null || CalculationType.equals("A") || CalculationType.equals("P") || CalculationType.equals("R") || CalculationType.equals("S")); - else throw new IllegalArgumentException ("CalculationType Invalid value - " + CalculationType + " - Reference_ID=236 - A - P - R - S"); -if (CalculationType != null && CalculationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CalculationType = CalculationType.substring(0,0); -} -set_Value ("CalculationType", CalculationType); -} -/** Get Calculation. -@return Calculation */ -public String getCalculationType() -{ -return (String)get_Value("CalculationType"); -} -/** Column name CalculationType */ -public static final String COLUMNNAME_CalculationType = "CalculationType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Element Key. -@param ElementValue Key of the element */ -public void setElementValue (String ElementValue) -{ -if (ElementValue != null && ElementValue.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ElementValue = ElementValue.substring(0,39); -} -set_Value ("ElementValue", ElementValue); -} -/** Get Element Key. -@return Key of the element */ -public String getElementValue() -{ -return (String)get_Value("ElementValue"); -} -/** Column name ElementValue */ -public static final String COLUMNNAME_ElementValue = "ElementValue"; -/** Set Import Error Message. -@param I_ErrorMsg Messages generated from import process */ -public void setI_ErrorMsg (String I_ErrorMsg) -{ -if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -I_ErrorMsg = I_ErrorMsg.substring(0,1999); -} -set_Value ("I_ErrorMsg", I_ErrorMsg); -} -/** Get Import Error Message. -@return Messages generated from import process */ -public String getI_ErrorMsg() -{ -return (String)get_Value("I_ErrorMsg"); -} -/** Column name I_ErrorMsg */ -public static final String COLUMNNAME_I_ErrorMsg = "I_ErrorMsg"; -/** Set Imported. -@param I_IsImported Has this import been processed */ -public void setI_IsImported (boolean I_IsImported) -{ -set_Value ("I_IsImported", Boolean.valueOf(I_IsImported)); -} -/** Get Imported. -@return Has this import been processed */ -public boolean isI_IsImported() -{ -Object oo = get_Value("I_IsImported"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name I_IsImported */ -public static final String COLUMNNAME_I_IsImported = "I_IsImported"; -/** Set Import Report Line Set. -@param I_ReportLine_ID Import Report Line Set values */ -public void setI_ReportLine_ID (int I_ReportLine_ID) -{ -if (I_ReportLine_ID < 1) throw new IllegalArgumentException ("I_ReportLine_ID is mandatory."); -set_ValueNoCheck ("I_ReportLine_ID", Integer.valueOf(I_ReportLine_ID)); -} -/** Get Import Report Line Set. -@return Import Report Line Set values */ -public int getI_ReportLine_ID() -{ -Integer ii = (Integer)get_Value("I_ReportLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name I_ReportLine_ID */ -public static final String COLUMNNAME_I_ReportLine_ID = "I_ReportLine_ID"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; + /** Set Calculation. + @param CalculationType Calculation */ + public void setCalculationType (String CalculationType) + { +if (CalculationType == null || CalculationType.equals("A") || CalculationType.equals("P") || CalculationType.equals("R") || CalculationType.equals("S")); else throw new IllegalArgumentException ("CalculationType Invalid value - " + CalculationType + " - Reference_ID=236 - A - P - R - S"); if (CalculationType != null && CalculationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CalculationType = CalculationType.substring(0, 0); + } + set_Value (COLUMNNAME_CalculationType, CalculationType); + } + + /** Get Calculation. +@return Calculation */ + public String getCalculationType () + { + return (String)get_Value(COLUMNNAME_CalculationType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Element Key. + @param ElementValue + Key of the element + */ + public void setElementValue (String ElementValue) + { + if (ElementValue != null && ElementValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + ElementValue = ElementValue.substring(0, 39); + } + set_Value (COLUMNNAME_ElementValue, ElementValue); + } + + /** Get Element Key. + @return Key of the element + */ + public String getElementValue () + { + return (String)get_Value(COLUMNNAME_ElementValue); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Import Report Line Set. + @param I_ReportLine_ID + Import Report Line Set values + */ + public void setI_ReportLine_ID (int I_ReportLine_ID) + { + if (I_ReportLine_ID < 1) + throw new IllegalArgumentException ("I_ReportLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_ReportLine_ID, Integer.valueOf(I_ReportLine_ID)); + } + + /** Get Import Report Line Set. + @return Import Report Line Set values + */ + public int getI_ReportLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_ReportLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** LineType AD_Reference_ID=241 */ -public static final int LINETYPE_AD_Reference_ID=241; -/** Calculation = C */ -public static final String LINETYPE_Calculation = "C"; -/** Segment Value = S */ +public static final int LINETYPE_AD_Reference_ID=241;/** Calculation = C */ +public static final String LINETYPE_Calculation = "C";/** Segment Value = S */ public static final String LINETYPE_SegmentValue = "S"; -/** Set Line Type. -@param LineType Line Type */ -public void setLineType (String LineType) -{ -if (LineType == null || LineType.equals("C") || LineType.equals("S")); - else throw new IllegalArgumentException ("LineType Invalid value - " + LineType + " - Reference_ID=241 - C - S"); -if (LineType != null && LineType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LineType = LineType.substring(0,0); -} -set_Value ("LineType", LineType); -} -/** Get Line Type. -@return Line Type */ -public String getLineType() -{ -return (String)get_Value("LineType"); -} -/** Column name LineType */ -public static final String COLUMNNAME_LineType = "LineType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Report Line Set. -@param PA_ReportLineSet_ID Report Line Set */ -public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) -{ -if (PA_ReportLineSet_ID <= 0) set_Value ("PA_ReportLineSet_ID", null); - else -set_Value ("PA_ReportLineSet_ID", Integer.valueOf(PA_ReportLineSet_ID)); -} -/** Get Report Line Set. -@return Report Line Set */ -public int getPA_ReportLineSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLineSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLineSet_ID */ -public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; -/** Set Report Line. -@param PA_ReportLine_ID Report Line */ -public void setPA_ReportLine_ID (int PA_ReportLine_ID) -{ -if (PA_ReportLine_ID <= 0) set_Value ("PA_ReportLine_ID", null); - else -set_Value ("PA_ReportLine_ID", Integer.valueOf(PA_ReportLine_ID)); -} -/** Get Report Line. -@return Report Line */ -public int getPA_ReportLine_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLine_ID */ -public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; -/** Set Report Source. -@param PA_ReportSource_ID Restriction of what will be shown in Report Line */ -public void setPA_ReportSource_ID (int PA_ReportSource_ID) -{ -if (PA_ReportSource_ID <= 0) set_Value ("PA_ReportSource_ID", null); - else -set_Value ("PA_ReportSource_ID", Integer.valueOf(PA_ReportSource_ID)); -} -/** Get Report Source. -@return Restriction of what will be shown in Report Line */ -public int getPA_ReportSource_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportSource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportSource_ID */ -public static final String COLUMNNAME_PA_ReportSource_ID = "PA_ReportSource_ID"; + /** Set Line Type. + @param LineType Line Type */ + public void setLineType (String LineType) + { +if (LineType == null || LineType.equals("C") || LineType.equals("S")); else throw new IllegalArgumentException ("LineType Invalid value - " + LineType + " - Reference_ID=241 - C - S"); if (LineType != null && LineType.length() > 1) + { + log.warning("Length > 1 - truncated"); + LineType = LineType.substring(0, 0); + } + set_Value (COLUMNNAME_LineType, LineType); + } + + /** Get Line Type. +@return Line Type */ + public String getLineType () + { + return (String)get_Value(COLUMNNAME_LineType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + public I_PA_ReportLineSet getI_PA_ReportLineSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Line Set. + @param PA_ReportLineSet_ID Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) + { + if (PA_ReportLineSet_ID <= 0) set_Value (COLUMNNAME_PA_ReportLineSet_ID, null); + else + set_Value (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + } + + /** Get Report Line Set. +@return Report Line Set */ + public int getPA_ReportLineSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLineSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_ReportLine getI_PA_ReportLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Line. + @param PA_ReportLine_ID Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID) + { + if (PA_ReportLine_ID <= 0) set_Value (COLUMNNAME_PA_ReportLine_ID, null); + else + set_Value (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + } + + /** Get Report Line. +@return Report Line */ + public int getPA_ReportLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_ReportSource getI_PA_ReportSource() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Source. + @param PA_ReportSource_ID + Restriction of what will be shown in Report Line + */ + public void setPA_ReportSource_ID (int PA_ReportSource_ID) + { + if (PA_ReportSource_ID <= 0) set_Value (COLUMNNAME_PA_ReportSource_ID, null); + else + set_Value (COLUMNNAME_PA_ReportSource_ID, Integer.valueOf(PA_ReportSource_ID)); + } + + /** Get Report Source. + @return Restriction of what will be shown in Report Line + */ + public int getPA_ReportSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType != null && PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Report Line Set Name. -@param ReportLineSetName Name of the Report Line Set */ -public void setReportLineSetName (String ReportLineSetName) -{ -if (ReportLineSetName != null && ReportLineSetName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ReportLineSetName = ReportLineSetName.substring(0,59); -} -set_Value ("ReportLineSetName", ReportLineSetName); -} -/** Get Report Line Set Name. -@return Name of the Report Line Set */ -public String getReportLineSetName() -{ -return (String)get_Value("ReportLineSetName"); -} -/** Column name ReportLineSetName */ -public static final String COLUMNNAME_ReportLineSetName = "ReportLineSetName"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType != null && PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Report Line Set Name. + @param ReportLineSetName + Name of the Report Line Set + */ + public void setReportLineSetName (String ReportLineSetName) + { + if (ReportLineSetName != null && ReportLineSetName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ReportLineSetName = ReportLineSetName.substring(0, 59); + } + set_Value (COLUMNNAME_ReportLineSetName, ReportLineSetName); + } + + /** Get Report Line Set Name. + @return Name of the Report Line Set + */ + public String getReportLineSetName () + { + return (String)get_Value(COLUMNNAME_ReportLineSetName); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Category.java b/base/src/org/compiere/model/X_K_Category.java index 6bad1ade24..ea0dc2573d 100644 --- a/base/src/org/compiere/model/X_K_Category.java +++ b/base/src/org/compiere/model/X_K_Category.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Category - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Category extends PO + +/** Generated Model for K_Category + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Category extends PO implements I_K_Category, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Category_ID id -@param trxName transaction -*/ -public X_K_Category (Properties ctx, int K_Category_ID, String trxName) -{ -super (ctx, K_Category_ID, trxName); -/** if (K_Category_ID == 0) -{ -setK_Category_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Category (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Category */ -public static final String Table_Name="K_Category"; - -/** AD_Table_ID=615 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Category[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Knowledge Category. -@param K_Category_ID Knowledge Category */ -public void setK_Category_ID (int K_Category_ID) -{ -if (K_Category_ID < 1) throw new IllegalArgumentException ("K_Category_ID is mandatory."); -set_ValueNoCheck ("K_Category_ID", Integer.valueOf(K_Category_ID)); -} -/** Get Knowledge Category. -@return Knowledge Category */ -public int getK_Category_ID() -{ -Integer ii = (Integer)get_Value("K_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Category_ID */ -public static final String COLUMNNAME_K_Category_ID = "K_Category_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Category (Properties ctx, int K_Category_ID, String trxName) + { + super (ctx, K_Category_ID, trxName); + /** if (K_Category_ID == 0) { setK_Category_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_K_Category (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Category[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Knowledge Category. + @param K_Category_ID + Knowledge Category + */ + public void setK_Category_ID (int K_Category_ID) + { + if (K_Category_ID < 1) + throw new IllegalArgumentException ("K_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); + } + + /** Get Knowledge Category. + @return Knowledge Category + */ + public int getK_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_CategoryValue.java b/base/src/org/compiere/model/X_K_CategoryValue.java index a30dd554e9..dcf1f4991c 100644 --- a/base/src/org/compiere/model/X_K_CategoryValue.java +++ b/base/src/org/compiere/model/X_K_CategoryValue.java @@ -1,169 +1,189 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_CategoryValue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_CategoryValue extends PO + +/** Generated Model for K_CategoryValue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_CategoryValue extends PO implements I_K_CategoryValue, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_CategoryValue_ID id -@param trxName transaction -*/ -public X_K_CategoryValue (Properties ctx, int K_CategoryValue_ID, String trxName) -{ -super (ctx, K_CategoryValue_ID, trxName); -/** if (K_CategoryValue_ID == 0) -{ -setK_CategoryValue_ID (0); -setK_Category_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_CategoryValue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_CategoryValue */ -public static final String Table_Name="K_CategoryValue"; - -/** AD_Table_ID=614 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_CategoryValue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Category Value. -@param K_CategoryValue_ID The value of the category */ -public void setK_CategoryValue_ID (int K_CategoryValue_ID) -{ -if (K_CategoryValue_ID < 1) throw new IllegalArgumentException ("K_CategoryValue_ID is mandatory."); -set_ValueNoCheck ("K_CategoryValue_ID", Integer.valueOf(K_CategoryValue_ID)); -} -/** Get Category Value. -@return The value of the category */ -public int getK_CategoryValue_ID() -{ -Integer ii = (Integer)get_Value("K_CategoryValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_CategoryValue_ID */ -public static final String COLUMNNAME_K_CategoryValue_ID = "K_CategoryValue_ID"; -/** Set Knowledge Category. -@param K_Category_ID Knowledge Category */ -public void setK_Category_ID (int K_Category_ID) -{ -if (K_Category_ID < 1) throw new IllegalArgumentException ("K_Category_ID is mandatory."); -set_ValueNoCheck ("K_Category_ID", Integer.valueOf(K_Category_ID)); -} -/** Get Knowledge Category. -@return Knowledge Category */ -public int getK_Category_ID() -{ -Integer ii = (Integer)get_Value("K_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Category_ID */ -public static final String COLUMNNAME_K_Category_ID = "K_Category_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_CategoryValue (Properties ctx, int K_CategoryValue_ID, String trxName) + { + super (ctx, K_CategoryValue_ID, trxName); + /** if (K_CategoryValue_ID == 0) { setK_CategoryValue_ID (0); + setK_Category_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_K_CategoryValue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_CategoryValue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Category Value. + @param K_CategoryValue_ID + The value of the category + */ + public void setK_CategoryValue_ID (int K_CategoryValue_ID) + { + if (K_CategoryValue_ID < 1) + throw new IllegalArgumentException ("K_CategoryValue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_CategoryValue_ID, Integer.valueOf(K_CategoryValue_ID)); + } + + /** Get Category Value. + @return The value of the category + */ + public int getK_CategoryValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_CategoryValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_K_Category getI_K_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Knowledge Category. + @param K_Category_ID + Knowledge Category + */ + public void setK_Category_ID (int K_Category_ID) + { + if (K_Category_ID < 1) + throw new IllegalArgumentException ("K_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); + } + + /** Get Knowledge Category. + @return Knowledge Category + */ + public int getK_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Comment.java b/base/src/org/compiere/model/X_K_Comment.java index 7abf5ae1ff..bd088bc414 100644 --- a/base/src/org/compiere/model/X_K_Comment.java +++ b/base/src/org/compiere/model/X_K_Comment.java @@ -1,206 +1,236 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Comment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Comment extends PO + +/** Generated Model for K_Comment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Comment extends PO implements I_K_Comment, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Comment_ID id -@param trxName transaction -*/ -public X_K_Comment (Properties ctx, int K_Comment_ID, String trxName) -{ -super (ctx, K_Comment_ID, trxName); -/** if (K_Comment_ID == 0) -{ -setIsPublic (true); // Y -setK_Comment_ID (0); -setK_Entry_ID (0); -setRating (0); -setTextMsg (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Comment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Comment */ -public static final String Table_Name="K_Comment"; - -/** AD_Table_ID=613 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Comment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Session. -@param AD_Session_ID User Session Online or Web */ -public void setAD_Session_ID (int AD_Session_ID) -{ -if (AD_Session_ID <= 0) set_ValueNoCheck ("AD_Session_ID", null); - else -set_ValueNoCheck ("AD_Session_ID", Integer.valueOf(AD_Session_ID)); -} -/** Get Session. -@return User Session Online or Web */ -public int getAD_Session_ID() -{ -Integer ii = (Integer)get_Value("AD_Session_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Session_ID */ -public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; -/** Set Public. -@param IsPublic Public can read entry */ -public void setIsPublic (boolean IsPublic) -{ -set_Value ("IsPublic", Boolean.valueOf(IsPublic)); -} -/** Get Public. -@return Public can read entry */ -public boolean isPublic() -{ -Object oo = get_Value("IsPublic"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublic */ -public static final String COLUMNNAME_IsPublic = "IsPublic"; -/** Set Entry Comment. -@param K_Comment_ID Knowledge Entry Comment */ -public void setK_Comment_ID (int K_Comment_ID) -{ -if (K_Comment_ID < 1) throw new IllegalArgumentException ("K_Comment_ID is mandatory."); -set_ValueNoCheck ("K_Comment_ID", Integer.valueOf(K_Comment_ID)); -} -/** Get Entry Comment. -@return Knowledge Entry Comment */ -public int getK_Comment_ID() -{ -Integer ii = (Integer)get_Value("K_Comment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getK_Comment_ID())); -} -/** Column name K_Comment_ID */ -public static final String COLUMNNAME_K_Comment_ID = "K_Comment_ID"; -/** Set Entry. -@param K_Entry_ID Knowledge Entry */ -public void setK_Entry_ID (int K_Entry_ID) -{ -if (K_Entry_ID < 1) throw new IllegalArgumentException ("K_Entry_ID is mandatory."); -set_ValueNoCheck ("K_Entry_ID", Integer.valueOf(K_Entry_ID)); -} -/** Get Entry. -@return Knowledge Entry */ -public int getK_Entry_ID() -{ -Integer ii = (Integer)get_Value("K_Entry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Entry_ID */ -public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; -/** Set Rating. -@param Rating Classification or Importance */ -public void setRating (int Rating) -{ -set_Value ("Rating", Integer.valueOf(Rating)); -} -/** Get Rating. -@return Classification or Importance */ -public int getRating() -{ -Integer ii = (Integer)get_Value("Rating"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Rating */ -public static final String COLUMNNAME_Rating = "Rating"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg == null) throw new IllegalArgumentException ("TextMsg is mandatory."); -if (TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Comment (Properties ctx, int K_Comment_ID, String trxName) + { + super (ctx, K_Comment_ID, trxName); + /** if (K_Comment_ID == 0) { setIsPublic (true); +// Y + setK_Comment_ID (0); + setK_Entry_ID (0); + setRating (0); + setTextMsg (null); +} */ + } + + /** Load Constructor */ + public X_K_Comment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Comment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Session getI_AD_Session() throws Exception + { + 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 e; + } + return result; + } + + /** Set Session. + @param AD_Session_ID + User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID) + { + if (AD_Session_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Session_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); + } + + /** Get Session. + @return User Session Online or Web + */ + public int getAD_Session_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Session_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Public. + @param IsPublic + Public can read entry + */ + public void setIsPublic (boolean IsPublic) + { + set_Value (COLUMNNAME_IsPublic, Boolean.valueOf(IsPublic)); + } + + /** Get Public. + @return Public can read entry + */ + public boolean isPublic () + { + Object oo = get_Value(COLUMNNAME_IsPublic); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Entry Comment. + @param K_Comment_ID + Knowledge Entry Comment + */ + public void setK_Comment_ID (int K_Comment_ID) + { + if (K_Comment_ID < 1) + throw new IllegalArgumentException ("K_Comment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Comment_ID, Integer.valueOf(K_Comment_ID)); + } + + /** Get Entry Comment. + @return Knowledge Entry Comment + */ + public int getK_Comment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Comment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getK_Comment_ID())); + } + + /** Set Entry. + @param K_Entry_ID + Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID) + { + if (K_Entry_ID < 1) + throw new IllegalArgumentException ("K_Entry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + } + + /** Get Entry. + @return Knowledge Entry + */ + public int getK_Entry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Entry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Rating. + @param Rating + Classification or Importance + */ + public void setRating (int Rating) + { + set_Value (COLUMNNAME_Rating, Integer.valueOf(Rating)); + } + + /** Get Rating. + @return Classification or Importance + */ + public int getRating () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Rating); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg == null) + throw new IllegalArgumentException ("TextMsg is mandatory."); + if (TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Entry.java b/base/src/org/compiere/model/X_K_Entry.java index 0e9fa53ed7..a399ab8afc 100644 --- a/base/src/org/compiere/model/X_K_Entry.java +++ b/base/src/org/compiere/model/X_K_Entry.java @@ -1,297 +1,376 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Entry - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Entry extends PO + +/** Generated Model for K_Entry + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Entry extends PO implements I_K_Entry, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Entry_ID id -@param trxName transaction -*/ -public X_K_Entry (Properties ctx, int K_Entry_ID, String trxName) -{ -super (ctx, K_Entry_ID, trxName); -/** if (K_Entry_ID == 0) -{ -setIsPublic (true); // Y -setK_Entry_ID (0); -setK_Topic_ID (0); -setName (null); -setRating (0); -setTextMsg (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Entry (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Entry */ -public static final String Table_Name="K_Entry"; - -/** AD_Table_ID=612 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Entry[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Session. -@param AD_Session_ID User Session Online or Web */ -public void setAD_Session_ID (int AD_Session_ID) -{ -if (AD_Session_ID <= 0) set_ValueNoCheck ("AD_Session_ID", null); - else -set_ValueNoCheck ("AD_Session_ID", Integer.valueOf(AD_Session_ID)); -} -/** Get Session. -@return User Session Online or Web */ -public int getAD_Session_ID() -{ -Integer ii = (Integer)get_Value("AD_Session_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Session_ID */ -public static final String COLUMNNAME_AD_Session_ID = "AD_Session_ID"; -/** Set Description URL. -@param DescriptionURL URL for the description */ -public void setDescriptionURL (String DescriptionURL) -{ -if (DescriptionURL != null && DescriptionURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DescriptionURL = DescriptionURL.substring(0,119); -} -set_Value ("DescriptionURL", DescriptionURL); -} -/** Get Description URL. -@return URL for the description */ -public String getDescriptionURL() -{ -return (String)get_Value("DescriptionURL"); -} -/** Column name DescriptionURL */ -public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; -/** Set Public. -@param IsPublic Public can read entry */ -public void setIsPublic (boolean IsPublic) -{ -set_Value ("IsPublic", Boolean.valueOf(IsPublic)); -} -/** Get Public. -@return Public can read entry */ -public boolean isPublic() -{ -Object oo = get_Value("IsPublic"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublic */ -public static final String COLUMNNAME_IsPublic = "IsPublic"; -/** Set Entry. -@param K_Entry_ID Knowledge Entry */ -public void setK_Entry_ID (int K_Entry_ID) -{ -if (K_Entry_ID < 1) throw new IllegalArgumentException ("K_Entry_ID is mandatory."); -set_ValueNoCheck ("K_Entry_ID", Integer.valueOf(K_Entry_ID)); -} -/** Get Entry. -@return Knowledge Entry */ -public int getK_Entry_ID() -{ -Integer ii = (Integer)get_Value("K_Entry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Entry_ID */ -public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; -/** Set Knowledge Source. -@param K_Source_ID Source of a Knowledge Entry */ -public void setK_Source_ID (int K_Source_ID) -{ -if (K_Source_ID <= 0) set_Value ("K_Source_ID", null); - else -set_Value ("K_Source_ID", Integer.valueOf(K_Source_ID)); -} -/** Get Knowledge Source. -@return Source of a Knowledge Entry */ -public int getK_Source_ID() -{ -Integer ii = (Integer)get_Value("K_Source_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Source_ID */ -public static final String COLUMNNAME_K_Source_ID = "K_Source_ID"; -/** Set Knowledge Topic. -@param K_Topic_ID Knowledge Topic */ -public void setK_Topic_ID (int K_Topic_ID) -{ -if (K_Topic_ID < 1) throw new IllegalArgumentException ("K_Topic_ID is mandatory."); -set_ValueNoCheck ("K_Topic_ID", Integer.valueOf(K_Topic_ID)); -} -/** Get Knowledge Topic. -@return Knowledge Topic */ -public int getK_Topic_ID() -{ -Integer ii = (Integer)get_Value("K_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Topic_ID */ -public static final String COLUMNNAME_K_Topic_ID = "K_Topic_ID"; -/** Set Keywords. -@param Keywords List of Keywords - separated by space, comma or semicolon */ -public void setKeywords (String Keywords) -{ -if (Keywords != null && Keywords.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Keywords = Keywords.substring(0,254); -} -set_Value ("Keywords", Keywords); -} -/** Get Keywords. -@return List of Keywords - separated by space, comma or semicolon */ -public String getKeywords() -{ -return (String)get_Value("Keywords"); -} -/** Column name Keywords */ -public static final String COLUMNNAME_Keywords = "Keywords"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Rating. -@param Rating Classification or Importance */ -public void setRating (int Rating) -{ -set_Value ("Rating", Integer.valueOf(Rating)); -} -/** Get Rating. -@return Classification or Importance */ -public int getRating() -{ -Integer ii = (Integer)get_Value("Rating"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Rating */ -public static final String COLUMNNAME_Rating = "Rating"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg == null) throw new IllegalArgumentException ("TextMsg is mandatory."); -if (TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Entry (Properties ctx, int K_Entry_ID, String trxName) + { + super (ctx, K_Entry_ID, trxName); + /** if (K_Entry_ID == 0) { setIsPublic (true); +// Y + setK_Entry_ID (0); + setK_Topic_ID (0); + setName (null); + setRating (0); + setTextMsg (null); +} */ + } + + /** Load Constructor */ + public X_K_Entry (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Entry[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Session getI_AD_Session() throws Exception + { + 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 e; + } + return result; + } + + /** Set Session. + @param AD_Session_ID + User Session Online or Web + */ + public void setAD_Session_ID (int AD_Session_ID) + { + if (AD_Session_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Session_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Session_ID, Integer.valueOf(AD_Session_ID)); + } + + /** Get Session. + @return User Session Online or Web + */ + public int getAD_Session_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Session_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description URL. + @param DescriptionURL + URL for the description + */ + public void setDescriptionURL (String DescriptionURL) + { + if (DescriptionURL != null && DescriptionURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DescriptionURL = DescriptionURL.substring(0, 119); + } + set_Value (COLUMNNAME_DescriptionURL, DescriptionURL); + } + + /** Get Description URL. + @return URL for the description + */ + public String getDescriptionURL () + { + return (String)get_Value(COLUMNNAME_DescriptionURL); + } + + /** Set Public. + @param IsPublic + Public can read entry + */ + public void setIsPublic (boolean IsPublic) + { + set_Value (COLUMNNAME_IsPublic, Boolean.valueOf(IsPublic)); + } + + /** Get Public. + @return Public can read entry + */ + public boolean isPublic () + { + Object oo = get_Value(COLUMNNAME_IsPublic); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Entry. + @param K_Entry_ID + Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID) + { + if (K_Entry_ID < 1) + throw new IllegalArgumentException ("K_Entry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + } + + /** Get Entry. + @return Knowledge Entry + */ + public int getK_Entry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Entry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_K_Source getI_K_Source() throws Exception + { + 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 e; + } + return result; + } + + /** Set Knowledge Source. + @param K_Source_ID + Source of a Knowledge Entry + */ + public void setK_Source_ID (int K_Source_ID) + { + if (K_Source_ID <= 0) set_Value (COLUMNNAME_K_Source_ID, null); + else + set_Value (COLUMNNAME_K_Source_ID, Integer.valueOf(K_Source_ID)); + } + + /** Get Knowledge Source. + @return Source of a Knowledge Entry + */ + public int getK_Source_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Source_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_K_Topic getI_K_Topic() throws Exception + { + 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 e; + } + return result; + } + + /** Set Knowledge Topic. + @param K_Topic_ID + Knowledge Topic + */ + public void setK_Topic_ID (int K_Topic_ID) + { + if (K_Topic_ID < 1) + throw new IllegalArgumentException ("K_Topic_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Topic_ID, Integer.valueOf(K_Topic_ID)); + } + + /** Get Knowledge Topic. + @return Knowledge Topic + */ + public int getK_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Keywords. + @param Keywords + List of Keywords - separated by space, comma or semicolon + */ + public void setKeywords (String Keywords) + { + if (Keywords != null && Keywords.length() > 255) + { + log.warning("Length > 255 - truncated"); + Keywords = Keywords.substring(0, 254); + } + set_Value (COLUMNNAME_Keywords, Keywords); + } + + /** Get Keywords. + @return List of Keywords - separated by space, comma or semicolon + */ + public String getKeywords () + { + return (String)get_Value(COLUMNNAME_Keywords); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Rating. + @param Rating + Classification or Importance + */ + public void setRating (int Rating) + { + set_Value (COLUMNNAME_Rating, Integer.valueOf(Rating)); + } + + /** Get Rating. + @return Classification or Importance + */ + public int getRating () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Rating); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg == null) + throw new IllegalArgumentException ("TextMsg is mandatory."); + if (TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_EntryCategory.java b/base/src/org/compiere/model/X_K_EntryCategory.java index 2f49c4b1d3..a57d749216 100644 --- a/base/src/org/compiere/model/X_K_EntryCategory.java +++ b/base/src/org/compiere/model/X_K_EntryCategory.java @@ -1,147 +1,181 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_EntryCategory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_EntryCategory extends PO + +/** Generated Model for K_EntryCategory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_EntryCategory extends PO implements I_K_EntryCategory, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_EntryCategory_ID id -@param trxName transaction -*/ -public X_K_EntryCategory (Properties ctx, int K_EntryCategory_ID, String trxName) -{ -super (ctx, K_EntryCategory_ID, trxName); -/** if (K_EntryCategory_ID == 0) -{ -setK_CategoryValue_ID (0); -setK_Category_ID (0); -setK_Entry_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_EntryCategory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_EntryCategory */ -public static final String Table_Name="K_EntryCategory"; - -/** AD_Table_ID=611 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_EntryCategory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Category Value. -@param K_CategoryValue_ID The value of the category */ -public void setK_CategoryValue_ID (int K_CategoryValue_ID) -{ -if (K_CategoryValue_ID < 1) throw new IllegalArgumentException ("K_CategoryValue_ID is mandatory."); -set_Value ("K_CategoryValue_ID", Integer.valueOf(K_CategoryValue_ID)); -} -/** Get Category Value. -@return The value of the category */ -public int getK_CategoryValue_ID() -{ -Integer ii = (Integer)get_Value("K_CategoryValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getK_CategoryValue_ID())); -} -/** Column name K_CategoryValue_ID */ -public static final String COLUMNNAME_K_CategoryValue_ID = "K_CategoryValue_ID"; -/** Set Knowledge Category. -@param K_Category_ID Knowledge Category */ -public void setK_Category_ID (int K_Category_ID) -{ -if (K_Category_ID < 1) throw new IllegalArgumentException ("K_Category_ID is mandatory."); -set_Value ("K_Category_ID", Integer.valueOf(K_Category_ID)); -} -/** Get Knowledge Category. -@return Knowledge Category */ -public int getK_Category_ID() -{ -Integer ii = (Integer)get_Value("K_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Category_ID */ -public static final String COLUMNNAME_K_Category_ID = "K_Category_ID"; -/** Set Entry. -@param K_Entry_ID Knowledge Entry */ -public void setK_Entry_ID (int K_Entry_ID) -{ -if (K_Entry_ID < 1) throw new IllegalArgumentException ("K_Entry_ID is mandatory."); -set_ValueNoCheck ("K_Entry_ID", Integer.valueOf(K_Entry_ID)); -} -/** Get Entry. -@return Knowledge Entry */ -public int getK_Entry_ID() -{ -Integer ii = (Integer)get_Value("K_Entry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Entry_ID */ -public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_EntryCategory (Properties ctx, int K_EntryCategory_ID, String trxName) + { + super (ctx, K_EntryCategory_ID, trxName); + /** if (K_EntryCategory_ID == 0) { setK_CategoryValue_ID (0); + setK_Category_ID (0); + setK_Entry_ID (0); +} */ + } + + /** Load Constructor */ + public X_K_EntryCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_EntryCategory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_K_CategoryValue getI_K_CategoryValue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Category Value. + @param K_CategoryValue_ID + The value of the category + */ + public void setK_CategoryValue_ID (int K_CategoryValue_ID) + { + if (K_CategoryValue_ID < 1) + throw new IllegalArgumentException ("K_CategoryValue_ID is mandatory."); + set_Value (COLUMNNAME_K_CategoryValue_ID, Integer.valueOf(K_CategoryValue_ID)); + } + + /** Get Category Value. + @return The value of the category + */ + public int getK_CategoryValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_CategoryValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getK_CategoryValue_ID())); + } + + public I_K_Category getI_K_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Knowledge Category. + @param K_Category_ID + Knowledge Category + */ + public void setK_Category_ID (int K_Category_ID) + { + if (K_Category_ID < 1) + throw new IllegalArgumentException ("K_Category_ID is mandatory."); + set_Value (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); + } + + /** Get Knowledge Category. + @return Knowledge Category + */ + public int getK_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Entry. + @param K_Entry_ID + Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID) + { + if (K_Entry_ID < 1) + throw new IllegalArgumentException ("K_Entry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + } + + /** Get Entry. + @return Knowledge Entry + */ + public int getK_Entry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Entry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_EntryRelated.java b/base/src/org/compiere/model/X_K_EntryRelated.java index 6ef457700b..9a4a81013b 100644 --- a/base/src/org/compiere/model/X_K_EntryRelated.java +++ b/base/src/org/compiere/model/X_K_EntryRelated.java @@ -1,151 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_EntryRelated - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_EntryRelated extends PO + +/** Generated Model for K_EntryRelated + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_EntryRelated extends PO implements I_K_EntryRelated, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_EntryRelated_ID id -@param trxName transaction -*/ -public X_K_EntryRelated (Properties ctx, int K_EntryRelated_ID, String trxName) -{ -super (ctx, K_EntryRelated_ID, trxName); -/** if (K_EntryRelated_ID == 0) -{ -setK_EntryRelated_ID (0); -setK_Entry_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_EntryRelated (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_EntryRelated */ -public static final String Table_Name="K_EntryRelated"; - -/** AD_Table_ID=610 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_EntryRelated[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_EntryRelated (Properties ctx, int K_EntryRelated_ID, String trxName) + { + super (ctx, K_EntryRelated_ID, trxName); + /** if (K_EntryRelated_ID == 0) { setK_EntryRelated_ID (0); + setK_Entry_ID (0); +} */ + } + + /** Load Constructor */ + public X_K_EntryRelated (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_EntryRelated[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** K_EntryRelated_ID AD_Reference_ID=285 */ public static final int K_ENTRYRELATED_ID_AD_Reference_ID=285; -/** Set Related Entry. -@param K_EntryRelated_ID Related Entry for this Enntry */ -public void setK_EntryRelated_ID (int K_EntryRelated_ID) -{ -if (K_EntryRelated_ID < 1) throw new IllegalArgumentException ("K_EntryRelated_ID is mandatory."); -set_ValueNoCheck ("K_EntryRelated_ID", Integer.valueOf(K_EntryRelated_ID)); -} -/** Get Related Entry. -@return Related Entry for this Enntry */ -public int getK_EntryRelated_ID() -{ -Integer ii = (Integer)get_Value("K_EntryRelated_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getK_EntryRelated_ID())); -} -/** Column name K_EntryRelated_ID */ -public static final String COLUMNNAME_K_EntryRelated_ID = "K_EntryRelated_ID"; -/** Set Entry. -@param K_Entry_ID Knowledge Entry */ -public void setK_Entry_ID (int K_Entry_ID) -{ -if (K_Entry_ID < 1) throw new IllegalArgumentException ("K_Entry_ID is mandatory."); -set_ValueNoCheck ("K_Entry_ID", Integer.valueOf(K_Entry_ID)); -} -/** Get Entry. -@return Knowledge Entry */ -public int getK_Entry_ID() -{ -Integer ii = (Integer)get_Value("K_Entry_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Entry_ID */ -public static final String COLUMNNAME_K_Entry_ID = "K_Entry_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Related Entry. + @param K_EntryRelated_ID + Related Entry for this Enntry + */ + public void setK_EntryRelated_ID (int K_EntryRelated_ID) + { + if (K_EntryRelated_ID < 1) + throw new IllegalArgumentException ("K_EntryRelated_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_EntryRelated_ID, Integer.valueOf(K_EntryRelated_ID)); + } + + /** Get Related Entry. + @return Related Entry for this Enntry + */ + public int getK_EntryRelated_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_EntryRelated_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getK_EntryRelated_ID())); + } + + /** Set Entry. + @param K_Entry_ID + Knowledge Entry + */ + public void setK_Entry_ID (int K_Entry_ID) + { + if (K_Entry_ID < 1) + throw new IllegalArgumentException ("K_Entry_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Entry_ID, Integer.valueOf(K_Entry_ID)); + } + + /** Get Entry. + @return Knowledge Entry + */ + public int getK_Entry_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Entry_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Index.java b/base/src/org/compiere/model/X_K_Index.java index 320c98ebfc..ace4ebd284 100644 --- a/base/src/org/compiere/model/X_K_Index.java +++ b/base/src/org/compiere/model/X_K_Index.java @@ -1,257 +1,346 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Index - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Index extends PO + +/** Generated Model for K_Index + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Index extends PO implements I_K_Index, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Index_ID id -@param trxName transaction -*/ -public X_K_Index (Properties ctx, int K_Index_ID, String trxName) -{ -super (ctx, K_Index_ID, trxName); -/** if (K_Index_ID == 0) -{ -setAD_Table_ID (0); -setK_INDEX_ID (0); -setKeyword (null); -setRecord_ID (0); -setSourceUpdated (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Index (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Index */ -public static final String Table_Name="K_Index"; - -/** AD_Table_ID=900 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Index[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID <= 0) set_ValueNoCheck ("CM_WebProject_ID", null); - else -set_ValueNoCheck ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_ValueNoCheck ("C_DocType_ID", null); - else -set_ValueNoCheck ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Excerpt. -@param Excerpt Surrounding text of the keyword */ -public void setExcerpt (String Excerpt) -{ -if (Excerpt != null && Excerpt.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Excerpt = Excerpt.substring(0,1999); -} -set_ValueNoCheck ("Excerpt", Excerpt); -} -/** Get Excerpt. -@return Surrounding text of the keyword */ -public String getExcerpt() -{ -return (String)get_Value("Excerpt"); -} -/** Column name Excerpt */ -public static final String COLUMNNAME_Excerpt = "Excerpt"; -/** Set Index. -@param K_INDEX_ID Text Search Index */ -public void setK_INDEX_ID (int K_INDEX_ID) -{ -if (K_INDEX_ID < 1) throw new IllegalArgumentException ("K_INDEX_ID is mandatory."); -set_ValueNoCheck ("K_INDEX_ID", Integer.valueOf(K_INDEX_ID)); -} -/** Get Index. -@return Text Search Index */ -public int getK_INDEX_ID() -{ -Integer ii = (Integer)get_Value("K_INDEX_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_INDEX_ID */ -public static final String COLUMNNAME_K_INDEX_ID = "K_INDEX_ID"; -/** Set Keyword. -@param Keyword Case insensitive keyword */ -public void setKeyword (String Keyword) -{ -if (Keyword == null) throw new IllegalArgumentException ("Keyword is mandatory."); -if (Keyword.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Keyword = Keyword.substring(0,254); -} -set_ValueNoCheck ("Keyword", Keyword); -} -/** Get Keyword. -@return Case insensitive keyword */ -public String getKeyword() -{ -return (String)get_Value("Keyword"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getKeyword()); -} -/** Column name Keyword */ -public static final String COLUMNNAME_Keyword = "Keyword"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_ValueNoCheck ("R_RequestType_ID", null); - else -set_ValueNoCheck ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Source Updated. -@param SourceUpdated Date the source document was updated */ -public void setSourceUpdated (Timestamp SourceUpdated) -{ -if (SourceUpdated == null) throw new IllegalArgumentException ("SourceUpdated is mandatory."); -set_Value ("SourceUpdated", SourceUpdated); -} -/** Get Source Updated. -@return Date the source document was updated */ -public Timestamp getSourceUpdated() -{ -return (Timestamp)get_Value("SourceUpdated"); -} -/** Column name SourceUpdated */ -public static final String COLUMNNAME_SourceUpdated = "SourceUpdated"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Index (Properties ctx, int K_Index_ID, String trxName) + { + super (ctx, K_Index_ID, trxName); + /** if (K_Index_ID == 0) { setAD_Table_ID (0); + setK_INDEX_ID (0); + setKeyword (null); + setRecord_ID (0); + setSourceUpdated (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_K_Index (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Index[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID <= 0) set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, null); + else + set_ValueNoCheck (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_DocType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Excerpt. + @param Excerpt + Surrounding text of the keyword + */ + public void setExcerpt (String Excerpt) + { + if (Excerpt != null && Excerpt.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Excerpt = Excerpt.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_Excerpt, Excerpt); + } + + /** Get Excerpt. + @return Surrounding text of the keyword + */ + public String getExcerpt () + { + return (String)get_Value(COLUMNNAME_Excerpt); + } + + /** Set Index. + @param K_INDEX_ID + Text Search Index + */ + public void setK_INDEX_ID (int K_INDEX_ID) + { + if (K_INDEX_ID < 1) + throw new IllegalArgumentException ("K_INDEX_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_INDEX_ID, Integer.valueOf(K_INDEX_ID)); + } + + /** Get Index. + @return Text Search Index + */ + public int getK_INDEX_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_INDEX_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Keyword. + @param Keyword + Case insensitive keyword + */ + public void setKeyword (String Keyword) + { + if (Keyword == null) + throw new IllegalArgumentException ("Keyword is mandatory."); + if (Keyword.length() > 255) + { + log.warning("Length > 255 - truncated"); + Keyword = Keyword.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Keyword, Keyword); + } + + /** Get Keyword. + @return Case insensitive keyword + */ + public String getKeyword () + { + return (String)get_Value(COLUMNNAME_Keyword); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getKeyword()); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Source Updated. + @param SourceUpdated + Date the source document was updated + */ + public void setSourceUpdated (Timestamp SourceUpdated) + { + if (SourceUpdated == null) + throw new IllegalArgumentException ("SourceUpdated is mandatory."); + set_Value (COLUMNNAME_SourceUpdated, SourceUpdated); + } + + /** Get Source Updated. + @return Date the source document was updated + */ + public Timestamp getSourceUpdated () + { + return (Timestamp)get_Value(COLUMNNAME_SourceUpdated); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_IndexLog.java b/base/src/org/compiere/model/X_K_IndexLog.java index 57ed3b4322..45b60b1f92 100644 --- a/base/src/org/compiere/model/X_K_IndexLog.java +++ b/base/src/org/compiere/model/X_K_IndexLog.java @@ -1,183 +1,178 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_IndexLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_IndexLog extends PO + +/** Generated Model for K_IndexLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_IndexLog extends PO implements I_K_IndexLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_IndexLog_ID id -@param trxName transaction -*/ -public X_K_IndexLog (Properties ctx, int K_IndexLog_ID, String trxName) -{ -super (ctx, K_IndexLog_ID, trxName); -/** if (K_IndexLog_ID == 0) -{ -setIndexQuery (null); -setIndexQueryResult (0); -setK_IndexLog_ID (0); -setQuerySource (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_IndexLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_IndexLog */ -public static final String Table_Name="K_IndexLog"; - -/** AD_Table_ID=899 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_IndexLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Index Query. -@param IndexQuery Text Search Query */ -public void setIndexQuery (String IndexQuery) -{ -if (IndexQuery == null) throw new IllegalArgumentException ("IndexQuery is mandatory."); -if (IndexQuery.length() > 255) -{ -log.warning("Length > 255 - truncated"); -IndexQuery = IndexQuery.substring(0,254); -} -set_ValueNoCheck ("IndexQuery", IndexQuery); -} -/** Get Index Query. -@return Text Search Query */ -public String getIndexQuery() -{ -return (String)get_Value("IndexQuery"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getIndexQuery()); -} -/** Column name IndexQuery */ -public static final String COLUMNNAME_IndexQuery = "IndexQuery"; -/** Set Query Result. -@param IndexQueryResult Result of the text query */ -public void setIndexQueryResult (int IndexQueryResult) -{ -set_ValueNoCheck ("IndexQueryResult", Integer.valueOf(IndexQueryResult)); -} -/** Get Query Result. -@return Result of the text query */ -public int getIndexQueryResult() -{ -Integer ii = (Integer)get_Value("IndexQueryResult"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IndexQueryResult */ -public static final String COLUMNNAME_IndexQueryResult = "IndexQueryResult"; -/** Set Index Log. -@param K_IndexLog_ID Text search log */ -public void setK_IndexLog_ID (int K_IndexLog_ID) -{ -if (K_IndexLog_ID < 1) throw new IllegalArgumentException ("K_IndexLog_ID is mandatory."); -set_ValueNoCheck ("K_IndexLog_ID", Integer.valueOf(K_IndexLog_ID)); -} -/** Get Index Log. -@return Text search log */ -public int getK_IndexLog_ID() -{ -Integer ii = (Integer)get_Value("K_IndexLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_IndexLog_ID */ -public static final String COLUMNNAME_K_IndexLog_ID = "K_IndexLog_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_IndexLog (Properties ctx, int K_IndexLog_ID, String trxName) + { + super (ctx, K_IndexLog_ID, trxName); + /** if (K_IndexLog_ID == 0) { setIndexQuery (null); + setIndexQueryResult (0); + setK_IndexLog_ID (0); + setQuerySource (null); +} */ + } + + /** Load Constructor */ + public X_K_IndexLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_IndexLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Index Query. + @param IndexQuery + Text Search Query + */ + public void setIndexQuery (String IndexQuery) + { + if (IndexQuery == null) + throw new IllegalArgumentException ("IndexQuery is mandatory."); + if (IndexQuery.length() > 255) + { + log.warning("Length > 255 - truncated"); + IndexQuery = IndexQuery.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_IndexQuery, IndexQuery); + } + + /** Get Index Query. + @return Text Search Query + */ + public String getIndexQuery () + { + return (String)get_Value(COLUMNNAME_IndexQuery); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getIndexQuery()); + } + + /** Set Query Result. + @param IndexQueryResult + Result of the text query + */ + public void setIndexQueryResult (int IndexQueryResult) + { + set_ValueNoCheck (COLUMNNAME_IndexQueryResult, Integer.valueOf(IndexQueryResult)); + } + + /** Get Query Result. + @return Result of the text query + */ + public int getIndexQueryResult () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IndexQueryResult); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Index Log. + @param K_IndexLog_ID + Text search log + */ + public void setK_IndexLog_ID (int K_IndexLog_ID) + { + if (K_IndexLog_ID < 1) + throw new IllegalArgumentException ("K_IndexLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_IndexLog_ID, Integer.valueOf(K_IndexLog_ID)); + } + + /** Get Index Log. + @return Text search log + */ + public int getK_IndexLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_IndexLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** QuerySource AD_Reference_ID=391 */ -public static final int QUERYSOURCE_AD_Reference_ID=391; -/** Collaboration Management = C */ -public static final String QUERYSOURCE_CollaborationManagement = "C"; -/** HTML Client = H */ -public static final String QUERYSOURCE_HTMLClient = "H"; -/** Java Client = J */ -public static final String QUERYSOURCE_JavaClient = "J"; -/** Self Service = W */ +public static final int QUERYSOURCE_AD_Reference_ID=391;/** Collaboration Management = C */ +public static final String QUERYSOURCE_CollaborationManagement = "C";/** HTML Client = H */ +public static final String QUERYSOURCE_HTMLClient = "H";/** Java Client = J */ +public static final String QUERYSOURCE_JavaClient = "J";/** Self Service = W */ public static final String QUERYSOURCE_SelfService = "W"; -/** Set Query Source. -@param QuerySource Source of the Query */ -public void setQuerySource (String QuerySource) -{ -if (QuerySource == null) throw new IllegalArgumentException ("QuerySource is mandatory"); -if (QuerySource.equals("C") || QuerySource.equals("H") || QuerySource.equals("J") || QuerySource.equals("W")); - else throw new IllegalArgumentException ("QuerySource Invalid value - " + QuerySource + " - Reference_ID=391 - C - H - J - W"); -if (QuerySource.length() > 1) -{ -log.warning("Length > 1 - truncated"); -QuerySource = QuerySource.substring(0,0); -} -set_Value ("QuerySource", QuerySource); -} -/** Get Query Source. -@return Source of the Query */ -public String getQuerySource() -{ -return (String)get_Value("QuerySource"); -} -/** Column name QuerySource */ -public static final String COLUMNNAME_QuerySource = "QuerySource"; -} + /** Set Query Source. + @param QuerySource + Source of the Query + */ + public void setQuerySource (String QuerySource) + { +if (QuerySource == null) throw new IllegalArgumentException ("QuerySource is mandatory");if (QuerySource.equals("C") || QuerySource.equals("H") || QuerySource.equals("J") || QuerySource.equals("W")); else throw new IllegalArgumentException ("QuerySource Invalid value - " + QuerySource + " - Reference_ID=391 - C - H - J - W"); if (QuerySource.length() > 1) + { + log.warning("Length > 1 - truncated"); + QuerySource = QuerySource.substring(0, 0); + } + set_Value (COLUMNNAME_QuerySource, QuerySource); + } + + /** Get Query Source. + @return Source of the Query + */ + public String getQuerySource () + { + return (String)get_Value(COLUMNNAME_QuerySource); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_IndexStop.java b/base/src/org/compiere/model/X_K_IndexStop.java index 9dd57c3866..91cadcfc48 100644 --- a/base/src/org/compiere/model/X_K_IndexStop.java +++ b/base/src/org/compiere/model/X_K_IndexStop.java @@ -1,207 +1,268 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_IndexStop - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_IndexStop extends PO + +/** Generated Model for K_IndexStop + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_IndexStop extends PO implements I_K_IndexStop, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_IndexStop_ID id -@param trxName transaction -*/ -public X_K_IndexStop (Properties ctx, int K_IndexStop_ID, String trxName) -{ -super (ctx, K_IndexStop_ID, trxName); -/** if (K_IndexStop_ID == 0) -{ -setIsManual (true); // Y -setK_IndexStop_ID (0); -setKeyword (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_IndexStop (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_IndexStop */ -public static final String Table_Name="K_IndexStop"; - -/** AD_Table_ID=901 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_IndexStop[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Web Project. -@param CM_WebProject_ID A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public void setCM_WebProject_ID (int CM_WebProject_ID) -{ -if (CM_WebProject_ID <= 0) set_Value ("CM_WebProject_ID", null); - else -set_Value ("CM_WebProject_ID", Integer.valueOf(CM_WebProject_ID)); -} -/** Get Web Project. -@return A web project is the main data container for Containers, URLs, Ads, Media etc. */ -public int getCM_WebProject_ID() -{ -Integer ii = (Integer)get_Value("CM_WebProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CM_WebProject_ID */ -public static final String COLUMNNAME_CM_WebProject_ID = "CM_WebProject_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Index Stop. -@param K_IndexStop_ID Keyword not to be indexed */ -public void setK_IndexStop_ID (int K_IndexStop_ID) -{ -if (K_IndexStop_ID < 1) throw new IllegalArgumentException ("K_IndexStop_ID is mandatory."); -set_ValueNoCheck ("K_IndexStop_ID", Integer.valueOf(K_IndexStop_ID)); -} -/** Get Index Stop. -@return Keyword not to be indexed */ -public int getK_IndexStop_ID() -{ -Integer ii = (Integer)get_Value("K_IndexStop_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_IndexStop_ID */ -public static final String COLUMNNAME_K_IndexStop_ID = "K_IndexStop_ID"; -/** Set Keyword. -@param Keyword Case insensitive keyword */ -public void setKeyword (String Keyword) -{ -if (Keyword == null) throw new IllegalArgumentException ("Keyword is mandatory."); -if (Keyword.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Keyword = Keyword.substring(0,254); -} -set_Value ("Keyword", Keyword); -} -/** Get Keyword. -@return Case insensitive keyword */ -public String getKeyword() -{ -return (String)get_Value("Keyword"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getKeyword()); -} -/** Column name Keyword */ -public static final String COLUMNNAME_Keyword = "Keyword"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_Value ("R_RequestType_ID", null); - else -set_Value ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_IndexStop (Properties ctx, int K_IndexStop_ID, String trxName) + { + super (ctx, K_IndexStop_ID, trxName); + /** if (K_IndexStop_ID == 0) { setIsManual (true); +// Y + setK_IndexStop_ID (0); + setKeyword (null); +} */ + } + + /** Load Constructor */ + public X_K_IndexStop (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_IndexStop[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_CM_WebProject getI_CM_WebProject() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Project. + @param CM_WebProject_ID + A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public void setCM_WebProject_ID (int CM_WebProject_ID) + { + if (CM_WebProject_ID <= 0) set_Value (COLUMNNAME_CM_WebProject_ID, null); + else + set_Value (COLUMNNAME_CM_WebProject_ID, Integer.valueOf(CM_WebProject_ID)); + } + + /** Get Web Project. + @return A web project is the main data container for Containers, URLs, Ads, Media etc. + */ + public int getCM_WebProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CM_WebProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Index Stop. + @param K_IndexStop_ID + Keyword not to be indexed + */ + public void setK_IndexStop_ID (int K_IndexStop_ID) + { + if (K_IndexStop_ID < 1) + throw new IllegalArgumentException ("K_IndexStop_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_IndexStop_ID, Integer.valueOf(K_IndexStop_ID)); + } + + /** Get Index Stop. + @return Keyword not to be indexed + */ + public int getK_IndexStop_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_IndexStop_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Keyword. + @param Keyword + Case insensitive keyword + */ + public void setKeyword (String Keyword) + { + if (Keyword == null) + throw new IllegalArgumentException ("Keyword is mandatory."); + if (Keyword.length() > 255) + { + log.warning("Length > 255 - truncated"); + Keyword = Keyword.substring(0, 254); + } + set_Value (COLUMNNAME_Keyword, Keyword); + } + + /** Get Keyword. + @return Case insensitive keyword + */ + public String getKeyword () + { + return (String)get_Value(COLUMNNAME_Keyword); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getKeyword()); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Source.java b/base/src/org/compiere/model/X_K_Source.java index 4bdc522ce6..6a0eacad7a 100644 --- a/base/src/org/compiere/model/X_K_Source.java +++ b/base/src/org/compiere/model/X_K_Source.java @@ -1,151 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Source - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Source extends PO + +/** Generated Model for K_Source + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Source extends PO implements I_K_Source, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Source_ID id -@param trxName transaction -*/ -public X_K_Source (Properties ctx, int K_Source_ID, String trxName) -{ -super (ctx, K_Source_ID, trxName); -/** if (K_Source_ID == 0) -{ -setK_Source_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Source (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Source */ -public static final String Table_Name="K_Source"; - -/** AD_Table_ID=609 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Source[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description URL. -@param DescriptionURL URL for the description */ -public void setDescriptionURL (String DescriptionURL) -{ -if (DescriptionURL != null && DescriptionURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DescriptionURL = DescriptionURL.substring(0,119); -} -set_Value ("DescriptionURL", DescriptionURL); -} -/** Get Description URL. -@return URL for the description */ -public String getDescriptionURL() -{ -return (String)get_Value("DescriptionURL"); -} -/** Column name DescriptionURL */ -public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; -/** Set Knowledge Source. -@param K_Source_ID Source of a Knowledge Entry */ -public void setK_Source_ID (int K_Source_ID) -{ -if (K_Source_ID < 1) throw new IllegalArgumentException ("K_Source_ID is mandatory."); -set_ValueNoCheck ("K_Source_ID", Integer.valueOf(K_Source_ID)); -} -/** Get Knowledge Source. -@return Source of a Knowledge Entry */ -public int getK_Source_ID() -{ -Integer ii = (Integer)get_Value("K_Source_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Source_ID */ -public static final String COLUMNNAME_K_Source_ID = "K_Source_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Source (Properties ctx, int K_Source_ID, String trxName) + { + super (ctx, K_Source_ID, trxName); + /** if (K_Source_ID == 0) { setK_Source_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_K_Source (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Source[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description URL. + @param DescriptionURL + URL for the description + */ + public void setDescriptionURL (String DescriptionURL) + { + if (DescriptionURL != null && DescriptionURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DescriptionURL = DescriptionURL.substring(0, 119); + } + set_Value (COLUMNNAME_DescriptionURL, DescriptionURL); + } + + /** Get Description URL. + @return URL for the description + */ + public String getDescriptionURL () + { + return (String)get_Value(COLUMNNAME_DescriptionURL); + } + + /** Set Knowledge Source. + @param K_Source_ID + Source of a Knowledge Entry + */ + public void setK_Source_ID (int K_Source_ID) + { + if (K_Source_ID < 1) + throw new IllegalArgumentException ("K_Source_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Source_ID, Integer.valueOf(K_Source_ID)); + } + + /** Get Knowledge Source. + @return Source of a Knowledge Entry + */ + public int getK_Source_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Source_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Synonym.java b/base/src/org/compiere/model/X_K_Synonym.java index 0811a5f4fc..16fdfac423 100644 --- a/base/src/org/compiere/model/X_K_Synonym.java +++ b/base/src/org/compiere/model/X_K_Synonym.java @@ -1,176 +1,178 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Synonym - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Synonym extends PO + +/** Generated Model for K_Synonym + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Synonym extends PO implements I_K_Synonym, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Synonym_ID id -@param trxName transaction -*/ -public X_K_Synonym (Properties ctx, int K_Synonym_ID, String trxName) -{ -super (ctx, K_Synonym_ID, trxName); -/** if (K_Synonym_ID == 0) -{ -setAD_Language (null); -setK_Synonym_ID (0); -setName (null); -setSynonymName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Synonym (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Synonym */ -public static final String Table_Name="K_Synonym"; - -/** AD_Table_ID=608 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Synonym[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Synonym (Properties ctx, int K_Synonym_ID, String trxName) + { + super (ctx, K_Synonym_ID, trxName); + /** if (K_Synonym_ID == 0) { setAD_Language (null); + setK_Synonym_ID (0); + setName (null); + setSynonymName (null); +} */ + } + + /** Load Constructor */ + public X_K_Synonym (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Synonym[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=106 */ public static final int AD_LANGUAGE_AD_Reference_ID=106; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_Value ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; -/** Set Knowledge Synonym. -@param K_Synonym_ID Knowlege Keyword Synonym */ -public void setK_Synonym_ID (int K_Synonym_ID) -{ -if (K_Synonym_ID < 1) throw new IllegalArgumentException ("K_Synonym_ID is mandatory."); -set_ValueNoCheck ("K_Synonym_ID", Integer.valueOf(K_Synonym_ID)); -} -/** Get Knowledge Synonym. -@return Knowlege Keyword Synonym */ -public int getK_Synonym_ID() -{ -Integer ii = (Integer)get_Value("K_Synonym_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Synonym_ID */ -public static final String COLUMNNAME_K_Synonym_ID = "K_Synonym_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Synonym Name. -@param SynonymName The synonym for the name */ -public void setSynonymName (String SynonymName) -{ -if (SynonymName == null) throw new IllegalArgumentException ("SynonymName is mandatory."); -if (SynonymName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SynonymName = SynonymName.substring(0,59); -} -set_Value ("SynonymName", SynonymName); -} -/** Get Synonym Name. -@return The synonym for the name */ -public String getSynonymName() -{ -return (String)get_Value("SynonymName"); -} -/** Column name SynonymName */ -public static final String COLUMNNAME_SynonymName = "SynonymName"; -} + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set Knowledge Synonym. + @param K_Synonym_ID + Knowlege Keyword Synonym + */ + public void setK_Synonym_ID (int K_Synonym_ID) + { + if (K_Synonym_ID < 1) + throw new IllegalArgumentException ("K_Synonym_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Synonym_ID, Integer.valueOf(K_Synonym_ID)); + } + + /** Get Knowledge Synonym. + @return Knowlege Keyword Synonym + */ + public int getK_Synonym_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Synonym_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Synonym Name. + @param SynonymName + The synonym for the name + */ + public void setSynonymName (String SynonymName) + { + if (SynonymName == null) + throw new IllegalArgumentException ("SynonymName is mandatory."); + if (SynonymName.length() > 60) + { + log.warning("Length > 60 - truncated"); + SynonymName = SynonymName.substring(0, 59); + } + set_Value (COLUMNNAME_SynonymName, SynonymName); + } + + /** Get Synonym Name. + @return The synonym for the name + */ + public String getSynonymName () + { + return (String)get_Value(COLUMNNAME_SynonymName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Topic.java b/base/src/org/compiere/model/X_K_Topic.java index 25c8f72da0..bdbaa037da 100644 --- a/base/src/org/compiere/model/X_K_Topic.java +++ b/base/src/org/compiere/model/X_K_Topic.java @@ -1,230 +1,263 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Topic - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Topic extends PO + +/** Generated Model for K_Topic + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Topic extends PO implements I_K_Topic, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Topic_ID id -@param trxName transaction -*/ -public X_K_Topic (Properties ctx, int K_Topic_ID, String trxName) -{ -super (ctx, K_Topic_ID, trxName); -/** if (K_Topic_ID == 0) -{ -setIsPublic (true); // Y -setIsPublicWrite (true); // Y -setK_Topic_ID (0); -setK_Type_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Topic (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Topic */ -public static final String Table_Name="K_Topic"; - -/** AD_Table_ID=607 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Topic[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Public. -@param IsPublic Public can read entry */ -public void setIsPublic (boolean IsPublic) -{ -set_Value ("IsPublic", Boolean.valueOf(IsPublic)); -} -/** Get Public. -@return Public can read entry */ -public boolean isPublic() -{ -Object oo = get_Value("IsPublic"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublic */ -public static final String COLUMNNAME_IsPublic = "IsPublic"; -/** Set Public Write. -@param IsPublicWrite Public can write entries */ -public void setIsPublicWrite (boolean IsPublicWrite) -{ -set_Value ("IsPublicWrite", Boolean.valueOf(IsPublicWrite)); -} -/** Get Public Write. -@return Public can write entries */ -public boolean isPublicWrite() -{ -Object oo = get_Value("IsPublicWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublicWrite */ -public static final String COLUMNNAME_IsPublicWrite = "IsPublicWrite"; -/** Set Knowledge Topic. -@param K_Topic_ID Knowledge Topic */ -public void setK_Topic_ID (int K_Topic_ID) -{ -if (K_Topic_ID < 1) throw new IllegalArgumentException ("K_Topic_ID is mandatory."); -set_ValueNoCheck ("K_Topic_ID", Integer.valueOf(K_Topic_ID)); -} -/** Get Knowledge Topic. -@return Knowledge Topic */ -public int getK_Topic_ID() -{ -Integer ii = (Integer)get_Value("K_Topic_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Topic_ID */ -public static final String COLUMNNAME_K_Topic_ID = "K_Topic_ID"; -/** Set Knowldge Type. -@param K_Type_ID Knowledge Type */ -public void setK_Type_ID (int K_Type_ID) -{ -if (K_Type_ID < 1) throw new IllegalArgumentException ("K_Type_ID is mandatory."); -set_ValueNoCheck ("K_Type_ID", Integer.valueOf(K_Type_ID)); -} -/** Get Knowldge Type. -@return Knowledge Type */ -public int getK_Type_ID() -{ -Integer ii = (Integer)get_Value("K_Type_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Type_ID */ -public static final String COLUMNNAME_K_Type_ID = "K_Type_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Topic (Properties ctx, int K_Topic_ID, String trxName) + { + super (ctx, K_Topic_ID, trxName); + /** if (K_Topic_ID == 0) { setIsPublic (true); +// Y + setIsPublicWrite (true); +// Y + setK_Topic_ID (0); + setK_Type_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_K_Topic (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Topic[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Public. + @param IsPublic + Public can read entry + */ + public void setIsPublic (boolean IsPublic) + { + set_Value (COLUMNNAME_IsPublic, Boolean.valueOf(IsPublic)); + } + + /** Get Public. + @return Public can read entry + */ + public boolean isPublic () + { + Object oo = get_Value(COLUMNNAME_IsPublic); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Public Write. + @param IsPublicWrite + Public can write entries + */ + public void setIsPublicWrite (boolean IsPublicWrite) + { + set_Value (COLUMNNAME_IsPublicWrite, Boolean.valueOf(IsPublicWrite)); + } + + /** Get Public Write. + @return Public can write entries + */ + public boolean isPublicWrite () + { + Object oo = get_Value(COLUMNNAME_IsPublicWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Knowledge Topic. + @param K_Topic_ID + Knowledge Topic + */ + public void setK_Topic_ID (int K_Topic_ID) + { + if (K_Topic_ID < 1) + throw new IllegalArgumentException ("K_Topic_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Topic_ID, Integer.valueOf(K_Topic_ID)); + } + + /** Get Knowledge Topic. + @return Knowledge Topic + */ + public int getK_Topic_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Topic_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_K_Type getI_K_Type() throws Exception + { + 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 e; + } + return result; + } + + /** Set Knowldge Type. + @param K_Type_ID + Knowledge Type + */ + public void setK_Type_ID (int K_Type_ID) + { + if (K_Type_ID < 1) + throw new IllegalArgumentException ("K_Type_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Type_ID, Integer.valueOf(K_Type_ID)); + } + + /** Get Knowldge Type. + @return Knowledge Type + */ + public int getK_Type_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Type_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_K_Type.java b/base/src/org/compiere/model/X_K_Type.java index 7d659214f0..19f886da03 100644 --- a/base/src/org/compiere/model/X_K_Type.java +++ b/base/src/org/compiere/model/X_K_Type.java @@ -1,212 +1,224 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for K_Type - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_K_Type extends PO + +/** Generated Model for K_Type + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_K_Type extends PO implements I_K_Type, I_Persistent { -/** Standard Constructor -@param ctx context -@param K_Type_ID id -@param trxName transaction -*/ -public X_K_Type (Properties ctx, int K_Type_ID, String trxName) -{ -super (ctx, K_Type_ID, trxName); -/** if (K_Type_ID == 0) -{ -setIsPublic (true); // Y -setIsPublicWrite (true); // Y -setK_Type_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_K_Type (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=K_Type */ -public static final String Table_Name="K_Type"; - -/** AD_Table_ID=606 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_K_Type[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Public. -@param IsPublic Public can read entry */ -public void setIsPublic (boolean IsPublic) -{ -set_Value ("IsPublic", Boolean.valueOf(IsPublic)); -} -/** Get Public. -@return Public can read entry */ -public boolean isPublic() -{ -Object oo = get_Value("IsPublic"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublic */ -public static final String COLUMNNAME_IsPublic = "IsPublic"; -/** Set Public Write. -@param IsPublicWrite Public can write entries */ -public void setIsPublicWrite (boolean IsPublicWrite) -{ -set_Value ("IsPublicWrite", Boolean.valueOf(IsPublicWrite)); -} -/** Get Public Write. -@return Public can write entries */ -public boolean isPublicWrite() -{ -Object oo = get_Value("IsPublicWrite"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPublicWrite */ -public static final String COLUMNNAME_IsPublicWrite = "IsPublicWrite"; -/** Set Knowldge Type. -@param K_Type_ID Knowledge Type */ -public void setK_Type_ID (int K_Type_ID) -{ -if (K_Type_ID < 1) throw new IllegalArgumentException ("K_Type_ID is mandatory."); -set_ValueNoCheck ("K_Type_ID", Integer.valueOf(K_Type_ID)); -} -/** Get Knowldge Type. -@return Knowledge Type */ -public int getK_Type_ID() -{ -Integer ii = (Integer)get_Value("K_Type_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name K_Type_ID */ -public static final String COLUMNNAME_K_Type_ID = "K_Type_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_K_Type (Properties ctx, int K_Type_ID, String trxName) + { + super (ctx, K_Type_ID, trxName); + /** if (K_Type_ID == 0) { setIsPublic (true); +// Y + setIsPublicWrite (true); +// Y + setK_Type_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_K_Type (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_K_Type[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Public. + @param IsPublic + Public can read entry + */ + public void setIsPublic (boolean IsPublic) + { + set_Value (COLUMNNAME_IsPublic, Boolean.valueOf(IsPublic)); + } + + /** Get Public. + @return Public can read entry + */ + public boolean isPublic () + { + Object oo = get_Value(COLUMNNAME_IsPublic); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Public Write. + @param IsPublicWrite + Public can write entries + */ + public void setIsPublicWrite (boolean IsPublicWrite) + { + set_Value (COLUMNNAME_IsPublicWrite, Boolean.valueOf(IsPublicWrite)); + } + + /** Get Public Write. + @return Public can write entries + */ + public boolean isPublicWrite () + { + Object oo = get_Value(COLUMNNAME_IsPublicWrite); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Knowldge Type. + @param K_Type_ID + Knowledge Type + */ + public void setK_Type_ID (int K_Type_ID) + { + if (K_Type_ID < 1) + throw new IllegalArgumentException ("K_Type_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_K_Type_ID, Integer.valueOf(K_Type_ID)); + } + + /** Get Knowldge Type. + @return Knowledge Type + */ + public int getK_Type_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_K_Type_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Attribute.java b/base/src/org/compiere/model/X_M_Attribute.java index 35c55460d5..02097a3bcb 100644 --- a/base/src/org/compiere/model/X_M_Attribute.java +++ b/base/src/org/compiere/model/X_M_Attribute.java @@ -1,243 +1,267 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Attribute - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Attribute extends PO + +/** Generated Model for M_Attribute + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Attribute extends PO implements I_M_Attribute, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Attribute_ID id -@param trxName transaction -*/ -public X_M_Attribute (Properties ctx, int M_Attribute_ID, String trxName) -{ -super (ctx, M_Attribute_ID, trxName); -/** if (M_Attribute_ID == 0) -{ -setAttributeValueType (null); // S -setIsInstanceAttribute (false); -setIsMandatory (false); -setM_Attribute_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Attribute (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Attribute */ -public static final String Table_Name="M_Attribute"; - -/** AD_Table_ID=562 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Attribute[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Attribute (Properties ctx, int M_Attribute_ID, String trxName) + { + super (ctx, M_Attribute_ID, trxName); + /** if (M_Attribute_ID == 0) { setAttributeValueType (null); +// S + setIsInstanceAttribute (false); + setIsMandatory (false); + setM_Attribute_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_Attribute (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Attribute[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AttributeValueType AD_Reference_ID=326 */ -public static final int ATTRIBUTEVALUETYPE_AD_Reference_ID=326; -/** List = L */ -public static final String ATTRIBUTEVALUETYPE_List = "L"; -/** Number = N */ -public static final String ATTRIBUTEVALUETYPE_Number = "N"; -/** String (max 40) = S */ +public static final int ATTRIBUTEVALUETYPE_AD_Reference_ID=326;/** List = L */ +public static final String ATTRIBUTEVALUETYPE_List = "L";/** Number = N */ +public static final String ATTRIBUTEVALUETYPE_Number = "N";/** String (max 40) = S */ public static final String ATTRIBUTEVALUETYPE_StringMax40 = "S"; -/** Set Attribute Value Type. -@param AttributeValueType Type of Attribute Value */ -public void setAttributeValueType (String AttributeValueType) -{ -if (AttributeValueType == null) throw new IllegalArgumentException ("AttributeValueType is mandatory"); -if (AttributeValueType.equals("L") || AttributeValueType.equals("N") || AttributeValueType.equals("S")); - else throw new IllegalArgumentException ("AttributeValueType Invalid value - " + AttributeValueType + " - Reference_ID=326 - L - N - S"); -if (AttributeValueType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AttributeValueType = AttributeValueType.substring(0,0); -} -set_Value ("AttributeValueType", AttributeValueType); -} -/** Get Attribute Value Type. -@return Type of Attribute Value */ -public String getAttributeValueType() -{ -return (String)get_Value("AttributeValueType"); -} -/** Column name AttributeValueType */ -public static final String COLUMNNAME_AttributeValueType = "AttributeValueType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Instance Attribute. -@param IsInstanceAttribute The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) */ -public void setIsInstanceAttribute (boolean IsInstanceAttribute) -{ -set_Value ("IsInstanceAttribute", Boolean.valueOf(IsInstanceAttribute)); -} -/** Get Instance Attribute. -@return The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) */ -public boolean isInstanceAttribute() -{ -Object oo = get_Value("IsInstanceAttribute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInstanceAttribute */ -public static final String COLUMNNAME_IsInstanceAttribute = "IsInstanceAttribute"; -/** Set Mandatory. -@param IsMandatory Data entry is required in this column */ -public void setIsMandatory (boolean IsMandatory) -{ -set_Value ("IsMandatory", Boolean.valueOf(IsMandatory)); -} -/** Get Mandatory. -@return Data entry is required in this column */ -public boolean isMandatory() -{ -Object oo = get_Value("IsMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMandatory */ -public static final String COLUMNNAME_IsMandatory = "IsMandatory"; -/** Set Attribute Search. -@param M_AttributeSearch_ID Common Search Attribute */ -public void setM_AttributeSearch_ID (int M_AttributeSearch_ID) -{ -if (M_AttributeSearch_ID <= 0) set_Value ("M_AttributeSearch_ID", null); - else -set_Value ("M_AttributeSearch_ID", Integer.valueOf(M_AttributeSearch_ID)); -} -/** Get Attribute Search. -@return Common Search Attribute */ -public int getM_AttributeSearch_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSearch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSearch_ID */ -public static final String COLUMNNAME_M_AttributeSearch_ID = "M_AttributeSearch_ID"; -/** Set Attribute. -@param M_Attribute_ID Product Attribute */ -public void setM_Attribute_ID (int M_Attribute_ID) -{ -if (M_Attribute_ID < 1) throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); -set_ValueNoCheck ("M_Attribute_ID", Integer.valueOf(M_Attribute_ID)); -} -/** Get Attribute. -@return Product Attribute */ -public int getM_Attribute_ID() -{ -Integer ii = (Integer)get_Value("M_Attribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Attribute_ID */ -public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Attribute Value Type. + @param AttributeValueType + Type of Attribute Value + */ + public void setAttributeValueType (String AttributeValueType) + { +if (AttributeValueType == null) throw new IllegalArgumentException ("AttributeValueType is mandatory");if (AttributeValueType.equals("L") || AttributeValueType.equals("N") || AttributeValueType.equals("S")); else throw new IllegalArgumentException ("AttributeValueType Invalid value - " + AttributeValueType + " - Reference_ID=326 - L - N - S"); if (AttributeValueType.length() > 1) + { + log.warning("Length > 1 - truncated"); + AttributeValueType = AttributeValueType.substring(0, 0); + } + set_Value (COLUMNNAME_AttributeValueType, AttributeValueType); + } + + /** Get Attribute Value Type. + @return Type of Attribute Value + */ + public String getAttributeValueType () + { + return (String)get_Value(COLUMNNAME_AttributeValueType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Instance Attribute. + @param IsInstanceAttribute + The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public void setIsInstanceAttribute (boolean IsInstanceAttribute) + { + set_Value (COLUMNNAME_IsInstanceAttribute, Boolean.valueOf(IsInstanceAttribute)); + } + + /** Get Instance Attribute. + @return The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public boolean isInstanceAttribute () + { + Object oo = get_Value(COLUMNNAME_IsInstanceAttribute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory. + @param IsMandatory + Data entry is required in this column + */ + public void setIsMandatory (boolean IsMandatory) + { + set_Value (COLUMNNAME_IsMandatory, Boolean.valueOf(IsMandatory)); + } + + /** Get Mandatory. + @return Data entry is required in this column + */ + public boolean isMandatory () + { + Object oo = get_Value(COLUMNNAME_IsMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_AttributeSearch getI_M_AttributeSearch() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute Search. + @param M_AttributeSearch_ID + Common Search Attribute + */ + public void setM_AttributeSearch_ID (int M_AttributeSearch_ID) + { + if (M_AttributeSearch_ID <= 0) set_Value (COLUMNNAME_M_AttributeSearch_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSearch_ID, Integer.valueOf(M_AttributeSearch_ID)); + } + + /** Get Attribute Search. + @return Common Search Attribute + */ + public int getM_AttributeSearch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSearch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute. + @param M_Attribute_ID + Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID) + { + if (M_Attribute_ID < 1) + throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + } + + /** Get Attribute. + @return Product Attribute + */ + public int getM_Attribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Attribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeInstance.java b/base/src/org/compiere/model/X_M_AttributeInstance.java index 77e697f7c1..e7cf4ad07c 100644 --- a/base/src/org/compiere/model/X_M_AttributeInstance.java +++ b/base/src/org/compiere/model/X_M_AttributeInstance.java @@ -1,182 +1,222 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeInstance - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeInstance extends PO + +/** Generated Model for M_AttributeInstance + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeInstance extends PO implements I_M_AttributeInstance, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeInstance_ID id -@param trxName transaction -*/ -public X_M_AttributeInstance (Properties ctx, int M_AttributeInstance_ID, String trxName) -{ -super (ctx, M_AttributeInstance_ID, trxName); -/** if (M_AttributeInstance_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_Attribute_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeInstance (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeInstance */ -public static final String Table_Name="M_AttributeInstance"; - -/** AD_Table_ID=561 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeInstance[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Attribute Value. -@param M_AttributeValue_ID Product Attribute Value */ -public void setM_AttributeValue_ID (int M_AttributeValue_ID) -{ -if (M_AttributeValue_ID <= 0) set_Value ("M_AttributeValue_ID", null); - else -set_Value ("M_AttributeValue_ID", Integer.valueOf(M_AttributeValue_ID)); -} -/** Get Attribute Value. -@return Product Attribute Value */ -public int getM_AttributeValue_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeValue_ID())); -} -/** Column name M_AttributeValue_ID */ -public static final String COLUMNNAME_M_AttributeValue_ID = "M_AttributeValue_ID"; -/** Set Attribute. -@param M_Attribute_ID Product Attribute */ -public void setM_Attribute_ID (int M_Attribute_ID) -{ -if (M_Attribute_ID < 1) throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); -set_ValueNoCheck ("M_Attribute_ID", Integer.valueOf(M_Attribute_ID)); -} -/** Get Attribute. -@return Product Attribute */ -public int getM_Attribute_ID() -{ -Integer ii = (Integer)get_Value("M_Attribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Attribute_ID */ -public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value != null && Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Value. -@param ValueNumber Numeric Value */ -public void setValueNumber (BigDecimal ValueNumber) -{ -set_Value ("ValueNumber", ValueNumber); -} -/** Get Value. -@return Numeric Value */ -public BigDecimal getValueNumber() -{ -BigDecimal bd = (BigDecimal)get_Value("ValueNumber"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ValueNumber */ -public static final String COLUMNNAME_ValueNumber = "ValueNumber"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeInstance (Properties ctx, int M_AttributeInstance_ID, String trxName) + { + super (ctx, M_AttributeInstance_ID, trxName); + /** if (M_AttributeInstance_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_Attribute_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_AttributeInstance (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeInstance[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_AttributeValue getI_M_AttributeValue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute Value. + @param M_AttributeValue_ID + Product Attribute Value + */ + public void setM_AttributeValue_ID (int M_AttributeValue_ID) + { + if (M_AttributeValue_ID <= 0) set_Value (COLUMNNAME_M_AttributeValue_ID, null); + else + set_Value (COLUMNNAME_M_AttributeValue_ID, Integer.valueOf(M_AttributeValue_ID)); + } + + /** Get Attribute Value. + @return Product Attribute Value + */ + public int getM_AttributeValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeValue_ID())); + } + + public I_M_Attribute getI_M_Attribute() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute. + @param M_Attribute_ID + Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID) + { + if (M_Attribute_ID < 1) + throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + } + + /** Get Attribute. + @return Product Attribute + */ + public int getM_Attribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Attribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value != null && Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Value. + @param ValueNumber + Numeric Value + */ + public void setValueNumber (BigDecimal ValueNumber) + { + set_Value (COLUMNNAME_ValueNumber, ValueNumber); + } + + /** Get Value. + @return Numeric Value + */ + public BigDecimal getValueNumber () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ValueNumber); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeSearch.java b/base/src/org/compiere/model/X_M_AttributeSearch.java index b8777d51cb..eac6903d7d 100644 --- a/base/src/org/compiere/model/X_M_AttributeSearch.java +++ b/base/src/org/compiere/model/X_M_AttributeSearch.java @@ -1,151 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeSearch - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeSearch extends PO + +/** Generated Model for M_AttributeSearch + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeSearch extends PO implements I_M_AttributeSearch, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeSearch_ID id -@param trxName transaction -*/ -public X_M_AttributeSearch (Properties ctx, int M_AttributeSearch_ID, String trxName) -{ -super (ctx, M_AttributeSearch_ID, trxName); -/** if (M_AttributeSearch_ID == 0) -{ -setM_AttributeSearch_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeSearch (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeSearch */ -public static final String Table_Name="M_AttributeSearch"; - -/** AD_Table_ID=564 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeSearch[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Attribute Search. -@param M_AttributeSearch_ID Common Search Attribute */ -public void setM_AttributeSearch_ID (int M_AttributeSearch_ID) -{ -if (M_AttributeSearch_ID < 1) throw new IllegalArgumentException ("M_AttributeSearch_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSearch_ID", Integer.valueOf(M_AttributeSearch_ID)); -} -/** Get Attribute Search. -@return Common Search Attribute */ -public int getM_AttributeSearch_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSearch_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSearch_ID */ -public static final String COLUMNNAME_M_AttributeSearch_ID = "M_AttributeSearch_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeSearch (Properties ctx, int M_AttributeSearch_ID, String trxName) + { + super (ctx, M_AttributeSearch_ID, trxName); + /** if (M_AttributeSearch_ID == 0) { setM_AttributeSearch_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_AttributeSearch (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeSearch[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Attribute Search. + @param M_AttributeSearch_ID + Common Search Attribute + */ + public void setM_AttributeSearch_ID (int M_AttributeSearch_ID) + { + if (M_AttributeSearch_ID < 1) + throw new IllegalArgumentException ("M_AttributeSearch_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSearch_ID, Integer.valueOf(M_AttributeSearch_ID)); + } + + /** Get Attribute Search. + @return Common Search Attribute + */ + public int getM_AttributeSearch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSearch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeSet.java b/base/src/org/compiere/model/X_M_AttributeSet.java index 7b96de5fa5..fa7b23260f 100644 --- a/base/src/org/compiere/model/X_M_AttributeSet.java +++ b/base/src/org/compiere/model/X_M_AttributeSet.java @@ -1,458 +1,537 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeSet - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeSet extends PO + +/** Generated Model for M_AttributeSet + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeSet extends PO implements I_M_AttributeSet, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeSet_ID id -@param trxName transaction -*/ -public X_M_AttributeSet (Properties ctx, int M_AttributeSet_ID, String trxName) -{ -super (ctx, M_AttributeSet_ID, trxName); -/** if (M_AttributeSet_ID == 0) -{ -setIsGuaranteeDate (false); -setIsGuaranteeDateMandatory (false); -setIsInstanceAttribute (false); -setIsLot (false); -setIsLotMandatory (false); -setIsSerNo (false); -setIsSerNoMandatory (false); -setM_AttributeSet_ID (0); -setMandatoryType (null); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeSet (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeSet */ -public static final String Table_Name="M_AttributeSet"; - -/** AD_Table_ID=560 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeSet[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Guarantee Days. -@param GuaranteeDays Number of days the product is guaranteed or available */ -public void setGuaranteeDays (int GuaranteeDays) -{ -set_Value ("GuaranteeDays", Integer.valueOf(GuaranteeDays)); -} -/** Get Guarantee Days. -@return Number of days the product is guaranteed or available */ -public int getGuaranteeDays() -{ -Integer ii = (Integer)get_Value("GuaranteeDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GuaranteeDays */ -public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; -/** Set Guarantee Date. -@param IsGuaranteeDate Product has Guarantee or Expiry Date */ -public void setIsGuaranteeDate (boolean IsGuaranteeDate) -{ -set_Value ("IsGuaranteeDate", Boolean.valueOf(IsGuaranteeDate)); -} -/** Get Guarantee Date. -@return Product has Guarantee or Expiry Date */ -public boolean isGuaranteeDate() -{ -Object oo = get_Value("IsGuaranteeDate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsGuaranteeDate */ -public static final String COLUMNNAME_IsGuaranteeDate = "IsGuaranteeDate"; -/** Set Mandatory Guarantee Date. -@param IsGuaranteeDateMandatory The entry of a Guarantee Date is mandatory when creating a Product Instance */ -public void setIsGuaranteeDateMandatory (boolean IsGuaranteeDateMandatory) -{ -set_Value ("IsGuaranteeDateMandatory", Boolean.valueOf(IsGuaranteeDateMandatory)); -} -/** Get Mandatory Guarantee Date. -@return The entry of a Guarantee Date is mandatory when creating a Product Instance */ -public boolean isGuaranteeDateMandatory() -{ -Object oo = get_Value("IsGuaranteeDateMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsGuaranteeDateMandatory */ -public static final String COLUMNNAME_IsGuaranteeDateMandatory = "IsGuaranteeDateMandatory"; -/** Set Instance Attribute. -@param IsInstanceAttribute The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) */ -public void setIsInstanceAttribute (boolean IsInstanceAttribute) -{ -set_Value ("IsInstanceAttribute", Boolean.valueOf(IsInstanceAttribute)); -} -/** Get Instance Attribute. -@return The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) */ -public boolean isInstanceAttribute() -{ -Object oo = get_Value("IsInstanceAttribute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInstanceAttribute */ -public static final String COLUMNNAME_IsInstanceAttribute = "IsInstanceAttribute"; -/** Set Lot. -@param IsLot The product instances have a Lot Number */ -public void setIsLot (boolean IsLot) -{ -set_Value ("IsLot", Boolean.valueOf(IsLot)); -} -/** Get Lot. -@return The product instances have a Lot Number */ -public boolean isLot() -{ -Object oo = get_Value("IsLot"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsLot */ -public static final String COLUMNNAME_IsLot = "IsLot"; -/** Set Mandatory Lot. -@param IsLotMandatory The entry of Lot info is mandatory when creating a Product Instance */ -public void setIsLotMandatory (boolean IsLotMandatory) -{ -set_Value ("IsLotMandatory", Boolean.valueOf(IsLotMandatory)); -} -/** Get Mandatory Lot. -@return The entry of Lot info is mandatory when creating a Product Instance */ -public boolean isLotMandatory() -{ -Object oo = get_Value("IsLotMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsLotMandatory */ -public static final String COLUMNNAME_IsLotMandatory = "IsLotMandatory"; -/** Set Serial No. -@param IsSerNo The product instances have Serial Numbers */ -public void setIsSerNo (boolean IsSerNo) -{ -set_Value ("IsSerNo", Boolean.valueOf(IsSerNo)); -} -/** Get Serial No. -@return The product instances have Serial Numbers */ -public boolean isSerNo() -{ -Object oo = get_Value("IsSerNo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSerNo */ -public static final String COLUMNNAME_IsSerNo = "IsSerNo"; -/** Set Mandatory Serial No. -@param IsSerNoMandatory The entry of a Serial No is mandatory when creating a Product Instance */ -public void setIsSerNoMandatory (boolean IsSerNoMandatory) -{ -set_Value ("IsSerNoMandatory", Boolean.valueOf(IsSerNoMandatory)); -} -/** Get Mandatory Serial No. -@return The entry of a Serial No is mandatory when creating a Product Instance */ -public boolean isSerNoMandatory() -{ -Object oo = get_Value("IsSerNoMandatory"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSerNoMandatory */ -public static final String COLUMNNAME_IsSerNoMandatory = "IsSerNoMandatory"; -/** Set Lot Char End Overwrite. -@param LotCharEOverwrite Lot/Batch End Indicator overwrite - default » */ -public void setLotCharEOverwrite (String LotCharEOverwrite) -{ -if (LotCharEOverwrite != null && LotCharEOverwrite.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LotCharEOverwrite = LotCharEOverwrite.substring(0,0); -} -set_Value ("LotCharEOverwrite", LotCharEOverwrite); -} -/** Get Lot Char End Overwrite. -@return Lot/Batch End Indicator overwrite - default » */ -public String getLotCharEOverwrite() -{ -return (String)get_Value("LotCharEOverwrite"); -} -/** Column name LotCharEOverwrite */ -public static final String COLUMNNAME_LotCharEOverwrite = "LotCharEOverwrite"; -/** Set Lot Char Start Overwrite. -@param LotCharSOverwrite Lot/Batch Start Indicator overwrite - default « */ -public void setLotCharSOverwrite (String LotCharSOverwrite) -{ -if (LotCharSOverwrite != null && LotCharSOverwrite.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LotCharSOverwrite = LotCharSOverwrite.substring(0,0); -} -set_Value ("LotCharSOverwrite", LotCharSOverwrite); -} -/** Get Lot Char Start Overwrite. -@return Lot/Batch Start Indicator overwrite - default « */ -public String getLotCharSOverwrite() -{ -return (String)get_Value("LotCharSOverwrite"); -} -/** Column name LotCharSOverwrite */ -public static final String COLUMNNAME_LotCharSOverwrite = "LotCharSOverwrite"; -/** Set Attribute Set. -@param M_AttributeSet_ID Product Attribute Set */ -public void setM_AttributeSet_ID (int M_AttributeSet_ID) -{ -if (M_AttributeSet_ID < 0) throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSet_ID", Integer.valueOf(M_AttributeSet_ID)); -} -/** Get Attribute Set. -@return Product Attribute Set */ -public int getM_AttributeSet_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSet_ID */ -public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; -/** Set Lot Control. -@param M_LotCtl_ID Product Lot Control */ -public void setM_LotCtl_ID (int M_LotCtl_ID) -{ -if (M_LotCtl_ID <= 0) set_Value ("M_LotCtl_ID", null); - else -set_Value ("M_LotCtl_ID", Integer.valueOf(M_LotCtl_ID)); -} -/** Get Lot Control. -@return Product Lot Control */ -public int getM_LotCtl_ID() -{ -Integer ii = (Integer)get_Value("M_LotCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_LotCtl_ID */ -public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; -/** Set Serial No Control. -@param M_SerNoCtl_ID Product Serial Number Control */ -public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) -{ -if (M_SerNoCtl_ID <= 0) set_Value ("M_SerNoCtl_ID", null); - else -set_Value ("M_SerNoCtl_ID", Integer.valueOf(M_SerNoCtl_ID)); -} -/** Get Serial No Control. -@return Product Serial Number Control */ -public int getM_SerNoCtl_ID() -{ -Integer ii = (Integer)get_Value("M_SerNoCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_SerNoCtl_ID */ -public static final String COLUMNNAME_M_SerNoCtl_ID = "M_SerNoCtl_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeSet (Properties ctx, int M_AttributeSet_ID, String trxName) + { + super (ctx, M_AttributeSet_ID, trxName); + /** if (M_AttributeSet_ID == 0) { setIsGuaranteeDate (false); + setIsGuaranteeDateMandatory (false); + setIsInstanceAttribute (false); + setIsLot (false); + setIsLotMandatory (false); + setIsSerNo (false); + setIsSerNoMandatory (false); + setM_AttributeSet_ID (0); + setMandatoryType (null); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_AttributeSet (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeSet[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Guarantee Days. + @param GuaranteeDays + Number of days the product is guaranteed or available + */ + public void setGuaranteeDays (int GuaranteeDays) + { + set_Value (COLUMNNAME_GuaranteeDays, Integer.valueOf(GuaranteeDays)); + } + + /** Get Guarantee Days. + @return Number of days the product is guaranteed or available + */ + public int getGuaranteeDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Guarantee Date. + @param IsGuaranteeDate + Product has Guarantee or Expiry Date + */ + public void setIsGuaranteeDate (boolean IsGuaranteeDate) + { + set_Value (COLUMNNAME_IsGuaranteeDate, Boolean.valueOf(IsGuaranteeDate)); + } + + /** Get Guarantee Date. + @return Product has Guarantee or Expiry Date + */ + public boolean isGuaranteeDate () + { + Object oo = get_Value(COLUMNNAME_IsGuaranteeDate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory Guarantee Date. + @param IsGuaranteeDateMandatory + The entry of a Guarantee Date is mandatory when creating a Product Instance + */ + public void setIsGuaranteeDateMandatory (boolean IsGuaranteeDateMandatory) + { + set_Value (COLUMNNAME_IsGuaranteeDateMandatory, Boolean.valueOf(IsGuaranteeDateMandatory)); + } + + /** Get Mandatory Guarantee Date. + @return The entry of a Guarantee Date is mandatory when creating a Product Instance + */ + public boolean isGuaranteeDateMandatory () + { + Object oo = get_Value(COLUMNNAME_IsGuaranteeDateMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Instance Attribute. + @param IsInstanceAttribute + The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public void setIsInstanceAttribute (boolean IsInstanceAttribute) + { + set_Value (COLUMNNAME_IsInstanceAttribute, Boolean.valueOf(IsInstanceAttribute)); + } + + /** Get Instance Attribute. + @return The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public boolean isInstanceAttribute () + { + Object oo = get_Value(COLUMNNAME_IsInstanceAttribute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Lot. + @param IsLot + The product instances have a Lot Number + */ + public void setIsLot (boolean IsLot) + { + set_Value (COLUMNNAME_IsLot, Boolean.valueOf(IsLot)); + } + + /** Get Lot. + @return The product instances have a Lot Number + */ + public boolean isLot () + { + Object oo = get_Value(COLUMNNAME_IsLot); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory Lot. + @param IsLotMandatory + The entry of Lot info is mandatory when creating a Product Instance + */ + public void setIsLotMandatory (boolean IsLotMandatory) + { + set_Value (COLUMNNAME_IsLotMandatory, Boolean.valueOf(IsLotMandatory)); + } + + /** Get Mandatory Lot. + @return The entry of Lot info is mandatory when creating a Product Instance + */ + public boolean isLotMandatory () + { + Object oo = get_Value(COLUMNNAME_IsLotMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Serial No. + @param IsSerNo + The product instances have Serial Numbers + */ + public void setIsSerNo (boolean IsSerNo) + { + set_Value (COLUMNNAME_IsSerNo, Boolean.valueOf(IsSerNo)); + } + + /** Get Serial No. + @return The product instances have Serial Numbers + */ + public boolean isSerNo () + { + Object oo = get_Value(COLUMNNAME_IsSerNo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Mandatory Serial No. + @param IsSerNoMandatory + The entry of a Serial No is mandatory when creating a Product Instance + */ + public void setIsSerNoMandatory (boolean IsSerNoMandatory) + { + set_Value (COLUMNNAME_IsSerNoMandatory, Boolean.valueOf(IsSerNoMandatory)); + } + + /** Get Mandatory Serial No. + @return The entry of a Serial No is mandatory when creating a Product Instance + */ + public boolean isSerNoMandatory () + { + Object oo = get_Value(COLUMNNAME_IsSerNoMandatory); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Lot Char End Overwrite. + @param LotCharEOverwrite + Lot/Batch End Indicator overwrite - default » + */ + public void setLotCharEOverwrite (String LotCharEOverwrite) + { + if (LotCharEOverwrite != null && LotCharEOverwrite.length() > 1) + { + log.warning("Length > 1 - truncated"); + LotCharEOverwrite = LotCharEOverwrite.substring(0, 0); + } + set_Value (COLUMNNAME_LotCharEOverwrite, LotCharEOverwrite); + } + + /** Get Lot Char End Overwrite. + @return Lot/Batch End Indicator overwrite - default » + */ + public String getLotCharEOverwrite () + { + return (String)get_Value(COLUMNNAME_LotCharEOverwrite); + } + + /** Set Lot Char Start Overwrite. + @param LotCharSOverwrite + Lot/Batch Start Indicator overwrite - default « + */ + public void setLotCharSOverwrite (String LotCharSOverwrite) + { + if (LotCharSOverwrite != null && LotCharSOverwrite.length() > 1) + { + log.warning("Length > 1 - truncated"); + LotCharSOverwrite = LotCharSOverwrite.substring(0, 0); + } + set_Value (COLUMNNAME_LotCharSOverwrite, LotCharSOverwrite); + } + + /** Get Lot Char Start Overwrite. + @return Lot/Batch Start Indicator overwrite - default « + */ + public String getLotCharSOverwrite () + { + return (String)get_Value(COLUMNNAME_LotCharSOverwrite); + } + + /** Set Attribute Set. + @param M_AttributeSet_ID + Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID) + { + if (M_AttributeSet_ID < 0) + throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + } + + /** Get Attribute Set. + @return Product Attribute Set + */ + public int getM_AttributeSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_LotCtl getI_M_LotCtl() throws Exception + { + 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 e; + } + return result; + } + + /** Set Lot Control. + @param M_LotCtl_ID + Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID) + { + if (M_LotCtl_ID <= 0) set_Value (COLUMNNAME_M_LotCtl_ID, null); + else + set_Value (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); + } + + /** Get Lot Control. + @return Product Lot Control + */ + public int getM_LotCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LotCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_SerNoCtl getI_M_SerNoCtl() throws Exception + { + 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 e; + } + return result; + } + + /** Set Serial No Control. + @param M_SerNoCtl_ID + Product Serial Number Control + */ + public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) + { + if (M_SerNoCtl_ID <= 0) set_Value (COLUMNNAME_M_SerNoCtl_ID, null); + else + set_Value (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); + } + + /** Get Serial No Control. + @return Product Serial Number Control + */ + public int getM_SerNoCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_SerNoCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** MandatoryType AD_Reference_ID=324 */ -public static final int MANDATORYTYPE_AD_Reference_ID=324; -/** Not Mandatary = N */ -public static final String MANDATORYTYPE_NotMandatary = "N"; -/** When Shipping = S */ -public static final String MANDATORYTYPE_WhenShipping = "S"; -/** Always Mandatory = Y */ +public static final int MANDATORYTYPE_AD_Reference_ID=324;/** Not Mandatary = N */ +public static final String MANDATORYTYPE_NotMandatary = "N";/** When Shipping = S */ +public static final String MANDATORYTYPE_WhenShipping = "S";/** Always Mandatory = Y */ public static final String MANDATORYTYPE_AlwaysMandatory = "Y"; -/** Set Mandatory Type. -@param MandatoryType The specification of a Product Attribute Instance is mandatory */ -public void setMandatoryType (String MandatoryType) -{ -if (MandatoryType == null) throw new IllegalArgumentException ("MandatoryType is mandatory"); -if (MandatoryType.equals("N") || MandatoryType.equals("S") || MandatoryType.equals("Y")); - else throw new IllegalArgumentException ("MandatoryType Invalid value - " + MandatoryType + " - Reference_ID=324 - N - S - Y"); -if (MandatoryType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MandatoryType = MandatoryType.substring(0,0); -} -set_Value ("MandatoryType", MandatoryType); -} -/** Get Mandatory Type. -@return The specification of a Product Attribute Instance is mandatory */ -public String getMandatoryType() -{ -return (String)get_Value("MandatoryType"); -} -/** Column name MandatoryType */ -public static final String COLUMNNAME_MandatoryType = "MandatoryType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set SerNo Char End Overwrite. -@param SerNoCharEOverwrite Serial Number End Indicator overwrite - default empty */ -public void setSerNoCharEOverwrite (String SerNoCharEOverwrite) -{ -if (SerNoCharEOverwrite != null && SerNoCharEOverwrite.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SerNoCharEOverwrite = SerNoCharEOverwrite.substring(0,0); -} -set_Value ("SerNoCharEOverwrite", SerNoCharEOverwrite); -} -/** Get SerNo Char End Overwrite. -@return Serial Number End Indicator overwrite - default empty */ -public String getSerNoCharEOverwrite() -{ -return (String)get_Value("SerNoCharEOverwrite"); -} -/** Column name SerNoCharEOverwrite */ -public static final String COLUMNNAME_SerNoCharEOverwrite = "SerNoCharEOverwrite"; -/** Set SerNo Char Start Overwrite. -@param SerNoCharSOverwrite Serial Number Start Indicator overwrite - default # */ -public void setSerNoCharSOverwrite (String SerNoCharSOverwrite) -{ -if (SerNoCharSOverwrite != null && SerNoCharSOverwrite.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SerNoCharSOverwrite = SerNoCharSOverwrite.substring(0,0); -} -set_Value ("SerNoCharSOverwrite", SerNoCharSOverwrite); -} -/** Get SerNo Char Start Overwrite. -@return Serial Number Start Indicator overwrite - default # */ -public String getSerNoCharSOverwrite() -{ -return (String)get_Value("SerNoCharSOverwrite"); -} -/** Column name SerNoCharSOverwrite */ -public static final String COLUMNNAME_SerNoCharSOverwrite = "SerNoCharSOverwrite"; -} + /** Set Mandatory Type. + @param MandatoryType + The specification of a Product Attribute Instance is mandatory + */ + public void setMandatoryType (String MandatoryType) + { +if (MandatoryType == null) throw new IllegalArgumentException ("MandatoryType is mandatory");if (MandatoryType.equals("N") || MandatoryType.equals("S") || MandatoryType.equals("Y")); else throw new IllegalArgumentException ("MandatoryType Invalid value - " + MandatoryType + " - Reference_ID=324 - N - S - Y"); if (MandatoryType.length() > 1) + { + log.warning("Length > 1 - truncated"); + MandatoryType = MandatoryType.substring(0, 0); + } + set_Value (COLUMNNAME_MandatoryType, MandatoryType); + } + + /** Get Mandatory Type. + @return The specification of a Product Attribute Instance is mandatory + */ + public String getMandatoryType () + { + return (String)get_Value(COLUMNNAME_MandatoryType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set SerNo Char End Overwrite. + @param SerNoCharEOverwrite + Serial Number End Indicator overwrite - default empty + */ + public void setSerNoCharEOverwrite (String SerNoCharEOverwrite) + { + if (SerNoCharEOverwrite != null && SerNoCharEOverwrite.length() > 1) + { + log.warning("Length > 1 - truncated"); + SerNoCharEOverwrite = SerNoCharEOverwrite.substring(0, 0); + } + set_Value (COLUMNNAME_SerNoCharEOverwrite, SerNoCharEOverwrite); + } + + /** Get SerNo Char End Overwrite. + @return Serial Number End Indicator overwrite - default empty + */ + public String getSerNoCharEOverwrite () + { + return (String)get_Value(COLUMNNAME_SerNoCharEOverwrite); + } + + /** Set SerNo Char Start Overwrite. + @param SerNoCharSOverwrite + Serial Number Start Indicator overwrite - default # + */ + public void setSerNoCharSOverwrite (String SerNoCharSOverwrite) + { + if (SerNoCharSOverwrite != null && SerNoCharSOverwrite.length() > 1) + { + log.warning("Length > 1 - truncated"); + SerNoCharSOverwrite = SerNoCharSOverwrite.substring(0, 0); + } + set_Value (COLUMNNAME_SerNoCharSOverwrite, SerNoCharSOverwrite); + } + + /** Get SerNo Char Start Overwrite. + @return Serial Number Start Indicator overwrite - default # + */ + public String getSerNoCharSOverwrite () + { + return (String)get_Value(COLUMNNAME_SerNoCharSOverwrite); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeSetExclude.java b/base/src/org/compiere/model/X_M_AttributeSetExclude.java index 84806029e3..52ab6cb171 100644 --- a/base/src/org/compiere/model/X_M_AttributeSetExclude.java +++ b/base/src/org/compiere/model/X_M_AttributeSetExclude.java @@ -1,162 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeSetExclude - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeSetExclude extends PO + +/** Generated Model for M_AttributeSetExclude + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeSetExclude extends PO implements I_M_AttributeSetExclude, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeSetExclude_ID id -@param trxName transaction -*/ -public X_M_AttributeSetExclude (Properties ctx, int M_AttributeSetExclude_ID, String trxName) -{ -super (ctx, M_AttributeSetExclude_ID, trxName); -/** if (M_AttributeSetExclude_ID == 0) -{ -setAD_Table_ID (0); -setIsSOTrx (false); -setM_AttributeSetExclude_ID (0); -setM_AttributeSet_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeSetExclude (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeSetExclude */ -public static final String Table_Name="M_AttributeSetExclude"; - -/** AD_Table_ID=809 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeSetExclude[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Exclude Attribute Set. -@param M_AttributeSetExclude_ID Exclude the ability to enter Attribute Sets */ -public void setM_AttributeSetExclude_ID (int M_AttributeSetExclude_ID) -{ -if (M_AttributeSetExclude_ID < 1) throw new IllegalArgumentException ("M_AttributeSetExclude_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetExclude_ID", Integer.valueOf(M_AttributeSetExclude_ID)); -} -/** Get Exclude Attribute Set. -@return Exclude the ability to enter Attribute Sets */ -public int getM_AttributeSetExclude_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetExclude_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetExclude_ID */ -public static final String COLUMNNAME_M_AttributeSetExclude_ID = "M_AttributeSetExclude_ID"; -/** Set Attribute Set. -@param M_AttributeSet_ID Product Attribute Set */ -public void setM_AttributeSet_ID (int M_AttributeSet_ID) -{ -if (M_AttributeSet_ID < 0) throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSet_ID", Integer.valueOf(M_AttributeSet_ID)); -} -/** Get Attribute Set. -@return Product Attribute Set */ -public int getM_AttributeSet_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSet_ID */ -public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeSetExclude (Properties ctx, int M_AttributeSetExclude_ID, String trxName) + { + super (ctx, M_AttributeSetExclude_ID, trxName); + /** if (M_AttributeSetExclude_ID == 0) { setAD_Table_ID (0); + setIsSOTrx (false); + setM_AttributeSetExclude_ID (0); + setM_AttributeSet_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_AttributeSetExclude (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeSetExclude[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude Attribute Set. + @param M_AttributeSetExclude_ID + Exclude the ability to enter Attribute Sets + */ + public void setM_AttributeSetExclude_ID (int M_AttributeSetExclude_ID) + { + if (M_AttributeSetExclude_ID < 1) + throw new IllegalArgumentException ("M_AttributeSetExclude_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetExclude_ID, Integer.valueOf(M_AttributeSetExclude_ID)); + } + + /** Get Exclude Attribute Set. + @return Exclude the ability to enter Attribute Sets + */ + public int getM_AttributeSetExclude_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetExclude_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute Set. + @param M_AttributeSet_ID + Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID) + { + if (M_AttributeSet_ID < 0) + throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + } + + /** Get Attribute Set. + @return Product Attribute Set + */ + public int getM_AttributeSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeSetInstance.java b/base/src/org/compiere/model/X_M_AttributeSetInstance.java index 305e6f51bd..1d2fff65f5 100644 --- a/base/src/org/compiere/model/X_M_AttributeSetInstance.java +++ b/base/src/org/compiere/model/X_M_AttributeSetInstance.java @@ -1,218 +1,247 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeSetInstance - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeSetInstance extends PO + +/** Generated Model for M_AttributeSetInstance + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeSetInstance extends PO implements I_M_AttributeSetInstance, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeSetInstance_ID id -@param trxName transaction -*/ -public X_M_AttributeSetInstance (Properties ctx, int M_AttributeSetInstance_ID, String trxName) -{ -super (ctx, M_AttributeSetInstance_ID, trxName); -/** if (M_AttributeSetInstance_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_AttributeSet_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeSetInstance (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeSetInstance */ -public static final String Table_Name="M_AttributeSetInstance"; - -/** AD_Table_ID=559 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeSetInstance[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Guarantee Date. -@param GuaranteeDate Date when guarantee expires */ -public void setGuaranteeDate (Timestamp GuaranteeDate) -{ -set_Value ("GuaranteeDate", GuaranteeDate); -} -/** Get Guarantee Date. -@return Date when guarantee expires */ -public Timestamp getGuaranteeDate() -{ -return (Timestamp)get_Value("GuaranteeDate"); -} -/** Column name GuaranteeDate */ -public static final String COLUMNNAME_GuaranteeDate = "GuaranteeDate"; -/** Set Lot No. -@param Lot Lot number (alphanumeric) */ -public void setLot (String Lot) -{ -if (Lot != null && Lot.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Lot = Lot.substring(0,39); -} -set_Value ("Lot", Lot); -} -/** Get Lot No. -@return Lot number (alphanumeric) */ -public String getLot() -{ -return (String)get_Value("Lot"); -} -/** Column name Lot */ -public static final String COLUMNNAME_Lot = "Lot"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeSetInstance_ID())); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Attribute Set. -@param M_AttributeSet_ID Product Attribute Set */ -public void setM_AttributeSet_ID (int M_AttributeSet_ID) -{ -if (M_AttributeSet_ID < 0) throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); -set_Value ("M_AttributeSet_ID", Integer.valueOf(M_AttributeSet_ID)); -} -/** Get Attribute Set. -@return Product Attribute Set */ -public int getM_AttributeSet_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSet_ID */ -public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; -/** Set Lot. -@param M_Lot_ID Product Lot Definition */ -public void setM_Lot_ID (int M_Lot_ID) -{ -if (M_Lot_ID <= 0) set_Value ("M_Lot_ID", null); - else -set_Value ("M_Lot_ID", Integer.valueOf(M_Lot_ID)); -} -/** Get Lot. -@return Product Lot Definition */ -public int getM_Lot_ID() -{ -Integer ii = (Integer)get_Value("M_Lot_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Lot_ID */ -public static final String COLUMNNAME_M_Lot_ID = "M_Lot_ID"; -/** Set Serial No. -@param SerNo Product Serial Number */ -public void setSerNo (String SerNo) -{ -if (SerNo != null && SerNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -SerNo = SerNo.substring(0,39); -} -set_Value ("SerNo", SerNo); -} -/** Get Serial No. -@return Product Serial Number */ -public String getSerNo() -{ -return (String)get_Value("SerNo"); -} -/** Column name SerNo */ -public static final String COLUMNNAME_SerNo = "SerNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeSetInstance (Properties ctx, int M_AttributeSetInstance_ID, String trxName) + { + super (ctx, M_AttributeSetInstance_ID, trxName); + /** if (M_AttributeSetInstance_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_AttributeSet_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_AttributeSetInstance (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeSetInstance[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Guarantee Date. + @param GuaranteeDate + Date when guarantee expires + */ + public void setGuaranteeDate (Timestamp GuaranteeDate) + { + set_Value (COLUMNNAME_GuaranteeDate, GuaranteeDate); + } + + /** Get Guarantee Date. + @return Date when guarantee expires + */ + public Timestamp getGuaranteeDate () + { + return (Timestamp)get_Value(COLUMNNAME_GuaranteeDate); + } + + /** Set Lot No. + @param Lot + Lot number (alphanumeric) + */ + public void setLot (String Lot) + { + if (Lot != null && Lot.length() > 40) + { + log.warning("Length > 40 - truncated"); + Lot = Lot.substring(0, 39); + } + set_Value (COLUMNNAME_Lot, Lot); + } + + /** Get Lot No. + @return Lot number (alphanumeric) + */ + public String getLot () + { + return (String)get_Value(COLUMNNAME_Lot); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeSetInstance_ID())); + } + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute Set. + @param M_AttributeSet_ID + Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID) + { + if (M_AttributeSet_ID < 0) + throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + } + + /** Get Attribute Set. + @return Product Attribute Set + */ + public int getM_AttributeSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Lot. + @param M_Lot_ID + Product Lot Definition + */ + public void setM_Lot_ID (int M_Lot_ID) + { + if (M_Lot_ID <= 0) set_Value (COLUMNNAME_M_Lot_ID, null); + else + set_Value (COLUMNNAME_M_Lot_ID, Integer.valueOf(M_Lot_ID)); + } + + /** Get Lot. + @return Product Lot Definition + */ + public int getM_Lot_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Lot_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Serial No. + @param SerNo + Product Serial Number + */ + public void setSerNo (String SerNo) + { + if (SerNo != null && SerNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + SerNo = SerNo.substring(0, 39); + } + set_Value (COLUMNNAME_SerNo, SerNo); + } + + /** Get Serial No. + @return Product Serial Number + */ + public String getSerNo () + { + return (String)get_Value(COLUMNNAME_SerNo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeUse.java b/base/src/org/compiere/model/X_M_AttributeUse.java index 6690671d13..159311b373 100644 --- a/base/src/org/compiere/model/X_M_AttributeUse.java +++ b/base/src/org/compiere/model/X_M_AttributeUse.java @@ -1,148 +1,180 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeUse - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeUse extends PO + +/** Generated Model for M_AttributeUse + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeUse extends PO implements I_M_AttributeUse, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeUse_ID id -@param trxName transaction -*/ -public X_M_AttributeUse (Properties ctx, int M_AttributeUse_ID, String trxName) -{ -super (ctx, M_AttributeUse_ID, trxName); -/** if (M_AttributeUse_ID == 0) -{ -setM_AttributeSet_ID (0); -setM_Attribute_ID (0); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_AttributeUse WHERE M_AttributeSet_ID=@M_AttributeSet_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeUse (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeUse */ -public static final String Table_Name="M_AttributeUse"; - -/** AD_Table_ID=563 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeUse[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attribute Set. -@param M_AttributeSet_ID Product Attribute Set */ -public void setM_AttributeSet_ID (int M_AttributeSet_ID) -{ -if (M_AttributeSet_ID < 0) throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSet_ID", Integer.valueOf(M_AttributeSet_ID)); -} -/** Get Attribute Set. -@return Product Attribute Set */ -public int getM_AttributeSet_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeSet_ID())); -} -/** Column name M_AttributeSet_ID */ -public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; -/** Set Attribute. -@param M_Attribute_ID Product Attribute */ -public void setM_Attribute_ID (int M_Attribute_ID) -{ -if (M_Attribute_ID < 1) throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); -set_ValueNoCheck ("M_Attribute_ID", Integer.valueOf(M_Attribute_ID)); -} -/** Get Attribute. -@return Product Attribute */ -public int getM_Attribute_ID() -{ -Integer ii = (Integer)get_Value("M_Attribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Attribute_ID */ -public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeUse (Properties ctx, int M_AttributeUse_ID, String trxName) + { + super (ctx, M_AttributeUse_ID, trxName); + /** if (M_AttributeUse_ID == 0) { setM_AttributeSet_ID (0); + setM_Attribute_ID (0); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_AttributeUse WHERE M_AttributeSet_ID=@M_AttributeSet_ID@ +} */ + } + + /** Load Constructor */ + public X_M_AttributeUse (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeUse[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute Set. + @param M_AttributeSet_ID + Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID) + { + if (M_AttributeSet_ID < 0) + throw new IllegalArgumentException ("M_AttributeSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + } + + /** Get Attribute Set. + @return Product Attribute Set + */ + public int getM_AttributeSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_AttributeSet_ID())); + } + + public I_M_Attribute getI_M_Attribute() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute. + @param M_Attribute_ID + Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID) + { + if (M_Attribute_ID < 1) + throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + } + + /** Get Attribute. + @return Product Attribute + */ + public int getM_Attribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Attribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_AttributeValue.java b/base/src/org/compiere/model/X_M_AttributeValue.java index b2bd1151e0..035ffb0ae4 100644 --- a/base/src/org/compiere/model/X_M_AttributeValue.java +++ b/base/src/org/compiere/model/X_M_AttributeValue.java @@ -1,190 +1,214 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_AttributeValue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_AttributeValue extends PO + +/** Generated Model for M_AttributeValue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_AttributeValue extends PO implements I_M_AttributeValue, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_AttributeValue_ID id -@param trxName transaction -*/ -public X_M_AttributeValue (Properties ctx, int M_AttributeValue_ID, String trxName) -{ -super (ctx, M_AttributeValue_ID, trxName); -/** if (M_AttributeValue_ID == 0) -{ -setM_AttributeValue_ID (0); -setM_Attribute_ID (0); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_AttributeValue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_AttributeValue */ -public static final String Table_Name="M_AttributeValue"; - -/** AD_Table_ID=558 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_AttributeValue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Attribute Value. -@param M_AttributeValue_ID Product Attribute Value */ -public void setM_AttributeValue_ID (int M_AttributeValue_ID) -{ -if (M_AttributeValue_ID < 1) throw new IllegalArgumentException ("M_AttributeValue_ID is mandatory."); -set_ValueNoCheck ("M_AttributeValue_ID", Integer.valueOf(M_AttributeValue_ID)); -} -/** Get Attribute Value. -@return Product Attribute Value */ -public int getM_AttributeValue_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeValue_ID */ -public static final String COLUMNNAME_M_AttributeValue_ID = "M_AttributeValue_ID"; -/** Set Attribute. -@param M_Attribute_ID Product Attribute */ -public void setM_Attribute_ID (int M_Attribute_ID) -{ -if (M_Attribute_ID < 1) throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); -set_ValueNoCheck ("M_Attribute_ID", Integer.valueOf(M_Attribute_ID)); -} -/** Get Attribute. -@return Product Attribute */ -public int getM_Attribute_ID() -{ -Integer ii = (Integer)get_Value("M_Attribute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Attribute_ID */ -public static final String COLUMNNAME_M_Attribute_ID = "M_Attribute_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_AttributeValue (Properties ctx, int M_AttributeValue_ID, String trxName) + { + super (ctx, M_AttributeValue_ID, trxName); + /** if (M_AttributeValue_ID == 0) { setM_AttributeValue_ID (0); + setM_Attribute_ID (0); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_M_AttributeValue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_AttributeValue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Attribute Value. + @param M_AttributeValue_ID + Product Attribute Value + */ + public void setM_AttributeValue_ID (int M_AttributeValue_ID) + { + if (M_AttributeValue_ID < 1) + throw new IllegalArgumentException ("M_AttributeValue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeValue_ID, Integer.valueOf(M_AttributeValue_ID)); + } + + /** Get Attribute Value. + @return Product Attribute Value + */ + public int getM_AttributeValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Attribute getI_M_Attribute() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute. + @param M_Attribute_ID + Product Attribute + */ + public void setM_Attribute_ID (int M_Attribute_ID) + { + if (M_Attribute_ID < 1) + throw new IllegalArgumentException ("M_Attribute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Attribute_ID, Integer.valueOf(M_Attribute_ID)); + } + + /** Get Attribute. + @return Product Attribute + */ + public int getM_Attribute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Attribute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_BOM.java b/base/src/org/compiere/model/X_M_BOM.java index 99bc8108f6..8fb2d589cc 100644 --- a/base/src/org/compiere/model/X_M_BOM.java +++ b/base/src/org/compiere/model/X_M_BOM.java @@ -1,300 +1,317 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_BOM - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_BOM extends PO + +/** Generated Model for M_BOM + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_BOM extends PO implements I_M_BOM, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_BOM_ID id -@param trxName transaction -*/ -public X_M_BOM (Properties ctx, int M_BOM_ID, String trxName) -{ -super (ctx, M_BOM_ID, trxName); -/** if (M_BOM_ID == 0) -{ -setBOMType (null); // A -setBOMUse (null); // A -setM_BOM_ID (0); -setM_Product_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_BOM (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_BOM */ -public static final String Table_Name="M_BOM"; - -/** AD_Table_ID=798 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_BOM[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_BOM (Properties ctx, int M_BOM_ID, String trxName) + { + super (ctx, M_BOM_ID, trxName); + /** if (M_BOM_ID == 0) { setBOMType (null); +// A + setBOMUse (null); +// A + setM_BOM_ID (0); + setM_Product_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_BOM (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_BOM[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** BOMType AD_Reference_ID=347 */ -public static final int BOMTYPE_AD_Reference_ID=347; -/** Current Active = A */ -public static final String BOMTYPE_CurrentActive = "A"; -/** Future = F */ -public static final String BOMTYPE_Future = "F"; -/** Maintenance = M */ -public static final String BOMTYPE_Maintenance = "M"; -/** Make-To-Order = O */ -public static final String BOMTYPE_Make_To_Order = "O"; -/** Previous = P */ -public static final String BOMTYPE_Previous = "P"; -/** Repair = R */ -public static final String BOMTYPE_Repair = "R"; -/** Previous, Spare = S */ +public static final int BOMTYPE_AD_Reference_ID=347;/** Current Active = A */ +public static final String BOMTYPE_CurrentActive = "A";/** Future = F */ +public static final String BOMTYPE_Future = "F";/** Maintenance = M */ +public static final String BOMTYPE_Maintenance = "M";/** Make-To-Order = O */ +public static final String BOMTYPE_Make_To_Order = "O";/** Previous = P */ +public static final String BOMTYPE_Previous = "P";/** Repair = R */ +public static final String BOMTYPE_Repair = "R";/** Previous, Spare = S */ public static final String BOMTYPE_PreviousSpare = "S"; -/** Set BOM Type. -@param BOMType Type of BOM */ -public void setBOMType (String BOMType) -{ -if (BOMType == null) throw new IllegalArgumentException ("BOMType is mandatory"); -if (BOMType.equals("A") || BOMType.equals("F") || BOMType.equals("M") || BOMType.equals("O") || BOMType.equals("P") || BOMType.equals("R") || BOMType.equals("S")); - else throw new IllegalArgumentException ("BOMType Invalid value - " + BOMType + " - Reference_ID=347 - A - F - M - O - P - R - S"); -if (BOMType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BOMType = BOMType.substring(0,0); -} -set_Value ("BOMType", BOMType); -} -/** Get BOM Type. -@return Type of BOM */ -public String getBOMType() -{ -return (String)get_Value("BOMType"); -} -/** Column name BOMType */ -public static final String COLUMNNAME_BOMType = "BOMType"; + /** Set BOM Type. + @param BOMType + Type of BOM + */ + public void setBOMType (String BOMType) + { +if (BOMType == null) throw new IllegalArgumentException ("BOMType is mandatory");if (BOMType.equals("A") || BOMType.equals("F") || BOMType.equals("M") || BOMType.equals("O") || BOMType.equals("P") || BOMType.equals("R") || BOMType.equals("S")); else throw new IllegalArgumentException ("BOMType Invalid value - " + BOMType + " - Reference_ID=347 - A - F - M - O - P - R - S"); if (BOMType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BOMType = BOMType.substring(0, 0); + } + set_Value (COLUMNNAME_BOMType, BOMType); + } + + /** Get BOM Type. + @return Type of BOM + */ + public String getBOMType () + { + return (String)get_Value(COLUMNNAME_BOMType); + } /** BOMUse AD_Reference_ID=348 */ -public static final int BOMUSE_AD_Reference_ID=348; -/** Master = A */ -public static final String BOMUSE_Master = "A"; -/** Engineering = E */ -public static final String BOMUSE_Engineering = "E"; -/** Manufacturing = M */ -public static final String BOMUSE_Manufacturing = "M"; -/** Planning = P */ +public static final int BOMUSE_AD_Reference_ID=348;/** Master = A */ +public static final String BOMUSE_Master = "A";/** Engineering = E */ +public static final String BOMUSE_Engineering = "E";/** Manufacturing = M */ +public static final String BOMUSE_Manufacturing = "M";/** Planning = P */ public static final String BOMUSE_Planning = "P"; -/** Set BOM Use. -@param BOMUse The use of the Bill of Material */ -public void setBOMUse (String BOMUse) -{ -if (BOMUse == null) throw new IllegalArgumentException ("BOMUse is mandatory"); -if (BOMUse.equals("A") || BOMUse.equals("E") || BOMUse.equals("M") || BOMUse.equals("P")); - else throw new IllegalArgumentException ("BOMUse Invalid value - " + BOMUse + " - Reference_ID=348 - A - E - M - P"); -if (BOMUse.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BOMUse = BOMUse.substring(0,0); -} -set_Value ("BOMUse", BOMUse); -} -/** Get BOM Use. -@return The use of the Bill of Material */ -public String getBOMUse() -{ -return (String)get_Value("BOMUse"); -} -/** Column name BOMUse */ -public static final String COLUMNNAME_BOMUse = "BOMUse"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set BOM. -@param M_BOM_ID Bill of Material */ -public void setM_BOM_ID (int M_BOM_ID) -{ -if (M_BOM_ID < 1) throw new IllegalArgumentException ("M_BOM_ID is mandatory."); -set_ValueNoCheck ("M_BOM_ID", Integer.valueOf(M_BOM_ID)); -} -/** Get BOM. -@return Bill of Material */ -public int getM_BOM_ID() -{ -Integer ii = (Integer)get_Value("M_BOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOM_ID */ -public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; -/** Set Change Notice. -@param M_ChangeNotice_ID Bill of Materials (Engineering) Change Notice (Version) */ -public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) -{ -if (M_ChangeNotice_ID <= 0) set_Value ("M_ChangeNotice_ID", null); - else -set_Value ("M_ChangeNotice_ID", Integer.valueOf(M_ChangeNotice_ID)); -} -/** Get Change Notice. -@return Bill of Materials (Engineering) Change Notice (Version) */ -public int getM_ChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeNotice_ID */ -public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set BOM Use. + @param BOMUse + The use of the Bill of Material + */ + public void setBOMUse (String BOMUse) + { +if (BOMUse == null) throw new IllegalArgumentException ("BOMUse is mandatory");if (BOMUse.equals("A") || BOMUse.equals("E") || BOMUse.equals("M") || BOMUse.equals("P")); else throw new IllegalArgumentException ("BOMUse Invalid value - " + BOMUse + " - Reference_ID=348 - A - E - M - P"); if (BOMUse.length() > 1) + { + log.warning("Length > 1 - truncated"); + BOMUse = BOMUse.substring(0, 0); + } + set_Value (COLUMNNAME_BOMUse, BOMUse); + } + + /** Get BOM Use. + @return The use of the Bill of Material + */ + public String getBOMUse () + { + return (String)get_Value(COLUMNNAME_BOMUse); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set BOM. + @param M_BOM_ID + Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID) + { + if (M_BOM_ID < 1) + throw new IllegalArgumentException ("M_BOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + } + + /** Get BOM. + @return Bill of Material + */ + public int getM_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception + { + 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 e; + } + return result; + } + + /** Set Change Notice. + @param M_ChangeNotice_ID + Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) + { + if (M_ChangeNotice_ID <= 0) set_Value (COLUMNNAME_M_ChangeNotice_ID, null); + else + set_Value (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + } + + /** Get Change Notice. + @return Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_BOMAlternative.java b/base/src/org/compiere/model/X_M_BOMAlternative.java index e7648e0b4a..a11728993c 100644 --- a/base/src/org/compiere/model/X_M_BOMAlternative.java +++ b/base/src/org/compiere/model/X_M_BOMAlternative.java @@ -1,169 +1,173 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_BOMAlternative - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_BOMAlternative extends PO + +/** Generated Model for M_BOMAlternative + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_BOMAlternative extends PO implements I_M_BOMAlternative, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_BOMAlternative_ID id -@param trxName transaction -*/ -public X_M_BOMAlternative (Properties ctx, int M_BOMAlternative_ID, String trxName) -{ -super (ctx, M_BOMAlternative_ID, trxName); -/** if (M_BOMAlternative_ID == 0) -{ -setM_BOMAlternative_ID (0); -setM_Product_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_BOMAlternative (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_BOMAlternative */ -public static final String Table_Name="M_BOMAlternative"; - -/** AD_Table_ID=795 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_BOMAlternative[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Alternative Group. -@param M_BOMAlternative_ID Product BOM Alternative Group */ -public void setM_BOMAlternative_ID (int M_BOMAlternative_ID) -{ -if (M_BOMAlternative_ID < 1) throw new IllegalArgumentException ("M_BOMAlternative_ID is mandatory."); -set_ValueNoCheck ("M_BOMAlternative_ID", Integer.valueOf(M_BOMAlternative_ID)); -} -/** Get Alternative Group. -@return Product BOM Alternative Group */ -public int getM_BOMAlternative_ID() -{ -Integer ii = (Integer)get_Value("M_BOMAlternative_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOMAlternative_ID */ -public static final String COLUMNNAME_M_BOMAlternative_ID = "M_BOMAlternative_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_BOMAlternative (Properties ctx, int M_BOMAlternative_ID, String trxName) + { + super (ctx, M_BOMAlternative_ID, trxName); + /** if (M_BOMAlternative_ID == 0) { setM_BOMAlternative_ID (0); + setM_Product_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_BOMAlternative (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_BOMAlternative[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Alternative Group. + @param M_BOMAlternative_ID + Product BOM Alternative Group + */ + public void setM_BOMAlternative_ID (int M_BOMAlternative_ID) + { + if (M_BOMAlternative_ID < 1) + throw new IllegalArgumentException ("M_BOMAlternative_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_BOMAlternative_ID, Integer.valueOf(M_BOMAlternative_ID)); + } + + /** Get Alternative Group. + @return Product BOM Alternative Group + */ + public int getM_BOMAlternative_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOMAlternative_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_BOMProduct.java b/base/src/org/compiere/model/X_M_BOMProduct.java index ba738d9715..ffd3434171 100644 --- a/base/src/org/compiere/model/X_M_BOMProduct.java +++ b/base/src/org/compiere/model/X_M_BOMProduct.java @@ -1,387 +1,489 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_BOMProduct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_BOMProduct extends PO + +/** Generated Model for M_BOMProduct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_BOMProduct extends PO implements I_M_BOMProduct, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_BOMProduct_ID id -@param trxName transaction -*/ -public X_M_BOMProduct (Properties ctx, int M_BOMProduct_ID, String trxName) -{ -super (ctx, M_BOMProduct_ID, trxName); -/** if (M_BOMProduct_ID == 0) -{ -setBOMProductType (null); // S -setBOMQty (Env.ZERO); // 1 -setIsPhantom (false); -setLeadTimeOffset (0); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_BOMProduct WHERE M_BOM_ID=@M_BOM_ID@ -setM_BOMProduct_ID (0); -setM_BOM_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_BOMProduct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_BOMProduct */ -public static final String Table_Name="M_BOMProduct"; - -/** AD_Table_ID=801 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_BOMProduct[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_BOMProduct (Properties ctx, int M_BOMProduct_ID, String trxName) + { + super (ctx, M_BOMProduct_ID, trxName); + /** if (M_BOMProduct_ID == 0) { setBOMProductType (null); +// S + setBOMQty (Env.ZERO); +// 1 + setIsPhantom (false); + setLeadTimeOffset (0); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_BOMProduct WHERE M_BOM_ID=@M_BOM_ID@ + setM_BOMProduct_ID (0); + setM_BOM_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_BOMProduct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_BOMProduct[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** BOMProductType AD_Reference_ID=349 */ -public static final int BOMPRODUCTTYPE_AD_Reference_ID=349; -/** Alternative = A */ -public static final String BOMPRODUCTTYPE_Alternative = "A"; -/** Alternative (Default) = D */ -public static final String BOMPRODUCTTYPE_AlternativeDefault = "D"; -/** Optional Product = O */ -public static final String BOMPRODUCTTYPE_OptionalProduct = "O"; -/** Standard Product = S */ -public static final String BOMPRODUCTTYPE_StandardProduct = "S"; -/** Outside Processing = X */ +public static final int BOMPRODUCTTYPE_AD_Reference_ID=349;/** Alternative = A */ +public static final String BOMPRODUCTTYPE_Alternative = "A";/** Alternative (Default) = D */ +public static final String BOMPRODUCTTYPE_AlternativeDefault = "D";/** Optional Product = O */ +public static final String BOMPRODUCTTYPE_OptionalProduct = "O";/** Standard Product = S */ +public static final String BOMPRODUCTTYPE_StandardProduct = "S";/** Outside Processing = X */ public static final String BOMPRODUCTTYPE_OutsideProcessing = "X"; -/** Set Component Type. -@param BOMProductType BOM Product Type */ -public void setBOMProductType (String BOMProductType) -{ -if (BOMProductType == null) throw new IllegalArgumentException ("BOMProductType is mandatory"); -if (BOMProductType.equals("A") || BOMProductType.equals("D") || BOMProductType.equals("O") || BOMProductType.equals("S") || BOMProductType.equals("X")); - else throw new IllegalArgumentException ("BOMProductType Invalid value - " + BOMProductType + " - Reference_ID=349 - A - D - O - S - X"); -if (BOMProductType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BOMProductType = BOMProductType.substring(0,0); -} -set_Value ("BOMProductType", BOMProductType); -} -/** Get Component Type. -@return BOM Product Type */ -public String getBOMProductType() -{ -return (String)get_Value("BOMProductType"); -} -/** Column name BOMProductType */ -public static final String COLUMNNAME_BOMProductType = "BOMProductType"; -/** Set BOM Quantity. -@param BOMQty Bill of Materials Quantity */ -public void setBOMQty (BigDecimal BOMQty) -{ -if (BOMQty == null) throw new IllegalArgumentException ("BOMQty is mandatory."); -set_Value ("BOMQty", BOMQty); -} -/** Get BOM Quantity. -@return Bill of Materials Quantity */ -public BigDecimal getBOMQty() -{ -BigDecimal bd = (BigDecimal)get_Value("BOMQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BOMQty */ -public static final String COLUMNNAME_BOMQty = "BOMQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Phantom. -@param IsPhantom Phantom Component */ -public void setIsPhantom (boolean IsPhantom) -{ -set_Value ("IsPhantom", Boolean.valueOf(IsPhantom)); -} -/** Get Phantom. -@return Phantom Component */ -public boolean isPhantom() -{ -Object oo = get_Value("IsPhantom"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPhantom */ -public static final String COLUMNNAME_IsPhantom = "IsPhantom"; -/** Set Lead Time Offset. -@param LeadTimeOffset Optional Lead Time offest before starting production */ -public void setLeadTimeOffset (int LeadTimeOffset) -{ -set_Value ("LeadTimeOffset", Integer.valueOf(LeadTimeOffset)); -} -/** Get Lead Time Offset. -@return Optional Lead Time offest before starting production */ -public int getLeadTimeOffset() -{ -Integer ii = (Integer)get_Value("LeadTimeOffset"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LeadTimeOffset */ -public static final String COLUMNNAME_LeadTimeOffset = "LeadTimeOffset"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID <= 0) set_Value ("M_AttributeSetInstance_ID", null); - else -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Alternative Group. -@param M_BOMAlternative_ID Product BOM Alternative Group */ -public void setM_BOMAlternative_ID (int M_BOMAlternative_ID) -{ -if (M_BOMAlternative_ID <= 0) set_Value ("M_BOMAlternative_ID", null); - else -set_Value ("M_BOMAlternative_ID", Integer.valueOf(M_BOMAlternative_ID)); -} -/** Get Alternative Group. -@return Product BOM Alternative Group */ -public int getM_BOMAlternative_ID() -{ -Integer ii = (Integer)get_Value("M_BOMAlternative_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOMAlternative_ID */ -public static final String COLUMNNAME_M_BOMAlternative_ID = "M_BOMAlternative_ID"; -/** Set BOM Component. -@param M_BOMProduct_ID Bill of Material Component (Product) */ -public void setM_BOMProduct_ID (int M_BOMProduct_ID) -{ -if (M_BOMProduct_ID < 1) throw new IllegalArgumentException ("M_BOMProduct_ID is mandatory."); -set_ValueNoCheck ("M_BOMProduct_ID", Integer.valueOf(M_BOMProduct_ID)); -} -/** Get BOM Component. -@return Bill of Material Component (Product) */ -public int getM_BOMProduct_ID() -{ -Integer ii = (Integer)get_Value("M_BOMProduct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOMProduct_ID */ -public static final String COLUMNNAME_M_BOMProduct_ID = "M_BOMProduct_ID"; -/** Set BOM. -@param M_BOM_ID Bill of Material */ -public void setM_BOM_ID (int M_BOM_ID) -{ -if (M_BOM_ID < 1) throw new IllegalArgumentException ("M_BOM_ID is mandatory."); -set_ValueNoCheck ("M_BOM_ID", Integer.valueOf(M_BOM_ID)); -} -/** Get BOM. -@return Bill of Material */ -public int getM_BOM_ID() -{ -Integer ii = (Integer)get_Value("M_BOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOM_ID */ -public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; -/** Set Change Notice. -@param M_ChangeNotice_ID Bill of Materials (Engineering) Change Notice (Version) */ -public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) -{ -if (M_ChangeNotice_ID <= 0) set_Value ("M_ChangeNotice_ID", null); - else -set_Value ("M_ChangeNotice_ID", Integer.valueOf(M_ChangeNotice_ID)); -} -/** Get Change Notice. -@return Bill of Materials (Engineering) Change Notice (Version) */ -public int getM_ChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeNotice_ID */ -public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; + /** Set Component Type. + @param BOMProductType + BOM Product Type + */ + public void setBOMProductType (String BOMProductType) + { +if (BOMProductType == null) throw new IllegalArgumentException ("BOMProductType is mandatory");if (BOMProductType.equals("A") || BOMProductType.equals("D") || BOMProductType.equals("O") || BOMProductType.equals("S") || BOMProductType.equals("X")); else throw new IllegalArgumentException ("BOMProductType Invalid value - " + BOMProductType + " - Reference_ID=349 - A - D - O - S - X"); if (BOMProductType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BOMProductType = BOMProductType.substring(0, 0); + } + set_Value (COLUMNNAME_BOMProductType, BOMProductType); + } + + /** Get Component Type. + @return BOM Product Type + */ + public String getBOMProductType () + { + return (String)get_Value(COLUMNNAME_BOMProductType); + } + + /** Set BOM Quantity. + @param BOMQty + Bill of Materials Quantity + */ + public void setBOMQty (BigDecimal BOMQty) + { + if (BOMQty == null) + throw new IllegalArgumentException ("BOMQty is mandatory."); + set_Value (COLUMNNAME_BOMQty, BOMQty); + } + + /** Get BOM Quantity. + @return Bill of Materials Quantity + */ + public BigDecimal getBOMQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BOMQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Phantom. + @param IsPhantom + Phantom Component + */ + public void setIsPhantom (boolean IsPhantom) + { + set_Value (COLUMNNAME_IsPhantom, Boolean.valueOf(IsPhantom)); + } + + /** Get Phantom. + @return Phantom Component + */ + public boolean isPhantom () + { + Object oo = get_Value(COLUMNNAME_IsPhantom); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Lead Time Offset. + @param LeadTimeOffset + Optional Lead Time offest before starting production + */ + public void setLeadTimeOffset (int LeadTimeOffset) + { + set_Value (COLUMNNAME_LeadTimeOffset, Integer.valueOf(LeadTimeOffset)); + } + + /** Get Lead Time Offset. + @return Optional Lead Time offest before starting production + */ + public int getLeadTimeOffset () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LeadTimeOffset); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID <= 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_BOMAlternative getI_M_BOMAlternative() throws Exception + { + 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 e; + } + return result; + } + + /** Set Alternative Group. + @param M_BOMAlternative_ID + Product BOM Alternative Group + */ + public void setM_BOMAlternative_ID (int M_BOMAlternative_ID) + { + if (M_BOMAlternative_ID <= 0) set_Value (COLUMNNAME_M_BOMAlternative_ID, null); + else + set_Value (COLUMNNAME_M_BOMAlternative_ID, Integer.valueOf(M_BOMAlternative_ID)); + } + + /** Get Alternative Group. + @return Product BOM Alternative Group + */ + public int getM_BOMAlternative_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOMAlternative_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BOM Component. + @param M_BOMProduct_ID + Bill of Material Component (Product) + */ + public void setM_BOMProduct_ID (int M_BOMProduct_ID) + { + if (M_BOMProduct_ID < 1) + throw new IllegalArgumentException ("M_BOMProduct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_BOMProduct_ID, Integer.valueOf(M_BOMProduct_ID)); + } + + /** Get BOM Component. + @return Bill of Material Component (Product) + */ + public int getM_BOMProduct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOMProduct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_BOM getI_M_BOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set BOM. + @param M_BOM_ID + Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID) + { + if (M_BOM_ID < 1) + throw new IllegalArgumentException ("M_BOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + } + + /** Get BOM. + @return Bill of Material + */ + public int getM_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception + { + 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 e; + } + return result; + } + + /** Set Change Notice. + @param M_ChangeNotice_ID + Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) + { + if (M_ChangeNotice_ID <= 0) set_Value (COLUMNNAME_M_ChangeNotice_ID, null); + else + set_Value (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + } + + /** Get Change Notice. + @return Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_ProductBOM_ID AD_Reference_ID=162 */ public static final int M_PRODUCTBOM_ID_AD_Reference_ID=162; -/** Set BOM Product. -@param M_ProductBOM_ID Bill of Material Component Product */ -public void setM_ProductBOM_ID (int M_ProductBOM_ID) -{ -if (M_ProductBOM_ID <= 0) set_Value ("M_ProductBOM_ID", null); - else -set_Value ("M_ProductBOM_ID", Integer.valueOf(M_ProductBOM_ID)); -} -/** Get BOM Product. -@return Bill of Material Component Product */ -public int getM_ProductBOM_ID() -{ -Integer ii = (Integer)get_Value("M_ProductBOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductBOM_ID */ -public static final String COLUMNNAME_M_ProductBOM_ID = "M_ProductBOM_ID"; -/** Set Product Operation. -@param M_ProductOperation_ID Product Manufacturing Operation */ -public void setM_ProductOperation_ID (int M_ProductOperation_ID) -{ -if (M_ProductOperation_ID <= 0) set_Value ("M_ProductOperation_ID", null); - else -set_Value ("M_ProductOperation_ID", Integer.valueOf(M_ProductOperation_ID)); -} -/** Get Product Operation. -@return Product Manufacturing Operation */ -public int getM_ProductOperation_ID() -{ -Integer ii = (Integer)get_Value("M_ProductOperation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductOperation_ID */ -public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set BOM Product. + @param M_ProductBOM_ID + Bill of Material Component Product + */ + public void setM_ProductBOM_ID (int M_ProductBOM_ID) + { + if (M_ProductBOM_ID <= 0) set_Value (COLUMNNAME_M_ProductBOM_ID, null); + else + set_Value (COLUMNNAME_M_ProductBOM_ID, Integer.valueOf(M_ProductBOM_ID)); + } + + /** Get BOM Product. + @return Bill of Material Component Product + */ + public int getM_ProductBOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductBOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ProductOperation getI_M_ProductOperation() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Operation. + @param M_ProductOperation_ID + Product Manufacturing Operation + */ + public void setM_ProductOperation_ID (int M_ProductOperation_ID) + { + if (M_ProductOperation_ID <= 0) set_Value (COLUMNNAME_M_ProductOperation_ID, null); + else + set_Value (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); + } + + /** Get Product Operation. + @return Product Manufacturing Operation + */ + public int getM_ProductOperation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductOperation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ChangeNotice.java b/base/src/org/compiere/model/X_M_ChangeNotice.java index 6a6e11ae7c..dcef5499ab 100644 --- a/base/src/org/compiere/model/X_M_ChangeNotice.java +++ b/base/src/org/compiere/model/X_M_ChangeNotice.java @@ -1,246 +1,261 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ChangeNotice - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ChangeNotice extends PO + +/** Generated Model for M_ChangeNotice + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ChangeNotice extends PO implements I_M_ChangeNotice, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ChangeNotice_ID id -@param trxName transaction -*/ -public X_M_ChangeNotice (Properties ctx, int M_ChangeNotice_ID, String trxName) -{ -super (ctx, M_ChangeNotice_ID, trxName); -/** if (M_ChangeNotice_ID == 0) -{ -setIsApproved (false); // N -setM_ChangeNotice_ID (0); -setName (null); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ChangeNotice (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ChangeNotice */ -public static final String Table_Name="M_ChangeNotice"; - -/** AD_Table_ID=799 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ChangeNotice[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Detail Information. -@param DetailInfo Additional Detail Information */ -public void setDetailInfo (String DetailInfo) -{ -set_Value ("DetailInfo", DetailInfo); -} -/** Get Detail Information. -@return Additional Detail Information */ -public String getDetailInfo() -{ -return (String)get_Value("DetailInfo"); -} -/** Column name DetailInfo */ -public static final String COLUMNNAME_DetailInfo = "DetailInfo"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Change Notice. -@param M_ChangeNotice_ID Bill of Materials (Engineering) Change Notice (Version) */ -public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) -{ -if (M_ChangeNotice_ID < 1) throw new IllegalArgumentException ("M_ChangeNotice_ID is mandatory."); -set_ValueNoCheck ("M_ChangeNotice_ID", Integer.valueOf(M_ChangeNotice_ID)); -} -/** Get Change Notice. -@return Bill of Materials (Engineering) Change Notice (Version) */ -public int getM_ChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeNotice_ID */ -public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ChangeNotice (Properties ctx, int M_ChangeNotice_ID, String trxName) + { + super (ctx, M_ChangeNotice_ID, trxName); + /** if (M_ChangeNotice_ID == 0) { setIsApproved (false); +// N + setM_ChangeNotice_ID (0); + setName (null); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_ChangeNotice (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ChangeNotice[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Detail Information. + @param DetailInfo + Additional Detail Information + */ + public void setDetailInfo (String DetailInfo) + { + set_Value (COLUMNNAME_DetailInfo, DetailInfo); + } + + /** Get Detail Information. + @return Additional Detail Information + */ + public String getDetailInfo () + { + return (String)get_Value(COLUMNNAME_DetailInfo); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Change Notice. + @param M_ChangeNotice_ID + Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) + { + if (M_ChangeNotice_ID < 1) + throw new IllegalArgumentException ("M_ChangeNotice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + } + + /** Get Change Notice. + @return Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ChangeRequest.java b/base/src/org/compiere/model/X_M_ChangeRequest.java index efa82fb293..aad1fc6d40 100644 --- a/base/src/org/compiere/model/X_M_ChangeRequest.java +++ b/base/src/org/compiere/model/X_M_ChangeRequest.java @@ -1,304 +1,365 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ChangeRequest - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ChangeRequest extends PO + +/** Generated Model for M_ChangeRequest + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ChangeRequest extends PO implements I_M_ChangeRequest, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ChangeRequest_ID id -@param trxName transaction -*/ -public X_M_ChangeRequest (Properties ctx, int M_ChangeRequest_ID, String trxName) -{ -super (ctx, M_ChangeRequest_ID, trxName); -/** if (M_ChangeRequest_ID == 0) -{ -setDocumentNo (null); -setIsApproved (false); // N -setM_ChangeRequest_ID (0); -setName (null); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ChangeRequest (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ChangeRequest */ -public static final String Table_Name="M_ChangeRequest"; - -/** AD_Table_ID=800 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ChangeRequest[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Detail Information. -@param DetailInfo Additional Detail Information */ -public void setDetailInfo (String DetailInfo) -{ -set_Value ("DetailInfo", DetailInfo); -} -/** Get Detail Information. -@return Additional Detail Information */ -public String getDetailInfo() -{ -return (String)get_Value("DetailInfo"); -} -/** Column name DetailInfo */ -public static final String COLUMNNAME_DetailInfo = "DetailInfo"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set BOM. -@param M_BOM_ID Bill of Material */ -public void setM_BOM_ID (int M_BOM_ID) -{ -if (M_BOM_ID <= 0) set_ValueNoCheck ("M_BOM_ID", null); - else -set_ValueNoCheck ("M_BOM_ID", Integer.valueOf(M_BOM_ID)); -} -/** Get BOM. -@return Bill of Material */ -public int getM_BOM_ID() -{ -Integer ii = (Integer)get_Value("M_BOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOM_ID */ -public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; -/** Set Change Notice. -@param M_ChangeNotice_ID Bill of Materials (Engineering) Change Notice (Version) */ -public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) -{ -if (M_ChangeNotice_ID <= 0) set_ValueNoCheck ("M_ChangeNotice_ID", null); - else -set_ValueNoCheck ("M_ChangeNotice_ID", Integer.valueOf(M_ChangeNotice_ID)); -} -/** Get Change Notice. -@return Bill of Materials (Engineering) Change Notice (Version) */ -public int getM_ChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeNotice_ID */ -public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; -/** Set Change Request. -@param M_ChangeRequest_ID BOM (Engineering) Change Request */ -public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) -{ -if (M_ChangeRequest_ID < 1) throw new IllegalArgumentException ("M_ChangeRequest_ID is mandatory."); -set_ValueNoCheck ("M_ChangeRequest_ID", Integer.valueOf(M_ChangeRequest_ID)); -} -/** Get Change Request. -@return BOM (Engineering) Change Request */ -public int getM_ChangeRequest_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeRequest_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeRequest_ID */ -public static final String COLUMNNAME_M_ChangeRequest_ID = "M_ChangeRequest_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ChangeRequest (Properties ctx, int M_ChangeRequest_ID, String trxName) + { + super (ctx, M_ChangeRequest_ID, trxName); + /** if (M_ChangeRequest_ID == 0) { setDocumentNo (null); + setIsApproved (false); +// N + setM_ChangeRequest_ID (0); + setName (null); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_ChangeRequest (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ChangeRequest[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Detail Information. + @param DetailInfo + Additional Detail Information + */ + public void setDetailInfo (String DetailInfo) + { + set_Value (COLUMNNAME_DetailInfo, DetailInfo); + } + + /** Get Detail Information. + @return Additional Detail Information + */ + public String getDetailInfo () + { + return (String)get_Value(COLUMNNAME_DetailInfo); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_BOM getI_M_BOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set BOM. + @param M_BOM_ID + Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID) + { + if (M_BOM_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_BOM_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + } + + /** Get BOM. + @return Bill of Material + */ + public int getM_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception + { + 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 e; + } + return result; + } + + /** Set Change Notice. + @param M_ChangeNotice_ID + Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) + { + if (M_ChangeNotice_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_ChangeNotice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + } + + /** Get Change Notice. + @return Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Change Request. + @param M_ChangeRequest_ID + BOM (Engineering) Change Request + */ + public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) + { + if (M_ChangeRequest_ID < 1) + throw new IllegalArgumentException ("M_ChangeRequest_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ChangeRequest_ID, Integer.valueOf(M_ChangeRequest_ID)); + } + + /** Get Change Request. + @return BOM (Engineering) Change Request + */ + public int getM_ChangeRequest_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeRequest_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_FixChangeNotice_ID AD_Reference_ID=351 */ public static final int M_FIXCHANGENOTICE_ID_AD_Reference_ID=351; -/** Set Fixed in. -@param M_FixChangeNotice_ID Fixed in Change Notice */ -public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID) -{ -if (M_FixChangeNotice_ID <= 0) set_ValueNoCheck ("M_FixChangeNotice_ID", null); - else -set_ValueNoCheck ("M_FixChangeNotice_ID", Integer.valueOf(M_FixChangeNotice_ID)); -} -/** Get Fixed in. -@return Fixed in Change Notice */ -public int getM_FixChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_FixChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_FixChangeNotice_ID */ -public static final String COLUMNNAME_M_FixChangeNotice_ID = "M_FixChangeNotice_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -} + /** Set Fixed in. + @param M_FixChangeNotice_ID + Fixed in Change Notice + */ + public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID) + { + if (M_FixChangeNotice_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_FixChangeNotice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_FixChangeNotice_ID, Integer.valueOf(M_FixChangeNotice_ID)); + } + + /** Get Fixed in. + @return Fixed in Change Notice + */ + public int getM_FixChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FixChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Cost.java b/base/src/org/compiere/model/X_M_Cost.java index 7e85f23160..54a154fdb4 100644 --- a/base/src/org/compiere/model/X_M_Cost.java +++ b/base/src/org/compiere/model/X_M_Cost.java @@ -1,355 +1,433 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Cost - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Cost extends PO + +/** Generated Model for M_Cost + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Cost extends PO implements I_M_Cost, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Cost_ID id -@param trxName transaction -*/ -public X_M_Cost (Properties ctx, int M_Cost_ID, String trxName) -{ -super (ctx, M_Cost_ID, trxName); -/** if (M_Cost_ID == 0) -{ -setC_AcctSchema_ID (0); -setCurrentCostPrice (Env.ZERO); -setCurrentQty (Env.ZERO); -setFutureCostPrice (Env.ZERO); -setM_AttributeSetInstance_ID (0); -setM_CostElement_ID (0); -setM_CostType_ID (0); -setM_Product_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Cost (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Cost */ -public static final String Table_Name="M_Cost"; - -/** AD_Table_ID=771 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Cost[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Cost (Properties ctx, int M_Cost_ID, String trxName) + { + super (ctx, M_Cost_ID, trxName); + /** if (M_Cost_ID == 0) { setC_AcctSchema_ID (0); + setCurrentCostPrice (Env.ZERO); + setCurrentQty (Env.ZERO); + setFutureCostPrice (Env.ZERO); + setM_AttributeSetInstance_ID (0); + setM_CostElement_ID (0); + setM_CostType_ID (0); + setM_Product_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_Cost (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Cost[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CostingMethod AD_Reference_ID=122 */ -public static final int COSTINGMETHOD_AD_Reference_ID=122; -/** Average PO = A */ -public static final String COSTINGMETHOD_AveragePO = "A"; -/** Fifo = F */ -public static final String COSTINGMETHOD_Fifo = "F"; -/** Average Invoice = I */ -public static final String COSTINGMETHOD_AverageInvoice = "I"; -/** Lifo = L */ -public static final String COSTINGMETHOD_Lifo = "L"; -/** Standard Costing = S */ -public static final String COSTINGMETHOD_StandardCosting = "S"; -/** User Defined = U */ -public static final String COSTINGMETHOD_UserDefined = "U"; -/** Last Invoice = i */ -public static final String COSTINGMETHOD_LastInvoice = "i"; -/** Last PO Price = p */ -public static final String COSTINGMETHOD_LastPOPrice = "p"; -/** _ = x */ +public static final int COSTINGMETHOD_AD_Reference_ID=122;/** Average PO = A */ +public static final String COSTINGMETHOD_AveragePO = "A";/** Fifo = F */ +public static final String COSTINGMETHOD_Fifo = "F";/** Average Invoice = I */ +public static final String COSTINGMETHOD_AverageInvoice = "I";/** Lifo = L */ +public static final String COSTINGMETHOD_Lifo = "L";/** Standard Costing = S */ +public static final String COSTINGMETHOD_StandardCosting = "S";/** User Defined = U */ +public static final String COSTINGMETHOD_UserDefined = "U";/** Last Invoice = i */ +public static final String COSTINGMETHOD_LastInvoice = "i";/** Last PO Price = p */ +public static final String COSTINGMETHOD_LastPOPrice = "p";/** _ = x */ public static final String COSTINGMETHOD__ = "x"; -/** Set Costing Method. -@param CostingMethod Indicates how Costs will be calculated */ -public void setCostingMethod (String CostingMethod) -{ -if (CostingMethod == null || CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); - else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); -throw new IllegalArgumentException ("CostingMethod is virtual column"); -} -/** Get Costing Method. -@return Indicates how Costs will be calculated */ -public String getCostingMethod() -{ -return (String)get_Value("CostingMethod"); -} -/** Column name CostingMethod */ -public static final String COLUMNNAME_CostingMethod = "CostingMethod"; -/** Set Accumulated Amt. -@param CumulatedAmt Total Amount */ -public void setCumulatedAmt (BigDecimal CumulatedAmt) -{ -set_ValueNoCheck ("CumulatedAmt", CumulatedAmt); -} -/** Get Accumulated Amt. -@return Total Amount */ -public BigDecimal getCumulatedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CumulatedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CumulatedAmt */ -public static final String COLUMNNAME_CumulatedAmt = "CumulatedAmt"; -/** Set Accumulated Qty. -@param CumulatedQty Total Quantity */ -public void setCumulatedQty (BigDecimal CumulatedQty) -{ -set_ValueNoCheck ("CumulatedQty", CumulatedQty); -} -/** Get Accumulated Qty. -@return Total Quantity */ -public BigDecimal getCumulatedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CumulatedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CumulatedQty */ -public static final String COLUMNNAME_CumulatedQty = "CumulatedQty"; -/** Set Current Cost Price. -@param CurrentCostPrice The currently used cost price */ -public void setCurrentCostPrice (BigDecimal CurrentCostPrice) -{ -if (CurrentCostPrice == null) throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); -set_Value ("CurrentCostPrice", CurrentCostPrice); -} -/** Get Current Cost Price. -@return The currently used cost price */ -public BigDecimal getCurrentCostPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrentCostPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrentCostPrice */ -public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; -/** Set Current Quantity. -@param CurrentQty Current Quantity */ -public void setCurrentQty (BigDecimal CurrentQty) -{ -if (CurrentQty == null) throw new IllegalArgumentException ("CurrentQty is mandatory."); -set_Value ("CurrentQty", CurrentQty); -} -/** Get Current Quantity. -@return Current Quantity */ -public BigDecimal getCurrentQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrentQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrentQty */ -public static final String COLUMNNAME_CurrentQty = "CurrentQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Future Cost Price. -@param FutureCostPrice Future Cost Price */ -public void setFutureCostPrice (BigDecimal FutureCostPrice) -{ -if (FutureCostPrice == null) throw new IllegalArgumentException ("FutureCostPrice is mandatory."); -set_Value ("FutureCostPrice", FutureCostPrice); -} -/** Get Future Cost Price. -@return Future Cost Price */ -public BigDecimal getFutureCostPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("FutureCostPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FutureCostPrice */ -public static final String COLUMNNAME_FutureCostPrice = "FutureCostPrice"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID < 1) throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); -set_ValueNoCheck ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Cost Type. -@param M_CostType_ID Type of Cost (e.g. Current, Plan, Future) */ -public void setM_CostType_ID (int M_CostType_ID) -{ -if (M_CostType_ID < 1) throw new IllegalArgumentException ("M_CostType_ID is mandatory."); -set_ValueNoCheck ("M_CostType_ID", Integer.valueOf(M_CostType_ID)); -} -/** Get Cost Type. -@return Type of Cost (e.g. Current, Plan, Future) */ -public int getM_CostType_ID() -{ -Integer ii = (Integer)get_Value("M_CostType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostType_ID */ -public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Percent. -@param Percent Percentage */ -public void setPercent (int Percent) -{ -set_Value ("Percent", Integer.valueOf(Percent)); -} -/** Get Percent. -@return Percentage */ -public int getPercent() -{ -Integer ii = (Integer)get_Value("Percent"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Percent */ -public static final String COLUMNNAME_Percent = "Percent"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -throw new IllegalArgumentException ("Processed is virtual column"); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -} + /** Set Costing Method. + @param CostingMethod + Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod) + { +if (CostingMethod == null || CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); throw new IllegalArgumentException ("CostingMethod is virtual column"); } + + /** Get Costing Method. + @return Indicates how Costs will be calculated + */ + public String getCostingMethod () + { + return (String)get_Value(COLUMNNAME_CostingMethod); + } + + /** Set Accumulated Amt. + @param CumulatedAmt + Total Amount + */ + public void setCumulatedAmt (BigDecimal CumulatedAmt) + { + set_ValueNoCheck (COLUMNNAME_CumulatedAmt, CumulatedAmt); + } + + /** Get Accumulated Amt. + @return Total Amount + */ + public BigDecimal getCumulatedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CumulatedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accumulated Qty. + @param CumulatedQty + Total Quantity + */ + public void setCumulatedQty (BigDecimal CumulatedQty) + { + set_ValueNoCheck (COLUMNNAME_CumulatedQty, CumulatedQty); + } + + /** Get Accumulated Qty. + @return Total Quantity + */ + public BigDecimal getCumulatedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CumulatedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Current Cost Price. + @param CurrentCostPrice + The currently used cost price + */ + public void setCurrentCostPrice (BigDecimal CurrentCostPrice) + { + if (CurrentCostPrice == null) + throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); + set_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice); + } + + /** Get Current Cost Price. + @return The currently used cost price + */ + public BigDecimal getCurrentCostPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentCostPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Current Quantity. + @param CurrentQty + Current Quantity + */ + public void setCurrentQty (BigDecimal CurrentQty) + { + if (CurrentQty == null) + throw new IllegalArgumentException ("CurrentQty is mandatory."); + set_Value (COLUMNNAME_CurrentQty, CurrentQty); + } + + /** Get Current Quantity. + @return Current Quantity + */ + public BigDecimal getCurrentQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Future Cost Price. + @param FutureCostPrice Future Cost Price */ + public void setFutureCostPrice (BigDecimal FutureCostPrice) + { + if (FutureCostPrice == null) + throw new IllegalArgumentException ("FutureCostPrice is mandatory."); + set_Value (COLUMNNAME_FutureCostPrice, FutureCostPrice); + } + + /** Get Future Cost Price. +@return Future Cost Price */ + public BigDecimal getFutureCostPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FutureCostPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostElement getI_M_CostElement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID < 1) + throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostType getI_M_CostType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Type. + @param M_CostType_ID + Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID) + { + if (M_CostType_ID < 1) + throw new IllegalArgumentException ("M_CostType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + } + + /** Get Cost Type. + @return Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Percent. + @param Percent + Percentage + */ + public void setPercent (int Percent) + { + set_Value (COLUMNNAME_Percent, Integer.valueOf(Percent)); + } + + /** Get Percent. + @return Percentage + */ + public int getPercent () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Percent); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + throw new IllegalArgumentException ("Processed is virtual column"); } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_CostDetail.java b/base/src/org/compiere/model/X_M_CostDetail.java index da71870dfb..39670442b7 100644 --- a/base/src/org/compiere/model/X_M_CostDetail.java +++ b/base/src/org/compiere/model/X_M_CostDetail.java @@ -1,448 +1,549 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_CostDetail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_CostDetail extends PO + +/** Generated Model for M_CostDetail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_CostDetail extends PO implements I_M_CostDetail, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_CostDetail_ID id -@param trxName transaction -*/ -public X_M_CostDetail (Properties ctx, int M_CostDetail_ID, String trxName) -{ -super (ctx, M_CostDetail_ID, trxName); -/** if (M_CostDetail_ID == 0) -{ -setAmt (Env.ZERO); -setC_AcctSchema_ID (0); -setIsSOTrx (false); -setM_AttributeSetInstance_ID (0); -setM_CostDetail_ID (0); -setM_Product_ID (0); -setProcessed (false); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_CostDetail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_CostDetail */ -public static final String Table_Name="M_CostDetail"; - -/** AD_Table_ID=808 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_CostDetail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -if (Amt == null) throw new IllegalArgumentException ("Amt is mandatory."); -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_ValueNoCheck ("C_InvoiceLine_ID", null); - else -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_ValueNoCheck ("C_OrderLine_ID", null); - else -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Project Issue. -@param C_ProjectIssue_ID Project Issues (Material, Labor) */ -public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) -{ -if (C_ProjectIssue_ID <= 0) set_Value ("C_ProjectIssue_ID", null); - else -set_Value ("C_ProjectIssue_ID", Integer.valueOf(C_ProjectIssue_ID)); -} -/** Get Project Issue. -@return Project Issues (Material, Labor) */ -public int getC_ProjectIssue_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectIssue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectIssue_ID */ -public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; -/** Set Delta Amount. -@param DeltaAmt Difference Amount */ -public void setDeltaAmt (BigDecimal DeltaAmt) -{ -set_Value ("DeltaAmt", DeltaAmt); -} -/** Get Delta Amount. -@return Difference Amount */ -public BigDecimal getDeltaAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DeltaAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DeltaAmt */ -public static final String COLUMNNAME_DeltaAmt = "DeltaAmt"; -/** Set Delta Quantity. -@param DeltaQty Quantity Difference */ -public void setDeltaQty (BigDecimal DeltaQty) -{ -set_Value ("DeltaQty", DeltaQty); -} -/** Get Delta Quantity. -@return Quantity Difference */ -public BigDecimal getDeltaQty() -{ -BigDecimal bd = (BigDecimal)get_Value("DeltaQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DeltaQty */ -public static final String COLUMNNAME_DeltaQty = "DeltaQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Cost Detail. -@param M_CostDetail_ID Cost Detail Information */ -public void setM_CostDetail_ID (int M_CostDetail_ID) -{ -if (M_CostDetail_ID < 1) throw new IllegalArgumentException ("M_CostDetail_ID is mandatory."); -set_ValueNoCheck ("M_CostDetail_ID", Integer.valueOf(M_CostDetail_ID)); -} -/** Get Cost Detail. -@return Cost Detail Information */ -public int getM_CostDetail_ID() -{ -Integer ii = (Integer)get_Value("M_CostDetail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostDetail_ID */ -public static final String COLUMNNAME_M_CostDetail_ID = "M_CostDetail_ID"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID <= 0) set_ValueNoCheck ("M_CostElement_ID", null); - else -set_ValueNoCheck ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_ValueNoCheck ("M_InOutLine_ID", null); - else -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_Value ("M_InventoryLine_ID", null); - else -set_Value ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Move Line. -@param M_MovementLine_ID Inventory Move document Line */ -public void setM_MovementLine_ID (int M_MovementLine_ID) -{ -if (M_MovementLine_ID <= 0) set_Value ("M_MovementLine_ID", null); - else -set_Value ("M_MovementLine_ID", Integer.valueOf(M_MovementLine_ID)); -} -/** Get Move Line. -@return Inventory Move document Line */ -public int getM_MovementLine_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementLine_ID */ -public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Production Line. -@param M_ProductionLine_ID Document Line representing a production */ -public void setM_ProductionLine_ID (int M_ProductionLine_ID) -{ -if (M_ProductionLine_ID <= 0) set_Value ("M_ProductionLine_ID", null); - else -set_Value ("M_ProductionLine_ID", Integer.valueOf(M_ProductionLine_ID)); -} -/** Get Production Line. -@return Document Line representing a production */ -public int getM_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionLine_ID */ -public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; -/** Set Price. -@param Price Price */ -public void setPrice (BigDecimal Price) -{ -throw new IllegalArgumentException ("Price is virtual column"); -} -/** Get Price. -@return Price */ -public BigDecimal getPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("Price"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Price */ -public static final String COLUMNNAME_Price = "Price"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_CostDetail (Properties ctx, int M_CostDetail_ID, String trxName) + { + super (ctx, M_CostDetail_ID, trxName); + /** if (M_CostDetail_ID == 0) { setAmt (Env.ZERO); + setC_AcctSchema_ID (0); + setIsSOTrx (false); + setM_AttributeSetInstance_ID (0); + setM_CostDetail_ID (0); + setM_Product_ID (0); + setProcessed (false); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_CostDetail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_CostDetail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + if (Amt == null) + throw new IllegalArgumentException ("Amt is mandatory."); + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID <= 0) set_Value (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_Value (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Delta Amount. + @param DeltaAmt + Difference Amount + */ + public void setDeltaAmt (BigDecimal DeltaAmt) + { + set_Value (COLUMNNAME_DeltaAmt, DeltaAmt); + } + + /** Get Delta Amount. + @return Difference Amount + */ + public BigDecimal getDeltaAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DeltaAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Delta Quantity. + @param DeltaQty + Quantity Difference + */ + public void setDeltaQty (BigDecimal DeltaQty) + { + set_Value (COLUMNNAME_DeltaQty, DeltaQty); + } + + /** Get Delta Quantity. + @return Quantity Difference + */ + public BigDecimal getDeltaQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DeltaQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost Detail. + @param M_CostDetail_ID + Cost Detail Information + */ + public void setM_CostDetail_ID (int M_CostDetail_ID) + { + if (M_CostDetail_ID < 1) + throw new IllegalArgumentException ("M_CostDetail_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostDetail_ID, Integer.valueOf(M_CostDetail_ID)); + } + + /** Get Cost Detail. + @return Cost Detail Information + */ + public int getM_CostDetail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostDetail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostElement getI_M_CostElement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID <= 0) set_Value (COLUMNNAME_M_MovementLine_ID, null); + else + set_Value (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID <= 0) set_Value (COLUMNNAME_M_ProductionLine_ID, null); + else + set_Value (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price. + @param Price + Price + */ + public void setPrice (BigDecimal Price) + { + throw new IllegalArgumentException ("Price is virtual column"); } + + /** Get Price. + @return Price + */ + public BigDecimal getPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Price); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_CostElement.java b/base/src/org/compiere/model/X_M_CostElement.java index 5754c80b91..0b42e602d9 100644 --- a/base/src/org/compiere/model/X_M_CostElement.java +++ b/base/src/org/compiere/model/X_M_CostElement.java @@ -1,250 +1,238 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_CostElement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_CostElement extends PO + +/** Generated Model for M_CostElement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_CostElement extends PO implements I_M_CostElement, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_CostElement_ID id -@param trxName transaction -*/ -public X_M_CostElement (Properties ctx, int M_CostElement_ID, String trxName) -{ -super (ctx, M_CostElement_ID, trxName); -/** if (M_CostElement_ID == 0) -{ -setCostElementType (null); -setIsCalculated (false); -setM_CostElement_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_CostElement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_CostElement */ -public static final String Table_Name="M_CostElement"; - -/** AD_Table_ID=770 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_CostElement[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_CostElement (Properties ctx, int M_CostElement_ID, String trxName) + { + super (ctx, M_CostElement_ID, trxName); + /** if (M_CostElement_ID == 0) { setCostElementType (null); + setIsCalculated (false); + setM_CostElement_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_CostElement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_CostElement[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** CostElementType AD_Reference_ID=338 */ -public static final int COSTELEMENTTYPE_AD_Reference_ID=338; -/** Burden (M.Overhead) = B */ -public static final String COSTELEMENTTYPE_BurdenMOverhead = "B"; -/** Material = M */ -public static final String COSTELEMENTTYPE_Material = "M"; -/** Overhead = O */ -public static final String COSTELEMENTTYPE_Overhead = "O"; -/** Resource = R */ -public static final String COSTELEMENTTYPE_Resource = "R"; -/** Outside Processing = X */ +public static final int COSTELEMENTTYPE_AD_Reference_ID=338;/** Burden (M.Overhead) = B */ +public static final String COSTELEMENTTYPE_BurdenMOverhead = "B";/** Material = M */ +public static final String COSTELEMENTTYPE_Material = "M";/** Overhead = O */ +public static final String COSTELEMENTTYPE_Overhead = "O";/** Resource = R */ +public static final String COSTELEMENTTYPE_Resource = "R";/** Outside Processing = X */ public static final String COSTELEMENTTYPE_OutsideProcessing = "X"; -/** Set Cost Element Type. -@param CostElementType Type of Cost Element */ -public void setCostElementType (String CostElementType) -{ -if (CostElementType == null) throw new IllegalArgumentException ("CostElementType is mandatory"); -if (CostElementType.equals("B") || CostElementType.equals("M") || CostElementType.equals("O") || CostElementType.equals("R") || CostElementType.equals("X")); - else throw new IllegalArgumentException ("CostElementType Invalid value - " + CostElementType + " - Reference_ID=338 - B - M - O - R - X"); -if (CostElementType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CostElementType = CostElementType.substring(0,0); -} -set_Value ("CostElementType", CostElementType); -} -/** Get Cost Element Type. -@return Type of Cost Element */ -public String getCostElementType() -{ -return (String)get_Value("CostElementType"); -} -/** Column name CostElementType */ -public static final String COLUMNNAME_CostElementType = "CostElementType"; + /** Set Cost Element Type. + @param CostElementType + Type of Cost Element + */ + public void setCostElementType (String CostElementType) + { +if (CostElementType == null) throw new IllegalArgumentException ("CostElementType is mandatory");if (CostElementType.equals("B") || CostElementType.equals("M") || CostElementType.equals("O") || CostElementType.equals("R") || CostElementType.equals("X")); else throw new IllegalArgumentException ("CostElementType Invalid value - " + CostElementType + " - Reference_ID=338 - B - M - O - R - X"); if (CostElementType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostElementType = CostElementType.substring(0, 0); + } + set_Value (COLUMNNAME_CostElementType, CostElementType); + } + + /** Get Cost Element Type. + @return Type of Cost Element + */ + public String getCostElementType () + { + return (String)get_Value(COLUMNNAME_CostElementType); + } /** CostingMethod AD_Reference_ID=122 */ -public static final int COSTINGMETHOD_AD_Reference_ID=122; -/** Average PO = A */ -public static final String COSTINGMETHOD_AveragePO = "A"; -/** Fifo = F */ -public static final String COSTINGMETHOD_Fifo = "F"; -/** Average Invoice = I */ -public static final String COSTINGMETHOD_AverageInvoice = "I"; -/** Lifo = L */ -public static final String COSTINGMETHOD_Lifo = "L"; -/** Standard Costing = S */ -public static final String COSTINGMETHOD_StandardCosting = "S"; -/** User Defined = U */ -public static final String COSTINGMETHOD_UserDefined = "U"; -/** Last Invoice = i */ -public static final String COSTINGMETHOD_LastInvoice = "i"; -/** Last PO Price = p */ -public static final String COSTINGMETHOD_LastPOPrice = "p"; -/** _ = x */ +public static final int COSTINGMETHOD_AD_Reference_ID=122;/** Average PO = A */ +public static final String COSTINGMETHOD_AveragePO = "A";/** Fifo = F */ +public static final String COSTINGMETHOD_Fifo = "F";/** Average Invoice = I */ +public static final String COSTINGMETHOD_AverageInvoice = "I";/** Lifo = L */ +public static final String COSTINGMETHOD_Lifo = "L";/** Standard Costing = S */ +public static final String COSTINGMETHOD_StandardCosting = "S";/** User Defined = U */ +public static final String COSTINGMETHOD_UserDefined = "U";/** Last Invoice = i */ +public static final String COSTINGMETHOD_LastInvoice = "i";/** Last PO Price = p */ +public static final String COSTINGMETHOD_LastPOPrice = "p";/** _ = x */ public static final String COSTINGMETHOD__ = "x"; -/** Set Costing Method. -@param CostingMethod Indicates how Costs will be calculated */ -public void setCostingMethod (String CostingMethod) -{ -if (CostingMethod == null || CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); - else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); -if (CostingMethod != null && CostingMethod.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CostingMethod = CostingMethod.substring(0,0); -} -set_Value ("CostingMethod", CostingMethod); -} -/** Get Costing Method. -@return Indicates how Costs will be calculated */ -public String getCostingMethod() -{ -return (String)get_Value("CostingMethod"); -} -/** Column name CostingMethod */ -public static final String COLUMNNAME_CostingMethod = "CostingMethod"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Calculated. -@param IsCalculated The value is calculated by the system */ -public void setIsCalculated (boolean IsCalculated) -{ -set_Value ("IsCalculated", Boolean.valueOf(IsCalculated)); -} -/** Get Calculated. -@return The value is calculated by the system */ -public boolean isCalculated() -{ -Object oo = get_Value("IsCalculated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCalculated */ -public static final String COLUMNNAME_IsCalculated = "IsCalculated"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID < 1) throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); -set_ValueNoCheck ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + /** Set Costing Method. + @param CostingMethod + Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod) + { +if (CostingMethod == null || CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); if (CostingMethod != null && CostingMethod.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingMethod = CostingMethod.substring(0, 0); + } + set_Value (COLUMNNAME_CostingMethod, CostingMethod); + } + + /** Get Costing Method. + @return Indicates how Costs will be calculated + */ + public String getCostingMethod () + { + return (String)get_Value(COLUMNNAME_CostingMethod); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Calculated. + @param IsCalculated + The value is calculated by the system + */ + public void setIsCalculated (boolean IsCalculated) + { + set_Value (COLUMNNAME_IsCalculated, Boolean.valueOf(IsCalculated)); + } + + /** Get Calculated. + @return The value is calculated by the system + */ + public boolean isCalculated () + { + Object oo = get_Value(COLUMNNAME_IsCalculated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID < 1) + throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_CostQueue.java b/base/src/org/compiere/model/X_M_CostQueue.java index 605e8a6ffa..f0bd290cd9 100644 --- a/base/src/org/compiere/model/X_M_CostQueue.java +++ b/base/src/org/compiere/model/X_M_CostQueue.java @@ -1,231 +1,304 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_CostQueue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_CostQueue extends PO + +/** Generated Model for M_CostQueue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_CostQueue extends PO implements I_M_CostQueue, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_CostQueue_ID id -@param trxName transaction -*/ -public X_M_CostQueue (Properties ctx, int M_CostQueue_ID, String trxName) -{ -super (ctx, M_CostQueue_ID, trxName); -/** if (M_CostQueue_ID == 0) -{ -setC_AcctSchema_ID (0); -setCurrentCostPrice (Env.ZERO); -setCurrentQty (Env.ZERO); -setM_AttributeSetInstance_ID (0); -setM_CostElement_ID (0); -setM_CostQueue_ID (0); -setM_CostType_ID (0); -setM_Product_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_CostQueue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_CostQueue */ -public static final String Table_Name="M_CostQueue"; - -/** AD_Table_ID=817 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_CostQueue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Current Cost Price. -@param CurrentCostPrice The currently used cost price */ -public void setCurrentCostPrice (BigDecimal CurrentCostPrice) -{ -if (CurrentCostPrice == null) throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); -set_Value ("CurrentCostPrice", CurrentCostPrice); -} -/** Get Current Cost Price. -@return The currently used cost price */ -public BigDecimal getCurrentCostPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrentCostPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrentCostPrice */ -public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; -/** Set Current Quantity. -@param CurrentQty Current Quantity */ -public void setCurrentQty (BigDecimal CurrentQty) -{ -if (CurrentQty == null) throw new IllegalArgumentException ("CurrentQty is mandatory."); -set_Value ("CurrentQty", CurrentQty); -} -/** Get Current Quantity. -@return Current Quantity */ -public BigDecimal getCurrentQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrentQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrentQty */ -public static final String COLUMNNAME_CurrentQty = "CurrentQty"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID < 1) throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); -set_ValueNoCheck ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Cost Queue. -@param M_CostQueue_ID FiFo/LiFo Cost Queue */ -public void setM_CostQueue_ID (int M_CostQueue_ID) -{ -if (M_CostQueue_ID < 1) throw new IllegalArgumentException ("M_CostQueue_ID is mandatory."); -set_ValueNoCheck ("M_CostQueue_ID", Integer.valueOf(M_CostQueue_ID)); -} -/** Get Cost Queue. -@return FiFo/LiFo Cost Queue */ -public int getM_CostQueue_ID() -{ -Integer ii = (Integer)get_Value("M_CostQueue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostQueue_ID */ -public static final String COLUMNNAME_M_CostQueue_ID = "M_CostQueue_ID"; -/** Set Cost Type. -@param M_CostType_ID Type of Cost (e.g. Current, Plan, Future) */ -public void setM_CostType_ID (int M_CostType_ID) -{ -if (M_CostType_ID < 1) throw new IllegalArgumentException ("M_CostType_ID is mandatory."); -set_ValueNoCheck ("M_CostType_ID", Integer.valueOf(M_CostType_ID)); -} -/** Get Cost Type. -@return Type of Cost (e.g. Current, Plan, Future) */ -public int getM_CostType_ID() -{ -Integer ii = (Integer)get_Value("M_CostType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostType_ID */ -public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_CostQueue (Properties ctx, int M_CostQueue_ID, String trxName) + { + super (ctx, M_CostQueue_ID, trxName); + /** if (M_CostQueue_ID == 0) { setC_AcctSchema_ID (0); + setCurrentCostPrice (Env.ZERO); + setCurrentQty (Env.ZERO); + setM_AttributeSetInstance_ID (0); + setM_CostElement_ID (0); + setM_CostQueue_ID (0); + setM_CostType_ID (0); + setM_Product_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_CostQueue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_CostQueue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Current Cost Price. + @param CurrentCostPrice + The currently used cost price + */ + public void setCurrentCostPrice (BigDecimal CurrentCostPrice) + { + if (CurrentCostPrice == null) + throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); + set_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice); + } + + /** Get Current Cost Price. + @return The currently used cost price + */ + public BigDecimal getCurrentCostPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentCostPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Current Quantity. + @param CurrentQty + Current Quantity + */ + public void setCurrentQty (BigDecimal CurrentQty) + { + if (CurrentQty == null) + throw new IllegalArgumentException ("CurrentQty is mandatory."); + set_Value (COLUMNNAME_CurrentQty, CurrentQty); + } + + /** Get Current Quantity. + @return Current Quantity + */ + public BigDecimal getCurrentQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostElement getI_M_CostElement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID < 1) + throw new IllegalArgumentException ("M_CostElement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost Queue. + @param M_CostQueue_ID + FiFo/LiFo Cost Queue + */ + public void setM_CostQueue_ID (int M_CostQueue_ID) + { + if (M_CostQueue_ID < 1) + throw new IllegalArgumentException ("M_CostQueue_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostQueue_ID, Integer.valueOf(M_CostQueue_ID)); + } + + /** Get Cost Queue. + @return FiFo/LiFo Cost Queue + */ + public int getM_CostQueue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostQueue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostType getI_M_CostType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Type. + @param M_CostType_ID + Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID) + { + if (M_CostType_ID < 1) + throw new IllegalArgumentException ("M_CostType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + } + + /** Get Cost Type. + @return Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_CostType.java b/base/src/org/compiere/model/X_M_CostType.java index f2c6506d2d..60e19c380f 100644 --- a/base/src/org/compiere/model/X_M_CostType.java +++ b/base/src/org/compiere/model/X_M_CostType.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_CostType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_CostType extends PO + +/** Generated Model for M_CostType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_CostType extends PO implements I_M_CostType, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_CostType_ID id -@param trxName transaction -*/ -public X_M_CostType (Properties ctx, int M_CostType_ID, String trxName) -{ -super (ctx, M_CostType_ID, trxName); -/** if (M_CostType_ID == 0) -{ -setM_CostType_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_CostType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_CostType */ -public static final String Table_Name="M_CostType"; - -/** AD_Table_ID=586 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_CostType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Cost Type. -@param M_CostType_ID Type of Cost (e.g. Current, Plan, Future) */ -public void setM_CostType_ID (int M_CostType_ID) -{ -if (M_CostType_ID < 1) throw new IllegalArgumentException ("M_CostType_ID is mandatory."); -set_ValueNoCheck ("M_CostType_ID", Integer.valueOf(M_CostType_ID)); -} -/** Get Cost Type. -@return Type of Cost (e.g. Current, Plan, Future) */ -public int getM_CostType_ID() -{ -Integer ii = (Integer)get_Value("M_CostType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostType_ID */ -public static final String COLUMNNAME_M_CostType_ID = "M_CostType_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_CostType (Properties ctx, int M_CostType_ID, String trxName) + { + super (ctx, M_CostType_ID, trxName); + /** if (M_CostType_ID == 0) { setM_CostType_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_CostType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_CostType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Cost Type. + @param M_CostType_ID + Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID) + { + if (M_CostType_ID < 1) + throw new IllegalArgumentException ("M_CostType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + } + + /** Get Cost Type. + @return Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Demand.java b/base/src/org/compiere/model/X_M_Demand.java index e59b7804ed..68e3a81aa0 100644 --- a/base/src/org/compiere/model/X_M_Demand.java +++ b/base/src/org/compiere/model/X_M_Demand.java @@ -1,247 +1,296 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Demand - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Demand extends PO + +/** Generated Model for M_Demand + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Demand extends PO implements I_M_Demand, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Demand_ID id -@param trxName transaction -*/ -public X_M_Demand (Properties ctx, int M_Demand_ID, String trxName) -{ -super (ctx, M_Demand_ID, trxName); -/** if (M_Demand_ID == 0) -{ -setC_Calendar_ID (0); -setC_Year_ID (0); -setIsDefault (false); -setM_Demand_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Demand (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Demand */ -public static final String Table_Name="M_Demand"; - -/** AD_Table_ID=723 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Demand[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID < 1) throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); -set_ValueNoCheck ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; -/** Set Year. -@param C_Year_ID Calendar Year */ -public void setC_Year_ID (int C_Year_ID) -{ -if (C_Year_ID < 1) throw new IllegalArgumentException ("C_Year_ID is mandatory."); -set_ValueNoCheck ("C_Year_ID", Integer.valueOf(C_Year_ID)); -} -/** Get Year. -@return Calendar Year */ -public int getC_Year_ID() -{ -Integer ii = (Integer)get_Value("C_Year_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Year_ID */ -public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Demand. -@param M_Demand_ID Material Demand */ -public void setM_Demand_ID (int M_Demand_ID) -{ -if (M_Demand_ID < 1) throw new IllegalArgumentException ("M_Demand_ID is mandatory."); -set_ValueNoCheck ("M_Demand_ID", Integer.valueOf(M_Demand_ID)); -} -/** Get Demand. -@return Material Demand */ -public int getM_Demand_ID() -{ -Integer ii = (Integer)get_Value("M_Demand_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Demand_ID */ -public static final String COLUMNNAME_M_Demand_ID = "M_Demand_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Demand (Properties ctx, int M_Demand_ID, String trxName) + { + super (ctx, M_Demand_ID, trxName); + /** if (M_Demand_ID == 0) { setC_Calendar_ID (0); + setC_Year_ID (0); + setIsDefault (false); + setM_Demand_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_Demand (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Demand[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Calendar getI_C_Calendar() throws Exception + { + 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 e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Year getI_C_Year() throws Exception + { + 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 e; + } + return result; + } + + /** Set Year. + @param C_Year_ID + Calendar Year + */ + public void setC_Year_ID (int C_Year_ID) + { + if (C_Year_ID < 1) + throw new IllegalArgumentException ("C_Year_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + } + + /** Get Year. + @return Calendar Year + */ + public int getC_Year_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Year_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Demand. + @param M_Demand_ID + Material Demand + */ + public void setM_Demand_ID (int M_Demand_ID) + { + if (M_Demand_ID < 1) + throw new IllegalArgumentException ("M_Demand_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Demand_ID, Integer.valueOf(M_Demand_ID)); + } + + /** Get Demand. + @return Material Demand + */ + public int getM_Demand_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Demand_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DemandDetail.java b/base/src/org/compiere/model/X_M_DemandDetail.java index de97d2efb1..c37b43c857 100644 --- a/base/src/org/compiere/model/X_M_DemandDetail.java +++ b/base/src/org/compiere/model/X_M_DemandDetail.java @@ -1,183 +1,208 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DemandDetail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DemandDetail extends PO + +/** Generated Model for M_DemandDetail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DemandDetail extends PO implements I_M_DemandDetail, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DemandDetail_ID id -@param trxName transaction -*/ -public X_M_DemandDetail (Properties ctx, int M_DemandDetail_ID, String trxName) -{ -super (ctx, M_DemandDetail_ID, trxName); -/** if (M_DemandDetail_ID == 0) -{ -setM_DemandDetail_ID (0); -setM_DemandLine_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DemandDetail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DemandDetail */ -public static final String Table_Name="M_DemandDetail"; - -/** AD_Table_ID=721 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DemandDetail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_Value ("C_OrderLine_ID", null); - else -set_Value ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Demand Detail. -@param M_DemandDetail_ID Material Demand Line Source Detail */ -public void setM_DemandDetail_ID (int M_DemandDetail_ID) -{ -if (M_DemandDetail_ID < 1) throw new IllegalArgumentException ("M_DemandDetail_ID is mandatory."); -set_ValueNoCheck ("M_DemandDetail_ID", Integer.valueOf(M_DemandDetail_ID)); -} -/** Get Demand Detail. -@return Material Demand Line Source Detail */ -public int getM_DemandDetail_ID() -{ -Integer ii = (Integer)get_Value("M_DemandDetail_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_DemandDetail_ID())); -} -/** Column name M_DemandDetail_ID */ -public static final String COLUMNNAME_M_DemandDetail_ID = "M_DemandDetail_ID"; -/** Set Demand Line. -@param M_DemandLine_ID Material Demand Line */ -public void setM_DemandLine_ID (int M_DemandLine_ID) -{ -if (M_DemandLine_ID < 1) throw new IllegalArgumentException ("M_DemandLine_ID is mandatory."); -set_ValueNoCheck ("M_DemandLine_ID", Integer.valueOf(M_DemandLine_ID)); -} -/** Get Demand Line. -@return Material Demand Line */ -public int getM_DemandLine_ID() -{ -Integer ii = (Integer)get_Value("M_DemandLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DemandLine_ID */ -public static final String COLUMNNAME_M_DemandLine_ID = "M_DemandLine_ID"; -/** Set Forecast Line. -@param M_ForecastLine_ID Forecast Line */ -public void setM_ForecastLine_ID (int M_ForecastLine_ID) -{ -if (M_ForecastLine_ID <= 0) set_Value ("M_ForecastLine_ID", null); - else -set_Value ("M_ForecastLine_ID", Integer.valueOf(M_ForecastLine_ID)); -} -/** Get Forecast Line. -@return Forecast Line */ -public int getM_ForecastLine_ID() -{ -Integer ii = (Integer)get_Value("M_ForecastLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ForecastLine_ID */ -public static final String COLUMNNAME_M_ForecastLine_ID = "M_ForecastLine_ID"; -/** Set Requisition Line. -@param M_RequisitionLine_ID Material Requisition Line */ -public void setM_RequisitionLine_ID (int M_RequisitionLine_ID) -{ -if (M_RequisitionLine_ID <= 0) set_Value ("M_RequisitionLine_ID", null); - else -set_Value ("M_RequisitionLine_ID", Integer.valueOf(M_RequisitionLine_ID)); -} -/** Get Requisition Line. -@return Material Requisition Line */ -public int getM_RequisitionLine_ID() -{ -Integer ii = (Integer)get_Value("M_RequisitionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RequisitionLine_ID */ -public static final String COLUMNNAME_M_RequisitionLine_ID = "M_RequisitionLine_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DemandDetail (Properties ctx, int M_DemandDetail_ID, String trxName) + { + super (ctx, M_DemandDetail_ID, trxName); + /** if (M_DemandDetail_ID == 0) { setM_DemandDetail_ID (0); + setM_DemandLine_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_DemandDetail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DemandDetail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_Value (COLUMNNAME_C_OrderLine_ID, null); + else + set_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Demand Detail. + @param M_DemandDetail_ID + Material Demand Line Source Detail + */ + public void setM_DemandDetail_ID (int M_DemandDetail_ID) + { + if (M_DemandDetail_ID < 1) + throw new IllegalArgumentException ("M_DemandDetail_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DemandDetail_ID, Integer.valueOf(M_DemandDetail_ID)); + } + + /** Get Demand Detail. + @return Material Demand Line Source Detail + */ + public int getM_DemandDetail_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DemandDetail_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_DemandDetail_ID())); + } + + public I_M_DemandLine getI_M_DemandLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Demand Line. + @param M_DemandLine_ID + Material Demand Line + */ + public void setM_DemandLine_ID (int M_DemandLine_ID) + { + if (M_DemandLine_ID < 1) + throw new IllegalArgumentException ("M_DemandLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, Integer.valueOf(M_DemandLine_ID)); + } + + /** Get Demand Line. + @return Material Demand Line + */ + public int getM_DemandLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DemandLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Forecast Line. + @param M_ForecastLine_ID + Forecast Line + */ + public void setM_ForecastLine_ID (int M_ForecastLine_ID) + { + if (M_ForecastLine_ID <= 0) set_Value (COLUMNNAME_M_ForecastLine_ID, null); + else + set_Value (COLUMNNAME_M_ForecastLine_ID, Integer.valueOf(M_ForecastLine_ID)); + } + + /** Get Forecast Line. + @return Forecast Line + */ + public int getM_ForecastLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ForecastLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Requisition Line. + @param M_RequisitionLine_ID + Material Requisition Line + */ + public void setM_RequisitionLine_ID (int M_RequisitionLine_ID) + { + if (M_RequisitionLine_ID <= 0) set_Value (COLUMNNAME_M_RequisitionLine_ID, null); + else + set_Value (COLUMNNAME_M_RequisitionLine_ID, Integer.valueOf(M_RequisitionLine_ID)); + } + + /** Get Requisition Line. + @return Material Requisition Line + */ + public int getM_RequisitionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RequisitionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DemandLine.java b/base/src/org/compiere/model/X_M_DemandLine.java index 672c5b1dae..c56c03574f 100644 --- a/base/src/org/compiere/model/X_M_DemandLine.java +++ b/base/src/org/compiere/model/X_M_DemandLine.java @@ -1,201 +1,250 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DemandLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DemandLine extends PO + +/** Generated Model for M_DemandLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DemandLine extends PO implements I_M_DemandLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DemandLine_ID id -@param trxName transaction -*/ -public X_M_DemandLine (Properties ctx, int M_DemandLine_ID, String trxName) -{ -super (ctx, M_DemandLine_ID, trxName); -/** if (M_DemandLine_ID == 0) -{ -setC_Period_ID (0); -setM_DemandLine_ID (0); -setM_Demand_ID (0); -setM_Product_ID (0); -setQty (Env.ZERO); -setQtyCalculated (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DemandLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DemandLine */ -public static final String Table_Name="M_DemandLine"; - -/** AD_Table_ID=719 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DemandLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID < 1) throw new IllegalArgumentException ("C_Period_ID is mandatory."); -set_ValueNoCheck ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Period_ID())); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Demand Line. -@param M_DemandLine_ID Material Demand Line */ -public void setM_DemandLine_ID (int M_DemandLine_ID) -{ -if (M_DemandLine_ID < 1) throw new IllegalArgumentException ("M_DemandLine_ID is mandatory."); -set_ValueNoCheck ("M_DemandLine_ID", Integer.valueOf(M_DemandLine_ID)); -} -/** Get Demand Line. -@return Material Demand Line */ -public int getM_DemandLine_ID() -{ -Integer ii = (Integer)get_Value("M_DemandLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DemandLine_ID */ -public static final String COLUMNNAME_M_DemandLine_ID = "M_DemandLine_ID"; -/** Set Demand. -@param M_Demand_ID Material Demand */ -public void setM_Demand_ID (int M_Demand_ID) -{ -if (M_Demand_ID < 1) throw new IllegalArgumentException ("M_Demand_ID is mandatory."); -set_ValueNoCheck ("M_Demand_ID", Integer.valueOf(M_Demand_ID)); -} -/** Get Demand. -@return Material Demand */ -public int getM_Demand_ID() -{ -Integer ii = (Integer)get_Value("M_Demand_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Demand_ID */ -public static final String COLUMNNAME_M_Demand_ID = "M_Demand_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Calculated Quantity. -@param QtyCalculated Calculated Quantity */ -public void setQtyCalculated (BigDecimal QtyCalculated) -{ -if (QtyCalculated == null) throw new IllegalArgumentException ("QtyCalculated is mandatory."); -set_Value ("QtyCalculated", QtyCalculated); -} -/** Get Calculated Quantity. -@return Calculated Quantity */ -public BigDecimal getQtyCalculated() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyCalculated"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyCalculated */ -public static final String COLUMNNAME_QtyCalculated = "QtyCalculated"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DemandLine (Properties ctx, int M_DemandLine_ID, String trxName) + { + super (ctx, M_DemandLine_ID, trxName); + /** if (M_DemandLine_ID == 0) { setC_Period_ID (0); + setM_DemandLine_ID (0); + setM_Demand_ID (0); + setM_Product_ID (0); + setQty (Env.ZERO); + setQtyCalculated (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_DemandLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DemandLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Period getI_C_Period() throws Exception + { + 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 e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Period_ID())); + } + + /** Set Demand Line. + @param M_DemandLine_ID + Material Demand Line + */ + public void setM_DemandLine_ID (int M_DemandLine_ID) + { + if (M_DemandLine_ID < 1) + throw new IllegalArgumentException ("M_DemandLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DemandLine_ID, Integer.valueOf(M_DemandLine_ID)); + } + + /** Get Demand Line. + @return Material Demand Line + */ + public int getM_DemandLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DemandLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Demand getI_M_Demand() throws Exception + { + 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 e; + } + return result; + } + + /** Set Demand. + @param M_Demand_ID + Material Demand + */ + public void setM_Demand_ID (int M_Demand_ID) + { + if (M_Demand_ID < 1) + throw new IllegalArgumentException ("M_Demand_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Demand_ID, Integer.valueOf(M_Demand_ID)); + } + + /** Get Demand. + @return Material Demand + */ + public int getM_Demand_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Demand_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Calculated Quantity. + @param QtyCalculated + Calculated Quantity + */ + public void setQtyCalculated (BigDecimal QtyCalculated) + { + if (QtyCalculated == null) + throw new IllegalArgumentException ("QtyCalculated is mandatory."); + set_Value (COLUMNNAME_QtyCalculated, QtyCalculated); + } + + /** Get Calculated Quantity. + @return Calculated Quantity + */ + public BigDecimal getQtyCalculated () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCalculated); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DiscountSchema.java b/base/src/org/compiere/model/X_M_DiscountSchema.java index c1ec75248e..cdd3bfb422 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchema.java +++ b/base/src/org/compiere/model/X_M_DiscountSchema.java @@ -1,324 +1,338 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DiscountSchema - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DiscountSchema extends PO + +/** Generated Model for M_DiscountSchema + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DiscountSchema extends PO implements I_M_DiscountSchema, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DiscountSchema_ID id -@param trxName transaction -*/ -public X_M_DiscountSchema (Properties ctx, int M_DiscountSchema_ID, String trxName) -{ -super (ctx, M_DiscountSchema_ID, trxName); -/** if (M_DiscountSchema_ID == 0) -{ -setDiscountType (null); -setIsBPartnerFlatDiscount (false); -setIsQuantityBased (true); // Y -setM_DiscountSchema_ID (0); -setName (null); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DiscountSchema (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DiscountSchema */ -public static final String Table_Name="M_DiscountSchema"; - -/** AD_Table_ID=475 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DiscountSchema[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DiscountSchema (Properties ctx, int M_DiscountSchema_ID, String trxName) + { + super (ctx, M_DiscountSchema_ID, trxName); + /** if (M_DiscountSchema_ID == 0) { setDiscountType (null); + setIsBPartnerFlatDiscount (false); + setIsQuantityBased (true); +// Y + setM_DiscountSchema_ID (0); + setName (null); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_M_DiscountSchema (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DiscountSchema[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** CumulativeLevel AD_Reference_ID=246 */ -public static final int CUMULATIVELEVEL_AD_Reference_ID=246; -/** Line = L */ +public static final int CUMULATIVELEVEL_AD_Reference_ID=246;/** Line = L */ public static final String CUMULATIVELEVEL_Line = "L"; -/** Set Accumulation Level. -@param CumulativeLevel Level for accumulative calculations */ -public void setCumulativeLevel (String CumulativeLevel) -{ -if (CumulativeLevel == null || CumulativeLevel.equals("L")); - else throw new IllegalArgumentException ("CumulativeLevel Invalid value - " + CumulativeLevel + " - Reference_ID=246 - L"); -if (CumulativeLevel != null && CumulativeLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CumulativeLevel = CumulativeLevel.substring(0,0); -} -set_Value ("CumulativeLevel", CumulativeLevel); -} -/** Get Accumulation Level. -@return Level for accumulative calculations */ -public String getCumulativeLevel() -{ -return (String)get_Value("CumulativeLevel"); -} -/** Column name CumulativeLevel */ -public static final String COLUMNNAME_CumulativeLevel = "CumulativeLevel"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Accumulation Level. + @param CumulativeLevel + Level for accumulative calculations + */ + public void setCumulativeLevel (String CumulativeLevel) + { +if (CumulativeLevel == null || CumulativeLevel.equals("L")); else throw new IllegalArgumentException ("CumulativeLevel Invalid value - " + CumulativeLevel + " - Reference_ID=246 - L"); if (CumulativeLevel != null && CumulativeLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + CumulativeLevel = CumulativeLevel.substring(0, 0); + } + set_Value (COLUMNNAME_CumulativeLevel, CumulativeLevel); + } + + /** Get Accumulation Level. + @return Level for accumulative calculations + */ + public String getCumulativeLevel () + { + return (String)get_Value(COLUMNNAME_CumulativeLevel); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DiscountType AD_Reference_ID=247 */ -public static final int DISCOUNTTYPE_AD_Reference_ID=247; -/** Breaks = B */ -public static final String DISCOUNTTYPE_Breaks = "B"; -/** Flat Percent = F */ -public static final String DISCOUNTTYPE_FlatPercent = "F"; -/** Pricelist = P */ -public static final String DISCOUNTTYPE_Pricelist = "P"; -/** Formula = S */ +public static final int DISCOUNTTYPE_AD_Reference_ID=247;/** Breaks = B */ +public static final String DISCOUNTTYPE_Breaks = "B";/** Flat Percent = F */ +public static final String DISCOUNTTYPE_FlatPercent = "F";/** Pricelist = P */ +public static final String DISCOUNTTYPE_Pricelist = "P";/** Formula = S */ public static final String DISCOUNTTYPE_Formula = "S"; -/** Set Discount Type. -@param DiscountType Type of trade discount calculation */ -public void setDiscountType (String DiscountType) -{ -if (DiscountType == null) throw new IllegalArgumentException ("DiscountType is mandatory"); -if (DiscountType.equals("B") || DiscountType.equals("F") || DiscountType.equals("P") || DiscountType.equals("S")); - else throw new IllegalArgumentException ("DiscountType Invalid value - " + DiscountType + " - Reference_ID=247 - B - F - P - S"); -if (DiscountType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DiscountType = DiscountType.substring(0,0); -} -set_Value ("DiscountType", DiscountType); -} -/** Get Discount Type. -@return Type of trade discount calculation */ -public String getDiscountType() -{ -return (String)get_Value("DiscountType"); -} -/** Column name DiscountType */ -public static final String COLUMNNAME_DiscountType = "DiscountType"; -/** Set Flat Discount %. -@param FlatDiscount Flat discount percentage */ -public void setFlatDiscount (BigDecimal FlatDiscount) -{ -set_Value ("FlatDiscount", FlatDiscount); -} -/** Get Flat Discount %. -@return Flat discount percentage */ -public BigDecimal getFlatDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("FlatDiscount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FlatDiscount */ -public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; -/** Set B.Partner Flat Discount. -@param IsBPartnerFlatDiscount Use flat discount defined on Business Partner Level */ -public void setIsBPartnerFlatDiscount (boolean IsBPartnerFlatDiscount) -{ -set_Value ("IsBPartnerFlatDiscount", Boolean.valueOf(IsBPartnerFlatDiscount)); -} -/** Get B.Partner Flat Discount. -@return Use flat discount defined on Business Partner Level */ -public boolean isBPartnerFlatDiscount() -{ -Object oo = get_Value("IsBPartnerFlatDiscount"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBPartnerFlatDiscount */ -public static final String COLUMNNAME_IsBPartnerFlatDiscount = "IsBPartnerFlatDiscount"; -/** Set Quantity based. -@param IsQuantityBased Trade discount break level based on Quantity (not value) */ -public void setIsQuantityBased (boolean IsQuantityBased) -{ -set_Value ("IsQuantityBased", Boolean.valueOf(IsQuantityBased)); -} -/** Get Quantity based. -@return Trade discount break level based on Quantity (not value) */ -public boolean isQuantityBased() -{ -Object oo = get_Value("IsQuantityBased"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsQuantityBased */ -public static final String COLUMNNAME_IsQuantityBased = "IsQuantityBased"; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID < 1) throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); -set_ValueNoCheck ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Script. -@param Script Dynamic Java Language Script to calculate result */ -public void setScript (String Script) -{ -if (Script != null && Script.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Script = Script.substring(0,1999); -} -set_Value ("Script", Script); -} -/** Get Script. -@return Dynamic Java Language Script to calculate result */ -public String getScript() -{ -return (String)get_Value("Script"); -} -/** Column name Script */ -public static final String COLUMNNAME_Script = "Script"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -} + /** Set Discount Type. + @param DiscountType + Type of trade discount calculation + */ + public void setDiscountType (String DiscountType) + { +if (DiscountType == null) throw new IllegalArgumentException ("DiscountType is mandatory");if (DiscountType.equals("B") || DiscountType.equals("F") || DiscountType.equals("P") || DiscountType.equals("S")); else throw new IllegalArgumentException ("DiscountType Invalid value - " + DiscountType + " - Reference_ID=247 - B - F - P - S"); if (DiscountType.length() > 1) + { + log.warning("Length > 1 - truncated"); + DiscountType = DiscountType.substring(0, 0); + } + set_Value (COLUMNNAME_DiscountType, DiscountType); + } + + /** Get Discount Type. + @return Type of trade discount calculation + */ + public String getDiscountType () + { + return (String)get_Value(COLUMNNAME_DiscountType); + } + + /** Set Flat Discount %. + @param FlatDiscount + Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount) + { + set_Value (COLUMNNAME_FlatDiscount, FlatDiscount); + } + + /** Get Flat Discount %. + @return Flat discount percentage + */ + public BigDecimal getFlatDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FlatDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set B.Partner Flat Discount. + @param IsBPartnerFlatDiscount + Use flat discount defined on Business Partner Level + */ + public void setIsBPartnerFlatDiscount (boolean IsBPartnerFlatDiscount) + { + set_Value (COLUMNNAME_IsBPartnerFlatDiscount, Boolean.valueOf(IsBPartnerFlatDiscount)); + } + + /** Get B.Partner Flat Discount. + @return Use flat discount defined on Business Partner Level + */ + public boolean isBPartnerFlatDiscount () + { + Object oo = get_Value(COLUMNNAME_IsBPartnerFlatDiscount); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity based. + @param IsQuantityBased + Trade discount break level based on Quantity (not value) + */ + public void setIsQuantityBased (boolean IsQuantityBased) + { + set_Value (COLUMNNAME_IsQuantityBased, Boolean.valueOf(IsQuantityBased)); + } + + /** Get Quantity based. + @return Trade discount break level based on Quantity (not value) + */ + public boolean isQuantityBased () + { + Object oo = get_Value(COLUMNNAME_IsQuantityBased); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Script. + @param Script + Dynamic Java Language Script to calculate result + */ + public void setScript (String Script) + { + if (Script != null && Script.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Script = Script.substring(0, 1999); + } + set_Value (COLUMNNAME_Script, Script); + } + + /** Get Script. + @return Dynamic Java Language Script to calculate result + */ + public String getScript () + { + return (String)get_Value(COLUMNNAME_Script); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java b/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java index 4c2eeba2ce..b3ef8bbac0 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java +++ b/base/src/org/compiere/model/X_M_DiscountSchemaBreak.java @@ -1,241 +1,296 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DiscountSchemaBreak - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DiscountSchemaBreak extends PO + +/** Generated Model for M_DiscountSchemaBreak + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DiscountSchemaBreak extends PO implements I_M_DiscountSchemaBreak, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DiscountSchemaBreak_ID id -@param trxName transaction -*/ -public X_M_DiscountSchemaBreak (Properties ctx, int M_DiscountSchemaBreak_ID, String trxName) -{ -super (ctx, M_DiscountSchemaBreak_ID, trxName); -/** if (M_DiscountSchemaBreak_ID == 0) -{ -setBreakDiscount (Env.ZERO); -setBreakValue (Env.ZERO); -setIsBPartnerFlatDiscount (false); // N -setM_DiscountSchemaBreak_ID (0); -setM_DiscountSchema_ID (0); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_DiscountSchemaBreak WHERE M_DiscountSchema_ID=@M_DiscountSchema_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DiscountSchemaBreak (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DiscountSchemaBreak */ -public static final String Table_Name="M_DiscountSchemaBreak"; - -/** AD_Table_ID=476 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DiscountSchemaBreak[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Break Discount %. -@param BreakDiscount Trade Discount in Percent for the break level */ -public void setBreakDiscount (BigDecimal BreakDiscount) -{ -if (BreakDiscount == null) throw new IllegalArgumentException ("BreakDiscount is mandatory."); -set_Value ("BreakDiscount", BreakDiscount); -} -/** Get Break Discount %. -@return Trade Discount in Percent for the break level */ -public BigDecimal getBreakDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("BreakDiscount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BreakDiscount */ -public static final String COLUMNNAME_BreakDiscount = "BreakDiscount"; -/** Set Break Value. -@param BreakValue Low Value of trade discount break level */ -public void setBreakValue (BigDecimal BreakValue) -{ -if (BreakValue == null) throw new IllegalArgumentException ("BreakValue is mandatory."); -set_Value ("BreakValue", BreakValue); -} -/** Get Break Value. -@return Low Value of trade discount break level */ -public BigDecimal getBreakValue() -{ -BigDecimal bd = (BigDecimal)get_Value("BreakValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BreakValue */ -public static final String COLUMNNAME_BreakValue = "BreakValue"; -/** Set B.Partner Flat Discount. -@param IsBPartnerFlatDiscount Use flat discount defined on Business Partner Level */ -public void setIsBPartnerFlatDiscount (boolean IsBPartnerFlatDiscount) -{ -set_Value ("IsBPartnerFlatDiscount", Boolean.valueOf(IsBPartnerFlatDiscount)); -} -/** Get B.Partner Flat Discount. -@return Use flat discount defined on Business Partner Level */ -public boolean isBPartnerFlatDiscount() -{ -Object oo = get_Value("IsBPartnerFlatDiscount"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBPartnerFlatDiscount */ -public static final String COLUMNNAME_IsBPartnerFlatDiscount = "IsBPartnerFlatDiscount"; -/** Set Discount Schema Break. -@param M_DiscountSchemaBreak_ID Trade Discount Break */ -public void setM_DiscountSchemaBreak_ID (int M_DiscountSchemaBreak_ID) -{ -if (M_DiscountSchemaBreak_ID < 1) throw new IllegalArgumentException ("M_DiscountSchemaBreak_ID is mandatory."); -set_ValueNoCheck ("M_DiscountSchemaBreak_ID", Integer.valueOf(M_DiscountSchemaBreak_ID)); -} -/** Get Discount Schema Break. -@return Trade Discount Break */ -public int getM_DiscountSchemaBreak_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchemaBreak_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchemaBreak_ID */ -public static final String COLUMNNAME_M_DiscountSchemaBreak_ID = "M_DiscountSchemaBreak_ID"; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID < 1) throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); -set_ValueNoCheck ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DiscountSchemaBreak (Properties ctx, int M_DiscountSchemaBreak_ID, String trxName) + { + super (ctx, M_DiscountSchemaBreak_ID, trxName); + /** if (M_DiscountSchemaBreak_ID == 0) { setBreakDiscount (Env.ZERO); + setBreakValue (Env.ZERO); + setIsBPartnerFlatDiscount (false); +// N + setM_DiscountSchemaBreak_ID (0); + setM_DiscountSchema_ID (0); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_DiscountSchemaBreak WHERE M_DiscountSchema_ID=@M_DiscountSchema_ID@ +} */ + } + + /** Load Constructor */ + public X_M_DiscountSchemaBreak (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DiscountSchemaBreak[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Break Discount %. + @param BreakDiscount + Trade Discount in Percent for the break level + */ + public void setBreakDiscount (BigDecimal BreakDiscount) + { + if (BreakDiscount == null) + throw new IllegalArgumentException ("BreakDiscount is mandatory."); + set_Value (COLUMNNAME_BreakDiscount, BreakDiscount); + } + + /** Get Break Discount %. + @return Trade Discount in Percent for the break level + */ + public BigDecimal getBreakDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BreakDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Break Value. + @param BreakValue + Low Value of trade discount break level + */ + public void setBreakValue (BigDecimal BreakValue) + { + if (BreakValue == null) + throw new IllegalArgumentException ("BreakValue is mandatory."); + set_Value (COLUMNNAME_BreakValue, BreakValue); + } + + /** Get Break Value. + @return Low Value of trade discount break level + */ + public BigDecimal getBreakValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BreakValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set B.Partner Flat Discount. + @param IsBPartnerFlatDiscount + Use flat discount defined on Business Partner Level + */ + public void setIsBPartnerFlatDiscount (boolean IsBPartnerFlatDiscount) + { + set_Value (COLUMNNAME_IsBPartnerFlatDiscount, Boolean.valueOf(IsBPartnerFlatDiscount)); + } + + /** Get B.Partner Flat Discount. + @return Use flat discount defined on Business Partner Level + */ + public boolean isBPartnerFlatDiscount () + { + Object oo = get_Value(COLUMNNAME_IsBPartnerFlatDiscount); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Schema Break. + @param M_DiscountSchemaBreak_ID + Trade Discount Break + */ + public void setM_DiscountSchemaBreak_ID (int M_DiscountSchemaBreak_ID) + { + if (M_DiscountSchemaBreak_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchemaBreak_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaBreak_ID, Integer.valueOf(M_DiscountSchemaBreak_ID)); + } + + /** Get Discount Schema Break. + @return Trade Discount Break + */ + public int getM_DiscountSchemaBreak_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchemaBreak_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java index 3180c82eab..f369f90292 100644 --- a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java +++ b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java @@ -1,732 +1,834 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DiscountSchemaLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DiscountSchemaLine extends PO + +/** Generated Model for M_DiscountSchemaLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DiscountSchemaLine_ID id -@param trxName transaction -*/ -public X_M_DiscountSchemaLine (Properties ctx, int M_DiscountSchemaLine_ID, String trxName) -{ -super (ctx, M_DiscountSchemaLine_ID, trxName); -/** if (M_DiscountSchemaLine_ID == 0) -{ -setC_ConversionType_ID (0); -setConversionDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setLimit_AddAmt (Env.ZERO); -setLimit_Base (null); // X -setLimit_Discount (Env.ZERO); -setLimit_MaxAmt (Env.ZERO); -setLimit_MinAmt (Env.ZERO); -setLimit_Rounding (null); // C -setList_AddAmt (Env.ZERO); -setList_Base (null); // L -setList_Discount (Env.ZERO); -setList_MaxAmt (Env.ZERO); -setList_MinAmt (Env.ZERO); -setList_Rounding (null); // C -setM_DiscountSchemaLine_ID (0); -setM_DiscountSchema_ID (0); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_DiscountSchemaLine WHERE M_DiscountSchema_ID=@M_DiscountSchema_ID@ -setStd_AddAmt (Env.ZERO); -setStd_Base (null); // S -setStd_Discount (Env.ZERO); -setStd_MaxAmt (Env.ZERO); -setStd_MinAmt (Env.ZERO); -setStd_Rounding (null); // C -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DiscountSchemaLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DiscountSchemaLine */ -public static final String Table_Name="M_DiscountSchemaLine"; - -/** AD_Table_ID=477 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DiscountSchemaLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency Type. -@param C_ConversionType_ID Currency Conversion Rate Type */ -public void setC_ConversionType_ID (int C_ConversionType_ID) -{ -if (C_ConversionType_ID < 1) throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); -set_Value ("C_ConversionType_ID", Integer.valueOf(C_ConversionType_ID)); -} -/** Get Currency Type. -@return Currency Conversion Rate Type */ -public int getC_ConversionType_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionType_ID */ -public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; -/** Set Conversion Date. -@param ConversionDate Date for selecting conversion rate */ -public void setConversionDate (Timestamp ConversionDate) -{ -if (ConversionDate == null) throw new IllegalArgumentException ("ConversionDate is mandatory."); -set_Value ("ConversionDate", ConversionDate); -} -/** Get Conversion Date. -@return Date for selecting conversion rate */ -public Timestamp getConversionDate() -{ -return (Timestamp)get_Value("ConversionDate"); -} -/** Column name ConversionDate */ -public static final String COLUMNNAME_ConversionDate = "ConversionDate"; -/** Set Limit price Surcharge Amount. -@param Limit_AddAmt Amount added to the converted/copied price before multiplying */ -public void setLimit_AddAmt (BigDecimal Limit_AddAmt) -{ -if (Limit_AddAmt == null) throw new IllegalArgumentException ("Limit_AddAmt is mandatory."); -set_Value ("Limit_AddAmt", Limit_AddAmt); -} -/** Get Limit price Surcharge Amount. -@return Amount added to the converted/copied price before multiplying */ -public BigDecimal getLimit_AddAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Limit_AddAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Limit_AddAmt */ -public static final String COLUMNNAME_Limit_AddAmt = "Limit_AddAmt"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DiscountSchemaLine (Properties ctx, int M_DiscountSchemaLine_ID, String trxName) + { + super (ctx, M_DiscountSchemaLine_ID, trxName); + /** if (M_DiscountSchemaLine_ID == 0) { setC_ConversionType_ID (0); + setConversionDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setLimit_AddAmt (Env.ZERO); + setLimit_Base (null); +// X + setLimit_Discount (Env.ZERO); + setLimit_MaxAmt (Env.ZERO); + setLimit_MinAmt (Env.ZERO); + setLimit_Rounding (null); +// C + setList_AddAmt (Env.ZERO); + setList_Base (null); +// L + setList_Discount (Env.ZERO); + setList_MaxAmt (Env.ZERO); + setList_MinAmt (Env.ZERO); + setList_Rounding (null); +// C + setM_DiscountSchemaLine_ID (0); + setM_DiscountSchema_ID (0); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_DiscountSchemaLine WHERE M_DiscountSchema_ID=@M_DiscountSchema_ID@ + setStd_AddAmt (Env.ZERO); + setStd_Base (null); +// S + setStd_Discount (Env.ZERO); + setStd_MaxAmt (Env.ZERO); + setStd_MinAmt (Env.ZERO); + setStd_Rounding (null); +// C +} */ + } + + /** Load Constructor */ + public X_M_DiscountSchemaLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DiscountSchemaLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getI_C_ConversionType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Conversion Date. + @param ConversionDate + Date for selecting conversion rate + */ + public void setConversionDate (Timestamp ConversionDate) + { + if (ConversionDate == null) + throw new IllegalArgumentException ("ConversionDate is mandatory."); + set_Value (COLUMNNAME_ConversionDate, ConversionDate); + } + + /** Get Conversion Date. + @return Date for selecting conversion rate + */ + public Timestamp getConversionDate () + { + return (Timestamp)get_Value(COLUMNNAME_ConversionDate); + } + + /** Set Limit price Surcharge Amount. + @param Limit_AddAmt + Amount added to the converted/copied price before multiplying + */ + public void setLimit_AddAmt (BigDecimal Limit_AddAmt) + { + if (Limit_AddAmt == null) + throw new IllegalArgumentException ("Limit_AddAmt is mandatory."); + set_Value (COLUMNNAME_Limit_AddAmt, Limit_AddAmt); + } + + /** Get Limit price Surcharge Amount. + @return Amount added to the converted/copied price before multiplying + */ + public BigDecimal getLimit_AddAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_AddAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** Limit_Base AD_Reference_ID=194 */ -public static final int LIMIT_BASE_AD_Reference_ID=194; -/** Fixed Price = F */ -public static final String LIMIT_BASE_FixedPrice = "F"; -/** List Price = L */ -public static final String LIMIT_BASE_ListPrice = "L"; -/** Standard Price = S */ -public static final String LIMIT_BASE_StandardPrice = "S"; -/** Limit (PO) Price = X */ +public static final int LIMIT_BASE_AD_Reference_ID=194;/** Fixed Price = F */ +public static final String LIMIT_BASE_FixedPrice = "F";/** List Price = L */ +public static final String LIMIT_BASE_ListPrice = "L";/** Standard Price = S */ +public static final String LIMIT_BASE_StandardPrice = "S";/** Limit (PO) Price = X */ public static final String LIMIT_BASE_LimitPOPrice = "X"; -/** Set Limit price Base. -@param Limit_Base Base price for calculation of the new price */ -public void setLimit_Base (String Limit_Base) -{ -if (Limit_Base == null) throw new IllegalArgumentException ("Limit_Base is mandatory"); -if (Limit_Base.equals("F") || Limit_Base.equals("L") || Limit_Base.equals("S") || Limit_Base.equals("X")); - else throw new IllegalArgumentException ("Limit_Base Invalid value - " + Limit_Base + " - Reference_ID=194 - F - L - S - X"); -if (Limit_Base.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Limit_Base = Limit_Base.substring(0,0); -} -set_Value ("Limit_Base", Limit_Base); -} -/** Get Limit price Base. -@return Base price for calculation of the new price */ -public String getLimit_Base() -{ -return (String)get_Value("Limit_Base"); -} -/** Column name Limit_Base */ -public static final String COLUMNNAME_Limit_Base = "Limit_Base"; -/** Set Limit price Discount %. -@param Limit_Discount Discount in percent to be subtracted from base, if negative it will be added to base price */ -public void setLimit_Discount (BigDecimal Limit_Discount) -{ -if (Limit_Discount == null) throw new IllegalArgumentException ("Limit_Discount is mandatory."); -set_Value ("Limit_Discount", Limit_Discount); -} -/** Get Limit price Discount %. -@return Discount in percent to be subtracted from base, if negative it will be added to base price */ -public BigDecimal getLimit_Discount() -{ -BigDecimal bd = (BigDecimal)get_Value("Limit_Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Limit_Discount */ -public static final String COLUMNNAME_Limit_Discount = "Limit_Discount"; -/** Set Fixed Limit Price. -@param Limit_Fixed Fixed Limit Price (not calculated) */ -public void setLimit_Fixed (BigDecimal Limit_Fixed) -{ -set_Value ("Limit_Fixed", Limit_Fixed); -} -/** Get Fixed Limit Price. -@return Fixed Limit Price (not calculated) */ -public BigDecimal getLimit_Fixed() -{ -BigDecimal bd = (BigDecimal)get_Value("Limit_Fixed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Limit_Fixed */ -public static final String COLUMNNAME_Limit_Fixed = "Limit_Fixed"; -/** Set Limit price max Margin. -@param Limit_MaxAmt Maximum difference to original limit price; - ignored if zero */ -public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt) -{ -if (Limit_MaxAmt == null) throw new IllegalArgumentException ("Limit_MaxAmt is mandatory."); -set_Value ("Limit_MaxAmt", Limit_MaxAmt); -} -/** Get Limit price max Margin. -@return Maximum difference to original limit price; - ignored if zero */ -public BigDecimal getLimit_MaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Limit_MaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Limit_MaxAmt */ -public static final String COLUMNNAME_Limit_MaxAmt = "Limit_MaxAmt"; -/** Set Limit price min Margin. -@param Limit_MinAmt Minimum difference to original limit price; - ignored if zero */ -public void setLimit_MinAmt (BigDecimal Limit_MinAmt) -{ -if (Limit_MinAmt == null) throw new IllegalArgumentException ("Limit_MinAmt is mandatory."); -set_Value ("Limit_MinAmt", Limit_MinAmt); -} -/** Get Limit price min Margin. -@return Minimum difference to original limit price; - ignored if zero */ -public BigDecimal getLimit_MinAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Limit_MinAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Limit_MinAmt */ -public static final String COLUMNNAME_Limit_MinAmt = "Limit_MinAmt"; + /** Set Limit price Base. + @param Limit_Base + Base price for calculation of the new price + */ + public void setLimit_Base (String Limit_Base) + { +if (Limit_Base == null) throw new IllegalArgumentException ("Limit_Base is mandatory");if (Limit_Base.equals("F") || Limit_Base.equals("L") || Limit_Base.equals("S") || Limit_Base.equals("X")); else throw new IllegalArgumentException ("Limit_Base Invalid value - " + Limit_Base + " - Reference_ID=194 - F - L - S - X"); if (Limit_Base.length() > 1) + { + log.warning("Length > 1 - truncated"); + Limit_Base = Limit_Base.substring(0, 0); + } + set_Value (COLUMNNAME_Limit_Base, Limit_Base); + } + + /** Get Limit price Base. + @return Base price for calculation of the new price + */ + public String getLimit_Base () + { + return (String)get_Value(COLUMNNAME_Limit_Base); + } + + /** Set Limit price Discount %. + @param Limit_Discount + Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public void setLimit_Discount (BigDecimal Limit_Discount) + { + if (Limit_Discount == null) + throw new IllegalArgumentException ("Limit_Discount is mandatory."); + set_Value (COLUMNNAME_Limit_Discount, Limit_Discount); + } + + /** Get Limit price Discount %. + @return Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public BigDecimal getLimit_Discount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Fixed Limit Price. + @param Limit_Fixed + Fixed Limit Price (not calculated) + */ + public void setLimit_Fixed (BigDecimal Limit_Fixed) + { + set_Value (COLUMNNAME_Limit_Fixed, Limit_Fixed); + } + + /** Get Fixed Limit Price. + @return Fixed Limit Price (not calculated) + */ + public BigDecimal getLimit_Fixed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_Fixed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit price max Margin. + @param Limit_MaxAmt + Maximum difference to original limit price; ignored if zero + */ + public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt) + { + if (Limit_MaxAmt == null) + throw new IllegalArgumentException ("Limit_MaxAmt is mandatory."); + set_Value (COLUMNNAME_Limit_MaxAmt, Limit_MaxAmt); + } + + /** Get Limit price max Margin. + @return Maximum difference to original limit price; ignored if zero + */ + public BigDecimal getLimit_MaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit price min Margin. + @param Limit_MinAmt + Minimum difference to original limit price; ignored if zero + */ + public void setLimit_MinAmt (BigDecimal Limit_MinAmt) + { + if (Limit_MinAmt == null) + throw new IllegalArgumentException ("Limit_MinAmt is mandatory."); + set_Value (COLUMNNAME_Limit_MinAmt, Limit_MinAmt); + } + + /** Get Limit price min Margin. + @return Minimum difference to original limit price; ignored if zero + */ + public BigDecimal getLimit_MinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** Limit_Rounding AD_Reference_ID=155 */ -public static final int LIMIT_ROUNDING_AD_Reference_ID=155; -/** Whole Number .00 = 0 */ -public static final String LIMIT_ROUNDING_WholeNumber00 = "0"; -/** Nickel .05, .10, .15, ... = 5 */ -public static final String LIMIT_ROUNDING_Nickel051015 = "5"; -/** Ending in 9/5 = 9 */ -public static final String LIMIT_ROUNDING_EndingIn95 = "9"; -/** Currency Precision = C */ -public static final String LIMIT_ROUNDING_CurrencyPrecision = "C"; -/** Dime .10, .20, .30, ... = D */ -public static final String LIMIT_ROUNDING_Dime102030 = "D"; -/** No Rounding = N */ -public static final String LIMIT_ROUNDING_NoRounding = "N"; -/** Quarter .25 .50 .75 = Q */ -public static final String LIMIT_ROUNDING_Quarter255075 = "Q"; -/** Ten 10.00, 20.00, .. = T */ +public static final int LIMIT_ROUNDING_AD_Reference_ID=155;/** Whole Number .00 = 0 */ +public static final String LIMIT_ROUNDING_WholeNumber00 = "0";/** Nickel .05, .10, .15, ... = 5 */ +public static final String LIMIT_ROUNDING_Nickel051015 = "5";/** Ending in 9/5 = 9 */ +public static final String LIMIT_ROUNDING_EndingIn95 = "9";/** Currency Precision = C */ +public static final String LIMIT_ROUNDING_CurrencyPrecision = "C";/** Dime .10, .20, .30, ... = D */ +public static final String LIMIT_ROUNDING_Dime102030 = "D";/** No Rounding = N */ +public static final String LIMIT_ROUNDING_NoRounding = "N";/** Quarter .25 .50 .75 = Q */ +public static final String LIMIT_ROUNDING_Quarter255075 = "Q";/** Ten 10.00, 20.00, .. = T */ public static final String LIMIT_ROUNDING_Ten10002000 = "T"; -/** Set Limit price Rounding. -@param Limit_Rounding Rounding of the final result */ -public void setLimit_Rounding (String Limit_Rounding) -{ -if (Limit_Rounding == null) throw new IllegalArgumentException ("Limit_Rounding is mandatory"); -if (Limit_Rounding.equals("0") || Limit_Rounding.equals("5") || Limit_Rounding.equals("9") || Limit_Rounding.equals("C") || Limit_Rounding.equals("D") || Limit_Rounding.equals("N") || Limit_Rounding.equals("Q") || Limit_Rounding.equals("T")); - else throw new IllegalArgumentException ("Limit_Rounding Invalid value - " + Limit_Rounding + " - Reference_ID=155 - 0 - 5 - 9 - C - D - N - Q - T"); -if (Limit_Rounding.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Limit_Rounding = Limit_Rounding.substring(0,0); -} -set_Value ("Limit_Rounding", Limit_Rounding); -} -/** Get Limit price Rounding. -@return Rounding of the final result */ -public String getLimit_Rounding() -{ -return (String)get_Value("Limit_Rounding"); -} -/** Column name Limit_Rounding */ -public static final String COLUMNNAME_Limit_Rounding = "Limit_Rounding"; -/** Set List price Surcharge Amount. -@param List_AddAmt List Price Surcharge Amount */ -public void setList_AddAmt (BigDecimal List_AddAmt) -{ -if (List_AddAmt == null) throw new IllegalArgumentException ("List_AddAmt is mandatory."); -set_Value ("List_AddAmt", List_AddAmt); -} -/** Get List price Surcharge Amount. -@return List Price Surcharge Amount */ -public BigDecimal getList_AddAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("List_AddAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name List_AddAmt */ -public static final String COLUMNNAME_List_AddAmt = "List_AddAmt"; + /** Set Limit price Rounding. + @param Limit_Rounding + Rounding of the final result + */ + public void setLimit_Rounding (String Limit_Rounding) + { +if (Limit_Rounding == null) throw new IllegalArgumentException ("Limit_Rounding is mandatory");if (Limit_Rounding.equals("0") || Limit_Rounding.equals("5") || Limit_Rounding.equals("9") || Limit_Rounding.equals("C") || Limit_Rounding.equals("D") || Limit_Rounding.equals("N") || Limit_Rounding.equals("Q") || Limit_Rounding.equals("T")); else throw new IllegalArgumentException ("Limit_Rounding Invalid value - " + Limit_Rounding + " - Reference_ID=155 - 0 - 5 - 9 - C - D - N - Q - T"); if (Limit_Rounding.length() > 1) + { + log.warning("Length > 1 - truncated"); + Limit_Rounding = Limit_Rounding.substring(0, 0); + } + set_Value (COLUMNNAME_Limit_Rounding, Limit_Rounding); + } + + /** Get Limit price Rounding. + @return Rounding of the final result + */ + public String getLimit_Rounding () + { + return (String)get_Value(COLUMNNAME_Limit_Rounding); + } + + /** Set List price Surcharge Amount. + @param List_AddAmt + List Price Surcharge Amount + */ + public void setList_AddAmt (BigDecimal List_AddAmt) + { + if (List_AddAmt == null) + throw new IllegalArgumentException ("List_AddAmt is mandatory."); + set_Value (COLUMNNAME_List_AddAmt, List_AddAmt); + } + + /** Get List price Surcharge Amount. + @return List Price Surcharge Amount + */ + public BigDecimal getList_AddAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_AddAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** List_Base AD_Reference_ID=194 */ -public static final int LIST_BASE_AD_Reference_ID=194; -/** Fixed Price = F */ -public static final String LIST_BASE_FixedPrice = "F"; -/** List Price = L */ -public static final String LIST_BASE_ListPrice = "L"; -/** Standard Price = S */ -public static final String LIST_BASE_StandardPrice = "S"; -/** Limit (PO) Price = X */ +public static final int LIST_BASE_AD_Reference_ID=194;/** Fixed Price = F */ +public static final String LIST_BASE_FixedPrice = "F";/** List Price = L */ +public static final String LIST_BASE_ListPrice = "L";/** Standard Price = S */ +public static final String LIST_BASE_StandardPrice = "S";/** Limit (PO) Price = X */ public static final String LIST_BASE_LimitPOPrice = "X"; -/** Set List price Base. -@param List_Base Price used as the basis for price list calculations */ -public void setList_Base (String List_Base) -{ -if (List_Base == null) throw new IllegalArgumentException ("List_Base is mandatory"); -if (List_Base.equals("F") || List_Base.equals("L") || List_Base.equals("S") || List_Base.equals("X")); - else throw new IllegalArgumentException ("List_Base Invalid value - " + List_Base + " - Reference_ID=194 - F - L - S - X"); -if (List_Base.length() > 1) -{ -log.warning("Length > 1 - truncated"); -List_Base = List_Base.substring(0,0); -} -set_Value ("List_Base", List_Base); -} -/** Get List price Base. -@return Price used as the basis for price list calculations */ -public String getList_Base() -{ -return (String)get_Value("List_Base"); -} -/** Column name List_Base */ -public static final String COLUMNNAME_List_Base = "List_Base"; -/** Set List price Discount %. -@param List_Discount Discount from list price as a percentage */ -public void setList_Discount (BigDecimal List_Discount) -{ -if (List_Discount == null) throw new IllegalArgumentException ("List_Discount is mandatory."); -set_Value ("List_Discount", List_Discount); -} -/** Get List price Discount %. -@return Discount from list price as a percentage */ -public BigDecimal getList_Discount() -{ -BigDecimal bd = (BigDecimal)get_Value("List_Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name List_Discount */ -public static final String COLUMNNAME_List_Discount = "List_Discount"; -/** Set Fixed List Price. -@param List_Fixed Fixes List Price (not calculated) */ -public void setList_Fixed (BigDecimal List_Fixed) -{ -set_Value ("List_Fixed", List_Fixed); -} -/** Get Fixed List Price. -@return Fixes List Price (not calculated) */ -public BigDecimal getList_Fixed() -{ -BigDecimal bd = (BigDecimal)get_Value("List_Fixed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name List_Fixed */ -public static final String COLUMNNAME_List_Fixed = "List_Fixed"; -/** Set List price max Margin. -@param List_MaxAmt Maximum margin for a product */ -public void setList_MaxAmt (BigDecimal List_MaxAmt) -{ -if (List_MaxAmt == null) throw new IllegalArgumentException ("List_MaxAmt is mandatory."); -set_Value ("List_MaxAmt", List_MaxAmt); -} -/** Get List price max Margin. -@return Maximum margin for a product */ -public BigDecimal getList_MaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("List_MaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name List_MaxAmt */ -public static final String COLUMNNAME_List_MaxAmt = "List_MaxAmt"; -/** Set List price min Margin. -@param List_MinAmt Minimum margin for a product */ -public void setList_MinAmt (BigDecimal List_MinAmt) -{ -if (List_MinAmt == null) throw new IllegalArgumentException ("List_MinAmt is mandatory."); -set_Value ("List_MinAmt", List_MinAmt); -} -/** Get List price min Margin. -@return Minimum margin for a product */ -public BigDecimal getList_MinAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("List_MinAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name List_MinAmt */ -public static final String COLUMNNAME_List_MinAmt = "List_MinAmt"; + /** Set List price Base. + @param List_Base + Price used as the basis for price list calculations + */ + public void setList_Base (String List_Base) + { +if (List_Base == null) throw new IllegalArgumentException ("List_Base is mandatory");if (List_Base.equals("F") || List_Base.equals("L") || List_Base.equals("S") || List_Base.equals("X")); else throw new IllegalArgumentException ("List_Base Invalid value - " + List_Base + " - Reference_ID=194 - F - L - S - X"); if (List_Base.length() > 1) + { + log.warning("Length > 1 - truncated"); + List_Base = List_Base.substring(0, 0); + } + set_Value (COLUMNNAME_List_Base, List_Base); + } + + /** Get List price Base. + @return Price used as the basis for price list calculations + */ + public String getList_Base () + { + return (String)get_Value(COLUMNNAME_List_Base); + } + + /** Set List price Discount %. + @param List_Discount + Discount from list price as a percentage + */ + public void setList_Discount (BigDecimal List_Discount) + { + if (List_Discount == null) + throw new IllegalArgumentException ("List_Discount is mandatory."); + set_Value (COLUMNNAME_List_Discount, List_Discount); + } + + /** Get List price Discount %. + @return Discount from list price as a percentage + */ + public BigDecimal getList_Discount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Fixed List Price. + @param List_Fixed + Fixes List Price (not calculated) + */ + public void setList_Fixed (BigDecimal List_Fixed) + { + set_Value (COLUMNNAME_List_Fixed, List_Fixed); + } + + /** Get Fixed List Price. + @return Fixes List Price (not calculated) + */ + public BigDecimal getList_Fixed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_Fixed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List price max Margin. + @param List_MaxAmt + Maximum margin for a product + */ + public void setList_MaxAmt (BigDecimal List_MaxAmt) + { + if (List_MaxAmt == null) + throw new IllegalArgumentException ("List_MaxAmt is mandatory."); + set_Value (COLUMNNAME_List_MaxAmt, List_MaxAmt); + } + + /** Get List price max Margin. + @return Maximum margin for a product + */ + public BigDecimal getList_MaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List price min Margin. + @param List_MinAmt + Minimum margin for a product + */ + public void setList_MinAmt (BigDecimal List_MinAmt) + { + if (List_MinAmt == null) + throw new IllegalArgumentException ("List_MinAmt is mandatory."); + set_Value (COLUMNNAME_List_MinAmt, List_MinAmt); + } + + /** Get List price min Margin. + @return Minimum margin for a product + */ + public BigDecimal getList_MinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** List_Rounding AD_Reference_ID=155 */ -public static final int LIST_ROUNDING_AD_Reference_ID=155; -/** Whole Number .00 = 0 */ -public static final String LIST_ROUNDING_WholeNumber00 = "0"; -/** Nickel .05, .10, .15, ... = 5 */ -public static final String LIST_ROUNDING_Nickel051015 = "5"; -/** Ending in 9/5 = 9 */ -public static final String LIST_ROUNDING_EndingIn95 = "9"; -/** Currency Precision = C */ -public static final String LIST_ROUNDING_CurrencyPrecision = "C"; -/** Dime .10, .20, .30, ... = D */ -public static final String LIST_ROUNDING_Dime102030 = "D"; -/** No Rounding = N */ -public static final String LIST_ROUNDING_NoRounding = "N"; -/** Quarter .25 .50 .75 = Q */ -public static final String LIST_ROUNDING_Quarter255075 = "Q"; -/** Ten 10.00, 20.00, .. = T */ +public static final int LIST_ROUNDING_AD_Reference_ID=155;/** Whole Number .00 = 0 */ +public static final String LIST_ROUNDING_WholeNumber00 = "0";/** Nickel .05, .10, .15, ... = 5 */ +public static final String LIST_ROUNDING_Nickel051015 = "5";/** Ending in 9/5 = 9 */ +public static final String LIST_ROUNDING_EndingIn95 = "9";/** Currency Precision = C */ +public static final String LIST_ROUNDING_CurrencyPrecision = "C";/** Dime .10, .20, .30, ... = D */ +public static final String LIST_ROUNDING_Dime102030 = "D";/** No Rounding = N */ +public static final String LIST_ROUNDING_NoRounding = "N";/** Quarter .25 .50 .75 = Q */ +public static final String LIST_ROUNDING_Quarter255075 = "Q";/** Ten 10.00, 20.00, .. = T */ public static final String LIST_ROUNDING_Ten10002000 = "T"; -/** Set List price Rounding. -@param List_Rounding Rounding rule for final list price */ -public void setList_Rounding (String List_Rounding) -{ -if (List_Rounding == null) throw new IllegalArgumentException ("List_Rounding is mandatory"); -if (List_Rounding.equals("0") || List_Rounding.equals("5") || List_Rounding.equals("9") || List_Rounding.equals("C") || List_Rounding.equals("D") || List_Rounding.equals("N") || List_Rounding.equals("Q") || List_Rounding.equals("T")); - else throw new IllegalArgumentException ("List_Rounding Invalid value - " + List_Rounding + " - Reference_ID=155 - 0 - 5 - 9 - C - D - N - Q - T"); -if (List_Rounding.length() > 1) -{ -log.warning("Length > 1 - truncated"); -List_Rounding = List_Rounding.substring(0,0); -} -set_Value ("List_Rounding", List_Rounding); -} -/** Get List price Rounding. -@return Rounding rule for final list price */ -public String getList_Rounding() -{ -return (String)get_Value("List_Rounding"); -} -/** Column name List_Rounding */ -public static final String COLUMNNAME_List_Rounding = "List_Rounding"; -/** Set Discount Pricelist. -@param M_DiscountSchemaLine_ID Line of the pricelist trade discount schema */ -public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID) -{ -if (M_DiscountSchemaLine_ID < 1) throw new IllegalArgumentException ("M_DiscountSchemaLine_ID is mandatory."); -set_ValueNoCheck ("M_DiscountSchemaLine_ID", Integer.valueOf(M_DiscountSchemaLine_ID)); -} -/** Get Discount Pricelist. -@return Line of the pricelist trade discount schema */ -public int getM_DiscountSchemaLine_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchemaLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchemaLine_ID */ -public static final String COLUMNNAME_M_DiscountSchemaLine_ID = "M_DiscountSchemaLine_ID"; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID < 1) throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); -set_ValueNoCheck ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Standard price Surcharge Amount. -@param Std_AddAmt Amount added to a price as a surcharge */ -public void setStd_AddAmt (BigDecimal Std_AddAmt) -{ -if (Std_AddAmt == null) throw new IllegalArgumentException ("Std_AddAmt is mandatory."); -set_Value ("Std_AddAmt", Std_AddAmt); -} -/** Get Standard price Surcharge Amount. -@return Amount added to a price as a surcharge */ -public BigDecimal getStd_AddAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Std_AddAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Std_AddAmt */ -public static final String COLUMNNAME_Std_AddAmt = "Std_AddAmt"; + /** Set List price Rounding. + @param List_Rounding + Rounding rule for final list price + */ + public void setList_Rounding (String List_Rounding) + { +if (List_Rounding == null) throw new IllegalArgumentException ("List_Rounding is mandatory");if (List_Rounding.equals("0") || List_Rounding.equals("5") || List_Rounding.equals("9") || List_Rounding.equals("C") || List_Rounding.equals("D") || List_Rounding.equals("N") || List_Rounding.equals("Q") || List_Rounding.equals("T")); else throw new IllegalArgumentException ("List_Rounding Invalid value - " + List_Rounding + " - Reference_ID=155 - 0 - 5 - 9 - C - D - N - Q - T"); if (List_Rounding.length() > 1) + { + log.warning("Length > 1 - truncated"); + List_Rounding = List_Rounding.substring(0, 0); + } + set_Value (COLUMNNAME_List_Rounding, List_Rounding); + } + + /** Get List price Rounding. + @return Rounding rule for final list price + */ + public String getList_Rounding () + { + return (String)get_Value(COLUMNNAME_List_Rounding); + } + + /** Set Discount Pricelist. + @param M_DiscountSchemaLine_ID + Line of the pricelist trade discount schema + */ + public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID) + { + if (M_DiscountSchemaLine_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchemaLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaLine_ID, Integer.valueOf(M_DiscountSchemaLine_ID)); + } + + /** Get Discount Pricelist. + @return Line of the pricelist trade discount schema + */ + public int getM_DiscountSchemaLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchemaLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } + + /** Set Standard price Surcharge Amount. + @param Std_AddAmt + Amount added to a price as a surcharge + */ + public void setStd_AddAmt (BigDecimal Std_AddAmt) + { + if (Std_AddAmt == null) + throw new IllegalArgumentException ("Std_AddAmt is mandatory."); + set_Value (COLUMNNAME_Std_AddAmt, Std_AddAmt); + } + + /** Get Standard price Surcharge Amount. + @return Amount added to a price as a surcharge + */ + public BigDecimal getStd_AddAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_AddAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** Std_Base AD_Reference_ID=194 */ -public static final int STD_BASE_AD_Reference_ID=194; -/** Fixed Price = F */ -public static final String STD_BASE_FixedPrice = "F"; -/** List Price = L */ -public static final String STD_BASE_ListPrice = "L"; -/** Standard Price = S */ -public static final String STD_BASE_StandardPrice = "S"; -/** Limit (PO) Price = X */ +public static final int STD_BASE_AD_Reference_ID=194;/** Fixed Price = F */ +public static final String STD_BASE_FixedPrice = "F";/** List Price = L */ +public static final String STD_BASE_ListPrice = "L";/** Standard Price = S */ +public static final String STD_BASE_StandardPrice = "S";/** Limit (PO) Price = X */ public static final String STD_BASE_LimitPOPrice = "X"; -/** Set Standard price Base. -@param Std_Base Base price for calculating new standard price */ -public void setStd_Base (String Std_Base) -{ -if (Std_Base == null) throw new IllegalArgumentException ("Std_Base is mandatory"); -if (Std_Base.equals("F") || Std_Base.equals("L") || Std_Base.equals("S") || Std_Base.equals("X")); - else throw new IllegalArgumentException ("Std_Base Invalid value - " + Std_Base + " - Reference_ID=194 - F - L - S - X"); -if (Std_Base.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Std_Base = Std_Base.substring(0,0); -} -set_Value ("Std_Base", Std_Base); -} -/** Get Standard price Base. -@return Base price for calculating new standard price */ -public String getStd_Base() -{ -return (String)get_Value("Std_Base"); -} -/** Column name Std_Base */ -public static final String COLUMNNAME_Std_Base = "Std_Base"; -/** Set Standard price Discount %. -@param Std_Discount Discount percentage to subtract from base price */ -public void setStd_Discount (BigDecimal Std_Discount) -{ -if (Std_Discount == null) throw new IllegalArgumentException ("Std_Discount is mandatory."); -set_Value ("Std_Discount", Std_Discount); -} -/** Get Standard price Discount %. -@return Discount percentage to subtract from base price */ -public BigDecimal getStd_Discount() -{ -BigDecimal bd = (BigDecimal)get_Value("Std_Discount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Std_Discount */ -public static final String COLUMNNAME_Std_Discount = "Std_Discount"; -/** Set Fixed Standard Price. -@param Std_Fixed Fixed Standard Price (not calculated) */ -public void setStd_Fixed (BigDecimal Std_Fixed) -{ -set_Value ("Std_Fixed", Std_Fixed); -} -/** Get Fixed Standard Price. -@return Fixed Standard Price (not calculated) */ -public BigDecimal getStd_Fixed() -{ -BigDecimal bd = (BigDecimal)get_Value("Std_Fixed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Std_Fixed */ -public static final String COLUMNNAME_Std_Fixed = "Std_Fixed"; -/** Set Standard max Margin. -@param Std_MaxAmt Maximum margin allowed for a product */ -public void setStd_MaxAmt (BigDecimal Std_MaxAmt) -{ -if (Std_MaxAmt == null) throw new IllegalArgumentException ("Std_MaxAmt is mandatory."); -set_Value ("Std_MaxAmt", Std_MaxAmt); -} -/** Get Standard max Margin. -@return Maximum margin allowed for a product */ -public BigDecimal getStd_MaxAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Std_MaxAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Std_MaxAmt */ -public static final String COLUMNNAME_Std_MaxAmt = "Std_MaxAmt"; -/** Set Standard price min Margin. -@param Std_MinAmt Minimum margin allowed for a product */ -public void setStd_MinAmt (BigDecimal Std_MinAmt) -{ -if (Std_MinAmt == null) throw new IllegalArgumentException ("Std_MinAmt is mandatory."); -set_Value ("Std_MinAmt", Std_MinAmt); -} -/** Get Standard price min Margin. -@return Minimum margin allowed for a product */ -public BigDecimal getStd_MinAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Std_MinAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Std_MinAmt */ -public static final String COLUMNNAME_Std_MinAmt = "Std_MinAmt"; + /** Set Standard price Base. + @param Std_Base + Base price for calculating new standard price + */ + public void setStd_Base (String Std_Base) + { +if (Std_Base == null) throw new IllegalArgumentException ("Std_Base is mandatory");if (Std_Base.equals("F") || Std_Base.equals("L") || Std_Base.equals("S") || Std_Base.equals("X")); else throw new IllegalArgumentException ("Std_Base Invalid value - " + Std_Base + " - Reference_ID=194 - F - L - S - X"); if (Std_Base.length() > 1) + { + log.warning("Length > 1 - truncated"); + Std_Base = Std_Base.substring(0, 0); + } + set_Value (COLUMNNAME_Std_Base, Std_Base); + } + + /** Get Standard price Base. + @return Base price for calculating new standard price + */ + public String getStd_Base () + { + return (String)get_Value(COLUMNNAME_Std_Base); + } + + /** Set Standard price Discount %. + @param Std_Discount + Discount percentage to subtract from base price + */ + public void setStd_Discount (BigDecimal Std_Discount) + { + if (Std_Discount == null) + throw new IllegalArgumentException ("Std_Discount is mandatory."); + set_Value (COLUMNNAME_Std_Discount, Std_Discount); + } + + /** Get Standard price Discount %. + @return Discount percentage to subtract from base price + */ + public BigDecimal getStd_Discount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Fixed Standard Price. + @param Std_Fixed + Fixed Standard Price (not calculated) + */ + public void setStd_Fixed (BigDecimal Std_Fixed) + { + set_Value (COLUMNNAME_Std_Fixed, Std_Fixed); + } + + /** Get Fixed Standard Price. + @return Fixed Standard Price (not calculated) + */ + public BigDecimal getStd_Fixed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_Fixed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard max Margin. + @param Std_MaxAmt + Maximum margin allowed for a product + */ + public void setStd_MaxAmt (BigDecimal Std_MaxAmt) + { + if (Std_MaxAmt == null) + throw new IllegalArgumentException ("Std_MaxAmt is mandatory."); + set_Value (COLUMNNAME_Std_MaxAmt, Std_MaxAmt); + } + + /** Get Standard max Margin. + @return Maximum margin allowed for a product + */ + public BigDecimal getStd_MaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard price min Margin. + @param Std_MinAmt + Minimum margin allowed for a product + */ + public void setStd_MinAmt (BigDecimal Std_MinAmt) + { + if (Std_MinAmt == null) + throw new IllegalArgumentException ("Std_MinAmt is mandatory."); + set_Value (COLUMNNAME_Std_MinAmt, Std_MinAmt); + } + + /** Get Standard price min Margin. + @return Minimum margin allowed for a product + */ + public BigDecimal getStd_MinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** Std_Rounding AD_Reference_ID=155 */ -public static final int STD_ROUNDING_AD_Reference_ID=155; -/** Whole Number .00 = 0 */ -public static final String STD_ROUNDING_WholeNumber00 = "0"; -/** Nickel .05, .10, .15, ... = 5 */ -public static final String STD_ROUNDING_Nickel051015 = "5"; -/** Ending in 9/5 = 9 */ -public static final String STD_ROUNDING_EndingIn95 = "9"; -/** Currency Precision = C */ -public static final String STD_ROUNDING_CurrencyPrecision = "C"; -/** Dime .10, .20, .30, ... = D */ -public static final String STD_ROUNDING_Dime102030 = "D"; -/** No Rounding = N */ -public static final String STD_ROUNDING_NoRounding = "N"; -/** Quarter .25 .50 .75 = Q */ -public static final String STD_ROUNDING_Quarter255075 = "Q"; -/** Ten 10.00, 20.00, .. = T */ +public static final int STD_ROUNDING_AD_Reference_ID=155;/** Whole Number .00 = 0 */ +public static final String STD_ROUNDING_WholeNumber00 = "0";/** Nickel .05, .10, .15, ... = 5 */ +public static final String STD_ROUNDING_Nickel051015 = "5";/** Ending in 9/5 = 9 */ +public static final String STD_ROUNDING_EndingIn95 = "9";/** Currency Precision = C */ +public static final String STD_ROUNDING_CurrencyPrecision = "C";/** Dime .10, .20, .30, ... = D */ +public static final String STD_ROUNDING_Dime102030 = "D";/** No Rounding = N */ +public static final String STD_ROUNDING_NoRounding = "N";/** Quarter .25 .50 .75 = Q */ +public static final String STD_ROUNDING_Quarter255075 = "Q";/** Ten 10.00, 20.00, .. = T */ public static final String STD_ROUNDING_Ten10002000 = "T"; -/** Set Standard price Rounding. -@param Std_Rounding Rounding rule for calculated price */ -public void setStd_Rounding (String Std_Rounding) -{ -if (Std_Rounding == null) throw new IllegalArgumentException ("Std_Rounding is mandatory"); -if (Std_Rounding.equals("0") || Std_Rounding.equals("5") || Std_Rounding.equals("9") || Std_Rounding.equals("C") || Std_Rounding.equals("D") || Std_Rounding.equals("N") || Std_Rounding.equals("Q") || Std_Rounding.equals("T")); - else throw new IllegalArgumentException ("Std_Rounding Invalid value - " + Std_Rounding + " - Reference_ID=155 - 0 - 5 - 9 - C - D - N - Q - T"); -if (Std_Rounding.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Std_Rounding = Std_Rounding.substring(0,0); -} -set_Value ("Std_Rounding", Std_Rounding); -} -/** Get Standard price Rounding. -@return Rounding rule for calculated price */ -public String getStd_Rounding() -{ -return (String)get_Value("Std_Rounding"); -} -/** Column name Std_Rounding */ -public static final String COLUMNNAME_Std_Rounding = "Std_Rounding"; -} + /** Set Standard price Rounding. + @param Std_Rounding + Rounding rule for calculated price + */ + public void setStd_Rounding (String Std_Rounding) + { +if (Std_Rounding == null) throw new IllegalArgumentException ("Std_Rounding is mandatory");if (Std_Rounding.equals("0") || Std_Rounding.equals("5") || Std_Rounding.equals("9") || Std_Rounding.equals("C") || Std_Rounding.equals("D") || Std_Rounding.equals("N") || Std_Rounding.equals("Q") || Std_Rounding.equals("T")); else throw new IllegalArgumentException ("Std_Rounding Invalid value - " + Std_Rounding + " - Reference_ID=155 - 0 - 5 - 9 - C - D - N - Q - T"); if (Std_Rounding.length() > 1) + { + log.warning("Length > 1 - truncated"); + Std_Rounding = Std_Rounding.substring(0, 0); + } + set_Value (COLUMNNAME_Std_Rounding, Std_Rounding); + } + + /** Get Standard price Rounding. + @return Rounding rule for calculated price + */ + public String getStd_Rounding () + { + return (String)get_Value(COLUMNNAME_Std_Rounding); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DistributionList.java b/base/src/org/compiere/model/X_M_DistributionList.java index 3737be4f81..c64d7abae7 100644 --- a/base/src/org/compiere/model/X_M_DistributionList.java +++ b/base/src/org/compiere/model/X_M_DistributionList.java @@ -1,206 +1,213 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DistributionList - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DistributionList extends PO + +/** Generated Model for M_DistributionList + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DistributionList extends PO implements I_M_DistributionList, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DistributionList_ID id -@param trxName transaction -*/ -public X_M_DistributionList (Properties ctx, int M_DistributionList_ID, String trxName) -{ -super (ctx, M_DistributionList_ID, trxName); -/** if (M_DistributionList_ID == 0) -{ -setM_DistributionList_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DistributionList (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DistributionList */ -public static final String Table_Name="M_DistributionList"; - -/** AD_Table_ID=666 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DistributionList[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Distribution List. -@param M_DistributionList_ID Distribution Lists allow to distribute products to a selected list of partners */ -public void setM_DistributionList_ID (int M_DistributionList_ID) -{ -if (M_DistributionList_ID < 1) throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); -set_ValueNoCheck ("M_DistributionList_ID", Integer.valueOf(M_DistributionList_ID)); -} -/** Get Distribution List. -@return Distribution Lists allow to distribute products to a selected list of partners */ -public int getM_DistributionList_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionList_ID */ -public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Total Ratio. -@param RatioTotal Total of relative weight in a distribution */ -public void setRatioTotal (BigDecimal RatioTotal) -{ -set_Value ("RatioTotal", RatioTotal); -} -/** Get Total Ratio. -@return Total of relative weight in a distribution */ -public BigDecimal getRatioTotal() -{ -BigDecimal bd = (BigDecimal)get_Value("RatioTotal"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RatioTotal */ -public static final String COLUMNNAME_RatioTotal = "RatioTotal"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DistributionList (Properties ctx, int M_DistributionList_ID, String trxName) + { + super (ctx, M_DistributionList_ID, trxName); + /** if (M_DistributionList_ID == 0) { setM_DistributionList_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_DistributionList (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DistributionList[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Distribution List. + @param M_DistributionList_ID + Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID) + { + if (M_DistributionList_ID < 1) + throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + } + + /** Get Distribution List. + @return Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Ratio. + @param RatioTotal + Total of relative weight in a distribution + */ + public void setRatioTotal (BigDecimal RatioTotal) + { + set_Value (COLUMNNAME_RatioTotal, RatioTotal); + } + + /** Get Total Ratio. + @return Total of relative weight in a distribution + */ + public BigDecimal getRatioTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RatioTotal); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DistributionListLine.java b/base/src/org/compiere/model/X_M_DistributionListLine.java index 07c01cf6ab..786b9d8aee 100644 --- a/base/src/org/compiere/model/X_M_DistributionListLine.java +++ b/base/src/org/compiere/model/X_M_DistributionListLine.java @@ -1,218 +1,269 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DistributionListLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DistributionListLine extends PO + +/** Generated Model for M_DistributionListLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DistributionListLine extends PO implements I_M_DistributionListLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DistributionListLine_ID id -@param trxName transaction -*/ -public X_M_DistributionListLine (Properties ctx, int M_DistributionListLine_ID, String trxName) -{ -super (ctx, M_DistributionListLine_ID, trxName); -/** if (M_DistributionListLine_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setM_DistributionListLine_ID (0); -setM_DistributionList_ID (0); -setMinQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DistributionListLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DistributionListLine */ -public static final String Table_Name="M_DistributionListLine"; - -/** AD_Table_ID=665 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DistributionListLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Distribution List Line. -@param M_DistributionListLine_ID Distribution List Line with Business Partner and Quantity/Percentage */ -public void setM_DistributionListLine_ID (int M_DistributionListLine_ID) -{ -if (M_DistributionListLine_ID < 1) throw new IllegalArgumentException ("M_DistributionListLine_ID is mandatory."); -set_ValueNoCheck ("M_DistributionListLine_ID", Integer.valueOf(M_DistributionListLine_ID)); -} -/** Get Distribution List Line. -@return Distribution List Line with Business Partner and Quantity/Percentage */ -public int getM_DistributionListLine_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionListLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionListLine_ID */ -public static final String COLUMNNAME_M_DistributionListLine_ID = "M_DistributionListLine_ID"; -/** Set Distribution List. -@param M_DistributionList_ID Distribution Lists allow to distribute products to a selected list of partners */ -public void setM_DistributionList_ID (int M_DistributionList_ID) -{ -if (M_DistributionList_ID < 1) throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); -set_ValueNoCheck ("M_DistributionList_ID", Integer.valueOf(M_DistributionList_ID)); -} -/** Get Distribution List. -@return Distribution Lists allow to distribute products to a selected list of partners */ -public int getM_DistributionList_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionList_ID())); -} -/** Column name M_DistributionList_ID */ -public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; -/** Set Minimum Quantity. -@param MinQty Minimum quantity for the business partner */ -public void setMinQty (BigDecimal MinQty) -{ -if (MinQty == null) throw new IllegalArgumentException ("MinQty is mandatory."); -set_Value ("MinQty", MinQty); -} -/** Get Minimum Quantity. -@return Minimum quantity for the business partner */ -public BigDecimal getMinQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MinQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MinQty */ -public static final String COLUMNNAME_MinQty = "MinQty"; -/** Set Ratio. -@param Ratio Relative Ratio for Distributions */ -public void setRatio (BigDecimal Ratio) -{ -set_Value ("Ratio", Ratio); -} -/** Get Ratio. -@return Relative Ratio for Distributions */ -public BigDecimal getRatio() -{ -BigDecimal bd = (BigDecimal)get_Value("Ratio"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Ratio */ -public static final String COLUMNNAME_Ratio = "Ratio"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DistributionListLine (Properties ctx, int M_DistributionListLine_ID, String trxName) + { + super (ctx, M_DistributionListLine_ID, trxName); + /** if (M_DistributionListLine_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setM_DistributionListLine_ID (0); + setM_DistributionList_ID (0); + setMinQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_DistributionListLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DistributionListLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Distribution List Line. + @param M_DistributionListLine_ID + Distribution List Line with Business Partner and Quantity/Percentage + */ + public void setM_DistributionListLine_ID (int M_DistributionListLine_ID) + { + if (M_DistributionListLine_ID < 1) + throw new IllegalArgumentException ("M_DistributionListLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, Integer.valueOf(M_DistributionListLine_ID)); + } + + /** Get Distribution List Line. + @return Distribution List Line with Business Partner and Quantity/Percentage + */ + public int getM_DistributionListLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionListLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_DistributionList getI_M_DistributionList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Distribution List. + @param M_DistributionList_ID + Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID) + { + if (M_DistributionList_ID < 1) + throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + } + + /** Get Distribution List. + @return Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionList_ID())); + } + + /** Set Minimum Quantity. + @param MinQty + Minimum quantity for the business partner + */ + public void setMinQty (BigDecimal MinQty) + { + if (MinQty == null) + throw new IllegalArgumentException ("MinQty is mandatory."); + set_Value (COLUMNNAME_MinQty, MinQty); + } + + /** Get Minimum Quantity. + @return Minimum quantity for the business partner + */ + public BigDecimal getMinQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ratio. + @param Ratio + Relative Ratio for Distributions + */ + public void setRatio (BigDecimal Ratio) + { + set_Value (COLUMNNAME_Ratio, Ratio); + } + + /** Get Ratio. + @return Relative Ratio for Distributions + */ + public BigDecimal getRatio () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Ratio); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DistributionRun.java b/base/src/org/compiere/model/X_M_DistributionRun.java index fb2f804e43..c3527f8073 100644 --- a/base/src/org/compiere/model/X_M_DistributionRun.java +++ b/base/src/org/compiere/model/X_M_DistributionRun.java @@ -1,228 +1,257 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DistributionRun - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DistributionRun extends PO + +/** Generated Model for M_DistributionRun + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DistributionRun extends PO implements I_M_DistributionRun, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DistributionRun_ID id -@param trxName transaction -*/ -public X_M_DistributionRun (Properties ctx, int M_DistributionRun_ID, String trxName) -{ -super (ctx, M_DistributionRun_ID, trxName); -/** if (M_DistributionRun_ID == 0) -{ -setIsCreateSingleOrder (false); // N -setM_DistributionRun_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DistributionRun (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DistributionRun */ -public static final String Table_Name="M_DistributionRun"; - -/** AD_Table_ID=712 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DistributionRun[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID <= 0) set_Value ("C_BPartner_Location_ID", null); - else -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Create Single Order. -@param IsCreateSingleOrder For all shipments create one Order */ -public void setIsCreateSingleOrder (boolean IsCreateSingleOrder) -{ -set_Value ("IsCreateSingleOrder", Boolean.valueOf(IsCreateSingleOrder)); -} -/** Get Create Single Order. -@return For all shipments create one Order */ -public boolean isCreateSingleOrder() -{ -Object oo = get_Value("IsCreateSingleOrder"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreateSingleOrder */ -public static final String COLUMNNAME_IsCreateSingleOrder = "IsCreateSingleOrder"; -/** Set Distribution Run. -@param M_DistributionRun_ID Distribution Run create Orders to distribute products to a selected list of partners */ -public void setM_DistributionRun_ID (int M_DistributionRun_ID) -{ -if (M_DistributionRun_ID < 1) throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); -set_ValueNoCheck ("M_DistributionRun_ID", Integer.valueOf(M_DistributionRun_ID)); -} -/** Get Distribution Run. -@return Distribution Run create Orders to distribute products to a selected list of partners */ -public int getM_DistributionRun_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionRun_ID */ -public static final String COLUMNNAME_M_DistributionRun_ID = "M_DistributionRun_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DistributionRun (Properties ctx, int M_DistributionRun_ID, String trxName) + { + super (ctx, M_DistributionRun_ID, trxName); + /** if (M_DistributionRun_ID == 0) { setIsCreateSingleOrder (false); +// N + setM_DistributionRun_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_DistributionRun (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DistributionRun[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID <= 0) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Create Single Order. + @param IsCreateSingleOrder + For all shipments create one Order + */ + public void setIsCreateSingleOrder (boolean IsCreateSingleOrder) + { + set_Value (COLUMNNAME_IsCreateSingleOrder, Boolean.valueOf(IsCreateSingleOrder)); + } + + /** Get Create Single Order. + @return For all shipments create one Order + */ + public boolean isCreateSingleOrder () + { + Object oo = get_Value(COLUMNNAME_IsCreateSingleOrder); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Distribution Run. + @param M_DistributionRun_ID + Distribution Run create Orders to distribute products to a selected list of partners + */ + public void setM_DistributionRun_ID (int M_DistributionRun_ID) + { + if (M_DistributionRun_ID < 1) + throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); + } + + /** Get Distribution Run. + @return Distribution Run create Orders to distribute products to a selected list of partners + */ + public int getM_DistributionRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DistributionRunLine.java b/base/src/org/compiere/model/X_M_DistributionRunLine.java index b8653320ff..5f5b27a64e 100644 --- a/base/src/org/compiere/model/X_M_DistributionRunLine.java +++ b/base/src/org/compiere/model/X_M_DistributionRunLine.java @@ -1,237 +1,295 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_DistributionRunLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_DistributionRunLine extends PO + +/** Generated Model for M_DistributionRunLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_DistributionRunLine extends PO implements I_M_DistributionRunLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_DistributionRunLine_ID id -@param trxName transaction -*/ -public X_M_DistributionRunLine (Properties ctx, int M_DistributionRunLine_ID, String trxName) -{ -super (ctx, M_DistributionRunLine_ID, trxName); -/** if (M_DistributionRunLine_ID == 0) -{ -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_DistributionRunLine WHERE M_DistributionRun_ID=@M_DistributionRun_ID@ -setM_DistributionList_ID (0); -setM_DistributionRunLine_ID (0); -setM_DistributionRun_ID (0); -setM_Product_ID (0); -setMinQty (Env.ZERO); // 0 -setTotalQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_DistributionRunLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_DistributionRunLine */ -public static final String Table_Name="M_DistributionRunLine"; - -/** AD_Table_ID=713 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_DistributionRunLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Distribution List. -@param M_DistributionList_ID Distribution Lists allow to distribute products to a selected list of partners */ -public void setM_DistributionList_ID (int M_DistributionList_ID) -{ -if (M_DistributionList_ID < 1) throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); -set_Value ("M_DistributionList_ID", Integer.valueOf(M_DistributionList_ID)); -} -/** Get Distribution List. -@return Distribution Lists allow to distribute products to a selected list of partners */ -public int getM_DistributionList_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionList_ID */ -public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; -/** Set Distribution Run Line. -@param M_DistributionRunLine_ID Distribution Run Lines define Distribution List, the Product and Quantiries */ -public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID) -{ -if (M_DistributionRunLine_ID < 1) throw new IllegalArgumentException ("M_DistributionRunLine_ID is mandatory."); -set_ValueNoCheck ("M_DistributionRunLine_ID", Integer.valueOf(M_DistributionRunLine_ID)); -} -/** Get Distribution Run Line. -@return Distribution Run Lines define Distribution List, the Product and Quantiries */ -public int getM_DistributionRunLine_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionRunLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionRunLine_ID */ -public static final String COLUMNNAME_M_DistributionRunLine_ID = "M_DistributionRunLine_ID"; -/** Set Distribution Run. -@param M_DistributionRun_ID Distribution Run create Orders to distribute products to a selected list of partners */ -public void setM_DistributionRun_ID (int M_DistributionRun_ID) -{ -if (M_DistributionRun_ID < 1) throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); -set_ValueNoCheck ("M_DistributionRun_ID", Integer.valueOf(M_DistributionRun_ID)); -} -/** Get Distribution Run. -@return Distribution Run create Orders to distribute products to a selected list of partners */ -public int getM_DistributionRun_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionRun_ID())); -} -/** Column name M_DistributionRun_ID */ -public static final String COLUMNNAME_M_DistributionRun_ID = "M_DistributionRun_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Minimum Quantity. -@param MinQty Minimum quantity for the business partner */ -public void setMinQty (BigDecimal MinQty) -{ -if (MinQty == null) throw new IllegalArgumentException ("MinQty is mandatory."); -set_Value ("MinQty", MinQty); -} -/** Get Minimum Quantity. -@return Minimum quantity for the business partner */ -public BigDecimal getMinQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MinQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MinQty */ -public static final String COLUMNNAME_MinQty = "MinQty"; -/** Set Total Quantity. -@param TotalQty Total Quantity */ -public void setTotalQty (BigDecimal TotalQty) -{ -if (TotalQty == null) throw new IllegalArgumentException ("TotalQty is mandatory."); -set_Value ("TotalQty", TotalQty); -} -/** Get Total Quantity. -@return Total Quantity */ -public BigDecimal getTotalQty() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalQty */ -public static final String COLUMNNAME_TotalQty = "TotalQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DistributionRunLine (Properties ctx, int M_DistributionRunLine_ID, String trxName) + { + super (ctx, M_DistributionRunLine_ID, trxName); + /** if (M_DistributionRunLine_ID == 0) { setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_DistributionRunLine WHERE M_DistributionRun_ID=@M_DistributionRun_ID@ + setM_DistributionList_ID (0); + setM_DistributionRunLine_ID (0); + setM_DistributionRun_ID (0); + setM_Product_ID (0); + setMinQty (Env.ZERO); +// 0 + setTotalQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_DistributionRunLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_DistributionRunLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_DistributionList getI_M_DistributionList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Distribution List. + @param M_DistributionList_ID + Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID) + { + if (M_DistributionList_ID < 1) + throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); + set_Value (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + } + + /** Get Distribution List. + @return Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Distribution Run Line. + @param M_DistributionRunLine_ID + Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID) + { + if (M_DistributionRunLine_ID < 1) + throw new IllegalArgumentException ("M_DistributionRunLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, Integer.valueOf(M_DistributionRunLine_ID)); + } + + /** Get Distribution Run Line. + @return Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public int getM_DistributionRunLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionRunLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_DistributionRun getI_M_DistributionRun() throws Exception + { + 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 e; + } + return result; + } + + /** Set Distribution Run. + @param M_DistributionRun_ID + Distribution Run create Orders to distribute products to a selected list of partners + */ + public void setM_DistributionRun_ID (int M_DistributionRun_ID) + { + if (M_DistributionRun_ID < 1) + throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); + } + + /** Get Distribution Run. + @return Distribution Run create Orders to distribute products to a selected list of partners + */ + public int getM_DistributionRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionRun_ID())); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Minimum Quantity. + @param MinQty + Minimum quantity for the business partner + */ + public void setMinQty (BigDecimal MinQty) + { + if (MinQty == null) + throw new IllegalArgumentException ("MinQty is mandatory."); + set_Value (COLUMNNAME_MinQty, MinQty); + } + + /** Get Minimum Quantity. + @return Minimum quantity for the business partner + */ + public BigDecimal getMinQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Quantity. + @param TotalQty + Total Quantity + */ + public void setTotalQty (BigDecimal TotalQty) + { + if (TotalQty == null) + throw new IllegalArgumentException ("TotalQty is mandatory."); + set_Value (COLUMNNAME_TotalQty, TotalQty); + } + + /** Get Total Quantity. + @return Total Quantity + */ + public BigDecimal getTotalQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_EDI.java b/base/src/org/compiere/model/X_M_EDI.java index 0a315d2638..4697002150 100644 --- a/base/src/org/compiere/model/X_M_EDI.java +++ b/base/src/org/compiere/model/X_M_EDI.java @@ -1,463 +1,511 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_EDI - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_EDI extends PO + +/** Generated Model for M_EDI + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_EDI extends PO implements I_M_EDI, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_EDI_ID id -@param trxName transaction -*/ -public X_M_EDI (Properties ctx, int M_EDI_ID, String trxName) -{ -super (ctx, M_EDI_ID, trxName); -/** if (M_EDI_ID == 0) -{ -setC_BP_EDI_ID (0); -setDocumentNo (null); -setEDIStatus (null); -setLine (0); -setM_EDI_ID (0); -setM_Product_ID (0); -setM_Warehouse_ID (0); -setProcessed (false); -setRequest_Qty (Env.ZERO); -setRequest_Shipdate (new Timestamp(System.currentTimeMillis())); -setTrxSent (new Timestamp(System.currentTimeMillis())); -setTrxType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_EDI (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_EDI */ -public static final String Table_Name="M_EDI"; - -/** AD_Table_ID=367 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_EDI[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set EDI Definition. -@param C_BP_EDI_ID Electronic Data Interchange */ -public void setC_BP_EDI_ID (int C_BP_EDI_ID) -{ -if (C_BP_EDI_ID < 1) throw new IllegalArgumentException ("C_BP_EDI_ID is mandatory."); -set_Value ("C_BP_EDI_ID", Integer.valueOf(C_BP_EDI_ID)); -} -/** Get EDI Definition. -@return Electronic Data Interchange */ -public int getC_BP_EDI_ID() -{ -Integer ii = (Integer)get_Value("C_BP_EDI_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_EDI_ID */ -public static final String COLUMNNAME_C_BP_EDI_ID = "C_BP_EDI_ID"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_EDI (Properties ctx, int M_EDI_ID, String trxName) + { + super (ctx, M_EDI_ID, trxName); + /** if (M_EDI_ID == 0) { setC_BP_EDI_ID (0); + setDocumentNo (null); + setEDIStatus (null); + setLine (0); + setM_EDI_ID (0); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setProcessed (false); + setRequest_Qty (Env.ZERO); + setRequest_Shipdate (new Timestamp(System.currentTimeMillis())); + setTrxSent (new Timestamp(System.currentTimeMillis())); + setTrxType (null); +} */ + } + + /** Load Constructor */ + public X_M_EDI (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_EDI[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_BP_EDI getI_C_BP_EDI() throws Exception + { + Class clazz = MTable.getClass(I_C_BP_EDI.Table_Name); + I_C_BP_EDI result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BP_EDI)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_EDI_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set EDI Definition. + @param C_BP_EDI_ID + Electronic Data Interchange + */ + public void setC_BP_EDI_ID (int C_BP_EDI_ID) + { + if (C_BP_EDI_ID < 1) + throw new IllegalArgumentException ("C_BP_EDI_ID is mandatory."); + set_Value (COLUMNNAME_C_BP_EDI_ID, Integer.valueOf(C_BP_EDI_ID)); + } + + /** Get EDI Definition. + @return Electronic Data Interchange + */ + public int getC_BP_EDI_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_EDI_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } /** EDIStatus AD_Reference_ID=202 */ -public static final int EDISTATUS_AD_Reference_ID=202; -/** Acknowledged = A */ -public static final String EDISTATUS_Acknowledged = "A"; -/** Answered (complete) = C */ -public static final String EDISTATUS_AnsweredComplete = "C"; -/** Draft = D */ -public static final String EDISTATUS_Draft = "D"; -/** Sent = S */ +public static final int EDISTATUS_AD_Reference_ID=202;/** Acknowledged = A */ +public static final String EDISTATUS_Acknowledged = "A";/** Answered (complete) = C */ +public static final String EDISTATUS_AnsweredComplete = "C";/** Draft = D */ +public static final String EDISTATUS_Draft = "D";/** Sent = S */ public static final String EDISTATUS_Sent = "S"; -/** Set EDI Status. -@param EDIStatus EDI Status */ -public void setEDIStatus (String EDIStatus) -{ -if (EDIStatus == null) throw new IllegalArgumentException ("EDIStatus is mandatory"); -if (EDIStatus.equals("A") || EDIStatus.equals("C") || EDIStatus.equals("D") || EDIStatus.equals("S")); - else throw new IllegalArgumentException ("EDIStatus Invalid value - " + EDIStatus + " - Reference_ID=202 - A - C - D - S"); -if (EDIStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -EDIStatus = EDIStatus.substring(0,0); -} -set_ValueNoCheck ("EDIStatus", EDIStatus); -} -/** Get EDI Status. -@return EDI Status */ -public String getEDIStatus() -{ -return (String)get_Value("EDIStatus"); -} -/** Column name EDIStatus */ -public static final String COLUMNNAME_EDIStatus = "EDIStatus"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set EDI Transaction. -@param M_EDI_ID EDI Transaction */ -public void setM_EDI_ID (int M_EDI_ID) -{ -if (M_EDI_ID < 1) throw new IllegalArgumentException ("M_EDI_ID is mandatory."); -set_ValueNoCheck ("M_EDI_ID", Integer.valueOf(M_EDI_ID)); -} -/** Get EDI Transaction. -@return EDI Transaction */ -public int getM_EDI_ID() -{ -Integer ii = (Integer)get_Value("M_EDI_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_EDI_ID */ -public static final String COLUMNNAME_M_EDI_ID = "M_EDI_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Reply Price. -@param Reply_Price Confirmed Price from EDI Partner */ -public void setReply_Price (BigDecimal Reply_Price) -{ -set_Value ("Reply_Price", Reply_Price); -} -/** Get Reply Price. -@return Confirmed Price from EDI Partner */ -public BigDecimal getReply_Price() -{ -BigDecimal bd = (BigDecimal)get_Value("Reply_Price"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Reply_Price */ -public static final String COLUMNNAME_Reply_Price = "Reply_Price"; -/** Set Reply Qty Available. -@param Reply_QtyAvailable Reply Qty Available */ -public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable) -{ -set_Value ("Reply_QtyAvailable", Reply_QtyAvailable); -} -/** Get Reply Qty Available. -@return Reply Qty Available */ -public BigDecimal getReply_QtyAvailable() -{ -BigDecimal bd = (BigDecimal)get_Value("Reply_QtyAvailable"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Reply_QtyAvailable */ -public static final String COLUMNNAME_Reply_QtyAvailable = "Reply_QtyAvailable"; -/** Set Reply Qty Confirmed. -@param Reply_QtyConfirmed Reply Qty Confirmed */ -public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed) -{ -set_Value ("Reply_QtyConfirmed", Reply_QtyConfirmed); -} -/** Get Reply Qty Confirmed. -@return Reply Qty Confirmed */ -public BigDecimal getReply_QtyConfirmed() -{ -BigDecimal bd = (BigDecimal)get_Value("Reply_QtyConfirmed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Reply_QtyConfirmed */ -public static final String COLUMNNAME_Reply_QtyConfirmed = "Reply_QtyConfirmed"; -/** Set Reply Received. -@param Reply_Received Reply Received */ -public void setReply_Received (Timestamp Reply_Received) -{ -set_Value ("Reply_Received", Reply_Received); -} -/** Get Reply Received. -@return Reply Received */ -public Timestamp getReply_Received() -{ -return (Timestamp)get_Value("Reply_Received"); -} -/** Column name Reply_Received */ -public static final String COLUMNNAME_Reply_Received = "Reply_Received"; -/** Set Reply Remarks. -@param Reply_Remarks Reply Remarks */ -public void setReply_Remarks (String Reply_Remarks) -{ -if (Reply_Remarks != null && Reply_Remarks.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Reply_Remarks = Reply_Remarks.substring(0,1999); -} -set_Value ("Reply_Remarks", Reply_Remarks); -} -/** Get Reply Remarks. -@return Reply Remarks */ -public String getReply_Remarks() -{ -return (String)get_Value("Reply_Remarks"); -} -/** Column name Reply_Remarks */ -public static final String COLUMNNAME_Reply_Remarks = "Reply_Remarks"; -/** Set Reply Ship date. -@param Reply_ShipDate Reply Ship date */ -public void setReply_ShipDate (Timestamp Reply_ShipDate) -{ -set_Value ("Reply_ShipDate", Reply_ShipDate); -} -/** Get Reply Ship date. -@return Reply Ship date */ -public Timestamp getReply_ShipDate() -{ -return (Timestamp)get_Value("Reply_ShipDate"); -} -/** Column name Reply_ShipDate */ -public static final String COLUMNNAME_Reply_ShipDate = "Reply_ShipDate"; -/** Set Request Price. -@param Request_Price Request Price */ -public void setRequest_Price (BigDecimal Request_Price) -{ -set_Value ("Request_Price", Request_Price); -} -/** Get Request Price. -@return Request Price */ -public BigDecimal getRequest_Price() -{ -BigDecimal bd = (BigDecimal)get_Value("Request_Price"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Request_Price */ -public static final String COLUMNNAME_Request_Price = "Request_Price"; -/** Set Request Qty. -@param Request_Qty Request Qty */ -public void setRequest_Qty (BigDecimal Request_Qty) -{ -if (Request_Qty == null) throw new IllegalArgumentException ("Request_Qty is mandatory."); -set_Value ("Request_Qty", Request_Qty); -} -/** Get Request Qty. -@return Request Qty */ -public BigDecimal getRequest_Qty() -{ -BigDecimal bd = (BigDecimal)get_Value("Request_Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Request_Qty */ -public static final String COLUMNNAME_Request_Qty = "Request_Qty"; -/** Set Request Ship date. -@param Request_Shipdate Request Ship date */ -public void setRequest_Shipdate (Timestamp Request_Shipdate) -{ -if (Request_Shipdate == null) throw new IllegalArgumentException ("Request_Shipdate is mandatory."); -set_Value ("Request_Shipdate", Request_Shipdate); -} -/** Get Request Ship date. -@return Request Ship date */ -public Timestamp getRequest_Shipdate() -{ -return (Timestamp)get_Value("Request_Shipdate"); -} -/** Column name Request_Shipdate */ -public static final String COLUMNNAME_Request_Shipdate = "Request_Shipdate"; -/** Set Transaction received. -@param TrxReceived Transaction received */ -public void setTrxReceived (Timestamp TrxReceived) -{ -set_Value ("TrxReceived", TrxReceived); -} -/** Get Transaction received. -@return Transaction received */ -public Timestamp getTrxReceived() -{ -return (Timestamp)get_Value("TrxReceived"); -} -/** Column name TrxReceived */ -public static final String COLUMNNAME_TrxReceived = "TrxReceived"; -/** Set Transaction sent. -@param TrxSent Transaction sent */ -public void setTrxSent (Timestamp TrxSent) -{ -if (TrxSent == null) throw new IllegalArgumentException ("TrxSent is mandatory."); -set_Value ("TrxSent", TrxSent); -} -/** Get Transaction sent. -@return Transaction sent */ -public Timestamp getTrxSent() -{ -return (Timestamp)get_Value("TrxSent"); -} -/** Column name TrxSent */ -public static final String COLUMNNAME_TrxSent = "TrxSent"; + /** Set EDI Status. + @param EDIStatus EDI Status */ + public void setEDIStatus (String EDIStatus) + { +if (EDIStatus == null) throw new IllegalArgumentException ("EDIStatus is mandatory");if (EDIStatus.equals("A") || EDIStatus.equals("C") || EDIStatus.equals("D") || EDIStatus.equals("S")); else throw new IllegalArgumentException ("EDIStatus Invalid value - " + EDIStatus + " - Reference_ID=202 - A - C - D - S"); if (EDIStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + EDIStatus = EDIStatus.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_EDIStatus, EDIStatus); + } + + /** Get EDI Status. +@return EDI Status */ + public String getEDIStatus () + { + return (String)get_Value(COLUMNNAME_EDIStatus); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set EDI Transaction. + @param M_EDI_ID EDI Transaction */ + public void setM_EDI_ID (int M_EDI_ID) + { + if (M_EDI_ID < 1) + throw new IllegalArgumentException ("M_EDI_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_EDI_ID, Integer.valueOf(M_EDI_ID)); + } + + /** Get EDI Transaction. +@return EDI Transaction */ + public int getM_EDI_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_EDI_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reply Price. + @param Reply_Price + Confirmed Price from EDI Partner + */ + public void setReply_Price (BigDecimal Reply_Price) + { + set_Value (COLUMNNAME_Reply_Price, Reply_Price); + } + + /** Get Reply Price. + @return Confirmed Price from EDI Partner + */ + public BigDecimal getReply_Price () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Reply_Price); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reply Qty Available. + @param Reply_QtyAvailable Reply Qty Available */ + public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable) + { + set_Value (COLUMNNAME_Reply_QtyAvailable, Reply_QtyAvailable); + } + + /** Get Reply Qty Available. +@return Reply Qty Available */ + public BigDecimal getReply_QtyAvailable () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Reply_QtyAvailable); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reply Qty Confirmed. + @param Reply_QtyConfirmed Reply Qty Confirmed */ + public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed) + { + set_Value (COLUMNNAME_Reply_QtyConfirmed, Reply_QtyConfirmed); + } + + /** Get Reply Qty Confirmed. +@return Reply Qty Confirmed */ + public BigDecimal getReply_QtyConfirmed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Reply_QtyConfirmed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reply Received. + @param Reply_Received Reply Received */ + public void setReply_Received (Timestamp Reply_Received) + { + set_Value (COLUMNNAME_Reply_Received, Reply_Received); + } + + /** Get Reply Received. +@return Reply Received */ + public Timestamp getReply_Received () + { + return (Timestamp)get_Value(COLUMNNAME_Reply_Received); + } + + /** Set Reply Remarks. + @param Reply_Remarks Reply Remarks */ + public void setReply_Remarks (String Reply_Remarks) + { + if (Reply_Remarks != null && Reply_Remarks.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Reply_Remarks = Reply_Remarks.substring(0, 1999); + } + set_Value (COLUMNNAME_Reply_Remarks, Reply_Remarks); + } + + /** Get Reply Remarks. +@return Reply Remarks */ + public String getReply_Remarks () + { + return (String)get_Value(COLUMNNAME_Reply_Remarks); + } + + /** Set Reply Ship date. + @param Reply_ShipDate Reply Ship date */ + public void setReply_ShipDate (Timestamp Reply_ShipDate) + { + set_Value (COLUMNNAME_Reply_ShipDate, Reply_ShipDate); + } + + /** Get Reply Ship date. +@return Reply Ship date */ + public Timestamp getReply_ShipDate () + { + return (Timestamp)get_Value(COLUMNNAME_Reply_ShipDate); + } + + /** Set Request Price. + @param Request_Price Request Price */ + public void setRequest_Price (BigDecimal Request_Price) + { + set_Value (COLUMNNAME_Request_Price, Request_Price); + } + + /** Get Request Price. +@return Request Price */ + public BigDecimal getRequest_Price () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Request_Price); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Request Qty. + @param Request_Qty Request Qty */ + public void setRequest_Qty (BigDecimal Request_Qty) + { + if (Request_Qty == null) + throw new IllegalArgumentException ("Request_Qty is mandatory."); + set_Value (COLUMNNAME_Request_Qty, Request_Qty); + } + + /** Get Request Qty. +@return Request Qty */ + public BigDecimal getRequest_Qty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Request_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Request Ship date. + @param Request_Shipdate Request Ship date */ + public void setRequest_Shipdate (Timestamp Request_Shipdate) + { + if (Request_Shipdate == null) + throw new IllegalArgumentException ("Request_Shipdate is mandatory."); + set_Value (COLUMNNAME_Request_Shipdate, Request_Shipdate); + } + + /** Get Request Ship date. +@return Request Ship date */ + public Timestamp getRequest_Shipdate () + { + return (Timestamp)get_Value(COLUMNNAME_Request_Shipdate); + } + + /** Set Transaction received. + @param TrxReceived Transaction received */ + public void setTrxReceived (Timestamp TrxReceived) + { + set_Value (COLUMNNAME_TrxReceived, TrxReceived); + } + + /** Get Transaction received. +@return Transaction received */ + public Timestamp getTrxReceived () + { + return (Timestamp)get_Value(COLUMNNAME_TrxReceived); + } + + /** Set Transaction sent. + @param TrxSent Transaction sent */ + public void setTrxSent (Timestamp TrxSent) + { + if (TrxSent == null) + throw new IllegalArgumentException ("TrxSent is mandatory."); + set_Value (COLUMNNAME_TrxSent, TrxSent); + } + + /** Get Transaction sent. +@return Transaction sent */ + public Timestamp getTrxSent () + { + return (Timestamp)get_Value(COLUMNNAME_TrxSent); + } /** TrxType AD_Reference_ID=203 */ -public static final int TRXTYPE_AD_Reference_ID=203; -/** Inquiry = I */ -public static final String TRXTYPE_Inquiry = "I"; -/** Purchase Order = O */ +public static final int TRXTYPE_AD_Reference_ID=203;/** Inquiry = I */ +public static final String TRXTYPE_Inquiry = "I";/** Purchase Order = O */ public static final String TRXTYPE_PurchaseOrder = "O"; -/** Set Transaction Type. -@param TrxType Type of credit card transaction */ -public void setTrxType (String TrxType) -{ -if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); -if (TrxType.equals("I") || TrxType.equals("O")); - else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=203 - I - O"); -if (TrxType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TrxType = TrxType.substring(0,0); -} -set_ValueNoCheck ("TrxType", TrxType); -} -/** Get Transaction Type. -@return Type of credit card transaction */ -public String getTrxType() -{ -return (String)get_Value("TrxType"); -} -/** Column name TrxType */ -public static final String COLUMNNAME_TrxType = "TrxType"; -} + /** Set Transaction Type. + @param TrxType + Type of credit card transaction + */ + public void setTrxType (String TrxType) + { +if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory");if (TrxType.equals("I") || TrxType.equals("O")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=203 - I - O"); if (TrxType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TrxType = TrxType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_TrxType, TrxType); + } + + /** Get Transaction Type. + @return Type of credit card transaction + */ + public String getTrxType () + { + return (String)get_Value(COLUMNNAME_TrxType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_EDI_Info.java b/base/src/org/compiere/model/X_M_EDI_Info.java index 646b406c03..9d5da3da6a 100644 --- a/base/src/org/compiere/model/X_M_EDI_Info.java +++ b/base/src/org/compiere/model/X_M_EDI_Info.java @@ -1,150 +1,161 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_EDI_Info - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_EDI_Info extends PO + +/** Generated Model for M_EDI_Info + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_EDI_Info extends PO implements I_M_EDI_Info, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_EDI_Info_ID id -@param trxName transaction -*/ -public X_M_EDI_Info (Properties ctx, int M_EDI_Info_ID, String trxName) -{ -super (ctx, M_EDI_Info_ID, trxName); -/** if (M_EDI_Info_ID == 0) -{ -setInfo (null); -setM_EDI_ID (0); -setM_EDI_Info_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_EDI_Info (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_EDI_Info */ -public static final String Table_Name="M_EDI_Info"; - -/** AD_Table_ID=368 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_EDI_Info[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Info. -@param Info Information */ -public void setInfo (String Info) -{ -if (Info == null) throw new IllegalArgumentException ("Info is mandatory."); -if (Info.length() > 4000) -{ -log.warning("Length > 4000 - truncated"); -Info = Info.substring(0,3999); -} -set_Value ("Info", Info); -} -/** Get Info. -@return Information */ -public String getInfo() -{ -return (String)get_Value("Info"); -} -/** Column name Info */ -public static final String COLUMNNAME_Info = "Info"; -/** Set EDI Transaction. -@param M_EDI_ID EDI Transaction */ -public void setM_EDI_ID (int M_EDI_ID) -{ -if (M_EDI_ID < 1) throw new IllegalArgumentException ("M_EDI_ID is mandatory."); -set_ValueNoCheck ("M_EDI_ID", Integer.valueOf(M_EDI_ID)); -} -/** Get EDI Transaction. -@return EDI Transaction */ -public int getM_EDI_ID() -{ -Integer ii = (Integer)get_Value("M_EDI_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_EDI_ID())); -} -/** Column name M_EDI_ID */ -public static final String COLUMNNAME_M_EDI_ID = "M_EDI_ID"; -/** Set EDI Log. -@param M_EDI_Info_ID EDI Log */ -public void setM_EDI_Info_ID (int M_EDI_Info_ID) -{ -if (M_EDI_Info_ID < 1) throw new IllegalArgumentException ("M_EDI_Info_ID is mandatory."); -set_ValueNoCheck ("M_EDI_Info_ID", Integer.valueOf(M_EDI_Info_ID)); -} -/** Get EDI Log. -@return EDI Log */ -public int getM_EDI_Info_ID() -{ -Integer ii = (Integer)get_Value("M_EDI_Info_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_EDI_Info_ID */ -public static final String COLUMNNAME_M_EDI_Info_ID = "M_EDI_Info_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_EDI_Info (Properties ctx, int M_EDI_Info_ID, String trxName) + { + super (ctx, M_EDI_Info_ID, trxName); + /** if (M_EDI_Info_ID == 0) { setInfo (null); + setM_EDI_ID (0); + setM_EDI_Info_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_EDI_Info (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_EDI_Info[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Info. + @param Info + Information + */ + public void setInfo (String Info) + { + if (Info == null) + throw new IllegalArgumentException ("Info is mandatory."); + if (Info.length() > 4000) + { + log.warning("Length > 4000 - truncated"); + Info = Info.substring(0, 3999); + } + set_Value (COLUMNNAME_Info, Info); + } + + /** Get Info. + @return Information + */ + public String getInfo () + { + return (String)get_Value(COLUMNNAME_Info); + } + + public I_M_EDI getI_M_EDI() throws Exception + { + Class clazz = MTable.getClass(I_M_EDI.Table_Name); + I_M_EDI result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_EDI)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_EDI_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set EDI Transaction. + @param M_EDI_ID EDI Transaction */ + public void setM_EDI_ID (int M_EDI_ID) + { + if (M_EDI_ID < 1) + throw new IllegalArgumentException ("M_EDI_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_EDI_ID, Integer.valueOf(M_EDI_ID)); + } + + /** Get EDI Transaction. +@return EDI Transaction */ + public int getM_EDI_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_EDI_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_EDI_ID())); + } + + /** Set EDI Log. + @param M_EDI_Info_ID EDI Log */ + public void setM_EDI_Info_ID (int M_EDI_Info_ID) + { + if (M_EDI_Info_ID < 1) + throw new IllegalArgumentException ("M_EDI_Info_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_EDI_Info_ID, Integer.valueOf(M_EDI_Info_ID)); + } + + /** Get EDI Log. +@return EDI Log */ + public int getM_EDI_Info_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_EDI_Info_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Forecast.java b/base/src/org/compiere/model/X_M_Forecast.java index d49c5c2944..7e89807630 100644 --- a/base/src/org/compiere/model/X_M_Forecast.java +++ b/base/src/org/compiere/model/X_M_Forecast.java @@ -1,247 +1,296 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Forecast - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Forecast extends PO + +/** Generated Model for M_Forecast + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Forecast_ID id -@param trxName transaction -*/ -public X_M_Forecast (Properties ctx, int M_Forecast_ID, String trxName) -{ -super (ctx, M_Forecast_ID, trxName); -/** if (M_Forecast_ID == 0) -{ -setC_Calendar_ID (0); -setC_Year_ID (0); -setIsDefault (false); -setM_Forecast_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Forecast (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Forecast */ -public static final String Table_Name="M_Forecast"; - -/** AD_Table_ID=720 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Forecast[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID < 1) throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); -set_ValueNoCheck ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; -/** Set Year. -@param C_Year_ID Calendar Year */ -public void setC_Year_ID (int C_Year_ID) -{ -if (C_Year_ID < 1) throw new IllegalArgumentException ("C_Year_ID is mandatory."); -set_ValueNoCheck ("C_Year_ID", Integer.valueOf(C_Year_ID)); -} -/** Get Year. -@return Calendar Year */ -public int getC_Year_ID() -{ -Integer ii = (Integer)get_Value("C_Year_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Year_ID */ -public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Forecast. -@param M_Forecast_ID Material Forecast */ -public void setM_Forecast_ID (int M_Forecast_ID) -{ -if (M_Forecast_ID < 1) throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); -set_ValueNoCheck ("M_Forecast_ID", Integer.valueOf(M_Forecast_ID)); -} -/** Get Forecast. -@return Material Forecast */ -public int getM_Forecast_ID() -{ -Integer ii = (Integer)get_Value("M_Forecast_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Forecast_ID */ -public static final String COLUMNNAME_M_Forecast_ID = "M_Forecast_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Forecast (Properties ctx, int M_Forecast_ID, String trxName) + { + super (ctx, M_Forecast_ID, trxName); + /** if (M_Forecast_ID == 0) { setC_Calendar_ID (0); + setC_Year_ID (0); + setIsDefault (false); + setM_Forecast_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_Forecast (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Forecast[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Calendar getI_C_Calendar() throws Exception + { + 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 e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Year getI_C_Year() throws Exception + { + 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 e; + } + return result; + } + + /** Set Year. + @param C_Year_ID + Calendar Year + */ + public void setC_Year_ID (int C_Year_ID) + { + if (C_Year_ID < 1) + throw new IllegalArgumentException ("C_Year_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + } + + /** Get Year. + @return Calendar Year + */ + public int getC_Year_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Year_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Forecast. + @param M_Forecast_ID + Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID) + { + if (M_Forecast_ID < 1) + throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); + } + + /** Get Forecast. + @return Material Forecast + */ + public int getM_Forecast_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Forecast_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ForecastLine.java b/base/src/org/compiere/model/X_M_ForecastLine.java index c1b2cbd30d..d67c59ebc0 100644 --- a/base/src/org/compiere/model/X_M_ForecastLine.java +++ b/base/src/org/compiere/model/X_M_ForecastLine.java @@ -1,201 +1,250 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ForecastLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ForecastLine extends PO + +/** Generated Model for M_ForecastLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ForecastLine_ID id -@param trxName transaction -*/ -public X_M_ForecastLine (Properties ctx, int M_ForecastLine_ID, String trxName) -{ -super (ctx, M_ForecastLine_ID, trxName); -/** if (M_ForecastLine_ID == 0) -{ -setC_Period_ID (0); -setM_ForecastLine_ID (0); -setM_Forecast_ID (0); -setM_Product_ID (0); -setQty (Env.ZERO); -setQtyCalculated (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ForecastLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ForecastLine */ -public static final String Table_Name="M_ForecastLine"; - -/** AD_Table_ID=722 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ForecastLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Period. -@param C_Period_ID Period of the Calendar */ -public void setC_Period_ID (int C_Period_ID) -{ -if (C_Period_ID < 1) throw new IllegalArgumentException ("C_Period_ID is mandatory."); -set_ValueNoCheck ("C_Period_ID", Integer.valueOf(C_Period_ID)); -} -/** Get Period. -@return Period of the Calendar */ -public int getC_Period_ID() -{ -Integer ii = (Integer)get_Value("C_Period_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getC_Period_ID())); -} -/** Column name C_Period_ID */ -public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; -/** Set Forecast Line. -@param M_ForecastLine_ID Forecast Line */ -public void setM_ForecastLine_ID (int M_ForecastLine_ID) -{ -if (M_ForecastLine_ID < 1) throw new IllegalArgumentException ("M_ForecastLine_ID is mandatory."); -set_ValueNoCheck ("M_ForecastLine_ID", Integer.valueOf(M_ForecastLine_ID)); -} -/** Get Forecast Line. -@return Forecast Line */ -public int getM_ForecastLine_ID() -{ -Integer ii = (Integer)get_Value("M_ForecastLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ForecastLine_ID */ -public static final String COLUMNNAME_M_ForecastLine_ID = "M_ForecastLine_ID"; -/** Set Forecast. -@param M_Forecast_ID Material Forecast */ -public void setM_Forecast_ID (int M_Forecast_ID) -{ -if (M_Forecast_ID < 1) throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); -set_ValueNoCheck ("M_Forecast_ID", Integer.valueOf(M_Forecast_ID)); -} -/** Get Forecast. -@return Material Forecast */ -public int getM_Forecast_ID() -{ -Integer ii = (Integer)get_Value("M_Forecast_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Forecast_ID */ -public static final String COLUMNNAME_M_Forecast_ID = "M_Forecast_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Calculated Quantity. -@param QtyCalculated Calculated Quantity */ -public void setQtyCalculated (BigDecimal QtyCalculated) -{ -if (QtyCalculated == null) throw new IllegalArgumentException ("QtyCalculated is mandatory."); -set_Value ("QtyCalculated", QtyCalculated); -} -/** Get Calculated Quantity. -@return Calculated Quantity */ -public BigDecimal getQtyCalculated() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyCalculated"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyCalculated */ -public static final String COLUMNNAME_QtyCalculated = "QtyCalculated"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ForecastLine (Properties ctx, int M_ForecastLine_ID, String trxName) + { + super (ctx, M_ForecastLine_ID, trxName); + /** if (M_ForecastLine_ID == 0) { setC_Period_ID (0); + setM_ForecastLine_ID (0); + setM_Forecast_ID (0); + setM_Product_ID (0); + setQty (Env.ZERO); + setQtyCalculated (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_ForecastLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ForecastLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Period getI_C_Period() throws Exception + { + 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 e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Period_ID())); + } + + /** Set Forecast Line. + @param M_ForecastLine_ID + Forecast Line + */ + public void setM_ForecastLine_ID (int M_ForecastLine_ID) + { + if (M_ForecastLine_ID < 1) + throw new IllegalArgumentException ("M_ForecastLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ForecastLine_ID, Integer.valueOf(M_ForecastLine_ID)); + } + + /** Get Forecast Line. + @return Forecast Line + */ + public int getM_ForecastLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ForecastLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Forecast getI_M_Forecast() throws Exception + { + 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 e; + } + return result; + } + + /** Set Forecast. + @param M_Forecast_ID + Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID) + { + if (M_Forecast_ID < 1) + throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); + } + + /** Get Forecast. + @return Material Forecast + */ + public int getM_Forecast_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Forecast_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Calculated Quantity. + @param QtyCalculated + Calculated Quantity + */ + public void setQtyCalculated (BigDecimal QtyCalculated) + { + if (QtyCalculated == null) + throw new IllegalArgumentException ("QtyCalculated is mandatory."); + set_Value (COLUMNNAME_QtyCalculated, QtyCalculated); + } + + /** Get Calculated Quantity. + @return Calculated Quantity + */ + public BigDecimal getQtyCalculated () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCalculated); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Freight.java b/base/src/org/compiere/model/X_M_Freight.java index 3b90daa86a..68d1801f60 100644 --- a/base/src/org/compiere/model/X_M_Freight.java +++ b/base/src/org/compiere/model/X_M_Freight.java @@ -1,277 +1,387 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Freight - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Freight extends PO + +/** Generated Model for M_Freight + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Freight extends PO implements I_M_Freight, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Freight_ID id -@param trxName transaction -*/ -public X_M_Freight (Properties ctx, int M_Freight_ID, String trxName) -{ -super (ctx, M_Freight_ID, trxName); -/** if (M_Freight_ID == 0) -{ -setC_Currency_ID (0); -setFreightAmt (Env.ZERO); -setM_FreightCategory_ID (0); -setM_Freight_ID (0); -setM_Shipper_ID (0); -setValidFrom (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Freight (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Freight */ -public static final String Table_Name="M_Freight"; - -/** AD_Table_ID=596 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Freight[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID <= 0) set_Value ("C_Country_ID", null); - else -set_Value ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_Value ("C_Region_ID", null); - else -set_Value ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set Freight Amount. -@param FreightAmt Freight Amount */ -public void setFreightAmt (BigDecimal FreightAmt) -{ -if (FreightAmt == null) throw new IllegalArgumentException ("FreightAmt is mandatory."); -set_Value ("FreightAmt", FreightAmt); -} -/** Get Freight Amount. -@return Freight Amount */ -public BigDecimal getFreightAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FreightAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FreightAmt */ -public static final String COLUMNNAME_FreightAmt = "FreightAmt"; -/** Set Freight Category. -@param M_FreightCategory_ID Category of the Freight */ -public void setM_FreightCategory_ID (int M_FreightCategory_ID) -{ -if (M_FreightCategory_ID < 1) throw new IllegalArgumentException ("M_FreightCategory_ID is mandatory."); -set_Value ("M_FreightCategory_ID", Integer.valueOf(M_FreightCategory_ID)); -} -/** Get Freight Category. -@return Category of the Freight */ -public int getM_FreightCategory_ID() -{ -Integer ii = (Integer)get_Value("M_FreightCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_FreightCategory_ID */ -public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; -/** Set Freight. -@param M_Freight_ID Freight Rate */ -public void setM_Freight_ID (int M_Freight_ID) -{ -if (M_Freight_ID < 1) throw new IllegalArgumentException ("M_Freight_ID is mandatory."); -set_ValueNoCheck ("M_Freight_ID", Integer.valueOf(M_Freight_ID)); -} -/** Get Freight. -@return Freight Rate */ -public int getM_Freight_ID() -{ -Integer ii = (Integer)get_Value("M_Freight_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Freight_ID */ -public static final String COLUMNNAME_M_Freight_ID = "M_Freight_ID"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID < 1) throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); -set_ValueNoCheck ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_Shipper_ID())); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Freight (Properties ctx, int M_Freight_ID, String trxName) + { + super (ctx, M_Freight_ID, trxName); + /** if (M_Freight_ID == 0) { setC_Currency_ID (0); + setFreightAmt (Env.ZERO); + setM_FreightCategory_ID (0); + setM_Freight_ID (0); + setM_Shipper_ID (0); + setValidFrom (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_M_Freight (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Freight[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID <= 0) set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Region getI_C_Region() throws Exception + { + 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 e; + } + return result; + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + if (FreightAmt == null) + throw new IllegalArgumentException ("FreightAmt is mandatory."); + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_M_FreightCategory getI_M_FreightCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Freight Category. + @param M_FreightCategory_ID + Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID) + { + if (M_FreightCategory_ID < 1) + throw new IllegalArgumentException ("M_FreightCategory_ID is mandatory."); + set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); + } + + /** Get Freight Category. + @return Category of the Freight + */ + public int getM_FreightCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FreightCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Freight. + @param M_Freight_ID + Freight Rate + */ + public void setM_Freight_ID (int M_Freight_ID) + { + if (M_Freight_ID < 1) + throw new IllegalArgumentException ("M_Freight_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Freight_ID, Integer.valueOf(M_Freight_ID)); + } + + /** Get Freight. + @return Freight Rate + */ + public int getM_Freight_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Freight_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getI_M_Shipper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_Shipper_ID())); + } /** To_Country_ID AD_Reference_ID=156 */ public static final int TO_COUNTRY_ID_AD_Reference_ID=156; -/** Set To. -@param To_Country_ID Receiving Country */ -public void setTo_Country_ID (int To_Country_ID) -{ -if (To_Country_ID <= 0) set_Value ("To_Country_ID", null); - else -set_Value ("To_Country_ID", Integer.valueOf(To_Country_ID)); -} -/** Get To. -@return Receiving Country */ -public int getTo_Country_ID() -{ -Integer ii = (Integer)get_Value("To_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name To_Country_ID */ -public static final String COLUMNNAME_To_Country_ID = "To_Country_ID"; + /** Set To. + @param To_Country_ID + Receiving Country + */ + public void setTo_Country_ID (int To_Country_ID) + { + if (To_Country_ID <= 0) set_Value (COLUMNNAME_To_Country_ID, null); + else + set_Value (COLUMNNAME_To_Country_ID, Integer.valueOf(To_Country_ID)); + } + + /** Get To. + @return Receiving Country + */ + public int getTo_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_To_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** To_Region_ID AD_Reference_ID=157 */ public static final int TO_REGION_ID_AD_Reference_ID=157; -/** Set To. -@param To_Region_ID Receiving Region */ -public void setTo_Region_ID (int To_Region_ID) -{ -if (To_Region_ID <= 0) set_Value ("To_Region_ID", null); - else -set_Value ("To_Region_ID", Integer.valueOf(To_Region_ID)); -} -/** Get To. -@return Receiving Region */ -public int getTo_Region_ID() -{ -Integer ii = (Integer)get_Value("To_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name To_Region_ID */ -public static final String COLUMNNAME_To_Region_ID = "To_Region_ID"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -} + /** Set To. + @param To_Region_ID + Receiving Region + */ + public void setTo_Region_ID (int To_Region_ID) + { + if (To_Region_ID <= 0) set_Value (COLUMNNAME_To_Region_ID, null); + else + set_Value (COLUMNNAME_To_Region_ID, Integer.valueOf(To_Region_ID)); + } + + /** Get To. + @return Receiving Region + */ + public int getTo_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_To_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_FreightCategory.java b/base/src/org/compiere/model/X_M_FreightCategory.java index 37dafd6b82..a04bf92776 100644 --- a/base/src/org/compiere/model/X_M_FreightCategory.java +++ b/base/src/org/compiere/model/X_M_FreightCategory.java @@ -1,191 +1,197 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_FreightCategory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_FreightCategory extends PO + +/** Generated Model for M_FreightCategory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_FreightCategory extends PO implements I_M_FreightCategory, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_FreightCategory_ID id -@param trxName transaction -*/ -public X_M_FreightCategory (Properties ctx, int M_FreightCategory_ID, String trxName) -{ -super (ctx, M_FreightCategory_ID, trxName); -/** if (M_FreightCategory_ID == 0) -{ -setM_FreightCategory_ID (0); -setName (null); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_FreightCategory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_FreightCategory */ -public static final String Table_Name="M_FreightCategory"; - -/** AD_Table_ID=595 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_FreightCategory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Freight Category. -@param M_FreightCategory_ID Category of the Freight */ -public void setM_FreightCategory_ID (int M_FreightCategory_ID) -{ -if (M_FreightCategory_ID < 1) throw new IllegalArgumentException ("M_FreightCategory_ID is mandatory."); -set_ValueNoCheck ("M_FreightCategory_ID", Integer.valueOf(M_FreightCategory_ID)); -} -/** Get Freight Category. -@return Category of the Freight */ -public int getM_FreightCategory_ID() -{ -Integer ii = (Integer)get_Value("M_FreightCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_FreightCategory_ID */ -public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_FreightCategory (Properties ctx, int M_FreightCategory_ID, String trxName) + { + super (ctx, M_FreightCategory_ID, trxName); + /** if (M_FreightCategory_ID == 0) { setM_FreightCategory_ID (0); + setName (null); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_M_FreightCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_FreightCategory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Freight Category. + @param M_FreightCategory_ID + Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID) + { + if (M_FreightCategory_ID < 1) + throw new IllegalArgumentException ("M_FreightCategory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); + } + + /** Get Freight Category. + @return Category of the Freight + */ + public int getM_FreightCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FreightCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InOut.java b/base/src/org/compiere/model/X_M_InOut.java index 1f66476ce3..70025b66e5 100644 --- a/base/src/org/compiere/model/X_M_InOut.java +++ b/base/src/org/compiere/model/X_M_InOut.java @@ -1,1271 +1,1499 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InOut - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InOut extends PO + +/** Generated Model for M_InOut + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InOut extends PO implements I_M_InOut, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InOut_ID id -@param trxName transaction -*/ -public X_M_InOut (Properties ctx, int M_InOut_ID, String trxName) -{ -super (ctx, M_InOut_ID, trxName); -/** if (M_InOut_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_DocType_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDeliveryRule (null); // A -setDeliveryViaRule (null); // P -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setFreightCostRule (null); // I -setIsApproved (false); -setIsInDispute (false); -setIsInTransit (false); -setIsPrinted (false); -setIsSOTrx (false); // @IsSOTrx@ -setM_InOut_ID (0); -setM_Warehouse_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setMovementType (null); -setPosted (false); -setPriorityRule (null); // 5 -setProcessed (false); -setSendEMail (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InOut (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InOut */ -public static final String Table_Name="M_InOut"; - -/** AD_Table_ID=319 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InOut[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InOut (Properties ctx, int M_InOut_ID, String trxName) + { + super (ctx, M_InOut_ID, trxName); + /** if (M_InOut_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_DocType_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDeliveryRule (null); +// A + setDeliveryViaRule (null); +// P + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setFreightCostRule (null); +// I + setIsApproved (false); + setIsInDispute (false); + setIsInTransit (false); + setIsPrinted (false); + setIsSOTrx (false); +// @IsSOTrx@ + setM_InOut_ID (0); + setM_Warehouse_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setMovementType (null); + setPosted (false); + setPriorityRule (null); +// 5 + setProcessed (false); + setSendEMail (false); +} */ + } + + /** Load Constructor */ + public X_M_InOut (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InOut[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_Charge_ID AD_Reference_ID=200 */ public static final int C_CHARGE_ID_AD_Reference_ID=200; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocType_ID AD_Reference_ID=170 */ public static final int C_DOCTYPE_ID_AD_Reference_ID=170; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_ValueNoCheck ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Charge amount. -@param ChargeAmt Charge Amount */ -public void setChargeAmt (BigDecimal ChargeAmt) -{ -set_Value ("ChargeAmt", ChargeAmt); -} -/** Get Charge amount. -@return Charge Amount */ -public BigDecimal getChargeAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeAmt */ -public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; -/** Set Create Confirm. -@param CreateConfirm Create Confirm */ -public void setCreateConfirm (String CreateConfirm) -{ -if (CreateConfirm != null && CreateConfirm.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateConfirm = CreateConfirm.substring(0,0); -} -set_Value ("CreateConfirm", CreateConfirm); -} -/** Get Create Confirm. -@return Create Confirm */ -public String getCreateConfirm() -{ -return (String)get_Value("CreateConfirm"); -} -/** Column name CreateConfirm */ -public static final String COLUMNNAME_CreateConfirm = "CreateConfirm"; -/** Set Create lines from. -@param CreateFrom Process which will generate a new document lines based on an existing document */ -public void setCreateFrom (String CreateFrom) -{ -if (CreateFrom != null && CreateFrom.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreateFrom = CreateFrom.substring(0,0); -} -set_Value ("CreateFrom", CreateFrom); -} -/** Get Create lines from. -@return Process which will generate a new document lines based on an existing document */ -public String getCreateFrom() -{ -return (String)get_Value("CreateFrom"); -} -/** Column name CreateFrom */ -public static final String COLUMNNAME_CreateFrom = "CreateFrom"; -/** Set Create Package. -@param CreatePackage Create Package */ -public void setCreatePackage (String CreatePackage) -{ -if (CreatePackage != null && CreatePackage.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreatePackage = CreatePackage.substring(0,0); -} -set_Value ("CreatePackage", CreatePackage); -} -/** Get Create Package. -@return Create Package */ -public String getCreatePackage() -{ -return (String)get_Value("CreatePackage"); -} -/** Column name CreatePackage */ -public static final String COLUMNNAME_CreatePackage = "CreatePackage"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Date Ordered. -@param DateOrdered Date of Order */ -public void setDateOrdered (Timestamp DateOrdered) -{ -set_ValueNoCheck ("DateOrdered", DateOrdered); -} -/** Get Date Ordered. -@return Date of Order */ -public Timestamp getDateOrdered() -{ -return (Timestamp)get_Value("DateOrdered"); -} -/** Column name DateOrdered */ -public static final String COLUMNNAME_DateOrdered = "DateOrdered"; -/** Set Date printed. -@param DatePrinted Date the document was printed. */ -public void setDatePrinted (Timestamp DatePrinted) -{ -set_Value ("DatePrinted", DatePrinted); -} -/** Get Date printed. -@return Date the document was printed. */ -public Timestamp getDatePrinted() -{ -return (Timestamp)get_Value("DatePrinted"); -} -/** Column name DatePrinted */ -public static final String COLUMNNAME_DatePrinted = "DatePrinted"; -/** Set Date received. -@param DateReceived Date a product was received */ -public void setDateReceived (Timestamp DateReceived) -{ -set_Value ("DateReceived", DateReceived); -} -/** Get Date received. -@return Date a product was received */ -public Timestamp getDateReceived() -{ -return (Timestamp)get_Value("DateReceived"); -} -/** Column name DateReceived */ -public static final String COLUMNNAME_DateReceived = "DateReceived"; + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Create Confirm. + @param CreateConfirm Create Confirm */ + public void setCreateConfirm (String CreateConfirm) + { + if (CreateConfirm != null && CreateConfirm.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateConfirm = CreateConfirm.substring(0, 0); + } + set_Value (COLUMNNAME_CreateConfirm, CreateConfirm); + } + + /** Get Create Confirm. +@return Create Confirm */ + public String getCreateConfirm () + { + return (String)get_Value(COLUMNNAME_CreateConfirm); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 0); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Create Package. + @param CreatePackage Create Package */ + public void setCreatePackage (String CreatePackage) + { + if (CreatePackage != null && CreatePackage.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreatePackage = CreatePackage.substring(0, 0); + } + set_Value (COLUMNNAME_CreatePackage, CreatePackage); + } + + /** Get Create Package. +@return Create Package */ + public String getCreatePackage () + { + return (String)get_Value(COLUMNNAME_CreatePackage); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + set_ValueNoCheck (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date printed. + @param DatePrinted + Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted) + { + set_Value (COLUMNNAME_DatePrinted, DatePrinted); + } + + /** Get Date printed. + @return Date the document was printed. + */ + public Timestamp getDatePrinted () + { + return (Timestamp)get_Value(COLUMNNAME_DatePrinted); + } + + /** Set Date received. + @param DateReceived + Date a product was received + */ + public void setDateReceived (Timestamp DateReceived) + { + set_Value (COLUMNNAME_DateReceived, DateReceived); + } + + /** Get Date received. + @return Date a product was received + */ + public Timestamp getDateReceived () + { + return (Timestamp)get_Value(COLUMNNAME_DateReceived); + } /** DeliveryRule AD_Reference_ID=151 */ -public static final int DELIVERYRULE_AD_Reference_ID=151; -/** Availability = A */ -public static final String DELIVERYRULE_Availability = "A"; -/** Force = F */ -public static final String DELIVERYRULE_Force = "F"; -/** Complete Line = L */ -public static final String DELIVERYRULE_CompleteLine = "L"; -/** Manual = M */ -public static final String DELIVERYRULE_Manual = "M"; -/** Complete Order = O */ -public static final String DELIVERYRULE_CompleteOrder = "O"; -/** After Receipt = R */ +public static final int DELIVERYRULE_AD_Reference_ID=151;/** Availability = A */ +public static final String DELIVERYRULE_Availability = "A";/** Force = F */ +public static final String DELIVERYRULE_Force = "F";/** Complete Line = L */ +public static final String DELIVERYRULE_CompleteLine = "L";/** Manual = M */ +public static final String DELIVERYRULE_Manual = "M";/** Complete Order = O */ +public static final String DELIVERYRULE_CompleteOrder = "O";/** After Receipt = R */ public static final String DELIVERYRULE_AfterReceipt = "R"; -/** Set Delivery Rule. -@param DeliveryRule Defines the timing of Delivery */ -public void setDeliveryRule (String DeliveryRule) -{ -if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); -if (DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); - else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); -if (DeliveryRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryRule = DeliveryRule.substring(0,0); -} -set_Value ("DeliveryRule", DeliveryRule); -} -/** Get Delivery Rule. -@return Defines the timing of Delivery */ -public String getDeliveryRule() -{ -return (String)get_Value("DeliveryRule"); -} -/** Column name DeliveryRule */ -public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { +if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory");if (DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); if (DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 0); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } /** DeliveryViaRule AD_Reference_ID=152 */ -public static final int DELIVERYVIARULE_AD_Reference_ID=152; -/** Delivery = D */ -public static final String DELIVERYVIARULE_Delivery = "D"; -/** Pickup = P */ -public static final String DELIVERYVIARULE_Pickup = "P"; -/** Shipper = S */ +public static final int DELIVERYVIARULE_AD_Reference_ID=152;/** Delivery = D */ +public static final String DELIVERYVIARULE_Delivery = "D";/** Pickup = P */ +public static final String DELIVERYVIARULE_Pickup = "P";/** Shipper = S */ public static final String DELIVERYVIARULE_Shipper = "S"; -/** Set Delivery Via. -@param DeliveryViaRule How the order will be delivered */ -public void setDeliveryViaRule (String DeliveryViaRule) -{ -if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); -if (DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); - else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); -if (DeliveryViaRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryViaRule = DeliveryViaRule.substring(0,0); -} -set_Value ("DeliveryViaRule", DeliveryViaRule); -} -/** Get Delivery Via. -@return How the order will be delivered */ -public String getDeliveryViaRule() -{ -return (String)get_Value("DeliveryViaRule"); -} -/** Column name DeliveryViaRule */ -public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { +if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory");if (DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); if (DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 0); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Freight Amount. -@param FreightAmt Freight Amount */ -public void setFreightAmt (BigDecimal FreightAmt) -{ -set_Value ("FreightAmt", FreightAmt); -} -/** Get Freight Amount. -@return Freight Amount */ -public BigDecimal getFreightAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("FreightAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FreightAmt */ -public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** FreightCostRule AD_Reference_ID=153 */ -public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; -/** Calculated = C */ -public static final String FREIGHTCOSTRULE_Calculated = "C"; -/** Fix price = F */ -public static final String FREIGHTCOSTRULE_FixPrice = "F"; -/** Freight included = I */ -public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; -/** Line = L */ +public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;/** Calculated = C */ +public static final String FREIGHTCOSTRULE_Calculated = "C";/** Fix price = F */ +public static final String FREIGHTCOSTRULE_FixPrice = "F";/** Freight included = I */ +public static final String FREIGHTCOSTRULE_FreightIncluded = "I";/** Line = L */ public static final String FREIGHTCOSTRULE_Line = "L"; -/** Set Freight Cost Rule. -@param FreightCostRule Method for charging Freight */ -public void setFreightCostRule (String FreightCostRule) -{ -if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); -if (FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); - else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); -if (FreightCostRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FreightCostRule = FreightCostRule.substring(0,0); -} -set_Value ("FreightCostRule", FreightCostRule); -} -/** Get Freight Cost Rule. -@return Method for charging Freight */ -public String getFreightCostRule() -{ -return (String)get_Value("FreightCostRule"); -} -/** Column name FreightCostRule */ -public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; -/** Set Generate To. -@param GenerateTo Generate To */ -public void setGenerateTo (String GenerateTo) -{ -if (GenerateTo != null && GenerateTo.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GenerateTo = GenerateTo.substring(0,0); -} -set_Value ("GenerateTo", GenerateTo); -} -/** Get Generate To. -@return Generate To */ -public String getGenerateTo() -{ -return (String)get_Value("GenerateTo"); -} -/** Column name GenerateTo */ -public static final String COLUMNNAME_GenerateTo = "GenerateTo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set In Dispute. -@param IsInDispute Document is in dispute */ -public void setIsInDispute (boolean IsInDispute) -{ -set_Value ("IsInDispute", Boolean.valueOf(IsInDispute)); -} -/** Get In Dispute. -@return Document is in dispute */ -public boolean isInDispute() -{ -Object oo = get_Value("IsInDispute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInDispute */ -public static final String COLUMNNAME_IsInDispute = "IsInDispute"; -/** Set In Transit. -@param IsInTransit Movement is in transit */ -public void setIsInTransit (boolean IsInTransit) -{ -set_Value ("IsInTransit", Boolean.valueOf(IsInTransit)); -} -/** Get In Transit. -@return Movement is in transit */ -public boolean isInTransit() -{ -Object oo = get_Value("IsInTransit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInTransit */ -public static final String COLUMNNAME_IsInTransit = "IsInTransit"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID < 1) throw new IllegalArgumentException ("M_InOut_ID is mandatory."); -set_ValueNoCheck ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; -/** Set RMA. -@param M_RMA_ID Return Material Authorization */ -public void setM_RMA_ID (int M_RMA_ID) -{ -if (M_RMA_ID <= 0) set_Value ("M_RMA_ID", null); - else -set_Value ("M_RMA_ID", Integer.valueOf(M_RMA_ID)); -} -/** Get RMA. -@return Return Material Authorization */ -public int getM_RMA_ID() -{ -Integer ii = (Integer)get_Value("M_RMA_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMA_ID */ -public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID <= 0) set_Value ("M_Shipper_ID", null); - else -set_Value ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { +if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory");if (FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); if (FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 0); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } + + /** Set Generate To. + @param GenerateTo + Generate To + */ + public void setGenerateTo (String GenerateTo) + { + if (GenerateTo != null && GenerateTo.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateTo = GenerateTo.substring(0, 0); + } + set_Value (COLUMNNAME_GenerateTo, GenerateTo); + } + + /** Get Generate To. + @return Generate To + */ + public String getGenerateTo () + { + return (String)get_Value(COLUMNNAME_GenerateTo); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Dispute. + @param IsInDispute + Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute) + { + set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute)); + } + + /** Get In Dispute. + @return Document is in dispute + */ + public boolean isInDispute () + { + Object oo = get_Value(COLUMNNAME_IsInDispute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID < 1) + throw new IllegalArgumentException ("M_InOut_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getI_M_RMA() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID <= 0) set_Value (COLUMNNAME_M_RMA_ID, null); + else + set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getI_M_Shipper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID <= 0) set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } /** MovementType AD_Reference_ID=189 */ -public static final int MOVEMENTTYPE_AD_Reference_ID=189; -/** Customer Returns = C+ */ -public static final String MOVEMENTTYPE_CustomerReturns = "C+"; -/** Customer Shipment = C- */ -public static final String MOVEMENTTYPE_CustomerShipment = "C-"; -/** Inventory In = I+ */ -public static final String MOVEMENTTYPE_InventoryIn = "I+"; -/** Inventory Out = I- */ -public static final String MOVEMENTTYPE_InventoryOut = "I-"; -/** Movement To = M+ */ -public static final String MOVEMENTTYPE_MovementTo = "M+"; -/** Movement From = M- */ -public static final String MOVEMENTTYPE_MovementFrom = "M-"; -/** Production + = P+ */ -public static final String MOVEMENTTYPE_ProductionPlus = "P+"; -/** Production - = P- */ -public static final String MOVEMENTTYPE_Production_ = "P-"; -/** Vendor Receipts = V+ */ -public static final String MOVEMENTTYPE_VendorReceipts = "V+"; -/** Vendor Returns = V- */ -public static final String MOVEMENTTYPE_VendorReturns = "V-"; -/** Work Order + = W+ */ -public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; -/** Work Order - = W- */ +public static final int MOVEMENTTYPE_AD_Reference_ID=189;/** Customer Returns = C+ */ +public static final String MOVEMENTTYPE_CustomerReturns = "C+";/** Customer Shipment = C- */ +public static final String MOVEMENTTYPE_CustomerShipment = "C-";/** Inventory In = I+ */ +public static final String MOVEMENTTYPE_InventoryIn = "I+";/** Inventory Out = I- */ +public static final String MOVEMENTTYPE_InventoryOut = "I-";/** Movement To = M+ */ +public static final String MOVEMENTTYPE_MovementTo = "M+";/** Movement From = M- */ +public static final String MOVEMENTTYPE_MovementFrom = "M-";/** Production + = P+ */ +public static final String MOVEMENTTYPE_ProductionPlus = "P+";/** Production - = P- */ +public static final String MOVEMENTTYPE_Production_ = "P-";/** Vendor Receipts = V+ */ +public static final String MOVEMENTTYPE_VendorReceipts = "V+";/** Vendor Returns = V- */ +public static final String MOVEMENTTYPE_VendorReturns = "V-";/** Work Order + = W+ */ +public static final String MOVEMENTTYPE_WorkOrderPlus = "W+";/** Work Order - = W- */ public static final String MOVEMENTTYPE_WorkOrder_ = "W-"; -/** Set Movement Type. -@param MovementType Method of moving the inventory */ -public void setMovementType (String MovementType) -{ -if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); -if (MovementType.equals("C+") || MovementType.equals("C-") || MovementType.equals("I+") || MovementType.equals("I-") || MovementType.equals("M+") || MovementType.equals("M-") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("W+") || MovementType.equals("W-")); - else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C+ - C- - I+ - I- - M+ - M- - P+ - P- - V+ - V- - W+ - W-"); -if (MovementType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -MovementType = MovementType.substring(0,1); -} -set_ValueNoCheck ("MovementType", MovementType); -} -/** Get Movement Type. -@return Method of moving the inventory */ -public String getMovementType() -{ -return (String)get_Value("MovementType"); -} -/** Column name MovementType */ -public static final String COLUMNNAME_MovementType = "MovementType"; -/** Set No Packages. -@param NoPackages Number of packages shipped */ -public void setNoPackages (int NoPackages) -{ -set_Value ("NoPackages", Integer.valueOf(NoPackages)); -} -/** Get No Packages. -@return Number of packages shipped */ -public int getNoPackages() -{ -Integer ii = (Integer)get_Value("NoPackages"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NoPackages */ -public static final String COLUMNNAME_NoPackages = "NoPackages"; -/** Set Order Reference. -@param POReference Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public void setPOReference (String POReference) -{ -if (POReference != null && POReference.length() > 20) -{ -log.warning("Length > 20 - truncated"); -POReference = POReference.substring(0,19); -} -set_Value ("POReference", POReference); -} -/** Get Order Reference. -@return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public String getPOReference() -{ -return (String)get_Value("POReference"); -} -/** Column name POReference */ -public static final String COLUMNNAME_POReference = "POReference"; -/** Set Pick Date. -@param PickDate Date/Time when picked for Shipment */ -public void setPickDate (Timestamp PickDate) -{ -set_Value ("PickDate", PickDate); -} -/** Get Pick Date. -@return Date/Time when picked for Shipment */ -public Timestamp getPickDate() -{ -return (Timestamp)get_Value("PickDate"); -} -/** Column name PickDate */ -public static final String COLUMNNAME_PickDate = "PickDate"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; + /** Set Movement Type. + @param MovementType + Method of moving the inventory + */ + public void setMovementType (String MovementType) + { +if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory");if (MovementType.equals("C+") || MovementType.equals("C-") || MovementType.equals("I+") || MovementType.equals("I-") || MovementType.equals("M+") || MovementType.equals("M-") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("W+") || MovementType.equals("W-")); else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C+ - C- - I+ - I- - M+ - M- - P+ - P- - V+ - V- - W+ - W-"); if (MovementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + MovementType = MovementType.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_MovementType, MovementType); + } + + /** Get Movement Type. + @return Method of moving the inventory + */ + public String getMovementType () + { + return (String)get_Value(COLUMNNAME_MovementType); + } + + /** Set No Packages. + @param NoPackages + Number of packages shipped + */ + public void setNoPackages (int NoPackages) + { + set_Value (COLUMNNAME_NoPackages, Integer.valueOf(NoPackages)); + } + + /** Get No Packages. + @return Number of packages shipped + */ + public int getNoPackages () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NoPackages); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 19); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** Set Pick Date. + @param PickDate + Date/Time when picked for Shipment + */ + public void setPickDate (Timestamp PickDate) + { + set_Value (COLUMNNAME_PickDate, PickDate); + } + + /** Get Pick Date. + @return Date/Time when picked for Shipment + */ + public Timestamp getPickDate () + { + return (Timestamp)get_Value(COLUMNNAME_PickDate); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PriorityRule AD_Reference_ID=154 */ -public static final int PRIORITYRULE_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITYRULE_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITYRULE_High = "3"; -/** Medium = 5 */ -public static final String PRIORITYRULE_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITYRULE_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITYRULE_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITYRULE_Urgent = "1";/** High = 3 */ +public static final String PRIORITYRULE_High = "3";/** Medium = 5 */ +public static final String PRIORITYRULE_Medium = "5";/** Low = 7 */ +public static final String PRIORITYRULE_Low = "7";/** Minor = 9 */ public static final String PRIORITYRULE_Minor = "9"; -/** Set Priority. -@param PriorityRule Priority of a document */ -public void setPriorityRule (String PriorityRule) -{ -if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); -if (PriorityRule.equals("1") || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("9")); - else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (PriorityRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PriorityRule = PriorityRule.substring(0,0); -} -set_Value ("PriorityRule", PriorityRule); -} -/** Get Priority. -@return Priority of a document */ -public String getPriorityRule() -{ -return (String)get_Value("PriorityRule"); -} -/** Column name PriorityRule */ -public static final String COLUMNNAME_PriorityRule = "PriorityRule"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Referenced Shipment. -@param Ref_InOut_ID Referenced Shipment */ -public void setRef_InOut_ID (int Ref_InOut_ID) -{ -if (Ref_InOut_ID <= 0) set_Value ("Ref_InOut_ID", null); - else -set_Value ("Ref_InOut_ID", Integer.valueOf(Ref_InOut_ID)); -} -/** Get Referenced Shipment. -@return Referenced Shipment */ -public int getRef_InOut_ID() -{ -Integer ii = (Integer)get_Value("Ref_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_InOut_ID */ -public static final String COLUMNNAME_Ref_InOut_ID = "Ref_InOut_ID"; + /** Set Priority. + @param PriorityRule + Priority of a document + */ + public void setPriorityRule (String PriorityRule) + { +if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory");if (PriorityRule.equals("1") || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (PriorityRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityRule = PriorityRule.substring(0, 0); + } + set_Value (COLUMNNAME_PriorityRule, PriorityRule); + } + + /** Get Priority. + @return Priority of a document + */ + public String getPriorityRule () + { + return (String)get_Value(COLUMNNAME_PriorityRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Referenced Shipment. + @param Ref_InOut_ID Referenced Shipment */ + public void setRef_InOut_ID (int Ref_InOut_ID) + { + if (Ref_InOut_ID <= 0) set_Value (COLUMNNAME_Ref_InOut_ID, null); + else + set_Value (COLUMNNAME_Ref_InOut_ID, Integer.valueOf(Ref_InOut_ID)); + } + + /** Get Referenced Shipment. +@return Referenced Shipment */ + public int getRef_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Send EMail. -@param SendEMail Enable sending Document EMail */ -public void setSendEMail (boolean SendEMail) -{ -set_Value ("SendEMail", Boolean.valueOf(SendEMail)); -} -/** Get Send EMail. -@return Enable sending Document EMail */ -public boolean isSendEMail() -{ -Object oo = get_Value("SendEMail"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendEMail */ -public static final String COLUMNNAME_SendEMail = "SendEMail"; -/** Set Ship Date. -@param ShipDate Shipment Date/Time */ -public void setShipDate (Timestamp ShipDate) -{ -set_Value ("ShipDate", ShipDate); -} -/** Get Ship Date. -@return Shipment Date/Time */ -public Timestamp getShipDate() -{ -return (Timestamp)get_Value("ShipDate"); -} -/** Column name ShipDate */ -public static final String COLUMNNAME_ShipDate = "ShipDate"; -/** Set Tracking No. -@param TrackingNo Number to track the shipment */ -public void setTrackingNo (String TrackingNo) -{ -if (TrackingNo != null && TrackingNo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -TrackingNo = TrackingNo.substring(0,59); -} -set_Value ("TrackingNo", TrackingNo); -} -/** Get Tracking No. -@return Number to track the shipment */ -public String getTrackingNo() -{ -return (String)get_Value("TrackingNo"); -} -/** Column name TrackingNo */ -public static final String COLUMNNAME_TrackingNo = "TrackingNo"; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship Date. + @param ShipDate + Shipment Date/Time + */ + public void setShipDate (Timestamp ShipDate) + { + set_Value (COLUMNNAME_ShipDate, ShipDate); + } + + /** Get Ship Date. + @return Shipment Date/Time + */ + public Timestamp getShipDate () + { + return (Timestamp)get_Value(COLUMNNAME_ShipDate); + } + + /** Set Tracking No. + @param TrackingNo + Number to track the shipment + */ + public void setTrackingNo (String TrackingNo) + { + if (TrackingNo != null && TrackingNo.length() > 60) + { + log.warning("Length > 60 - truncated"); + TrackingNo = TrackingNo.substring(0, 59); + } + set_Value (COLUMNNAME_TrackingNo, TrackingNo); + } + + /** Get Tracking No. + @return Number to track the shipment + */ + public String getTrackingNo () + { + return (String)get_Value(COLUMNNAME_TrackingNo); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -/** Set Volume. -@param Volume Volume of a product */ -public void setVolume (BigDecimal Volume) -{ -set_Value ("Volume", Volume); -} -/** Get Volume. -@return Volume of a product */ -public BigDecimal getVolume() -{ -BigDecimal bd = (BigDecimal)get_Value("Volume"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Volume */ -public static final String COLUMNNAME_Volume = "Volume"; -/** Set Weight. -@param Weight Weight of a product */ -public void setWeight (BigDecimal Weight) -{ -set_Value ("Weight", Weight); -} -/** Get Weight. -@return Weight of a product */ -public BigDecimal getWeight() -{ -BigDecimal bd = (BigDecimal)get_Value("Weight"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Weight */ -public static final String COLUMNNAME_Weight = "Weight"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (BigDecimal Volume) + { + set_Value (COLUMNNAME_Volume, Volume); + } + + /** Get Volume. + @return Volume of a product + */ + public BigDecimal getVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (BigDecimal Weight) + { + set_Value (COLUMNNAME_Weight, Weight); + } + + /** Get Weight. + @return Weight of a product + */ + public BigDecimal getWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InOutConfirm.java b/base/src/org/compiere/model/X_M_InOutConfirm.java index a4af139318..bedcf10853 100644 --- a/base/src/org/compiere/model/X_M_InOutConfirm.java +++ b/base/src/org/compiere/model/X_M_InOutConfirm.java @@ -1,503 +1,508 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InOutConfirm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InOutConfirm extends PO + +/** Generated Model for M_InOutConfirm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InOutConfirm extends PO implements I_M_InOutConfirm, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InOutConfirm_ID id -@param trxName transaction -*/ -public X_M_InOutConfirm (Properties ctx, int M_InOutConfirm_ID, String trxName) -{ -super (ctx, M_InOutConfirm_ID, trxName); -/** if (M_InOutConfirm_ID == 0) -{ -setConfirmType (null); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsApproved (false); -setIsCancelled (false); -setIsInDispute (false); // N -setM_InOutConfirm_ID (0); -setM_InOut_ID (0); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InOutConfirm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InOutConfirm */ -public static final String Table_Name="M_InOutConfirm"; - -/** AD_Table_ID=727 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InOutConfirm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Approval Amount. -@param ApprovalAmt Document Approval Amount */ -public void setApprovalAmt (BigDecimal ApprovalAmt) -{ -set_Value ("ApprovalAmt", ApprovalAmt); -} -/** Get Approval Amount. -@return Document Approval Amount */ -public BigDecimal getApprovalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ApprovalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ApprovalAmt */ -public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InOutConfirm (Properties ctx, int M_InOutConfirm_ID, String trxName) + { + super (ctx, M_InOutConfirm_ID, trxName); + /** if (M_InOutConfirm_ID == 0) { setConfirmType (null); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setIsCancelled (false); + setIsInDispute (false); +// N + setM_InOutConfirm_ID (0); + setM_InOut_ID (0); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_InOutConfirm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InOutConfirm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** ConfirmType AD_Reference_ID=320 */ -public static final int CONFIRMTYPE_AD_Reference_ID=320; -/** Drop Ship Confirm = DS */ -public static final String CONFIRMTYPE_DropShipConfirm = "DS"; -/** Pick/QA Confirm = PC */ -public static final String CONFIRMTYPE_PickQAConfirm = "PC"; -/** Ship/Receipt Confirm = SC */ -public static final String CONFIRMTYPE_ShipReceiptConfirm = "SC"; -/** Customer Confirmation = XC */ -public static final String CONFIRMTYPE_CustomerConfirmation = "XC"; -/** Vendor Confirmation = XV */ +public static final int CONFIRMTYPE_AD_Reference_ID=320;/** Drop Ship Confirm = DS */ +public static final String CONFIRMTYPE_DropShipConfirm = "DS";/** Pick/QA Confirm = PC */ +public static final String CONFIRMTYPE_PickQAConfirm = "PC";/** Ship/Receipt Confirm = SC */ +public static final String CONFIRMTYPE_ShipReceiptConfirm = "SC";/** Customer Confirmation = XC */ +public static final String CONFIRMTYPE_CustomerConfirmation = "XC";/** Vendor Confirmation = XV */ public static final String CONFIRMTYPE_VendorConfirmation = "XV"; -/** Set Confirmation Type. -@param ConfirmType Type of confirmation */ -public void setConfirmType (String ConfirmType) -{ -if (ConfirmType == null) throw new IllegalArgumentException ("ConfirmType is mandatory"); -if (ConfirmType.equals("DS") || ConfirmType.equals("PC") || ConfirmType.equals("SC") || ConfirmType.equals("XC") || ConfirmType.equals("XV")); - else throw new IllegalArgumentException ("ConfirmType Invalid value - " + ConfirmType + " - Reference_ID=320 - DS - PC - SC - XC - XV"); -if (ConfirmType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -ConfirmType = ConfirmType.substring(0,1); -} -set_Value ("ConfirmType", ConfirmType); -} -/** Get Confirmation Type. -@return Type of confirmation */ -public String getConfirmType() -{ -return (String)get_Value("ConfirmType"); -} -/** Column name ConfirmType */ -public static final String COLUMNNAME_ConfirmType = "ConfirmType"; -/** Set Confirmation No. -@param ConfirmationNo Confirmation Number */ -public void setConfirmationNo (String ConfirmationNo) -{ -if (ConfirmationNo != null && ConfirmationNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ConfirmationNo = ConfirmationNo.substring(0,19); -} -set_Value ("ConfirmationNo", ConfirmationNo); -} -/** Get Confirmation No. -@return Confirmation Number */ -public String getConfirmationNo() -{ -return (String)get_Value("ConfirmationNo"); -} -/** Column name ConfirmationNo */ -public static final String COLUMNNAME_ConfirmationNo = "ConfirmationNo"; -/** Set Create Package. -@param CreatePackage Create Package */ -public void setCreatePackage (String CreatePackage) -{ -if (CreatePackage != null && CreatePackage.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CreatePackage = CreatePackage.substring(0,0); -} -set_Value ("CreatePackage", CreatePackage); -} -/** Get Create Package. -@return Create Package */ -public String getCreatePackage() -{ -return (String)get_Value("CreatePackage"); -} -/** Column name CreatePackage */ -public static final String COLUMNNAME_CreatePackage = "CreatePackage"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Confirmation Type. + @param ConfirmType + Type of confirmation + */ + public void setConfirmType (String ConfirmType) + { +if (ConfirmType == null) throw new IllegalArgumentException ("ConfirmType is mandatory");if (ConfirmType.equals("DS") || ConfirmType.equals("PC") || ConfirmType.equals("SC") || ConfirmType.equals("XC") || ConfirmType.equals("XV")); else throw new IllegalArgumentException ("ConfirmType Invalid value - " + ConfirmType + " - Reference_ID=320 - DS - PC - SC - XC - XV"); if (ConfirmType.length() > 2) + { + log.warning("Length > 2 - truncated"); + ConfirmType = ConfirmType.substring(0, 1); + } + set_Value (COLUMNNAME_ConfirmType, ConfirmType); + } + + /** Get Confirmation Type. + @return Type of confirmation + */ + public String getConfirmType () + { + return (String)get_Value(COLUMNNAME_ConfirmType); + } + + /** Set Confirmation No. + @param ConfirmationNo + Confirmation Number + */ + public void setConfirmationNo (String ConfirmationNo) + { + if (ConfirmationNo != null && ConfirmationNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ConfirmationNo = ConfirmationNo.substring(0, 19); + } + set_Value (COLUMNNAME_ConfirmationNo, ConfirmationNo); + } + + /** Get Confirmation No. + @return Confirmation Number + */ + public String getConfirmationNo () + { + return (String)get_Value(COLUMNNAME_ConfirmationNo); + } + + /** Set Create Package. + @param CreatePackage Create Package */ + public void setCreatePackage (String CreatePackage) + { + if (CreatePackage != null && CreatePackage.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreatePackage = CreatePackage.substring(0, 0); + } + set_Value (COLUMNNAME_CreatePackage, CreatePackage); + } + + /** Get Create Package. +@return Create Package */ + public String getCreatePackage () + { + return (String)get_Value(COLUMNNAME_CreatePackage); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Cancelled. -@param IsCancelled The transaction was cancelled */ -public void setIsCancelled (boolean IsCancelled) -{ -set_Value ("IsCancelled", Boolean.valueOf(IsCancelled)); -} -/** Get Cancelled. -@return The transaction was cancelled */ -public boolean isCancelled() -{ -Object oo = get_Value("IsCancelled"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCancelled */ -public static final String COLUMNNAME_IsCancelled = "IsCancelled"; -/** Set In Dispute. -@param IsInDispute Document is in dispute */ -public void setIsInDispute (boolean IsInDispute) -{ -set_Value ("IsInDispute", Boolean.valueOf(IsInDispute)); -} -/** Get In Dispute. -@return Document is in dispute */ -public boolean isInDispute() -{ -Object oo = get_Value("IsInDispute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInDispute */ -public static final String COLUMNNAME_IsInDispute = "IsInDispute"; -/** Set Ship/Receipt Confirmation. -@param M_InOutConfirm_ID Material Shipment or Receipt Confirmation */ -public void setM_InOutConfirm_ID (int M_InOutConfirm_ID) -{ -if (M_InOutConfirm_ID < 1) throw new IllegalArgumentException ("M_InOutConfirm_ID is mandatory."); -set_ValueNoCheck ("M_InOutConfirm_ID", Integer.valueOf(M_InOutConfirm_ID)); -} -/** Get Ship/Receipt Confirmation. -@return Material Shipment or Receipt Confirmation */ -public int getM_InOutConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_InOutConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutConfirm_ID */ -public static final String COLUMNNAME_M_InOutConfirm_ID = "M_InOutConfirm_ID"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID < 1) throw new IllegalArgumentException ("M_InOut_ID is mandatory."); -set_ValueNoCheck ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; -/** Set Phys.Inventory. -@param M_Inventory_ID Parameters for a Physical Inventory */ -public void setM_Inventory_ID (int M_Inventory_ID) -{ -if (M_Inventory_ID <= 0) set_Value ("M_Inventory_ID", null); - else -set_Value ("M_Inventory_ID", Integer.valueOf(M_Inventory_ID)); -} -/** Get Phys.Inventory. -@return Parameters for a Physical Inventory */ -public int getM_Inventory_ID() -{ -Integer ii = (Integer)get_Value("M_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Inventory_ID */ -public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Cancelled. + @param IsCancelled + The transaction was cancelled + */ + public void setIsCancelled (boolean IsCancelled) + { + set_Value (COLUMNNAME_IsCancelled, Boolean.valueOf(IsCancelled)); + } + + /** Get Cancelled. + @return The transaction was cancelled + */ + public boolean isCancelled () + { + Object oo = get_Value(COLUMNNAME_IsCancelled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Dispute. + @param IsInDispute + Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute) + { + set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute)); + } + + /** Get In Dispute. + @return Document is in dispute + */ + public boolean isInDispute () + { + Object oo = get_Value(COLUMNNAME_IsInDispute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship/Receipt Confirmation. + @param M_InOutConfirm_ID + Material Shipment or Receipt Confirmation + */ + public void setM_InOutConfirm_ID (int M_InOutConfirm_ID) + { + if (M_InOutConfirm_ID < 1) + throw new IllegalArgumentException ("M_InOutConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, Integer.valueOf(M_InOutConfirm_ID)); + } + + /** Get Ship/Receipt Confirmation. + @return Material Shipment or Receipt Confirmation + */ + public int getM_InOutConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID < 1) + throw new IllegalArgumentException ("M_InOut_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID <= 0) set_Value (COLUMNNAME_M_Inventory_ID, null); + else + set_Value (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InOutLine.java b/base/src/org/compiere/model/X_M_InOutLine.java index 06dabb6dd4..0625627196 100644 --- a/base/src/org/compiere/model/X_M_InOutLine.java +++ b/base/src/org/compiere/model/X_M_InOutLine.java @@ -1,625 +1,875 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InOutLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InOutLine extends PO + +/** Generated Model for M_InOutLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InOutLine extends PO implements I_M_InOutLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InOutLine_ID id -@param trxName transaction -*/ -public X_M_InOutLine (Properties ctx, int M_InOutLine_ID, String trxName) -{ -super (ctx, M_InOutLine_ID, trxName); -/** if (M_InOutLine_ID == 0) -{ -setC_UOM_ID (0); // @#C_UOM_ID@ -setIsDescription (false); // N -setIsInvoiced (false); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_InOutLine WHERE M_InOut_ID=@M_InOut_ID@ -setM_AttributeSetInstance_ID (0); -setM_InOutLine_ID (0); -setM_InOut_ID (0); -setM_Locator_ID (0); // @M_Locator_ID@ -setMovementQty (Env.ZERO); // 1 -setProcessed (false); -setQtyEntered (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InOutLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InOutLine */ -public static final String Table_Name="M_InOutLine"; - -/** AD_Table_ID=320 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InOutLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InOutLine (Properties ctx, int M_InOutLine_ID, String trxName) + { + super (ctx, M_InOutLine_ID, trxName); + /** if (M_InOutLine_ID == 0) { setC_UOM_ID (0); +// @#C_UOM_ID@ + setIsDescription (false); +// N + setIsInvoiced (false); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_InOutLine WHERE M_InOut_ID=@M_InOut_ID@ + setM_AttributeSetInstance_ID (0); + setM_InOutLine_ID (0); + setM_InOut_ID (0); + setM_Locator_ID (0); +// @M_Locator_ID@ + setMovementQty (Env.ZERO); +// 1 + setProcessed (false); + setQtyEntered (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_M_InOutLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InOutLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_ValueNoCheck ("C_OrderLine_ID", null); - else -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_Value ("C_ProjectPhase_ID", null); - else -set_Value ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_Value ("C_ProjectTask_ID", null); - else -set_Value ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_ValueNoCheck ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Confirmed Quantity. -@param ConfirmedQty Confirmation of a received quantity */ -public void setConfirmedQty (BigDecimal ConfirmedQty) -{ -set_Value ("ConfirmedQty", ConfirmedQty); -} -/** Get Confirmed Quantity. -@return Confirmation of a received quantity */ -public BigDecimal getConfirmedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ConfirmedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConfirmedQty */ -public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Description Only. -@param IsDescription if true, the line is just description and no transaction */ -public void setIsDescription (boolean IsDescription) -{ -set_Value ("IsDescription", Boolean.valueOf(IsDescription)); -} -/** Get Description Only. -@return if true, the line is just description and no transaction */ -public boolean isDescription() -{ -Object oo = get_Value("IsDescription"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDescription */ -public static final String COLUMNNAME_IsDescription = "IsDescription"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (boolean IsInvoiced) -{ -set_Value ("IsInvoiced", Boolean.valueOf(IsInvoiced)); -} -/** Get Invoiced. -@return Is this invoiced? */ -public boolean isInvoiced() -{ -Object oo = get_Value("IsInvoiced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID < 1) throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID < 1) throw new IllegalArgumentException ("M_InOut_ID is mandatory."); -set_ValueNoCheck ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set RMA Line. -@param M_RMALine_ID Return Material Authorization Line */ -public void setM_RMALine_ID (int M_RMALine_ID) -{ -if (M_RMALine_ID <= 0) set_Value ("M_RMALine_ID", null); - else -set_Value ("M_RMALine_ID", Integer.valueOf(M_RMALine_ID)); -} -/** Get RMA Line. -@return Return Material Authorization Line */ -public int getM_RMALine_ID() -{ -Integer ii = (Integer)get_Value("M_RMALine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMALine_ID */ -public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -/** Set Picked Quantity. -@param PickedQty Picked Quantity */ -public void setPickedQty (BigDecimal PickedQty) -{ -set_Value ("PickedQty", PickedQty); -} -/** Get Picked Quantity. -@return Picked Quantity */ -public BigDecimal getPickedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("PickedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PickedQty */ -public static final String COLUMNNAME_PickedQty = "PickedQty"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param QtyEntered The Quantity Entered is based on the selected UoM */ -public void setQtyEntered (BigDecimal QtyEntered) -{ -if (QtyEntered == null) throw new IllegalArgumentException ("QtyEntered is mandatory."); -set_Value ("QtyEntered", QtyEntered); -} -/** Get Quantity. -@return The Quantity Entered is based on the selected UoM */ -public BigDecimal getQtyEntered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyEntered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyEntered */ -public static final String COLUMNNAME_QtyEntered = "QtyEntered"; -/** Set Referenced Shipment Line. -@param Ref_InOutLine_ID Referenced Shipment Line */ -public void setRef_InOutLine_ID (int Ref_InOutLine_ID) -{ -if (Ref_InOutLine_ID <= 0) set_Value ("Ref_InOutLine_ID", null); - else -set_Value ("Ref_InOutLine_ID", Integer.valueOf(Ref_InOutLine_ID)); -} -/** Get Referenced Shipment Line. -@return Referenced Shipment Line */ -public int getRef_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("Ref_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Ref_InOutLine_ID */ -public static final String COLUMNNAME_Ref_InOutLine_ID = "Ref_InOutLine_ID"; -/** Set Scrapped Quantity. -@param ScrappedQty The Quantity scrapped due to QA issues */ -public void setScrappedQty (BigDecimal ScrappedQty) -{ -set_Value ("ScrappedQty", ScrappedQty); -} -/** Get Scrapped Quantity. -@return The Quantity scrapped due to QA issues */ -public BigDecimal getScrappedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ScrappedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ScrappedQty */ -public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; -/** Set Target Quantity. -@param TargetQty Target Movement Quantity */ -public void setTargetQty (BigDecimal TargetQty) -{ -set_Value ("TargetQty", TargetQty); -} -/** Get Target Quantity. -@return Target Movement Quantity */ -public BigDecimal getTargetQty() -{ -BigDecimal bd = (BigDecimal)get_Value("TargetQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TargetQty */ -public static final String COLUMNNAME_TargetQty = "TargetQty"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_OrderLine getI_C_OrderLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_Value (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_Value (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_Value (COLUMNNAME_C_ProjectTask_ID, null); + else + set_Value (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Confirmed Quantity. + @param ConfirmedQty + Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty) + { + set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); + } + + /** Get Confirmed Quantity. + @return Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Description Only. + @param IsDescription + if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription) + { + set_Value (COLUMNNAME_IsDescription, Boolean.valueOf(IsDescription)); + } + + /** Get Description Only. + @return if true, the line is just description and no transaction + */ + public boolean isDescription () + { + Object oo = get_Value(COLUMNNAME_IsDescription); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID < 1) + throw new IllegalArgumentException ("M_InOut_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMALine getI_M_RMALine() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA Line. + @param M_RMALine_ID + Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID) + { + if (M_RMALine_ID <= 0) set_Value (COLUMNNAME_M_RMALine_ID, null); + else + set_Value (COLUMNNAME_M_RMALine_ID, Integer.valueOf(M_RMALine_ID)); + } + + /** Get RMA Line. + @return Return Material Authorization Line + */ + public int getM_RMALine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMALine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Picked Quantity. + @param PickedQty Picked Quantity */ + public void setPickedQty (BigDecimal PickedQty) + { + set_Value (COLUMNNAME_PickedQty, PickedQty); + } + + /** Get Picked Quantity. +@return Picked Quantity */ + public BigDecimal getPickedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PickedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param QtyEntered + The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered) + { + if (QtyEntered == null) + throw new IllegalArgumentException ("QtyEntered is mandatory."); + set_Value (COLUMNNAME_QtyEntered, QtyEntered); + } + + /** Get Quantity. + @return The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Referenced Shipment Line. + @param Ref_InOutLine_ID Referenced Shipment Line */ + public void setRef_InOutLine_ID (int Ref_InOutLine_ID) + { + if (Ref_InOutLine_ID <= 0) set_Value (COLUMNNAME_Ref_InOutLine_ID, null); + else + set_Value (COLUMNNAME_Ref_InOutLine_ID, Integer.valueOf(Ref_InOutLine_ID)); + } + + /** Get Referenced Shipment Line. +@return Referenced Shipment Line */ + public int getRef_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Target Quantity. + @param TargetQty + Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty) + { + set_Value (COLUMNNAME_TargetQty, TargetQty); + } + + /** Get Target Quantity. + @return Target Movement Quantity + */ + public BigDecimal getTargetQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TargetQty); + if (bd == null) + return Env.ZERO; + return bd; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InOutLineConfirm.java b/base/src/org/compiere/model/X_M_InOutLineConfirm.java index 0aee32708f..9f00d47b1a 100644 --- a/base/src/org/compiere/model/X_M_InOutLineConfirm.java +++ b/base/src/org/compiere/model/X_M_InOutLineConfirm.java @@ -1,310 +1,364 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InOutLineConfirm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InOutLineConfirm extends PO + +/** Generated Model for M_InOutLineConfirm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InOutLineConfirm extends PO implements I_M_InOutLineConfirm, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InOutLineConfirm_ID id -@param trxName transaction -*/ -public X_M_InOutLineConfirm (Properties ctx, int M_InOutLineConfirm_ID, String trxName) -{ -super (ctx, M_InOutLineConfirm_ID, trxName); -/** if (M_InOutLineConfirm_ID == 0) -{ -setConfirmedQty (Env.ZERO); -setM_InOutConfirm_ID (0); -setM_InOutLineConfirm_ID (0); -setM_InOutLine_ID (0); -setProcessed (false); -setTargetQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InOutLineConfirm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InOutLineConfirm */ -public static final String Table_Name="M_InOutLineConfirm"; - -/** AD_Table_ID=728 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InOutLineConfirm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_Value ("C_InvoiceLine_ID", null); - else -set_Value ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Confirmation No. -@param ConfirmationNo Confirmation Number */ -public void setConfirmationNo (String ConfirmationNo) -{ -if (ConfirmationNo != null && ConfirmationNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -ConfirmationNo = ConfirmationNo.substring(0,19); -} -set_Value ("ConfirmationNo", ConfirmationNo); -} -/** Get Confirmation No. -@return Confirmation Number */ -public String getConfirmationNo() -{ -return (String)get_Value("ConfirmationNo"); -} -/** Column name ConfirmationNo */ -public static final String COLUMNNAME_ConfirmationNo = "ConfirmationNo"; -/** Set Confirmed Quantity. -@param ConfirmedQty Confirmation of a received quantity */ -public void setConfirmedQty (BigDecimal ConfirmedQty) -{ -if (ConfirmedQty == null) throw new IllegalArgumentException ("ConfirmedQty is mandatory."); -set_Value ("ConfirmedQty", ConfirmedQty); -} -/** Get Confirmed Quantity. -@return Confirmation of a received quantity */ -public BigDecimal getConfirmedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ConfirmedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConfirmedQty */ -public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Difference. -@param DifferenceQty Difference Quantity */ -public void setDifferenceQty (BigDecimal DifferenceQty) -{ -set_Value ("DifferenceQty", DifferenceQty); -} -/** Get Difference. -@return Difference Quantity */ -public BigDecimal getDifferenceQty() -{ -BigDecimal bd = (BigDecimal)get_Value("DifferenceQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DifferenceQty */ -public static final String COLUMNNAME_DifferenceQty = "DifferenceQty"; -/** Set Ship/Receipt Confirmation. -@param M_InOutConfirm_ID Material Shipment or Receipt Confirmation */ -public void setM_InOutConfirm_ID (int M_InOutConfirm_ID) -{ -if (M_InOutConfirm_ID < 1) throw new IllegalArgumentException ("M_InOutConfirm_ID is mandatory."); -set_ValueNoCheck ("M_InOutConfirm_ID", Integer.valueOf(M_InOutConfirm_ID)); -} -/** Get Ship/Receipt Confirmation. -@return Material Shipment or Receipt Confirmation */ -public int getM_InOutConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_InOutConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutConfirm_ID */ -public static final String COLUMNNAME_M_InOutConfirm_ID = "M_InOutConfirm_ID"; -/** Set Ship/Receipt Confirmation Line. -@param M_InOutLineConfirm_ID Material Shipment or Receipt Confirmation Line */ -public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID) -{ -if (M_InOutLineConfirm_ID < 1) throw new IllegalArgumentException ("M_InOutLineConfirm_ID is mandatory."); -set_ValueNoCheck ("M_InOutLineConfirm_ID", Integer.valueOf(M_InOutLineConfirm_ID)); -} -/** Get Ship/Receipt Confirmation Line. -@return Material Shipment or Receipt Confirmation Line */ -public int getM_InOutLineConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLineConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLineConfirm_ID */ -public static final String COLUMNNAME_M_InOutLineConfirm_ID = "M_InOutLineConfirm_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID < 1) throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_InOutLine_ID())); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_Value ("M_InventoryLine_ID", null); - else -set_Value ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Scrapped Quantity. -@param ScrappedQty The Quantity scrapped due to QA issues */ -public void setScrappedQty (BigDecimal ScrappedQty) -{ -set_Value ("ScrappedQty", ScrappedQty); -} -/** Get Scrapped Quantity. -@return The Quantity scrapped due to QA issues */ -public BigDecimal getScrappedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ScrappedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ScrappedQty */ -public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; -/** Set Target Quantity. -@param TargetQty Target Movement Quantity */ -public void setTargetQty (BigDecimal TargetQty) -{ -if (TargetQty == null) throw new IllegalArgumentException ("TargetQty is mandatory."); -set_ValueNoCheck ("TargetQty", TargetQty); -} -/** Get Target Quantity. -@return Target Movement Quantity */ -public BigDecimal getTargetQty() -{ -BigDecimal bd = (BigDecimal)get_Value("TargetQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TargetQty */ -public static final String COLUMNNAME_TargetQty = "TargetQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InOutLineConfirm (Properties ctx, int M_InOutLineConfirm_ID, String trxName) + { + super (ctx, M_InOutLineConfirm_ID, trxName); + /** if (M_InOutLineConfirm_ID == 0) { setConfirmedQty (Env.ZERO); + setM_InOutConfirm_ID (0); + setM_InOutLineConfirm_ID (0); + setM_InOutLine_ID (0); + setProcessed (false); + setTargetQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_InOutLineConfirm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InOutLineConfirm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_Value (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_Value (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Confirmation No. + @param ConfirmationNo + Confirmation Number + */ + public void setConfirmationNo (String ConfirmationNo) + { + if (ConfirmationNo != null && ConfirmationNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + ConfirmationNo = ConfirmationNo.substring(0, 19); + } + set_Value (COLUMNNAME_ConfirmationNo, ConfirmationNo); + } + + /** Get Confirmation No. + @return Confirmation Number + */ + public String getConfirmationNo () + { + return (String)get_Value(COLUMNNAME_ConfirmationNo); + } + + /** Set Confirmed Quantity. + @param ConfirmedQty + Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty) + { + if (ConfirmedQty == null) + throw new IllegalArgumentException ("ConfirmedQty is mandatory."); + set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); + } + + /** Get Confirmed Quantity. + @return Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Difference. + @param DifferenceQty + Difference Quantity + */ + public void setDifferenceQty (BigDecimal DifferenceQty) + { + set_Value (COLUMNNAME_DifferenceQty, DifferenceQty); + } + + /** Get Difference. + @return Difference Quantity + */ + public BigDecimal getDifferenceQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DifferenceQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_M_InOutConfirm getI_M_InOutConfirm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Ship/Receipt Confirmation. + @param M_InOutConfirm_ID + Material Shipment or Receipt Confirmation + */ + public void setM_InOutConfirm_ID (int M_InOutConfirm_ID) + { + if (M_InOutConfirm_ID < 1) + throw new IllegalArgumentException ("M_InOutConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutConfirm_ID, Integer.valueOf(M_InOutConfirm_ID)); + } + + /** Get Ship/Receipt Confirmation. + @return Material Shipment or Receipt Confirmation + */ + public int getM_InOutConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Ship/Receipt Confirmation Line. + @param M_InOutLineConfirm_ID + Material Shipment or Receipt Confirmation Line + */ + public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID) + { + if (M_InOutLineConfirm_ID < 1) + throw new IllegalArgumentException ("M_InOutLineConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLineConfirm_ID, Integer.valueOf(M_InOutLineConfirm_ID)); + } + + /** Get Ship/Receipt Confirmation Line. + @return Material Shipment or Receipt Confirmation Line + */ + public int getM_InOutLineConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLineConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_InOutLine_ID())); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Target Quantity. + @param TargetQty + Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty) + { + if (TargetQty == null) + throw new IllegalArgumentException ("TargetQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_TargetQty, TargetQty); + } + + /** Get Target Quantity. + @return Target Movement Quantity + */ + public BigDecimal getTargetQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TargetQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InOutLineMA.java b/base/src/org/compiere/model/X_M_InOutLineMA.java index c41a806d91..6a4366008f 100644 --- a/base/src/org/compiere/model/X_M_InOutLineMA.java +++ b/base/src/org/compiere/model/X_M_InOutLineMA.java @@ -1,147 +1,149 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InOutLineMA - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InOutLineMA extends PO + +/** Generated Model for M_InOutLineMA + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InOutLineMA extends PO implements I_M_InOutLineMA, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InOutLineMA_ID id -@param trxName transaction -*/ -public X_M_InOutLineMA (Properties ctx, int M_InOutLineMA_ID, String trxName) -{ -super (ctx, M_InOutLineMA_ID, trxName); -/** if (M_InOutLineMA_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_InOutLine_ID (0); -setMovementQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InOutLineMA (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InOutLineMA */ -public static final String Table_Name="M_InOutLineMA"; - -/** AD_Table_ID=762 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InOutLineMA[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID < 1) throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_InOutLine_ID())); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InOutLineMA (Properties ctx, int M_InOutLineMA_ID, String trxName) + { + super (ctx, M_InOutLineMA_ID, trxName); + /** if (M_InOutLineMA_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_InOutLine_ID (0); + setMovementQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_InOutLineMA (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InOutLineMA[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_InOutLine_ID())); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Inventory.java b/base/src/org/compiere/model/X_M_Inventory.java index 9ffd6f44f1..9c91d80063 100644 --- a/base/src/org/compiere/model/X_M_Inventory.java +++ b/base/src/org/compiere/model/X_M_Inventory.java @@ -1,579 +1,708 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Inventory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Inventory extends PO + +/** Generated Model for M_Inventory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Inventory_ID id -@param trxName transaction -*/ -public X_M_Inventory (Properties ctx, int M_Inventory_ID, String trxName) -{ -super (ctx, M_Inventory_ID, trxName); -/** if (M_Inventory_ID == 0) -{ -setC_DocType_ID (0); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsApproved (false); -setM_Inventory_ID (0); -setM_Warehouse_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setPosted (false); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Inventory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Inventory */ -public static final String Table_Name="M_Inventory"; - -/** AD_Table_ID=321 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Inventory[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Inventory (Properties ctx, int M_Inventory_ID, String trxName) + { + super (ctx, M_Inventory_ID, trxName); + /** if (M_Inventory_ID == 0) { setC_DocType_ID (0); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setM_Inventory_ID (0); + setM_Warehouse_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setPosted (false); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_Inventory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Inventory[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Approval Amount. -@param ApprovalAmt Document Approval Amount */ -public void setApprovalAmt (BigDecimal ApprovalAmt) -{ -set_Value ("ApprovalAmt", ApprovalAmt); -} -/** Get Approval Amount. -@return Document Approval Amount */ -public BigDecimal getApprovalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ApprovalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ApprovalAmt */ -public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Generate List. -@param GenerateList Generate List */ -public void setGenerateList (String GenerateList) -{ -if (GenerateList != null && GenerateList.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GenerateList = GenerateList.substring(0,0); -} -set_Value ("GenerateList", GenerateList); -} -/** Get Generate List. -@return Generate List */ -public String getGenerateList() -{ -return (String)get_Value("GenerateList"); -} -/** Column name GenerateList */ -public static final String COLUMNNAME_GenerateList = "GenerateList"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Phys.Inventory. -@param M_Inventory_ID Parameters for a Physical Inventory */ -public void setM_Inventory_ID (int M_Inventory_ID) -{ -if (M_Inventory_ID < 1) throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); -set_ValueNoCheck ("M_Inventory_ID", Integer.valueOf(M_Inventory_ID)); -} -/** Get Phys.Inventory. -@return Parameters for a Physical Inventory */ -public int getM_Inventory_ID() -{ -Integer ii = (Integer)get_Value("M_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Inventory_ID */ -public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; -/** Set Perpetual Inventory. -@param M_PerpetualInv_ID Rules for generating physical inventory */ -public void setM_PerpetualInv_ID (int M_PerpetualInv_ID) -{ -if (M_PerpetualInv_ID <= 0) set_ValueNoCheck ("M_PerpetualInv_ID", null); - else -set_ValueNoCheck ("M_PerpetualInv_ID", Integer.valueOf(M_PerpetualInv_ID)); -} -/** Get Perpetual Inventory. -@return Rules for generating physical inventory */ -public int getM_PerpetualInv_ID() -{ -Integer ii = (Integer)get_Value("M_PerpetualInv_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PerpetualInv_ID */ -public static final String COLUMNNAME_M_PerpetualInv_ID = "M_PerpetualInv_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Update Quantities. -@param UpdateQty Update Quantities */ -public void setUpdateQty (String UpdateQty) -{ -if (UpdateQty != null && UpdateQty.length() > 1) -{ -log.warning("Length > 1 - truncated"); -UpdateQty = UpdateQty.substring(0,0); -} -set_Value ("UpdateQty", UpdateQty); -} -/** Get Update Quantities. -@return Update Quantities */ -public String getUpdateQty() -{ -return (String)get_Value("UpdateQty"); -} -/** Column name UpdateQty */ -public static final String COLUMNNAME_UpdateQty = "UpdateQty"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Generate List. + @param GenerateList + Generate List + */ + public void setGenerateList (String GenerateList) + { + if (GenerateList != null && GenerateList.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateList = GenerateList.substring(0, 0); + } + set_Value (COLUMNNAME_GenerateList, GenerateList); + } + + /** Get Generate List. + @return Generate List + */ + public String getGenerateList () + { + return (String)get_Value(COLUMNNAME_GenerateList); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID < 1) + throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PerpetualInv getI_M_PerpetualInv() throws Exception + { + 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 e; + } + return result; + } + + /** Set Perpetual Inventory. + @param M_PerpetualInv_ID + Rules for generating physical inventory + */ + public void setM_PerpetualInv_ID (int M_PerpetualInv_ID) + { + if (M_PerpetualInv_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, Integer.valueOf(M_PerpetualInv_ID)); + } + + /** Get Perpetual Inventory. + @return Rules for generating physical inventory + */ + public int getM_PerpetualInv_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PerpetualInv_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Update Quantities. + @param UpdateQty Update Quantities */ + public void setUpdateQty (String UpdateQty) + { + if (UpdateQty != null && UpdateQty.length() > 1) + { + log.warning("Length > 1 - truncated"); + UpdateQty = UpdateQty.substring(0, 0); + } + set_Value (COLUMNNAME_UpdateQty, UpdateQty); + } + + /** Get Update Quantities. +@return Update Quantities */ + public String getUpdateQty () + { + return (String)get_Value(COLUMNNAME_UpdateQty); + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InventoryLine.java b/base/src/org/compiere/model/X_M_InventoryLine.java index 0ddb798358..a6b5339c1e 100644 --- a/base/src/org/compiere/model/X_M_InventoryLine.java +++ b/base/src/org/compiere/model/X_M_InventoryLine.java @@ -1,370 +1,445 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InventoryLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InventoryLine extends PO + +/** Generated Model for M_InventoryLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InventoryLine extends PO implements I_M_InventoryLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InventoryLine_ID id -@param trxName transaction -*/ -public X_M_InventoryLine (Properties ctx, int M_InventoryLine_ID, String trxName) -{ -super (ctx, M_InventoryLine_ID, trxName); -/** if (M_InventoryLine_ID == 0) -{ -setInventoryType (null); // D -setM_AttributeSetInstance_ID (0); -setM_InventoryLine_ID (0); -setM_Inventory_ID (0); -setM_Locator_ID (0); // @M_Locator_ID@ -setM_Product_ID (0); -setProcessed (false); -setQtyBook (Env.ZERO); -setQtyCount (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InventoryLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InventoryLine */ -public static final String Table_Name="M_InventoryLine"; - -/** AD_Table_ID=322 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InventoryLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InventoryLine (Properties ctx, int M_InventoryLine_ID, String trxName) + { + super (ctx, M_InventoryLine_ID, trxName); + /** if (M_InventoryLine_ID == 0) { setInventoryType (null); +// D + setM_AttributeSetInstance_ID (0); + setM_InventoryLine_ID (0); + setM_Inventory_ID (0); + setM_Locator_ID (0); +// @M_Locator_ID@ + setM_Product_ID (0); + setProcessed (false); + setQtyBook (Env.ZERO); + setQtyCount (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_InventoryLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InventoryLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** InventoryType AD_Reference_ID=292 */ -public static final int INVENTORYTYPE_AD_Reference_ID=292; -/** Charge Account = C */ -public static final String INVENTORYTYPE_ChargeAccount = "C"; -/** Inventory Difference = D */ +public static final int INVENTORYTYPE_AD_Reference_ID=292;/** Charge Account = C */ +public static final String INVENTORYTYPE_ChargeAccount = "C";/** Inventory Difference = D */ public static final String INVENTORYTYPE_InventoryDifference = "D"; -/** Set Inventory Type. -@param InventoryType Type of inventory difference */ -public void setInventoryType (String InventoryType) -{ -if (InventoryType == null) throw new IllegalArgumentException ("InventoryType is mandatory"); -if (InventoryType.equals("C") || InventoryType.equals("D")); - else throw new IllegalArgumentException ("InventoryType Invalid value - " + InventoryType + " - Reference_ID=292 - C - D"); -if (InventoryType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InventoryType = InventoryType.substring(0,0); -} -set_Value ("InventoryType", InventoryType); -} -/** Get Inventory Type. -@return Type of inventory difference */ -public String getInventoryType() -{ -return (String)get_Value("InventoryType"); -} -/** Column name InventoryType */ -public static final String COLUMNNAME_InventoryType = "InventoryType"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID < 1) throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory."); -set_ValueNoCheck ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Phys.Inventory. -@param M_Inventory_ID Parameters for a Physical Inventory */ -public void setM_Inventory_ID (int M_Inventory_ID) -{ -if (M_Inventory_ID < 1) throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); -set_ValueNoCheck ("M_Inventory_ID", Integer.valueOf(M_Inventory_ID)); -} -/** Get Phys.Inventory. -@return Parameters for a Physical Inventory */ -public int getM_Inventory_ID() -{ -Integer ii = (Integer)get_Value("M_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Inventory_ID */ -public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + /** Set Inventory Type. + @param InventoryType + Type of inventory difference + */ + public void setInventoryType (String InventoryType) + { +if (InventoryType == null) throw new IllegalArgumentException ("InventoryType is mandatory");if (InventoryType.equals("C") || InventoryType.equals("D")); else throw new IllegalArgumentException ("InventoryType Invalid value - " + InventoryType + " - Reference_ID=292 - C - D"); if (InventoryType.length() > 1) + { + log.warning("Length > 1 - truncated"); + InventoryType = InventoryType.substring(0, 0); + } + set_Value (COLUMNNAME_InventoryType, InventoryType); + } + + /** Get Inventory Type. + @return Type of inventory difference + */ + public String getInventoryType () + { + return (String)get_Value(COLUMNNAME_InventoryType); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID < 1) + throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Inventory getI_M_Inventory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID < 1) + throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Product_ID AD_Reference_ID=171 */ public static final int M_PRODUCT_ID_AD_Reference_ID=171; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity book. -@param QtyBook Book Quantity */ -public void setQtyBook (BigDecimal QtyBook) -{ -if (QtyBook == null) throw new IllegalArgumentException ("QtyBook is mandatory."); -set_ValueNoCheck ("QtyBook", QtyBook); -} -/** Get Quantity book. -@return Book Quantity */ -public BigDecimal getQtyBook() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyBook"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyBook */ -public static final String COLUMNNAME_QtyBook = "QtyBook"; -/** Set Quantity count. -@param QtyCount Counted Quantity */ -public void setQtyCount (BigDecimal QtyCount) -{ -if (QtyCount == null) throw new IllegalArgumentException ("QtyCount is mandatory."); -set_Value ("QtyCount", QtyCount); -} -/** Get Quantity count. -@return Counted Quantity */ -public BigDecimal getQtyCount() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyCount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyCount */ -public static final String COLUMNNAME_QtyCount = "QtyCount"; -/** Set Internal Use Qty. -@param QtyInternalUse Internal Use Quantity removed from Inventory */ -public void setQtyInternalUse (BigDecimal QtyInternalUse) -{ -set_Value ("QtyInternalUse", QtyInternalUse); -} -/** Get Internal Use Qty. -@return Internal Use Quantity removed from Inventory */ -public BigDecimal getQtyInternalUse() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInternalUse"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInternalUse */ -public static final String COLUMNNAME_QtyInternalUse = "QtyInternalUse"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -throw new IllegalArgumentException ("UPC is virtual column"); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -throw new IllegalArgumentException ("Value is virtual column"); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity book. + @param QtyBook + Book Quantity + */ + public void setQtyBook (BigDecimal QtyBook) + { + if (QtyBook == null) + throw new IllegalArgumentException ("QtyBook is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyBook, QtyBook); + } + + /** Get Quantity book. + @return Book Quantity + */ + public BigDecimal getQtyBook () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBook); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity count. + @param QtyCount + Counted Quantity + */ + public void setQtyCount (BigDecimal QtyCount) + { + if (QtyCount == null) + throw new IllegalArgumentException ("QtyCount is mandatory."); + set_Value (COLUMNNAME_QtyCount, QtyCount); + } + + /** Get Quantity count. + @return Counted Quantity + */ + public BigDecimal getQtyCount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Internal Use Qty. + @param QtyInternalUse + Internal Use Quantity removed from Inventory + */ + public void setQtyInternalUse (BigDecimal QtyInternalUse) + { + set_Value (COLUMNNAME_QtyInternalUse, QtyInternalUse); + } + + /** Get Internal Use Qty. + @return Internal Use Quantity removed from Inventory + */ + public BigDecimal getQtyInternalUse () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInternalUse); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + throw new IllegalArgumentException ("UPC is virtual column"); } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + throw new IllegalArgumentException ("Value is virtual column"); } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InventoryLineMA.java b/base/src/org/compiere/model/X_M_InventoryLineMA.java index 5168cbed13..af6eef82ae 100644 --- a/base/src/org/compiere/model/X_M_InventoryLineMA.java +++ b/base/src/org/compiere/model/X_M_InventoryLineMA.java @@ -1,147 +1,149 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_InventoryLineMA - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_InventoryLineMA extends PO + +/** Generated Model for M_InventoryLineMA + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_InventoryLineMA extends PO implements I_M_InventoryLineMA, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_InventoryLineMA_ID id -@param trxName transaction -*/ -public X_M_InventoryLineMA (Properties ctx, int M_InventoryLineMA_ID, String trxName) -{ -super (ctx, M_InventoryLineMA_ID, trxName); -/** if (M_InventoryLineMA_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_InventoryLine_ID (0); -setMovementQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_InventoryLineMA (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_InventoryLineMA */ -public static final String Table_Name="M_InventoryLineMA"; - -/** AD_Table_ID=763 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_InventoryLineMA[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID < 1) throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory."); -set_ValueNoCheck ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_InventoryLine_ID())); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InventoryLineMA (Properties ctx, int M_InventoryLineMA_ID, String trxName) + { + super (ctx, M_InventoryLineMA_ID, trxName); + /** if (M_InventoryLineMA_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_InventoryLine_ID (0); + setMovementQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_InventoryLineMA (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_InventoryLineMA[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID < 1) + throw new IllegalArgumentException ("M_InventoryLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_InventoryLine_ID())); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Locator.java b/base/src/org/compiere/model/X_M_Locator.java index 1a96e583ae..e328be82a8 100644 --- a/base/src/org/compiere/model/X_M_Locator.java +++ b/base/src/org/compiere/model/X_M_Locator.java @@ -1,251 +1,289 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Locator - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Locator extends PO + +/** Generated Model for M_Locator + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Locator extends PO implements I_M_Locator, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Locator_ID id -@param trxName transaction -*/ -public X_M_Locator (Properties ctx, int M_Locator_ID, String trxName) -{ -super (ctx, M_Locator_ID, trxName); -/** if (M_Locator_ID == 0) -{ -setIsDefault (false); -setM_Locator_ID (0); -setM_Warehouse_ID (0); -setPriorityNo (0); // 50 -setValue (null); -setX (null); -setY (null); -setZ (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Locator (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Locator */ -public static final String Table_Name="M_Locator"; - -/** AD_Table_ID=207 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Locator[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_ValueNoCheck ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Relative Priority. -@param PriorityNo Where inventory should be picked from first */ -public void setPriorityNo (int PriorityNo) -{ -set_Value ("PriorityNo", Integer.valueOf(PriorityNo)); -} -/** Get Relative Priority. -@return Where inventory should be picked from first */ -public int getPriorityNo() -{ -Integer ii = (Integer)get_Value("PriorityNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PriorityNo */ -public static final String COLUMNNAME_PriorityNo = "PriorityNo"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getValue()); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Aisle (X). -@param X X dimension, e.g., Aisle */ -public void setX (String X) -{ -if (X == null) throw new IllegalArgumentException ("X is mandatory."); -if (X.length() > 60) -{ -log.warning("Length > 60 - truncated"); -X = X.substring(0,59); -} -set_Value ("X", X); -} -/** Get Aisle (X). -@return X dimension, e.g., Aisle */ -public String getX() -{ -return (String)get_Value("X"); -} -/** Column name X */ -public static final String COLUMNNAME_X = "X"; -/** Set Bin (Y). -@param Y Y dimension, e.g., Bin */ -public void setY (String Y) -{ -if (Y == null) throw new IllegalArgumentException ("Y is mandatory."); -if (Y.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Y = Y.substring(0,59); -} -set_Value ("Y", Y); -} -/** Get Bin (Y). -@return Y dimension, e.g., Bin */ -public String getY() -{ -return (String)get_Value("Y"); -} -/** Column name Y */ -public static final String COLUMNNAME_Y = "Y"; -/** Set Level (Z). -@param Z Z dimension, e.g., Level */ -public void setZ (String Z) -{ -if (Z == null) throw new IllegalArgumentException ("Z is mandatory."); -if (Z.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Z = Z.substring(0,59); -} -set_Value ("Z", Z); -} -/** Get Level (Z). -@return Z dimension, e.g., Level */ -public String getZ() -{ -return (String)get_Value("Z"); -} -/** Column name Z */ -public static final String COLUMNNAME_Z = "Z"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Locator (Properties ctx, int M_Locator_ID, String trxName) + { + super (ctx, M_Locator_ID, trxName); + /** if (M_Locator_ID == 0) { setIsDefault (false); + setM_Locator_ID (0); + setM_Warehouse_ID (0); + setPriorityNo (0); +// 50 + setValue (null); + setX (null); + setY (null); + setZ (null); +} */ + } + + /** Load Constructor */ + public X_M_Locator (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Locator[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Relative Priority. + @param PriorityNo + Where inventory should be picked from first + */ + public void setPriorityNo (int PriorityNo) + { + set_Value (COLUMNNAME_PriorityNo, Integer.valueOf(PriorityNo)); + } + + /** Get Relative Priority. + @return Where inventory should be picked from first + */ + public int getPriorityNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PriorityNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } + + /** Set Aisle (X). + @param X + X dimension, e.g., Aisle + */ + public void setX (String X) + { + if (X == null) + throw new IllegalArgumentException ("X is mandatory."); + if (X.length() > 60) + { + log.warning("Length > 60 - truncated"); + X = X.substring(0, 59); + } + set_Value (COLUMNNAME_X, X); + } + + /** Get Aisle (X). + @return X dimension, e.g., Aisle + */ + public String getX () + { + return (String)get_Value(COLUMNNAME_X); + } + + /** Set Bin (Y). + @param Y + Y dimension, e.g., Bin + */ + public void setY (String Y) + { + if (Y == null) + throw new IllegalArgumentException ("Y is mandatory."); + if (Y.length() > 60) + { + log.warning("Length > 60 - truncated"); + Y = Y.substring(0, 59); + } + set_Value (COLUMNNAME_Y, Y); + } + + /** Get Bin (Y). + @return Y dimension, e.g., Bin + */ + public String getY () + { + return (String)get_Value(COLUMNNAME_Y); + } + + /** Set Level (Z). + @param Z + Z dimension, e.g., Level + */ + public void setZ (String Z) + { + if (Z == null) + throw new IllegalArgumentException ("Z is mandatory."); + if (Z.length() > 60) + { + log.warning("Length > 60 - truncated"); + Z = Z.substring(0, 59); + } + set_Value (COLUMNNAME_Z, Z); + } + + /** Get Level (Z). + @return Z dimension, e.g., Level + */ + public String getZ () + { + return (String)get_Value(COLUMNNAME_Z); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Lot.java b/base/src/org/compiere/model/X_M_Lot.java index 309f9110b4..4828e47c1d 100644 --- a/base/src/org/compiere/model/X_M_Lot.java +++ b/base/src/org/compiere/model/X_M_Lot.java @@ -1,234 +1,267 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Lot - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Lot extends PO + +/** Generated Model for M_Lot + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Lot extends PO implements I_M_Lot, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Lot_ID id -@param trxName transaction -*/ -public X_M_Lot (Properties ctx, int M_Lot_ID, String trxName) -{ -super (ctx, M_Lot_ID, trxName); -/** if (M_Lot_ID == 0) -{ -setM_Lot_ID (0); -setM_Product_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Lot (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Lot */ -public static final String Table_Name="M_Lot"; - -/** AD_Table_ID=557 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Lot[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Date From. -@param DateFrom Starting date for a range */ -public void setDateFrom (Timestamp DateFrom) -{ -set_Value ("DateFrom", DateFrom); -} -/** Get Date From. -@return Starting date for a range */ -public Timestamp getDateFrom() -{ -return (Timestamp)get_Value("DateFrom"); -} -/** Column name DateFrom */ -public static final String COLUMNNAME_DateFrom = "DateFrom"; -/** Set Date To. -@param DateTo End date of a date range */ -public void setDateTo (Timestamp DateTo) -{ -set_Value ("DateTo", DateTo); -} -/** Get Date To. -@return End date of a date range */ -public Timestamp getDateTo() -{ -return (Timestamp)get_Value("DateTo"); -} -/** Column name DateTo */ -public static final String COLUMNNAME_DateTo = "DateTo"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Lot Control. -@param M_LotCtl_ID Product Lot Control */ -public void setM_LotCtl_ID (int M_LotCtl_ID) -{ -if (M_LotCtl_ID <= 0) set_ValueNoCheck ("M_LotCtl_ID", null); - else -set_ValueNoCheck ("M_LotCtl_ID", Integer.valueOf(M_LotCtl_ID)); -} -/** Get Lot Control. -@return Product Lot Control */ -public int getM_LotCtl_ID() -{ -Integer ii = (Integer)get_Value("M_LotCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_LotCtl_ID */ -public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; -/** Set Lot. -@param M_Lot_ID Product Lot Definition */ -public void setM_Lot_ID (int M_Lot_ID) -{ -if (M_Lot_ID < 1) throw new IllegalArgumentException ("M_Lot_ID is mandatory."); -set_ValueNoCheck ("M_Lot_ID", Integer.valueOf(M_Lot_ID)); -} -/** Get Lot. -@return Product Lot Definition */ -public int getM_Lot_ID() -{ -Integer ii = (Integer)get_Value("M_Lot_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Lot_ID */ -public static final String COLUMNNAME_M_Lot_ID = "M_Lot_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_Product_ID())); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Lot (Properties ctx, int M_Lot_ID, String trxName) + { + super (ctx, M_Lot_ID, trxName); + /** if (M_Lot_ID == 0) { setM_Lot_ID (0); + setM_Product_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_Lot (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Lot[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Date From. + @param DateFrom + Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom) + { + set_Value (COLUMNNAME_DateFrom, DateFrom); + } + + /** Get Date From. + @return Starting date for a range + */ + public Timestamp getDateFrom () + { + return (Timestamp)get_Value(COLUMNNAME_DateFrom); + } + + /** Set Date To. + @param DateTo + End date of a date range + */ + public void setDateTo (Timestamp DateTo) + { + set_Value (COLUMNNAME_DateTo, DateTo); + } + + /** Get Date To. + @return End date of a date range + */ + public Timestamp getDateTo () + { + return (Timestamp)get_Value(COLUMNNAME_DateTo); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + public I_M_LotCtl getI_M_LotCtl() throws Exception + { + 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 e; + } + return result; + } + + /** Set Lot Control. + @param M_LotCtl_ID + Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID) + { + if (M_LotCtl_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); + } + + /** Get Lot Control. + @return Product Lot Control + */ + public int getM_LotCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LotCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Lot. + @param M_Lot_ID + Product Lot Definition + */ + public void setM_Lot_ID (int M_Lot_ID) + { + if (M_Lot_ID < 1) + throw new IllegalArgumentException ("M_Lot_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Lot_ID, Integer.valueOf(M_Lot_ID)); + } + + /** Get Lot. + @return Product Lot Definition + */ + public int getM_Lot_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Lot_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_Product_ID())); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_LotCtl.java b/base/src/org/compiere/model/X_M_LotCtl.java index 54fcddbca2..e13ed85741 100644 --- a/base/src/org/compiere/model/X_M_LotCtl.java +++ b/base/src/org/compiere/model/X_M_LotCtl.java @@ -1,240 +1,260 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_LotCtl - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_LotCtl extends PO + +/** Generated Model for M_LotCtl + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_LotCtl extends PO implements I_M_LotCtl, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_LotCtl_ID id -@param trxName transaction -*/ -public X_M_LotCtl (Properties ctx, int M_LotCtl_ID, String trxName) -{ -super (ctx, M_LotCtl_ID, trxName); -/** if (M_LotCtl_ID == 0) -{ -setCurrentNext (0); // 100 -setIncrementNo (0); // 1 -setM_LotCtl_ID (0); -setName (null); -setStartNo (0); // 100 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_LotCtl (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_LotCtl */ -public static final String Table_Name="M_LotCtl"; - -/** AD_Table_ID=556 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_LotCtl[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Current Next. -@param CurrentNext The next number to be used */ -public void setCurrentNext (int CurrentNext) -{ -set_Value ("CurrentNext", Integer.valueOf(CurrentNext)); -} -/** Get Current Next. -@return The next number to be used */ -public int getCurrentNext() -{ -Integer ii = (Integer)get_Value("CurrentNext"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrentNext */ -public static final String COLUMNNAME_CurrentNext = "CurrentNext"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Increment. -@param IncrementNo The number to increment the last document number by */ -public void setIncrementNo (int IncrementNo) -{ -set_Value ("IncrementNo", Integer.valueOf(IncrementNo)); -} -/** Get Increment. -@return The number to increment the last document number by */ -public int getIncrementNo() -{ -Integer ii = (Integer)get_Value("IncrementNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IncrementNo */ -public static final String COLUMNNAME_IncrementNo = "IncrementNo"; -/** Set Lot Control. -@param M_LotCtl_ID Product Lot Control */ -public void setM_LotCtl_ID (int M_LotCtl_ID) -{ -if (M_LotCtl_ID < 1) throw new IllegalArgumentException ("M_LotCtl_ID is mandatory."); -set_ValueNoCheck ("M_LotCtl_ID", Integer.valueOf(M_LotCtl_ID)); -} -/** Get Lot Control. -@return Product Lot Control */ -public int getM_LotCtl_ID() -{ -Integer ii = (Integer)get_Value("M_LotCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_LotCtl_ID */ -public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Prefix. -@param Prefix Prefix before the sequence number */ -public void setPrefix (String Prefix) -{ -if (Prefix != null && Prefix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Prefix = Prefix.substring(0,9); -} -set_Value ("Prefix", Prefix); -} -/** Get Prefix. -@return Prefix before the sequence number */ -public String getPrefix() -{ -return (String)get_Value("Prefix"); -} -/** Column name Prefix */ -public static final String COLUMNNAME_Prefix = "Prefix"; -/** Set Start No. -@param StartNo Starting number/position */ -public void setStartNo (int StartNo) -{ -set_Value ("StartNo", Integer.valueOf(StartNo)); -} -/** Get Start No. -@return Starting number/position */ -public int getStartNo() -{ -Integer ii = (Integer)get_Value("StartNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StartNo */ -public static final String COLUMNNAME_StartNo = "StartNo"; -/** Set Suffix. -@param Suffix Suffix after the number */ -public void setSuffix (String Suffix) -{ -if (Suffix != null && Suffix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Suffix = Suffix.substring(0,9); -} -set_Value ("Suffix", Suffix); -} -/** Get Suffix. -@return Suffix after the number */ -public String getSuffix() -{ -return (String)get_Value("Suffix"); -} -/** Column name Suffix */ -public static final String COLUMNNAME_Suffix = "Suffix"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_LotCtl (Properties ctx, int M_LotCtl_ID, String trxName) + { + super (ctx, M_LotCtl_ID, trxName); + /** if (M_LotCtl_ID == 0) { setCurrentNext (0); +// 100 + setIncrementNo (0); +// 1 + setM_LotCtl_ID (0); + setName (null); + setStartNo (0); +// 100 +} */ + } + + /** Load Constructor */ + public X_M_LotCtl (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_LotCtl[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Current Next. + @param CurrentNext + The next number to be used + */ + public void setCurrentNext (int CurrentNext) + { + set_Value (COLUMNNAME_CurrentNext, Integer.valueOf(CurrentNext)); + } + + /** Get Current Next. + @return The next number to be used + */ + public int getCurrentNext () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrentNext); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Increment. + @param IncrementNo + The number to increment the last document number by + */ + public void setIncrementNo (int IncrementNo) + { + set_Value (COLUMNNAME_IncrementNo, Integer.valueOf(IncrementNo)); + } + + /** Get Increment. + @return The number to increment the last document number by + */ + public int getIncrementNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IncrementNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Lot Control. + @param M_LotCtl_ID + Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID) + { + if (M_LotCtl_ID < 1) + throw new IllegalArgumentException ("M_LotCtl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); + } + + /** Get Lot Control. + @return Product Lot Control + */ + public int getM_LotCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LotCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Prefix. + @param Prefix + Prefix before the sequence number + */ + public void setPrefix (String Prefix) + { + if (Prefix != null && Prefix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Prefix = Prefix.substring(0, 9); + } + set_Value (COLUMNNAME_Prefix, Prefix); + } + + /** Get Prefix. + @return Prefix before the sequence number + */ + public String getPrefix () + { + return (String)get_Value(COLUMNNAME_Prefix); + } + + /** Set Start No. + @param StartNo + Starting number/position + */ + public void setStartNo (int StartNo) + { + set_Value (COLUMNNAME_StartNo, Integer.valueOf(StartNo)); + } + + /** Get Start No. + @return Starting number/position + */ + public int getStartNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StartNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Suffix. + @param Suffix + Suffix after the number + */ + public void setSuffix (String Suffix) + { + if (Suffix != null && Suffix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Suffix = Suffix.substring(0, 9); + } + set_Value (COLUMNNAME_Suffix, Suffix); + } + + /** Get Suffix. + @return Suffix after the number + */ + public String getSuffix () + { + return (String)get_Value(COLUMNNAME_Suffix); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_LotCtlExclude.java b/base/src/org/compiere/model/X_M_LotCtlExclude.java index 73ddac69a6..46380c54ac 100644 --- a/base/src/org/compiere/model/X_M_LotCtlExclude.java +++ b/base/src/org/compiere/model/X_M_LotCtlExclude.java @@ -1,162 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_LotCtlExclude - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_LotCtlExclude extends PO + +/** Generated Model for M_LotCtlExclude + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_LotCtlExclude extends PO implements I_M_LotCtlExclude, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_LotCtlExclude_ID id -@param trxName transaction -*/ -public X_M_LotCtlExclude (Properties ctx, int M_LotCtlExclude_ID, String trxName) -{ -super (ctx, M_LotCtlExclude_ID, trxName); -/** if (M_LotCtlExclude_ID == 0) -{ -setAD_Table_ID (0); -setIsSOTrx (false); -setM_LotCtlExclude_ID (0); -setM_LotCtl_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_LotCtlExclude (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_LotCtlExclude */ -public static final String Table_Name="M_LotCtlExclude"; - -/** AD_Table_ID=810 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_LotCtlExclude[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Exclude Lot. -@param M_LotCtlExclude_ID Exclude the ability to create Lots in Attribute Sets */ -public void setM_LotCtlExclude_ID (int M_LotCtlExclude_ID) -{ -if (M_LotCtlExclude_ID < 1) throw new IllegalArgumentException ("M_LotCtlExclude_ID is mandatory."); -set_ValueNoCheck ("M_LotCtlExclude_ID", Integer.valueOf(M_LotCtlExclude_ID)); -} -/** Get Exclude Lot. -@return Exclude the ability to create Lots in Attribute Sets */ -public int getM_LotCtlExclude_ID() -{ -Integer ii = (Integer)get_Value("M_LotCtlExclude_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_LotCtlExclude_ID */ -public static final String COLUMNNAME_M_LotCtlExclude_ID = "M_LotCtlExclude_ID"; -/** Set Lot Control. -@param M_LotCtl_ID Product Lot Control */ -public void setM_LotCtl_ID (int M_LotCtl_ID) -{ -if (M_LotCtl_ID < 1) throw new IllegalArgumentException ("M_LotCtl_ID is mandatory."); -set_ValueNoCheck ("M_LotCtl_ID", Integer.valueOf(M_LotCtl_ID)); -} -/** Get Lot Control. -@return Product Lot Control */ -public int getM_LotCtl_ID() -{ -Integer ii = (Integer)get_Value("M_LotCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_LotCtl_ID */ -public static final String COLUMNNAME_M_LotCtl_ID = "M_LotCtl_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_LotCtlExclude (Properties ctx, int M_LotCtlExclude_ID, String trxName) + { + super (ctx, M_LotCtlExclude_ID, trxName); + /** if (M_LotCtlExclude_ID == 0) { setAD_Table_ID (0); + setIsSOTrx (false); + setM_LotCtlExclude_ID (0); + setM_LotCtl_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_LotCtlExclude (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_LotCtlExclude[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude Lot. + @param M_LotCtlExclude_ID + Exclude the ability to create Lots in Attribute Sets + */ + public void setM_LotCtlExclude_ID (int M_LotCtlExclude_ID) + { + if (M_LotCtlExclude_ID < 1) + throw new IllegalArgumentException ("M_LotCtlExclude_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_LotCtlExclude_ID, Integer.valueOf(M_LotCtlExclude_ID)); + } + + /** Get Exclude Lot. + @return Exclude the ability to create Lots in Attribute Sets + */ + public int getM_LotCtlExclude_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LotCtlExclude_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_LotCtl getI_M_LotCtl() throws Exception + { + 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 e; + } + return result; + } + + /** Set Lot Control. + @param M_LotCtl_ID + Product Lot Control + */ + public void setM_LotCtl_ID (int M_LotCtl_ID) + { + if (M_LotCtl_ID < 1) + throw new IllegalArgumentException ("M_LotCtl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_LotCtl_ID, Integer.valueOf(M_LotCtl_ID)); + } + + /** Get Lot Control. + @return Product Lot Control + */ + public int getM_LotCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LotCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MatchInv.java b/base/src/org/compiere/model/X_M_MatchInv.java index e9a2efdd60..b22c74501a 100644 --- a/base/src/org/compiere/model/X_M_MatchInv.java +++ b/base/src/org/compiere/model/X_M_MatchInv.java @@ -1,334 +1,373 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_MatchInv - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_MatchInv extends PO + +/** Generated Model for M_MatchInv + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_MatchInv extends PO implements I_M_MatchInv, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_MatchInv_ID id -@param trxName transaction -*/ -public X_M_MatchInv (Properties ctx, int M_MatchInv_ID, String trxName) -{ -super (ctx, M_MatchInv_ID, trxName); -/** if (M_MatchInv_ID == 0) -{ -setC_InvoiceLine_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setDateTrx (new Timestamp(System.currentTimeMillis())); -setM_InOutLine_ID (0); -setM_MatchInv_ID (0); -setM_Product_ID (0); -setPosted (false); -setProcessed (false); -setProcessing (false); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_MatchInv (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_MatchInv */ -public static final String Table_Name="M_MatchInv"; - -/** AD_Table_ID=472 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_MatchInv[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID < 1) throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_ValueNoCheck ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID <= 0) set_ValueNoCheck ("M_AttributeSetInstance_ID", null); - else -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID < 1) throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Match Invoice. -@param M_MatchInv_ID Match Shipment/Receipt to Invoice */ -public void setM_MatchInv_ID (int M_MatchInv_ID) -{ -if (M_MatchInv_ID < 1) throw new IllegalArgumentException ("M_MatchInv_ID is mandatory."); -set_ValueNoCheck ("M_MatchInv_ID", Integer.valueOf(M_MatchInv_ID)); -} -/** Get Match Invoice. -@return Match Shipment/Receipt to Invoice */ -public int getM_MatchInv_ID() -{ -Integer ii = (Integer)get_Value("M_MatchInv_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MatchInv_ID */ -public static final String COLUMNNAME_M_MatchInv_ID = "M_MatchInv_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_ValueNoCheck ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_ValueNoCheck ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MatchInv (Properties ctx, int M_MatchInv_ID, String trxName) + { + super (ctx, M_MatchInv_ID, trxName); + /** if (M_MatchInv_ID == 0) { setC_InvoiceLine_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setDateTrx (new Timestamp(System.currentTimeMillis())); + setM_InOutLine_ID (0); + setM_MatchInv_ID (0); + setM_Product_ID (0); + setPosted (false); + setProcessed (false); + setProcessing (false); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_MatchInv (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_MatchInv[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID < 1) + throw new IllegalArgumentException ("C_InvoiceLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Match Invoice. + @param M_MatchInv_ID + Match Shipment/Receipt to Invoice + */ + public void setM_MatchInv_ID (int M_MatchInv_ID) + { + if (M_MatchInv_ID < 1) + throw new IllegalArgumentException ("M_MatchInv_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MatchInv_ID, Integer.valueOf(M_MatchInv_ID)); + } + + /** Get Match Invoice. + @return Match Shipment/Receipt to Invoice + */ + public int getM_MatchInv_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MatchInv_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_ValueNoCheck (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_ValueNoCheck (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MatchPO.java b/base/src/org/compiere/model/X_M_MatchPO.java index 64f960c2e5..3dac477a0e 100644 --- a/base/src/org/compiere/model/X_M_MatchPO.java +++ b/base/src/org/compiere/model/X_M_MatchPO.java @@ -1,388 +1,439 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_MatchPO - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_MatchPO extends PO + +/** Generated Model for M_MatchPO + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_MatchPO extends PO implements I_M_MatchPO, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_MatchPO_ID id -@param trxName transaction -*/ -public X_M_MatchPO (Properties ctx, int M_MatchPO_ID, String trxName) -{ -super (ctx, M_MatchPO_ID, trxName); -/** if (M_MatchPO_ID == 0) -{ -setC_OrderLine_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setDateTrx (new Timestamp(System.currentTimeMillis())); -setM_InOutLine_ID (0); -setM_MatchPO_ID (0); -setM_Product_ID (0); -setPosted (false); -setProcessed (false); -setProcessing (false); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_MatchPO (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_MatchPO */ -public static final String Table_Name="M_MatchPO"; - -/** AD_Table_ID=473 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_MatchPO[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_ValueNoCheck ("C_InvoiceLine_ID", null); - else -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID < 1) throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_Value ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_ValueNoCheck ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo != null && DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID <= 0) set_ValueNoCheck ("M_AttributeSetInstance_ID", null); - else -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID < 1) throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Match PO. -@param M_MatchPO_ID Match Purchase Order to Shipment/Receipt and Invoice */ -public void setM_MatchPO_ID (int M_MatchPO_ID) -{ -if (M_MatchPO_ID < 1) throw new IllegalArgumentException ("M_MatchPO_ID is mandatory."); -set_ValueNoCheck ("M_MatchPO_ID", Integer.valueOf(M_MatchPO_ID)); -} -/** Get Match PO. -@return Match Purchase Order to Shipment/Receipt and Invoice */ -public int getM_MatchPO_ID() -{ -Integer ii = (Integer)get_Value("M_MatchPO_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MatchPO_ID */ -public static final String COLUMNNAME_M_MatchPO_ID = "M_MatchPO_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_ValueNoCheck ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Price Match Difference. -@param PriceMatchDifference Difference between Purchase and Invoice Price per matched line */ -public void setPriceMatchDifference (BigDecimal PriceMatchDifference) -{ -set_Value ("PriceMatchDifference", PriceMatchDifference); -} -/** Get Price Match Difference. -@return Difference between Purchase and Invoice Price per matched line */ -public BigDecimal getPriceMatchDifference() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceMatchDifference"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceMatchDifference */ -public static final String COLUMNNAME_PriceMatchDifference = "PriceMatchDifference"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_ValueNoCheck ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_ValueNoCheck ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MatchPO (Properties ctx, int M_MatchPO_ID, String trxName) + { + super (ctx, M_MatchPO_ID, trxName); + /** if (M_MatchPO_ID == 0) { setC_OrderLine_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setDateTrx (new Timestamp(System.currentTimeMillis())); + setM_InOutLine_ID (0); + setM_MatchPO_ID (0); + setM_Product_ID (0); + setPosted (false); + setProcessed (false); + setProcessing (false); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_MatchPO (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_MatchPO[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID < 1) + throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Match PO. + @param M_MatchPO_ID + Match Purchase Order to Shipment/Receipt and Invoice + */ + public void setM_MatchPO_ID (int M_MatchPO_ID) + { + if (M_MatchPO_ID < 1) + throw new IllegalArgumentException ("M_MatchPO_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MatchPO_ID, Integer.valueOf(M_MatchPO_ID)); + } + + /** Get Match PO. + @return Match Purchase Order to Shipment/Receipt and Invoice + */ + public int getM_MatchPO_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MatchPO_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_ValueNoCheck (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price Match Difference. + @param PriceMatchDifference + Difference between Purchase and Invoice Price per matched line + */ + public void setPriceMatchDifference (BigDecimal PriceMatchDifference) + { + set_Value (COLUMNNAME_PriceMatchDifference, PriceMatchDifference); + } + + /** Get Price Match Difference. + @return Difference between Purchase and Invoice Price per matched line + */ + public BigDecimal getPriceMatchDifference () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceMatchDifference); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_ValueNoCheck (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Movement.java b/base/src/org/compiere/model/X_M_Movement.java index 1269346f17..dd58fff62a 100644 --- a/base/src/org/compiere/model/X_M_Movement.java +++ b/base/src/org/compiere/model/X_M_Movement.java @@ -1,540 +1,632 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Movement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Movement extends PO + +/** Generated Model for M_Movement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Movement extends PO implements I_M_Movement, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Movement_ID id -@param trxName transaction -*/ -public X_M_Movement (Properties ctx, int M_Movement_ID, String trxName) -{ -super (ctx, M_Movement_ID, trxName); -/** if (M_Movement_ID == 0) -{ -setC_DocType_ID (0); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsApproved (false); -setIsInTransit (false); -setM_Movement_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setPosted (false); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Movement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Movement */ -public static final String Table_Name="M_Movement"; - -/** AD_Table_ID=323 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Movement[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Movement (Properties ctx, int M_Movement_ID, String trxName) + { + super (ctx, M_Movement_ID, trxName); + /** if (M_Movement_ID == 0) { setC_DocType_ID (0); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setIsInTransit (false); + setM_Movement_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setPosted (false); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_Movement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Movement[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Approval Amount. -@param ApprovalAmt Document Approval Amount */ -public void setApprovalAmt (BigDecimal ApprovalAmt) -{ -set_Value ("ApprovalAmt", ApprovalAmt); -} -/** Get Approval Amount. -@return Document Approval Amount */ -public BigDecimal getApprovalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ApprovalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ApprovalAmt */ -public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Date received. -@param DateReceived Date a product was received */ -public void setDateReceived (Timestamp DateReceived) -{ -set_Value ("DateReceived", DateReceived); -} -/** Get Date received. -@return Date a product was received */ -public Timestamp getDateReceived() -{ -return (Timestamp)get_Value("DateReceived"); -} -/** Column name DateReceived */ -public static final String COLUMNNAME_DateReceived = "DateReceived"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date received. + @param DateReceived + Date a product was received + */ + public void setDateReceived (Timestamp DateReceived) + { + set_Value (COLUMNNAME_DateReceived, DateReceived); + } + + /** Get Date received. + @return Date a product was received + */ + public Timestamp getDateReceived () + { + return (Timestamp)get_Value(COLUMNNAME_DateReceived); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set In Transit. -@param IsInTransit Movement is in transit */ -public void setIsInTransit (boolean IsInTransit) -{ -set_Value ("IsInTransit", Boolean.valueOf(IsInTransit)); -} -/** Get In Transit. -@return Movement is in transit */ -public boolean isInTransit() -{ -Object oo = get_Value("IsInTransit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInTransit */ -public static final String COLUMNNAME_IsInTransit = "IsInTransit"; -/** Set Inventory Move. -@param M_Movement_ID Movement of Inventory */ -public void setM_Movement_ID (int M_Movement_ID) -{ -if (M_Movement_ID < 1) throw new IllegalArgumentException ("M_Movement_ID is mandatory."); -set_ValueNoCheck ("M_Movement_ID", Integer.valueOf(M_Movement_ID)); -} -/** Get Inventory Move. -@return Movement of Inventory */ -public int getM_Movement_ID() -{ -Integer ii = (Integer)get_Value("M_Movement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Movement_ID */ -public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Inventory Move. + @param M_Movement_ID + Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID) + { + if (M_Movement_ID < 1) + throw new IllegalArgumentException ("M_Movement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + } + + /** Get Inventory Move. + @return Movement of Inventory + */ + public int getM_Movement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MovementConfirm.java b/base/src/org/compiere/model/X_M_MovementConfirm.java index 0449b9ef7e..6713a48d85 100644 --- a/base/src/org/compiere/model/X_M_MovementConfirm.java +++ b/base/src/org/compiere/model/X_M_MovementConfirm.java @@ -1,369 +1,363 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_MovementConfirm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_MovementConfirm extends PO + +/** Generated Model for M_MovementConfirm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_MovementConfirm extends PO implements I_M_MovementConfirm, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_MovementConfirm_ID id -@param trxName transaction -*/ -public X_M_MovementConfirm (Properties ctx, int M_MovementConfirm_ID, String trxName) -{ -super (ctx, M_MovementConfirm_ID, trxName); -/** if (M_MovementConfirm_ID == 0) -{ -setDocAction (null); -setDocStatus (null); -setDocumentNo (null); -setIsApproved (false); // N -setM_MovementConfirm_ID (0); -setM_Movement_ID (0); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_MovementConfirm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_MovementConfirm */ -public static final String Table_Name="M_MovementConfirm"; - -/** AD_Table_ID=738 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_MovementConfirm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Approval Amount. -@param ApprovalAmt Document Approval Amount */ -public void setApprovalAmt (BigDecimal ApprovalAmt) -{ -set_Value ("ApprovalAmt", ApprovalAmt); -} -/** Get Approval Amount. -@return Document Approval Amount */ -public BigDecimal getApprovalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ApprovalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ApprovalAmt */ -public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MovementConfirm (Properties ctx, int M_MovementConfirm_ID, String trxName) + { + super (ctx, M_MovementConfirm_ID, trxName); + /** if (M_MovementConfirm_ID == 0) { setDocAction (null); + setDocStatus (null); + setDocumentNo (null); + setIsApproved (false); +// N + setM_MovementConfirm_ID (0); + setM_Movement_ID (0); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_MovementConfirm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_MovementConfirm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Phys.Inventory. -@param M_Inventory_ID Parameters for a Physical Inventory */ -public void setM_Inventory_ID (int M_Inventory_ID) -{ -if (M_Inventory_ID <= 0) set_Value ("M_Inventory_ID", null); - else -set_Value ("M_Inventory_ID", Integer.valueOf(M_Inventory_ID)); -} -/** Get Phys.Inventory. -@return Parameters for a Physical Inventory */ -public int getM_Inventory_ID() -{ -Integer ii = (Integer)get_Value("M_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Inventory_ID */ -public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; -/** Set Move Confirm. -@param M_MovementConfirm_ID Inventory Move Confirmation */ -public void setM_MovementConfirm_ID (int M_MovementConfirm_ID) -{ -if (M_MovementConfirm_ID < 1) throw new IllegalArgumentException ("M_MovementConfirm_ID is mandatory."); -set_ValueNoCheck ("M_MovementConfirm_ID", Integer.valueOf(M_MovementConfirm_ID)); -} -/** Get Move Confirm. -@return Inventory Move Confirmation */ -public int getM_MovementConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_MovementConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementConfirm_ID */ -public static final String COLUMNNAME_M_MovementConfirm_ID = "M_MovementConfirm_ID"; -/** Set Inventory Move. -@param M_Movement_ID Movement of Inventory */ -public void setM_Movement_ID (int M_Movement_ID) -{ -if (M_Movement_ID < 1) throw new IllegalArgumentException ("M_Movement_ID is mandatory."); -set_Value ("M_Movement_ID", Integer.valueOf(M_Movement_ID)); -} -/** Get Inventory Move. -@return Movement of Inventory */ -public int getM_Movement_ID() -{ -Integer ii = (Integer)get_Value("M_Movement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Movement_ID */ -public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID <= 0) set_Value (COLUMNNAME_M_Inventory_ID, null); + else + set_Value (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Confirm. + @param M_MovementConfirm_ID + Inventory Move Confirmation + */ + public void setM_MovementConfirm_ID (int M_MovementConfirm_ID) + { + if (M_MovementConfirm_ID < 1) + throw new IllegalArgumentException ("M_MovementConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, Integer.valueOf(M_MovementConfirm_ID)); + } + + /** Get Move Confirm. + @return Inventory Move Confirmation + */ + public int getM_MovementConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Move. + @param M_Movement_ID + Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID) + { + if (M_Movement_ID < 1) + throw new IllegalArgumentException ("M_Movement_ID is mandatory."); + set_Value (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + } + + /** Get Inventory Move. + @return Movement of Inventory + */ + public int getM_Movement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MovementLine.java b/base/src/org/compiere/model/X_M_MovementLine.java index 2c62522c8c..be33ce337f 100644 --- a/base/src/org/compiere/model/X_M_MovementLine.java +++ b/base/src/org/compiere/model/X_M_MovementLine.java @@ -1,350 +1,419 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_MovementLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_MovementLine extends PO + +/** Generated Model for M_MovementLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_MovementLine_ID id -@param trxName transaction -*/ -public X_M_MovementLine (Properties ctx, int M_MovementLine_ID, String trxName) -{ -super (ctx, M_MovementLine_ID, trxName); -/** if (M_MovementLine_ID == 0) -{ -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_MovementLine WHERE M_Movement_ID=@M_Movement_ID@ -setM_AttributeSetInstance_ID (0); -setM_LocatorTo_ID (0); // @M_LocatorTo_ID@ -setM_Locator_ID (0); // @M_Locator_ID@ -setM_MovementLine_ID (0); -setM_Movement_ID (0); -setM_Product_ID (0); -setMovementQty (Env.ZERO); // 1 -setProcessed (false); -setTargetQty (Env.ZERO); // 0 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_MovementLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_MovementLine */ -public static final String Table_Name="M_MovementLine"; - -/** AD_Table_ID=324 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_MovementLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Confirmed Quantity. -@param ConfirmedQty Confirmation of a received quantity */ -public void setConfirmedQty (BigDecimal ConfirmedQty) -{ -set_Value ("ConfirmedQty", ConfirmedQty); -} -/** Get Confirmed Quantity. -@return Confirmation of a received quantity */ -public BigDecimal getConfirmedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ConfirmedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConfirmedQty */ -public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance To. -@param M_AttributeSetInstanceTo_ID Target Product Attribute Set Instance */ -public void setM_AttributeSetInstanceTo_ID (int M_AttributeSetInstanceTo_ID) -{ -if (M_AttributeSetInstanceTo_ID <= 0) set_ValueNoCheck ("M_AttributeSetInstanceTo_ID", null); - else -set_ValueNoCheck ("M_AttributeSetInstanceTo_ID", Integer.valueOf(M_AttributeSetInstanceTo_ID)); -} -/** Get Attribute Set Instance To. -@return Target Product Attribute Set Instance */ -public int getM_AttributeSetInstanceTo_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstanceTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstanceTo_ID */ -public static final String COLUMNNAME_M_AttributeSetInstanceTo_ID = "M_AttributeSetInstanceTo_ID"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MovementLine (Properties ctx, int M_MovementLine_ID, String trxName) + { + super (ctx, M_MovementLine_ID, trxName); + /** if (M_MovementLine_ID == 0) { setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_MovementLine WHERE M_Movement_ID=@M_Movement_ID@ + setM_AttributeSetInstance_ID (0); + setM_LocatorTo_ID (0); +// @M_LocatorTo_ID@ + setM_Locator_ID (0); +// @M_Locator_ID@ + setM_MovementLine_ID (0); + setM_Movement_ID (0); + setM_Product_ID (0); + setMovementQty (Env.ZERO); +// 1 + setProcessed (false); + setTargetQty (Env.ZERO); +// 0 +} */ + } + + /** Load Constructor */ + public X_M_MovementLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_MovementLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Confirmed Quantity. + @param ConfirmedQty + Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty) + { + set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); + } + + /** Get Confirmed Quantity. + @return Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Attribute Set Instance To. + @param M_AttributeSetInstanceTo_ID + Target Product Attribute Set Instance + */ + public void setM_AttributeSetInstanceTo_ID (int M_AttributeSetInstanceTo_ID) + { + if (M_AttributeSetInstanceTo_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstanceTo_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstanceTo_ID, Integer.valueOf(M_AttributeSetInstanceTo_ID)); + } + + /** Get Attribute Set Instance To. + @return Target Product Attribute Set Instance + */ + public int getM_AttributeSetInstanceTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstanceTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_LocatorTo_ID AD_Reference_ID=191 */ public static final int M_LOCATORTO_ID_AD_Reference_ID=191; -/** Set Locator To. -@param M_LocatorTo_ID Location inventory is moved to */ -public void setM_LocatorTo_ID (int M_LocatorTo_ID) -{ -if (M_LocatorTo_ID < 1) throw new IllegalArgumentException ("M_LocatorTo_ID is mandatory."); -set_Value ("M_LocatorTo_ID", Integer.valueOf(M_LocatorTo_ID)); -} -/** Get Locator To. -@return Location inventory is moved to */ -public int getM_LocatorTo_ID() -{ -Integer ii = (Integer)get_Value("M_LocatorTo_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_LocatorTo_ID */ -public static final String COLUMNNAME_M_LocatorTo_ID = "M_LocatorTo_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Move Line. -@param M_MovementLine_ID Inventory Move document Line */ -public void setM_MovementLine_ID (int M_MovementLine_ID) -{ -if (M_MovementLine_ID < 1) throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); -set_ValueNoCheck ("M_MovementLine_ID", Integer.valueOf(M_MovementLine_ID)); -} -/** Get Move Line. -@return Inventory Move document Line */ -public int getM_MovementLine_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementLine_ID */ -public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; -/** Set Inventory Move. -@param M_Movement_ID Movement of Inventory */ -public void setM_Movement_ID (int M_Movement_ID) -{ -if (M_Movement_ID < 1) throw new IllegalArgumentException ("M_Movement_ID is mandatory."); -set_ValueNoCheck ("M_Movement_ID", Integer.valueOf(M_Movement_ID)); -} -/** Get Inventory Move. -@return Movement of Inventory */ -public int getM_Movement_ID() -{ -Integer ii = (Integer)get_Value("M_Movement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Movement_ID */ -public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + /** Set Locator To. + @param M_LocatorTo_ID + Location inventory is moved to + */ + public void setM_LocatorTo_ID (int M_LocatorTo_ID) + { + if (M_LocatorTo_ID < 1) + throw new IllegalArgumentException ("M_LocatorTo_ID is mandatory."); + set_Value (COLUMNNAME_M_LocatorTo_ID, Integer.valueOf(M_LocatorTo_ID)); + } + + /** Get Locator To. + @return Location inventory is moved to + */ + public int getM_LocatorTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LocatorTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID < 1) + throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Movement getI_M_Movement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Inventory Move. + @param M_Movement_ID + Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID) + { + if (M_Movement_ID < 1) + throw new IllegalArgumentException ("M_Movement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + } + + /** Get Inventory Move. + @return Movement of Inventory + */ + public int getM_Movement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Product_ID AD_Reference_ID=171 */ public static final int M_PRODUCT_ID_AD_Reference_ID=171; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Scrapped Quantity. -@param ScrappedQty The Quantity scrapped due to QA issues */ -public void setScrappedQty (BigDecimal ScrappedQty) -{ -set_Value ("ScrappedQty", ScrappedQty); -} -/** Get Scrapped Quantity. -@return The Quantity scrapped due to QA issues */ -public BigDecimal getScrappedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ScrappedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ScrappedQty */ -public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; -/** Set Target Quantity. -@param TargetQty Target Movement Quantity */ -public void setTargetQty (BigDecimal TargetQty) -{ -if (TargetQty == null) throw new IllegalArgumentException ("TargetQty is mandatory."); -set_Value ("TargetQty", TargetQty); -} -/** Get Target Quantity. -@return Target Movement Quantity */ -public BigDecimal getTargetQty() -{ -BigDecimal bd = (BigDecimal)get_Value("TargetQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TargetQty */ -public static final String COLUMNNAME_TargetQty = "TargetQty"; -} + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Target Quantity. + @param TargetQty + Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty) + { + if (TargetQty == null) + throw new IllegalArgumentException ("TargetQty is mandatory."); + set_Value (COLUMNNAME_TargetQty, TargetQty); + } + + /** Get Target Quantity. + @return Target Movement Quantity + */ + public BigDecimal getTargetQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TargetQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MovementLineConfirm.java b/base/src/org/compiere/model/X_M_MovementLineConfirm.java index 0a65355d0f..14668f8941 100644 --- a/base/src/org/compiere/model/X_M_MovementLineConfirm.java +++ b/base/src/org/compiere/model/X_M_MovementLineConfirm.java @@ -1,277 +1,326 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_MovementLineConfirm - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_MovementLineConfirm extends PO + +/** Generated Model for M_MovementLineConfirm + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_MovementLineConfirm extends PO implements I_M_MovementLineConfirm, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_MovementLineConfirm_ID id -@param trxName transaction -*/ -public X_M_MovementLineConfirm (Properties ctx, int M_MovementLineConfirm_ID, String trxName) -{ -super (ctx, M_MovementLineConfirm_ID, trxName); -/** if (M_MovementLineConfirm_ID == 0) -{ -setConfirmedQty (Env.ZERO); -setDifferenceQty (Env.ZERO); -setM_MovementConfirm_ID (0); -setM_MovementLineConfirm_ID (0); -setM_MovementLine_ID (0); -setProcessed (false); -setScrappedQty (Env.ZERO); -setTargetQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_MovementLineConfirm (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_MovementLineConfirm */ -public static final String Table_Name="M_MovementLineConfirm"; - -/** AD_Table_ID=737 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_MovementLineConfirm[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Confirmed Quantity. -@param ConfirmedQty Confirmation of a received quantity */ -public void setConfirmedQty (BigDecimal ConfirmedQty) -{ -if (ConfirmedQty == null) throw new IllegalArgumentException ("ConfirmedQty is mandatory."); -set_Value ("ConfirmedQty", ConfirmedQty); -} -/** Get Confirmed Quantity. -@return Confirmation of a received quantity */ -public BigDecimal getConfirmedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ConfirmedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConfirmedQty */ -public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Difference. -@param DifferenceQty Difference Quantity */ -public void setDifferenceQty (BigDecimal DifferenceQty) -{ -if (DifferenceQty == null) throw new IllegalArgumentException ("DifferenceQty is mandatory."); -set_Value ("DifferenceQty", DifferenceQty); -} -/** Get Difference. -@return Difference Quantity */ -public BigDecimal getDifferenceQty() -{ -BigDecimal bd = (BigDecimal)get_Value("DifferenceQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DifferenceQty */ -public static final String COLUMNNAME_DifferenceQty = "DifferenceQty"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_Value ("M_InventoryLine_ID", null); - else -set_Value ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Move Confirm. -@param M_MovementConfirm_ID Inventory Move Confirmation */ -public void setM_MovementConfirm_ID (int M_MovementConfirm_ID) -{ -if (M_MovementConfirm_ID < 1) throw new IllegalArgumentException ("M_MovementConfirm_ID is mandatory."); -set_ValueNoCheck ("M_MovementConfirm_ID", Integer.valueOf(M_MovementConfirm_ID)); -} -/** Get Move Confirm. -@return Inventory Move Confirmation */ -public int getM_MovementConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_MovementConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_MovementConfirm_ID())); -} -/** Column name M_MovementConfirm_ID */ -public static final String COLUMNNAME_M_MovementConfirm_ID = "M_MovementConfirm_ID"; -/** Set Move Line Confirm. -@param M_MovementLineConfirm_ID Inventory Move Line Confirmation */ -public void setM_MovementLineConfirm_ID (int M_MovementLineConfirm_ID) -{ -if (M_MovementLineConfirm_ID < 1) throw new IllegalArgumentException ("M_MovementLineConfirm_ID is mandatory."); -set_ValueNoCheck ("M_MovementLineConfirm_ID", Integer.valueOf(M_MovementLineConfirm_ID)); -} -/** Get Move Line Confirm. -@return Inventory Move Line Confirmation */ -public int getM_MovementLineConfirm_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLineConfirm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementLineConfirm_ID */ -public static final String COLUMNNAME_M_MovementLineConfirm_ID = "M_MovementLineConfirm_ID"; -/** Set Move Line. -@param M_MovementLine_ID Inventory Move document Line */ -public void setM_MovementLine_ID (int M_MovementLine_ID) -{ -if (M_MovementLine_ID < 1) throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); -set_Value ("M_MovementLine_ID", Integer.valueOf(M_MovementLine_ID)); -} -/** Get Move Line. -@return Inventory Move document Line */ -public int getM_MovementLine_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementLine_ID */ -public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Scrapped Quantity. -@param ScrappedQty The Quantity scrapped due to QA issues */ -public void setScrappedQty (BigDecimal ScrappedQty) -{ -if (ScrappedQty == null) throw new IllegalArgumentException ("ScrappedQty is mandatory."); -set_Value ("ScrappedQty", ScrappedQty); -} -/** Get Scrapped Quantity. -@return The Quantity scrapped due to QA issues */ -public BigDecimal getScrappedQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ScrappedQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ScrappedQty */ -public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; -/** Set Target Quantity. -@param TargetQty Target Movement Quantity */ -public void setTargetQty (BigDecimal TargetQty) -{ -if (TargetQty == null) throw new IllegalArgumentException ("TargetQty is mandatory."); -set_Value ("TargetQty", TargetQty); -} -/** Get Target Quantity. -@return Target Movement Quantity */ -public BigDecimal getTargetQty() -{ -BigDecimal bd = (BigDecimal)get_Value("TargetQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TargetQty */ -public static final String COLUMNNAME_TargetQty = "TargetQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MovementLineConfirm (Properties ctx, int M_MovementLineConfirm_ID, String trxName) + { + super (ctx, M_MovementLineConfirm_ID, trxName); + /** if (M_MovementLineConfirm_ID == 0) { setConfirmedQty (Env.ZERO); + setDifferenceQty (Env.ZERO); + setM_MovementConfirm_ID (0); + setM_MovementLineConfirm_ID (0); + setM_MovementLine_ID (0); + setProcessed (false); + setScrappedQty (Env.ZERO); + setTargetQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_MovementLineConfirm (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_MovementLineConfirm[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Confirmed Quantity. + @param ConfirmedQty + Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty) + { + if (ConfirmedQty == null) + throw new IllegalArgumentException ("ConfirmedQty is mandatory."); + set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); + } + + /** Get Confirmed Quantity. + @return Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Difference. + @param DifferenceQty + Difference Quantity + */ + public void setDifferenceQty (BigDecimal DifferenceQty) + { + if (DifferenceQty == null) + throw new IllegalArgumentException ("DifferenceQty is mandatory."); + set_Value (COLUMNNAME_DifferenceQty, DifferenceQty); + } + + /** Get Difference. + @return Difference Quantity + */ + public BigDecimal getDifferenceQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DifferenceQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_MovementConfirm getI_M_MovementConfirm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Move Confirm. + @param M_MovementConfirm_ID + Inventory Move Confirmation + */ + public void setM_MovementConfirm_ID (int M_MovementConfirm_ID) + { + if (M_MovementConfirm_ID < 1) + throw new IllegalArgumentException ("M_MovementConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MovementConfirm_ID, Integer.valueOf(M_MovementConfirm_ID)); + } + + /** Get Move Confirm. + @return Inventory Move Confirmation + */ + public int getM_MovementConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_MovementConfirm_ID())); + } + + /** Set Move Line Confirm. + @param M_MovementLineConfirm_ID + Inventory Move Line Confirmation + */ + public void setM_MovementLineConfirm_ID (int M_MovementLineConfirm_ID) + { + if (M_MovementLineConfirm_ID < 1) + throw new IllegalArgumentException ("M_MovementLineConfirm_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MovementLineConfirm_ID, Integer.valueOf(M_MovementLineConfirm_ID)); + } + + /** Get Move Line Confirm. + @return Inventory Move Line Confirmation + */ + public int getM_MovementLineConfirm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLineConfirm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID < 1) + throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); + set_Value (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + if (ScrappedQty == null) + throw new IllegalArgumentException ("ScrappedQty is mandatory."); + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Target Quantity. + @param TargetQty + Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty) + { + if (TargetQty == null) + throw new IllegalArgumentException ("TargetQty is mandatory."); + set_Value (COLUMNNAME_TargetQty, TargetQty); + } + + /** Get Target Quantity. + @return Target Movement Quantity + */ + public BigDecimal getTargetQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TargetQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MovementLineMA.java b/base/src/org/compiere/model/X_M_MovementLineMA.java index 04179efed2..acc10f5b86 100644 --- a/base/src/org/compiere/model/X_M_MovementLineMA.java +++ b/base/src/org/compiere/model/X_M_MovementLineMA.java @@ -1,145 +1,146 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_MovementLineMA - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_MovementLineMA extends PO + +/** Generated Model for M_MovementLineMA + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_MovementLineMA extends PO implements I_M_MovementLineMA, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_MovementLineMA_ID id -@param trxName transaction -*/ -public X_M_MovementLineMA (Properties ctx, int M_MovementLineMA_ID, String trxName) -{ -super (ctx, M_MovementLineMA_ID, trxName); -/** if (M_MovementLineMA_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_MovementLine_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_MovementLineMA (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_MovementLineMA */ -public static final String Table_Name="M_MovementLineMA"; - -/** AD_Table_ID=764 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_MovementLineMA[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Move Line. -@param M_MovementLine_ID Inventory Move document Line */ -public void setM_MovementLine_ID (int M_MovementLine_ID) -{ -if (M_MovementLine_ID < 1) throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); -set_ValueNoCheck ("M_MovementLine_ID", Integer.valueOf(M_MovementLine_ID)); -} -/** Get Move Line. -@return Inventory Move document Line */ -public int getM_MovementLine_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_MovementLine_ID())); -} -/** Column name M_MovementLine_ID */ -public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MovementLineMA (Properties ctx, int M_MovementLineMA_ID, String trxName) + { + super (ctx, M_MovementLineMA_ID, trxName); + /** if (M_MovementLineMA_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_MovementLine_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_MovementLineMA (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_MovementLineMA[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID < 1) + throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_MovementLine_ID())); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_OperationResource.java b/base/src/org/compiere/model/X_M_OperationResource.java index 623d910d40..3da64411fe 100644 --- a/base/src/org/compiere/model/X_M_OperationResource.java +++ b/base/src/org/compiere/model/X_M_OperationResource.java @@ -1,278 +1,356 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_OperationResource - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_OperationResource extends PO + +/** Generated Model for M_OperationResource + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_OperationResource extends PO implements I_M_OperationResource, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_OperationResource_ID id -@param trxName transaction -*/ -public X_M_OperationResource (Properties ctx, int M_OperationResource_ID, String trxName) -{ -super (ctx, M_OperationResource_ID, trxName); -/** if (M_OperationResource_ID == 0) -{ -setM_OperationResource_ID (0); -setM_ProductOperation_ID (0); -setName (null); -setSetupTime (Env.ZERO); -setTeardownTime (Env.ZERO); -setUnitRuntime (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_OperationResource (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_OperationResource */ -public static final String Table_Name="M_OperationResource"; - -/** AD_Table_ID=797 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_OperationResource[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Position. -@param C_Job_ID Job Position */ -public void setC_Job_ID (int C_Job_ID) -{ -if (C_Job_ID <= 0) set_Value ("C_Job_ID", null); - else -set_Value ("C_Job_ID", Integer.valueOf(C_Job_ID)); -} -/** Get Position. -@return Job Position */ -public int getC_Job_ID() -{ -Integer ii = (Integer)get_Value("C_Job_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Job_ID */ -public static final String COLUMNNAME_C_Job_ID = "C_Job_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Operation Resource. -@param M_OperationResource_ID Product Operation Resource */ -public void setM_OperationResource_ID (int M_OperationResource_ID) -{ -if (M_OperationResource_ID < 1) throw new IllegalArgumentException ("M_OperationResource_ID is mandatory."); -set_ValueNoCheck ("M_OperationResource_ID", Integer.valueOf(M_OperationResource_ID)); -} -/** Get Operation Resource. -@return Product Operation Resource */ -public int getM_OperationResource_ID() -{ -Integer ii = (Integer)get_Value("M_OperationResource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_OperationResource_ID */ -public static final String COLUMNNAME_M_OperationResource_ID = "M_OperationResource_ID"; -/** Set Product Operation. -@param M_ProductOperation_ID Product Manufacturing Operation */ -public void setM_ProductOperation_ID (int M_ProductOperation_ID) -{ -if (M_ProductOperation_ID < 1) throw new IllegalArgumentException ("M_ProductOperation_ID is mandatory."); -set_ValueNoCheck ("M_ProductOperation_ID", Integer.valueOf(M_ProductOperation_ID)); -} -/** Get Product Operation. -@return Product Manufacturing Operation */ -public int getM_ProductOperation_ID() -{ -Integer ii = (Integer)get_Value("M_ProductOperation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductOperation_ID */ -public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Setup Time. -@param SetupTime Setup time before starting Production */ -public void setSetupTime (BigDecimal SetupTime) -{ -if (SetupTime == null) throw new IllegalArgumentException ("SetupTime is mandatory."); -set_Value ("SetupTime", SetupTime); -} -/** Get Setup Time. -@return Setup time before starting Production */ -public BigDecimal getSetupTime() -{ -BigDecimal bd = (BigDecimal)get_Value("SetupTime"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SetupTime */ -public static final String COLUMNNAME_SetupTime = "SetupTime"; -/** Set Teardown Time. -@param TeardownTime Time at the end of the operation */ -public void setTeardownTime (BigDecimal TeardownTime) -{ -if (TeardownTime == null) throw new IllegalArgumentException ("TeardownTime is mandatory."); -set_Value ("TeardownTime", TeardownTime); -} -/** Get Teardown Time. -@return Time at the end of the operation */ -public BigDecimal getTeardownTime() -{ -BigDecimal bd = (BigDecimal)get_Value("TeardownTime"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TeardownTime */ -public static final String COLUMNNAME_TeardownTime = "TeardownTime"; -/** Set Runtime per Unit. -@param UnitRuntime Time to produce one unit */ -public void setUnitRuntime (BigDecimal UnitRuntime) -{ -if (UnitRuntime == null) throw new IllegalArgumentException ("UnitRuntime is mandatory."); -set_Value ("UnitRuntime", UnitRuntime); -} -/** Get Runtime per Unit. -@return Time to produce one unit */ -public BigDecimal getUnitRuntime() -{ -BigDecimal bd = (BigDecimal)get_Value("UnitRuntime"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name UnitRuntime */ -public static final String COLUMNNAME_UnitRuntime = "UnitRuntime"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_OperationResource (Properties ctx, int M_OperationResource_ID, String trxName) + { + super (ctx, M_OperationResource_ID, trxName); + /** if (M_OperationResource_ID == 0) { setM_OperationResource_ID (0); + setM_ProductOperation_ID (0); + setName (null); + setSetupTime (Env.ZERO); + setTeardownTime (Env.ZERO); + setUnitRuntime (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_OperationResource (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_OperationResource[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_A_Asset getI_A_Asset() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Job getI_C_Job() throws Exception + { + 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 e; + } + return result; + } + + /** Set Position. + @param C_Job_ID + Job Position + */ + public void setC_Job_ID (int C_Job_ID) + { + if (C_Job_ID <= 0) set_Value (COLUMNNAME_C_Job_ID, null); + else + set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); + } + + /** Get Position. + @return Job Position + */ + public int getC_Job_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Operation Resource. + @param M_OperationResource_ID + Product Operation Resource + */ + public void setM_OperationResource_ID (int M_OperationResource_ID) + { + if (M_OperationResource_ID < 1) + throw new IllegalArgumentException ("M_OperationResource_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_OperationResource_ID, Integer.valueOf(M_OperationResource_ID)); + } + + /** Get Operation Resource. + @return Product Operation Resource + */ + public int getM_OperationResource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_OperationResource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ProductOperation getI_M_ProductOperation() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Operation. + @param M_ProductOperation_ID + Product Manufacturing Operation + */ + public void setM_ProductOperation_ID (int M_ProductOperation_ID) + { + if (M_ProductOperation_ID < 1) + throw new IllegalArgumentException ("M_ProductOperation_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); + } + + /** Get Product Operation. + @return Product Manufacturing Operation + */ + public int getM_ProductOperation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductOperation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Setup Time. + @param SetupTime + Setup time before starting Production + */ + public void setSetupTime (BigDecimal SetupTime) + { + if (SetupTime == null) + throw new IllegalArgumentException ("SetupTime is mandatory."); + set_Value (COLUMNNAME_SetupTime, SetupTime); + } + + /** Get Setup Time. + @return Setup time before starting Production + */ + public BigDecimal getSetupTime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SetupTime); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Teardown Time. + @param TeardownTime + Time at the end of the operation + */ + public void setTeardownTime (BigDecimal TeardownTime) + { + if (TeardownTime == null) + throw new IllegalArgumentException ("TeardownTime is mandatory."); + set_Value (COLUMNNAME_TeardownTime, TeardownTime); + } + + /** Get Teardown Time. + @return Time at the end of the operation + */ + public BigDecimal getTeardownTime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TeardownTime); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Runtime per Unit. + @param UnitRuntime + Time to produce one unit + */ + public void setUnitRuntime (BigDecimal UnitRuntime) + { + if (UnitRuntime == null) + throw new IllegalArgumentException ("UnitRuntime is mandatory."); + set_Value (COLUMNNAME_UnitRuntime, UnitRuntime); + } + + /** Get Runtime per Unit. + @return Time to produce one unit + */ + public BigDecimal getUnitRuntime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitRuntime); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Package.java b/base/src/org/compiere/model/X_M_Package.java index dcab7a6ba2..857ae65a4a 100644 --- a/base/src/org/compiere/model/X_M_Package.java +++ b/base/src/org/compiere/model/X_M_Package.java @@ -1,247 +1,295 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Package - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Package extends PO + +/** Generated Model for M_Package + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Package extends PO implements I_M_Package, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Package_ID id -@param trxName transaction -*/ -public X_M_Package (Properties ctx, int M_Package_ID, String trxName) -{ -super (ctx, M_Package_ID, trxName); -/** if (M_Package_ID == 0) -{ -setDocumentNo (null); -setM_InOut_ID (0); -setM_Package_ID (0); -setM_Shipper_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Package (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Package */ -public static final String Table_Name="M_Package"; - -/** AD_Table_ID=664 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Package[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Date received. -@param DateReceived Date a product was received */ -public void setDateReceived (Timestamp DateReceived) -{ -set_Value ("DateReceived", DateReceived); -} -/** Get Date received. -@return Date a product was received */ -public Timestamp getDateReceived() -{ -return (Timestamp)get_Value("DateReceived"); -} -/** Column name DateReceived */ -public static final String COLUMNNAME_DateReceived = "DateReceived"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID < 1) throw new IllegalArgumentException ("M_InOut_ID is mandatory."); -set_ValueNoCheck ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; -/** Set Package. -@param M_Package_ID Shipment Package */ -public void setM_Package_ID (int M_Package_ID) -{ -if (M_Package_ID < 1) throw new IllegalArgumentException ("M_Package_ID is mandatory."); -set_ValueNoCheck ("M_Package_ID", Integer.valueOf(M_Package_ID)); -} -/** Get Package. -@return Shipment Package */ -public int getM_Package_ID() -{ -Integer ii = (Integer)get_Value("M_Package_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Package_ID */ -public static final String COLUMNNAME_M_Package_ID = "M_Package_ID"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID < 1) throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); -set_Value ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; -/** Set Info Received. -@param ReceivedInfo Information of the receipt of the package (acknowledgement) */ -public void setReceivedInfo (String ReceivedInfo) -{ -if (ReceivedInfo != null && ReceivedInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -ReceivedInfo = ReceivedInfo.substring(0,254); -} -set_Value ("ReceivedInfo", ReceivedInfo); -} -/** Get Info Received. -@return Information of the receipt of the package (acknowledgement) */ -public String getReceivedInfo() -{ -return (String)get_Value("ReceivedInfo"); -} -/** Column name ReceivedInfo */ -public static final String COLUMNNAME_ReceivedInfo = "ReceivedInfo"; -/** Set Ship Date. -@param ShipDate Shipment Date/Time */ -public void setShipDate (Timestamp ShipDate) -{ -set_Value ("ShipDate", ShipDate); -} -/** Get Ship Date. -@return Shipment Date/Time */ -public Timestamp getShipDate() -{ -return (Timestamp)get_Value("ShipDate"); -} -/** Column name ShipDate */ -public static final String COLUMNNAME_ShipDate = "ShipDate"; -/** Set Tracking Info. -@param TrackingInfo Tracking Info */ -public void setTrackingInfo (String TrackingInfo) -{ -if (TrackingInfo != null && TrackingInfo.length() > 255) -{ -log.warning("Length > 255 - truncated"); -TrackingInfo = TrackingInfo.substring(0,254); -} -set_Value ("TrackingInfo", TrackingInfo); -} -/** Get Tracking Info. -@return Tracking Info */ -public String getTrackingInfo() -{ -return (String)get_Value("TrackingInfo"); -} -/** Column name TrackingInfo */ -public static final String COLUMNNAME_TrackingInfo = "TrackingInfo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Package (Properties ctx, int M_Package_ID, String trxName) + { + super (ctx, M_Package_ID, trxName); + /** if (M_Package_ID == 0) { setDocumentNo (null); + setM_InOut_ID (0); + setM_Package_ID (0); + setM_Shipper_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_Package (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Package[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Date received. + @param DateReceived + Date a product was received + */ + public void setDateReceived (Timestamp DateReceived) + { + set_Value (COLUMNNAME_DateReceived, DateReceived); + } + + /** Get Date received. + @return Date a product was received + */ + public Timestamp getDateReceived () + { + return (Timestamp)get_Value(COLUMNNAME_DateReceived); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + public I_M_InOut getI_M_InOut() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID < 1) + throw new IllegalArgumentException ("M_InOut_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Package. + @param M_Package_ID + Shipment Package + */ + public void setM_Package_ID (int M_Package_ID) + { + if (M_Package_ID < 1) + throw new IllegalArgumentException ("M_Package_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); + } + + /** Get Package. + @return Shipment Package + */ + public int getM_Package_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Package_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getI_M_Shipper() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Info Received. + @param ReceivedInfo + Information of the receipt of the package (acknowledgement) + */ + public void setReceivedInfo (String ReceivedInfo) + { + if (ReceivedInfo != null && ReceivedInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + ReceivedInfo = ReceivedInfo.substring(0, 254); + } + set_Value (COLUMNNAME_ReceivedInfo, ReceivedInfo); + } + + /** Get Info Received. + @return Information of the receipt of the package (acknowledgement) + */ + public String getReceivedInfo () + { + return (String)get_Value(COLUMNNAME_ReceivedInfo); + } + + /** Set Ship Date. + @param ShipDate + Shipment Date/Time + */ + public void setShipDate (Timestamp ShipDate) + { + set_Value (COLUMNNAME_ShipDate, ShipDate); + } + + /** Get Ship Date. + @return Shipment Date/Time + */ + public Timestamp getShipDate () + { + return (Timestamp)get_Value(COLUMNNAME_ShipDate); + } + + /** Set Tracking Info. + @param TrackingInfo Tracking Info */ + public void setTrackingInfo (String TrackingInfo) + { + if (TrackingInfo != null && TrackingInfo.length() > 255) + { + log.warning("Length > 255 - truncated"); + TrackingInfo = TrackingInfo.substring(0, 254); + } + set_Value (COLUMNNAME_TrackingInfo, TrackingInfo); + } + + /** Get Tracking Info. +@return Tracking Info */ + public String getTrackingInfo () + { + return (String)get_Value(COLUMNNAME_TrackingInfo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_PackageLine.java b/base/src/org/compiere/model/X_M_PackageLine.java index 72732014c7..998066380d 100644 --- a/base/src/org/compiere/model/X_M_PackageLine.java +++ b/base/src/org/compiere/model/X_M_PackageLine.java @@ -1,184 +1,226 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_PackageLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_PackageLine extends PO + +/** Generated Model for M_PackageLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_PackageLine extends PO implements I_M_PackageLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_PackageLine_ID id -@param trxName transaction -*/ -public X_M_PackageLine (Properties ctx, int M_PackageLine_ID, String trxName) -{ -super (ctx, M_PackageLine_ID, trxName); -/** if (M_PackageLine_ID == 0) -{ -setM_InOutLine_ID (0); -setM_PackageLine_ID (0); -setM_Package_ID (0); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_PackageLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_PackageLine */ -public static final String Table_Name="M_PackageLine"; - -/** AD_Table_ID=663 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_PackageLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID < 1) throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Package Line. -@param M_PackageLine_ID The detail content of the Package */ -public void setM_PackageLine_ID (int M_PackageLine_ID) -{ -if (M_PackageLine_ID < 1) throw new IllegalArgumentException ("M_PackageLine_ID is mandatory."); -set_ValueNoCheck ("M_PackageLine_ID", Integer.valueOf(M_PackageLine_ID)); -} -/** Get Package Line. -@return The detail content of the Package */ -public int getM_PackageLine_ID() -{ -Integer ii = (Integer)get_Value("M_PackageLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PackageLine_ID */ -public static final String COLUMNNAME_M_PackageLine_ID = "M_PackageLine_ID"; -/** Set Package. -@param M_Package_ID Shipment Package */ -public void setM_Package_ID (int M_Package_ID) -{ -if (M_Package_ID < 1) throw new IllegalArgumentException ("M_Package_ID is mandatory."); -set_ValueNoCheck ("M_Package_ID", Integer.valueOf(M_Package_ID)); -} -/** Get Package. -@return Shipment Package */ -public int getM_Package_ID() -{ -Integer ii = (Integer)get_Value("M_Package_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_Package_ID())); -} -/** Column name M_Package_ID */ -public static final String COLUMNNAME_M_Package_ID = "M_Package_ID"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_PackageLine (Properties ctx, int M_PackageLine_ID, String trxName) + { + super (ctx, M_PackageLine_ID, trxName); + /** if (M_PackageLine_ID == 0) { setM_InOutLine_ID (0); + setM_PackageLine_ID (0); + setM_Package_ID (0); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_PackageLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_PackageLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + public I_M_InOutLine getI_M_InOutLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + throw new IllegalArgumentException ("M_InOutLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Package Line. + @param M_PackageLine_ID + The detail content of the Package + */ + public void setM_PackageLine_ID (int M_PackageLine_ID) + { + if (M_PackageLine_ID < 1) + throw new IllegalArgumentException ("M_PackageLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PackageLine_ID, Integer.valueOf(M_PackageLine_ID)); + } + + /** Get Package Line. + @return The detail content of the Package + */ + public int getM_PackageLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PackageLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Package getI_M_Package() throws Exception + { + 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 e; + } + return result; + } + + /** Set Package. + @param M_Package_ID + Shipment Package + */ + public void setM_Package_ID (int M_Package_ID) + { + if (M_Package_ID < 1) + throw new IllegalArgumentException ("M_Package_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); + } + + /** Get Package. + @return Shipment Package + */ + public int getM_Package_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Package_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_Package_ID())); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_PerpetualInv.java b/base/src/org/compiere/model/X_M_PerpetualInv.java index 940310917b..39656b3edf 100644 --- a/base/src/org/compiere/model/X_M_PerpetualInv.java +++ b/base/src/org/compiere/model/X_M_PerpetualInv.java @@ -1,309 +1,375 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_PerpetualInv - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_PerpetualInv extends PO + +/** Generated Model for M_PerpetualInv + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_PerpetualInv extends PO implements I_M_PerpetualInv, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_PerpetualInv_ID id -@param trxName transaction -*/ -public X_M_PerpetualInv (Properties ctx, int M_PerpetualInv_ID, String trxName) -{ -super (ctx, M_PerpetualInv_ID, trxName); -/** if (M_PerpetualInv_ID == 0) -{ -setCountHighMovement (false); -setDateNextRun (new Timestamp(System.currentTimeMillis())); -setM_PerpetualInv_ID (0); -setName (null); -setNoInventoryCount (0); // 1 -setNoProductCount (0); // 1 -setNumberOfRuns (0); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_PerpetualInv (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_PerpetualInv */ -public static final String Table_Name="M_PerpetualInv"; - -/** AD_Table_ID=342 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_PerpetualInv[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Count high turnover items. -@param CountHighMovement Count High Movement products */ -public void setCountHighMovement (boolean CountHighMovement) -{ -set_Value ("CountHighMovement", Boolean.valueOf(CountHighMovement)); -} -/** Get Count high turnover items. -@return Count High Movement products */ -public boolean isCountHighMovement() -{ -Object oo = get_Value("CountHighMovement"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name CountHighMovement */ -public static final String COLUMNNAME_CountHighMovement = "CountHighMovement"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_ValueNoCheck ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -if (DateNextRun == null) throw new IllegalArgumentException ("DateNextRun is mandatory."); -set_ValueNoCheck ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Perpetual Inventory. -@param M_PerpetualInv_ID Rules for generating physical inventory */ -public void setM_PerpetualInv_ID (int M_PerpetualInv_ID) -{ -if (M_PerpetualInv_ID < 1) throw new IllegalArgumentException ("M_PerpetualInv_ID is mandatory."); -set_ValueNoCheck ("M_PerpetualInv_ID", Integer.valueOf(M_PerpetualInv_ID)); -} -/** Get Perpetual Inventory. -@return Rules for generating physical inventory */ -public int getM_PerpetualInv_ID() -{ -Integer ii = (Integer)get_Value("M_PerpetualInv_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PerpetualInv_ID */ -public static final String COLUMNNAME_M_PerpetualInv_ID = "M_PerpetualInv_ID"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID <= 0) set_Value ("M_Warehouse_ID", null); - else -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Number of Inventory counts. -@param NoInventoryCount Frequency of inventory counts per year */ -public void setNoInventoryCount (int NoInventoryCount) -{ -set_Value ("NoInventoryCount", Integer.valueOf(NoInventoryCount)); -} -/** Get Number of Inventory counts. -@return Frequency of inventory counts per year */ -public int getNoInventoryCount() -{ -Integer ii = (Integer)get_Value("NoInventoryCount"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NoInventoryCount */ -public static final String COLUMNNAME_NoInventoryCount = "NoInventoryCount"; -/** Set Number of Product counts. -@param NoProductCount Frequency of product counts per year */ -public void setNoProductCount (int NoProductCount) -{ -set_Value ("NoProductCount", Integer.valueOf(NoProductCount)); -} -/** Get Number of Product counts. -@return Frequency of product counts per year */ -public int getNoProductCount() -{ -Integer ii = (Integer)get_Value("NoProductCount"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NoProductCount */ -public static final String COLUMNNAME_NoProductCount = "NoProductCount"; -/** Set Number of runs. -@param NumberOfRuns Frequency of processing Perpetual Inventory */ -public void setNumberOfRuns (int NumberOfRuns) -{ -set_Value ("NumberOfRuns", Integer.valueOf(NumberOfRuns)); -} -/** Get Number of runs. -@return Frequency of processing Perpetual Inventory */ -public int getNumberOfRuns() -{ -Integer ii = (Integer)get_Value("NumberOfRuns"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NumberOfRuns */ -public static final String COLUMNNAME_NumberOfRuns = "NumberOfRuns"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_PerpetualInv (Properties ctx, int M_PerpetualInv_ID, String trxName) + { + super (ctx, M_PerpetualInv_ID, trxName); + /** if (M_PerpetualInv_ID == 0) { setCountHighMovement (false); + setDateNextRun (new Timestamp(System.currentTimeMillis())); + setM_PerpetualInv_ID (0); + setName (null); + setNoInventoryCount (0); +// 1 + setNoProductCount (0); +// 1 + setNumberOfRuns (0); +// 1 +} */ + } + + /** Load Constructor */ + public X_M_PerpetualInv (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_PerpetualInv[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Count high turnover items. + @param CountHighMovement + Count High Movement products + */ + public void setCountHighMovement (boolean CountHighMovement) + { + set_Value (COLUMNNAME_CountHighMovement, Boolean.valueOf(CountHighMovement)); + } + + /** Get Count high turnover items. + @return Count High Movement products + */ + public boolean isCountHighMovement () + { + Object oo = get_Value(COLUMNNAME_CountHighMovement); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_ValueNoCheck (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + if (DateNextRun == null) + throw new IllegalArgumentException ("DateNextRun is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Perpetual Inventory. + @param M_PerpetualInv_ID + Rules for generating physical inventory + */ + public void setM_PerpetualInv_ID (int M_PerpetualInv_ID) + { + if (M_PerpetualInv_ID < 1) + throw new IllegalArgumentException ("M_PerpetualInv_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, Integer.valueOf(M_PerpetualInv_ID)); + } + + /** Get Perpetual Inventory. + @return Rules for generating physical inventory + */ + public int getM_PerpetualInv_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PerpetualInv_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID <= 0) set_Value (COLUMNNAME_M_Warehouse_ID, null); + else + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Number of Inventory counts. + @param NoInventoryCount + Frequency of inventory counts per year + */ + public void setNoInventoryCount (int NoInventoryCount) + { + set_Value (COLUMNNAME_NoInventoryCount, Integer.valueOf(NoInventoryCount)); + } + + /** Get Number of Inventory counts. + @return Frequency of inventory counts per year + */ + public int getNoInventoryCount () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NoInventoryCount); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number of Product counts. + @param NoProductCount + Frequency of product counts per year + */ + public void setNoProductCount (int NoProductCount) + { + set_Value (COLUMNNAME_NoProductCount, Integer.valueOf(NoProductCount)); + } + + /** Get Number of Product counts. + @return Frequency of product counts per year + */ + public int getNoProductCount () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NoProductCount); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number of runs. + @param NumberOfRuns + Frequency of processing Perpetual Inventory + */ + public void setNumberOfRuns (int NumberOfRuns) + { + set_Value (COLUMNNAME_NumberOfRuns, Integer.valueOf(NumberOfRuns)); + } + + /** Get Number of runs. + @return Frequency of processing Perpetual Inventory + */ + public int getNumberOfRuns () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NumberOfRuns); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_PriceList.java b/base/src/org/compiere/model/X_M_PriceList.java index 433fce2364..76c88eaa20 100644 --- a/base/src/org/compiere/model/X_M_PriceList.java +++ b/base/src/org/compiere/model/X_M_PriceList.java @@ -1,292 +1,337 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_PriceList - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_PriceList extends PO + +/** Generated Model for M_PriceList + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_PriceList extends PO implements I_M_PriceList, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_PriceList_ID id -@param trxName transaction -*/ -public X_M_PriceList (Properties ctx, int M_PriceList_ID, String trxName) -{ -super (ctx, M_PriceList_ID, trxName); -/** if (M_PriceList_ID == 0) -{ -setC_Currency_ID (0); -setEnforcePriceLimit (false); -setIsDefault (false); -setIsSOPriceList (false); -setIsTaxIncluded (false); -setM_PriceList_ID (0); -setName (null); -setPricePrecision (Env.ZERO); // 2 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_PriceList (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_PriceList */ -public static final String Table_Name="M_PriceList"; - -/** AD_Table_ID=255 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_PriceList[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_PriceList (Properties ctx, int M_PriceList_ID, String trxName) + { + super (ctx, M_PriceList_ID, trxName); + /** if (M_PriceList_ID == 0) { setC_Currency_ID (0); + setEnforcePriceLimit (false); + setIsDefault (false); + setIsSOPriceList (false); + setIsTaxIncluded (false); + setM_PriceList_ID (0); + setName (null); + setPricePrecision (Env.ZERO); +// 2 +} */ + } + + /** Load Constructor */ + public X_M_PriceList (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_PriceList[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** BasePriceList_ID AD_Reference_ID=166 */ public static final int BASEPRICELIST_ID_AD_Reference_ID=166; -/** Set Base Pricelist. -@param BasePriceList_ID Pricelist to be used, if product not found on this pricelist */ -public void setBasePriceList_ID (int BasePriceList_ID) -{ -if (BasePriceList_ID <= 0) set_Value ("BasePriceList_ID", null); - else -set_Value ("BasePriceList_ID", Integer.valueOf(BasePriceList_ID)); -} -/** Get Base Pricelist. -@return Pricelist to be used, if product not found on this pricelist */ -public int getBasePriceList_ID() -{ -Integer ii = (Integer)get_Value("BasePriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BasePriceList_ID */ -public static final String COLUMNNAME_BasePriceList_ID = "BasePriceList_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Enforce price limit. -@param EnforcePriceLimit Do not allow prices below the limit price */ -public void setEnforcePriceLimit (boolean EnforcePriceLimit) -{ -set_Value ("EnforcePriceLimit", Boolean.valueOf(EnforcePriceLimit)); -} -/** Get Enforce price limit. -@return Do not allow prices below the limit price */ -public boolean isEnforcePriceLimit() -{ -Object oo = get_Value("EnforcePriceLimit"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name EnforcePriceLimit */ -public static final String COLUMNNAME_EnforcePriceLimit = "EnforcePriceLimit"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Sales Price list. -@param IsSOPriceList This is a Sales Price List */ -public void setIsSOPriceList (boolean IsSOPriceList) -{ -set_Value ("IsSOPriceList", Boolean.valueOf(IsSOPriceList)); -} -/** Get Sales Price list. -@return This is a Sales Price List */ -public boolean isSOPriceList() -{ -Object oo = get_Value("IsSOPriceList"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOPriceList */ -public static final String COLUMNNAME_IsSOPriceList = "IsSOPriceList"; -/** Set Price includes Tax. -@param IsTaxIncluded Tax is included in the price */ -public void setIsTaxIncluded (boolean IsTaxIncluded) -{ -set_Value ("IsTaxIncluded", Boolean.valueOf(IsTaxIncluded)); -} -/** Get Price includes Tax. -@return Tax is included in the price */ -public boolean isTaxIncluded() -{ -Object oo = get_Value("IsTaxIncluded"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxIncluded */ -public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_ValueNoCheck ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Price Precision. -@param PricePrecision Precision (number of decimals) for the Price */ -public void setPricePrecision (BigDecimal PricePrecision) -{ -if (PricePrecision == null) throw new IllegalArgumentException ("PricePrecision is mandatory."); -set_Value ("PricePrecision", PricePrecision); -} -/** Get Price Precision. -@return Precision (number of decimals) for the Price */ -public BigDecimal getPricePrecision() -{ -BigDecimal bd = (BigDecimal)get_Value("PricePrecision"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PricePrecision */ -public static final String COLUMNNAME_PricePrecision = "PricePrecision"; -} + /** Set Base Pricelist. + @param BasePriceList_ID + Pricelist to be used, if product not found on this pricelist + */ + public void setBasePriceList_ID (int BasePriceList_ID) + { + if (BasePriceList_ID <= 0) set_Value (COLUMNNAME_BasePriceList_ID, null); + else + set_Value (COLUMNNAME_BasePriceList_ID, Integer.valueOf(BasePriceList_ID)); + } + + /** Get Base Pricelist. + @return Pricelist to be used, if product not found on this pricelist + */ + public int getBasePriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BasePriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Enforce price limit. + @param EnforcePriceLimit + Do not allow prices below the limit price + */ + public void setEnforcePriceLimit (boolean EnforcePriceLimit) + { + set_Value (COLUMNNAME_EnforcePriceLimit, Boolean.valueOf(EnforcePriceLimit)); + } + + /** Get Enforce price limit. + @return Do not allow prices below the limit price + */ + public boolean isEnforcePriceLimit () + { + Object oo = get_Value(COLUMNNAME_EnforcePriceLimit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Price list. + @param IsSOPriceList + This is a Sales Price List + */ + public void setIsSOPriceList (boolean IsSOPriceList) + { + set_Value (COLUMNNAME_IsSOPriceList, Boolean.valueOf(IsSOPriceList)); + } + + /** Get Sales Price list. + @return This is a Sales Price List + */ + public boolean isSOPriceList () + { + Object oo = get_Value(COLUMNNAME_IsSOPriceList); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Price Precision. + @param PricePrecision + Precision (number of decimals) for the Price + */ + public void setPricePrecision (BigDecimal PricePrecision) + { + if (PricePrecision == null) + throw new IllegalArgumentException ("PricePrecision is mandatory."); + set_Value (COLUMNNAME_PricePrecision, PricePrecision); + } + + /** Get Price Precision. + @return Precision (number of decimals) for the Price + */ + public BigDecimal getPricePrecision () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePrecision); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 0403c64d40..0a974c835f 100644 --- a/base/src/org/compiere/model/X_M_PriceList_Version.java +++ b/base/src/org/compiere/model/X_M_PriceList_Version.java @@ -1,243 +1,293 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_PriceList_Version - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_PriceList_Version extends PO + +/** Generated Model for M_PriceList_Version + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_PriceList_Version extends PO implements I_M_PriceList_Version, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_PriceList_Version_ID id -@param trxName transaction -*/ -public X_M_PriceList_Version (Properties ctx, int M_PriceList_Version_ID, String trxName) -{ -super (ctx, M_PriceList_Version_ID, trxName); -/** if (M_PriceList_Version_ID == 0) -{ -setM_DiscountSchema_ID (0); -setM_PriceList_ID (0); -setM_PriceList_Version_ID (0); -setName (null); // @#Date@ -setValidFrom (new Timestamp(System.currentTimeMillis())); // @#Date@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_PriceList_Version (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_PriceList_Version */ -public static final String Table_Name="M_PriceList_Version"; - -/** AD_Table_ID=295 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_PriceList_Version[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID < 1) throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); -set_Value ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_ValueNoCheck ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Price List Version. -@param M_PriceList_Version_ID Identifies a unique instance of a Price List */ -public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) -{ -if (M_PriceList_Version_ID < 1) throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); -set_ValueNoCheck ("M_PriceList_Version_ID", Integer.valueOf(M_PriceList_Version_ID)); -} -/** Get Price List Version. -@return Identifies a unique instance of a Price List */ -public int getM_PriceList_Version_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_Version_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_Version_ID */ -public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_PriceList_Version (Properties ctx, int M_PriceList_Version_ID, String trxName) + { + super (ctx, M_PriceList_Version_ID, trxName); + /** if (M_PriceList_Version_ID == 0) { setM_DiscountSchema_ID (0); + setM_PriceList_ID (0); + setM_PriceList_Version_ID (0); + setName (null); +// @#Date@ + setValidFrom (new Timestamp(System.currentTimeMillis())); +// @#Date@ +} */ + } + + /** Load Constructor */ + public X_M_PriceList_Version (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_PriceList_Version[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); + set_Value (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price List Version. + @param M_PriceList_Version_ID + Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) + { + if (M_PriceList_Version_ID < 1) + throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + } + + /** Get Price List Version. + @return Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Pricelist_Version_Base_ID AD_Reference_ID=188 */ public static final int M_PRICELIST_VERSION_BASE_ID_AD_Reference_ID=188; -/** Set Base Price List. -@param M_Pricelist_Version_Base_ID Source for Price list calculations */ -public void setM_Pricelist_Version_Base_ID (int M_Pricelist_Version_Base_ID) -{ -if (M_Pricelist_Version_Base_ID <= 0) set_Value ("M_Pricelist_Version_Base_ID", null); - else -set_Value ("M_Pricelist_Version_Base_ID", Integer.valueOf(M_Pricelist_Version_Base_ID)); -} -/** Get Base Price List. -@return Source for Price list calculations */ -public int getM_Pricelist_Version_Base_ID() -{ -Integer ii = (Integer)get_Value("M_Pricelist_Version_Base_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Pricelist_Version_Base_ID */ -public static final String COLUMNNAME_M_Pricelist_Version_Base_ID = "M_Pricelist_Version_Base_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Create. -@param ProcCreate Create */ -public void setProcCreate (String ProcCreate) -{ -if (ProcCreate != null && ProcCreate.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProcCreate = ProcCreate.substring(0,0); -} -set_Value ("ProcCreate", ProcCreate); -} -/** Get Create. -@return Create */ -public String getProcCreate() -{ -return (String)get_Value("ProcCreate"); -} -/** Column name ProcCreate */ -public static final String COLUMNNAME_ProcCreate = "ProcCreate"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -if (ValidFrom == null) throw new IllegalArgumentException ("ValidFrom is mandatory."); -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -} + /** Set Base Price List. + @param M_Pricelist_Version_Base_ID + Source for Price list calculations + */ + public void setM_Pricelist_Version_Base_ID (int M_Pricelist_Version_Base_ID) + { + if (M_Pricelist_Version_Base_ID <= 0) set_Value (COLUMNNAME_M_Pricelist_Version_Base_ID, null); + else + set_Value (COLUMNNAME_M_Pricelist_Version_Base_ID, Integer.valueOf(M_Pricelist_Version_Base_ID)); + } + + /** Get Base Price List. + @return Source for Price list calculations + */ + public int getM_Pricelist_Version_Base_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Pricelist_Version_Base_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Create. + @param ProcCreate Create */ + public void setProcCreate (String ProcCreate) + { + if (ProcCreate != null && ProcCreate.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProcCreate = ProcCreate.substring(0, 0); + } + set_Value (COLUMNNAME_ProcCreate, ProcCreate); + } + + /** Get Create. +@return Create */ + public String getProcCreate () + { + return (String)get_Value(COLUMNNAME_ProcCreate); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Product.java b/base/src/org/compiere/model/X_M_Product.java index 0245d46641..8765e6454a 100644 --- a/base/src/org/compiere/model/X_M_Product.java +++ b/base/src/org/compiere/model/X_M_Product.java @@ -1,1034 +1,1371 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product extends PO -{ -/** Standard Constructor -@param ctx context -@param M_Product_ID id -@param trxName transaction -*/ -public X_M_Product (Properties ctx, int M_Product_ID, String trxName) -{ -super (ctx, M_Product_ID, trxName); -/** if (M_Product_ID == 0) -{ -setC_TaxCategory_ID (0); -setC_UOM_ID (0); -setIsBOM (false); // N -setIsDropShip (false); -setIsExcludeAutoDelivery (false); // N -setIsInvoicePrintDetails (false); -setIsPickListPrintDetails (false); -setIsPurchased (true); // Y -setIsSelfService (true); // Y -setIsSold (true); // Y -setIsStocked (true); // Y -setIsSummary (false); -setIsVerified (false); // N -setIsWebStoreFeatured (false); -setM_AttributeSetInstance_ID (0); -setM_Product_Category_ID (0); -setM_Product_ID (0); -setName (null); -setProductType (null); // I -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product */ -public static final String Table_Name="M_Product"; - -/** AD_Table_ID=208 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Revenue Recognition. -@param C_RevenueRecognition_ID Method for recording revenue */ -public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) -{ -if (C_RevenueRecognition_ID <= 0) set_Value ("C_RevenueRecognition_ID", null); - else -set_Value ("C_RevenueRecognition_ID", Integer.valueOf(C_RevenueRecognition_ID)); -} -/** Get Revenue Recognition. -@return Method for recording revenue */ -public int getC_RevenueRecognition_ID() -{ -Integer ii = (Integer)get_Value("C_RevenueRecognition_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_RevenueRecognition_ID */ -public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; -/** Set Subscription Type. -@param C_SubscriptionType_ID Type of subscription */ -public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) -{ -if (C_SubscriptionType_ID <= 0) set_Value ("C_SubscriptionType_ID", null); - else -set_Value ("C_SubscriptionType_ID", Integer.valueOf(C_SubscriptionType_ID)); -} -/** Get Subscription Type. -@return Type of subscription */ -public int getC_SubscriptionType_ID() -{ -Integer ii = (Integer)get_Value("C_SubscriptionType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SubscriptionType_ID */ -public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_Value ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Classification. -@param Classification Classification for grouping */ -public void setClassification (String Classification) -{ -if (Classification != null && Classification.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Classification = Classification.substring(0,0); -} -set_Value ("Classification", Classification); -} -/** Get Classification. -@return Classification for grouping */ -public String getClassification() -{ -return (String)get_Value("Classification"); -} -/** Column name Classification */ -public static final String COLUMNNAME_Classification = "Classification"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Description URL. -@param DescriptionURL URL for the description */ -public void setDescriptionURL (String DescriptionURL) -{ -if (DescriptionURL != null && DescriptionURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DescriptionURL = DescriptionURL.substring(0,119); -} -set_Value ("DescriptionURL", DescriptionURL); -} -/** Get Description URL. -@return URL for the description */ -public String getDescriptionURL() -{ -return (String)get_Value("DescriptionURL"); -} -/** Column name DescriptionURL */ -public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; -/** Set Discontinued. -@param Discontinued This product is no longer available */ -public void setDiscontinued (boolean Discontinued) -{ -set_Value ("Discontinued", Boolean.valueOf(Discontinued)); -} -/** Get Discontinued. -@return This product is no longer available */ -public boolean isDiscontinued() -{ -Object oo = get_Value("Discontinued"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Discontinued */ -public static final String COLUMNNAME_Discontinued = "Discontinued"; -/** Set Discontinued by. -@param DiscontinuedBy Discontinued By */ -public void setDiscontinuedBy (Timestamp DiscontinuedBy) -{ -set_Value ("DiscontinuedBy", DiscontinuedBy); -} -/** Get Discontinued by. -@return Discontinued By */ -public Timestamp getDiscontinuedBy() -{ -return (Timestamp)get_Value("DiscontinuedBy"); -} -/** Column name DiscontinuedBy */ -public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; -/** Set Document Note. -@param DocumentNote Additional information for a Document */ -public void setDocumentNote (String DocumentNote) -{ -if (DocumentNote != null && DocumentNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DocumentNote = DocumentNote.substring(0,1999); -} -set_Value ("DocumentNote", DocumentNote); -} -/** Get Document Note. -@return Additional information for a Document */ -public String getDocumentNote() -{ -return (String)get_Value("DocumentNote"); -} -/** Column name DocumentNote */ -public static final String COLUMNNAME_DocumentNote = "DocumentNote"; -/** Set Guarantee Days. -@param GuaranteeDays Number of days the product is guaranteed or available */ -public void setGuaranteeDays (int GuaranteeDays) -{ -set_Value ("GuaranteeDays", Integer.valueOf(GuaranteeDays)); -} -/** Get Guarantee Days. -@return Number of days the product is guaranteed or available */ -public int getGuaranteeDays() -{ -Integer ii = (Integer)get_Value("GuaranteeDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GuaranteeDays */ -public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; -/** Set Min Guarantee Days. -@param GuaranteeDaysMin Minumum number of guarantee days */ -public void setGuaranteeDaysMin (int GuaranteeDaysMin) -{ -set_Value ("GuaranteeDaysMin", Integer.valueOf(GuaranteeDaysMin)); -} -/** Get Min Guarantee Days. -@return Minumum number of guarantee days */ -public int getGuaranteeDaysMin() -{ -Integer ii = (Integer)get_Value("GuaranteeDaysMin"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GuaranteeDaysMin */ -public static final String COLUMNNAME_GuaranteeDaysMin = "GuaranteeDaysMin"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Bill of Materials. -@param IsBOM Bill of Materials */ -public void setIsBOM (boolean IsBOM) -{ -set_Value ("IsBOM", Boolean.valueOf(IsBOM)); -} -/** Get Bill of Materials. -@return Bill of Materials */ -public boolean isBOM() -{ -Object oo = get_Value("IsBOM"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsBOM */ -public static final String COLUMNNAME_IsBOM = "IsBOM"; -/** Set Drop Shipment. -@param IsDropShip Drop Shipments are sent from the Vendor directly to the Customer */ -public void setIsDropShip (boolean IsDropShip) -{ -set_Value ("IsDropShip", Boolean.valueOf(IsDropShip)); -} -/** Get Drop Shipment. -@return Drop Shipments are sent from the Vendor directly to the Customer */ -public boolean isDropShip() -{ -Object oo = get_Value("IsDropShip"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDropShip */ -public static final String COLUMNNAME_IsDropShip = "IsDropShip"; -/** Set Exclude Auto Delivery. -@param IsExcludeAutoDelivery Exclude from automatic Delivery */ -public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery) -{ -set_Value ("IsExcludeAutoDelivery", Boolean.valueOf(IsExcludeAutoDelivery)); -} -/** Get Exclude Auto Delivery. -@return Exclude from automatic Delivery */ -public boolean isExcludeAutoDelivery() -{ -Object oo = get_Value("IsExcludeAutoDelivery"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsExcludeAutoDelivery */ -public static final String COLUMNNAME_IsExcludeAutoDelivery = "IsExcludeAutoDelivery"; -/** Set Print detail records on invoice . -@param IsInvoicePrintDetails Print detail BOM elements on the invoice */ -public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails) -{ -set_Value ("IsInvoicePrintDetails", Boolean.valueOf(IsInvoicePrintDetails)); -} -/** Get Print detail records on invoice . -@return Print detail BOM elements on the invoice */ -public boolean isInvoicePrintDetails() -{ -Object oo = get_Value("IsInvoicePrintDetails"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoicePrintDetails */ -public static final String COLUMNNAME_IsInvoicePrintDetails = "IsInvoicePrintDetails"; -/** Set Print detail records on pick list. -@param IsPickListPrintDetails Print detail BOM elements on the pick list */ -public void setIsPickListPrintDetails (boolean IsPickListPrintDetails) -{ -set_Value ("IsPickListPrintDetails", Boolean.valueOf(IsPickListPrintDetails)); -} -/** Get Print detail records on pick list. -@return Print detail BOM elements on the pick list */ -public boolean isPickListPrintDetails() -{ -Object oo = get_Value("IsPickListPrintDetails"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPickListPrintDetails */ -public static final String COLUMNNAME_IsPickListPrintDetails = "IsPickListPrintDetails"; -/** Set Purchased. -@param IsPurchased Organization purchases this product */ -public void setIsPurchased (boolean IsPurchased) -{ -set_Value ("IsPurchased", Boolean.valueOf(IsPurchased)); -} -/** Get Purchased. -@return Organization purchases this product */ -public boolean isPurchased() -{ -Object oo = get_Value("IsPurchased"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPurchased */ -public static final String COLUMNNAME_IsPurchased = "IsPurchased"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Sold. -@param IsSold Organization sells this product */ -public void setIsSold (boolean IsSold) -{ -set_Value ("IsSold", Boolean.valueOf(IsSold)); -} -/** Get Sold. -@return Organization sells this product */ -public boolean isSold() -{ -Object oo = get_Value("IsSold"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSold */ -public static final String COLUMNNAME_IsSold = "IsSold"; -/** Set Stocked. -@param IsStocked Organization stocks this product */ -public void setIsStocked (boolean IsStocked) -{ -set_Value ("IsStocked", Boolean.valueOf(IsStocked)); -} -/** Get Stocked. -@return Organization stocks this product */ -public boolean isStocked() -{ -Object oo = get_Value("IsStocked"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsStocked */ -public static final String COLUMNNAME_IsStocked = "IsStocked"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Verified. -@param IsVerified The BOM configuration has been verified */ -public void setIsVerified (boolean IsVerified) -{ -set_ValueNoCheck ("IsVerified", Boolean.valueOf(IsVerified)); -} -/** Get Verified. -@return The BOM configuration has been verified */ -public boolean isVerified() -{ -Object oo = get_Value("IsVerified"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsVerified */ -public static final String COLUMNNAME_IsVerified = "IsVerified"; -/** Set Featured in Web Store. -@param IsWebStoreFeatured If selected, the product is displayed in the inital or any empy search */ -public void setIsWebStoreFeatured (boolean IsWebStoreFeatured) -{ -set_Value ("IsWebStoreFeatured", Boolean.valueOf(IsWebStoreFeatured)); -} -/** Get Featured in Web Store. -@return If selected, the product is displayed in the inital or any empy search */ -public boolean isWebStoreFeatured() -{ -Object oo = get_Value("IsWebStoreFeatured"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsWebStoreFeatured */ -public static final String COLUMNNAME_IsWebStoreFeatured = "IsWebStoreFeatured"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Attribute Set. -@param M_AttributeSet_ID Product Attribute Set */ -public void setM_AttributeSet_ID (int M_AttributeSet_ID) -{ -if (M_AttributeSet_ID <= 0) set_Value ("M_AttributeSet_ID", null); - else -set_Value ("M_AttributeSet_ID", Integer.valueOf(M_AttributeSet_ID)); -} -/** Get Attribute Set. -@return Product Attribute Set */ -public int getM_AttributeSet_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSet_ID */ -public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; -/** Set Freight Category. -@param M_FreightCategory_ID Category of the Freight */ -public void setM_FreightCategory_ID (int M_FreightCategory_ID) -{ -if (M_FreightCategory_ID <= 0) set_Value ("M_FreightCategory_ID", null); - else -set_Value ("M_FreightCategory_ID", Integer.valueOf(M_FreightCategory_ID)); -} -/** Get Freight Category. -@return Category of the Freight */ -public int getM_FreightCategory_ID() -{ -Integer ii = (Integer)get_Value("M_FreightCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_FreightCategory_ID */ -public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID <= 0) set_Value ("M_Locator_ID", null); - else -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + +/** Generated Model for M_Product + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product extends PO implements I_M_Product, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product (Properties ctx, int M_Product_ID, String trxName) + { + super (ctx, M_Product_ID, trxName); + /** if (M_Product_ID == 0) { setC_TaxCategory_ID (0); + setC_UOM_ID (0); + setIsBOM (false); +// N + setIsDropShip (false); + setIsExcludeAutoDelivery (false); +// N + setIsInvoicePrintDetails (false); + setIsPickListPrintDetails (false); + setIsPurchased (true); +// Y + setIsSelfService (true); +// Y + setIsSold (true); +// Y + setIsStocked (true); +// Y + setIsSummary (false); + setIsVerified (false); +// N + setIsWebStoreFeatured (false); + setM_AttributeSetInstance_ID (0); + setM_Product_Category_ID (0); + setM_Product_ID (0); + setName (null); + setProductType (null); +// I + setValue (null); +} */ + } + + /** Load Constructor */ + public X_M_Product (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_RevenueRecognition getI_C_RevenueRecognition() throws Exception + { + 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 e; + } + return result; + } + + /** Set Revenue Recognition. + @param C_RevenueRecognition_ID + Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) + { + if (C_RevenueRecognition_ID <= 0) set_Value (COLUMNNAME_C_RevenueRecognition_ID, null); + else + set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); + } + + /** Get Revenue Recognition. + @return Method for recording revenue + */ + public int getC_RevenueRecognition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Subscription Type. + @param C_SubscriptionType_ID + Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) + { + if (C_SubscriptionType_ID <= 0) set_Value (COLUMNNAME_C_SubscriptionType_ID, null); + else + set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); + } + + /** Get Subscription Type. + @return Type of subscription + */ + public int getC_SubscriptionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubscriptionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Classification. + @param Classification + Classification for grouping + */ + public void setClassification (String Classification) + { + if (Classification != null && Classification.length() > 1) + { + log.warning("Length > 1 - truncated"); + Classification = Classification.substring(0, 0); + } + set_Value (COLUMNNAME_Classification, Classification); + } + + /** Get Classification. + @return Classification for grouping + */ + public String getClassification () + { + return (String)get_Value(COLUMNNAME_Classification); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Description URL. + @param DescriptionURL + URL for the description + */ + public void setDescriptionURL (String DescriptionURL) + { + if (DescriptionURL != null && DescriptionURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DescriptionURL = DescriptionURL.substring(0, 119); + } + set_Value (COLUMNNAME_DescriptionURL, DescriptionURL); + } + + /** Get Description URL. + @return URL for the description + */ + public String getDescriptionURL () + { + return (String)get_Value(COLUMNNAME_DescriptionURL); + } + + /** Set Discontinued. + @param Discontinued + This product is no longer available + */ + public void setDiscontinued (boolean Discontinued) + { + set_Value (COLUMNNAME_Discontinued, Boolean.valueOf(Discontinued)); + } + + /** Get Discontinued. + @return This product is no longer available + */ + public boolean isDiscontinued () + { + Object oo = get_Value(COLUMNNAME_Discontinued); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discontinued by. + @param DiscontinuedBy + Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy) + { + set_Value (COLUMNNAME_DiscontinuedBy, DiscontinuedBy); + } + + /** Get Discontinued by. + @return Discontinued By + */ + public Timestamp getDiscontinuedBy () + { + return (Timestamp)get_Value(COLUMNNAME_DiscontinuedBy); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 1999); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + /** Set Download URL. + @param DownloadURL + URL of the Download files + */ + public void setDownloadURL (String DownloadURL) + { + if (DownloadURL != null && DownloadURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DownloadURL = DownloadURL.substring(0, 119); + } + set_Value (COLUMNNAME_DownloadURL, DownloadURL); + } + + /** Get Download URL. + @return URL of the Download files + */ + public String getDownloadURL () + { + return (String)get_Value(COLUMNNAME_DownloadURL); + } + + /** Set Guarantee Days. + @param GuaranteeDays + Number of days the product is guaranteed or available + */ + public void setGuaranteeDays (int GuaranteeDays) + { + set_Value (COLUMNNAME_GuaranteeDays, Integer.valueOf(GuaranteeDays)); + } + + /** Get Guarantee Days. + @return Number of days the product is guaranteed or available + */ + public int getGuaranteeDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Min Guarantee Days. + @param GuaranteeDaysMin + Minumum number of guarantee days + */ + public void setGuaranteeDaysMin (int GuaranteeDaysMin) + { + set_Value (COLUMNNAME_GuaranteeDaysMin, Integer.valueOf(GuaranteeDaysMin)); + } + + /** Get Min Guarantee Days. + @return Minumum number of guarantee days + */ + public int getGuaranteeDaysMin () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDaysMin); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + /** Set Bill of Materials. + @param IsBOM + Bill of Materials + */ + public void setIsBOM (boolean IsBOM) + { + set_Value (COLUMNNAME_IsBOM, Boolean.valueOf(IsBOM)); + } + + /** Get Bill of Materials. + @return Bill of Materials + */ + public boolean isBOM () + { + Object oo = get_Value(COLUMNNAME_IsBOM); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Drop Shipment. + @param IsDropShip + Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip) + { + set_Value (COLUMNNAME_IsDropShip, Boolean.valueOf(IsDropShip)); + } + + /** Get Drop Shipment. + @return Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip () + { + Object oo = get_Value(COLUMNNAME_IsDropShip); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude Auto Delivery. + @param IsExcludeAutoDelivery + Exclude from automatic Delivery + */ + public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery) + { + set_Value (COLUMNNAME_IsExcludeAutoDelivery, Boolean.valueOf(IsExcludeAutoDelivery)); + } + + /** Get Exclude Auto Delivery. + @return Exclude from automatic Delivery + */ + public boolean isExcludeAutoDelivery () + { + Object oo = get_Value(COLUMNNAME_IsExcludeAutoDelivery); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Print detail records on invoice . + @param IsInvoicePrintDetails + Print detail BOM elements on the invoice + */ + public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails) + { + set_Value (COLUMNNAME_IsInvoicePrintDetails, Boolean.valueOf(IsInvoicePrintDetails)); + } + + /** Get Print detail records on invoice . + @return Print detail BOM elements on the invoice + */ + public boolean isInvoicePrintDetails () + { + Object oo = get_Value(COLUMNNAME_IsInvoicePrintDetails); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Print detail records on pick list. + @param IsPickListPrintDetails + Print detail BOM elements on the pick list + */ + public void setIsPickListPrintDetails (boolean IsPickListPrintDetails) + { + set_Value (COLUMNNAME_IsPickListPrintDetails, Boolean.valueOf(IsPickListPrintDetails)); + } + + /** Get Print detail records on pick list. + @return Print detail BOM elements on the pick list + */ + public boolean isPickListPrintDetails () + { + Object oo = get_Value(COLUMNNAME_IsPickListPrintDetails); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Purchased. + @param IsPurchased + Organization purchases this product + */ + public void setIsPurchased (boolean IsPurchased) + { + set_Value (COLUMNNAME_IsPurchased, Boolean.valueOf(IsPurchased)); + } + + /** Get Purchased. + @return Organization purchases this product + */ + public boolean isPurchased () + { + Object oo = get_Value(COLUMNNAME_IsPurchased); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sold. + @param IsSold + Organization sells this product + */ + public void setIsSold (boolean IsSold) + { + set_Value (COLUMNNAME_IsSold, Boolean.valueOf(IsSold)); + } + + /** Get Sold. + @return Organization sells this product + */ + public boolean isSold () + { + Object oo = get_Value(COLUMNNAME_IsSold); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Stocked. + @param IsStocked + Organization stocks this product + */ + public void setIsStocked (boolean IsStocked) + { + set_Value (COLUMNNAME_IsStocked, Boolean.valueOf(IsStocked)); + } + + /** Get Stocked. + @return Organization stocks this product + */ + public boolean isStocked () + { + Object oo = get_Value(COLUMNNAME_IsStocked); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Verified. + @param IsVerified + The BOM configuration has been verified + */ + public void setIsVerified (boolean IsVerified) + { + set_ValueNoCheck (COLUMNNAME_IsVerified, Boolean.valueOf(IsVerified)); + } + + /** Get Verified. + @return The BOM configuration has been verified + */ + public boolean isVerified () + { + Object oo = get_Value(COLUMNNAME_IsVerified); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Featured in Web Store. + @param IsWebStoreFeatured + If selected, the product is displayed in the inital or any empy search + */ + public void setIsWebStoreFeatured (boolean IsWebStoreFeatured) + { + set_Value (COLUMNNAME_IsWebStoreFeatured, Boolean.valueOf(IsWebStoreFeatured)); + } + + /** Get Featured in Web Store. + @return If selected, the product is displayed in the inital or any empy search + */ + public boolean isWebStoreFeatured () + { + Object oo = get_Value(COLUMNNAME_IsWebStoreFeatured); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_AttributeSet getI_M_AttributeSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Attribute Set. + @param M_AttributeSet_ID + Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID) + { + if (M_AttributeSet_ID <= 0) set_Value (COLUMNNAME_M_AttributeSet_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + } + + /** Get Attribute Set. + @return Product Attribute Set + */ + public int getM_AttributeSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_FreightCategory getI_M_FreightCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Freight Category. + @param M_FreightCategory_ID + Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID) + { + if (M_FreightCategory_ID <= 0) set_Value (COLUMNNAME_M_FreightCategory_ID, null); + else + set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); + } + + /** Get Freight Category. + @return Category of the Freight + */ + public int getM_FreightCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FreightCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID <= 0) set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Product_Category_ID AD_Reference_ID=163 */ public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID < 1) throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** ProductType AD_Reference_ID=270 */ -public static final int PRODUCTTYPE_AD_Reference_ID=270; -/** Expense type = E */ -public static final String PRODUCTTYPE_ExpenseType = "E"; -/** Item = I */ -public static final String PRODUCTTYPE_Item = "I"; -/** Online = O */ -public static final String PRODUCTTYPE_Online = "O"; -/** Resource = R */ -public static final String PRODUCTTYPE_Resource = "R"; -/** Service = S */ +public static final int PRODUCTTYPE_AD_Reference_ID=270;/** Expense type = E */ +public static final String PRODUCTTYPE_ExpenseType = "E";/** Item = I */ +public static final String PRODUCTTYPE_Item = "I";/** Online = O */ +public static final String PRODUCTTYPE_Online = "O";/** Resource = R */ +public static final String PRODUCTTYPE_Resource = "R";/** Service = S */ public static final String PRODUCTTYPE_Service = "S"; -/** Set Product Type. -@param ProductType Type of product */ -public void setProductType (String ProductType) -{ -if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory"); -if (ProductType.equals("E") || ProductType.equals("I") || ProductType.equals("O") || ProductType.equals("R") || ProductType.equals("S")); - else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - E - I - O - R - S"); -if (ProductType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ProductType = ProductType.substring(0,0); -} -set_Value ("ProductType", ProductType); -} -/** Get Product Type. -@return Type of product */ -public String getProductType() -{ -return (String)get_Value("ProductType"); -} -/** Column name ProductType */ -public static final String COLUMNNAME_ProductType = "ProductType"; -/** Set Mail Template. -@param R_MailText_ID Text templates for mailings */ -public void setR_MailText_ID (int R_MailText_ID) -{ -if (R_MailText_ID <= 0) set_Value ("R_MailText_ID", null); - else -set_Value ("R_MailText_ID", Integer.valueOf(R_MailText_ID)); -} -/** Get Mail Template. -@return Text templates for mailings */ -public int getR_MailText_ID() -{ -Integer ii = (Integer)get_Value("R_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_MailText_ID */ -public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; -/** Set SKU. -@param SKU Stock Keeping Unit */ -public void setSKU (String SKU) -{ -if (SKU != null && SKU.length() > 30) -{ -log.warning("Length > 30 - truncated"); -SKU = SKU.substring(0,29); -} -set_Value ("SKU", SKU); -} -/** Get SKU. -@return Stock Keeping Unit */ -public String getSKU() -{ -return (String)get_Value("SKU"); -} -/** Column name SKU */ -public static final String COLUMNNAME_SKU = "SKU"; -/** Set Expense Type. -@param S_ExpenseType_ID Expense report type */ -public void setS_ExpenseType_ID (int S_ExpenseType_ID) -{ -if (S_ExpenseType_ID <= 0) set_ValueNoCheck ("S_ExpenseType_ID", null); - else -set_ValueNoCheck ("S_ExpenseType_ID", Integer.valueOf(S_ExpenseType_ID)); -} -/** Get Expense Type. -@return Expense report type */ -public int getS_ExpenseType_ID() -{ -Integer ii = (Integer)get_Value("S_ExpenseType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ExpenseType_ID */ -public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; -/** Set Resource. -@param S_Resource_ID Resource */ -public void setS_Resource_ID (int S_Resource_ID) -{ -if (S_Resource_ID <= 0) set_ValueNoCheck ("S_Resource_ID", null); - else -set_ValueNoCheck ("S_Resource_ID", Integer.valueOf(S_Resource_ID)); -} -/** Get Resource. -@return Resource */ -public int getS_Resource_ID() -{ -Integer ii = (Integer)get_Value("S_Resource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_Resource_ID */ -public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + /** Set Product Type. + @param ProductType + Type of product + */ + public void setProductType (String ProductType) + { +if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory");if (ProductType.equals("E") || ProductType.equals("I") || ProductType.equals("O") || ProductType.equals("R") || ProductType.equals("S")); else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - E - I - O - R - S"); if (ProductType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProductType = ProductType.substring(0, 0); + } + set_Value (COLUMNNAME_ProductType, ProductType); + } + + /** Get Product Type. + @return Type of product + */ + public String getProductType () + { + return (String)get_Value(COLUMNNAME_ProductType); + } + + public I_R_MailText getI_R_MailText() throws Exception + { + 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 e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID <= 0) set_Value (COLUMNNAME_R_MailText_ID, null); + else + set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 29); + } + set_Value (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } + + public I_S_ExpenseType getI_S_ExpenseType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Expense Type. + @param S_ExpenseType_ID + Expense report type + */ + public void setS_ExpenseType_ID (int S_ExpenseType_ID) + { + if (S_ExpenseType_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID)); + } + + /** Get Expense Type. + @return Expense report type + */ + public int getS_ExpenseType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ExpenseType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Resource getI_S_Resource() throws Exception + { + 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 e; + } + return result; + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID <= 0) set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_Value ("SalesRep_ID", null); - else -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Shelf Depth. -@param ShelfDepth Shelf depth required */ -public void setShelfDepth (int ShelfDepth) -{ -set_Value ("ShelfDepth", Integer.valueOf(ShelfDepth)); -} -/** Get Shelf Depth. -@return Shelf depth required */ -public int getShelfDepth() -{ -Integer ii = (Integer)get_Value("ShelfDepth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfDepth */ -public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; -/** Set Shelf Height. -@param ShelfHeight Shelf height required */ -public void setShelfHeight (int ShelfHeight) -{ -set_Value ("ShelfHeight", Integer.valueOf(ShelfHeight)); -} -/** Get Shelf Height. -@return Shelf height required */ -public int getShelfHeight() -{ -Integer ii = (Integer)get_Value("ShelfHeight"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfHeight */ -public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; -/** Set Shelf Width. -@param ShelfWidth Shelf width required */ -public void setShelfWidth (int ShelfWidth) -{ -set_Value ("ShelfWidth", Integer.valueOf(ShelfWidth)); -} -/** Get Shelf Width. -@return Shelf width required */ -public int getShelfWidth() -{ -Integer ii = (Integer)get_Value("ShelfWidth"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfWidth */ -public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -/** Set Units Per Pallet. -@param UnitsPerPallet Units Per Pallet */ -public void setUnitsPerPallet (int UnitsPerPallet) -{ -set_Value ("UnitsPerPallet", Integer.valueOf(UnitsPerPallet)); -} -/** Get Units Per Pallet. -@return Units Per Pallet */ -public int getUnitsPerPallet() -{ -Integer ii = (Integer)get_Value("UnitsPerPallet"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name UnitsPerPallet */ -public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Version No. -@param VersionNo Version Number */ -public void setVersionNo (String VersionNo) -{ -if (VersionNo != null && VersionNo.length() > 20) -{ -log.warning("Length > 20 - truncated"); -VersionNo = VersionNo.substring(0,19); -} -set_Value ("VersionNo", VersionNo); -} -/** Get Version No. -@return Version Number */ -public String getVersionNo() -{ -return (String)get_Value("VersionNo"); -} -/** Column name VersionNo */ -public static final String COLUMNNAME_VersionNo = "VersionNo"; -/** Set Volume. -@param Volume Volume of a product */ -public void setVolume (BigDecimal Volume) -{ -set_Value ("Volume", Volume); -} -/** Get Volume. -@return Volume of a product */ -public BigDecimal getVolume() -{ -BigDecimal bd = (BigDecimal)get_Value("Volume"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Volume */ -public static final String COLUMNNAME_Volume = "Volume"; -/** Set Weight. -@param Weight Weight of a product */ -public void setWeight (BigDecimal Weight) -{ -set_Value ("Weight", Weight); -} -/** Get Weight. -@return Weight of a product */ -public BigDecimal getWeight() -{ -BigDecimal bd = (BigDecimal)get_Value("Weight"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Weight */ -public static final String COLUMNNAME_Weight = "Weight"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_Value (COLUMNNAME_SalesRep_ID, null); + else + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shelf Depth. + @param ShelfDepth + Shelf depth required + */ + public void setShelfDepth (int ShelfDepth) + { + set_Value (COLUMNNAME_ShelfDepth, Integer.valueOf(ShelfDepth)); + } + + /** Get Shelf Depth. + @return Shelf depth required + */ + public int getShelfDepth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfDepth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shelf Height. + @param ShelfHeight + Shelf height required + */ + public void setShelfHeight (int ShelfHeight) + { + set_Value (COLUMNNAME_ShelfHeight, Integer.valueOf(ShelfHeight)); + } + + /** Get Shelf Height. + @return Shelf height required + */ + public int getShelfHeight () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfHeight); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shelf Width. + @param ShelfWidth + Shelf width required + */ + public void setShelfWidth (int ShelfWidth) + { + set_Value (COLUMNNAME_ShelfWidth, Integer.valueOf(ShelfWidth)); + } + + /** Get Shelf Width. + @return Shelf width required + */ + public int getShelfWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Units Per Pallet. + @param UnitsPerPallet + Units Per Pallet + */ + public void setUnitsPerPallet (int UnitsPerPallet) + { + set_Value (COLUMNNAME_UnitsPerPallet, Integer.valueOf(UnitsPerPallet)); + } + + /** Get Units Per Pallet. + @return Units Per Pallet + */ + public int getUnitsPerPallet () + { + Integer ii = (Integer)get_Value(COLUMNNAME_UnitsPerPallet); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Version No. + @param VersionNo + Version Number + */ + public void setVersionNo (String VersionNo) + { + if (VersionNo != null && VersionNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + VersionNo = VersionNo.substring(0, 19); + } + set_Value (COLUMNNAME_VersionNo, VersionNo); + } + + /** Get Version No. + @return Version Number + */ + public String getVersionNo () + { + return (String)get_Value(COLUMNNAME_VersionNo); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (BigDecimal Volume) + { + set_Value (COLUMNNAME_Volume, Volume); + } + + /** Get Volume. + @return Volume of a product + */ + public BigDecimal getVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (BigDecimal Weight) + { + set_Value (COLUMNNAME_Weight, Weight); + } + + /** Get Weight. + @return Weight of a product + */ + public BigDecimal getWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ProductDownload.java b/base/src/org/compiere/model/X_M_ProductDownload.java index 382713cb4f..738c6102dc 100644 --- a/base/src/org/compiere/model/X_M_ProductDownload.java +++ b/base/src/org/compiere/model/X_M_ProductDownload.java @@ -1,171 +1,176 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ProductDownload - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ProductDownload extends PO + +/** Generated Model for M_ProductDownload + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ProductDownload extends PO implements I_M_ProductDownload, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ProductDownload_ID id -@param trxName transaction -*/ -public X_M_ProductDownload (Properties ctx, int M_ProductDownload_ID, String trxName) -{ -super (ctx, M_ProductDownload_ID, trxName); -/** if (M_ProductDownload_ID == 0) -{ -setDownloadURL (null); -setM_ProductDownload_ID (0); -setM_Product_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ProductDownload (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ProductDownload */ -public static final String Table_Name="M_ProductDownload"; - -/** AD_Table_ID=777 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ProductDownload[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Download URL. -@param DownloadURL URL of the Download files */ -public void setDownloadURL (String DownloadURL) -{ -if (DownloadURL == null) throw new IllegalArgumentException ("DownloadURL is mandatory."); -if (DownloadURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DownloadURL = DownloadURL.substring(0,119); -} -set_Value ("DownloadURL", DownloadURL); -} -/** Get Download URL. -@return URL of the Download files */ -public String getDownloadURL() -{ -return (String)get_Value("DownloadURL"); -} -/** Column name DownloadURL */ -public static final String COLUMNNAME_DownloadURL = "DownloadURL"; -/** Set Product Download. -@param M_ProductDownload_ID Product downloads */ -public void setM_ProductDownload_ID (int M_ProductDownload_ID) -{ -if (M_ProductDownload_ID < 1) throw new IllegalArgumentException ("M_ProductDownload_ID is mandatory."); -set_ValueNoCheck ("M_ProductDownload_ID", Integer.valueOf(M_ProductDownload_ID)); -} -/** Get Product Download. -@return Product downloads */ -public int getM_ProductDownload_ID() -{ -Integer ii = (Integer)get_Value("M_ProductDownload_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductDownload_ID */ -public static final String COLUMNNAME_M_ProductDownload_ID = "M_ProductDownload_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ProductDownload (Properties ctx, int M_ProductDownload_ID, String trxName) + { + super (ctx, M_ProductDownload_ID, trxName); + /** if (M_ProductDownload_ID == 0) { setDownloadURL (null); + setM_ProductDownload_ID (0); + setM_Product_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_ProductDownload (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ProductDownload[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Download URL. + @param DownloadURL + URL of the Download files + */ + public void setDownloadURL (String DownloadURL) + { + if (DownloadURL == null) + throw new IllegalArgumentException ("DownloadURL is mandatory."); + if (DownloadURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DownloadURL = DownloadURL.substring(0, 119); + } + set_Value (COLUMNNAME_DownloadURL, DownloadURL); + } + + /** Get Download URL. + @return URL of the Download files + */ + public String getDownloadURL () + { + return (String)get_Value(COLUMNNAME_DownloadURL); + } + + /** Set Product Download. + @param M_ProductDownload_ID + Product downloads + */ + public void setM_ProductDownload_ID (int M_ProductDownload_ID) + { + if (M_ProductDownload_ID < 1) + throw new IllegalArgumentException ("M_ProductDownload_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductDownload_ID, Integer.valueOf(M_ProductDownload_ID)); + } + + /** Get Product Download. + @return Product downloads + */ + public int getM_ProductDownload_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductDownload_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ProductOperation.java b/base/src/org/compiere/model/X_M_ProductOperation.java index 7b4898567f..c9dab10e5a 100644 --- a/base/src/org/compiere/model/X_M_ProductOperation.java +++ b/base/src/org/compiere/model/X_M_ProductOperation.java @@ -1,236 +1,255 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ProductOperation - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ProductOperation extends PO + +/** Generated Model for M_ProductOperation + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ProductOperation extends PO implements I_M_ProductOperation, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ProductOperation_ID id -@param trxName transaction -*/ -public X_M_ProductOperation (Properties ctx, int M_ProductOperation_ID, String trxName) -{ -super (ctx, M_ProductOperation_ID, trxName); -/** if (M_ProductOperation_ID == 0) -{ -setM_ProductOperation_ID (0); -setM_Product_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ProductOperation (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ProductOperation */ -public static final String Table_Name="M_ProductOperation"; - -/** AD_Table_ID=796 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ProductOperation[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Product Operation. -@param M_ProductOperation_ID Product Manufacturing Operation */ -public void setM_ProductOperation_ID (int M_ProductOperation_ID) -{ -if (M_ProductOperation_ID < 1) throw new IllegalArgumentException ("M_ProductOperation_ID is mandatory."); -set_ValueNoCheck ("M_ProductOperation_ID", Integer.valueOf(M_ProductOperation_ID)); -} -/** Get Product Operation. -@return Product Manufacturing Operation */ -public int getM_ProductOperation_ID() -{ -Integer ii = (Integer)get_Value("M_ProductOperation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductOperation_ID */ -public static final String COLUMNNAME_M_ProductOperation_ID = "M_ProductOperation_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Setup Time. -@param SetupTime Setup time before starting Production */ -public void setSetupTime (BigDecimal SetupTime) -{ -set_Value ("SetupTime", SetupTime); -} -/** Get Setup Time. -@return Setup time before starting Production */ -public BigDecimal getSetupTime() -{ -BigDecimal bd = (BigDecimal)get_Value("SetupTime"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SetupTime */ -public static final String COLUMNNAME_SetupTime = "SetupTime"; -/** Set Teardown Time. -@param TeardownTime Time at the end of the operation */ -public void setTeardownTime (BigDecimal TeardownTime) -{ -set_Value ("TeardownTime", TeardownTime); -} -/** Get Teardown Time. -@return Time at the end of the operation */ -public BigDecimal getTeardownTime() -{ -BigDecimal bd = (BigDecimal)get_Value("TeardownTime"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TeardownTime */ -public static final String COLUMNNAME_TeardownTime = "TeardownTime"; -/** Set Runtime per Unit. -@param UnitRuntime Time to produce one unit */ -public void setUnitRuntime (BigDecimal UnitRuntime) -{ -set_Value ("UnitRuntime", UnitRuntime); -} -/** Get Runtime per Unit. -@return Time to produce one unit */ -public BigDecimal getUnitRuntime() -{ -BigDecimal bd = (BigDecimal)get_Value("UnitRuntime"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name UnitRuntime */ -public static final String COLUMNNAME_UnitRuntime = "UnitRuntime"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ProductOperation (Properties ctx, int M_ProductOperation_ID, String trxName) + { + super (ctx, M_ProductOperation_ID, trxName); + /** if (M_ProductOperation_ID == 0) { setM_ProductOperation_ID (0); + setM_Product_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_ProductOperation (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ProductOperation[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Product Operation. + @param M_ProductOperation_ID + Product Manufacturing Operation + */ + public void setM_ProductOperation_ID (int M_ProductOperation_ID) + { + if (M_ProductOperation_ID < 1) + throw new IllegalArgumentException ("M_ProductOperation_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductOperation_ID, Integer.valueOf(M_ProductOperation_ID)); + } + + /** Get Product Operation. + @return Product Manufacturing Operation + */ + public int getM_ProductOperation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductOperation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Setup Time. + @param SetupTime + Setup time before starting Production + */ + public void setSetupTime (BigDecimal SetupTime) + { + set_Value (COLUMNNAME_SetupTime, SetupTime); + } + + /** Get Setup Time. + @return Setup time before starting Production + */ + public BigDecimal getSetupTime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SetupTime); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Teardown Time. + @param TeardownTime + Time at the end of the operation + */ + public void setTeardownTime (BigDecimal TeardownTime) + { + set_Value (COLUMNNAME_TeardownTime, TeardownTime); + } + + /** Get Teardown Time. + @return Time at the end of the operation + */ + public BigDecimal getTeardownTime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TeardownTime); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Runtime per Unit. + @param UnitRuntime + Time to produce one unit + */ + public void setUnitRuntime (BigDecimal UnitRuntime) + { + set_Value (COLUMNNAME_UnitRuntime, UnitRuntime); + } + + /** Get Runtime per Unit. + @return Time to produce one unit + */ + public BigDecimal getUnitRuntime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitRuntime); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ProductPrice.java b/base/src/org/compiere/model/X_M_ProductPrice.java index f64ada4a85..b70df66f59 100644 --- a/base/src/org/compiere/model/X_M_ProductPrice.java +++ b/base/src/org/compiere/model/X_M_ProductPrice.java @@ -1,177 +1,203 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ProductPrice - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ProductPrice extends PO + +/** Generated Model for M_ProductPrice + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ProductPrice extends PO implements I_M_ProductPrice, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ProductPrice_ID id -@param trxName transaction -*/ -public X_M_ProductPrice (Properties ctx, int M_ProductPrice_ID, String trxName) -{ -super (ctx, M_ProductPrice_ID, trxName); -/** if (M_ProductPrice_ID == 0) -{ -setM_PriceList_Version_ID (0); -setM_Product_ID (0); -setPriceLimit (Env.ZERO); -setPriceList (Env.ZERO); -setPriceStd (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ProductPrice (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ProductPrice */ -public static final String Table_Name="M_ProductPrice"; - -/** AD_Table_ID=251 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ProductPrice[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Price List Version. -@param M_PriceList_Version_ID Identifies a unique instance of a Price List */ -public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) -{ -if (M_PriceList_Version_ID < 1) throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); -set_ValueNoCheck ("M_PriceList_Version_ID", Integer.valueOf(M_PriceList_Version_ID)); -} -/** Get Price List Version. -@return Identifies a unique instance of a Price List */ -public int getM_PriceList_Version_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_Version_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_Version_ID */ -public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Limit Price. -@param PriceLimit Lowest price for a product */ -public void setPriceLimit (BigDecimal PriceLimit) -{ -if (PriceLimit == null) throw new IllegalArgumentException ("PriceLimit is mandatory."); -set_Value ("PriceLimit", PriceLimit); -} -/** Get Limit Price. -@return Lowest price for a product */ -public BigDecimal getPriceLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimit */ -public static final String COLUMNNAME_PriceLimit = "PriceLimit"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -if (PriceList == null) throw new IllegalArgumentException ("PriceList is mandatory."); -set_Value ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set Standard Price. -@param PriceStd Standard Price */ -public void setPriceStd (BigDecimal PriceStd) -{ -if (PriceStd == null) throw new IllegalArgumentException ("PriceStd is mandatory."); -set_Value ("PriceStd", PriceStd); -} -/** Get Standard Price. -@return Standard Price */ -public BigDecimal getPriceStd() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceStd"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceStd */ -public static final String COLUMNNAME_PriceStd = "PriceStd"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ProductPrice (Properties ctx, int M_ProductPrice_ID, String trxName) + { + super (ctx, M_ProductPrice_ID, trxName); + /** if (M_ProductPrice_ID == 0) { setM_PriceList_Version_ID (0); + setM_Product_ID (0); + setPriceLimit (Env.ZERO); + setPriceList (Env.ZERO); + setPriceStd (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_ProductPrice (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ProductPrice[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List Version. + @param M_PriceList_Version_ID + Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) + { + if (M_PriceList_Version_ID < 1) + throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + } + + /** Get Price List Version. + @return Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + if (PriceLimit == null) + throw new IllegalArgumentException ("PriceLimit is mandatory."); + set_Value (COLUMNNAME_PriceLimit, PriceLimit); + } + + /** Get Limit Price. + @return Lowest price for a product + */ + public BigDecimal getPriceLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + if (PriceList == null) + throw new IllegalArgumentException ("PriceList is mandatory."); + set_Value (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Price. + @param PriceStd + Standard Price + */ + public void setPriceStd (BigDecimal PriceStd) + { + if (PriceStd == null) + throw new IllegalArgumentException ("PriceStd is mandatory."); + set_Value (COLUMNNAME_PriceStd, PriceStd); + } + + /** Get Standard Price. + @return Standard Price + */ + public BigDecimal getPriceStd () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 559a62bd4f..b2a9a99b9f 100644 --- a/base/src/org/compiere/model/X_M_Product_Acct.java +++ b/base/src/org/compiere/model/X_M_Product_Acct.java @@ -1,293 +1,360 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product_Acct extends PO + +/** Generated Model for M_Product_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product_Acct extends PO implements I_M_Product_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Product_Acct_ID id -@param trxName transaction -*/ -public X_M_Product_Acct (Properties ctx, int M_Product_Acct_ID, String trxName) -{ -super (ctx, M_Product_Acct_ID, trxName); -/** if (M_Product_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setM_Product_ID (0); -setP_Asset_Acct (0); -setP_COGS_Acct (0); -setP_CostAdjustment_Acct (0); -setP_Expense_Acct (0); -setP_InventoryClearing_Acct (0); -setP_InvoicePriceVariance_Acct (0); -setP_PurchasePriceVariance_Acct (0); -setP_Revenue_Acct (0); -setP_TradeDiscountGrant_Acct (0); -setP_TradeDiscountRec_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product_Acct */ -public static final String Table_Name="M_Product_Acct"; - -/** AD_Table_ID=273 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Product Asset. -@param P_Asset_Acct Account for Product Asset (Inventory) */ -public void setP_Asset_Acct (int P_Asset_Acct) -{ -set_Value ("P_Asset_Acct", Integer.valueOf(P_Asset_Acct)); -} -/** Get Product Asset. -@return Account for Product Asset (Inventory) */ -public int getP_Asset_Acct() -{ -Integer ii = (Integer)get_Value("P_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Asset_Acct */ -public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; -/** Set Product COGS. -@param P_COGS_Acct Account for Cost of Goods Sold */ -public void setP_COGS_Acct (int P_COGS_Acct) -{ -set_Value ("P_COGS_Acct", Integer.valueOf(P_COGS_Acct)); -} -/** Get Product COGS. -@return Account for Cost of Goods Sold */ -public int getP_COGS_Acct() -{ -Integer ii = (Integer)get_Value("P_COGS_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_COGS_Acct */ -public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; -/** Set Cost Adjustment. -@param P_CostAdjustment_Acct Product Cost Adjustment Account */ -public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct) -{ -set_Value ("P_CostAdjustment_Acct", Integer.valueOf(P_CostAdjustment_Acct)); -} -/** Get Cost Adjustment. -@return Product Cost Adjustment Account */ -public int getP_CostAdjustment_Acct() -{ -Integer ii = (Integer)get_Value("P_CostAdjustment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_CostAdjustment_Acct */ -public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; -/** Set Product Expense. -@param P_Expense_Acct Account for Product Expense */ -public void setP_Expense_Acct (int P_Expense_Acct) -{ -set_Value ("P_Expense_Acct", Integer.valueOf(P_Expense_Acct)); -} -/** Get Product Expense. -@return Account for Product Expense */ -public int getP_Expense_Acct() -{ -Integer ii = (Integer)get_Value("P_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Expense_Acct */ -public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; -/** Set Inventory Clearing. -@param P_InventoryClearing_Acct Product Inventory Clearing Account */ -public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct) -{ -set_Value ("P_InventoryClearing_Acct", Integer.valueOf(P_InventoryClearing_Acct)); -} -/** Get Inventory Clearing. -@return Product Inventory Clearing Account */ -public int getP_InventoryClearing_Acct() -{ -Integer ii = (Integer)get_Value("P_InventoryClearing_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_InventoryClearing_Acct */ -public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; -/** Set Invoice Price Variance. -@param P_InvoicePriceVariance_Acct Difference between Costs and Invoice Price (IPV) */ -public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct) -{ -set_Value ("P_InvoicePriceVariance_Acct", Integer.valueOf(P_InvoicePriceVariance_Acct)); -} -/** Get Invoice Price Variance. -@return Difference between Costs and Invoice Price (IPV) */ -public int getP_InvoicePriceVariance_Acct() -{ -Integer ii = (Integer)get_Value("P_InvoicePriceVariance_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_InvoicePriceVariance_Acct */ -public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; -/** Set Purchase Price Variance. -@param P_PurchasePriceVariance_Acct Difference between Standard Cost and Purchase Price (PPV) */ -public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct) -{ -set_Value ("P_PurchasePriceVariance_Acct", Integer.valueOf(P_PurchasePriceVariance_Acct)); -} -/** Get Purchase Price Variance. -@return Difference between Standard Cost and Purchase Price (PPV) */ -public int getP_PurchasePriceVariance_Acct() -{ -Integer ii = (Integer)get_Value("P_PurchasePriceVariance_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_PurchasePriceVariance_Acct */ -public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; -/** Set Product Revenue. -@param P_Revenue_Acct Account for Product Revenue (Sales Account) */ -public void setP_Revenue_Acct (int P_Revenue_Acct) -{ -set_Value ("P_Revenue_Acct", Integer.valueOf(P_Revenue_Acct)); -} -/** Get Product Revenue. -@return Account for Product Revenue (Sales Account) */ -public int getP_Revenue_Acct() -{ -Integer ii = (Integer)get_Value("P_Revenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Revenue_Acct */ -public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; -/** Set Trade Discount Granted. -@param P_TradeDiscountGrant_Acct Trade Discount Granted Account */ -public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct) -{ -set_Value ("P_TradeDiscountGrant_Acct", Integer.valueOf(P_TradeDiscountGrant_Acct)); -} -/** Get Trade Discount Granted. -@return Trade Discount Granted Account */ -public int getP_TradeDiscountGrant_Acct() -{ -Integer ii = (Integer)get_Value("P_TradeDiscountGrant_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_TradeDiscountGrant_Acct */ -public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; -/** Set Trade Discount Received. -@param P_TradeDiscountRec_Acct Trade Discount Receivable Account */ -public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct) -{ -set_Value ("P_TradeDiscountRec_Acct", Integer.valueOf(P_TradeDiscountRec_Acct)); -} -/** Get Trade Discount Received. -@return Trade Discount Receivable Account */ -public int getP_TradeDiscountRec_Acct() -{ -Integer ii = (Integer)get_Value("P_TradeDiscountRec_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_TradeDiscountRec_Acct */ -public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product_Acct (Properties ctx, int M_Product_Acct_ID, String trxName) + { + super (ctx, M_Product_Acct_ID, trxName); + /** if (M_Product_Acct_ID == 0) { setC_AcctSchema_ID (0); + setM_Product_ID (0); + setP_Asset_Acct (0); + setP_COGS_Acct (0); + setP_CostAdjustment_Acct (0); + setP_Expense_Acct (0); + setP_InventoryClearing_Acct (0); + setP_InvoicePriceVariance_Acct (0); + setP_PurchasePriceVariance_Acct (0); + setP_Revenue_Acct (0); + setP_TradeDiscountGrant_Acct (0); + setP_TradeDiscountRec_Acct (0); +} */ + } + + /** Load Constructor */ + public X_M_Product_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getI_M_Product() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Asset. + @param P_Asset_Acct + Account for Product Asset (Inventory) + */ + public void setP_Asset_Acct (int P_Asset_Acct) + { + set_Value (COLUMNNAME_P_Asset_Acct, Integer.valueOf(P_Asset_Acct)); + } + + /** Get Product Asset. + @return Account for Product Asset (Inventory) + */ + public int getP_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product COGS. + @param P_COGS_Acct + Account for Cost of Goods Sold + */ + public void setP_COGS_Acct (int P_COGS_Acct) + { + set_Value (COLUMNNAME_P_COGS_Acct, Integer.valueOf(P_COGS_Acct)); + } + + /** Get Product COGS. + @return Account for Cost of Goods Sold + */ + public int getP_COGS_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_COGS_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost Adjustment. + @param P_CostAdjustment_Acct + Product Cost Adjustment Account + */ + public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct) + { + set_Value (COLUMNNAME_P_CostAdjustment_Acct, Integer.valueOf(P_CostAdjustment_Acct)); + } + + /** Get Cost Adjustment. + @return Product Cost Adjustment Account + */ + public int getP_CostAdjustment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_CostAdjustment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Expense. + @param P_Expense_Acct + Account for Product Expense + */ + public void setP_Expense_Acct (int P_Expense_Acct) + { + set_Value (COLUMNNAME_P_Expense_Acct, Integer.valueOf(P_Expense_Acct)); + } + + /** Get Product Expense. + @return Account for Product Expense + */ + public int getP_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Clearing. + @param P_InventoryClearing_Acct + Product Inventory Clearing Account + */ + public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct) + { + set_Value (COLUMNNAME_P_InventoryClearing_Acct, Integer.valueOf(P_InventoryClearing_Acct)); + } + + /** Get Inventory Clearing. + @return Product Inventory Clearing Account + */ + public int getP_InventoryClearing_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_InventoryClearing_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Price Variance. + @param P_InvoicePriceVariance_Acct + Difference between Costs and Invoice Price (IPV) + */ + public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct) + { + set_Value (COLUMNNAME_P_InvoicePriceVariance_Acct, Integer.valueOf(P_InvoicePriceVariance_Acct)); + } + + /** Get Invoice Price Variance. + @return Difference between Costs and Invoice Price (IPV) + */ + public int getP_InvoicePriceVariance_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_InvoicePriceVariance_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Purchase Price Variance. + @param P_PurchasePriceVariance_Acct + Difference between Standard Cost and Purchase Price (PPV) + */ + public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct) + { + set_Value (COLUMNNAME_P_PurchasePriceVariance_Acct, Integer.valueOf(P_PurchasePriceVariance_Acct)); + } + + /** Get Purchase Price Variance. + @return Difference between Standard Cost and Purchase Price (PPV) + */ + public int getP_PurchasePriceVariance_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_PurchasePriceVariance_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Revenue. + @param P_Revenue_Acct + Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct) + { + set_Value (COLUMNNAME_P_Revenue_Acct, Integer.valueOf(P_Revenue_Acct)); + } + + /** Get Product Revenue. + @return Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Revenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trade Discount Granted. + @param P_TradeDiscountGrant_Acct + Trade Discount Granted Account + */ + public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct) + { + set_Value (COLUMNNAME_P_TradeDiscountGrant_Acct, Integer.valueOf(P_TradeDiscountGrant_Acct)); + } + + /** Get Trade Discount Granted. + @return Trade Discount Granted Account + */ + public int getP_TradeDiscountGrant_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_TradeDiscountGrant_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trade Discount Received. + @param P_TradeDiscountRec_Acct + Trade Discount Receivable Account + */ + public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct) + { + set_Value (COLUMNNAME_P_TradeDiscountRec_Acct, Integer.valueOf(P_TradeDiscountRec_Acct)); + } + + /** Get Trade Discount Received. + @return Trade Discount Receivable Account + */ + public int getP_TradeDiscountRec_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_TradeDiscountRec_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 ae0f67c6f7..857df0ce85 100644 --- a/base/src/org/compiere/model/X_M_Product_BOM.java +++ b/base/src/org/compiere/model/X_M_Product_BOM.java @@ -1,250 +1,251 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product_BOM - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product_BOM extends PO + +/** Generated Model for M_Product_BOM + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product_BOM extends PO implements I_M_Product_BOM, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Product_BOM_ID id -@param trxName transaction -*/ -public X_M_Product_BOM (Properties ctx, int M_Product_BOM_ID, String trxName) -{ -super (ctx, M_Product_BOM_ID, trxName); -/** if (M_Product_BOM_ID == 0) -{ -setBOMQty (Env.ZERO); // 1 -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_Product_BOM WHERE M_Product_ID=@M_Product_ID@ -setM_ProductBOM_ID (0); -setM_Product_BOM_ID (0); -setM_Product_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product_BOM (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product_BOM */ -public static final String Table_Name="M_Product_BOM"; - -/** AD_Table_ID=383 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product_BOM[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set BOM Quantity. -@param BOMQty Bill of Materials Quantity */ -public void setBOMQty (BigDecimal BOMQty) -{ -if (BOMQty == null) throw new IllegalArgumentException ("BOMQty is mandatory."); -set_Value ("BOMQty", BOMQty); -} -/** Get BOM Quantity. -@return Bill of Materials Quantity */ -public BigDecimal getBOMQty() -{ -BigDecimal bd = (BigDecimal)get_Value("BOMQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BOMQty */ -public static final String COLUMNNAME_BOMQty = "BOMQty"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product_BOM (Properties ctx, int M_Product_BOM_ID, String trxName) + { + super (ctx, M_Product_BOM_ID, trxName); + /** if (M_Product_BOM_ID == 0) { setBOMQty (Env.ZERO); +// 1 + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_Product_BOM WHERE M_Product_ID=@M_Product_ID@ + setM_ProductBOM_ID (0); + setM_Product_BOM_ID (0); + setM_Product_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_Product_BOM (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product_BOM[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set BOM Quantity. + @param BOMQty + Bill of Materials Quantity + */ + public void setBOMQty (BigDecimal BOMQty) + { + if (BOMQty == null) + throw new IllegalArgumentException ("BOMQty is mandatory."); + set_Value (COLUMNNAME_BOMQty, BOMQty); + } + + /** Get BOM Quantity. + @return Bill of Materials Quantity + */ + public BigDecimal getBOMQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BOMQty); + if (bd == null) + return Env.ZERO; + return bd; + } /** BOMType AD_Reference_ID=279 */ -public static final int BOMTYPE_AD_Reference_ID=279; -/** In alternative Group 1 = 1 */ -public static final String BOMTYPE_InAlternativeGroup1 = "1"; -/** In alternative Group 2 = 2 */ -public static final String BOMTYPE_InAlternativeGroup2 = "2"; -/** In alternaltve Group 3 = 3 */ -public static final String BOMTYPE_InAlternaltveGroup3 = "3"; -/** In alternative Group 4 = 4 */ -public static final String BOMTYPE_InAlternativeGroup4 = "4"; -/** In alternative Group 5 = 5 */ -public static final String BOMTYPE_InAlternativeGroup5 = "5"; -/** In alternative Group 6 = 6 */ -public static final String BOMTYPE_InAlternativeGroup6 = "6"; -/** In alternative Group 7 = 7 */ -public static final String BOMTYPE_InAlternativeGroup7 = "7"; -/** In alternative Group 8 = 8 */ -public static final String BOMTYPE_InAlternativeGroup8 = "8"; -/** In alternative Group 9 = 9 */ -public static final String BOMTYPE_InAlternativeGroup9 = "9"; -/** Optional Part = O */ -public static final String BOMTYPE_OptionalPart = "O"; -/** Standard Part = P */ +public static final int BOMTYPE_AD_Reference_ID=279;/** In alternative Group 1 = 1 */ +public static final String BOMTYPE_InAlternativeGroup1 = "1";/** In alternative Group 2 = 2 */ +public static final String BOMTYPE_InAlternativeGroup2 = "2";/** In alternaltve Group 3 = 3 */ +public static final String BOMTYPE_InAlternaltveGroup3 = "3";/** In alternative Group 4 = 4 */ +public static final String BOMTYPE_InAlternativeGroup4 = "4";/** In alternative Group 5 = 5 */ +public static final String BOMTYPE_InAlternativeGroup5 = "5";/** In alternative Group 6 = 6 */ +public static final String BOMTYPE_InAlternativeGroup6 = "6";/** In alternative Group 7 = 7 */ +public static final String BOMTYPE_InAlternativeGroup7 = "7";/** In alternative Group 8 = 8 */ +public static final String BOMTYPE_InAlternativeGroup8 = "8";/** In alternative Group 9 = 9 */ +public static final String BOMTYPE_InAlternativeGroup9 = "9";/** Optional Part = O */ +public static final String BOMTYPE_OptionalPart = "O";/** Standard Part = P */ public static final String BOMTYPE_StandardPart = "P"; -/** Set BOM Type. -@param BOMType Type of BOM */ -public void setBOMType (String BOMType) -{ -if (BOMType == null || BOMType.equals("1") || BOMType.equals("2") || BOMType.equals("3") || BOMType.equals("4") || BOMType.equals("5") || BOMType.equals("6") || BOMType.equals("7") || BOMType.equals("8") || BOMType.equals("9") || BOMType.equals("O") || BOMType.equals("P")); - else throw new IllegalArgumentException ("BOMType Invalid value - " + BOMType + " - Reference_ID=279 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - O - P"); -if (BOMType != null && BOMType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -BOMType = BOMType.substring(0,0); -} -set_Value ("BOMType", BOMType); -} -/** Get BOM Type. -@return Type of BOM */ -public String getBOMType() -{ -return (String)get_Value("BOMType"); -} -/** Column name BOMType */ -public static final String COLUMNNAME_BOMType = "BOMType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; + /** Set BOM Type. + @param BOMType + Type of BOM + */ + public void setBOMType (String BOMType) + { +if (BOMType == null || BOMType.equals("1") || BOMType.equals("2") || BOMType.equals("3") || BOMType.equals("4") || BOMType.equals("5") || BOMType.equals("6") || BOMType.equals("7") || BOMType.equals("8") || BOMType.equals("9") || BOMType.equals("O") || BOMType.equals("P")); else throw new IllegalArgumentException ("BOMType Invalid value - " + BOMType + " - Reference_ID=279 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - O - P"); if (BOMType != null && BOMType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BOMType = BOMType.substring(0, 0); + } + set_Value (COLUMNNAME_BOMType, BOMType); + } + + /** Get BOM Type. + @return Type of BOM + */ + public String getBOMType () + { + return (String)get_Value(COLUMNNAME_BOMType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_ProductBOM_ID AD_Reference_ID=162 */ public static final int M_PRODUCTBOM_ID_AD_Reference_ID=162; -/** Set BOM Product. -@param M_ProductBOM_ID Bill of Material Component Product */ -public void setM_ProductBOM_ID (int M_ProductBOM_ID) -{ -if (M_ProductBOM_ID < 1) throw new IllegalArgumentException ("M_ProductBOM_ID is mandatory."); -set_Value ("M_ProductBOM_ID", Integer.valueOf(M_ProductBOM_ID)); -} -/** Get BOM Product. -@return Bill of Material Component Product */ -public int getM_ProductBOM_ID() -{ -Integer ii = (Integer)get_Value("M_ProductBOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_ProductBOM_ID())); -} -/** Column name M_ProductBOM_ID */ -public static final String COLUMNNAME_M_ProductBOM_ID = "M_ProductBOM_ID"; -/** Set BOM Line. -@param M_Product_BOM_ID BOM Line */ -public void setM_Product_BOM_ID (int M_Product_BOM_ID) -{ -if (M_Product_BOM_ID < 1) throw new IllegalArgumentException ("M_Product_BOM_ID is mandatory."); -set_ValueNoCheck ("M_Product_BOM_ID", Integer.valueOf(M_Product_BOM_ID)); -} -/** Get BOM Line. -@return BOM Line */ -public int getM_Product_BOM_ID() -{ -Integer ii = (Integer)get_Value("M_Product_BOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_BOM_ID */ -public static final String COLUMNNAME_M_Product_BOM_ID = "M_Product_BOM_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -} + /** Set BOM Product. + @param M_ProductBOM_ID + Bill of Material Component Product + */ + public void setM_ProductBOM_ID (int M_ProductBOM_ID) + { + if (M_ProductBOM_ID < 1) + throw new IllegalArgumentException ("M_ProductBOM_ID is mandatory."); + set_Value (COLUMNNAME_M_ProductBOM_ID, Integer.valueOf(M_ProductBOM_ID)); + } + + /** Get BOM Product. + @return Bill of Material Component Product + */ + public int getM_ProductBOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductBOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_ProductBOM_ID())); + } + + /** Set BOM Line. + @param M_Product_BOM_ID BOM Line */ + public void setM_Product_BOM_ID (int M_Product_BOM_ID) + { + if (M_Product_BOM_ID < 1) + throw new IllegalArgumentException ("M_Product_BOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_BOM_ID, Integer.valueOf(M_Product_BOM_ID)); + } + + /** Get BOM Line. +@return BOM Line */ + public int getM_Product_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 aaeeedf1c7..a0843e182b 100644 --- a/base/src/org/compiere/model/X_M_Product_Category.java +++ b/base/src/org/compiere/model/X_M_Product_Category.java @@ -1,319 +1,374 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product_Category - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product_Category extends PO + +/** Generated Model for M_Product_Category + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product_Category extends PO implements I_M_Product_Category, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Product_Category_ID id -@param trxName transaction -*/ -public X_M_Product_Category (Properties ctx, int M_Product_Category_ID, String trxName) -{ -super (ctx, M_Product_Category_ID, trxName); -/** if (M_Product_Category_ID == 0) -{ -setIsDefault (false); -setIsSelfService (true); // Y -setMMPolicy (null); // F -setM_Product_Category_ID (0); -setName (null); -setPlannedMargin (Env.ZERO); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product_Category (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product_Category */ -public static final String Table_Name="M_Product_Category"; - -/** AD_Table_ID=209 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product_Category[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Color. -@param AD_PrintColor_ID Color used for printing and display */ -public void setAD_PrintColor_ID (int AD_PrintColor_ID) -{ -if (AD_PrintColor_ID <= 0) set_Value ("AD_PrintColor_ID", null); - else -set_Value ("AD_PrintColor_ID", Integer.valueOf(AD_PrintColor_ID)); -} -/** Get Print Color. -@return Color used for printing and display */ -public int getAD_PrintColor_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor_ID */ -public static final String COLUMNNAME_AD_PrintColor_ID = "AD_PrintColor_ID"; -/** Set Asset Group. -@param A_Asset_Group_ID Group of Assets */ -public void setA_Asset_Group_ID (int A_Asset_Group_ID) -{ -if (A_Asset_Group_ID <= 0) set_Value ("A_Asset_Group_ID", null); - else -set_Value ("A_Asset_Group_ID", Integer.valueOf(A_Asset_Group_ID)); -} -/** Get Asset Group. -@return Group of Assets */ -public int getA_Asset_Group_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_Group_ID */ -public static final String COLUMNNAME_A_Asset_Group_ID = "A_Asset_Group_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product_Category (Properties ctx, int M_Product_Category_ID, String trxName) + { + super (ctx, M_Product_Category_ID, trxName); + /** if (M_Product_Category_ID == 0) { setIsDefault (false); + setIsSelfService (true); +// Y + setMMPolicy (null); +// F + setM_Product_Category_ID (0); + setName (null); + setPlannedMargin (Env.ZERO); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_M_Product_Category (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product_Category[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintColor getI_AD_PrintColor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Color. + @param AD_PrintColor_ID + Color used for printing and display + */ + public void setAD_PrintColor_ID (int AD_PrintColor_ID) + { + if (AD_PrintColor_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor_ID, Integer.valueOf(AD_PrintColor_ID)); + } + + /** Get Print Color. + @return Color used for printing and display + */ + public int getAD_PrintColor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_A_Asset_Group getI_A_Asset_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Asset Group. + @param A_Asset_Group_ID + Group of Assets + */ + public void setA_Asset_Group_ID (int A_Asset_Group_ID) + { + if (A_Asset_Group_ID <= 0) set_Value (COLUMNNAME_A_Asset_Group_ID, null); + else + set_Value (COLUMNNAME_A_Asset_Group_ID, Integer.valueOf(A_Asset_Group_ID)); + } + + /** Get Asset Group. + @return Group of Assets + */ + public int getA_Asset_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** MMPolicy AD_Reference_ID=335 */ -public static final int MMPOLICY_AD_Reference_ID=335; -/** FiFo = F */ -public static final String MMPOLICY_FiFo = "F"; -/** LiFo = L */ +public static final int MMPOLICY_AD_Reference_ID=335;/** FiFo = F */ +public static final String MMPOLICY_FiFo = "F";/** LiFo = L */ public static final String MMPOLICY_LiFo = "L"; -/** Set Material Policy. -@param MMPolicy Material Movement Policy */ -public void setMMPolicy (String MMPolicy) -{ -if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory"); -if (MMPolicy.equals("F") || MMPolicy.equals("L")); - else throw new IllegalArgumentException ("MMPolicy Invalid value - " + MMPolicy + " - Reference_ID=335 - F - L"); -if (MMPolicy.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MMPolicy = MMPolicy.substring(0,0); -} -set_Value ("MMPolicy", MMPolicy); -} -/** Get Material Policy. -@return Material Movement Policy */ -public String getMMPolicy() -{ -return (String)get_Value("MMPolicy"); -} -/** Column name MMPolicy */ -public static final String COLUMNNAME_MMPolicy = "MMPolicy"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID < 1) throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); -set_ValueNoCheck ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + /** Set Material Policy. + @param MMPolicy + Material Movement Policy + */ + public void setMMPolicy (String MMPolicy) + { +if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory");if (MMPolicy.equals("F") || MMPolicy.equals("L")); else throw new IllegalArgumentException ("MMPolicy Invalid value - " + MMPolicy + " - Reference_ID=335 - F - L"); if (MMPolicy.length() > 1) + { + log.warning("Length > 1 - truncated"); + MMPolicy = MMPolicy.substring(0, 0); + } + set_Value (COLUMNNAME_MMPolicy, MMPolicy); + } + + /** Get Material Policy. + @return Material Movement Policy + */ + public String getMMPolicy () + { + return (String)get_Value(COLUMNNAME_MMPolicy); + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Product_Category_Parent_ID AD_Reference_ID=163 */ public static final int M_PRODUCT_CATEGORY_PARENT_ID_AD_Reference_ID=163; -/** 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) -{ -if (M_Product_Category_Parent_ID <= 0) set_Value ("M_Product_Category_Parent_ID", null); - else -set_Value ("M_Product_Category_Parent_ID", Integer.valueOf(M_Product_Category_Parent_ID)); -} -/** Get Parent Product Category. -@return Parent Product Category */ -public int getM_Product_Category_Parent_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_Parent_ID */ -public static final String COLUMNNAME_M_Product_Category_Parent_ID = "M_Product_Category_Parent_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Planned Margin %. -@param PlannedMargin Project's planned margin as a percentage */ -public void setPlannedMargin (BigDecimal PlannedMargin) -{ -if (PlannedMargin == null) throw new IllegalArgumentException ("PlannedMargin is mandatory."); -set_Value ("PlannedMargin", PlannedMargin); -} -/** Get Planned Margin %. -@return Project's planned margin as a percentage */ -public BigDecimal getPlannedMargin() -{ -BigDecimal bd = (BigDecimal)get_Value("PlannedMargin"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PlannedMargin */ -public static final String COLUMNNAME_PlannedMargin = "PlannedMargin"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** 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) + { + if (M_Product_Category_Parent_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_Parent_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_Parent_ID, Integer.valueOf(M_Product_Category_Parent_ID)); + } + + /** Get Parent Product Category. +@return Parent Product Category */ + public int getM_Product_Category_Parent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Planned Margin %. + @param PlannedMargin + Project's planned margin as a percentage + */ + public void setPlannedMargin (BigDecimal PlannedMargin) + { + if (PlannedMargin == null) + throw new IllegalArgumentException ("PlannedMargin is mandatory."); + set_Value (COLUMNNAME_PlannedMargin, PlannedMargin); + } + + /** Get Planned Margin %. + @return Project's planned margin as a percentage + */ + public BigDecimal getPlannedMargin () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedMargin); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file 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 f86ea5089f..cb75f9aeee 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 @@ -1,385 +1,441 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product_Category_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product_Category_Acct extends PO + +/** Generated Model for M_Product_Category_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product_Category_Acct extends PO implements I_M_Product_Category_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Product_Category_Acct_ID id -@param trxName transaction -*/ -public X_M_Product_Category_Acct (Properties ctx, int M_Product_Category_Acct_ID, String trxName) -{ -super (ctx, M_Product_Category_Acct_ID, trxName); -/** if (M_Product_Category_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setM_Product_Category_ID (0); -setP_Asset_Acct (0); -setP_COGS_Acct (0); -setP_CostAdjustment_Acct (0); -setP_Expense_Acct (0); -setP_InventoryClearing_Acct (0); -setP_InvoicePriceVariance_Acct (0); -setP_PurchasePriceVariance_Acct (0); -setP_Revenue_Acct (0); -setP_TradeDiscountGrant_Acct (0); -setP_TradeDiscountRec_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product_Category_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product_Category_Acct */ -public static final String Table_Name="M_Product_Category_Acct"; - -/** AD_Table_ID=401 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product_Category_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product_Category_Acct (Properties ctx, int M_Product_Category_Acct_ID, String trxName) + { + super (ctx, M_Product_Category_Acct_ID, trxName); + /** if (M_Product_Category_Acct_ID == 0) { setC_AcctSchema_ID (0); + setM_Product_Category_ID (0); + setP_Asset_Acct (0); + setP_COGS_Acct (0); + setP_CostAdjustment_Acct (0); + setP_Expense_Acct (0); + setP_InventoryClearing_Acct (0); + setP_InvoicePriceVariance_Acct (0); + setP_PurchasePriceVariance_Acct (0); + setP_Revenue_Acct (0); + setP_TradeDiscountGrant_Acct (0); + setP_TradeDiscountRec_Acct (0); +} */ + } + + /** Load Constructor */ + public X_M_Product_Category_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product_Category_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CostingLevel AD_Reference_ID=355 */ -public static final int COSTINGLEVEL_AD_Reference_ID=355; -/** Batch/Lot = B */ -public static final String COSTINGLEVEL_BatchLot = "B"; -/** Client = C */ -public static final String COSTINGLEVEL_Client = "C"; -/** Organization = O */ +public static final int COSTINGLEVEL_AD_Reference_ID=355;/** Batch/Lot = B */ +public static final String COSTINGLEVEL_BatchLot = "B";/** Client = C */ +public static final String COSTINGLEVEL_Client = "C";/** Organization = O */ public static final String COSTINGLEVEL_Organization = "O"; -/** Set Costing Level. -@param CostingLevel The lowest level to accumulate Costing Information */ -public void setCostingLevel (String CostingLevel) -{ -if (CostingLevel == null || CostingLevel.equals("B") || CostingLevel.equals("C") || CostingLevel.equals("O")); - else throw new IllegalArgumentException ("CostingLevel Invalid value - " + CostingLevel + " - Reference_ID=355 - B - C - O"); -if (CostingLevel != null && CostingLevel.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CostingLevel = CostingLevel.substring(0,0); -} -set_Value ("CostingLevel", CostingLevel); -} -/** Get Costing Level. -@return The lowest level to accumulate Costing Information */ -public String getCostingLevel() -{ -return (String)get_Value("CostingLevel"); -} -/** Column name CostingLevel */ -public static final String COLUMNNAME_CostingLevel = "CostingLevel"; + /** Set Costing Level. + @param CostingLevel + The lowest level to accumulate Costing Information + */ + public void setCostingLevel (String CostingLevel) + { +if (CostingLevel == null || CostingLevel.equals("B") || CostingLevel.equals("C") || CostingLevel.equals("O")); else throw new IllegalArgumentException ("CostingLevel Invalid value - " + CostingLevel + " - Reference_ID=355 - B - C - O"); if (CostingLevel != null && CostingLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingLevel = CostingLevel.substring(0, 0); + } + set_Value (COLUMNNAME_CostingLevel, CostingLevel); + } + + /** Get Costing Level. + @return The lowest level to accumulate Costing Information + */ + public String getCostingLevel () + { + return (String)get_Value(COLUMNNAME_CostingLevel); + } /** CostingMethod AD_Reference_ID=122 */ -public static final int COSTINGMETHOD_AD_Reference_ID=122; -/** Average PO = A */ -public static final String COSTINGMETHOD_AveragePO = "A"; -/** Fifo = F */ -public static final String COSTINGMETHOD_Fifo = "F"; -/** Average Invoice = I */ -public static final String COSTINGMETHOD_AverageInvoice = "I"; -/** Lifo = L */ -public static final String COSTINGMETHOD_Lifo = "L"; -/** Standard Costing = S */ -public static final String COSTINGMETHOD_StandardCosting = "S"; -/** User Defined = U */ -public static final String COSTINGMETHOD_UserDefined = "U"; -/** Last Invoice = i */ -public static final String COSTINGMETHOD_LastInvoice = "i"; -/** Last PO Price = p */ -public static final String COSTINGMETHOD_LastPOPrice = "p"; -/** _ = x */ +public static final int COSTINGMETHOD_AD_Reference_ID=122;/** Average PO = A */ +public static final String COSTINGMETHOD_AveragePO = "A";/** Fifo = F */ +public static final String COSTINGMETHOD_Fifo = "F";/** Average Invoice = I */ +public static final String COSTINGMETHOD_AverageInvoice = "I";/** Lifo = L */ +public static final String COSTINGMETHOD_Lifo = "L";/** Standard Costing = S */ +public static final String COSTINGMETHOD_StandardCosting = "S";/** User Defined = U */ +public static final String COSTINGMETHOD_UserDefined = "U";/** Last Invoice = i */ +public static final String COSTINGMETHOD_LastInvoice = "i";/** Last PO Price = p */ +public static final String COSTINGMETHOD_LastPOPrice = "p";/** _ = x */ public static final String COSTINGMETHOD__ = "x"; -/** Set Costing Method. -@param CostingMethod Indicates how Costs will be calculated */ -public void setCostingMethod (String CostingMethod) -{ -if (CostingMethod == null || CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); - else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); -if (CostingMethod != null && CostingMethod.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CostingMethod = CostingMethod.substring(0,0); -} -set_Value ("CostingMethod", CostingMethod); -} -/** Get Costing Method. -@return Indicates how Costs will be calculated */ -public String getCostingMethod() -{ -return (String)get_Value("CostingMethod"); -} -/** Column name CostingMethod */ -public static final String COLUMNNAME_CostingMethod = "CostingMethod"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID < 1) throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); -set_ValueNoCheck ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product Asset. -@param P_Asset_Acct Account for Product Asset (Inventory) */ -public void setP_Asset_Acct (int P_Asset_Acct) -{ -set_Value ("P_Asset_Acct", Integer.valueOf(P_Asset_Acct)); -} -/** Get Product Asset. -@return Account for Product Asset (Inventory) */ -public int getP_Asset_Acct() -{ -Integer ii = (Integer)get_Value("P_Asset_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Asset_Acct */ -public static final String COLUMNNAME_P_Asset_Acct = "P_Asset_Acct"; -/** Set Product COGS. -@param P_COGS_Acct Account for Cost of Goods Sold */ -public void setP_COGS_Acct (int P_COGS_Acct) -{ -set_Value ("P_COGS_Acct", Integer.valueOf(P_COGS_Acct)); -} -/** Get Product COGS. -@return Account for Cost of Goods Sold */ -public int getP_COGS_Acct() -{ -Integer ii = (Integer)get_Value("P_COGS_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_COGS_Acct */ -public static final String COLUMNNAME_P_COGS_Acct = "P_COGS_Acct"; -/** Set Cost Adjustment. -@param P_CostAdjustment_Acct Product Cost Adjustment Account */ -public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct) -{ -set_Value ("P_CostAdjustment_Acct", Integer.valueOf(P_CostAdjustment_Acct)); -} -/** Get Cost Adjustment. -@return Product Cost Adjustment Account */ -public int getP_CostAdjustment_Acct() -{ -Integer ii = (Integer)get_Value("P_CostAdjustment_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_CostAdjustment_Acct */ -public static final String COLUMNNAME_P_CostAdjustment_Acct = "P_CostAdjustment_Acct"; -/** Set Product Expense. -@param P_Expense_Acct Account for Product Expense */ -public void setP_Expense_Acct (int P_Expense_Acct) -{ -set_Value ("P_Expense_Acct", Integer.valueOf(P_Expense_Acct)); -} -/** Get Product Expense. -@return Account for Product Expense */ -public int getP_Expense_Acct() -{ -Integer ii = (Integer)get_Value("P_Expense_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Expense_Acct */ -public static final String COLUMNNAME_P_Expense_Acct = "P_Expense_Acct"; -/** Set Inventory Clearing. -@param P_InventoryClearing_Acct Product Inventory Clearing Account */ -public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct) -{ -set_Value ("P_InventoryClearing_Acct", Integer.valueOf(P_InventoryClearing_Acct)); -} -/** Get Inventory Clearing. -@return Product Inventory Clearing Account */ -public int getP_InventoryClearing_Acct() -{ -Integer ii = (Integer)get_Value("P_InventoryClearing_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_InventoryClearing_Acct */ -public static final String COLUMNNAME_P_InventoryClearing_Acct = "P_InventoryClearing_Acct"; -/** Set Invoice Price Variance. -@param P_InvoicePriceVariance_Acct Difference between Costs and Invoice Price (IPV) */ -public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct) -{ -set_Value ("P_InvoicePriceVariance_Acct", Integer.valueOf(P_InvoicePriceVariance_Acct)); -} -/** Get Invoice Price Variance. -@return Difference between Costs and Invoice Price (IPV) */ -public int getP_InvoicePriceVariance_Acct() -{ -Integer ii = (Integer)get_Value("P_InvoicePriceVariance_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_InvoicePriceVariance_Acct */ -public static final String COLUMNNAME_P_InvoicePriceVariance_Acct = "P_InvoicePriceVariance_Acct"; -/** Set Purchase Price Variance. -@param P_PurchasePriceVariance_Acct Difference between Standard Cost and Purchase Price (PPV) */ -public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct) -{ -set_Value ("P_PurchasePriceVariance_Acct", Integer.valueOf(P_PurchasePriceVariance_Acct)); -} -/** Get Purchase Price Variance. -@return Difference between Standard Cost and Purchase Price (PPV) */ -public int getP_PurchasePriceVariance_Acct() -{ -Integer ii = (Integer)get_Value("P_PurchasePriceVariance_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_PurchasePriceVariance_Acct */ -public static final String COLUMNNAME_P_PurchasePriceVariance_Acct = "P_PurchasePriceVariance_Acct"; -/** Set Product Revenue. -@param P_Revenue_Acct Account for Product Revenue (Sales Account) */ -public void setP_Revenue_Acct (int P_Revenue_Acct) -{ -set_Value ("P_Revenue_Acct", Integer.valueOf(P_Revenue_Acct)); -} -/** Get Product Revenue. -@return Account for Product Revenue (Sales Account) */ -public int getP_Revenue_Acct() -{ -Integer ii = (Integer)get_Value("P_Revenue_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_Revenue_Acct */ -public static final String COLUMNNAME_P_Revenue_Acct = "P_Revenue_Acct"; -/** Set Trade Discount Granted. -@param P_TradeDiscountGrant_Acct Trade Discount Granted Account */ -public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct) -{ -set_Value ("P_TradeDiscountGrant_Acct", Integer.valueOf(P_TradeDiscountGrant_Acct)); -} -/** Get Trade Discount Granted. -@return Trade Discount Granted Account */ -public int getP_TradeDiscountGrant_Acct() -{ -Integer ii = (Integer)get_Value("P_TradeDiscountGrant_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_TradeDiscountGrant_Acct */ -public static final String COLUMNNAME_P_TradeDiscountGrant_Acct = "P_TradeDiscountGrant_Acct"; -/** Set Trade Discount Received. -@param P_TradeDiscountRec_Acct Trade Discount Receivable Account */ -public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct) -{ -set_Value ("P_TradeDiscountRec_Acct", Integer.valueOf(P_TradeDiscountRec_Acct)); -} -/** Get Trade Discount Received. -@return Trade Discount Receivable Account */ -public int getP_TradeDiscountRec_Acct() -{ -Integer ii = (Integer)get_Value("P_TradeDiscountRec_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name P_TradeDiscountRec_Acct */ -public static final String COLUMNNAME_P_TradeDiscountRec_Acct = "P_TradeDiscountRec_Acct"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + /** Set Costing Method. + @param CostingMethod + Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod) + { +if (CostingMethod == null || CostingMethod.equals("A") || CostingMethod.equals("F") || CostingMethod.equals("I") || CostingMethod.equals("L") || CostingMethod.equals("S") || CostingMethod.equals("U") || CostingMethod.equals("i") || CostingMethod.equals("p") || CostingMethod.equals("x")); else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - A - F - I - L - S - U - i - p - x"); if (CostingMethod != null && CostingMethod.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingMethod = CostingMethod.substring(0, 0); + } + set_Value (COLUMNNAME_CostingMethod, CostingMethod); + } + + /** Get Costing Method. + @return Indicates how Costs will be calculated + */ + public String getCostingMethod () + { + return (String)get_Value(COLUMNNAME_CostingMethod); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Asset. + @param P_Asset_Acct + Account for Product Asset (Inventory) + */ + public void setP_Asset_Acct (int P_Asset_Acct) + { + set_Value (COLUMNNAME_P_Asset_Acct, Integer.valueOf(P_Asset_Acct)); + } + + /** Get Product Asset. + @return Account for Product Asset (Inventory) + */ + public int getP_Asset_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Asset_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product COGS. + @param P_COGS_Acct + Account for Cost of Goods Sold + */ + public void setP_COGS_Acct (int P_COGS_Acct) + { + set_Value (COLUMNNAME_P_COGS_Acct, Integer.valueOf(P_COGS_Acct)); + } + + /** Get Product COGS. + @return Account for Cost of Goods Sold + */ + public int getP_COGS_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_COGS_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost Adjustment. + @param P_CostAdjustment_Acct + Product Cost Adjustment Account + */ + public void setP_CostAdjustment_Acct (int P_CostAdjustment_Acct) + { + set_Value (COLUMNNAME_P_CostAdjustment_Acct, Integer.valueOf(P_CostAdjustment_Acct)); + } + + /** Get Cost Adjustment. + @return Product Cost Adjustment Account + */ + public int getP_CostAdjustment_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_CostAdjustment_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Expense. + @param P_Expense_Acct + Account for Product Expense + */ + public void setP_Expense_Acct (int P_Expense_Acct) + { + set_Value (COLUMNNAME_P_Expense_Acct, Integer.valueOf(P_Expense_Acct)); + } + + /** Get Product Expense. + @return Account for Product Expense + */ + public int getP_Expense_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Expense_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Clearing. + @param P_InventoryClearing_Acct + Product Inventory Clearing Account + */ + public void setP_InventoryClearing_Acct (int P_InventoryClearing_Acct) + { + set_Value (COLUMNNAME_P_InventoryClearing_Acct, Integer.valueOf(P_InventoryClearing_Acct)); + } + + /** Get Inventory Clearing. + @return Product Inventory Clearing Account + */ + public int getP_InventoryClearing_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_InventoryClearing_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Price Variance. + @param P_InvoicePriceVariance_Acct + Difference between Costs and Invoice Price (IPV) + */ + public void setP_InvoicePriceVariance_Acct (int P_InvoicePriceVariance_Acct) + { + set_Value (COLUMNNAME_P_InvoicePriceVariance_Acct, Integer.valueOf(P_InvoicePriceVariance_Acct)); + } + + /** Get Invoice Price Variance. + @return Difference between Costs and Invoice Price (IPV) + */ + public int getP_InvoicePriceVariance_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_InvoicePriceVariance_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Purchase Price Variance. + @param P_PurchasePriceVariance_Acct + Difference between Standard Cost and Purchase Price (PPV) + */ + public void setP_PurchasePriceVariance_Acct (int P_PurchasePriceVariance_Acct) + { + set_Value (COLUMNNAME_P_PurchasePriceVariance_Acct, Integer.valueOf(P_PurchasePriceVariance_Acct)); + } + + /** Get Purchase Price Variance. + @return Difference between Standard Cost and Purchase Price (PPV) + */ + public int getP_PurchasePriceVariance_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_PurchasePriceVariance_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Revenue. + @param P_Revenue_Acct + Account for Product Revenue (Sales Account) + */ + public void setP_Revenue_Acct (int P_Revenue_Acct) + { + set_Value (COLUMNNAME_P_Revenue_Acct, Integer.valueOf(P_Revenue_Acct)); + } + + /** Get Product Revenue. + @return Account for Product Revenue (Sales Account) + */ + public int getP_Revenue_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_Revenue_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trade Discount Granted. + @param P_TradeDiscountGrant_Acct + Trade Discount Granted Account + */ + public void setP_TradeDiscountGrant_Acct (int P_TradeDiscountGrant_Acct) + { + set_Value (COLUMNNAME_P_TradeDiscountGrant_Acct, Integer.valueOf(P_TradeDiscountGrant_Acct)); + } + + /** Get Trade Discount Granted. + @return Trade Discount Granted Account + */ + public int getP_TradeDiscountGrant_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_TradeDiscountGrant_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Trade Discount Received. + @param P_TradeDiscountRec_Acct + Trade Discount Receivable Account + */ + public void setP_TradeDiscountRec_Acct (int P_TradeDiscountRec_Acct) + { + set_Value (COLUMNNAME_P_TradeDiscountRec_Acct, Integer.valueOf(P_TradeDiscountRec_Acct)); + } + + /** Get Trade Discount Received. + @return Trade Discount Receivable Account + */ + public int getP_TradeDiscountRec_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_P_TradeDiscountRec_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file 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 f7de16a529..45e833e8b0 100644 --- a/base/src/org/compiere/model/X_M_Product_Costing.java +++ b/base/src/org/compiere/model/X_M_Product_Costing.java @@ -1,375 +1,453 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product_Costing - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product_Costing extends PO + +/** Generated Model for M_Product_Costing + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product_Costing extends PO implements I_M_Product_Costing, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Product_Costing_ID id -@param trxName transaction -*/ -public X_M_Product_Costing (Properties ctx, int M_Product_Costing_ID, String trxName) -{ -super (ctx, M_Product_Costing_ID, trxName); -/** if (M_Product_Costing_ID == 0) -{ -setC_AcctSchema_ID (0); -setCostAverage (Env.ZERO); -setCostAverageCumAmt (Env.ZERO); -setCostAverageCumQty (Env.ZERO); -setCostStandard (Env.ZERO); -setCostStandardCumAmt (Env.ZERO); -setCostStandardCumQty (Env.ZERO); -setCostStandardPOAmt (Env.ZERO); -setCostStandardPOQty (Env.ZERO); -setCurrentCostPrice (Env.ZERO); -setFutureCostPrice (Env.ZERO); -setM_Product_ID (0); -setPriceLastInv (Env.ZERO); -setPriceLastPO (Env.ZERO); -setTotalInvAmt (Env.ZERO); -setTotalInvQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product_Costing (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product_Costing */ -public static final String Table_Name="M_Product_Costing"; - -/** AD_Table_ID=327 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product_Costing[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Average Cost. -@param CostAverage Weighted average costs */ -public void setCostAverage (BigDecimal CostAverage) -{ -if (CostAverage == null) throw new IllegalArgumentException ("CostAverage is mandatory."); -set_ValueNoCheck ("CostAverage", CostAverage); -} -/** Get Average Cost. -@return Weighted average costs */ -public BigDecimal getCostAverage() -{ -BigDecimal bd = (BigDecimal)get_Value("CostAverage"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostAverage */ -public static final String COLUMNNAME_CostAverage = "CostAverage"; -/** Set Average Cost Amount Sum. -@param CostAverageCumAmt Cumulative average cost amounts (internal) */ -public void setCostAverageCumAmt (BigDecimal CostAverageCumAmt) -{ -if (CostAverageCumAmt == null) throw new IllegalArgumentException ("CostAverageCumAmt is mandatory."); -set_ValueNoCheck ("CostAverageCumAmt", CostAverageCumAmt); -} -/** Get Average Cost Amount Sum. -@return Cumulative average cost amounts (internal) */ -public BigDecimal getCostAverageCumAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CostAverageCumAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostAverageCumAmt */ -public static final String COLUMNNAME_CostAverageCumAmt = "CostAverageCumAmt"; -/** Set Average Cost Quantity Sum. -@param CostAverageCumQty Cumulative average cost quantities (internal) */ -public void setCostAverageCumQty (BigDecimal CostAverageCumQty) -{ -if (CostAverageCumQty == null) throw new IllegalArgumentException ("CostAverageCumQty is mandatory."); -set_ValueNoCheck ("CostAverageCumQty", CostAverageCumQty); -} -/** Get Average Cost Quantity Sum. -@return Cumulative average cost quantities (internal) */ -public BigDecimal getCostAverageCumQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CostAverageCumQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostAverageCumQty */ -public static final String COLUMNNAME_CostAverageCumQty = "CostAverageCumQty"; -/** Set Standard Cost. -@param CostStandard Standard Costs */ -public void setCostStandard (BigDecimal CostStandard) -{ -if (CostStandard == null) throw new IllegalArgumentException ("CostStandard is mandatory."); -set_ValueNoCheck ("CostStandard", CostStandard); -} -/** Get Standard Cost. -@return Standard Costs */ -public BigDecimal getCostStandard() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandard"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandard */ -public static final String COLUMNNAME_CostStandard = "CostStandard"; -/** Set Std Cost Amount Sum. -@param CostStandardCumAmt Standard Cost Invoice Amount Sum (internal) */ -public void setCostStandardCumAmt (BigDecimal CostStandardCumAmt) -{ -if (CostStandardCumAmt == null) throw new IllegalArgumentException ("CostStandardCumAmt is mandatory."); -set_ValueNoCheck ("CostStandardCumAmt", CostStandardCumAmt); -} -/** Get Std Cost Amount Sum. -@return Standard Cost Invoice Amount Sum (internal) */ -public BigDecimal getCostStandardCumAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandardCumAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandardCumAmt */ -public static final String COLUMNNAME_CostStandardCumAmt = "CostStandardCumAmt"; -/** Set Std Cost Quantity Sum. -@param CostStandardCumQty Standard Cost Invoice Quantity Sum (internal) */ -public void setCostStandardCumQty (BigDecimal CostStandardCumQty) -{ -if (CostStandardCumQty == null) throw new IllegalArgumentException ("CostStandardCumQty is mandatory."); -set_ValueNoCheck ("CostStandardCumQty", CostStandardCumQty); -} -/** Get Std Cost Quantity Sum. -@return Standard Cost Invoice Quantity Sum (internal) */ -public BigDecimal getCostStandardCumQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandardCumQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandardCumQty */ -public static final String COLUMNNAME_CostStandardCumQty = "CostStandardCumQty"; -/** Set Std PO Cost Amount Sum. -@param CostStandardPOAmt Standard Cost Purchase Order Amount Sum (internal) */ -public void setCostStandardPOAmt (BigDecimal CostStandardPOAmt) -{ -if (CostStandardPOAmt == null) throw new IllegalArgumentException ("CostStandardPOAmt is mandatory."); -set_ValueNoCheck ("CostStandardPOAmt", CostStandardPOAmt); -} -/** Get Std PO Cost Amount Sum. -@return Standard Cost Purchase Order Amount Sum (internal) */ -public BigDecimal getCostStandardPOAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandardPOAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandardPOAmt */ -public static final String COLUMNNAME_CostStandardPOAmt = "CostStandardPOAmt"; -/** Set Std PO Cost Quantity Sum. -@param CostStandardPOQty Standard Cost Purchase Order Quantity Sum (internal) */ -public void setCostStandardPOQty (BigDecimal CostStandardPOQty) -{ -if (CostStandardPOQty == null) throw new IllegalArgumentException ("CostStandardPOQty is mandatory."); -set_ValueNoCheck ("CostStandardPOQty", CostStandardPOQty); -} -/** Get Std PO Cost Quantity Sum. -@return Standard Cost Purchase Order Quantity Sum (internal) */ -public BigDecimal getCostStandardPOQty() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandardPOQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandardPOQty */ -public static final String COLUMNNAME_CostStandardPOQty = "CostStandardPOQty"; -/** Set Current Cost Price. -@param CurrentCostPrice The currently used cost price */ -public void setCurrentCostPrice (BigDecimal CurrentCostPrice) -{ -if (CurrentCostPrice == null) throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); -set_Value ("CurrentCostPrice", CurrentCostPrice); -} -/** Get Current Cost Price. -@return The currently used cost price */ -public BigDecimal getCurrentCostPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("CurrentCostPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CurrentCostPrice */ -public static final String COLUMNNAME_CurrentCostPrice = "CurrentCostPrice"; -/** Set Future Cost Price. -@param FutureCostPrice Future Cost Price */ -public void setFutureCostPrice (BigDecimal FutureCostPrice) -{ -if (FutureCostPrice == null) throw new IllegalArgumentException ("FutureCostPrice is mandatory."); -set_Value ("FutureCostPrice", FutureCostPrice); -} -/** Get Future Cost Price. -@return Future Cost Price */ -public BigDecimal getFutureCostPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("FutureCostPrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FutureCostPrice */ -public static final String COLUMNNAME_FutureCostPrice = "FutureCostPrice"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Last Invoice Price. -@param PriceLastInv Price of the last invoice for the product */ -public void setPriceLastInv (BigDecimal PriceLastInv) -{ -if (PriceLastInv == null) throw new IllegalArgumentException ("PriceLastInv is mandatory."); -set_ValueNoCheck ("PriceLastInv", PriceLastInv); -} -/** Get Last Invoice Price. -@return Price of the last invoice for the product */ -public BigDecimal getPriceLastInv() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLastInv"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLastInv */ -public static final String COLUMNNAME_PriceLastInv = "PriceLastInv"; -/** Set Last PO Price. -@param PriceLastPO Price of the last purchase order for the product */ -public void setPriceLastPO (BigDecimal PriceLastPO) -{ -if (PriceLastPO == null) throw new IllegalArgumentException ("PriceLastPO is mandatory."); -set_ValueNoCheck ("PriceLastPO", PriceLastPO); -} -/** Get Last PO Price. -@return Price of the last purchase order for the product */ -public BigDecimal getPriceLastPO() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLastPO"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLastPO */ -public static final String COLUMNNAME_PriceLastPO = "PriceLastPO"; -/** Set Total Invoice Amount. -@param TotalInvAmt Cumulative total lifetime invoice amount */ -public void setTotalInvAmt (BigDecimal TotalInvAmt) -{ -if (TotalInvAmt == null) throw new IllegalArgumentException ("TotalInvAmt is mandatory."); -set_ValueNoCheck ("TotalInvAmt", TotalInvAmt); -} -/** Get Total Invoice Amount. -@return Cumulative total lifetime invoice amount */ -public BigDecimal getTotalInvAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalInvAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalInvAmt */ -public static final String COLUMNNAME_TotalInvAmt = "TotalInvAmt"; -/** Set Total Invoice Quantity. -@param TotalInvQty Cumulative total lifetime invoice quantity */ -public void setTotalInvQty (BigDecimal TotalInvQty) -{ -if (TotalInvQty == null) throw new IllegalArgumentException ("TotalInvQty is mandatory."); -set_ValueNoCheck ("TotalInvQty", TotalInvQty); -} -/** Get Total Invoice Quantity. -@return Cumulative total lifetime invoice quantity */ -public BigDecimal getTotalInvQty() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalInvQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalInvQty */ -public static final String COLUMNNAME_TotalInvQty = "TotalInvQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product_Costing (Properties ctx, int M_Product_Costing_ID, String trxName) + { + super (ctx, M_Product_Costing_ID, trxName); + /** if (M_Product_Costing_ID == 0) { setC_AcctSchema_ID (0); + setCostAverage (Env.ZERO); + setCostAverageCumAmt (Env.ZERO); + setCostAverageCumQty (Env.ZERO); + setCostStandard (Env.ZERO); + setCostStandardCumAmt (Env.ZERO); + setCostStandardCumQty (Env.ZERO); + setCostStandardPOAmt (Env.ZERO); + setCostStandardPOQty (Env.ZERO); + setCurrentCostPrice (Env.ZERO); + setFutureCostPrice (Env.ZERO); + setM_Product_ID (0); + setPriceLastInv (Env.ZERO); + setPriceLastPO (Env.ZERO); + setTotalInvAmt (Env.ZERO); + setTotalInvQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_Product_Costing (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product_Costing[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Average Cost. + @param CostAverage + Weighted average costs + */ + public void setCostAverage (BigDecimal CostAverage) + { + if (CostAverage == null) + throw new IllegalArgumentException ("CostAverage is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostAverage, CostAverage); + } + + /** Get Average Cost. + @return Weighted average costs + */ + public BigDecimal getCostAverage () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAverage); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Average Cost Amount Sum. + @param CostAverageCumAmt + Cumulative average cost amounts (internal) + */ + public void setCostAverageCumAmt (BigDecimal CostAverageCumAmt) + { + if (CostAverageCumAmt == null) + throw new IllegalArgumentException ("CostAverageCumAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostAverageCumAmt, CostAverageCumAmt); + } + + /** Get Average Cost Amount Sum. + @return Cumulative average cost amounts (internal) + */ + public BigDecimal getCostAverageCumAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAverageCumAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Average Cost Quantity Sum. + @param CostAverageCumQty + Cumulative average cost quantities (internal) + */ + public void setCostAverageCumQty (BigDecimal CostAverageCumQty) + { + if (CostAverageCumQty == null) + throw new IllegalArgumentException ("CostAverageCumQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostAverageCumQty, CostAverageCumQty); + } + + /** Get Average Cost Quantity Sum. + @return Cumulative average cost quantities (internal) + */ + public BigDecimal getCostAverageCumQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAverageCumQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Cost. + @param CostStandard + Standard Costs + */ + public void setCostStandard (BigDecimal CostStandard) + { + if (CostStandard == null) + throw new IllegalArgumentException ("CostStandard is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostStandard, CostStandard); + } + + /** Get Standard Cost. + @return Standard Costs + */ + public BigDecimal getCostStandard () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandard); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Std Cost Amount Sum. + @param CostStandardCumAmt + Standard Cost Invoice Amount Sum (internal) + */ + public void setCostStandardCumAmt (BigDecimal CostStandardCumAmt) + { + if (CostStandardCumAmt == null) + throw new IllegalArgumentException ("CostStandardCumAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostStandardCumAmt, CostStandardCumAmt); + } + + /** Get Std Cost Amount Sum. + @return Standard Cost Invoice Amount Sum (internal) + */ + public BigDecimal getCostStandardCumAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandardCumAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Std Cost Quantity Sum. + @param CostStandardCumQty + Standard Cost Invoice Quantity Sum (internal) + */ + public void setCostStandardCumQty (BigDecimal CostStandardCumQty) + { + if (CostStandardCumQty == null) + throw new IllegalArgumentException ("CostStandardCumQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostStandardCumQty, CostStandardCumQty); + } + + /** Get Std Cost Quantity Sum. + @return Standard Cost Invoice Quantity Sum (internal) + */ + public BigDecimal getCostStandardCumQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandardCumQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Std PO Cost Amount Sum. + @param CostStandardPOAmt + Standard Cost Purchase Order Amount Sum (internal) + */ + public void setCostStandardPOAmt (BigDecimal CostStandardPOAmt) + { + if (CostStandardPOAmt == null) + throw new IllegalArgumentException ("CostStandardPOAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostStandardPOAmt, CostStandardPOAmt); + } + + /** Get Std PO Cost Amount Sum. + @return Standard Cost Purchase Order Amount Sum (internal) + */ + public BigDecimal getCostStandardPOAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandardPOAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Std PO Cost Quantity Sum. + @param CostStandardPOQty + Standard Cost Purchase Order Quantity Sum (internal) + */ + public void setCostStandardPOQty (BigDecimal CostStandardPOQty) + { + if (CostStandardPOQty == null) + throw new IllegalArgumentException ("CostStandardPOQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_CostStandardPOQty, CostStandardPOQty); + } + + /** Get Std PO Cost Quantity Sum. + @return Standard Cost Purchase Order Quantity Sum (internal) + */ + public BigDecimal getCostStandardPOQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandardPOQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Current Cost Price. + @param CurrentCostPrice + The currently used cost price + */ + public void setCurrentCostPrice (BigDecimal CurrentCostPrice) + { + if (CurrentCostPrice == null) + throw new IllegalArgumentException ("CurrentCostPrice is mandatory."); + set_Value (COLUMNNAME_CurrentCostPrice, CurrentCostPrice); + } + + /** Get Current Cost Price. + @return The currently used cost price + */ + public BigDecimal getCurrentCostPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentCostPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Future Cost Price. + @param FutureCostPrice Future Cost Price */ + public void setFutureCostPrice (BigDecimal FutureCostPrice) + { + if (FutureCostPrice == null) + throw new IllegalArgumentException ("FutureCostPrice is mandatory."); + set_Value (COLUMNNAME_FutureCostPrice, FutureCostPrice); + } + + /** Get Future Cost Price. +@return Future Cost Price */ + public BigDecimal getFutureCostPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FutureCostPrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Last Invoice Price. + @param PriceLastInv + Price of the last invoice for the product + */ + public void setPriceLastInv (BigDecimal PriceLastInv) + { + if (PriceLastInv == null) + throw new IllegalArgumentException ("PriceLastInv is mandatory."); + set_ValueNoCheck (COLUMNNAME_PriceLastInv, PriceLastInv); + } + + /** Get Last Invoice Price. + @return Price of the last invoice for the product + */ + public BigDecimal getPriceLastInv () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLastInv); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Last PO Price. + @param PriceLastPO + Price of the last purchase order for the product + */ + public void setPriceLastPO (BigDecimal PriceLastPO) + { + if (PriceLastPO == null) + throw new IllegalArgumentException ("PriceLastPO is mandatory."); + set_ValueNoCheck (COLUMNNAME_PriceLastPO, PriceLastPO); + } + + /** Get Last PO Price. + @return Price of the last purchase order for the product + */ + public BigDecimal getPriceLastPO () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLastPO); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Invoice Amount. + @param TotalInvAmt + Cumulative total lifetime invoice amount + */ + public void setTotalInvAmt (BigDecimal TotalInvAmt) + { + if (TotalInvAmt == null) + throw new IllegalArgumentException ("TotalInvAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalInvAmt, TotalInvAmt); + } + + /** Get Total Invoice Amount. + @return Cumulative total lifetime invoice amount + */ + public BigDecimal getTotalInvAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalInvAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Invoice Quantity. + @param TotalInvQty + Cumulative total lifetime invoice quantity + */ + public void setTotalInvQty (BigDecimal TotalInvQty) + { + if (TotalInvQty == null) + throw new IllegalArgumentException ("TotalInvQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalInvQty, TotalInvQty); + } + + /** Get Total Invoice Quantity. + @return Cumulative total lifetime invoice quantity + */ + public BigDecimal getTotalInvQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalInvQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file 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 a4e1877e59..0455c920c7 100644 --- a/base/src/org/compiere/model/X_M_Product_PO.java +++ b/base/src/org/compiere/model/X_M_Product_PO.java @@ -1,482 +1,592 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Product_PO - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Product_PO extends PO + +/** Generated Model for M_Product_PO + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Product_PO extends PO implements I_M_Product_PO, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Product_PO_ID id -@param trxName transaction -*/ -public X_M_Product_PO (Properties ctx, int M_Product_PO_ID, String trxName) -{ -super (ctx, M_Product_PO_ID, trxName); -/** if (M_Product_PO_ID == 0) -{ -setC_BPartner_ID (0); // 0 -setIsCurrentVendor (true); // Y -setM_Product_ID (0); // @M_Product_ID@ -setVendorProductNo (null); // @Value@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Product_PO (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Product_PO */ -public static final String Table_Name="M_Product_PO"; - -/** AD_Table_ID=210 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Product_PO[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Cost per Order. -@param CostPerOrder Fixed Cost Per Order */ -public void setCostPerOrder (BigDecimal CostPerOrder) -{ -set_Value ("CostPerOrder", CostPerOrder); -} -/** Get Cost per Order. -@return Fixed Cost Per Order */ -public BigDecimal getCostPerOrder() -{ -BigDecimal bd = (BigDecimal)get_Value("CostPerOrder"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostPerOrder */ -public static final String COLUMNNAME_CostPerOrder = "CostPerOrder"; -/** Set Actual Delivery Time. -@param DeliveryTime_Actual Actual days between order and delivery */ -public void setDeliveryTime_Actual (int DeliveryTime_Actual) -{ -set_Value ("DeliveryTime_Actual", Integer.valueOf(DeliveryTime_Actual)); -} -/** Get Actual Delivery Time. -@return Actual days between order and delivery */ -public int getDeliveryTime_Actual() -{ -Integer ii = (Integer)get_Value("DeliveryTime_Actual"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryTime_Actual */ -public static final String COLUMNNAME_DeliveryTime_Actual = "DeliveryTime_Actual"; -/** Set Promised Delivery Time. -@param DeliveryTime_Promised Promised days between order and delivery */ -public void setDeliveryTime_Promised (int DeliveryTime_Promised) -{ -set_Value ("DeliveryTime_Promised", Integer.valueOf(DeliveryTime_Promised)); -} -/** Get Promised Delivery Time. -@return Promised days between order and delivery */ -public int getDeliveryTime_Promised() -{ -Integer ii = (Integer)get_Value("DeliveryTime_Promised"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DeliveryTime_Promised */ -public static final String COLUMNNAME_DeliveryTime_Promised = "DeliveryTime_Promised"; -/** Set Discontinued. -@param Discontinued This product is no longer available */ -public void setDiscontinued (boolean Discontinued) -{ -set_Value ("Discontinued", Boolean.valueOf(Discontinued)); -} -/** Get Discontinued. -@return This product is no longer available */ -public boolean isDiscontinued() -{ -Object oo = get_Value("Discontinued"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Discontinued */ -public static final String COLUMNNAME_Discontinued = "Discontinued"; -/** Set Discontinued by. -@param DiscontinuedBy Discontinued By */ -public void setDiscontinuedBy (Timestamp DiscontinuedBy) -{ -set_Value ("DiscontinuedBy", DiscontinuedBy); -} -/** Get Discontinued by. -@return Discontinued By */ -public Timestamp getDiscontinuedBy() -{ -return (Timestamp)get_Value("DiscontinuedBy"); -} -/** Column name DiscontinuedBy */ -public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; -/** Set Current vendor. -@param IsCurrentVendor Use this Vendor for pricing and stock replenishment */ -public void setIsCurrentVendor (boolean IsCurrentVendor) -{ -set_Value ("IsCurrentVendor", Boolean.valueOf(IsCurrentVendor)); -} -/** Get Current vendor. -@return Use this Vendor for pricing and stock replenishment */ -public boolean isCurrentVendor() -{ -Object oo = get_Value("IsCurrentVendor"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCurrentVendor */ -public static final String COLUMNNAME_IsCurrentVendor = "IsCurrentVendor"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Manufacturer. -@param Manufacturer Manufacturer of the Product */ -public void setManufacturer (String Manufacturer) -{ -if (Manufacturer != null && Manufacturer.length() > 30) -{ -log.warning("Length > 30 - truncated"); -Manufacturer = Manufacturer.substring(0,29); -} -set_Value ("Manufacturer", Manufacturer); -} -/** Get Manufacturer. -@return Manufacturer of the Product */ -public String getManufacturer() -{ -return (String)get_Value("Manufacturer"); -} -/** Column name Manufacturer */ -public static final String COLUMNNAME_Manufacturer = "Manufacturer"; -/** Set Minimum Order Qty. -@param Order_Min Minimum order quantity in UOM */ -public void setOrder_Min (BigDecimal Order_Min) -{ -set_Value ("Order_Min", Order_Min); -} -/** Get Minimum Order Qty. -@return Minimum order quantity in UOM */ -public BigDecimal getOrder_Min() -{ -BigDecimal bd = (BigDecimal)get_Value("Order_Min"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Order_Min */ -public static final String COLUMNNAME_Order_Min = "Order_Min"; -/** Set Order Pack Qty. -@param Order_Pack Package order size in UOM (e.g. order set of 5 units) */ -public void setOrder_Pack (BigDecimal Order_Pack) -{ -set_Value ("Order_Pack", Order_Pack); -} -/** Get Order Pack Qty. -@return Package order size in UOM (e.g. order set of 5 units) */ -public BigDecimal getOrder_Pack() -{ -BigDecimal bd = (BigDecimal)get_Value("Order_Pack"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Order_Pack */ -public static final String COLUMNNAME_Order_Pack = "Order_Pack"; -/** Set Price effective. -@param PriceEffective Effective Date of Price */ -public void setPriceEffective (Timestamp PriceEffective) -{ -set_Value ("PriceEffective", PriceEffective); -} -/** Get Price effective. -@return Effective Date of Price */ -public Timestamp getPriceEffective() -{ -return (Timestamp)get_Value("PriceEffective"); -} -/** Column name PriceEffective */ -public static final String COLUMNNAME_PriceEffective = "PriceEffective"; -/** Set Last Invoice Price. -@param PriceLastInv Price of the last invoice for the product */ -public void setPriceLastInv (BigDecimal PriceLastInv) -{ -set_ValueNoCheck ("PriceLastInv", PriceLastInv); -} -/** Get Last Invoice Price. -@return Price of the last invoice for the product */ -public BigDecimal getPriceLastInv() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLastInv"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLastInv */ -public static final String COLUMNNAME_PriceLastInv = "PriceLastInv"; -/** Set Last PO Price. -@param PriceLastPO Price of the last purchase order for the product */ -public void setPriceLastPO (BigDecimal PriceLastPO) -{ -set_ValueNoCheck ("PriceLastPO", PriceLastPO); -} -/** Get Last PO Price. -@return Price of the last purchase order for the product */ -public BigDecimal getPriceLastPO() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLastPO"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLastPO */ -public static final String COLUMNNAME_PriceLastPO = "PriceLastPO"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -set_Value ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set PO Price. -@param PricePO Price based on a purchase order */ -public void setPricePO (BigDecimal PricePO) -{ -set_Value ("PricePO", PricePO); -} -/** Get PO Price. -@return Price based on a purchase order */ -public BigDecimal getPricePO() -{ -BigDecimal bd = (BigDecimal)get_Value("PricePO"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PricePO */ -public static final String COLUMNNAME_PricePO = "PricePO"; -/** Set Quality Rating. -@param QualityRating Method for rating vendors */ -public void setQualityRating (int QualityRating) -{ -set_Value ("QualityRating", Integer.valueOf(QualityRating)); -} -/** Get Quality Rating. -@return Method for rating vendors */ -public int getQualityRating() -{ -Integer ii = (Integer)get_Value("QualityRating"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name QualityRating */ -public static final String COLUMNNAME_QualityRating = "QualityRating"; -/** Set Royalty Amount. -@param RoyaltyAmt (Included) Amount for copyright, etc. */ -public void setRoyaltyAmt (BigDecimal RoyaltyAmt) -{ -set_Value ("RoyaltyAmt", RoyaltyAmt); -} -/** Get Royalty Amount. -@return (Included) Amount for copyright, etc. */ -public BigDecimal getRoyaltyAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RoyaltyAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RoyaltyAmt */ -public static final String COLUMNNAME_RoyaltyAmt = "RoyaltyAmt"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 20) -{ -log.warning("Length > 20 - truncated"); -UPC = UPC.substring(0,19); -} -set_Value ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -/** Set Partner Category. -@param VendorCategory Product Category of the Business Partner */ -public void setVendorCategory (String VendorCategory) -{ -if (VendorCategory != null && VendorCategory.length() > 30) -{ -log.warning("Length > 30 - truncated"); -VendorCategory = VendorCategory.substring(0,29); -} -set_Value ("VendorCategory", VendorCategory); -} -/** Get Partner Category. -@return Product Category of the Business Partner */ -public String getVendorCategory() -{ -return (String)get_Value("VendorCategory"); -} -/** Column name VendorCategory */ -public static final String COLUMNNAME_VendorCategory = "VendorCategory"; -/** Set Partner Product Key. -@param VendorProductNo Product Key of the Business Partner */ -public void setVendorProductNo (String VendorProductNo) -{ -if (VendorProductNo == null) throw new IllegalArgumentException ("VendorProductNo is mandatory."); -if (VendorProductNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -VendorProductNo = VendorProductNo.substring(0,29); -} -set_Value ("VendorProductNo", VendorProductNo); -} -/** Get Partner Product Key. -@return Product Key of the Business Partner */ -public String getVendorProductNo() -{ -return (String)get_Value("VendorProductNo"); -} -/** Column name VendorProductNo */ -public static final String COLUMNNAME_VendorProductNo = "VendorProductNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product_PO (Properties ctx, int M_Product_PO_ID, String trxName) + { + super (ctx, M_Product_PO_ID, trxName); + /** if (M_Product_PO_ID == 0) { setC_BPartner_ID (0); +// 0 + setIsCurrentVendor (true); +// Y + setM_Product_ID (0); +// @M_Product_ID@ + setVendorProductNo (null); +// @Value@ +} */ + } + + /** Load Constructor */ + public X_M_Product_PO (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Product_PO[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost per Order. + @param CostPerOrder + Fixed Cost Per Order + */ + public void setCostPerOrder (BigDecimal CostPerOrder) + { + set_Value (COLUMNNAME_CostPerOrder, CostPerOrder); + } + + /** Get Cost per Order. + @return Fixed Cost Per Order + */ + public BigDecimal getCostPerOrder () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostPerOrder); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Actual Delivery Time. + @param DeliveryTime_Actual + Actual days between order and delivery + */ + public void setDeliveryTime_Actual (int DeliveryTime_Actual) + { + set_Value (COLUMNNAME_DeliveryTime_Actual, Integer.valueOf(DeliveryTime_Actual)); + } + + /** Get Actual Delivery Time. + @return Actual days between order and delivery + */ + public int getDeliveryTime_Actual () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryTime_Actual); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Promised Delivery Time. + @param DeliveryTime_Promised + Promised days between order and delivery + */ + public void setDeliveryTime_Promised (int DeliveryTime_Promised) + { + set_Value (COLUMNNAME_DeliveryTime_Promised, Integer.valueOf(DeliveryTime_Promised)); + } + + /** Get Promised Delivery Time. + @return Promised days between order and delivery + */ + public int getDeliveryTime_Promised () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DeliveryTime_Promised); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Discontinued. + @param Discontinued + This product is no longer available + */ + public void setDiscontinued (boolean Discontinued) + { + set_Value (COLUMNNAME_Discontinued, Boolean.valueOf(Discontinued)); + } + + /** Get Discontinued. + @return This product is no longer available + */ + public boolean isDiscontinued () + { + Object oo = get_Value(COLUMNNAME_Discontinued); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discontinued by. + @param DiscontinuedBy + Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy) + { + set_Value (COLUMNNAME_DiscontinuedBy, DiscontinuedBy); + } + + /** Get Discontinued by. + @return Discontinued By + */ + public Timestamp getDiscontinuedBy () + { + return (Timestamp)get_Value(COLUMNNAME_DiscontinuedBy); + } + + /** Set Current vendor. + @param IsCurrentVendor + Use this Vendor for pricing and stock replenishment + */ + public void setIsCurrentVendor (boolean IsCurrentVendor) + { + set_Value (COLUMNNAME_IsCurrentVendor, Boolean.valueOf(IsCurrentVendor)); + } + + /** Get Current vendor. + @return Use this Vendor for pricing and stock replenishment + */ + public boolean isCurrentVendor () + { + Object oo = get_Value(COLUMNNAME_IsCurrentVendor); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Manufacturer. + @param Manufacturer + Manufacturer of the Product + */ + public void setManufacturer (String Manufacturer) + { + if (Manufacturer != null && Manufacturer.length() > 30) + { + log.warning("Length > 30 - truncated"); + Manufacturer = Manufacturer.substring(0, 29); + } + set_Value (COLUMNNAME_Manufacturer, Manufacturer); + } + + /** Get Manufacturer. + @return Manufacturer of the Product + */ + public String getManufacturer () + { + return (String)get_Value(COLUMNNAME_Manufacturer); + } + + /** Set Minimum Order Qty. + @param Order_Min + Minimum order quantity in UOM + */ + public void setOrder_Min (BigDecimal Order_Min) + { + set_Value (COLUMNNAME_Order_Min, Order_Min); + } + + /** Get Minimum Order Qty. + @return Minimum order quantity in UOM + */ + public BigDecimal getOrder_Min () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Order_Min); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Order Pack Qty. + @param Order_Pack + Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (BigDecimal Order_Pack) + { + set_Value (COLUMNNAME_Order_Pack, Order_Pack); + } + + /** Get Order Pack Qty. + @return Package order size in UOM (e.g. order set of 5 units) + */ + public BigDecimal getOrder_Pack () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Order_Pack); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price effective. + @param PriceEffective + Effective Date of Price + */ + public void setPriceEffective (Timestamp PriceEffective) + { + set_Value (COLUMNNAME_PriceEffective, PriceEffective); + } + + /** Get Price effective. + @return Effective Date of Price + */ + public Timestamp getPriceEffective () + { + return (Timestamp)get_Value(COLUMNNAME_PriceEffective); + } + + /** Set Last Invoice Price. + @param PriceLastInv + Price of the last invoice for the product + */ + public void setPriceLastInv (BigDecimal PriceLastInv) + { + set_ValueNoCheck (COLUMNNAME_PriceLastInv, PriceLastInv); + } + + /** Get Last Invoice Price. + @return Price of the last invoice for the product + */ + public BigDecimal getPriceLastInv () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLastInv); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Last PO Price. + @param PriceLastPO + Price of the last purchase order for the product + */ + public void setPriceLastPO (BigDecimal PriceLastPO) + { + set_ValueNoCheck (COLUMNNAME_PriceLastPO, PriceLastPO); + } + + /** Get Last PO Price. + @return Price of the last purchase order for the product + */ + public BigDecimal getPriceLastPO () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLastPO); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + set_Value (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Price. + @param PricePO + Price based on a purchase order + */ + public void setPricePO (BigDecimal PricePO) + { + set_Value (COLUMNNAME_PricePO, PricePO); + } + + /** Get PO Price. + @return Price based on a purchase order + */ + public BigDecimal getPricePO () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePO); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quality Rating. + @param QualityRating + Method for rating vendors + */ + public void setQualityRating (int QualityRating) + { + set_Value (COLUMNNAME_QualityRating, Integer.valueOf(QualityRating)); + } + + /** Get Quality Rating. + @return Method for rating vendors + */ + public int getQualityRating () + { + Integer ii = (Integer)get_Value(COLUMNNAME_QualityRating); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Royalty Amount. + @param RoyaltyAmt + (Included) Amount for copyright, etc. + */ + public void setRoyaltyAmt (BigDecimal RoyaltyAmt) + { + set_Value (COLUMNNAME_RoyaltyAmt, RoyaltyAmt); + } + + /** Get Royalty Amount. + @return (Included) Amount for copyright, etc. + */ + public BigDecimal getRoyaltyAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RoyaltyAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 20) + { + log.warning("Length > 20 - truncated"); + UPC = UPC.substring(0, 19); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Partner Category. + @param VendorCategory + Product Category of the Business Partner + */ + public void setVendorCategory (String VendorCategory) + { + if (VendorCategory != null && VendorCategory.length() > 30) + { + log.warning("Length > 30 - truncated"); + VendorCategory = VendorCategory.substring(0, 29); + } + set_Value (COLUMNNAME_VendorCategory, VendorCategory); + } + + /** Get Partner Category. + @return Product Category of the Business Partner + */ + public String getVendorCategory () + { + return (String)get_Value(COLUMNNAME_VendorCategory); + } + + /** Set Partner Product Key. + @param VendorProductNo + Product Key of the Business Partner + */ + public void setVendorProductNo (String VendorProductNo) + { + if (VendorProductNo == null) + throw new IllegalArgumentException ("VendorProductNo is mandatory."); + if (VendorProductNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + VendorProductNo = VendorProductNo.substring(0, 29); + } + set_Value (COLUMNNAME_VendorProductNo, VendorProductNo); + } + + /** Get Partner Product Key. + @return Product Key of the Business Partner + */ + public String getVendorProductNo () + { + return (String)get_Value(COLUMNNAME_VendorProductNo); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Production.java b/base/src/org/compiere/model/X_M_Production.java index fe165acc0d..6efde7c2b6 100644 --- a/base/src/org/compiere/model/X_M_Production.java +++ b/base/src/org/compiere/model/X_M_Production.java @@ -1,367 +1,450 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Production - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Production extends PO + +/** Generated Model for M_Production + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Production extends PO implements I_M_Production, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Production_ID id -@param trxName transaction -*/ -public X_M_Production (Properties ctx, int M_Production_ID, String trxName) -{ -super (ctx, M_Production_ID, trxName); -/** if (M_Production_ID == 0) -{ -setIsCreated (false); -setM_Production_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); // @#Date@ -setName (null); -setPosted (false); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Production (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Production */ -public static final String Table_Name="M_Production"; - -/** AD_Table_ID=325 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Production[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Production (Properties ctx, int M_Production_ID, String trxName) + { + super (ctx, M_Production_ID, trxName); + /** if (M_Production_ID == 0) { setIsCreated (false); + setM_Production_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setName (null); + setPosted (false); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_Production (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Production[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_OrgTrx_ID AD_Reference_ID=130 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=130; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_Value ("AD_OrgTrx_ID", null); - else -set_Value ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Records created. -@param IsCreated Records created */ -public void setIsCreated (boolean IsCreated) -{ -set_ValueNoCheck ("IsCreated", Boolean.valueOf(IsCreated)); -} -/** Get Records created. -@return Records created */ -public boolean isCreated() -{ -Object oo = get_Value("IsCreated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCreated */ -public static final String COLUMNNAME_IsCreated = "IsCreated"; -/** Set Production. -@param M_Production_ID Plan for producing a product */ -public void setM_Production_ID (int M_Production_ID) -{ -if (M_Production_ID < 1) throw new IllegalArgumentException ("M_Production_ID is mandatory."); -set_ValueNoCheck ("M_Production_ID", Integer.valueOf(M_Production_ID)); -} -/** Get Production. -@return Plan for producing a product */ -public int getM_Production_ID() -{ -Integer ii = (Integer)get_Value("M_Production_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Production_ID */ -public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Records created. + @param IsCreated Records created */ + public void setIsCreated (boolean IsCreated) + { + set_ValueNoCheck (COLUMNNAME_IsCreated, Boolean.valueOf(IsCreated)); + } + + /** Get Records created. +@return Records created */ + public boolean isCreated () + { + Object oo = get_Value(COLUMNNAME_IsCreated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Production. + @param M_Production_ID + Plan for producing a product + */ + public void setM_Production_ID (int M_Production_ID) + { + if (M_Production_ID < 1) + throw new IllegalArgumentException ("M_Production_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); + } + + /** Get Production. + @return Plan for producing a product + */ + public int getM_Production_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Production_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** User1_ID AD_Reference_ID=134 */ public static final int USER1_ID_AD_Reference_ID=134; -/** Set User List 1. -@param User1_ID User defined list element #1 */ -public void setUser1_ID (int User1_ID) -{ -if (User1_ID <= 0) set_Value ("User1_ID", null); - else -set_Value ("User1_ID", Integer.valueOf(User1_ID)); -} -/** Get User List 1. -@return User defined list element #1 */ -public int getUser1_ID() -{ -Integer ii = (Integer)get_Value("User1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User1_ID */ -public static final String COLUMNNAME_User1_ID = "User1_ID"; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID <= 0) set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** User2_ID AD_Reference_ID=137 */ public static final int USER2_ID_AD_Reference_ID=137; -/** Set User List 2. -@param User2_ID User defined list element #2 */ -public void setUser2_ID (int User2_ID) -{ -if (User2_ID <= 0) set_Value ("User2_ID", null); - else -set_Value ("User2_ID", Integer.valueOf(User2_ID)); -} -/** Get User List 2. -@return User defined list element #2 */ -public int getUser2_ID() -{ -Integer ii = (Integer)get_Value("User2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name User2_ID */ -public static final String COLUMNNAME_User2_ID = "User2_ID"; -} + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID <= 0) set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ProductionLine.java b/base/src/org/compiere/model/X_M_ProductionLine.java index 86d637c573..cca15c5752 100644 --- a/base/src/org/compiere/model/X_M_ProductionLine.java +++ b/base/src/org/compiere/model/X_M_ProductionLine.java @@ -1,258 +1,304 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ProductionLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ProductionLine extends PO + +/** Generated Model for M_ProductionLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ProductionLine extends PO implements I_M_ProductionLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ProductionLine_ID id -@param trxName transaction -*/ -public X_M_ProductionLine (Properties ctx, int M_ProductionLine_ID, String trxName) -{ -super (ctx, M_ProductionLine_ID, trxName); -/** if (M_ProductionLine_ID == 0) -{ -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_ProductionLine WHERE M_ProductionPlan_ID=@M_ProductionPlan_ID@ -setM_AttributeSetInstance_ID (0); -setM_Locator_ID (0); // @M_Locator_ID@ -setM_Product_ID (0); -setM_ProductionLine_ID (0); -setM_ProductionPlan_ID (0); -setMovementQty (Env.ZERO); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ProductionLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ProductionLine */ -public static final String Table_Name="M_ProductionLine"; - -/** AD_Table_ID=326 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ProductionLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Production Line. -@param M_ProductionLine_ID Document Line representing a production */ -public void setM_ProductionLine_ID (int M_ProductionLine_ID) -{ -if (M_ProductionLine_ID < 1) throw new IllegalArgumentException ("M_ProductionLine_ID is mandatory."); -set_ValueNoCheck ("M_ProductionLine_ID", Integer.valueOf(M_ProductionLine_ID)); -} -/** Get Production Line. -@return Document Line representing a production */ -public int getM_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionLine_ID */ -public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; -/** Set Production Plan. -@param M_ProductionPlan_ID Plan for how a product is produced */ -public void setM_ProductionPlan_ID (int M_ProductionPlan_ID) -{ -if (M_ProductionPlan_ID < 1) throw new IllegalArgumentException ("M_ProductionPlan_ID is mandatory."); -set_ValueNoCheck ("M_ProductionPlan_ID", Integer.valueOf(M_ProductionPlan_ID)); -} -/** Get Production Plan. -@return Plan for how a product is produced */ -public int getM_ProductionPlan_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionPlan_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionPlan_ID */ -public static final String COLUMNNAME_M_ProductionPlan_ID = "M_ProductionPlan_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ProductionLine (Properties ctx, int M_ProductionLine_ID, String trxName) + { + super (ctx, M_ProductionLine_ID, trxName); + /** if (M_ProductionLine_ID == 0) { setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_ProductionLine WHERE M_ProductionPlan_ID=@M_ProductionPlan_ID@ + setM_AttributeSetInstance_ID (0); + setM_Locator_ID (0); +// @M_Locator_ID@ + setM_Product_ID (0); + setM_ProductionLine_ID (0); + setM_ProductionPlan_ID (0); + setMovementQty (Env.ZERO); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_M_ProductionLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ProductionLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID < 1) + throw new IllegalArgumentException ("M_ProductionLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ProductionPlan getI_M_ProductionPlan() throws Exception + { + 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 e; + } + return result; + } + + /** Set Production Plan. + @param M_ProductionPlan_ID + Plan for how a product is produced + */ + public void setM_ProductionPlan_ID (int M_ProductionPlan_ID) + { + if (M_ProductionPlan_ID < 1) + throw new IllegalArgumentException ("M_ProductionPlan_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, Integer.valueOf(M_ProductionPlan_ID)); + } + + /** Get Production Plan. + @return Plan for how a product is produced + */ + public int getM_ProductionPlan_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionPlan_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ProductionLineMA.java b/base/src/org/compiere/model/X_M_ProductionLineMA.java index d27bd57be7..5c01fabd4c 100644 --- a/base/src/org/compiere/model/X_M_ProductionLineMA.java +++ b/base/src/org/compiere/model/X_M_ProductionLineMA.java @@ -1,147 +1,149 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ProductionLineMA - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ProductionLineMA extends PO + +/** Generated Model for M_ProductionLineMA + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ProductionLineMA extends PO implements I_M_ProductionLineMA, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ProductionLineMA_ID id -@param trxName transaction -*/ -public X_M_ProductionLineMA (Properties ctx, int M_ProductionLineMA_ID, String trxName) -{ -super (ctx, M_ProductionLineMA_ID, trxName); -/** if (M_ProductionLineMA_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_ProductionLine_ID (0); -setMovementQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ProductionLineMA (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ProductionLineMA */ -public static final String Table_Name="M_ProductionLineMA"; - -/** AD_Table_ID=765 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ProductionLineMA[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Production Line. -@param M_ProductionLine_ID Document Line representing a production */ -public void setM_ProductionLine_ID (int M_ProductionLine_ID) -{ -if (M_ProductionLine_ID < 1) throw new IllegalArgumentException ("M_ProductionLine_ID is mandatory."); -set_ValueNoCheck ("M_ProductionLine_ID", Integer.valueOf(M_ProductionLine_ID)); -} -/** Get Production Line. -@return Document Line representing a production */ -public int getM_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_ProductionLine_ID())); -} -/** Column name M_ProductionLine_ID */ -public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ProductionLineMA (Properties ctx, int M_ProductionLineMA_ID, String trxName) + { + super (ctx, M_ProductionLineMA_ID, trxName); + /** if (M_ProductionLineMA_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_ProductionLine_ID (0); + setMovementQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_ProductionLineMA (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ProductionLineMA[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID < 1) + throw new IllegalArgumentException ("M_ProductionLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_ProductionLine_ID())); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ProductionPlan.java b/base/src/org/compiere/model/X_M_ProductionPlan.java index 5abe90b38d..aade81abd3 100644 --- a/base/src/org/compiere/model/X_M_ProductionPlan.java +++ b/base/src/org/compiere/model/X_M_ProductionPlan.java @@ -1,243 +1,284 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_ProductionPlan - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_ProductionPlan extends PO + +/** Generated Model for M_ProductionPlan + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_ProductionPlan extends PO implements I_M_ProductionPlan, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_ProductionPlan_ID id -@param trxName transaction -*/ -public X_M_ProductionPlan (Properties ctx, int M_ProductionPlan_ID, String trxName) -{ -super (ctx, M_ProductionPlan_ID, trxName); -/** if (M_ProductionPlan_ID == 0) -{ -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_ProductionPlan WHERE M_Production_ID=@M_Production_ID@ -setM_Locator_ID (0); // @M_Locator_ID@ -setM_Product_ID (0); -setM_ProductionPlan_ID (0); -setM_Production_ID (0); -setProcessed (false); -setProductionQty (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_ProductionPlan (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_ProductionPlan */ -public static final String Table_Name="M_ProductionPlan"; - -/** AD_Table_ID=385 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_ProductionPlan[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ProductionPlan (Properties ctx, int M_ProductionPlan_ID, String trxName) + { + super (ctx, M_ProductionPlan_ID, trxName); + /** if (M_ProductionPlan_ID == 0) { setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_ProductionPlan WHERE M_Production_ID=@M_Production_ID@ + setM_Locator_ID (0); +// @M_Locator_ID@ + setM_Product_ID (0); + setM_ProductionPlan_ID (0); + setM_Production_ID (0); + setProcessed (false); + setProductionQty (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_M_ProductionPlan (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_ProductionPlan[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_Product_ID AD_Reference_ID=211 */ public static final int M_PRODUCT_ID_AD_Reference_ID=211; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Production Plan. -@param M_ProductionPlan_ID Plan for how a product is produced */ -public void setM_ProductionPlan_ID (int M_ProductionPlan_ID) -{ -if (M_ProductionPlan_ID < 1) throw new IllegalArgumentException ("M_ProductionPlan_ID is mandatory."); -set_ValueNoCheck ("M_ProductionPlan_ID", Integer.valueOf(M_ProductionPlan_ID)); -} -/** Get Production Plan. -@return Plan for how a product is produced */ -public int getM_ProductionPlan_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionPlan_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionPlan_ID */ -public static final String COLUMNNAME_M_ProductionPlan_ID = "M_ProductionPlan_ID"; -/** Set Production. -@param M_Production_ID Plan for producing a product */ -public void setM_Production_ID (int M_Production_ID) -{ -if (M_Production_ID < 1) throw new IllegalArgumentException ("M_Production_ID is mandatory."); -set_ValueNoCheck ("M_Production_ID", Integer.valueOf(M_Production_ID)); -} -/** Get Production. -@return Plan for producing a product */ -public int getM_Production_ID() -{ -Integer ii = (Integer)get_Value("M_Production_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Production_ID */ -public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Production Quantity. -@param ProductionQty Quantity of products to produce */ -public void setProductionQty (BigDecimal ProductionQty) -{ -if (ProductionQty == null) throw new IllegalArgumentException ("ProductionQty is mandatory."); -set_Value ("ProductionQty", ProductionQty); -} -/** Get Production Quantity. -@return Quantity of products to produce */ -public BigDecimal getProductionQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ProductionQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ProductionQty */ -public static final String COLUMNNAME_ProductionQty = "ProductionQty"; -} + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Plan. + @param M_ProductionPlan_ID + Plan for how a product is produced + */ + public void setM_ProductionPlan_ID (int M_ProductionPlan_ID) + { + if (M_ProductionPlan_ID < 1) + throw new IllegalArgumentException ("M_ProductionPlan_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ProductionPlan_ID, Integer.valueOf(M_ProductionPlan_ID)); + } + + /** Get Production Plan. + @return Plan for how a product is produced + */ + public int getM_ProductionPlan_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionPlan_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Production getI_M_Production() throws Exception + { + 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 e; + } + return result; + } + + /** Set Production. + @param M_Production_ID + Plan for producing a product + */ + public void setM_Production_ID (int M_Production_ID) + { + if (M_Production_ID < 1) + throw new IllegalArgumentException ("M_Production_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); + } + + /** Get Production. + @return Plan for producing a product + */ + public int getM_Production_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Production_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Production Quantity. + @param ProductionQty + Quantity of products to produce + */ + public void setProductionQty (BigDecimal ProductionQty) + { + if (ProductionQty == null) + throw new IllegalArgumentException ("ProductionQty is mandatory."); + set_Value (COLUMNNAME_ProductionQty, ProductionQty); + } + + /** Get Production Quantity. + @return Quantity of products to produce + */ + public BigDecimal getProductionQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ProductionQty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_RMA.java b/base/src/org/compiere/model/X_M_RMA.java index f271c472be..70d44fbfa8 100644 --- a/base/src/org/compiere/model/X_M_RMA.java +++ b/base/src/org/compiere/model/X_M_RMA.java @@ -1,548 +1,610 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_RMA - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_RMA extends PO + +/** Generated Model for M_RMA + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_RMA extends PO implements I_M_RMA, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_RMA_ID id -@param trxName transaction -*/ -public X_M_RMA (Properties ctx, int M_RMA_ID, String trxName) -{ -super (ctx, M_RMA_ID, trxName); -/** if (M_RMA_ID == 0) -{ -setC_DocType_ID (0); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setInOut_ID (0); -setIsApproved (false); -setIsSOTrx (false); // @IsSOTrx@ -setM_RMAType_ID (0); -setM_RMA_ID (0); -setName (null); -setProcessed (false); -setSalesRep_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_RMA (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_RMA */ -public static final String Table_Name="M_RMA"; - -/** AD_Table_ID=661 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_RMA[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_RMA (Properties ctx, int M_RMA_ID, String trxName) + { + super (ctx, M_RMA_ID, trxName); + /** if (M_RMA_ID == 0) { setC_DocType_ID (0); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setInOut_ID (0); + setIsApproved (false); + setIsSOTrx (false); +// @IsSOTrx@ + setM_RMAType_ID (0); + setM_RMA_ID (0); + setName (null); + setProcessed (false); + setSalesRep_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_RMA (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_RMA[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocType_ID AD_Reference_ID=321 */ public static final int C_DOCTYPE_ID_AD_Reference_ID=321; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Generate To. -@param GenerateTo Generate To */ -public void setGenerateTo (String GenerateTo) -{ -if (GenerateTo != null && GenerateTo.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GenerateTo = GenerateTo.substring(0,0); -} -set_Value ("GenerateTo", GenerateTo); -} -/** Get Generate To. -@return Generate To */ -public String getGenerateTo() -{ -return (String)get_Value("GenerateTo"); -} -/** Column name GenerateTo */ -public static final String COLUMNNAME_GenerateTo = "GenerateTo"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Generate To. + @param GenerateTo + Generate To + */ + public void setGenerateTo (String GenerateTo) + { + if (GenerateTo != null && GenerateTo.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateTo = GenerateTo.substring(0, 0); + } + set_Value (COLUMNNAME_GenerateTo, GenerateTo); + } + + /** Get Generate To. + @return Generate To + */ + public String getGenerateTo () + { + return (String)get_Value(COLUMNNAME_GenerateTo); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } /** InOut_ID AD_Reference_ID=337 */ public static final int INOUT_ID_AD_Reference_ID=337; -/** Set Shipment/Receipt. -@param InOut_ID MaterialShipment Document */ -public void setInOut_ID (int InOut_ID) -{ -if (InOut_ID < 1) throw new IllegalArgumentException ("InOut_ID is mandatory."); -set_ValueNoCheck ("InOut_ID", Integer.valueOf(InOut_ID)); -} -/** Get Shipment/Receipt. -@return MaterialShipment Document */ -public int getInOut_ID() -{ -Integer ii = (Integer)get_Value("InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name InOut_ID */ -public static final String COLUMNNAME_InOut_ID = "InOut_ID"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set RMA Type. -@param M_RMAType_ID Return Material Authorization Type */ -public void setM_RMAType_ID (int M_RMAType_ID) -{ -if (M_RMAType_ID < 1) throw new IllegalArgumentException ("M_RMAType_ID is mandatory."); -set_Value ("M_RMAType_ID", Integer.valueOf(M_RMAType_ID)); -} -/** Get RMA Type. -@return Return Material Authorization Type */ -public int getM_RMAType_ID() -{ -Integer ii = (Integer)get_Value("M_RMAType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMAType_ID */ -public static final String COLUMNNAME_M_RMAType_ID = "M_RMAType_ID"; -/** Set RMA. -@param M_RMA_ID Return Material Authorization */ -public void setM_RMA_ID (int M_RMA_ID) -{ -if (M_RMA_ID < 1) throw new IllegalArgumentException ("M_RMA_ID is mandatory."); -set_ValueNoCheck ("M_RMA_ID", Integer.valueOf(M_RMA_ID)); -} -/** Get RMA. -@return Return Material Authorization */ -public int getM_RMA_ID() -{ -Integer ii = (Integer)get_Value("M_RMA_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMA_ID */ -public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Shipment/Receipt. + @param InOut_ID + MaterialShipment Document + */ + public void setInOut_ID (int InOut_ID) + { + if (InOut_ID < 1) + throw new IllegalArgumentException ("InOut_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_InOut_ID, Integer.valueOf(InOut_ID)); + } + + /** Get Shipment/Receipt. + @return MaterialShipment Document + */ + public int getInOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_RMAType getI_M_RMAType() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA Type. + @param M_RMAType_ID + Return Material Authorization Type + */ + public void setM_RMAType_ID (int M_RMAType_ID) + { + if (M_RMAType_ID < 1) + throw new IllegalArgumentException ("M_RMAType_ID is mandatory."); + set_Value (COLUMNNAME_M_RMAType_ID, Integer.valueOf(M_RMAType_ID)); + } + + /** Get RMA Type. + @return Return Material Authorization Type + */ + public int getM_RMAType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMAType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID < 1) + throw new IllegalArgumentException ("M_RMA_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_RMALine.java b/base/src/org/compiere/model/X_M_RMALine.java index 9c5eb00e71..df2ddec5cf 100644 --- a/base/src/org/compiere/model/X_M_RMALine.java +++ b/base/src/org/compiere/model/X_M_RMALine.java @@ -1,287 +1,368 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_RMALine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_RMALine extends PO + +/** Generated Model for M_RMALine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_RMALine extends PO implements I_M_RMALine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_RMALine_ID id -@param trxName transaction -*/ -public X_M_RMALine (Properties ctx, int M_RMALine_ID, String trxName) -{ -super (ctx, M_RMALine_ID, trxName); -/** if (M_RMALine_ID == 0) -{ -setM_RMALine_ID (0); -setM_RMA_ID (0); -setProcessed (false); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_RMALine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_RMALine */ -public static final String Table_Name="M_RMALine"; - -/** AD_Table_ID=660 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_RMALine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Amount. -@param Amt Amount */ -public void setAmt (BigDecimal Amt) -{ -set_Value ("Amt", Amt); -} -/** Get Amount. -@return Amount */ -public BigDecimal getAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("Amt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Amt */ -public static final String COLUMNNAME_Amt = "Amt"; -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Line Amount. -@param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public void setLineNetAmt (BigDecimal LineNetAmt) -{ -set_Value ("LineNetAmt", LineNetAmt); -} -/** Get Line Amount. -@return Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public BigDecimal getLineNetAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineNetAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineNetAmt */ -public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null); - else -set_Value ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set RMA Line. -@param M_RMALine_ID Return Material Authorization Line */ -public void setM_RMALine_ID (int M_RMALine_ID) -{ -if (M_RMALine_ID < 1) throw new IllegalArgumentException ("M_RMALine_ID is mandatory."); -set_ValueNoCheck ("M_RMALine_ID", Integer.valueOf(M_RMALine_ID)); -} -/** Get RMA Line. -@return Return Material Authorization Line */ -public int getM_RMALine_ID() -{ -Integer ii = (Integer)get_Value("M_RMALine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMALine_ID */ -public static final String COLUMNNAME_M_RMALine_ID = "M_RMALine_ID"; -/** Set RMA. -@param M_RMA_ID Return Material Authorization */ -public void setM_RMA_ID (int M_RMA_ID) -{ -if (M_RMA_ID < 1) throw new IllegalArgumentException ("M_RMA_ID is mandatory."); -set_ValueNoCheck ("M_RMA_ID", Integer.valueOf(M_RMA_ID)); -} -/** Get RMA. -@return Return Material Authorization */ -public int getM_RMA_ID() -{ -Integer ii = (Integer)get_Value("M_RMA_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_RMA_ID())); -} -/** Column name M_RMA_ID */ -public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Delivered Quantity. -@param QtyDelivered Delivered Quantity */ -public void setQtyDelivered (BigDecimal QtyDelivered) -{ -set_Value ("QtyDelivered", QtyDelivered); -} -/** Get Delivered Quantity. -@return Delivered Quantity */ -public BigDecimal getQtyDelivered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyDelivered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyDelivered */ -public static final String COLUMNNAME_QtyDelivered = "QtyDelivered"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_RMALine (Properties ctx, int M_RMALine_ID, String trxName) + { + super (ctx, M_RMALine_ID, trxName); + /** if (M_RMALine_ID == 0) { setM_RMALine_ID (0); + setM_RMA_ID (0); + setProcessed (false); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_RMALine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_RMALine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amt + Amount + */ + public void setAmt (BigDecimal Amt) + { + set_Value (COLUMNNAME_Amt, Amt); + } + + /** Get Amount. + @return Amount + */ + public BigDecimal getAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line Amount. + @param LineNetAmt + Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt) + { + set_Value (COLUMNNAME_LineNetAmt, LineNetAmt); + } + + /** Get Line Amount. + @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_M_InOutLine getI_M_InOutLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_Value (COLUMNNAME_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RMA Line. + @param M_RMALine_ID + Return Material Authorization Line + */ + public void setM_RMALine_ID (int M_RMALine_ID) + { + if (M_RMALine_ID < 1) + throw new IllegalArgumentException ("M_RMALine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_RMALine_ID, Integer.valueOf(M_RMALine_ID)); + } + + /** Get RMA Line. + @return Return Material Authorization Line + */ + public int getM_RMALine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMALine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getI_M_RMA() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID < 1) + throw new IllegalArgumentException ("M_RMA_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_RMA_ID())); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Delivered Quantity. + @param QtyDelivered + Delivered Quantity + */ + public void setQtyDelivered (BigDecimal QtyDelivered) + { + set_Value (COLUMNNAME_QtyDelivered, QtyDelivered); + } + + /** Get Delivered Quantity. + @return Delivered Quantity + */ + public BigDecimal getQtyDelivered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyDelivered); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_RMAType.java b/base/src/org/compiere/model/X_M_RMAType.java index 9447760b70..eb75d285df 100644 --- a/base/src/org/compiere/model/X_M_RMAType.java +++ b/base/src/org/compiere/model/X_M_RMAType.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_RMAType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_RMAType extends PO + +/** Generated Model for M_RMAType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_RMAType extends PO implements I_M_RMAType, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_RMAType_ID id -@param trxName transaction -*/ -public X_M_RMAType (Properties ctx, int M_RMAType_ID, String trxName) -{ -super (ctx, M_RMAType_ID, trxName); -/** if (M_RMAType_ID == 0) -{ -setM_RMAType_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_RMAType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_RMAType */ -public static final String Table_Name="M_RMAType"; - -/** AD_Table_ID=729 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_RMAType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set RMA Type. -@param M_RMAType_ID Return Material Authorization Type */ -public void setM_RMAType_ID (int M_RMAType_ID) -{ -if (M_RMAType_ID < 1) throw new IllegalArgumentException ("M_RMAType_ID is mandatory."); -set_ValueNoCheck ("M_RMAType_ID", Integer.valueOf(M_RMAType_ID)); -} -/** Get RMA Type. -@return Return Material Authorization Type */ -public int getM_RMAType_ID() -{ -Integer ii = (Integer)get_Value("M_RMAType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMAType_ID */ -public static final String COLUMNNAME_M_RMAType_ID = "M_RMAType_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_RMAType (Properties ctx, int M_RMAType_ID, String trxName) + { + super (ctx, M_RMAType_ID, trxName); + /** if (M_RMAType_ID == 0) { setM_RMAType_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_RMAType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_RMAType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set RMA Type. + @param M_RMAType_ID + Return Material Authorization Type + */ + public void setM_RMAType_ID (int M_RMAType_ID) + { + if (M_RMAType_ID < 1) + throw new IllegalArgumentException ("M_RMAType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_RMAType_ID, Integer.valueOf(M_RMAType_ID)); + } + + /** Get RMA Type. + @return Return Material Authorization Type + */ + public int getM_RMAType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMAType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_RelatedProduct.java b/base/src/org/compiere/model/X_M_RelatedProduct.java index 888ef9c297..656d33ed5d 100644 --- a/base/src/org/compiere/model/X_M_RelatedProduct.java +++ b/base/src/org/compiere/model/X_M_RelatedProduct.java @@ -1,198 +1,192 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_RelatedProduct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_RelatedProduct extends PO + +/** Generated Model for M_RelatedProduct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_RelatedProduct extends PO implements I_M_RelatedProduct, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_RelatedProduct_ID id -@param trxName transaction -*/ -public X_M_RelatedProduct (Properties ctx, int M_RelatedProduct_ID, String trxName) -{ -super (ctx, M_RelatedProduct_ID, trxName); -/** if (M_RelatedProduct_ID == 0) -{ -setM_Product_ID (0); -setName (null); -setRelatedProductType (null); -setRelatedProduct_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_RelatedProduct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_RelatedProduct */ -public static final String Table_Name="M_RelatedProduct"; - -/** AD_Table_ID=662 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_RelatedProduct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_RelatedProduct (Properties ctx, int M_RelatedProduct_ID, String trxName) + { + super (ctx, M_RelatedProduct_ID, trxName); + /** if (M_RelatedProduct_ID == 0) { setM_Product_ID (0); + setName (null); + setRelatedProductType (null); + setRelatedProduct_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_RelatedProduct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_RelatedProduct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } /** RelatedProductType AD_Reference_ID=313 */ -public static final int RELATEDPRODUCTTYPE_AD_Reference_ID=313; -/** Alternative = A */ -public static final String RELATEDPRODUCTTYPE_Alternative = "A"; -/** Web Promotion = P */ -public static final String RELATEDPRODUCTTYPE_WebPromotion = "P"; -/** Supplemental = S */ +public static final int RELATEDPRODUCTTYPE_AD_Reference_ID=313;/** Alternative = A */ +public static final String RELATEDPRODUCTTYPE_Alternative = "A";/** Web Promotion = P */ +public static final String RELATEDPRODUCTTYPE_WebPromotion = "P";/** Supplemental = S */ public static final String RELATEDPRODUCTTYPE_Supplemental = "S"; -/** Set Related Product Type. -@param RelatedProductType Related Product Type */ -public void setRelatedProductType (String RelatedProductType) -{ -if (RelatedProductType == null) throw new IllegalArgumentException ("RelatedProductType is mandatory"); -if (RelatedProductType.equals("A") || RelatedProductType.equals("P") || RelatedProductType.equals("S")); - else throw new IllegalArgumentException ("RelatedProductType Invalid value - " + RelatedProductType + " - Reference_ID=313 - A - P - S"); -if (RelatedProductType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RelatedProductType = RelatedProductType.substring(0,0); -} -set_Value ("RelatedProductType", RelatedProductType); -} -/** Get Related Product Type. -@return Related Product Type */ -public String getRelatedProductType() -{ -return (String)get_Value("RelatedProductType"); -} -/** Column name RelatedProductType */ -public static final String COLUMNNAME_RelatedProductType = "RelatedProductType"; + /** Set Related Product Type. + @param RelatedProductType Related Product Type */ + public void setRelatedProductType (String RelatedProductType) + { +if (RelatedProductType == null) throw new IllegalArgumentException ("RelatedProductType is mandatory");if (RelatedProductType.equals("A") || RelatedProductType.equals("P") || RelatedProductType.equals("S")); else throw new IllegalArgumentException ("RelatedProductType Invalid value - " + RelatedProductType + " - Reference_ID=313 - A - P - S"); if (RelatedProductType.length() > 1) + { + log.warning("Length > 1 - truncated"); + RelatedProductType = RelatedProductType.substring(0, 0); + } + set_Value (COLUMNNAME_RelatedProductType, RelatedProductType); + } + + /** Get Related Product Type. +@return Related Product Type */ + public String getRelatedProductType () + { + return (String)get_Value(COLUMNNAME_RelatedProductType); + } /** RelatedProduct_ID AD_Reference_ID=162 */ public static final int RELATEDPRODUCT_ID_AD_Reference_ID=162; -/** Set Related Product. -@param RelatedProduct_ID Related Product */ -public void setRelatedProduct_ID (int RelatedProduct_ID) -{ -if (RelatedProduct_ID < 1) throw new IllegalArgumentException ("RelatedProduct_ID is mandatory."); -set_ValueNoCheck ("RelatedProduct_ID", Integer.valueOf(RelatedProduct_ID)); -} -/** Get Related Product. -@return Related Product */ -public int getRelatedProduct_ID() -{ -Integer ii = (Integer)get_Value("RelatedProduct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RelatedProduct_ID */ -public static final String COLUMNNAME_RelatedProduct_ID = "RelatedProduct_ID"; -} + /** Set Related Product. + @param RelatedProduct_ID + Related Product + */ + public void setRelatedProduct_ID (int RelatedProduct_ID) + { + if (RelatedProduct_ID < 1) + throw new IllegalArgumentException ("RelatedProduct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_RelatedProduct_ID, Integer.valueOf(RelatedProduct_ID)); + } + + /** Get Related Product. + @return Related Product + */ + public int getRelatedProduct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RelatedProduct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Replenish.java b/base/src/org/compiere/model/X_M_Replenish.java index 9c899faa3a..6e4a1bf61e 100644 --- a/base/src/org/compiere/model/X_M_Replenish.java +++ b/base/src/org/compiere/model/X_M_Replenish.java @@ -1,214 +1,233 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Replenish - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Replenish extends PO + +/** Generated Model for M_Replenish + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Replenish extends PO implements I_M_Replenish, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Replenish_ID id -@param trxName transaction -*/ -public X_M_Replenish (Properties ctx, int M_Replenish_ID, String trxName) -{ -super (ctx, M_Replenish_ID, trxName); -/** if (M_Replenish_ID == 0) -{ -setLevel_Max (Env.ZERO); -setLevel_Min (Env.ZERO); -setM_Product_ID (0); -setM_Warehouse_ID (0); -setReplenishType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Replenish (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Replenish */ -public static final String Table_Name="M_Replenish"; - -/** AD_Table_ID=249 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Replenish[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Maximum Level. -@param Level_Max Maximum Inventory level for this product */ -public void setLevel_Max (BigDecimal Level_Max) -{ -if (Level_Max == null) throw new IllegalArgumentException ("Level_Max is mandatory."); -set_Value ("Level_Max", Level_Max); -} -/** Get Maximum Level. -@return Maximum Inventory level for this product */ -public BigDecimal getLevel_Max() -{ -BigDecimal bd = (BigDecimal)get_Value("Level_Max"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Level_Max */ -public static final String COLUMNNAME_Level_Max = "Level_Max"; -/** Set Minimum Level. -@param Level_Min Minimum Inventory level for this product */ -public void setLevel_Min (BigDecimal Level_Min) -{ -if (Level_Min == null) throw new IllegalArgumentException ("Level_Min is mandatory."); -set_Value ("Level_Min", Level_Min); -} -/** Get Minimum Level. -@return Minimum Inventory level for this product */ -public BigDecimal getLevel_Min() -{ -BigDecimal bd = (BigDecimal)get_Value("Level_Min"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Level_Min */ -public static final String COLUMNNAME_Level_Min = "Level_Min"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Replenish (Properties ctx, int M_Replenish_ID, String trxName) + { + super (ctx, M_Replenish_ID, trxName); + /** if (M_Replenish_ID == 0) { setLevel_Max (Env.ZERO); + setLevel_Min (Env.ZERO); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setReplenishType (null); +} */ + } + + /** Load Constructor */ + public X_M_Replenish (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Replenish[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Maximum Level. + @param Level_Max + Maximum Inventory level for this product + */ + public void setLevel_Max (BigDecimal Level_Max) + { + if (Level_Max == null) + throw new IllegalArgumentException ("Level_Max is mandatory."); + set_Value (COLUMNNAME_Level_Max, Level_Max); + } + + /** Get Maximum Level. + @return Maximum Inventory level for this product + */ + public BigDecimal getLevel_Max () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Level_Max); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Minimum Level. + @param Level_Min + Minimum Inventory level for this product + */ + public void setLevel_Min (BigDecimal Level_Min) + { + if (Level_Min == null) + throw new IllegalArgumentException ("Level_Min is mandatory."); + set_Value (COLUMNNAME_Level_Min, Level_Min); + } + + /** Get Minimum Level. + @return Minimum Inventory level for this product + */ + public BigDecimal getLevel_Min () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Level_Min); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_WarehouseSource_ID AD_Reference_ID=197 */ public static final int M_WAREHOUSESOURCE_ID_AD_Reference_ID=197; -/** Set Source Warehouse. -@param M_WarehouseSource_ID Optional Warehouse to replenish from */ -public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) -{ -if (M_WarehouseSource_ID <= 0) set_Value ("M_WarehouseSource_ID", null); - else -set_Value ("M_WarehouseSource_ID", Integer.valueOf(M_WarehouseSource_ID)); -} -/** Get Source Warehouse. -@return Optional Warehouse to replenish from */ -public int getM_WarehouseSource_ID() -{ -Integer ii = (Integer)get_Value("M_WarehouseSource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_WarehouseSource_ID */ -public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + /** Set Source Warehouse. + @param M_WarehouseSource_ID + Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) + { + if (M_WarehouseSource_ID <= 0) set_Value (COLUMNNAME_M_WarehouseSource_ID, null); + else + set_Value (COLUMNNAME_M_WarehouseSource_ID, Integer.valueOf(M_WarehouseSource_ID)); + } + + /** Get Source Warehouse. + @return Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_WarehouseSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** ReplenishType AD_Reference_ID=164 */ -public static final int REPLENISHTYPE_AD_Reference_ID=164; -/** Manual = 0 */ -public static final String REPLENISHTYPE_Manual = "0"; -/** Reorder below Minimum Level = 1 */ -public static final String REPLENISHTYPE_ReorderBelowMinimumLevel = "1"; -/** Maintain Maximum Level = 2 */ -public static final String REPLENISHTYPE_MaintainMaximumLevel = "2"; -/** Custom = 9 */ +public static final int REPLENISHTYPE_AD_Reference_ID=164;/** Manual = 0 */ +public static final String REPLENISHTYPE_Manual = "0";/** Reorder below Minimum Level = 1 */ +public static final String REPLENISHTYPE_ReorderBelowMinimumLevel = "1";/** Maintain Maximum Level = 2 */ +public static final String REPLENISHTYPE_MaintainMaximumLevel = "2";/** Custom = 9 */ public static final String REPLENISHTYPE_Custom = "9"; -/** Set Replenish Type. -@param ReplenishType Method for re-ordering a product */ -public void setReplenishType (String ReplenishType) -{ -if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory"); -if (ReplenishType.equals("0") || ReplenishType.equals("1") || ReplenishType.equals("2") || ReplenishType.equals("9")); - else throw new IllegalArgumentException ("ReplenishType Invalid value - " + ReplenishType + " - Reference_ID=164 - 0 - 1 - 2 - 9"); -if (ReplenishType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ReplenishType = ReplenishType.substring(0,0); -} -set_Value ("ReplenishType", ReplenishType); -} -/** Get Replenish Type. -@return Method for re-ordering a product */ -public String getReplenishType() -{ -return (String)get_Value("ReplenishType"); -} -/** Column name ReplenishType */ -public static final String COLUMNNAME_ReplenishType = "ReplenishType"; -} + /** Set Replenish Type. + @param ReplenishType + Method for re-ordering a product + */ + public void setReplenishType (String ReplenishType) + { +if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory");if (ReplenishType.equals("0") || ReplenishType.equals("1") || ReplenishType.equals("2") || ReplenishType.equals("9")); else throw new IllegalArgumentException ("ReplenishType Invalid value - " + ReplenishType + " - Reference_ID=164 - 0 - 1 - 2 - 9"); if (ReplenishType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplenishType = ReplenishType.substring(0, 0); + } + set_Value (COLUMNNAME_ReplenishType, ReplenishType); + } + + /** Get Replenish Type. + @return Method for re-ordering a product + */ + public String getReplenishType () + { + return (String)get_Value(COLUMNNAME_ReplenishType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Requisition.java b/base/src/org/compiere/model/X_M_Requisition.java index a5c059b960..a0a5fe9539 100644 --- a/base/src/org/compiere/model/X_M_Requisition.java +++ b/base/src/org/compiere/model/X_M_Requisition.java @@ -1,515 +1,597 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Requisition - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Requisition extends PO + +/** Generated Model for M_Requisition + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Requisition extends PO implements I_M_Requisition, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Requisition_ID id -@param trxName transaction -*/ -public X_M_Requisition (Properties ctx, int M_Requisition_ID, String trxName) -{ -super (ctx, M_Requisition_ID, trxName); -/** if (M_Requisition_ID == 0) -{ -setAD_User_ID (0); -setC_DocType_ID (0); -setDateDoc (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDateRequired (new Timestamp(System.currentTimeMillis())); -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsApproved (false); -setM_PriceList_ID (0); -setM_Requisition_ID (0); -setM_Warehouse_ID (0); -setPosted (false); -setPriorityRule (null); // 5 -setProcessed (false); -setTotalLines (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Requisition (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Requisition */ -public static final String Table_Name="M_Requisition"; - -/** AD_Table_ID=702 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Requisition[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID < 0) throw new IllegalArgumentException ("C_DocType_ID is mandatory."); -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Document Date. -@param DateDoc Date of the Document */ -public void setDateDoc (Timestamp DateDoc) -{ -if (DateDoc == null) throw new IllegalArgumentException ("DateDoc is mandatory."); -set_Value ("DateDoc", DateDoc); -} -/** Get Document Date. -@return Date of the Document */ -public Timestamp getDateDoc() -{ -return (Timestamp)get_Value("DateDoc"); -} -/** Column name DateDoc */ -public static final String COLUMNNAME_DateDoc = "DateDoc"; -/** Set Date Required. -@param DateRequired Date when required */ -public void setDateRequired (Timestamp DateRequired) -{ -if (DateRequired == null) throw new IllegalArgumentException ("DateRequired is mandatory."); -set_Value ("DateRequired", DateRequired); -} -/** Get Date Required. -@return Date when required */ -public Timestamp getDateRequired() -{ -return (Timestamp)get_Value("DateRequired"); -} -/** Column name DateRequired */ -public static final String COLUMNNAME_DateRequired = "DateRequired"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Requisition (Properties ctx, int M_Requisition_ID, String trxName) + { + super (ctx, M_Requisition_ID, trxName); + /** if (M_Requisition_ID == 0) { setAD_User_ID (0); + setC_DocType_ID (0); + setDateDoc (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateRequired (new Timestamp(System.currentTimeMillis())); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setM_PriceList_ID (0); + setM_Requisition_ID (0); + setM_Warehouse_ID (0); + setPosted (false); + setPriorityRule (null); +// 5 + setProcessed (false); + setTotalLines (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_Requisition (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Requisition[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + if (DateDoc == null) + throw new IllegalArgumentException ("DateDoc is mandatory."); + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Date Required. + @param DateRequired + Date when required + */ + public void setDateRequired (Timestamp DateRequired) + { + if (DateRequired == null) + throw new IllegalArgumentException ("DateRequired is mandatory."); + set_Value (COLUMNNAME_DateRequired, DateRequired); + } + + /** Get Date Required. + @return Date when required + */ + public Timestamp getDateRequired () + { + return (Timestamp)get_Value(COLUMNNAME_DateRequired); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_ValueNoCheck ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Requisition. -@param M_Requisition_ID Material Requisition */ -public void setM_Requisition_ID (int M_Requisition_ID) -{ -if (M_Requisition_ID < 1) throw new IllegalArgumentException ("M_Requisition_ID is mandatory."); -set_ValueNoCheck ("M_Requisition_ID", Integer.valueOf(M_Requisition_ID)); -} -/** Get Requisition. -@return Material Requisition */ -public int getM_Requisition_ID() -{ -Integer ii = (Integer)get_Value("M_Requisition_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Requisition_ID */ -public static final String COLUMNNAME_M_Requisition_ID = "M_Requisition_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Posted. -@param Posted Posting status */ -public void setPosted (boolean Posted) -{ -set_Value ("Posted", Boolean.valueOf(Posted)); -} -/** Get Posted. -@return Posting status */ -public boolean isPosted() -{ -Object oo = get_Value("Posted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Posted */ -public static final String COLUMNNAME_Posted = "Posted"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Requisition. + @param M_Requisition_ID + Material Requisition + */ + public void setM_Requisition_ID (int M_Requisition_ID) + { + if (M_Requisition_ID < 1) + throw new IllegalArgumentException ("M_Requisition_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, Integer.valueOf(M_Requisition_ID)); + } + + /** Get Requisition. + @return Material Requisition + */ + public int getM_Requisition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Requisition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PriorityRule AD_Reference_ID=154 */ -public static final int PRIORITYRULE_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITYRULE_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITYRULE_High = "3"; -/** Medium = 5 */ -public static final String PRIORITYRULE_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITYRULE_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITYRULE_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITYRULE_Urgent = "1";/** High = 3 */ +public static final String PRIORITYRULE_High = "3";/** Medium = 5 */ +public static final String PRIORITYRULE_Medium = "5";/** Low = 7 */ +public static final String PRIORITYRULE_Low = "7";/** Minor = 9 */ public static final String PRIORITYRULE_Minor = "9"; -/** Set Priority. -@param PriorityRule Priority of a document */ -public void setPriorityRule (String PriorityRule) -{ -if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); -if (PriorityRule.equals("1") || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("9")); - else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (PriorityRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PriorityRule = PriorityRule.substring(0,0); -} -set_Value ("PriorityRule", PriorityRule); -} -/** Get Priority. -@return Priority of a document */ -public String getPriorityRule() -{ -return (String)get_Value("PriorityRule"); -} -/** Column name PriorityRule */ -public static final String COLUMNNAME_PriorityRule = "PriorityRule"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Total Lines. -@param TotalLines Total of all document lines */ -public void setTotalLines (BigDecimal TotalLines) -{ -if (TotalLines == null) throw new IllegalArgumentException ("TotalLines is mandatory."); -set_Value ("TotalLines", TotalLines); -} -/** Get Total Lines. -@return Total of all document lines */ -public BigDecimal getTotalLines() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalLines"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalLines */ -public static final String COLUMNNAME_TotalLines = "TotalLines"; -} + /** Set Priority. + @param PriorityRule + Priority of a document + */ + public void setPriorityRule (String PriorityRule) + { +if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory");if (PriorityRule.equals("1") || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (PriorityRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityRule = PriorityRule.substring(0, 0); + } + set_Value (COLUMNNAME_PriorityRule, PriorityRule); + } + + /** Get Priority. + @return Priority of a document + */ + public String getPriorityRule () + { + return (String)get_Value(COLUMNNAME_PriorityRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Lines. + @param TotalLines + Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines) + { + if (TotalLines == null) + throw new IllegalArgumentException ("TotalLines is mandatory."); + set_Value (COLUMNNAME_TotalLines, TotalLines); + } + + /** Get Total Lines. + @return Total of all document lines + */ + public BigDecimal getTotalLines () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_RequisitionLine.java b/base/src/org/compiere/model/X_M_RequisitionLine.java index ee9008a175..fce916e32a 100644 --- a/base/src/org/compiere/model/X_M_RequisitionLine.java +++ b/base/src/org/compiere/model/X_M_RequisitionLine.java @@ -1,291 +1,360 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_RequisitionLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_RequisitionLine extends PO + +/** Generated Model for M_RequisitionLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_RequisitionLine extends PO implements I_M_RequisitionLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_RequisitionLine_ID id -@param trxName transaction -*/ -public X_M_RequisitionLine (Properties ctx, int M_RequisitionLine_ID, String trxName) -{ -super (ctx, M_RequisitionLine_ID, trxName); -/** if (M_RequisitionLine_ID == 0) -{ -setLine (0); // @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM M_RequisitionLine WHERE M_Requisition_ID=@M_Requisition_ID@ -setLineNetAmt (Env.ZERO); -setM_RequisitionLine_ID (0); -setM_Requisition_ID (0); -setPriceActual (Env.ZERO); -setQty (Env.ZERO); // 1 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_RequisitionLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_RequisitionLine */ -public static final String Table_Name="M_RequisitionLine"; - -/** AD_Table_ID=703 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_RequisitionLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Charge. -@param C_Charge_ID Additional document charges */ -public void setC_Charge_ID (int C_Charge_ID) -{ -if (C_Charge_ID <= 0) set_Value ("C_Charge_ID", null); - else -set_Value ("C_Charge_ID", Integer.valueOf(C_Charge_ID)); -} -/** Get Charge. -@return Additional document charges */ -public int getC_Charge_ID() -{ -Integer ii = (Integer)get_Value("C_Charge_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Charge_ID */ -public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_Value ("C_OrderLine_ID", null); - else -set_Value ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Line Amount. -@param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public void setLineNetAmt (BigDecimal LineNetAmt) -{ -if (LineNetAmt == null) throw new IllegalArgumentException ("LineNetAmt is mandatory."); -set_Value ("LineNetAmt", LineNetAmt); -} -/** Get Line Amount. -@return Line Extended Amount (Quantity * Actual Price) without Freight and Charges */ -public BigDecimal getLineNetAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("LineNetAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name LineNetAmt */ -public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID <= 0) set_Value ("M_AttributeSetInstance_ID", null); - else -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Requisition Line. -@param M_RequisitionLine_ID Material Requisition Line */ -public void setM_RequisitionLine_ID (int M_RequisitionLine_ID) -{ -if (M_RequisitionLine_ID < 1) throw new IllegalArgumentException ("M_RequisitionLine_ID is mandatory."); -set_ValueNoCheck ("M_RequisitionLine_ID", Integer.valueOf(M_RequisitionLine_ID)); -} -/** Get Requisition Line. -@return Material Requisition Line */ -public int getM_RequisitionLine_ID() -{ -Integer ii = (Integer)get_Value("M_RequisitionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RequisitionLine_ID */ -public static final String COLUMNNAME_M_RequisitionLine_ID = "M_RequisitionLine_ID"; -/** Set Requisition. -@param M_Requisition_ID Material Requisition */ -public void setM_Requisition_ID (int M_Requisition_ID) -{ -if (M_Requisition_ID < 1) throw new IllegalArgumentException ("M_Requisition_ID is mandatory."); -set_ValueNoCheck ("M_Requisition_ID", Integer.valueOf(M_Requisition_ID)); -} -/** Get Requisition. -@return Material Requisition */ -public int getM_Requisition_ID() -{ -Integer ii = (Integer)get_Value("M_Requisition_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Requisition_ID */ -public static final String COLUMNNAME_M_Requisition_ID = "M_Requisition_ID"; -/** Set Unit Price. -@param PriceActual Actual Price */ -public void setPriceActual (BigDecimal PriceActual) -{ -if (PriceActual == null) throw new IllegalArgumentException ("PriceActual is mandatory."); -set_Value ("PriceActual", PriceActual); -} -/** Get Unit Price. -@return Actual Price */ -public BigDecimal getPriceActual() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceActual */ -public static final String COLUMNNAME_PriceActual = "PriceActual"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_RequisitionLine (Properties ctx, int M_RequisitionLine_ID, String trxName) + { + super (ctx, M_RequisitionLine_ID, trxName); + /** if (M_RequisitionLine_ID == 0) { setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM M_RequisitionLine WHERE M_Requisition_ID=@M_Requisition_ID@ + setLineNetAmt (Env.ZERO); + setM_RequisitionLine_ID (0); + setM_Requisition_ID (0); + setPriceActual (Env.ZERO); + setQty (Env.ZERO); +// 1 +} */ + } + + /** Load Constructor */ + public X_M_RequisitionLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_RequisitionLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Charge getI_C_Charge() throws Exception + { + 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 e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID <= 0) set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_Value (COLUMNNAME_C_OrderLine_ID, null); + else + set_Value (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Line Amount. + @param LineNetAmt + Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt) + { + if (LineNetAmt == null) + throw new IllegalArgumentException ("LineNetAmt is mandatory."); + set_Value (COLUMNNAME_LineNetAmt, LineNetAmt); + } + + /** Get Line Amount. + @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID <= 0) set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Requisition Line. + @param M_RequisitionLine_ID + Material Requisition Line + */ + public void setM_RequisitionLine_ID (int M_RequisitionLine_ID) + { + if (M_RequisitionLine_ID < 1) + throw new IllegalArgumentException ("M_RequisitionLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_RequisitionLine_ID, Integer.valueOf(M_RequisitionLine_ID)); + } + + /** Get Requisition Line. + @return Material Requisition Line + */ + public int getM_RequisitionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RequisitionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Requisition getI_M_Requisition() throws Exception + { + 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 e; + } + return result; + } + + /** Set Requisition. + @param M_Requisition_ID + Material Requisition + */ + public void setM_Requisition_ID (int M_Requisition_ID) + { + if (M_Requisition_ID < 1) + throw new IllegalArgumentException ("M_Requisition_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Requisition_ID, Integer.valueOf(M_Requisition_ID)); + } + + /** Get Requisition. + @return Material Requisition + */ + public int getM_Requisition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Requisition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + if (PriceActual == null) + throw new IllegalArgumentException ("PriceActual is mandatory."); + set_Value (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_SerNoCtl.java b/base/src/org/compiere/model/X_M_SerNoCtl.java index 7680d2132f..041c5e2388 100644 --- a/base/src/org/compiere/model/X_M_SerNoCtl.java +++ b/base/src/org/compiere/model/X_M_SerNoCtl.java @@ -1,240 +1,260 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_SerNoCtl - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_SerNoCtl extends PO + +/** Generated Model for M_SerNoCtl + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_SerNoCtl extends PO implements I_M_SerNoCtl, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_SerNoCtl_ID id -@param trxName transaction -*/ -public X_M_SerNoCtl (Properties ctx, int M_SerNoCtl_ID, String trxName) -{ -super (ctx, M_SerNoCtl_ID, trxName); -/** if (M_SerNoCtl_ID == 0) -{ -setCurrentNext (0); // 100 -setIncrementNo (0); // 1 -setM_SerNoCtl_ID (0); -setName (null); -setStartNo (0); // 100 -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_SerNoCtl (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_SerNoCtl */ -public static final String Table_Name="M_SerNoCtl"; - -/** AD_Table_ID=555 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_SerNoCtl[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Current Next. -@param CurrentNext The next number to be used */ -public void setCurrentNext (int CurrentNext) -{ -set_Value ("CurrentNext", Integer.valueOf(CurrentNext)); -} -/** Get Current Next. -@return The next number to be used */ -public int getCurrentNext() -{ -Integer ii = (Integer)get_Value("CurrentNext"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name CurrentNext */ -public static final String COLUMNNAME_CurrentNext = "CurrentNext"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Increment. -@param IncrementNo The number to increment the last document number by */ -public void setIncrementNo (int IncrementNo) -{ -set_Value ("IncrementNo", Integer.valueOf(IncrementNo)); -} -/** Get Increment. -@return The number to increment the last document number by */ -public int getIncrementNo() -{ -Integer ii = (Integer)get_Value("IncrementNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name IncrementNo */ -public static final String COLUMNNAME_IncrementNo = "IncrementNo"; -/** Set Serial No Control. -@param M_SerNoCtl_ID Product Serial Number Control */ -public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) -{ -if (M_SerNoCtl_ID < 1) throw new IllegalArgumentException ("M_SerNoCtl_ID is mandatory."); -set_ValueNoCheck ("M_SerNoCtl_ID", Integer.valueOf(M_SerNoCtl_ID)); -} -/** Get Serial No Control. -@return Product Serial Number Control */ -public int getM_SerNoCtl_ID() -{ -Integer ii = (Integer)get_Value("M_SerNoCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_SerNoCtl_ID */ -public static final String COLUMNNAME_M_SerNoCtl_ID = "M_SerNoCtl_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Prefix. -@param Prefix Prefix before the sequence number */ -public void setPrefix (String Prefix) -{ -if (Prefix != null && Prefix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Prefix = Prefix.substring(0,9); -} -set_Value ("Prefix", Prefix); -} -/** Get Prefix. -@return Prefix before the sequence number */ -public String getPrefix() -{ -return (String)get_Value("Prefix"); -} -/** Column name Prefix */ -public static final String COLUMNNAME_Prefix = "Prefix"; -/** Set Start No. -@param StartNo Starting number/position */ -public void setStartNo (int StartNo) -{ -set_Value ("StartNo", Integer.valueOf(StartNo)); -} -/** Get Start No. -@return Starting number/position */ -public int getStartNo() -{ -Integer ii = (Integer)get_Value("StartNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name StartNo */ -public static final String COLUMNNAME_StartNo = "StartNo"; -/** Set Suffix. -@param Suffix Suffix after the number */ -public void setSuffix (String Suffix) -{ -if (Suffix != null && Suffix.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Suffix = Suffix.substring(0,9); -} -set_Value ("Suffix", Suffix); -} -/** Get Suffix. -@return Suffix after the number */ -public String getSuffix() -{ -return (String)get_Value("Suffix"); -} -/** Column name Suffix */ -public static final String COLUMNNAME_Suffix = "Suffix"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_SerNoCtl (Properties ctx, int M_SerNoCtl_ID, String trxName) + { + super (ctx, M_SerNoCtl_ID, trxName); + /** if (M_SerNoCtl_ID == 0) { setCurrentNext (0); +// 100 + setIncrementNo (0); +// 1 + setM_SerNoCtl_ID (0); + setName (null); + setStartNo (0); +// 100 +} */ + } + + /** Load Constructor */ + public X_M_SerNoCtl (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_SerNoCtl[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Current Next. + @param CurrentNext + The next number to be used + */ + public void setCurrentNext (int CurrentNext) + { + set_Value (COLUMNNAME_CurrentNext, Integer.valueOf(CurrentNext)); + } + + /** Get Current Next. + @return The next number to be used + */ + public int getCurrentNext () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CurrentNext); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Increment. + @param IncrementNo + The number to increment the last document number by + */ + public void setIncrementNo (int IncrementNo) + { + set_Value (COLUMNNAME_IncrementNo, Integer.valueOf(IncrementNo)); + } + + /** Get Increment. + @return The number to increment the last document number by + */ + public int getIncrementNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_IncrementNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Serial No Control. + @param M_SerNoCtl_ID + Product Serial Number Control + */ + public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) + { + if (M_SerNoCtl_ID < 1) + throw new IllegalArgumentException ("M_SerNoCtl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); + } + + /** Get Serial No Control. + @return Product Serial Number Control + */ + public int getM_SerNoCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_SerNoCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Prefix. + @param Prefix + Prefix before the sequence number + */ + public void setPrefix (String Prefix) + { + if (Prefix != null && Prefix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Prefix = Prefix.substring(0, 9); + } + set_Value (COLUMNNAME_Prefix, Prefix); + } + + /** Get Prefix. + @return Prefix before the sequence number + */ + public String getPrefix () + { + return (String)get_Value(COLUMNNAME_Prefix); + } + + /** Set Start No. + @param StartNo + Starting number/position + */ + public void setStartNo (int StartNo) + { + set_Value (COLUMNNAME_StartNo, Integer.valueOf(StartNo)); + } + + /** Get Start No. + @return Starting number/position + */ + public int getStartNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_StartNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Suffix. + @param Suffix + Suffix after the number + */ + public void setSuffix (String Suffix) + { + if (Suffix != null && Suffix.length() > 10) + { + log.warning("Length > 10 - truncated"); + Suffix = Suffix.substring(0, 9); + } + set_Value (COLUMNNAME_Suffix, Suffix); + } + + /** Get Suffix. + @return Suffix after the number + */ + public String getSuffix () + { + return (String)get_Value(COLUMNNAME_Suffix); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_SerNoCtlExclude.java b/base/src/org/compiere/model/X_M_SerNoCtlExclude.java index ff03ad8097..3b0af36ba0 100644 --- a/base/src/org/compiere/model/X_M_SerNoCtlExclude.java +++ b/base/src/org/compiere/model/X_M_SerNoCtlExclude.java @@ -1,162 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_SerNoCtlExclude - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_SerNoCtlExclude extends PO + +/** Generated Model for M_SerNoCtlExclude + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_SerNoCtlExclude extends PO implements I_M_SerNoCtlExclude, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_SerNoCtlExclude_ID id -@param trxName transaction -*/ -public X_M_SerNoCtlExclude (Properties ctx, int M_SerNoCtlExclude_ID, String trxName) -{ -super (ctx, M_SerNoCtlExclude_ID, trxName); -/** if (M_SerNoCtlExclude_ID == 0) -{ -setAD_Table_ID (0); -setIsSOTrx (false); -setM_SerNoCtlExclude_ID (0); -setM_SerNoCtl_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_SerNoCtlExclude (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_SerNoCtlExclude */ -public static final String Table_Name="M_SerNoCtlExclude"; - -/** AD_Table_ID=811 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_SerNoCtlExclude[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Exclude SerNo. -@param M_SerNoCtlExclude_ID Exclude the ability to create Serial Numbers in Attribute Sets */ -public void setM_SerNoCtlExclude_ID (int M_SerNoCtlExclude_ID) -{ -if (M_SerNoCtlExclude_ID < 1) throw new IllegalArgumentException ("M_SerNoCtlExclude_ID is mandatory."); -set_ValueNoCheck ("M_SerNoCtlExclude_ID", Integer.valueOf(M_SerNoCtlExclude_ID)); -} -/** Get Exclude SerNo. -@return Exclude the ability to create Serial Numbers in Attribute Sets */ -public int getM_SerNoCtlExclude_ID() -{ -Integer ii = (Integer)get_Value("M_SerNoCtlExclude_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_SerNoCtlExclude_ID */ -public static final String COLUMNNAME_M_SerNoCtlExclude_ID = "M_SerNoCtlExclude_ID"; -/** Set Serial No Control. -@param M_SerNoCtl_ID Product Serial Number Control */ -public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) -{ -if (M_SerNoCtl_ID < 1) throw new IllegalArgumentException ("M_SerNoCtl_ID is mandatory."); -set_ValueNoCheck ("M_SerNoCtl_ID", Integer.valueOf(M_SerNoCtl_ID)); -} -/** Get Serial No Control. -@return Product Serial Number Control */ -public int getM_SerNoCtl_ID() -{ -Integer ii = (Integer)get_Value("M_SerNoCtl_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_SerNoCtl_ID */ -public static final String COLUMNNAME_M_SerNoCtl_ID = "M_SerNoCtl_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_SerNoCtlExclude (Properties ctx, int M_SerNoCtlExclude_ID, String trxName) + { + super (ctx, M_SerNoCtlExclude_ID, trxName); + /** if (M_SerNoCtlExclude_ID == 0) { setAD_Table_ID (0); + setIsSOTrx (false); + setM_SerNoCtlExclude_ID (0); + setM_SerNoCtl_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_SerNoCtlExclude (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_SerNoCtlExclude[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude SerNo. + @param M_SerNoCtlExclude_ID + Exclude the ability to create Serial Numbers in Attribute Sets + */ + public void setM_SerNoCtlExclude_ID (int M_SerNoCtlExclude_ID) + { + if (M_SerNoCtlExclude_ID < 1) + throw new IllegalArgumentException ("M_SerNoCtlExclude_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_SerNoCtlExclude_ID, Integer.valueOf(M_SerNoCtlExclude_ID)); + } + + /** Get Exclude SerNo. + @return Exclude the ability to create Serial Numbers in Attribute Sets + */ + public int getM_SerNoCtlExclude_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_SerNoCtlExclude_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_SerNoCtl getI_M_SerNoCtl() throws Exception + { + 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 e; + } + return result; + } + + /** Set Serial No Control. + @param M_SerNoCtl_ID + Product Serial Number Control + */ + public void setM_SerNoCtl_ID (int M_SerNoCtl_ID) + { + if (M_SerNoCtl_ID < 1) + throw new IllegalArgumentException ("M_SerNoCtl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_SerNoCtl_ID, Integer.valueOf(M_SerNoCtl_ID)); + } + + /** Get Serial No Control. + @return Product Serial Number Control + */ + public int getM_SerNoCtl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_SerNoCtl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Shipper.java b/base/src/org/compiere/model/X_M_Shipper.java index 310640f40b..85903c06b5 100644 --- a/base/src/org/compiere/model/X_M_Shipper.java +++ b/base/src/org/compiere/model/X_M_Shipper.java @@ -1,188 +1,194 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Shipper - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Shipper extends PO + +/** Generated Model for M_Shipper + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Shipper extends PO implements I_M_Shipper, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Shipper_ID id -@param trxName transaction -*/ -public X_M_Shipper (Properties ctx, int M_Shipper_ID, String trxName) -{ -super (ctx, M_Shipper_ID, trxName); -/** if (M_Shipper_ID == 0) -{ -setM_Shipper_ID (0); -setName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Shipper (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Shipper */ -public static final String Table_Name="M_Shipper"; - -/** AD_Table_ID=253 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Shipper[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Shipper. -@param M_Shipper_ID Method or manner of product delivery */ -public void setM_Shipper_ID (int M_Shipper_ID) -{ -if (M_Shipper_ID < 1) throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); -set_ValueNoCheck ("M_Shipper_ID", Integer.valueOf(M_Shipper_ID)); -} -/** Get Shipper. -@return Method or manner of product delivery */ -public int getM_Shipper_ID() -{ -Integer ii = (Integer)get_Value("M_Shipper_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Shipper_ID */ -public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Tracking URL. -@param TrackingURL URL of the shipper to track shipments */ -public void setTrackingURL (String TrackingURL) -{ -if (TrackingURL != null && TrackingURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -TrackingURL = TrackingURL.substring(0,119); -} -set_Value ("TrackingURL", TrackingURL); -} -/** Get Tracking URL. -@return URL of the shipper to track shipments */ -public String getTrackingURL() -{ -return (String)get_Value("TrackingURL"); -} -/** Column name TrackingURL */ -public static final String COLUMNNAME_TrackingURL = "TrackingURL"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Shipper (Properties ctx, int M_Shipper_ID, String trxName) + { + super (ctx, M_Shipper_ID, trxName); + /** if (M_Shipper_ID == 0) { setM_Shipper_ID (0); + setName (null); +} */ + } + + /** Load Constructor */ + public X_M_Shipper (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Shipper[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + throw new IllegalArgumentException ("M_Shipper_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Tracking URL. + @param TrackingURL + URL of the shipper to track shipments + */ + public void setTrackingURL (String TrackingURL) + { + if (TrackingURL != null && TrackingURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + TrackingURL = TrackingURL.substring(0, 119); + } + set_Value (COLUMNNAME_TrackingURL, TrackingURL); + } + + /** Get Tracking URL. + @return URL of the shipper to track shipments + */ + public String getTrackingURL () + { + return (String)get_Value(COLUMNNAME_TrackingURL); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Storage.java b/base/src/org/compiere/model/X_M_Storage.java index ef647fc040..0248ec5aa8 100644 --- a/base/src/org/compiere/model/X_M_Storage.java +++ b/base/src/org/compiere/model/X_M_Storage.java @@ -1,209 +1,227 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Storage - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Storage extends PO + +/** Generated Model for M_Storage + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Storage extends PO implements I_M_Storage, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Storage_ID id -@param trxName transaction -*/ -public X_M_Storage (Properties ctx, int M_Storage_ID, String trxName) -{ -super (ctx, M_Storage_ID, trxName); -/** if (M_Storage_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_Locator_ID (0); -setM_Product_ID (0); -setQtyOnHand (Env.ZERO); -setQtyOrdered (Env.ZERO); -setQtyReserved (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Storage (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Storage */ -public static final String Table_Name="M_Storage"; - -/** AD_Table_ID=250 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Storage[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Date last inventory count. -@param DateLastInventory Date of Last Inventory Count */ -public void setDateLastInventory (Timestamp DateLastInventory) -{ -set_Value ("DateLastInventory", DateLastInventory); -} -/** Get Date last inventory count. -@return Date of Last Inventory Count */ -public Timestamp getDateLastInventory() -{ -return (Timestamp)get_Value("DateLastInventory"); -} -/** Column name DateLastInventory */ -public static final String COLUMNNAME_DateLastInventory = "DateLastInventory"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_ValueNoCheck ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set On Hand Quantity. -@param QtyOnHand On Hand Quantity */ -public void setQtyOnHand (BigDecimal QtyOnHand) -{ -if (QtyOnHand == null) throw new IllegalArgumentException ("QtyOnHand is mandatory."); -set_ValueNoCheck ("QtyOnHand", QtyOnHand); -} -/** Get On Hand Quantity. -@return On Hand Quantity */ -public BigDecimal getQtyOnHand() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOnHand"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOnHand */ -public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; -/** Set Ordered Quantity. -@param QtyOrdered Ordered Quantity */ -public void setQtyOrdered (BigDecimal QtyOrdered) -{ -if (QtyOrdered == null) throw new IllegalArgumentException ("QtyOrdered is mandatory."); -set_ValueNoCheck ("QtyOrdered", QtyOrdered); -} -/** Get Ordered Quantity. -@return Ordered Quantity */ -public BigDecimal getQtyOrdered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOrdered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOrdered */ -public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; -/** Set Reserved Quantity. -@param QtyReserved Reserved Quantity */ -public void setQtyReserved (BigDecimal QtyReserved) -{ -if (QtyReserved == null) throw new IllegalArgumentException ("QtyReserved is mandatory."); -set_ValueNoCheck ("QtyReserved", QtyReserved); -} -/** Get Reserved Quantity. -@return Reserved Quantity */ -public BigDecimal getQtyReserved() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyReserved"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyReserved */ -public static final String COLUMNNAME_QtyReserved = "QtyReserved"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Storage (Properties ctx, int M_Storage_ID, String trxName) + { + super (ctx, M_Storage_ID, trxName); + /** if (M_Storage_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_Locator_ID (0); + setM_Product_ID (0); + setQtyOnHand (Env.ZERO); + setQtyOrdered (Env.ZERO); + setQtyReserved (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_Storage (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Storage[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Date last inventory count. + @param DateLastInventory + Date of Last Inventory Count + */ + public void setDateLastInventory (Timestamp DateLastInventory) + { + set_Value (COLUMNNAME_DateLastInventory, DateLastInventory); + } + + /** Get Date last inventory count. + @return Date of Last Inventory Count + */ + public Timestamp getDateLastInventory () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastInventory); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set On Hand Quantity. + @param QtyOnHand + On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand) + { + if (QtyOnHand == null) + throw new IllegalArgumentException ("QtyOnHand is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyOnHand, QtyOnHand); + } + + /** Get On Hand Quantity. + @return On Hand Quantity + */ + public BigDecimal getQtyOnHand () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOnHand); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + if (QtyOrdered == null) + throw new IllegalArgumentException ("QtyOrdered is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reserved Quantity. + @param QtyReserved + Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved) + { + if (QtyReserved == null) + throw new IllegalArgumentException ("QtyReserved is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); + } + + /** Get Reserved Quantity. + @return Reserved Quantity + */ + public BigDecimal getQtyReserved () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Substitute.java b/base/src/org/compiere/model/X_M_Substitute.java index a5ecfefea6..8a51d00481 100644 --- a/base/src/org/compiere/model/X_M_Substitute.java +++ b/base/src/org/compiere/model/X_M_Substitute.java @@ -1,172 +1,175 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Substitute - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Substitute extends PO + +/** Generated Model for M_Substitute + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Substitute extends PO implements I_M_Substitute, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Substitute_ID id -@param trxName transaction -*/ -public X_M_Substitute (Properties ctx, int M_Substitute_ID, String trxName) -{ -super (ctx, M_Substitute_ID, trxName); -/** if (M_Substitute_ID == 0) -{ -setM_Product_ID (0); -setName (null); -setSubstitute_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Substitute (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Substitute */ -public static final String Table_Name="M_Substitute"; - -/** AD_Table_ID=213 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Substitute[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Substitute (Properties ctx, int M_Substitute_ID, String trxName) + { + super (ctx, M_Substitute_ID, trxName); + /** if (M_Substitute_ID == 0) { setM_Product_ID (0); + setName (null); + setSubstitute_ID (0); +} */ + } + + /** Load Constructor */ + public X_M_Substitute (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Substitute[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Substitute_ID AD_Reference_ID=162 */ public static final int SUBSTITUTE_ID_AD_Reference_ID=162; -/** Set Substitute. -@param Substitute_ID Entity which can be used in place of this entity */ -public void setSubstitute_ID (int Substitute_ID) -{ -if (Substitute_ID < 1) throw new IllegalArgumentException ("Substitute_ID is mandatory."); -set_ValueNoCheck ("Substitute_ID", Integer.valueOf(Substitute_ID)); -} -/** Get Substitute. -@return Entity which can be used in place of this entity */ -public int getSubstitute_ID() -{ -Integer ii = (Integer)get_Value("Substitute_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Substitute_ID */ -public static final String COLUMNNAME_Substitute_ID = "Substitute_ID"; -} + /** Set Substitute. + @param Substitute_ID + Entity which can be used in place of this entity + */ + public void setSubstitute_ID (int Substitute_ID) + { + if (Substitute_ID < 1) + throw new IllegalArgumentException ("Substitute_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Substitute_ID, Integer.valueOf(Substitute_ID)); + } + + /** Get Substitute. + @return Entity which can be used in place of this entity + */ + public int getSubstitute_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Substitute_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Transaction.java b/base/src/org/compiere/model/X_M_Transaction.java index c67fd0dc93..4cc34c32c1 100644 --- a/base/src/org/compiere/model/X_M_Transaction.java +++ b/base/src/org/compiere/model/X_M_Transaction.java @@ -1,339 +1,359 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Transaction - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Transaction extends PO + +/** Generated Model for M_Transaction + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Transaction_ID id -@param trxName transaction -*/ -public X_M_Transaction (Properties ctx, int M_Transaction_ID, String trxName) -{ -super (ctx, M_Transaction_ID, trxName); -/** if (M_Transaction_ID == 0) -{ -setM_AttributeSetInstance_ID (0); -setM_Locator_ID (0); -setM_Product_ID (0); -setM_Transaction_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); -setMovementQty (Env.ZERO); -setMovementType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Transaction (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Transaction */ -public static final String Table_Name="M_Transaction"; - -/** AD_Table_ID=329 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Transaction[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Project Issue. -@param C_ProjectIssue_ID Project Issues (Material, Labor) */ -public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) -{ -if (C_ProjectIssue_ID <= 0) set_ValueNoCheck ("C_ProjectIssue_ID", null); - else -set_ValueNoCheck ("C_ProjectIssue_ID", Integer.valueOf(C_ProjectIssue_ID)); -} -/** Get Project Issue. -@return Project Issues (Material, Labor) */ -public int getC_ProjectIssue_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectIssue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectIssue_ID */ -public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_ValueNoCheck ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_ValueNoCheck ("M_InOutLine_ID", null); - else -set_ValueNoCheck ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_ValueNoCheck ("M_InventoryLine_ID", null); - else -set_ValueNoCheck ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_ValueNoCheck ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Move Line. -@param M_MovementLine_ID Inventory Move document Line */ -public void setM_MovementLine_ID (int M_MovementLine_ID) -{ -if (M_MovementLine_ID <= 0) set_ValueNoCheck ("M_MovementLine_ID", null); - else -set_ValueNoCheck ("M_MovementLine_ID", Integer.valueOf(M_MovementLine_ID)); -} -/** Get Move Line. -@return Inventory Move document Line */ -public int getM_MovementLine_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementLine_ID */ -public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Production Line. -@param M_ProductionLine_ID Document Line representing a production */ -public void setM_ProductionLine_ID (int M_ProductionLine_ID) -{ -if (M_ProductionLine_ID <= 0) set_ValueNoCheck ("M_ProductionLine_ID", null); - else -set_ValueNoCheck ("M_ProductionLine_ID", Integer.valueOf(M_ProductionLine_ID)); -} -/** Get Production Line. -@return Document Line representing a production */ -public int getM_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionLine_ID */ -public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; -/** Set Inventory Transaction. -@param M_Transaction_ID Inventory Transaction */ -public void setM_Transaction_ID (int M_Transaction_ID) -{ -if (M_Transaction_ID < 1) throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); -set_ValueNoCheck ("M_Transaction_ID", Integer.valueOf(M_Transaction_ID)); -} -/** Get Inventory Transaction. -@return Inventory Transaction */ -public int getM_Transaction_ID() -{ -Integer ii = (Integer)get_Value("M_Transaction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Transaction_ID */ -public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_ValueNoCheck ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getMovementDate())); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_ValueNoCheck ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Transaction (Properties ctx, int M_Transaction_ID, String trxName) + { + super (ctx, M_Transaction_ID, trxName); + /** if (M_Transaction_ID == 0) { setM_AttributeSetInstance_ID (0); + setM_Locator_ID (0); + setM_Product_ID (0); + setM_Transaction_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); + setMovementQty (Env.ZERO); + setMovementType (null); +} */ + } + + /** Load Constructor */ + public X_M_Transaction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Transaction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Transaction. + @param M_Transaction_ID Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID) + { + if (M_Transaction_ID < 1) + throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + } + + /** Get Inventory Transaction. +@return Inventory Transaction */ + public int getM_Transaction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Transaction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_ValueNoCheck (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getMovementDate())); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } /** MovementType AD_Reference_ID=189 */ -public static final int MOVEMENTTYPE_AD_Reference_ID=189; -/** Customer Returns = C+ */ -public static final String MOVEMENTTYPE_CustomerReturns = "C+"; -/** Customer Shipment = C- */ -public static final String MOVEMENTTYPE_CustomerShipment = "C-"; -/** Inventory In = I+ */ -public static final String MOVEMENTTYPE_InventoryIn = "I+"; -/** Inventory Out = I- */ -public static final String MOVEMENTTYPE_InventoryOut = "I-"; -/** Movement To = M+ */ -public static final String MOVEMENTTYPE_MovementTo = "M+"; -/** Movement From = M- */ -public static final String MOVEMENTTYPE_MovementFrom = "M-"; -/** Production + = P+ */ -public static final String MOVEMENTTYPE_ProductionPlus = "P+"; -/** Production - = P- */ -public static final String MOVEMENTTYPE_Production_ = "P-"; -/** Vendor Receipts = V+ */ -public static final String MOVEMENTTYPE_VendorReceipts = "V+"; -/** Vendor Returns = V- */ -public static final String MOVEMENTTYPE_VendorReturns = "V-"; -/** Work Order + = W+ */ -public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; -/** Work Order - = W- */ +public static final int MOVEMENTTYPE_AD_Reference_ID=189;/** Customer Returns = C+ */ +public static final String MOVEMENTTYPE_CustomerReturns = "C+";/** Customer Shipment = C- */ +public static final String MOVEMENTTYPE_CustomerShipment = "C-";/** Inventory In = I+ */ +public static final String MOVEMENTTYPE_InventoryIn = "I+";/** Inventory Out = I- */ +public static final String MOVEMENTTYPE_InventoryOut = "I-";/** Movement To = M+ */ +public static final String MOVEMENTTYPE_MovementTo = "M+";/** Movement From = M- */ +public static final String MOVEMENTTYPE_MovementFrom = "M-";/** Production + = P+ */ +public static final String MOVEMENTTYPE_ProductionPlus = "P+";/** Production - = P- */ +public static final String MOVEMENTTYPE_Production_ = "P-";/** Vendor Receipts = V+ */ +public static final String MOVEMENTTYPE_VendorReceipts = "V+";/** Vendor Returns = V- */ +public static final String MOVEMENTTYPE_VendorReturns = "V-";/** Work Order + = W+ */ +public static final String MOVEMENTTYPE_WorkOrderPlus = "W+";/** Work Order - = W- */ public static final String MOVEMENTTYPE_WorkOrder_ = "W-"; -/** Set Movement Type. -@param MovementType Method of moving the inventory */ -public void setMovementType (String MovementType) -{ -if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); -if (MovementType.equals("C+") || MovementType.equals("C-") || MovementType.equals("I+") || MovementType.equals("I-") || MovementType.equals("M+") || MovementType.equals("M-") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("W+") || MovementType.equals("W-")); - else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C+ - C- - I+ - I- - M+ - M- - P+ - P- - V+ - V- - W+ - W-"); -if (MovementType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -MovementType = MovementType.substring(0,1); -} -set_ValueNoCheck ("MovementType", MovementType); -} -/** Get Movement Type. -@return Method of moving the inventory */ -public String getMovementType() -{ -return (String)get_Value("MovementType"); -} -/** Column name MovementType */ -public static final String COLUMNNAME_MovementType = "MovementType"; -} + /** Set Movement Type. + @param MovementType + Method of moving the inventory + */ + public void setMovementType (String MovementType) + { +if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory");if (MovementType.equals("C+") || MovementType.equals("C-") || MovementType.equals("I+") || MovementType.equals("I-") || MovementType.equals("M+") || MovementType.equals("M-") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("W+") || MovementType.equals("W-")); else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C+ - C- - I+ - I- - M+ - M- - P+ - P- - V+ - V- - W+ - W-"); if (MovementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + MovementType = MovementType.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_MovementType, MovementType); + } + + /** Get Movement Type. + @return Method of moving the inventory + */ + public String getMovementType () + { + return (String)get_Value(COLUMNNAME_MovementType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_TransactionAllocation.java b/base/src/org/compiere/model/X_M_TransactionAllocation.java index 1658424d17..34691ef73c 100644 --- a/base/src/org/compiere/model/X_M_TransactionAllocation.java +++ b/base/src/org/compiere/model/X_M_TransactionAllocation.java @@ -1,369 +1,402 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_TransactionAllocation - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_TransactionAllocation extends PO + +/** Generated Model for M_TransactionAllocation + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_TransactionAllocation extends PO implements I_M_TransactionAllocation, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_TransactionAllocation_ID id -@param trxName transaction -*/ -public X_M_TransactionAllocation (Properties ctx, int M_TransactionAllocation_ID, String trxName) -{ -super (ctx, M_TransactionAllocation_ID, trxName); -/** if (M_TransactionAllocation_ID == 0) -{ -setAllocationStrategyType (null); -setIsAllocated (false); // N -setIsManual (false); // N -setM_AttributeSetInstance_ID (0); -setM_Product_ID (0); -setM_Transaction_ID (0); -setQty (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_TransactionAllocation (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_TransactionAllocation */ -public static final String Table_Name="M_TransactionAllocation"; - -/** AD_Table_ID=636 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_TransactionAllocation[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_TransactionAllocation (Properties ctx, int M_TransactionAllocation_ID, String trxName) + { + super (ctx, M_TransactionAllocation_ID, trxName); + /** if (M_TransactionAllocation_ID == 0) { setAllocationStrategyType (null); + setIsAllocated (false); +// N + setIsManual (false); +// N + setM_AttributeSetInstance_ID (0); + setM_Product_ID (0); + setM_Transaction_ID (0); + setQty (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_M_TransactionAllocation (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_TransactionAllocation[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AllocationStrategyType AD_Reference_ID=294 */ -public static final int ALLOCATIONSTRATEGYTYPE_AD_Reference_ID=294; -/** FiFo = F */ -public static final String ALLOCATIONSTRATEGYTYPE_FiFo = "F"; -/** LiFo = L */ +public static final int ALLOCATIONSTRATEGYTYPE_AD_Reference_ID=294;/** FiFo = F */ +public static final String ALLOCATIONSTRATEGYTYPE_FiFo = "F";/** LiFo = L */ public static final String ALLOCATIONSTRATEGYTYPE_LiFo = "L"; -/** Set Allocation Strategy. -@param AllocationStrategyType Allocation Strategy */ -public void setAllocationStrategyType (String AllocationStrategyType) -{ -if (AllocationStrategyType == null) throw new IllegalArgumentException ("AllocationStrategyType is mandatory"); -if (AllocationStrategyType.equals("F") || AllocationStrategyType.equals("L")); - else throw new IllegalArgumentException ("AllocationStrategyType Invalid value - " + AllocationStrategyType + " - Reference_ID=294 - F - L"); -if (AllocationStrategyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AllocationStrategyType = AllocationStrategyType.substring(0,0); -} -set_Value ("AllocationStrategyType", AllocationStrategyType); -} -/** Get Allocation Strategy. -@return Allocation Strategy */ -public String getAllocationStrategyType() -{ -return (String)get_Value("AllocationStrategyType"); -} -/** Column name AllocationStrategyType */ -public static final String COLUMNNAME_AllocationStrategyType = "AllocationStrategyType"; -/** Set Allocated. -@param IsAllocated Indicates if the payment has been allocated */ -public void setIsAllocated (boolean IsAllocated) -{ -set_Value ("IsAllocated", Boolean.valueOf(IsAllocated)); -} -/** Get Allocated. -@return Indicates if the payment has been allocated */ -public boolean isAllocated() -{ -Object oo = get_Value("IsAllocated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllocated */ -public static final String COLUMNNAME_IsAllocated = "IsAllocated"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null); - else -set_Value ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_Value ("M_InventoryLine_ID", null); - else -set_Value ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Production Line. -@param M_ProductionLine_ID Document Line representing a production */ -public void setM_ProductionLine_ID (int M_ProductionLine_ID) -{ -if (M_ProductionLine_ID <= 0) set_Value ("M_ProductionLine_ID", null); - else -set_Value ("M_ProductionLine_ID", Integer.valueOf(M_ProductionLine_ID)); -} -/** Get Production Line. -@return Document Line representing a production */ -public int getM_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionLine_ID */ -public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; -/** Set Inventory Transaction. -@param M_Transaction_ID Inventory Transaction */ -public void setM_Transaction_ID (int M_Transaction_ID) -{ -if (M_Transaction_ID < 1) throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); -set_ValueNoCheck ("M_Transaction_ID", Integer.valueOf(M_Transaction_ID)); -} -/** Get Inventory Transaction. -@return Inventory Transaction */ -public int getM_Transaction_ID() -{ -Integer ii = (Integer)get_Value("M_Transaction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Transaction_ID */ -public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; + /** Set Allocation Strategy. + @param AllocationStrategyType + Allocation Strategy + */ + public void setAllocationStrategyType (String AllocationStrategyType) + { +if (AllocationStrategyType == null) throw new IllegalArgumentException ("AllocationStrategyType is mandatory");if (AllocationStrategyType.equals("F") || AllocationStrategyType.equals("L")); else throw new IllegalArgumentException ("AllocationStrategyType Invalid value - " + AllocationStrategyType + " - Reference_ID=294 - F - L"); if (AllocationStrategyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + AllocationStrategyType = AllocationStrategyType.substring(0, 0); + } + set_Value (COLUMNNAME_AllocationStrategyType, AllocationStrategyType); + } + + /** Get Allocation Strategy. + @return Allocation Strategy + */ + public String getAllocationStrategyType () + { + return (String)get_Value(COLUMNNAME_AllocationStrategyType); + } + + /** Set Allocated. + @param IsAllocated + Indicates if the payment has been allocated + */ + public void setIsAllocated (boolean IsAllocated) + { + set_Value (COLUMNNAME_IsAllocated, Boolean.valueOf(IsAllocated)); + } + + /** Get Allocated. + @return Indicates if the payment has been allocated + */ + public boolean isAllocated () + { + Object oo = get_Value(COLUMNNAME_IsAllocated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_Value (COLUMNNAME_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID <= 0) set_Value (COLUMNNAME_M_ProductionLine_ID, null); + else + set_Value (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Transaction. + @param M_Transaction_ID Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID) + { + if (M_Transaction_ID < 1) + throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + } + + /** Get Inventory Transaction. +@return Inventory Transaction */ + public int getM_Transaction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Transaction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Out_M_InOutLine_ID AD_Reference_ID=295 */ public static final int OUT_M_INOUTLINE_ID_AD_Reference_ID=295; -/** Set Out Shipment Line. -@param Out_M_InOutLine_ID Outgoing Shipment/Receipt */ -public void setOut_M_InOutLine_ID (int Out_M_InOutLine_ID) -{ -if (Out_M_InOutLine_ID <= 0) set_Value ("Out_M_InOutLine_ID", null); - else -set_Value ("Out_M_InOutLine_ID", Integer.valueOf(Out_M_InOutLine_ID)); -} -/** Get Out Shipment Line. -@return Outgoing Shipment/Receipt */ -public int getOut_M_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("Out_M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Out_M_InOutLine_ID */ -public static final String COLUMNNAME_Out_M_InOutLine_ID = "Out_M_InOutLine_ID"; + /** Set Out Shipment Line. + @param Out_M_InOutLine_ID + Outgoing Shipment/Receipt + */ + public void setOut_M_InOutLine_ID (int Out_M_InOutLine_ID) + { + if (Out_M_InOutLine_ID <= 0) set_Value (COLUMNNAME_Out_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_Out_M_InOutLine_ID, Integer.valueOf(Out_M_InOutLine_ID)); + } + + /** Get Out Shipment Line. + @return Outgoing Shipment/Receipt + */ + public int getOut_M_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Out_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Out_M_InventoryLine_ID AD_Reference_ID=296 */ public static final int OUT_M_INVENTORYLINE_ID_AD_Reference_ID=296; -/** Set Out Inventory Line. -@param Out_M_InventoryLine_ID Outgoing Inventory Line */ -public void setOut_M_InventoryLine_ID (int Out_M_InventoryLine_ID) -{ -if (Out_M_InventoryLine_ID <= 0) set_Value ("Out_M_InventoryLine_ID", null); - else -set_Value ("Out_M_InventoryLine_ID", Integer.valueOf(Out_M_InventoryLine_ID)); -} -/** Get Out Inventory Line. -@return Outgoing Inventory Line */ -public int getOut_M_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("Out_M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Out_M_InventoryLine_ID */ -public static final String COLUMNNAME_Out_M_InventoryLine_ID = "Out_M_InventoryLine_ID"; + /** Set Out Inventory Line. + @param Out_M_InventoryLine_ID + Outgoing Inventory Line + */ + public void setOut_M_InventoryLine_ID (int Out_M_InventoryLine_ID) + { + if (Out_M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_Out_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_Out_M_InventoryLine_ID, Integer.valueOf(Out_M_InventoryLine_ID)); + } + + /** Get Out Inventory Line. + @return Outgoing Inventory Line + */ + public int getOut_M_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Out_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Out_M_ProductionLine_ID AD_Reference_ID=297 */ public static final int OUT_M_PRODUCTIONLINE_ID_AD_Reference_ID=297; -/** Set Out Production Line. -@param Out_M_ProductionLine_ID Outgoing Production Line */ -public void setOut_M_ProductionLine_ID (int Out_M_ProductionLine_ID) -{ -if (Out_M_ProductionLine_ID <= 0) set_Value ("Out_M_ProductionLine_ID", null); - else -set_Value ("Out_M_ProductionLine_ID", Integer.valueOf(Out_M_ProductionLine_ID)); -} -/** Get Out Production Line. -@return Outgoing Production Line */ -public int getOut_M_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("Out_M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Out_M_ProductionLine_ID */ -public static final String COLUMNNAME_Out_M_ProductionLine_ID = "Out_M_ProductionLine_ID"; + /** Set Out Production Line. + @param Out_M_ProductionLine_ID + Outgoing Production Line + */ + public void setOut_M_ProductionLine_ID (int Out_M_ProductionLine_ID) + { + if (Out_M_ProductionLine_ID <= 0) set_Value (COLUMNNAME_Out_M_ProductionLine_ID, null); + else + set_Value (COLUMNNAME_Out_M_ProductionLine_ID, Integer.valueOf(Out_M_ProductionLine_ID)); + } + + /** Get Out Production Line. + @return Outgoing Production Line + */ + public int getOut_M_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Out_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Out_M_Transaction_ID AD_Reference_ID=298 */ public static final int OUT_M_TRANSACTION_ID_AD_Reference_ID=298; -/** Set Out Transaction. -@param Out_M_Transaction_ID Outgoing Transaction */ -public void setOut_M_Transaction_ID (int Out_M_Transaction_ID) -{ -if (Out_M_Transaction_ID <= 0) set_Value ("Out_M_Transaction_ID", null); - else -set_Value ("Out_M_Transaction_ID", Integer.valueOf(Out_M_Transaction_ID)); -} -/** Get Out Transaction. -@return Outgoing Transaction */ -public int getOut_M_Transaction_ID() -{ -Integer ii = (Integer)get_Value("Out_M_Transaction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Out_M_Transaction_ID */ -public static final String COLUMNNAME_Out_M_Transaction_ID = "Out_M_Transaction_ID"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + /** Set Out Transaction. + @param Out_M_Transaction_ID + Outgoing Transaction + */ + public void setOut_M_Transaction_ID (int Out_M_Transaction_ID) + { + if (Out_M_Transaction_ID <= 0) set_Value (COLUMNNAME_Out_M_Transaction_ID, null); + else + set_Value (COLUMNNAME_Out_M_Transaction_ID, Integer.valueOf(Out_M_Transaction_ID)); + } + + /** Get Out Transaction. + @return Outgoing Transaction + */ + public int getOut_M_Transaction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Out_M_Transaction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Warehouse.java b/base/src/org/compiere/model/X_M_Warehouse.java index 51b584ce08..f6351ae43a 100644 --- a/base/src/org/compiere/model/X_M_Warehouse.java +++ b/base/src/org/compiere/model/X_M_Warehouse.java @@ -1,251 +1,270 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Warehouse - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Warehouse extends PO + +/** Generated Model for M_Warehouse + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Warehouse_ID id -@param trxName transaction -*/ -public X_M_Warehouse (Properties ctx, int M_Warehouse_ID, String trxName) -{ -super (ctx, M_Warehouse_ID, trxName); -/** if (M_Warehouse_ID == 0) -{ -setC_Location_ID (0); -setM_Warehouse_ID (0); -setName (null); -setSeparator (null); // * -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Warehouse (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Warehouse */ -public static final String Table_Name="M_Warehouse"; - -/** AD_Table_ID=190 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Warehouse[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID < 1) throw new IllegalArgumentException ("C_Location_ID is mandatory."); -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Warehouse (Properties ctx, int M_Warehouse_ID, String trxName) + { + super (ctx, M_Warehouse_ID, trxName); + /** if (M_Warehouse_ID == 0) { setC_Location_ID (0); + setM_Warehouse_ID (0); + setName (null); + setSeparator (null); +// * + setValue (null); +} */ + } + + /** Load Constructor */ + public X_M_Warehouse (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Warehouse[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID < 1) + throw new IllegalArgumentException ("C_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** M_WarehouseSource_ID AD_Reference_ID=197 */ public static final int M_WAREHOUSESOURCE_ID_AD_Reference_ID=197; -/** Set Source Warehouse. -@param M_WarehouseSource_ID Optional Warehouse to replenish from */ -public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) -{ -if (M_WarehouseSource_ID <= 0) set_Value ("M_WarehouseSource_ID", null); - else -set_Value ("M_WarehouseSource_ID", Integer.valueOf(M_WarehouseSource_ID)); -} -/** Get Source Warehouse. -@return Optional Warehouse to replenish from */ -public int getM_WarehouseSource_ID() -{ -Integer ii = (Integer)get_Value("M_WarehouseSource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_WarehouseSource_ID */ -public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Replenishment Class. -@param ReplenishmentClass Custom class to calculate Quantity to Order */ -public void setReplenishmentClass (String ReplenishmentClass) -{ -if (ReplenishmentClass != null && ReplenishmentClass.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ReplenishmentClass = ReplenishmentClass.substring(0,59); -} -set_Value ("ReplenishmentClass", ReplenishmentClass); -} -/** Get Replenishment Class. -@return Custom class to calculate Quantity to Order */ -public String getReplenishmentClass() -{ -return (String)get_Value("ReplenishmentClass"); -} -/** Column name ReplenishmentClass */ -public static final String COLUMNNAME_ReplenishmentClass = "ReplenishmentClass"; -/** Set Element Separator. -@param Separator Element Separator */ -public void setSeparator (String Separator) -{ -if (Separator == null) throw new IllegalArgumentException ("Separator is mandatory."); -if (Separator.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Separator = Separator.substring(0,0); -} -set_Value ("Separator", Separator); -} -/** Get Element Separator. -@return Element Separator */ -public String getSeparator() -{ -return (String)get_Value("Separator"); -} -/** Column name Separator */ -public static final String COLUMNNAME_Separator = "Separator"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Source Warehouse. + @param M_WarehouseSource_ID + Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) + { + if (M_WarehouseSource_ID <= 0) set_Value (COLUMNNAME_M_WarehouseSource_ID, null); + else + set_Value (COLUMNNAME_M_WarehouseSource_ID, Integer.valueOf(M_WarehouseSource_ID)); + } + + /** Get Source Warehouse. + @return Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_WarehouseSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Replenishment Class. + @param ReplenishmentClass + Custom class to calculate Quantity to Order + */ + public void setReplenishmentClass (String ReplenishmentClass) + { + if (ReplenishmentClass != null && ReplenishmentClass.length() > 60) + { + log.warning("Length > 60 - truncated"); + ReplenishmentClass = ReplenishmentClass.substring(0, 59); + } + set_Value (COLUMNNAME_ReplenishmentClass, ReplenishmentClass); + } + + /** Get Replenishment Class. + @return Custom class to calculate Quantity to Order + */ + public String getReplenishmentClass () + { + return (String)get_Value(COLUMNNAME_ReplenishmentClass); + } + + /** Set Element Separator. + @param Separator + Element Separator + */ + public void setSeparator (String Separator) + { + if (Separator == null) + throw new IllegalArgumentException ("Separator is mandatory."); + if (Separator.length() > 1) + { + log.warning("Length > 1 - truncated"); + Separator = Separator.substring(0, 0); + } + set_Value (COLUMNNAME_Separator, Separator); + } + + /** Get Element Separator. + @return Element Separator + */ + public String getSeparator () + { + return (String)get_Value(COLUMNNAME_Separator); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file 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 7aa61343ff..1447886d5a 100644 --- a/base/src/org/compiere/model/X_M_Warehouse_Acct.java +++ b/base/src/org/compiere/model/X_M_Warehouse_Acct.java @@ -1,191 +1,234 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for M_Warehouse_Acct - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_M_Warehouse_Acct extends PO + +/** Generated Model for M_Warehouse_Acct + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_M_Warehouse_Acct extends PO implements I_M_Warehouse_Acct, I_Persistent { -/** Standard Constructor -@param ctx context -@param M_Warehouse_Acct_ID id -@param trxName transaction -*/ -public X_M_Warehouse_Acct (Properties ctx, int M_Warehouse_Acct_ID, String trxName) -{ -super (ctx, M_Warehouse_Acct_ID, trxName); -/** if (M_Warehouse_Acct_ID == 0) -{ -setC_AcctSchema_ID (0); -setM_Warehouse_ID (0); -setW_Differences_Acct (0); -setW_InvActualAdjust_Acct (0); -setW_Inventory_Acct (0); -setW_Revaluation_Acct (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_M_Warehouse_Acct (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=M_Warehouse_Acct */ -public static final String Table_Name="M_Warehouse_Acct"; - -/** AD_Table_ID=191 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_M_Warehouse_Acct[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_ValueNoCheck ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Warehouse Differences. -@param W_Differences_Acct Warehouse Differences Account */ -public void setW_Differences_Acct (int W_Differences_Acct) -{ -set_Value ("W_Differences_Acct", Integer.valueOf(W_Differences_Acct)); -} -/** Get Warehouse Differences. -@return Warehouse Differences Account */ -public int getW_Differences_Acct() -{ -Integer ii = (Integer)get_Value("W_Differences_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Differences_Acct */ -public static final String COLUMNNAME_W_Differences_Acct = "W_Differences_Acct"; -/** Set Inventory Adjustment. -@param W_InvActualAdjust_Acct Account for Inventory value adjustments for Actual Costing */ -public void setW_InvActualAdjust_Acct (int W_InvActualAdjust_Acct) -{ -set_Value ("W_InvActualAdjust_Acct", Integer.valueOf(W_InvActualAdjust_Acct)); -} -/** Get Inventory Adjustment. -@return Account for Inventory value adjustments for Actual Costing */ -public int getW_InvActualAdjust_Acct() -{ -Integer ii = (Integer)get_Value("W_InvActualAdjust_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_InvActualAdjust_Acct */ -public static final String COLUMNNAME_W_InvActualAdjust_Acct = "W_InvActualAdjust_Acct"; -/** Set (Not Used). -@param W_Inventory_Acct Warehouse Inventory Asset Account - Currently not used */ -public void setW_Inventory_Acct (int W_Inventory_Acct) -{ -set_Value ("W_Inventory_Acct", Integer.valueOf(W_Inventory_Acct)); -} -/** Get (Not Used). -@return Warehouse Inventory Asset Account - Currently not used */ -public int getW_Inventory_Acct() -{ -Integer ii = (Integer)get_Value("W_Inventory_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Inventory_Acct */ -public static final String COLUMNNAME_W_Inventory_Acct = "W_Inventory_Acct"; -/** Set Inventory Revaluation. -@param W_Revaluation_Acct Account for Inventory Revaluation */ -public void setW_Revaluation_Acct (int W_Revaluation_Acct) -{ -set_Value ("W_Revaluation_Acct", Integer.valueOf(W_Revaluation_Acct)); -} -/** Get Inventory Revaluation. -@return Account for Inventory Revaluation */ -public int getW_Revaluation_Acct() -{ -Integer ii = (Integer)get_Value("W_Revaluation_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Revaluation_Acct */ -public static final String COLUMNNAME_W_Revaluation_Acct = "W_Revaluation_Acct"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Warehouse_Acct (Properties ctx, int M_Warehouse_Acct_ID, String trxName) + { + super (ctx, M_Warehouse_Acct_ID, trxName); + /** if (M_Warehouse_Acct_ID == 0) { setC_AcctSchema_ID (0); + setM_Warehouse_ID (0); + setW_Differences_Acct (0); + setW_InvActualAdjust_Acct (0); + setW_Inventory_Acct (0); + setW_Revaluation_Acct (0); +} */ + } + + /** Load Constructor */ + public X_M_Warehouse_Acct (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_M_Warehouse_Acct[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Warehouse Differences. + @param W_Differences_Acct + Warehouse Differences Account + */ + public void setW_Differences_Acct (int W_Differences_Acct) + { + set_Value (COLUMNNAME_W_Differences_Acct, Integer.valueOf(W_Differences_Acct)); + } + + /** Get Warehouse Differences. + @return Warehouse Differences Account + */ + public int getW_Differences_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Differences_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Adjustment. + @param W_InvActualAdjust_Acct + Account for Inventory value adjustments for Actual Costing + */ + public void setW_InvActualAdjust_Acct (int W_InvActualAdjust_Acct) + { + set_Value (COLUMNNAME_W_InvActualAdjust_Acct, Integer.valueOf(W_InvActualAdjust_Acct)); + } + + /** Get Inventory Adjustment. + @return Account for Inventory value adjustments for Actual Costing + */ + public int getW_InvActualAdjust_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_InvActualAdjust_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set (Not Used). + @param W_Inventory_Acct + Warehouse Inventory Asset Account - Currently not used + */ + public void setW_Inventory_Acct (int W_Inventory_Acct) + { + set_Value (COLUMNNAME_W_Inventory_Acct, Integer.valueOf(W_Inventory_Acct)); + } + + /** Get (Not Used). + @return Warehouse Inventory Asset Account - Currently not used + */ + public int getW_Inventory_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Inventory_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Revaluation. + @param W_Revaluation_Acct + Account for Inventory Revaluation + */ + public void setW_Revaluation_Acct (int W_Revaluation_Acct) + { + set_Value (COLUMNNAME_W_Revaluation_Acct, Integer.valueOf(W_Revaluation_Acct)); + } + + /** Get Inventory Revaluation. + @return Account for Inventory Revaluation + */ + public int getW_Revaluation_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Revaluation_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Achievement.java b/base/src/org/compiere/model/X_PA_Achievement.java index 55c49c1cfe..fa41583b0e 100644 --- a/base/src/org/compiere/model/X_PA_Achievement.java +++ b/base/src/org/compiere/model/X_PA_Achievement.java @@ -1,260 +1,297 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Achievement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Achievement extends PO + +/** Generated Model for PA_Achievement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Achievement extends PO implements I_PA_Achievement, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Achievement_ID id -@param trxName transaction -*/ -public X_PA_Achievement (Properties ctx, int PA_Achievement_ID, String trxName) -{ -super (ctx, PA_Achievement_ID, trxName); -/** if (PA_Achievement_ID == 0) -{ -setIsAchieved (false); -setManualActual (Env.ZERO); -setName (null); -setPA_Achievement_ID (0); -setPA_Measure_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Achievement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Achievement */ -public static final String Table_Name="PA_Achievement"; - -/** AD_Table_ID=438 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Achievement[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Document Date. -@param DateDoc Date of the Document */ -public void setDateDoc (Timestamp DateDoc) -{ -set_Value ("DateDoc", DateDoc); -} -/** Get Document Date. -@return Date of the Document */ -public Timestamp getDateDoc() -{ -return (Timestamp)get_Value("DateDoc"); -} -/** Column name DateDoc */ -public static final String COLUMNNAME_DateDoc = "DateDoc"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Achieved. -@param IsAchieved The goal is achieved */ -public void setIsAchieved (boolean IsAchieved) -{ -set_Value ("IsAchieved", Boolean.valueOf(IsAchieved)); -} -/** Get Achieved. -@return The goal is achieved */ -public boolean isAchieved() -{ -Object oo = get_Value("IsAchieved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAchieved */ -public static final String COLUMNNAME_IsAchieved = "IsAchieved"; -/** Set Manual Actual. -@param ManualActual Manually entered actual value */ -public void setManualActual (BigDecimal ManualActual) -{ -if (ManualActual == null) throw new IllegalArgumentException ("ManualActual is mandatory."); -set_Value ("ManualActual", ManualActual); -} -/** Get Manual Actual. -@return Manually entered actual value */ -public BigDecimal getManualActual() -{ -BigDecimal bd = (BigDecimal)get_Value("ManualActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ManualActual */ -public static final String COLUMNNAME_ManualActual = "ManualActual"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Note = Note.substring(0,1999); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Achievement. -@param PA_Achievement_ID Performance Achievement */ -public void setPA_Achievement_ID (int PA_Achievement_ID) -{ -if (PA_Achievement_ID < 1) throw new IllegalArgumentException ("PA_Achievement_ID is mandatory."); -set_ValueNoCheck ("PA_Achievement_ID", Integer.valueOf(PA_Achievement_ID)); -} -/** Get Achievement. -@return Performance Achievement */ -public int getPA_Achievement_ID() -{ -Integer ii = (Integer)get_Value("PA_Achievement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Achievement_ID */ -public static final String COLUMNNAME_PA_Achievement_ID = "PA_Achievement_ID"; -/** Set Measure. -@param PA_Measure_ID Concrete Performance Measurement */ -public void setPA_Measure_ID (int PA_Measure_ID) -{ -if (PA_Measure_ID < 1) throw new IllegalArgumentException ("PA_Measure_ID is mandatory."); -set_ValueNoCheck ("PA_Measure_ID", Integer.valueOf(PA_Measure_ID)); -} -/** Get Measure. -@return Concrete Performance Measurement */ -public int getPA_Measure_ID() -{ -Integer ii = (Integer)get_Value("PA_Measure_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Measure_ID */ -public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Achievement (Properties ctx, int PA_Achievement_ID, String trxName) + { + super (ctx, PA_Achievement_ID, trxName); + /** if (PA_Achievement_ID == 0) { setIsAchieved (false); + setManualActual (Env.ZERO); + setName (null); + setPA_Achievement_ID (0); + setPA_Measure_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_PA_Achievement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Achievement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Achieved. + @param IsAchieved + The goal is achieved + */ + public void setIsAchieved (boolean IsAchieved) + { + set_Value (COLUMNNAME_IsAchieved, Boolean.valueOf(IsAchieved)); + } + + /** Get Achieved. + @return The goal is achieved + */ + public boolean isAchieved () + { + Object oo = get_Value(COLUMNNAME_IsAchieved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Manual Actual. + @param ManualActual + Manually entered actual value + */ + public void setManualActual (BigDecimal ManualActual) + { + if (ManualActual == null) + throw new IllegalArgumentException ("ManualActual is mandatory."); + set_Value (COLUMNNAME_ManualActual, ManualActual); + } + + /** Get Manual Actual. + @return Manually entered actual value + */ + public BigDecimal getManualActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ManualActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Note = Note.substring(0, 1999); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + /** Set Achievement. + @param PA_Achievement_ID + Performance Achievement + */ + public void setPA_Achievement_ID (int PA_Achievement_ID) + { + if (PA_Achievement_ID < 1) + throw new IllegalArgumentException ("PA_Achievement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Achievement_ID, Integer.valueOf(PA_Achievement_ID)); + } + + /** Get Achievement. + @return Performance Achievement + */ + public int getPA_Achievement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Achievement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Measure getI_PA_Measure() throws Exception + { + 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 e; + } + return result; + } + + /** Set Measure. + @param PA_Measure_ID + Concrete Performance Measurement + */ + public void setPA_Measure_ID (int PA_Measure_ID) + { + if (PA_Measure_ID < 1) + throw new IllegalArgumentException ("PA_Measure_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); + } + + /** Get Measure. + @return Concrete Performance Measurement + */ + public int getPA_Measure_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Measure_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Benchmark.java b/base/src/org/compiere/model/X_PA_Benchmark.java index 1f8fcb39a1..54de0f4a78 100644 --- a/base/src/org/compiere/model/X_PA_Benchmark.java +++ b/base/src/org/compiere/model/X_PA_Benchmark.java @@ -1,200 +1,199 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Benchmark - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Benchmark extends PO + +/** Generated Model for PA_Benchmark + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Benchmark extends PO implements I_PA_Benchmark, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Benchmark_ID id -@param trxName transaction -*/ -public X_PA_Benchmark (Properties ctx, int PA_Benchmark_ID, String trxName) -{ -super (ctx, PA_Benchmark_ID, trxName); -/** if (PA_Benchmark_ID == 0) -{ -setAccumulationType (null); -setName (null); -setPA_Benchmark_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Benchmark (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Benchmark */ -public static final String Table_Name="PA_Benchmark"; - -/** AD_Table_ID=833 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Benchmark[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Benchmark (Properties ctx, int PA_Benchmark_ID, String trxName) + { + super (ctx, PA_Benchmark_ID, trxName); + /** if (PA_Benchmark_ID == 0) { setAccumulationType (null); + setName (null); + setPA_Benchmark_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_Benchmark (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Benchmark[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AccumulationType AD_Reference_ID=370 */ -public static final int ACCUMULATIONTYPE_AD_Reference_ID=370; -/** Average = A */ -public static final String ACCUMULATIONTYPE_Average = "A"; -/** Sum = S */ +public static final int ACCUMULATIONTYPE_AD_Reference_ID=370;/** Average = A */ +public static final String ACCUMULATIONTYPE_Average = "A";/** Sum = S */ public static final String ACCUMULATIONTYPE_Sum = "S"; -/** Set Accumulation Type. -@param AccumulationType How to accumulate data on time axis */ -public void setAccumulationType (String AccumulationType) -{ -if (AccumulationType == null) throw new IllegalArgumentException ("AccumulationType is mandatory"); -if (AccumulationType.equals("A") || AccumulationType.equals("S")); - else throw new IllegalArgumentException ("AccumulationType Invalid value - " + AccumulationType + " - Reference_ID=370 - A - S"); -if (AccumulationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -AccumulationType = AccumulationType.substring(0,0); -} -set_Value ("AccumulationType", AccumulationType); -} -/** Get Accumulation Type. -@return How to accumulate data on time axis */ -public String getAccumulationType() -{ -return (String)get_Value("AccumulationType"); -} -/** Column name AccumulationType */ -public static final String COLUMNNAME_AccumulationType = "AccumulationType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Benchmark. -@param PA_Benchmark_ID Performance Benchmark */ -public void setPA_Benchmark_ID (int PA_Benchmark_ID) -{ -if (PA_Benchmark_ID < 1) throw new IllegalArgumentException ("PA_Benchmark_ID is mandatory."); -set_ValueNoCheck ("PA_Benchmark_ID", Integer.valueOf(PA_Benchmark_ID)); -} -/** Get Benchmark. -@return Performance Benchmark */ -public int getPA_Benchmark_ID() -{ -Integer ii = (Integer)get_Value("PA_Benchmark_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Benchmark_ID */ -public static final String COLUMNNAME_PA_Benchmark_ID = "PA_Benchmark_ID"; -} + /** Set Accumulation Type. + @param AccumulationType + How to accumulate data on time axis + */ + public void setAccumulationType (String AccumulationType) + { +if (AccumulationType == null) throw new IllegalArgumentException ("AccumulationType is mandatory");if (AccumulationType.equals("A") || AccumulationType.equals("S")); else throw new IllegalArgumentException ("AccumulationType Invalid value - " + AccumulationType + " - Reference_ID=370 - A - S"); if (AccumulationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccumulationType = AccumulationType.substring(0, 0); + } + set_Value (COLUMNNAME_AccumulationType, AccumulationType); + } + + /** Get Accumulation Type. + @return How to accumulate data on time axis + */ + public String getAccumulationType () + { + return (String)get_Value(COLUMNNAME_AccumulationType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Benchmark. + @param PA_Benchmark_ID + Performance Benchmark + */ + public void setPA_Benchmark_ID (int PA_Benchmark_ID) + { + if (PA_Benchmark_ID < 1) + throw new IllegalArgumentException ("PA_Benchmark_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); + } + + /** Get Benchmark. + @return Performance Benchmark + */ + public int getPA_Benchmark_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Benchmark_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_BenchmarkData.java b/base/src/org/compiere/model/X_PA_BenchmarkData.java index 83122de77a..086d0c8ddf 100644 --- a/base/src/org/compiere/model/X_PA_BenchmarkData.java +++ b/base/src/org/compiere/model/X_PA_BenchmarkData.java @@ -1,203 +1,232 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_BenchmarkData - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_BenchmarkData extends PO + +/** Generated Model for PA_BenchmarkData + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_BenchmarkData extends PO implements I_PA_BenchmarkData, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_BenchmarkData_ID id -@param trxName transaction -*/ -public X_PA_BenchmarkData (Properties ctx, int PA_BenchmarkData_ID, String trxName) -{ -super (ctx, PA_BenchmarkData_ID, trxName); -/** if (PA_BenchmarkData_ID == 0) -{ -setBenchmarkDate (new Timestamp(System.currentTimeMillis())); -setBenchmarkValue (Env.ZERO); -setName (null); -setPA_BenchmarkData_ID (0); -setPA_Benchmark_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_BenchmarkData (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_BenchmarkData */ -public static final String Table_Name="PA_BenchmarkData"; - -/** AD_Table_ID=834 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_BenchmarkData[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Date. -@param BenchmarkDate Benchmark Date */ -public void setBenchmarkDate (Timestamp BenchmarkDate) -{ -if (BenchmarkDate == null) throw new IllegalArgumentException ("BenchmarkDate is mandatory."); -set_Value ("BenchmarkDate", BenchmarkDate); -} -/** Get Date. -@return Benchmark Date */ -public Timestamp getBenchmarkDate() -{ -return (Timestamp)get_Value("BenchmarkDate"); -} -/** Column name BenchmarkDate */ -public static final String COLUMNNAME_BenchmarkDate = "BenchmarkDate"; -/** Set Value. -@param BenchmarkValue Benchmark Value */ -public void setBenchmarkValue (BigDecimal BenchmarkValue) -{ -if (BenchmarkValue == null) throw new IllegalArgumentException ("BenchmarkValue is mandatory."); -set_Value ("BenchmarkValue", BenchmarkValue); -} -/** Get Value. -@return Benchmark Value */ -public BigDecimal getBenchmarkValue() -{ -BigDecimal bd = (BigDecimal)get_Value("BenchmarkValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name BenchmarkValue */ -public static final String COLUMNNAME_BenchmarkValue = "BenchmarkValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Benchmark Data. -@param PA_BenchmarkData_ID Performance Benchmark Data Point */ -public void setPA_BenchmarkData_ID (int PA_BenchmarkData_ID) -{ -if (PA_BenchmarkData_ID < 1) throw new IllegalArgumentException ("PA_BenchmarkData_ID is mandatory."); -set_ValueNoCheck ("PA_BenchmarkData_ID", Integer.valueOf(PA_BenchmarkData_ID)); -} -/** Get Benchmark Data. -@return Performance Benchmark Data Point */ -public int getPA_BenchmarkData_ID() -{ -Integer ii = (Integer)get_Value("PA_BenchmarkData_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_BenchmarkData_ID */ -public static final String COLUMNNAME_PA_BenchmarkData_ID = "PA_BenchmarkData_ID"; -/** Set Benchmark. -@param PA_Benchmark_ID Performance Benchmark */ -public void setPA_Benchmark_ID (int PA_Benchmark_ID) -{ -if (PA_Benchmark_ID < 1) throw new IllegalArgumentException ("PA_Benchmark_ID is mandatory."); -set_ValueNoCheck ("PA_Benchmark_ID", Integer.valueOf(PA_Benchmark_ID)); -} -/** Get Benchmark. -@return Performance Benchmark */ -public int getPA_Benchmark_ID() -{ -Integer ii = (Integer)get_Value("PA_Benchmark_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Benchmark_ID */ -public static final String COLUMNNAME_PA_Benchmark_ID = "PA_Benchmark_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_BenchmarkData (Properties ctx, int PA_BenchmarkData_ID, String trxName) + { + super (ctx, PA_BenchmarkData_ID, trxName); + /** if (PA_BenchmarkData_ID == 0) { setBenchmarkDate (new Timestamp(System.currentTimeMillis())); + setBenchmarkValue (Env.ZERO); + setName (null); + setPA_BenchmarkData_ID (0); + setPA_Benchmark_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_BenchmarkData (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_BenchmarkData[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Date. + @param BenchmarkDate + Benchmark Date + */ + public void setBenchmarkDate (Timestamp BenchmarkDate) + { + if (BenchmarkDate == null) + throw new IllegalArgumentException ("BenchmarkDate is mandatory."); + set_Value (COLUMNNAME_BenchmarkDate, BenchmarkDate); + } + + /** Get Date. + @return Benchmark Date + */ + public Timestamp getBenchmarkDate () + { + return (Timestamp)get_Value(COLUMNNAME_BenchmarkDate); + } + + /** Set Value. + @param BenchmarkValue + Benchmark Value + */ + public void setBenchmarkValue (BigDecimal BenchmarkValue) + { + if (BenchmarkValue == null) + throw new IllegalArgumentException ("BenchmarkValue is mandatory."); + set_Value (COLUMNNAME_BenchmarkValue, BenchmarkValue); + } + + /** Get Value. + @return Benchmark Value + */ + public BigDecimal getBenchmarkValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BenchmarkValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Benchmark Data. + @param PA_BenchmarkData_ID + Performance Benchmark Data Point + */ + public void setPA_BenchmarkData_ID (int PA_BenchmarkData_ID) + { + if (PA_BenchmarkData_ID < 1) + throw new IllegalArgumentException ("PA_BenchmarkData_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_BenchmarkData_ID, Integer.valueOf(PA_BenchmarkData_ID)); + } + + /** Get Benchmark Data. + @return Performance Benchmark Data Point + */ + public int getPA_BenchmarkData_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_BenchmarkData_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Benchmark getI_PA_Benchmark() throws Exception + { + 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 e; + } + return result; + } + + /** Set Benchmark. + @param PA_Benchmark_ID + Performance Benchmark + */ + public void setPA_Benchmark_ID (int PA_Benchmark_ID) + { + if (PA_Benchmark_ID < 1) + throw new IllegalArgumentException ("PA_Benchmark_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); + } + + /** Get Benchmark. + @return Performance Benchmark + */ + public int getPA_Benchmark_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Benchmark_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_ColorSchema.java b/base/src/org/compiere/model/X_PA_ColorSchema.java index 62baeb4951..67effc2c36 100644 --- a/base/src/org/compiere/model/X_PA_ColorSchema.java +++ b/base/src/org/compiere/model/X_PA_ColorSchema.java @@ -1,326 +1,356 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_ColorSchema - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_ColorSchema extends PO + +/** Generated Model for PA_ColorSchema + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_ColorSchema extends PO implements I_PA_ColorSchema, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_ColorSchema_ID id -@param trxName transaction -*/ -public X_PA_ColorSchema (Properties ctx, int PA_ColorSchema_ID, String trxName) -{ -super (ctx, PA_ColorSchema_ID, trxName); -/** if (PA_ColorSchema_ID == 0) -{ -setAD_PrintColor1_ID (0); -setAD_PrintColor2_ID (0); -setEntityType (null); // U -setMark1Percent (0); -setMark2Percent (0); -setName (null); -setPA_ColorSchema_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_ColorSchema (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_ColorSchema */ -public static final String Table_Name="PA_ColorSchema"; - -/** AD_Table_ID=831 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_ColorSchema[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_ColorSchema (Properties ctx, int PA_ColorSchema_ID, String trxName) + { + super (ctx, PA_ColorSchema_ID, trxName); + /** if (PA_ColorSchema_ID == 0) { setAD_PrintColor1_ID (0); + setAD_PrintColor2_ID (0); + setEntityType (null); +// U + setMark1Percent (0); + setMark2Percent (0); + setName (null); + setPA_ColorSchema_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_ColorSchema (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_ColorSchema[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_PrintColor1_ID AD_Reference_ID=266 */ public static final int AD_PRINTCOLOR1_ID_AD_Reference_ID=266; -/** Set Color 1. -@param AD_PrintColor1_ID First color used */ -public void setAD_PrintColor1_ID (int AD_PrintColor1_ID) -{ -if (AD_PrintColor1_ID < 1) throw new IllegalArgumentException ("AD_PrintColor1_ID is mandatory."); -set_Value ("AD_PrintColor1_ID", Integer.valueOf(AD_PrintColor1_ID)); -} -/** Get Color 1. -@return First color used */ -public int getAD_PrintColor1_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor1_ID */ -public static final String COLUMNNAME_AD_PrintColor1_ID = "AD_PrintColor1_ID"; + /** Set Color 1. + @param AD_PrintColor1_ID + First color used + */ + public void setAD_PrintColor1_ID (int AD_PrintColor1_ID) + { + if (AD_PrintColor1_ID < 1) + throw new IllegalArgumentException ("AD_PrintColor1_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintColor1_ID, Integer.valueOf(AD_PrintColor1_ID)); + } + + /** Get Color 1. + @return First color used + */ + public int getAD_PrintColor1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_PrintColor2_ID AD_Reference_ID=266 */ public static final int AD_PRINTCOLOR2_ID_AD_Reference_ID=266; -/** Set Color 2. -@param AD_PrintColor2_ID Second color used */ -public void setAD_PrintColor2_ID (int AD_PrintColor2_ID) -{ -if (AD_PrintColor2_ID < 1) throw new IllegalArgumentException ("AD_PrintColor2_ID is mandatory."); -set_Value ("AD_PrintColor2_ID", Integer.valueOf(AD_PrintColor2_ID)); -} -/** Get Color 2. -@return Second color used */ -public int getAD_PrintColor2_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor2_ID */ -public static final String COLUMNNAME_AD_PrintColor2_ID = "AD_PrintColor2_ID"; + /** Set Color 2. + @param AD_PrintColor2_ID + Second color used + */ + public void setAD_PrintColor2_ID (int AD_PrintColor2_ID) + { + if (AD_PrintColor2_ID < 1) + throw new IllegalArgumentException ("AD_PrintColor2_ID is mandatory."); + set_Value (COLUMNNAME_AD_PrintColor2_ID, Integer.valueOf(AD_PrintColor2_ID)); + } + + /** Get Color 2. + @return Second color used + */ + public int getAD_PrintColor2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_PrintColor3_ID AD_Reference_ID=266 */ public static final int AD_PRINTCOLOR3_ID_AD_Reference_ID=266; -/** Set Color 3. -@param AD_PrintColor3_ID Third color used */ -public void setAD_PrintColor3_ID (int AD_PrintColor3_ID) -{ -if (AD_PrintColor3_ID <= 0) set_Value ("AD_PrintColor3_ID", null); - else -set_Value ("AD_PrintColor3_ID", Integer.valueOf(AD_PrintColor3_ID)); -} -/** Get Color 3. -@return Third color used */ -public int getAD_PrintColor3_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor3_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor3_ID */ -public static final String COLUMNNAME_AD_PrintColor3_ID = "AD_PrintColor3_ID"; + /** Set Color 3. + @param AD_PrintColor3_ID + Third color used + */ + public void setAD_PrintColor3_ID (int AD_PrintColor3_ID) + { + if (AD_PrintColor3_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor3_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor3_ID, Integer.valueOf(AD_PrintColor3_ID)); + } + + /** Get Color 3. + @return Third color used + */ + public int getAD_PrintColor3_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor3_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_PrintColor4_ID AD_Reference_ID=266 */ public static final int AD_PRINTCOLOR4_ID_AD_Reference_ID=266; -/** Set Color 4. -@param AD_PrintColor4_ID Forth color used */ -public void setAD_PrintColor4_ID (int AD_PrintColor4_ID) -{ -if (AD_PrintColor4_ID <= 0) set_Value ("AD_PrintColor4_ID", null); - else -set_Value ("AD_PrintColor4_ID", Integer.valueOf(AD_PrintColor4_ID)); -} -/** Get Color 4. -@return Forth color used */ -public int getAD_PrintColor4_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintColor4_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintColor4_ID */ -public static final String COLUMNNAME_AD_PrintColor4_ID = "AD_PrintColor4_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Color 4. + @param AD_PrintColor4_ID + Forth color used + */ + public void setAD_PrintColor4_ID (int AD_PrintColor4_ID) + { + if (AD_PrintColor4_ID <= 0) set_Value (COLUMNNAME_AD_PrintColor4_ID, null); + else + set_Value (COLUMNNAME_AD_PrintColor4_ID, Integer.valueOf(AD_PrintColor4_ID)); + } + + /** Get Color 4. + @return Forth color used + */ + public int getAD_PrintColor4_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor4_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Mark 1 Percent. -@param Mark1Percent Percentage up to this color is used */ -public void setMark1Percent (int Mark1Percent) -{ -set_Value ("Mark1Percent", Integer.valueOf(Mark1Percent)); -} -/** Get Mark 1 Percent. -@return Percentage up to this color is used */ -public int getMark1Percent() -{ -Integer ii = (Integer)get_Value("Mark1Percent"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Mark1Percent */ -public static final String COLUMNNAME_Mark1Percent = "Mark1Percent"; -/** Set Mark 2 Percent. -@param Mark2Percent Percentage up to this color is used */ -public void setMark2Percent (int Mark2Percent) -{ -set_Value ("Mark2Percent", Integer.valueOf(Mark2Percent)); -} -/** Get Mark 2 Percent. -@return Percentage up to this color is used */ -public int getMark2Percent() -{ -Integer ii = (Integer)get_Value("Mark2Percent"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Mark2Percent */ -public static final String COLUMNNAME_Mark2Percent = "Mark2Percent"; -/** Set Mark 3 Percent. -@param Mark3Percent Percentage up to this color is used */ -public void setMark3Percent (int Mark3Percent) -{ -set_Value ("Mark3Percent", Integer.valueOf(Mark3Percent)); -} -/** Get Mark 3 Percent. -@return Percentage up to this color is used */ -public int getMark3Percent() -{ -Integer ii = (Integer)get_Value("Mark3Percent"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Mark3Percent */ -public static final String COLUMNNAME_Mark3Percent = "Mark3Percent"; -/** Set Mark 4 Percent. -@param Mark4Percent Percentage up to this color is used */ -public void setMark4Percent (int Mark4Percent) -{ -set_Value ("Mark4Percent", Integer.valueOf(Mark4Percent)); -} -/** Get Mark 4 Percent. -@return Percentage up to this color is used */ -public int getMark4Percent() -{ -Integer ii = (Integer)get_Value("Mark4Percent"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Mark4Percent */ -public static final String COLUMNNAME_Mark4Percent = "Mark4Percent"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Color Schema. -@param PA_ColorSchema_ID Performance Color Schema */ -public void setPA_ColorSchema_ID (int PA_ColorSchema_ID) -{ -if (PA_ColorSchema_ID < 1) throw new IllegalArgumentException ("PA_ColorSchema_ID is mandatory."); -set_ValueNoCheck ("PA_ColorSchema_ID", Integer.valueOf(PA_ColorSchema_ID)); -} -/** Get Color Schema. -@return Performance Color Schema */ -public int getPA_ColorSchema_ID() -{ -Integer ii = (Integer)get_Value("PA_ColorSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ColorSchema_ID */ -public static final String COLUMNNAME_PA_ColorSchema_ID = "PA_ColorSchema_ID"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Mark 1 Percent. + @param Mark1Percent + Percentage up to this color is used + */ + public void setMark1Percent (int Mark1Percent) + { + set_Value (COLUMNNAME_Mark1Percent, Integer.valueOf(Mark1Percent)); + } + + /** Get Mark 1 Percent. + @return Percentage up to this color is used + */ + public int getMark1Percent () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Mark1Percent); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Mark 2 Percent. + @param Mark2Percent + Percentage up to this color is used + */ + public void setMark2Percent (int Mark2Percent) + { + set_Value (COLUMNNAME_Mark2Percent, Integer.valueOf(Mark2Percent)); + } + + /** Get Mark 2 Percent. + @return Percentage up to this color is used + */ + public int getMark2Percent () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Mark2Percent); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Mark 3 Percent. + @param Mark3Percent + Percentage up to this color is used + */ + public void setMark3Percent (int Mark3Percent) + { + set_Value (COLUMNNAME_Mark3Percent, Integer.valueOf(Mark3Percent)); + } + + /** Get Mark 3 Percent. + @return Percentage up to this color is used + */ + public int getMark3Percent () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Mark3Percent); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Mark 4 Percent. + @param Mark4Percent + Percentage up to this color is used + */ + public void setMark4Percent (int Mark4Percent) + { + set_Value (COLUMNNAME_Mark4Percent, Integer.valueOf(Mark4Percent)); + } + + /** Get Mark 4 Percent. + @return Percentage up to this color is used + */ + public int getMark4Percent () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Mark4Percent); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Color Schema. + @param PA_ColorSchema_ID + Performance Color Schema + */ + public void setPA_ColorSchema_ID (int PA_ColorSchema_ID) + { + if (PA_ColorSchema_ID < 1) + throw new IllegalArgumentException ("PA_ColorSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ColorSchema_ID, Integer.valueOf(PA_ColorSchema_ID)); + } + + /** Get Color Schema. + @return Performance Color Schema + */ + public int getPA_ColorSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ColorSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_DashboardContent.java b/base/src/org/compiere/model/X_PA_DashboardContent.java index d393251dd9..dd804aed2c 100644 --- a/base/src/org/compiere/model/X_PA_DashboardContent.java +++ b/base/src/org/compiere/model/X_PA_DashboardContent.java @@ -1,217 +1,257 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_DashboardContent - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_DashboardContent extends PO + +/** Generated Model for PA_DashboardContent + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_DashboardContent extends PO implements I_PA_DashboardContent, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_DashboardContent_ID id -@param trxName transaction -*/ -public X_PA_DashboardContent (Properties ctx, int PA_DashboardContent_ID, String trxName) -{ -super (ctx, PA_DashboardContent_ID, trxName); -/** if (PA_DashboardContent_ID == 0) -{ -setName (null); -setPA_DashboardContent_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_DashboardContent (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_DashboardContent */ -public static final String Table_Name="PA_DashboardContent"; - -/** AD_Table_ID=50010 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_DashboardContent[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Window. -@param AD_Window_ID Data entry or display window */ -public void setAD_Window_ID (int AD_Window_ID) -{ -if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null); - else -set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID)); -} -/** Get Window. -@return Data entry or display window */ -public int getAD_Window_ID() -{ -Integer ii = (Integer)get_Value("AD_Window_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Window_ID */ -public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set HTML. -@param HTML HTML */ -public void setHTML (String HTML) -{ -set_Value ("HTML", HTML); -} -/** Get HTML. -@return HTML */ -public String getHTML() -{ -return (String)get_Value("HTML"); -} -/** Column name HTML */ -public static final String COLUMNNAME_HTML = "HTML"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (BigDecimal Line) -{ -set_Value ("Line", Line); -} -/** Get Line No. -@return Unique line for this document */ -public BigDecimal getLine() -{ -BigDecimal bd = (BigDecimal)get_Value("Line"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set PA_DashboardContent_ID. -@param PA_DashboardContent_ID PA_DashboardContent_ID */ -public void setPA_DashboardContent_ID (int PA_DashboardContent_ID) -{ -if (PA_DashboardContent_ID < 1) throw new IllegalArgumentException ("PA_DashboardContent_ID is mandatory."); -set_ValueNoCheck ("PA_DashboardContent_ID", Integer.valueOf(PA_DashboardContent_ID)); -} -/** Get PA_DashboardContent_ID. -@return PA_DashboardContent_ID */ -public int getPA_DashboardContent_ID() -{ -Integer ii = (Integer)get_Value("PA_DashboardContent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_DashboardContent_ID */ -public static final String COLUMNNAME_PA_DashboardContent_ID = "PA_DashboardContent_ID"; -/** Set Goal. -@param PA_Goal_ID Performance Goal */ -public void setPA_Goal_ID (int PA_Goal_ID) -{ -if (PA_Goal_ID <= 0) set_Value ("PA_Goal_ID", null); - else -set_Value ("PA_Goal_ID", Integer.valueOf(PA_Goal_ID)); -} -/** Get Goal. -@return Performance Goal */ -public int getPA_Goal_ID() -{ -Integer ii = (Integer)get_Value("PA_Goal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Goal_ID */ -public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_DashboardContent (Properties ctx, int PA_DashboardContent_ID, String trxName) + { + super (ctx, PA_DashboardContent_ID, trxName); + /** if (PA_DashboardContent_ID == 0) { setName (null); + setPA_DashboardContent_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_DashboardContent (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_DashboardContent[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Window getI_AD_Window() throws Exception + { + 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 e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID <= 0) set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set HTML. + @param HTML HTML */ + public void setHTML (String HTML) + { + set_Value (COLUMNNAME_HTML, HTML); + } + + /** Get HTML. +@return HTML */ + public String getHTML () + { + return (String)get_Value(COLUMNNAME_HTML); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (BigDecimal Line) + { + set_Value (COLUMNNAME_Line, Line); + } + + /** Get Line No. + @return Unique line for this document + */ + public BigDecimal getLine () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Line); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set PA_DashboardContent_ID. + @param PA_DashboardContent_ID PA_DashboardContent_ID */ + public void setPA_DashboardContent_ID (int PA_DashboardContent_ID) + { + if (PA_DashboardContent_ID < 1) + throw new IllegalArgumentException ("PA_DashboardContent_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, Integer.valueOf(PA_DashboardContent_ID)); + } + + /** Get PA_DashboardContent_ID. +@return PA_DashboardContent_ID */ + public int getPA_DashboardContent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_DashboardContent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Goal getI_PA_Goal() throws Exception + { + 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 e; + } + return result; + } + + /** Set Goal. + @param PA_Goal_ID + Performance Goal + */ + public void setPA_Goal_ID (int PA_Goal_ID) + { + if (PA_Goal_ID <= 0) set_Value (COLUMNNAME_PA_Goal_ID, null); + else + set_Value (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); + } + + /** Get Goal. + @return Performance Goal + */ + public int getPA_Goal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Goal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Goal.java b/base/src/org/compiere/model/X_PA_Goal.java index a0d267905b..c00d4d5d09 100644 --- a/base/src/org/compiere/model/X_PA_Goal.java +++ b/base/src/org/compiere/model/X_PA_Goal.java @@ -1,491 +1,584 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Goal - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Goal extends PO + +/** Generated Model for PA_Goal + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Goal_ID id -@param trxName transaction -*/ -public X_PA_Goal (Properties ctx, int PA_Goal_ID, String trxName) -{ -super (ctx, PA_Goal_ID, trxName); -/** if (PA_Goal_ID == 0) -{ -setGoalPerformance (Env.ZERO); -setIsSummary (false); -setMeasureActual (Env.ZERO); -setMeasureScope (null); -setMeasureTarget (Env.ZERO); -setName (null); -setPA_ColorSchema_ID (0); -setPA_Goal_ID (0); -setRelativeWeight (Env.ZERO); // 1 -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Goal (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Goal */ -public static final String Table_Name="PA_Goal"; - -/** AD_Table_ID=440 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Goal[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Date From. -@param DateFrom Starting date for a range */ -public void setDateFrom (Timestamp DateFrom) -{ -set_Value ("DateFrom", DateFrom); -} -/** Get Date From. -@return Starting date for a range */ -public Timestamp getDateFrom() -{ -return (Timestamp)get_Value("DateFrom"); -} -/** Column name DateFrom */ -public static final String COLUMNNAME_DateFrom = "DateFrom"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_ValueNoCheck ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date To. -@param DateTo End date of a date range */ -public void setDateTo (Timestamp DateTo) -{ -set_Value ("DateTo", DateTo); -} -/** Get Date To. -@return End date of a date range */ -public Timestamp getDateTo() -{ -return (Timestamp)get_Value("DateTo"); -} -/** Column name DateTo */ -public static final String COLUMNNAME_DateTo = "DateTo"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Performance Goal. -@param GoalPerformance Target achievement from 0..1 */ -public void setGoalPerformance (BigDecimal GoalPerformance) -{ -if (GoalPerformance == null) throw new IllegalArgumentException ("GoalPerformance is mandatory."); -set_ValueNoCheck ("GoalPerformance", GoalPerformance); -} -/** Get Performance Goal. -@return Target achievement from 0..1 */ -public BigDecimal getGoalPerformance() -{ -BigDecimal bd = (BigDecimal)get_Value("GoalPerformance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GoalPerformance */ -public static final String COLUMNNAME_GoalPerformance = "GoalPerformance"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_Value ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Measure Actual. -@param MeasureActual Actual value that has been measured. */ -public void setMeasureActual (BigDecimal MeasureActual) -{ -if (MeasureActual == null) throw new IllegalArgumentException ("MeasureActual is mandatory."); -set_ValueNoCheck ("MeasureActual", MeasureActual); -} -/** Get Measure Actual. -@return Actual value that has been measured. */ -public BigDecimal getMeasureActual() -{ -BigDecimal bd = (BigDecimal)get_Value("MeasureActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MeasureActual */ -public static final String COLUMNNAME_MeasureActual = "MeasureActual"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Goal (Properties ctx, int PA_Goal_ID, String trxName) + { + super (ctx, PA_Goal_ID, trxName); + /** if (PA_Goal_ID == 0) { setGoalPerformance (Env.ZERO); + setIsSummary (false); + setMeasureActual (Env.ZERO); + setMeasureScope (null); + setMeasureTarget (Env.ZERO); + setName (null); + setPA_ColorSchema_ID (0); + setPA_Goal_ID (0); + setRelativeWeight (Env.ZERO); +// 1 + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_PA_Goal (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Goal[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date From. + @param DateFrom + Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom) + { + set_Value (COLUMNNAME_DateFrom, DateFrom); + } + + /** Get Date From. + @return Starting date for a range + */ + public Timestamp getDateFrom () + { + return (Timestamp)get_Value(COLUMNNAME_DateFrom); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_ValueNoCheck (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date To. + @param DateTo + End date of a date range + */ + public void setDateTo (Timestamp DateTo) + { + set_Value (COLUMNNAME_DateTo, DateTo); + } + + /** Get Date To. + @return End date of a date range + */ + public Timestamp getDateTo () + { + return (Timestamp)get_Value(COLUMNNAME_DateTo); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Performance Goal. + @param GoalPerformance + Target achievement from 0..1 + */ + public void setGoalPerformance (BigDecimal GoalPerformance) + { + if (GoalPerformance == null) + throw new IllegalArgumentException ("GoalPerformance is mandatory."); + set_ValueNoCheck (COLUMNNAME_GoalPerformance, GoalPerformance); + } + + /** Get Performance Goal. + @return Target achievement from 0..1 + */ + public BigDecimal getGoalPerformance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GoalPerformance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Measure Actual. + @param MeasureActual + Actual value that has been measured. + */ + public void setMeasureActual (BigDecimal MeasureActual) + { + if (MeasureActual == null) + throw new IllegalArgumentException ("MeasureActual is mandatory."); + set_ValueNoCheck (COLUMNNAME_MeasureActual, MeasureActual); + } + + /** Get Measure Actual. + @return Actual value that has been measured. + */ + public BigDecimal getMeasureActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MeasureActual); + if (bd == null) + return Env.ZERO; + return bd; + } /** MeasureDisplay AD_Reference_ID=367 */ -public static final int MEASUREDISPLAY_AD_Reference_ID=367; -/** Total = 0 */ -public static final String MEASUREDISPLAY_Total = "0"; -/** Year = 1 */ -public static final String MEASUREDISPLAY_Year = "1"; -/** Quarter = 3 */ -public static final String MEASUREDISPLAY_Quarter = "3"; -/** Month = 5 */ -public static final String MEASUREDISPLAY_Month = "5"; -/** Week = 7 */ -public static final String MEASUREDISPLAY_Week = "7"; -/** Day = 8 */ +public static final int MEASUREDISPLAY_AD_Reference_ID=367;/** Total = 0 */ +public static final String MEASUREDISPLAY_Total = "0";/** Year = 1 */ +public static final String MEASUREDISPLAY_Year = "1";/** Quarter = 3 */ +public static final String MEASUREDISPLAY_Quarter = "3";/** Month = 5 */ +public static final String MEASUREDISPLAY_Month = "5";/** Week = 7 */ +public static final String MEASUREDISPLAY_Week = "7";/** Day = 8 */ public static final String MEASUREDISPLAY_Day = "8"; -/** Set Measure Display. -@param MeasureDisplay Measure Scope initially displayed */ -public void setMeasureDisplay (String MeasureDisplay) -{ -if (MeasureDisplay == null || MeasureDisplay.equals("0") || MeasureDisplay.equals("1") || MeasureDisplay.equals("3") || MeasureDisplay.equals("5") || MeasureDisplay.equals("7") || MeasureDisplay.equals("8")); - else throw new IllegalArgumentException ("MeasureDisplay Invalid value - " + MeasureDisplay + " - Reference_ID=367 - 0 - 1 - 3 - 5 - 7 - 8"); -if (MeasureDisplay != null && MeasureDisplay.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MeasureDisplay = MeasureDisplay.substring(0,0); -} -set_Value ("MeasureDisplay", MeasureDisplay); -} -/** Get Measure Display. -@return Measure Scope initially displayed */ -public String getMeasureDisplay() -{ -return (String)get_Value("MeasureDisplay"); -} -/** Column name MeasureDisplay */ -public static final String COLUMNNAME_MeasureDisplay = "MeasureDisplay"; + /** Set Measure Display. + @param MeasureDisplay + Measure Scope initially displayed + */ + public void setMeasureDisplay (String MeasureDisplay) + { +if (MeasureDisplay == null || MeasureDisplay.equals("0") || MeasureDisplay.equals("1") || MeasureDisplay.equals("3") || MeasureDisplay.equals("5") || MeasureDisplay.equals("7") || MeasureDisplay.equals("8")); else throw new IllegalArgumentException ("MeasureDisplay Invalid value - " + MeasureDisplay + " - Reference_ID=367 - 0 - 1 - 3 - 5 - 7 - 8"); if (MeasureDisplay != null && MeasureDisplay.length() > 1) + { + log.warning("Length > 1 - truncated"); + MeasureDisplay = MeasureDisplay.substring(0, 0); + } + set_Value (COLUMNNAME_MeasureDisplay, MeasureDisplay); + } + + /** Get Measure Display. + @return Measure Scope initially displayed + */ + public String getMeasureDisplay () + { + return (String)get_Value(COLUMNNAME_MeasureDisplay); + } /** MeasureScope AD_Reference_ID=367 */ -public static final int MEASURESCOPE_AD_Reference_ID=367; -/** Total = 0 */ -public static final String MEASURESCOPE_Total = "0"; -/** Year = 1 */ -public static final String MEASURESCOPE_Year = "1"; -/** Quarter = 3 */ -public static final String MEASURESCOPE_Quarter = "3"; -/** Month = 5 */ -public static final String MEASURESCOPE_Month = "5"; -/** Week = 7 */ -public static final String MEASURESCOPE_Week = "7"; -/** Day = 8 */ +public static final int MEASURESCOPE_AD_Reference_ID=367;/** Total = 0 */ +public static final String MEASURESCOPE_Total = "0";/** Year = 1 */ +public static final String MEASURESCOPE_Year = "1";/** Quarter = 3 */ +public static final String MEASURESCOPE_Quarter = "3";/** Month = 5 */ +public static final String MEASURESCOPE_Month = "5";/** Week = 7 */ +public static final String MEASURESCOPE_Week = "7";/** Day = 8 */ public static final String MEASURESCOPE_Day = "8"; -/** Set Measure Scope. -@param MeasureScope Performance Measure Scope */ -public void setMeasureScope (String MeasureScope) -{ -if (MeasureScope == null) throw new IllegalArgumentException ("MeasureScope is mandatory"); -if (MeasureScope.equals("0") || MeasureScope.equals("1") || MeasureScope.equals("3") || MeasureScope.equals("5") || MeasureScope.equals("7") || MeasureScope.equals("8")); - else throw new IllegalArgumentException ("MeasureScope Invalid value - " + MeasureScope + " - Reference_ID=367 - 0 - 1 - 3 - 5 - 7 - 8"); -if (MeasureScope.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MeasureScope = MeasureScope.substring(0,0); -} -set_Value ("MeasureScope", MeasureScope); -} -/** Get Measure Scope. -@return Performance Measure Scope */ -public String getMeasureScope() -{ -return (String)get_Value("MeasureScope"); -} -/** Column name MeasureScope */ -public static final String COLUMNNAME_MeasureScope = "MeasureScope"; -/** Set Measure Target. -@param MeasureTarget Target value for measure */ -public void setMeasureTarget (BigDecimal MeasureTarget) -{ -if (MeasureTarget == null) throw new IllegalArgumentException ("MeasureTarget is mandatory."); -set_Value ("MeasureTarget", MeasureTarget); -} -/** Get Measure Target. -@return Target value for measure */ -public BigDecimal getMeasureTarget() -{ -BigDecimal bd = (BigDecimal)get_Value("MeasureTarget"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MeasureTarget */ -public static final String COLUMNNAME_MeasureTarget = "MeasureTarget"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Note = Note.substring(0,1999); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Color Schema. -@param PA_ColorSchema_ID Performance Color Schema */ -public void setPA_ColorSchema_ID (int PA_ColorSchema_ID) -{ -if (PA_ColorSchema_ID < 1) throw new IllegalArgumentException ("PA_ColorSchema_ID is mandatory."); -set_Value ("PA_ColorSchema_ID", Integer.valueOf(PA_ColorSchema_ID)); -} -/** Get Color Schema. -@return Performance Color Schema */ -public int getPA_ColorSchema_ID() -{ -Integer ii = (Integer)get_Value("PA_ColorSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ColorSchema_ID */ -public static final String COLUMNNAME_PA_ColorSchema_ID = "PA_ColorSchema_ID"; + /** Set Measure Scope. + @param MeasureScope + Performance Measure Scope + */ + public void setMeasureScope (String MeasureScope) + { +if (MeasureScope == null) throw new IllegalArgumentException ("MeasureScope is mandatory");if (MeasureScope.equals("0") || MeasureScope.equals("1") || MeasureScope.equals("3") || MeasureScope.equals("5") || MeasureScope.equals("7") || MeasureScope.equals("8")); else throw new IllegalArgumentException ("MeasureScope Invalid value - " + MeasureScope + " - Reference_ID=367 - 0 - 1 - 3 - 5 - 7 - 8"); if (MeasureScope.length() > 1) + { + log.warning("Length > 1 - truncated"); + MeasureScope = MeasureScope.substring(0, 0); + } + set_Value (COLUMNNAME_MeasureScope, MeasureScope); + } + + /** Get Measure Scope. + @return Performance Measure Scope + */ + public String getMeasureScope () + { + return (String)get_Value(COLUMNNAME_MeasureScope); + } + + /** Set Measure Target. + @param MeasureTarget + Target value for measure + */ + public void setMeasureTarget (BigDecimal MeasureTarget) + { + if (MeasureTarget == null) + throw new IllegalArgumentException ("MeasureTarget is mandatory."); + set_Value (COLUMNNAME_MeasureTarget, MeasureTarget); + } + + /** Get Measure Target. + @return Target value for measure + */ + public BigDecimal getMeasureTarget () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MeasureTarget); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Note = Note.substring(0, 1999); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + public I_PA_ColorSchema getI_PA_ColorSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Color Schema. + @param PA_ColorSchema_ID + Performance Color Schema + */ + public void setPA_ColorSchema_ID (int PA_ColorSchema_ID) + { + if (PA_ColorSchema_ID < 1) + throw new IllegalArgumentException ("PA_ColorSchema_ID is mandatory."); + set_Value (COLUMNNAME_PA_ColorSchema_ID, Integer.valueOf(PA_ColorSchema_ID)); + } + + /** Get Color Schema. + @return Performance Color Schema + */ + public int getPA_ColorSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ColorSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PA_GoalParent_ID AD_Reference_ID=230 */ public static final int PA_GOALPARENT_ID_AD_Reference_ID=230; -/** Set Parent Goal. -@param PA_GoalParent_ID Parent Goal */ -public void setPA_GoalParent_ID (int PA_GoalParent_ID) -{ -if (PA_GoalParent_ID <= 0) set_Value ("PA_GoalParent_ID", null); - else -set_Value ("PA_GoalParent_ID", Integer.valueOf(PA_GoalParent_ID)); -} -/** Get Parent Goal. -@return Parent Goal */ -public int getPA_GoalParent_ID() -{ -Integer ii = (Integer)get_Value("PA_GoalParent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_GoalParent_ID */ -public static final String COLUMNNAME_PA_GoalParent_ID = "PA_GoalParent_ID"; -/** Set Goal. -@param PA_Goal_ID Performance Goal */ -public void setPA_Goal_ID (int PA_Goal_ID) -{ -if (PA_Goal_ID < 1) throw new IllegalArgumentException ("PA_Goal_ID is mandatory."); -set_ValueNoCheck ("PA_Goal_ID", Integer.valueOf(PA_Goal_ID)); -} -/** Get Goal. -@return Performance Goal */ -public int getPA_Goal_ID() -{ -Integer ii = (Integer)get_Value("PA_Goal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Goal_ID */ -public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID"; -/** Set Measure. -@param PA_Measure_ID Concrete Performance Measurement */ -public void setPA_Measure_ID (int PA_Measure_ID) -{ -if (PA_Measure_ID <= 0) set_Value ("PA_Measure_ID", null); - else -set_Value ("PA_Measure_ID", Integer.valueOf(PA_Measure_ID)); -} -/** Get Measure. -@return Concrete Performance Measurement */ -public int getPA_Measure_ID() -{ -Integer ii = (Integer)get_Value("PA_Measure_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Measure_ID */ -public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; -/** Set Relative Weight. -@param RelativeWeight Relative weight of this step (0 = ignored) */ -public void setRelativeWeight (BigDecimal RelativeWeight) -{ -if (RelativeWeight == null) throw new IllegalArgumentException ("RelativeWeight is mandatory."); -set_Value ("RelativeWeight", RelativeWeight); -} -/** Get Relative Weight. -@return Relative weight of this step (0 = ignored) */ -public BigDecimal getRelativeWeight() -{ -BigDecimal bd = (BigDecimal)get_Value("RelativeWeight"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RelativeWeight */ -public static final String COLUMNNAME_RelativeWeight = "RelativeWeight"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Parent Goal. + @param PA_GoalParent_ID + Parent Goal + */ + public void setPA_GoalParent_ID (int PA_GoalParent_ID) + { + if (PA_GoalParent_ID <= 0) set_Value (COLUMNNAME_PA_GoalParent_ID, null); + else + set_Value (COLUMNNAME_PA_GoalParent_ID, Integer.valueOf(PA_GoalParent_ID)); + } + + /** Get Parent Goal. + @return Parent Goal + */ + public int getPA_GoalParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_GoalParent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Goal. + @param PA_Goal_ID + Performance Goal + */ + public void setPA_Goal_ID (int PA_Goal_ID) + { + if (PA_Goal_ID < 1) + throw new IllegalArgumentException ("PA_Goal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); + } + + /** Get Goal. + @return Performance Goal + */ + public int getPA_Goal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Goal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Measure getI_PA_Measure() throws Exception + { + 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 e; + } + return result; + } + + /** Set Measure. + @param PA_Measure_ID + Concrete Performance Measurement + */ + public void setPA_Measure_ID (int PA_Measure_ID) + { + if (PA_Measure_ID <= 0) set_Value (COLUMNNAME_PA_Measure_ID, null); + else + set_Value (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); + } + + /** Get Measure. + @return Concrete Performance Measurement + */ + public int getPA_Measure_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Measure_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Relative Weight. + @param RelativeWeight + Relative weight of this step (0 = ignored) + */ + public void setRelativeWeight (BigDecimal RelativeWeight) + { + if (RelativeWeight == null) + throw new IllegalArgumentException ("RelativeWeight is mandatory."); + set_Value (COLUMNNAME_RelativeWeight, RelativeWeight); + } + + /** Get Relative Weight. + @return Relative weight of this step (0 = ignored) + */ + public BigDecimal getRelativeWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RelativeWeight); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_GoalRestriction.java b/base/src/org/compiere/model/X_PA_GoalRestriction.java index e3e29892d1..31bcbf0723 100644 --- a/base/src/org/compiere/model/X_PA_GoalRestriction.java +++ b/base/src/org/compiere/model/X_PA_GoalRestriction.java @@ -1,279 +1,341 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_GoalRestriction - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_GoalRestriction extends PO + +/** Generated Model for PA_GoalRestriction + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_GoalRestriction extends PO implements I_PA_GoalRestriction, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_GoalRestriction_ID id -@param trxName transaction -*/ -public X_PA_GoalRestriction (Properties ctx, int PA_GoalRestriction_ID, String trxName) -{ -super (ctx, PA_GoalRestriction_ID, trxName); -/** if (PA_GoalRestriction_ID == 0) -{ -setGoalRestrictionType (null); -setName (null); -setPA_GoalRestriction_ID (0); -setPA_Goal_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_GoalRestriction (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_GoalRestriction */ -public static final String Table_Name="PA_GoalRestriction"; - -/** AD_Table_ID=832 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_GoalRestriction[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID <= 0) set_Value ("C_BP_Group_ID", null); - else -set_Value ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_GoalRestriction (Properties ctx, int PA_GoalRestriction_ID, String trxName) + { + super (ctx, PA_GoalRestriction_ID, trxName); + /** if (PA_GoalRestriction_ID == 0) { setGoalRestrictionType (null); + setName (null); + setPA_GoalRestriction_ID (0); + setPA_Goal_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_GoalRestriction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_GoalRestriction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID <= 0) set_Value (COLUMNNAME_C_BP_Group_ID, null); + else + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** GoalRestrictionType AD_Reference_ID=368 */ -public static final int GOALRESTRICTIONTYPE_AD_Reference_ID=368; -/** Business Partner = B */ -public static final String GOALRESTRICTIONTYPE_BusinessPartner = "B"; -/** Product Category = C */ -public static final String GOALRESTRICTIONTYPE_ProductCategory = "C"; -/** Bus.Partner Group = G */ -public static final String GOALRESTRICTIONTYPE_BusPartnerGroup = "G"; -/** Organization = O */ -public static final String GOALRESTRICTIONTYPE_Organization = "O"; -/** Product = P */ +public static final int GOALRESTRICTIONTYPE_AD_Reference_ID=368;/** Business Partner = B */ +public static final String GOALRESTRICTIONTYPE_BusinessPartner = "B";/** Product Category = C */ +public static final String GOALRESTRICTIONTYPE_ProductCategory = "C";/** Bus.Partner Group = G */ +public static final String GOALRESTRICTIONTYPE_BusPartnerGroup = "G";/** Organization = O */ +public static final String GOALRESTRICTIONTYPE_Organization = "O";/** Product = P */ public static final String GOALRESTRICTIONTYPE_Product = "P"; -/** Set Restriction Type. -@param GoalRestrictionType Goal Restriction Type */ -public void setGoalRestrictionType (String GoalRestrictionType) -{ -if (GoalRestrictionType == null) throw new IllegalArgumentException ("GoalRestrictionType is mandatory"); -if (GoalRestrictionType.equals("B") || GoalRestrictionType.equals("C") || GoalRestrictionType.equals("G") || GoalRestrictionType.equals("O") || GoalRestrictionType.equals("P")); - else throw new IllegalArgumentException ("GoalRestrictionType Invalid value - " + GoalRestrictionType + " - Reference_ID=368 - B - C - G - O - P"); -if (GoalRestrictionType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -GoalRestrictionType = GoalRestrictionType.substring(0,0); -} -set_Value ("GoalRestrictionType", GoalRestrictionType); -} -/** Get Restriction Type. -@return Goal Restriction Type */ -public String getGoalRestrictionType() -{ -return (String)get_Value("GoalRestrictionType"); -} -/** Column name GoalRestrictionType */ -public static final String COLUMNNAME_GoalRestrictionType = "GoalRestrictionType"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID <= 0) set_Value ("M_Product_Category_ID", null); - else -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Restriction Type. + @param GoalRestrictionType + Goal Restriction Type + */ + public void setGoalRestrictionType (String GoalRestrictionType) + { +if (GoalRestrictionType == null) throw new IllegalArgumentException ("GoalRestrictionType is mandatory");if (GoalRestrictionType.equals("B") || GoalRestrictionType.equals("C") || GoalRestrictionType.equals("G") || GoalRestrictionType.equals("O") || GoalRestrictionType.equals("P")); else throw new IllegalArgumentException ("GoalRestrictionType Invalid value - " + GoalRestrictionType + " - Reference_ID=368 - B - C - G - O - P"); if (GoalRestrictionType.length() > 1) + { + log.warning("Length > 1 - truncated"); + GoalRestrictionType = GoalRestrictionType.substring(0, 0); + } + set_Value (COLUMNNAME_GoalRestrictionType, GoalRestrictionType); + } + + /** Get Restriction Type. + @return Goal Restriction Type + */ + public String getGoalRestrictionType () + { + return (String)get_Value(COLUMNNAME_GoalRestrictionType); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID <= 0) set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Org_ID AD_Reference_ID=322 */ public static final int ORG_ID_AD_Reference_ID=322; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID <= 0) set_Value ("Org_ID", null); - else -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Goal Restriction. -@param PA_GoalRestriction_ID Performance Goal Restriction */ -public void setPA_GoalRestriction_ID (int PA_GoalRestriction_ID) -{ -if (PA_GoalRestriction_ID < 1) throw new IllegalArgumentException ("PA_GoalRestriction_ID is mandatory."); -set_ValueNoCheck ("PA_GoalRestriction_ID", Integer.valueOf(PA_GoalRestriction_ID)); -} -/** Get Goal Restriction. -@return Performance Goal Restriction */ -public int getPA_GoalRestriction_ID() -{ -Integer ii = (Integer)get_Value("PA_GoalRestriction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_GoalRestriction_ID */ -public static final String COLUMNNAME_PA_GoalRestriction_ID = "PA_GoalRestriction_ID"; -/** Set Goal. -@param PA_Goal_ID Performance Goal */ -public void setPA_Goal_ID (int PA_Goal_ID) -{ -if (PA_Goal_ID < 1) throw new IllegalArgumentException ("PA_Goal_ID is mandatory."); -set_Value ("PA_Goal_ID", Integer.valueOf(PA_Goal_ID)); -} -/** Get Goal. -@return Performance Goal */ -public int getPA_Goal_ID() -{ -Integer ii = (Integer)get_Value("PA_Goal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Goal_ID */ -public static final String COLUMNNAME_PA_Goal_ID = "PA_Goal_ID"; -} + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID <= 0) set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Goal Restriction. + @param PA_GoalRestriction_ID + Performance Goal Restriction + */ + public void setPA_GoalRestriction_ID (int PA_GoalRestriction_ID) + { + if (PA_GoalRestriction_ID < 1) + throw new IllegalArgumentException ("PA_GoalRestriction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_GoalRestriction_ID, Integer.valueOf(PA_GoalRestriction_ID)); + } + + /** Get Goal Restriction. + @return Performance Goal Restriction + */ + public int getPA_GoalRestriction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_GoalRestriction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Goal getI_PA_Goal() throws Exception + { + 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 e; + } + return result; + } + + /** Set Goal. + @param PA_Goal_ID + Performance Goal + */ + public void setPA_Goal_ID (int PA_Goal_ID) + { + if (PA_Goal_ID < 1) + throw new IllegalArgumentException ("PA_Goal_ID is mandatory."); + set_Value (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); + } + + /** Get Goal. + @return Performance Goal + */ + public int getPA_Goal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Goal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Hierarchy.java b/base/src/org/compiere/model/X_PA_Hierarchy.java index a0c9d16655..a82fe3ec5c 100644 --- a/base/src/org/compiere/model/X_PA_Hierarchy.java +++ b/base/src/org/compiere/model/X_PA_Hierarchy.java @@ -1,338 +1,372 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Hierarchy - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Hierarchy extends PO + +/** Generated Model for PA_Hierarchy + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Hierarchy extends PO implements I_PA_Hierarchy, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Hierarchy_ID id -@param trxName transaction -*/ -public X_PA_Hierarchy (Properties ctx, int PA_Hierarchy_ID, String trxName) -{ -super (ctx, PA_Hierarchy_ID, trxName); -/** if (PA_Hierarchy_ID == 0) -{ -setAD_Tree_Account_ID (0); -setAD_Tree_Activity_ID (0); -setAD_Tree_BPartner_ID (0); -setAD_Tree_Campaign_ID (0); -setAD_Tree_Org_ID (0); -setAD_Tree_Product_ID (0); -setAD_Tree_Project_ID (0); -setAD_Tree_SalesRegion_ID (0); -setName (null); -setPA_Hierarchy_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Hierarchy (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Hierarchy */ -public static final String Table_Name="PA_Hierarchy"; - -/** AD_Table_ID=821 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Hierarchy[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Hierarchy (Properties ctx, int PA_Hierarchy_ID, String trxName) + { + super (ctx, PA_Hierarchy_ID, trxName); + /** if (PA_Hierarchy_ID == 0) { setAD_Tree_Account_ID (0); + setAD_Tree_Activity_ID (0); + setAD_Tree_BPartner_ID (0); + setAD_Tree_Campaign_ID (0); + setAD_Tree_Org_ID (0); + setAD_Tree_Product_ID (0); + setAD_Tree_Project_ID (0); + setAD_Tree_SalesRegion_ID (0); + setName (null); + setPA_Hierarchy_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_Hierarchy (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Hierarchy[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Tree_Account_ID AD_Reference_ID=184 */ public static final int AD_TREE_ACCOUNT_ID_AD_Reference_ID=184; -/** Set Account Tree. -@param AD_Tree_Account_ID Tree for Natural Account Tree */ -public void setAD_Tree_Account_ID (int AD_Tree_Account_ID) -{ -if (AD_Tree_Account_ID < 1) throw new IllegalArgumentException ("AD_Tree_Account_ID is mandatory."); -set_Value ("AD_Tree_Account_ID", Integer.valueOf(AD_Tree_Account_ID)); -} -/** Get Account Tree. -@return Tree for Natural Account Tree */ -public int getAD_Tree_Account_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Account_ID */ -public static final String COLUMNNAME_AD_Tree_Account_ID = "AD_Tree_Account_ID"; + /** Set Account Tree. + @param AD_Tree_Account_ID + Tree for Natural Account Tree + */ + public void setAD_Tree_Account_ID (int AD_Tree_Account_ID) + { + if (AD_Tree_Account_ID < 1) + throw new IllegalArgumentException ("AD_Tree_Account_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_Account_ID, Integer.valueOf(AD_Tree_Account_ID)); + } + + /** Get Account Tree. + @return Tree for Natural Account Tree + */ + public int getAD_Tree_Account_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Activity_ID AD_Reference_ID=184 */ public static final int AD_TREE_ACTIVITY_ID_AD_Reference_ID=184; -/** Set Activity Tree. -@param AD_Tree_Activity_ID Tree to determine activity hierarchy */ -public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID) -{ -if (AD_Tree_Activity_ID < 1) throw new IllegalArgumentException ("AD_Tree_Activity_ID is mandatory."); -set_Value ("AD_Tree_Activity_ID", Integer.valueOf(AD_Tree_Activity_ID)); -} -/** Get Activity Tree. -@return Tree to determine activity hierarchy */ -public int getAD_Tree_Activity_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Activity_ID */ -public static final String COLUMNNAME_AD_Tree_Activity_ID = "AD_Tree_Activity_ID"; + /** Set Activity Tree. + @param AD_Tree_Activity_ID + Tree to determine activity hierarchy + */ + public void setAD_Tree_Activity_ID (int AD_Tree_Activity_ID) + { + if (AD_Tree_Activity_ID < 1) + throw new IllegalArgumentException ("AD_Tree_Activity_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_Activity_ID, Integer.valueOf(AD_Tree_Activity_ID)); + } + + /** Get Activity Tree. + @return Tree to determine activity hierarchy + */ + public int getAD_Tree_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_BPartner_ID AD_Reference_ID=184 */ public static final int AD_TREE_BPARTNER_ID_AD_Reference_ID=184; -/** Set BPartner Tree. -@param AD_Tree_BPartner_ID Tree to determine business partner hierarchy */ -public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID) -{ -if (AD_Tree_BPartner_ID < 1) throw new IllegalArgumentException ("AD_Tree_BPartner_ID is mandatory."); -set_Value ("AD_Tree_BPartner_ID", Integer.valueOf(AD_Tree_BPartner_ID)); -} -/** Get BPartner Tree. -@return Tree to determine business partner hierarchy */ -public int getAD_Tree_BPartner_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_BPartner_ID */ -public static final String COLUMNNAME_AD_Tree_BPartner_ID = "AD_Tree_BPartner_ID"; + /** Set BPartner Tree. + @param AD_Tree_BPartner_ID + Tree to determine business partner hierarchy + */ + public void setAD_Tree_BPartner_ID (int AD_Tree_BPartner_ID) + { + if (AD_Tree_BPartner_ID < 1) + throw new IllegalArgumentException ("AD_Tree_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_BPartner_ID, Integer.valueOf(AD_Tree_BPartner_ID)); + } + + /** Get BPartner Tree. + @return Tree to determine business partner hierarchy + */ + public int getAD_Tree_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Campaign_ID AD_Reference_ID=184 */ public static final int AD_TREE_CAMPAIGN_ID_AD_Reference_ID=184; -/** Set Campaign Tree. -@param AD_Tree_Campaign_ID Tree to determine marketing campaign hierarchy */ -public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID) -{ -if (AD_Tree_Campaign_ID < 1) throw new IllegalArgumentException ("AD_Tree_Campaign_ID is mandatory."); -set_Value ("AD_Tree_Campaign_ID", Integer.valueOf(AD_Tree_Campaign_ID)); -} -/** Get Campaign Tree. -@return Tree to determine marketing campaign hierarchy */ -public int getAD_Tree_Campaign_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Campaign_ID */ -public static final String COLUMNNAME_AD_Tree_Campaign_ID = "AD_Tree_Campaign_ID"; + /** Set Campaign Tree. + @param AD_Tree_Campaign_ID + Tree to determine marketing campaign hierarchy + */ + public void setAD_Tree_Campaign_ID (int AD_Tree_Campaign_ID) + { + if (AD_Tree_Campaign_ID < 1) + throw new IllegalArgumentException ("AD_Tree_Campaign_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_Campaign_ID, Integer.valueOf(AD_Tree_Campaign_ID)); + } + + /** Get Campaign Tree. + @return Tree to determine marketing campaign hierarchy + */ + public int getAD_Tree_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Org_ID AD_Reference_ID=184 */ public static final int AD_TREE_ORG_ID_AD_Reference_ID=184; -/** Set Organization Tree. -@param AD_Tree_Org_ID Tree to determine organizational hierarchy */ -public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) -{ -if (AD_Tree_Org_ID < 1) throw new IllegalArgumentException ("AD_Tree_Org_ID is mandatory."); -set_Value ("AD_Tree_Org_ID", Integer.valueOf(AD_Tree_Org_ID)); -} -/** Get Organization Tree. -@return Tree to determine organizational hierarchy */ -public int getAD_Tree_Org_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Org_ID */ -public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; + /** Set Organization Tree. + @param AD_Tree_Org_ID + Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) + { + if (AD_Tree_Org_ID < 1) + throw new IllegalArgumentException ("AD_Tree_Org_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); + } + + /** Get Organization Tree. + @return Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Product_ID AD_Reference_ID=184 */ public static final int AD_TREE_PRODUCT_ID_AD_Reference_ID=184; -/** Set Product Tree. -@param AD_Tree_Product_ID Tree to determine product hierarchy */ -public void setAD_Tree_Product_ID (int AD_Tree_Product_ID) -{ -if (AD_Tree_Product_ID < 1) throw new IllegalArgumentException ("AD_Tree_Product_ID is mandatory."); -set_Value ("AD_Tree_Product_ID", Integer.valueOf(AD_Tree_Product_ID)); -} -/** Get Product Tree. -@return Tree to determine product hierarchy */ -public int getAD_Tree_Product_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Product_ID */ -public static final String COLUMNNAME_AD_Tree_Product_ID = "AD_Tree_Product_ID"; + /** Set Product Tree. + @param AD_Tree_Product_ID + Tree to determine product hierarchy + */ + public void setAD_Tree_Product_ID (int AD_Tree_Product_ID) + { + if (AD_Tree_Product_ID < 1) + throw new IllegalArgumentException ("AD_Tree_Product_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_Product_ID, Integer.valueOf(AD_Tree_Product_ID)); + } + + /** Get Product Tree. + @return Tree to determine product hierarchy + */ + public int getAD_Tree_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_Project_ID AD_Reference_ID=184 */ public static final int AD_TREE_PROJECT_ID_AD_Reference_ID=184; -/** Set Project Tree. -@param AD_Tree_Project_ID Tree to determine project hierarchy */ -public void setAD_Tree_Project_ID (int AD_Tree_Project_ID) -{ -if (AD_Tree_Project_ID < 1) throw new IllegalArgumentException ("AD_Tree_Project_ID is mandatory."); -set_Value ("AD_Tree_Project_ID", Integer.valueOf(AD_Tree_Project_ID)); -} -/** Get Project Tree. -@return Tree to determine project hierarchy */ -public int getAD_Tree_Project_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_Project_ID */ -public static final String COLUMNNAME_AD_Tree_Project_ID = "AD_Tree_Project_ID"; + /** Set Project Tree. + @param AD_Tree_Project_ID + Tree to determine project hierarchy + */ + public void setAD_Tree_Project_ID (int AD_Tree_Project_ID) + { + if (AD_Tree_Project_ID < 1) + throw new IllegalArgumentException ("AD_Tree_Project_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_Project_ID, Integer.valueOf(AD_Tree_Project_ID)); + } + + /** Get Project Tree. + @return Tree to determine project hierarchy + */ + public int getAD_Tree_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_Tree_SalesRegion_ID AD_Reference_ID=184 */ public static final int AD_TREE_SALESREGION_ID_AD_Reference_ID=184; -/** Set Sales Region Tree. -@param AD_Tree_SalesRegion_ID Tree to determine sales regional hierarchy */ -public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID) -{ -if (AD_Tree_SalesRegion_ID < 1) throw new IllegalArgumentException ("AD_Tree_SalesRegion_ID is mandatory."); -set_Value ("AD_Tree_SalesRegion_ID", Integer.valueOf(AD_Tree_SalesRegion_ID)); -} -/** Get Sales Region Tree. -@return Tree to determine sales regional hierarchy */ -public int getAD_Tree_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("AD_Tree_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Tree_SalesRegion_ID */ -public static final String COLUMNNAME_AD_Tree_SalesRegion_ID = "AD_Tree_SalesRegion_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Reporting Hierarchy. -@param PA_Hierarchy_ID Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. */ -public void setPA_Hierarchy_ID (int PA_Hierarchy_ID) -{ -if (PA_Hierarchy_ID < 1) throw new IllegalArgumentException ("PA_Hierarchy_ID is mandatory."); -set_ValueNoCheck ("PA_Hierarchy_ID", Integer.valueOf(PA_Hierarchy_ID)); -} -/** Get Reporting Hierarchy. -@return Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. */ -public int getPA_Hierarchy_ID() -{ -Integer ii = (Integer)get_Value("PA_Hierarchy_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Hierarchy_ID */ -public static final String COLUMNNAME_PA_Hierarchy_ID = "PA_Hierarchy_ID"; -} + /** Set Sales Region Tree. + @param AD_Tree_SalesRegion_ID + Tree to determine sales regional hierarchy + */ + public void setAD_Tree_SalesRegion_ID (int AD_Tree_SalesRegion_ID) + { + if (AD_Tree_SalesRegion_ID < 1) + throw new IllegalArgumentException ("AD_Tree_SalesRegion_ID is mandatory."); + set_Value (COLUMNNAME_AD_Tree_SalesRegion_ID, Integer.valueOf(AD_Tree_SalesRegion_ID)); + } + + /** Get Sales Region Tree. + @return Tree to determine sales regional hierarchy + */ + public int getAD_Tree_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Reporting Hierarchy. + @param PA_Hierarchy_ID + Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public void setPA_Hierarchy_ID (int PA_Hierarchy_ID) + { + if (PA_Hierarchy_ID < 1) + throw new IllegalArgumentException ("PA_Hierarchy_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Hierarchy_ID, Integer.valueOf(PA_Hierarchy_ID)); + } + + /** Get Reporting Hierarchy. + @return Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public int getPA_Hierarchy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Hierarchy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Measure.java b/base/src/org/compiere/model/X_PA_Measure.java index 906d8f1d8f..18587017ae 100644 --- a/base/src/org/compiere/model/X_PA_Measure.java +++ b/base/src/org/compiere/model/X_PA_Measure.java @@ -1,383 +1,503 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Measure - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Measure extends PO + +/** Generated Model for PA_Measure + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Measure extends PO implements I_PA_Measure, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Measure_ID id -@param trxName transaction -*/ -public X_PA_Measure (Properties ctx, int PA_Measure_ID, String trxName) -{ -super (ctx, PA_Measure_ID, trxName); -/** if (PA_Measure_ID == 0) -{ -setMeasureDataType (null); // T -setMeasureType (null); // M -setName (null); -setPA_Measure_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Measure (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Measure */ -public static final String Table_Name="PA_Measure"; - -/** AD_Table_ID=441 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Measure[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Project Type. -@param C_ProjectType_ID Type of the project */ -public void setC_ProjectType_ID (int C_ProjectType_ID) -{ -if (C_ProjectType_ID <= 0) set_Value ("C_ProjectType_ID", null); - else -set_Value ("C_ProjectType_ID", Integer.valueOf(C_ProjectType_ID)); -} -/** Get Project Type. -@return Type of the project */ -public int getC_ProjectType_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectType_ID */ -public static final String COLUMNNAME_C_ProjectType_ID = "C_ProjectType_ID"; -/** Set Calculation Class. -@param CalculationClass Java Class for calculation, implementing Interface Measure */ -public void setCalculationClass (String CalculationClass) -{ -if (CalculationClass != null && CalculationClass.length() > 60) -{ -log.warning("Length > 60 - truncated"); -CalculationClass = CalculationClass.substring(0,59); -} -set_Value ("CalculationClass", CalculationClass); -} -/** Get Calculation Class. -@return Java Class for calculation, implementing Interface Measure */ -public String getCalculationClass() -{ -return (String)get_Value("CalculationClass"); -} -/** Column name CalculationClass */ -public static final String COLUMNNAME_CalculationClass = "CalculationClass"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Manual Actual. -@param ManualActual Manually entered actual value */ -public void setManualActual (BigDecimal ManualActual) -{ -set_Value ("ManualActual", ManualActual); -} -/** Get Manual Actual. -@return Manually entered actual value */ -public BigDecimal getManualActual() -{ -BigDecimal bd = (BigDecimal)get_Value("ManualActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ManualActual */ -public static final String COLUMNNAME_ManualActual = "ManualActual"; -/** Set Note. -@param ManualNote Note for manual entry */ -public void setManualNote (String ManualNote) -{ -if (ManualNote != null && ManualNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ManualNote = ManualNote.substring(0,1999); -} -set_Value ("ManualNote", ManualNote); -} -/** Get Note. -@return Note for manual entry */ -public String getManualNote() -{ -return (String)get_Value("ManualNote"); -} -/** Column name ManualNote */ -public static final String COLUMNNAME_ManualNote = "ManualNote"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Measure (Properties ctx, int PA_Measure_ID, String trxName) + { + super (ctx, PA_Measure_ID, trxName); + /** if (PA_Measure_ID == 0) { setMeasureDataType (null); +// T + setMeasureType (null); +// M + setName (null); + setPA_Measure_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_Measure (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Measure[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ProjectType getI_C_ProjectType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Type. + @param C_ProjectType_ID + Type of the project + */ + public void setC_ProjectType_ID (int C_ProjectType_ID) + { + if (C_ProjectType_ID <= 0) set_Value (COLUMNNAME_C_ProjectType_ID, null); + else + set_Value (COLUMNNAME_C_ProjectType_ID, Integer.valueOf(C_ProjectType_ID)); + } + + /** Get Project Type. + @return Type of the project + */ + public int getC_ProjectType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Calculation Class. + @param CalculationClass + Java Class for calculation, implementing Interface Measure + */ + public void setCalculationClass (String CalculationClass) + { + if (CalculationClass != null && CalculationClass.length() > 60) + { + log.warning("Length > 60 - truncated"); + CalculationClass = CalculationClass.substring(0, 59); + } + set_Value (COLUMNNAME_CalculationClass, CalculationClass); + } + + /** Get Calculation Class. + @return Java Class for calculation, implementing Interface Measure + */ + public String getCalculationClass () + { + return (String)get_Value(COLUMNNAME_CalculationClass); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Manual Actual. + @param ManualActual + Manually entered actual value + */ + public void setManualActual (BigDecimal ManualActual) + { + set_Value (COLUMNNAME_ManualActual, ManualActual); + } + + /** Get Manual Actual. + @return Manually entered actual value + */ + public BigDecimal getManualActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ManualActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Note. + @param ManualNote + Note for manual entry + */ + public void setManualNote (String ManualNote) + { + if (ManualNote != null && ManualNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ManualNote = ManualNote.substring(0, 1999); + } + set_Value (COLUMNNAME_ManualNote, ManualNote); + } + + /** Get Note. + @return Note for manual entry + */ + public String getManualNote () + { + return (String)get_Value(COLUMNNAME_ManualNote); + } /** MeasureDataType AD_Reference_ID=369 */ -public static final int MEASUREDATATYPE_AD_Reference_ID=369; -/** Status Qty/Amount = S */ -public static final String MEASUREDATATYPE_StatusQtyAmount = "S"; -/** Qty/Amount in Time = T */ +public static final int MEASUREDATATYPE_AD_Reference_ID=369;/** Status Qty/Amount = S */ +public static final String MEASUREDATATYPE_StatusQtyAmount = "S";/** Qty/Amount in Time = T */ public static final String MEASUREDATATYPE_QtyAmountInTime = "T"; -/** Set Measure Data Type. -@param MeasureDataType Type of data - Status or in Time */ -public void setMeasureDataType (String MeasureDataType) -{ -if (MeasureDataType == null) throw new IllegalArgumentException ("MeasureDataType is mandatory"); -if (MeasureDataType.equals("S") || MeasureDataType.equals("T")); - else throw new IllegalArgumentException ("MeasureDataType Invalid value - " + MeasureDataType + " - Reference_ID=369 - S - T"); -if (MeasureDataType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MeasureDataType = MeasureDataType.substring(0,0); -} -set_Value ("MeasureDataType", MeasureDataType); -} -/** Get Measure Data Type. -@return Type of data - Status or in Time */ -public String getMeasureDataType() -{ -return (String)get_Value("MeasureDataType"); -} -/** Column name MeasureDataType */ -public static final String COLUMNNAME_MeasureDataType = "MeasureDataType"; + /** Set Measure Data Type. + @param MeasureDataType + Type of data - Status or in Time + */ + public void setMeasureDataType (String MeasureDataType) + { +if (MeasureDataType == null) throw new IllegalArgumentException ("MeasureDataType is mandatory");if (MeasureDataType.equals("S") || MeasureDataType.equals("T")); else throw new IllegalArgumentException ("MeasureDataType Invalid value - " + MeasureDataType + " - Reference_ID=369 - S - T"); if (MeasureDataType.length() > 1) + { + log.warning("Length > 1 - truncated"); + MeasureDataType = MeasureDataType.substring(0, 0); + } + set_Value (COLUMNNAME_MeasureDataType, MeasureDataType); + } + + /** Get Measure Data Type. + @return Type of data - Status or in Time + */ + public String getMeasureDataType () + { + return (String)get_Value(COLUMNNAME_MeasureDataType); + } /** MeasureType AD_Reference_ID=231 */ -public static final int MEASURETYPE_AD_Reference_ID=231; -/** Achievements = A */ -public static final String MEASURETYPE_Achievements = "A"; -/** Calculated = C */ -public static final String MEASURETYPE_Calculated = "C"; -/** Manual = M */ -public static final String MEASURETYPE_Manual = "M"; -/** Project = P */ -public static final String MEASURETYPE_Project = "P"; -/** Request = Q */ -public static final String MEASURETYPE_Request = "Q"; -/** Ratio = R */ -public static final String MEASURETYPE_Ratio = "R"; -/** User defined = U */ +public static final int MEASURETYPE_AD_Reference_ID=231;/** Achievements = A */ +public static final String MEASURETYPE_Achievements = "A";/** Calculated = C */ +public static final String MEASURETYPE_Calculated = "C";/** Manual = M */ +public static final String MEASURETYPE_Manual = "M";/** Project = P */ +public static final String MEASURETYPE_Project = "P";/** Request = Q */ +public static final String MEASURETYPE_Request = "Q";/** Ratio = R */ +public static final String MEASURETYPE_Ratio = "R";/** User defined = U */ public static final String MEASURETYPE_UserDefined = "U"; -/** Set Measure Type. -@param MeasureType Determines how the actual performance is derived */ -public void setMeasureType (String MeasureType) -{ -if (MeasureType == null) throw new IllegalArgumentException ("MeasureType is mandatory"); -if (MeasureType.equals("A") || MeasureType.equals("C") || MeasureType.equals("M") || MeasureType.equals("P") || MeasureType.equals("Q") || MeasureType.equals("R") || MeasureType.equals("U")); - else throw new IllegalArgumentException ("MeasureType Invalid value - " + MeasureType + " - Reference_ID=231 - A - C - M - P - Q - R - U"); -if (MeasureType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -MeasureType = MeasureType.substring(0,0); -} -set_Value ("MeasureType", MeasureType); -} -/** Get Measure Type. -@return Determines how the actual performance is derived */ -public String getMeasureType() -{ -return (String)get_Value("MeasureType"); -} -/** Column name MeasureType */ -public static final String COLUMNNAME_MeasureType = "MeasureType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Benchmark. -@param PA_Benchmark_ID Performance Benchmark */ -public void setPA_Benchmark_ID (int PA_Benchmark_ID) -{ -if (PA_Benchmark_ID <= 0) set_Value ("PA_Benchmark_ID", null); - else -set_Value ("PA_Benchmark_ID", Integer.valueOf(PA_Benchmark_ID)); -} -/** Get Benchmark. -@return Performance Benchmark */ -public int getPA_Benchmark_ID() -{ -Integer ii = (Integer)get_Value("PA_Benchmark_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Benchmark_ID */ -public static final String COLUMNNAME_PA_Benchmark_ID = "PA_Benchmark_ID"; -/** Set Reporting Hierarchy. -@param PA_Hierarchy_ID Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. */ -public void setPA_Hierarchy_ID (int PA_Hierarchy_ID) -{ -if (PA_Hierarchy_ID <= 0) set_Value ("PA_Hierarchy_ID", null); - else -set_Value ("PA_Hierarchy_ID", Integer.valueOf(PA_Hierarchy_ID)); -} -/** Get Reporting Hierarchy. -@return Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. */ -public int getPA_Hierarchy_ID() -{ -Integer ii = (Integer)get_Value("PA_Hierarchy_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Hierarchy_ID */ -public static final String COLUMNNAME_PA_Hierarchy_ID = "PA_Hierarchy_ID"; -/** Set Measure Calculation. -@param PA_MeasureCalc_ID Calculation method for measuring performance */ -public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) -{ -if (PA_MeasureCalc_ID <= 0) set_Value ("PA_MeasureCalc_ID", null); - else -set_Value ("PA_MeasureCalc_ID", Integer.valueOf(PA_MeasureCalc_ID)); -} -/** Get Measure Calculation. -@return Calculation method for measuring performance */ -public int getPA_MeasureCalc_ID() -{ -Integer ii = (Integer)get_Value("PA_MeasureCalc_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_MeasureCalc_ID */ -public static final String COLUMNNAME_PA_MeasureCalc_ID = "PA_MeasureCalc_ID"; -/** Set Measure. -@param PA_Measure_ID Concrete Performance Measurement */ -public void setPA_Measure_ID (int PA_Measure_ID) -{ -if (PA_Measure_ID < 1) throw new IllegalArgumentException ("PA_Measure_ID is mandatory."); -set_ValueNoCheck ("PA_Measure_ID", Integer.valueOf(PA_Measure_ID)); -} -/** Get Measure. -@return Concrete Performance Measurement */ -public int getPA_Measure_ID() -{ -Integer ii = (Integer)get_Value("PA_Measure_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Measure_ID */ -public static final String COLUMNNAME_PA_Measure_ID = "PA_Measure_ID"; -/** Set Ratio. -@param PA_Ratio_ID Performace Ratio */ -public void setPA_Ratio_ID (int PA_Ratio_ID) -{ -if (PA_Ratio_ID <= 0) set_Value ("PA_Ratio_ID", null); - else -set_Value ("PA_Ratio_ID", Integer.valueOf(PA_Ratio_ID)); -} -/** Get Ratio. -@return Performace Ratio */ -public int getPA_Ratio_ID() -{ -Integer ii = (Integer)get_Value("PA_Ratio_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Ratio_ID */ -public static final String COLUMNNAME_PA_Ratio_ID = "PA_Ratio_ID"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_Value ("R_RequestType_ID", null); - else -set_Value ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -} + /** Set Measure Type. + @param MeasureType + Determines how the actual performance is derived + */ + public void setMeasureType (String MeasureType) + { +if (MeasureType == null) throw new IllegalArgumentException ("MeasureType is mandatory");if (MeasureType.equals("A") || MeasureType.equals("C") || MeasureType.equals("M") || MeasureType.equals("P") || MeasureType.equals("Q") || MeasureType.equals("R") || MeasureType.equals("U")); else throw new IllegalArgumentException ("MeasureType Invalid value - " + MeasureType + " - Reference_ID=231 - A - C - M - P - Q - R - U"); if (MeasureType.length() > 1) + { + log.warning("Length > 1 - truncated"); + MeasureType = MeasureType.substring(0, 0); + } + set_Value (COLUMNNAME_MeasureType, MeasureType); + } + + /** Get Measure Type. + @return Determines how the actual performance is derived + */ + public String getMeasureType () + { + return (String)get_Value(COLUMNNAME_MeasureType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + public I_PA_Benchmark getI_PA_Benchmark() throws Exception + { + 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 e; + } + return result; + } + + /** Set Benchmark. + @param PA_Benchmark_ID + Performance Benchmark + */ + public void setPA_Benchmark_ID (int PA_Benchmark_ID) + { + if (PA_Benchmark_ID <= 0) set_Value (COLUMNNAME_PA_Benchmark_ID, null); + else + set_Value (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); + } + + /** Get Benchmark. + @return Performance Benchmark + */ + public int getPA_Benchmark_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Benchmark_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Hierarchy getI_PA_Hierarchy() throws Exception + { + 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 e; + } + return result; + } + + /** Set Reporting Hierarchy. + @param PA_Hierarchy_ID + Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public void setPA_Hierarchy_ID (int PA_Hierarchy_ID) + { + if (PA_Hierarchy_ID <= 0) set_Value (COLUMNNAME_PA_Hierarchy_ID, null); + else + set_Value (COLUMNNAME_PA_Hierarchy_ID, Integer.valueOf(PA_Hierarchy_ID)); + } + + /** Get Reporting Hierarchy. + @return Optional Reporting Hierarchy - If not selected the default hierarchy trees are used. + */ + public int getPA_Hierarchy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Hierarchy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_MeasureCalc getI_PA_MeasureCalc() throws Exception + { + 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 e; + } + return result; + } + + /** Set Measure Calculation. + @param PA_MeasureCalc_ID + Calculation method for measuring performance + */ + public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) + { + if (PA_MeasureCalc_ID <= 0) set_Value (COLUMNNAME_PA_MeasureCalc_ID, null); + else + set_Value (COLUMNNAME_PA_MeasureCalc_ID, Integer.valueOf(PA_MeasureCalc_ID)); + } + + /** Get Measure Calculation. + @return Calculation method for measuring performance + */ + public int getPA_MeasureCalc_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_MeasureCalc_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Measure. + @param PA_Measure_ID + Concrete Performance Measurement + */ + public void setPA_Measure_ID (int PA_Measure_ID) + { + if (PA_Measure_ID < 1) + throw new IllegalArgumentException ("PA_Measure_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Measure_ID, Integer.valueOf(PA_Measure_ID)); + } + + /** Get Measure. + @return Concrete Performance Measurement + */ + public int getPA_Measure_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Measure_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Ratio getI_PA_Ratio() throws Exception + { + 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 e; + } + return result; + } + + /** Set Ratio. + @param PA_Ratio_ID + Performace Ratio + */ + public void setPA_Ratio_ID (int PA_Ratio_ID) + { + if (PA_Ratio_ID <= 0) set_Value (COLUMNNAME_PA_Ratio_ID, null); + else + set_Value (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); + } + + /** Get Ratio. + @return Performace Ratio + */ + public int getPA_Ratio_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Ratio_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_MeasureCalc.java b/base/src/org/compiere/model/X_PA_MeasureCalc.java index b8d0b02f94..2aa35d173d 100644 --- a/base/src/org/compiere/model/X_PA_MeasureCalc.java +++ b/base/src/org/compiere/model/X_PA_MeasureCalc.java @@ -1,337 +1,388 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_MeasureCalc - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_MeasureCalc extends PO + +/** Generated Model for PA_MeasureCalc + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_MeasureCalc extends PO implements I_PA_MeasureCalc, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_MeasureCalc_ID id -@param trxName transaction -*/ -public X_PA_MeasureCalc (Properties ctx, int PA_MeasureCalc_ID, String trxName) -{ -super (ctx, PA_MeasureCalc_ID, trxName); -/** if (PA_MeasureCalc_ID == 0) -{ -setAD_Table_ID (0); -setDateColumn (null); // x.Date -setEntityType (null); // U -setKeyColumn (null); -setName (null); -setOrgColumn (null); // x.AD_Org_ID -setPA_MeasureCalc_ID (0); -setSelectClause (null); // SELECT ... FROM ... -setWhereClause (null); // WHERE ... -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_MeasureCalc (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_MeasureCalc */ -public static final String Table_Name="PA_MeasureCalc"; - -/** AD_Table_ID=442 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_MeasureCalc[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID < 1) throw new IllegalArgumentException ("AD_Table_ID is mandatory."); -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set B.Partner Column. -@param BPartnerColumn Fully qualified Business Partner key column (C_BPartner_ID) */ -public void setBPartnerColumn (String BPartnerColumn) -{ -if (BPartnerColumn != null && BPartnerColumn.length() > 60) -{ -log.warning("Length > 60 - truncated"); -BPartnerColumn = BPartnerColumn.substring(0,59); -} -set_Value ("BPartnerColumn", BPartnerColumn); -} -/** Get B.Partner Column. -@return Fully qualified Business Partner key column (C_BPartner_ID) */ -public String getBPartnerColumn() -{ -return (String)get_Value("BPartnerColumn"); -} -/** Column name BPartnerColumn */ -public static final String COLUMNNAME_BPartnerColumn = "BPartnerColumn"; -/** Set Date Column. -@param DateColumn Fully qualified date column */ -public void setDateColumn (String DateColumn) -{ -if (DateColumn == null) throw new IllegalArgumentException ("DateColumn is mandatory."); -if (DateColumn.length() > 60) -{ -log.warning("Length > 60 - truncated"); -DateColumn = DateColumn.substring(0,59); -} -set_Value ("DateColumn", DateColumn); -} -/** Get Date Column. -@return Fully qualified date column */ -public String getDateColumn() -{ -return (String)get_Value("DateColumn"); -} -/** Column name DateColumn */ -public static final String COLUMNNAME_DateColumn = "DateColumn"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_MeasureCalc (Properties ctx, int PA_MeasureCalc_ID, String trxName) + { + super (ctx, PA_MeasureCalc_ID, trxName); + /** if (PA_MeasureCalc_ID == 0) { setAD_Table_ID (0); + setDateColumn (null); +// x.Date + setEntityType (null); +// U + setKeyColumn (null); + setName (null); + setOrgColumn (null); +// x.AD_Org_ID + setPA_MeasureCalc_ID (0); + setSelectClause (null); +// SELECT ... FROM ... + setWhereClause (null); +// WHERE ... +} */ + } + + /** Load Constructor */ + public X_PA_MeasureCalc (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_MeasureCalc[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set B.Partner Column. + @param BPartnerColumn + Fully qualified Business Partner key column (C_BPartner_ID) + */ + public void setBPartnerColumn (String BPartnerColumn) + { + if (BPartnerColumn != null && BPartnerColumn.length() > 60) + { + log.warning("Length > 60 - truncated"); + BPartnerColumn = BPartnerColumn.substring(0, 59); + } + set_Value (COLUMNNAME_BPartnerColumn, BPartnerColumn); + } + + /** Get B.Partner Column. + @return Fully qualified Business Partner key column (C_BPartner_ID) + */ + public String getBPartnerColumn () + { + return (String)get_Value(COLUMNNAME_BPartnerColumn); + } + + /** Set Date Column. + @param DateColumn + Fully qualified date column + */ + public void setDateColumn (String DateColumn) + { + if (DateColumn == null) + throw new IllegalArgumentException ("DateColumn is mandatory."); + if (DateColumn.length() > 60) + { + log.warning("Length > 60 - truncated"); + DateColumn = DateColumn.substring(0, 59); + } + set_Value (COLUMNNAME_DateColumn, DateColumn); + } + + /** Get Date Column. + @return Fully qualified date column + */ + public String getDateColumn () + { + return (String)get_Value(COLUMNNAME_DateColumn); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; -/** Set Entity Type. -@param EntityType Dictionary Entity Type; - Determines ownership and synchronization */ -public void setEntityType (String EntityType) -{ -if (EntityType.length() > 4) -{ -log.warning("Length > 4 - truncated"); -EntityType = EntityType.substring(0,3); -} -set_Value ("EntityType", EntityType); -} -/** Get Entity Type. -@return Dictionary Entity Type; - Determines ownership and synchronization */ -public String getEntityType() -{ -return (String)get_Value("EntityType"); -} -/** Column name EntityType */ -public static final String COLUMNNAME_EntityType = "EntityType"; -/** Set Key Column. -@param KeyColumn Key Column for Table */ -public void setKeyColumn (String KeyColumn) -{ -if (KeyColumn == null) throw new IllegalArgumentException ("KeyColumn is mandatory."); -if (KeyColumn.length() > 60) -{ -log.warning("Length > 60 - truncated"); -KeyColumn = KeyColumn.substring(0,59); -} -set_Value ("KeyColumn", KeyColumn); -} -/** Get Key Column. -@return Key Column for Table */ -public String getKeyColumn() -{ -return (String)get_Value("KeyColumn"); -} -/** Column name KeyColumn */ -public static final String COLUMNNAME_KeyColumn = "KeyColumn"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Org Column. -@param OrgColumn Fully qualified Organization column (AD_Org_ID) */ -public void setOrgColumn (String OrgColumn) -{ -if (OrgColumn == null) throw new IllegalArgumentException ("OrgColumn is mandatory."); -if (OrgColumn.length() > 60) -{ -log.warning("Length > 60 - truncated"); -OrgColumn = OrgColumn.substring(0,59); -} -set_Value ("OrgColumn", OrgColumn); -} -/** Get Org Column. -@return Fully qualified Organization column (AD_Org_ID) */ -public String getOrgColumn() -{ -return (String)get_Value("OrgColumn"); -} -/** Column name OrgColumn */ -public static final String COLUMNNAME_OrgColumn = "OrgColumn"; -/** Set Measure Calculation. -@param PA_MeasureCalc_ID Calculation method for measuring performance */ -public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) -{ -if (PA_MeasureCalc_ID < 1) throw new IllegalArgumentException ("PA_MeasureCalc_ID is mandatory."); -set_ValueNoCheck ("PA_MeasureCalc_ID", Integer.valueOf(PA_MeasureCalc_ID)); -} -/** Get Measure Calculation. -@return Calculation method for measuring performance */ -public int getPA_MeasureCalc_ID() -{ -Integer ii = (Integer)get_Value("PA_MeasureCalc_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_MeasureCalc_ID */ -public static final String COLUMNNAME_PA_MeasureCalc_ID = "PA_MeasureCalc_ID"; -/** Set Product Column. -@param ProductColumn Fully qualified Product column (M_Product_ID) */ -public void setProductColumn (String ProductColumn) -{ -if (ProductColumn != null && ProductColumn.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProductColumn = ProductColumn.substring(0,59); -} -set_Value ("ProductColumn", ProductColumn); -} -/** Get Product Column. -@return Fully qualified Product column (M_Product_ID) */ -public String getProductColumn() -{ -return (String)get_Value("ProductColumn"); -} -/** Column name ProductColumn */ -public static final String COLUMNNAME_ProductColumn = "ProductColumn"; -/** Set Sql SELECT. -@param SelectClause SQL SELECT clause */ -public void setSelectClause (String SelectClause) -{ -if (SelectClause == null) throw new IllegalArgumentException ("SelectClause is mandatory."); -if (SelectClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -SelectClause = SelectClause.substring(0,1999); -} -set_Value ("SelectClause", SelectClause); -} -/** Get Sql SELECT. -@return SQL SELECT clause */ -public String getSelectClause() -{ -return (String)get_Value("SelectClause"); -} -/** Column name SelectClause */ -public static final String COLUMNNAME_SelectClause = "SelectClause"; -/** Set Sql WHERE. -@param WhereClause Fully qualified SQL WHERE clause */ -public void setWhereClause (String WhereClause) -{ -if (WhereClause == null) throw new IllegalArgumentException ("WhereClause is mandatory."); -if (WhereClause.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WhereClause = WhereClause.substring(0,1999); -} -set_Value ("WhereClause", WhereClause); -} -/** Get Sql WHERE. -@return Fully qualified SQL WHERE clause */ -public String getWhereClause() -{ -return (String)get_Value("WhereClause"); -} -/** Column name WhereClause */ -public static final String COLUMNNAME_WhereClause = "WhereClause"; -} + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + if (EntityType.length() > 4) + { + log.warning("Length > 4 - truncated"); + EntityType = EntityType.substring(0, 3); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Key Column. + @param KeyColumn + Key Column for Table + */ + public void setKeyColumn (String KeyColumn) + { + if (KeyColumn == null) + throw new IllegalArgumentException ("KeyColumn is mandatory."); + if (KeyColumn.length() > 60) + { + log.warning("Length > 60 - truncated"); + KeyColumn = KeyColumn.substring(0, 59); + } + set_Value (COLUMNNAME_KeyColumn, KeyColumn); + } + + /** Get Key Column. + @return Key Column for Table + */ + public String getKeyColumn () + { + return (String)get_Value(COLUMNNAME_KeyColumn); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Org Column. + @param OrgColumn + Fully qualified Organization column (AD_Org_ID) + */ + public void setOrgColumn (String OrgColumn) + { + if (OrgColumn == null) + throw new IllegalArgumentException ("OrgColumn is mandatory."); + if (OrgColumn.length() > 60) + { + log.warning("Length > 60 - truncated"); + OrgColumn = OrgColumn.substring(0, 59); + } + set_Value (COLUMNNAME_OrgColumn, OrgColumn); + } + + /** Get Org Column. + @return Fully qualified Organization column (AD_Org_ID) + */ + public String getOrgColumn () + { + return (String)get_Value(COLUMNNAME_OrgColumn); + } + + /** Set Measure Calculation. + @param PA_MeasureCalc_ID + Calculation method for measuring performance + */ + public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) + { + if (PA_MeasureCalc_ID < 1) + throw new IllegalArgumentException ("PA_MeasureCalc_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_MeasureCalc_ID, Integer.valueOf(PA_MeasureCalc_ID)); + } + + /** Get Measure Calculation. + @return Calculation method for measuring performance + */ + public int getPA_MeasureCalc_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_MeasureCalc_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product Column. + @param ProductColumn + Fully qualified Product column (M_Product_ID) + */ + public void setProductColumn (String ProductColumn) + { + if (ProductColumn != null && ProductColumn.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProductColumn = ProductColumn.substring(0, 59); + } + set_Value (COLUMNNAME_ProductColumn, ProductColumn); + } + + /** Get Product Column. + @return Fully qualified Product column (M_Product_ID) + */ + public String getProductColumn () + { + return (String)get_Value(COLUMNNAME_ProductColumn); + } + + /** Set Sql SELECT. + @param SelectClause + SQL SELECT clause + */ + public void setSelectClause (String SelectClause) + { + if (SelectClause == null) + throw new IllegalArgumentException ("SelectClause is mandatory."); + if (SelectClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + SelectClause = SelectClause.substring(0, 1999); + } + set_Value (COLUMNNAME_SelectClause, SelectClause); + } + + /** Get Sql SELECT. + @return SQL SELECT clause + */ + public String getSelectClause () + { + return (String)get_Value(COLUMNNAME_SelectClause); + } + + /** Set Sql WHERE. + @param WhereClause + Fully qualified SQL WHERE clause + */ + public void setWhereClause (String WhereClause) + { + if (WhereClause == null) + throw new IllegalArgumentException ("WhereClause is mandatory."); + if (WhereClause.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WhereClause = WhereClause.substring(0, 1999); + } + set_Value (COLUMNNAME_WhereClause, WhereClause); + } + + /** Get Sql WHERE. + @return Fully qualified SQL WHERE clause + */ + public String getWhereClause () + { + return (String)get_Value(COLUMNNAME_WhereClause); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Ratio.java b/base/src/org/compiere/model/X_PA_Ratio.java index 15486a17b0..5cb7da15dd 100644 --- a/base/src/org/compiere/model/X_PA_Ratio.java +++ b/base/src/org/compiere/model/X_PA_Ratio.java @@ -1,188 +1,211 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Ratio - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Ratio extends PO + +/** Generated Model for PA_Ratio + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Ratio extends PO implements I_PA_Ratio, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Ratio_ID id -@param trxName transaction -*/ -public X_PA_Ratio (Properties ctx, int PA_Ratio_ID, String trxName) -{ -super (ctx, PA_Ratio_ID, trxName); -/** if (PA_Ratio_ID == 0) -{ -setC_AcctSchema_ID (0); -setName (null); -setPA_Ratio_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Ratio (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Ratio */ -public static final String Table_Name="PA_Ratio"; - -/** AD_Table_ID=835 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Ratio[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Ratio. -@param PA_Ratio_ID Performace Ratio */ -public void setPA_Ratio_ID (int PA_Ratio_ID) -{ -if (PA_Ratio_ID < 1) throw new IllegalArgumentException ("PA_Ratio_ID is mandatory."); -set_ValueNoCheck ("PA_Ratio_ID", Integer.valueOf(PA_Ratio_ID)); -} -/** Get Ratio. -@return Performace Ratio */ -public int getPA_Ratio_ID() -{ -Integer ii = (Integer)get_Value("PA_Ratio_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Ratio_ID */ -public static final String COLUMNNAME_PA_Ratio_ID = "PA_Ratio_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Ratio (Properties ctx, int PA_Ratio_ID, String trxName) + { + super (ctx, PA_Ratio_ID, trxName); + /** if (PA_Ratio_ID == 0) { setC_AcctSchema_ID (0); + setName (null); + setPA_Ratio_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_Ratio (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Ratio[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Ratio. + @param PA_Ratio_ID + Performace Ratio + */ + public void setPA_Ratio_ID (int PA_Ratio_ID) + { + if (PA_Ratio_ID < 1) + throw new IllegalArgumentException ("PA_Ratio_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); + } + + /** Get Ratio. + @return Performace Ratio + */ + public int getPA_Ratio_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Ratio_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_RatioElement.java b/base/src/org/compiere/model/X_PA_RatioElement.java index 28a8de1dbd..548999314c 100644 --- a/base/src/org/compiere/model/X_PA_RatioElement.java +++ b/base/src/org/compiere/model/X_PA_RatioElement.java @@ -1,366 +1,404 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_RatioElement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_RatioElement extends PO + +/** Generated Model for PA_RatioElement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_RatioElement extends PO implements I_PA_RatioElement, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_RatioElement_ID id -@param trxName transaction -*/ -public X_PA_RatioElement (Properties ctx, int PA_RatioElement_ID, String trxName) -{ -super (ctx, PA_RatioElement_ID, trxName); -/** if (PA_RatioElement_ID == 0) -{ -setName (null); -setPA_RatioElement_ID (0); -setPA_Ratio_ID (0); -setRatioElementType (null); -setRatioOperand (null); // P -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_RatioElement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_RatioElement */ -public static final String Table_Name="PA_RatioElement"; - -/** AD_Table_ID=836 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_RatioElement[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_RatioElement (Properties ctx, int PA_RatioElement_ID, String trxName) + { + super (ctx, PA_RatioElement_ID, trxName); + /** if (PA_RatioElement_ID == 0) { setName (null); + setPA_RatioElement_ID (0); + setPA_Ratio_ID (0); + setRatioElementType (null); + setRatioOperand (null); +// P + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_PA_RatioElement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_RatioElement[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** Account_ID AD_Reference_ID=331 */ public static final int ACCOUNT_ID_AD_Reference_ID=331; -/** Set Account. -@param Account_ID Account used */ -public void setAccount_ID (int Account_ID) -{ -if (Account_ID <= 0) set_Value ("Account_ID", null); - else -set_Value ("Account_ID", Integer.valueOf(Account_ID)); -} -/** Get Account. -@return Account used */ -public int getAccount_ID() -{ -Integer ii = (Integer)get_Value("Account_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_ID */ -public static final String COLUMNNAME_Account_ID = "Account_ID"; -/** Set Constant Value. -@param ConstantValue Constant value */ -public void setConstantValue (BigDecimal ConstantValue) -{ -set_Value ("ConstantValue", ConstantValue); -} -/** Get Constant Value. -@return Constant value */ -public BigDecimal getConstantValue() -{ -BigDecimal bd = (BigDecimal)get_Value("ConstantValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConstantValue */ -public static final String COLUMNNAME_ConstantValue = "ConstantValue"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Measure Calculation. -@param PA_MeasureCalc_ID Calculation method for measuring performance */ -public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) -{ -if (PA_MeasureCalc_ID <= 0) set_Value ("PA_MeasureCalc_ID", null); - else -set_Value ("PA_MeasureCalc_ID", Integer.valueOf(PA_MeasureCalc_ID)); -} -/** Get Measure Calculation. -@return Calculation method for measuring performance */ -public int getPA_MeasureCalc_ID() -{ -Integer ii = (Integer)get_Value("PA_MeasureCalc_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_MeasureCalc_ID */ -public static final String COLUMNNAME_PA_MeasureCalc_ID = "PA_MeasureCalc_ID"; -/** Set Ratio Element. -@param PA_RatioElement_ID Performance Ratio Element */ -public void setPA_RatioElement_ID (int PA_RatioElement_ID) -{ -if (PA_RatioElement_ID < 1) throw new IllegalArgumentException ("PA_RatioElement_ID is mandatory."); -set_ValueNoCheck ("PA_RatioElement_ID", Integer.valueOf(PA_RatioElement_ID)); -} -/** Get Ratio Element. -@return Performance Ratio Element */ -public int getPA_RatioElement_ID() -{ -Integer ii = (Integer)get_Value("PA_RatioElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_RatioElement_ID */ -public static final String COLUMNNAME_PA_RatioElement_ID = "PA_RatioElement_ID"; + /** Set Account. + @param Account_ID + Account used + */ + public void setAccount_ID (int Account_ID) + { + if (Account_ID <= 0) set_Value (COLUMNNAME_Account_ID, null); + else + set_Value (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); + } + + /** Get Account. + @return Account used + */ + public int getAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Constant Value. + @param ConstantValue + Constant value + */ + public void setConstantValue (BigDecimal ConstantValue) + { + set_Value (COLUMNNAME_ConstantValue, ConstantValue); + } + + /** Get Constant Value. + @return Constant value + */ + public BigDecimal getConstantValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConstantValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + public I_PA_MeasureCalc getI_PA_MeasureCalc() throws Exception + { + 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 e; + } + return result; + } + + /** Set Measure Calculation. + @param PA_MeasureCalc_ID + Calculation method for measuring performance + */ + public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) + { + if (PA_MeasureCalc_ID <= 0) set_Value (COLUMNNAME_PA_MeasureCalc_ID, null); + else + set_Value (COLUMNNAME_PA_MeasureCalc_ID, Integer.valueOf(PA_MeasureCalc_ID)); + } + + /** Get Measure Calculation. + @return Calculation method for measuring performance + */ + public int getPA_MeasureCalc_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_MeasureCalc_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Ratio Element. + @param PA_RatioElement_ID + Performance Ratio Element + */ + public void setPA_RatioElement_ID (int PA_RatioElement_ID) + { + if (PA_RatioElement_ID < 1) + throw new IllegalArgumentException ("PA_RatioElement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_RatioElement_ID, Integer.valueOf(PA_RatioElement_ID)); + } + + /** Get Ratio Element. + @return Performance Ratio Element + */ + public int getPA_RatioElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_RatioElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PA_RatioUsed_ID AD_Reference_ID=371 */ public static final int PA_RATIOUSED_ID_AD_Reference_ID=371; -/** Set Ratio Used. -@param PA_RatioUsed_ID Performace Ratio Used */ -public void setPA_RatioUsed_ID (int PA_RatioUsed_ID) -{ -if (PA_RatioUsed_ID <= 0) set_Value ("PA_RatioUsed_ID", null); - else -set_Value ("PA_RatioUsed_ID", Integer.valueOf(PA_RatioUsed_ID)); -} -/** Get Ratio Used. -@return Performace Ratio Used */ -public int getPA_RatioUsed_ID() -{ -Integer ii = (Integer)get_Value("PA_RatioUsed_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_RatioUsed_ID */ -public static final String COLUMNNAME_PA_RatioUsed_ID = "PA_RatioUsed_ID"; -/** Set Ratio. -@param PA_Ratio_ID Performace Ratio */ -public void setPA_Ratio_ID (int PA_Ratio_ID) -{ -if (PA_Ratio_ID < 1) throw new IllegalArgumentException ("PA_Ratio_ID is mandatory."); -set_ValueNoCheck ("PA_Ratio_ID", Integer.valueOf(PA_Ratio_ID)); -} -/** Get Ratio. -@return Performace Ratio */ -public int getPA_Ratio_ID() -{ -Integer ii = (Integer)get_Value("PA_Ratio_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Ratio_ID */ -public static final String COLUMNNAME_PA_Ratio_ID = "PA_Ratio_ID"; + /** Set Ratio Used. + @param PA_RatioUsed_ID + Performace Ratio Used + */ + public void setPA_RatioUsed_ID (int PA_RatioUsed_ID) + { + if (PA_RatioUsed_ID <= 0) set_Value (COLUMNNAME_PA_RatioUsed_ID, null); + else + set_Value (COLUMNNAME_PA_RatioUsed_ID, Integer.valueOf(PA_RatioUsed_ID)); + } + + /** Get Ratio Used. + @return Performace Ratio Used + */ + public int getPA_RatioUsed_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_RatioUsed_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_Ratio getI_PA_Ratio() throws Exception + { + 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 e; + } + return result; + } + + /** Set Ratio. + @param PA_Ratio_ID + Performace Ratio + */ + public void setPA_Ratio_ID (int PA_Ratio_ID) + { + if (PA_Ratio_ID < 1) + throw new IllegalArgumentException ("PA_Ratio_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Ratio_ID, Integer.valueOf(PA_Ratio_ID)); + } + + /** Get Ratio. + @return Performace Ratio + */ + public int getPA_Ratio_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Ratio_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType != null && PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType != null && PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } /** RatioElementType AD_Reference_ID=372 */ -public static final int RATIOELEMENTTYPE_AD_Reference_ID=372; -/** Account Value = A */ -public static final String RATIOELEMENTTYPE_AccountValue = "A"; -/** Constant = C */ -public static final String RATIOELEMENTTYPE_Constant = "C"; -/** Ratio = R */ -public static final String RATIOELEMENTTYPE_Ratio = "R"; -/** Calculation = X */ +public static final int RATIOELEMENTTYPE_AD_Reference_ID=372;/** Account Value = A */ +public static final String RATIOELEMENTTYPE_AccountValue = "A";/** Constant = C */ +public static final String RATIOELEMENTTYPE_Constant = "C";/** Ratio = R */ +public static final String RATIOELEMENTTYPE_Ratio = "R";/** Calculation = X */ public static final String RATIOELEMENTTYPE_Calculation = "X"; -/** Set Element Type. -@param RatioElementType Ratio Element Type */ -public void setRatioElementType (String RatioElementType) -{ -if (RatioElementType == null) throw new IllegalArgumentException ("RatioElementType is mandatory"); -if (RatioElementType.equals("A") || RatioElementType.equals("C") || RatioElementType.equals("R") || RatioElementType.equals("X")); - else throw new IllegalArgumentException ("RatioElementType Invalid value - " + RatioElementType + " - Reference_ID=372 - A - C - R - X"); -if (RatioElementType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RatioElementType = RatioElementType.substring(0,0); -} -set_Value ("RatioElementType", RatioElementType); -} -/** Get Element Type. -@return Ratio Element Type */ -public String getRatioElementType() -{ -return (String)get_Value("RatioElementType"); -} -/** Column name RatioElementType */ -public static final String COLUMNNAME_RatioElementType = "RatioElementType"; + /** Set Element Type. + @param RatioElementType + Ratio Element Type + */ + public void setRatioElementType (String RatioElementType) + { +if (RatioElementType == null) throw new IllegalArgumentException ("RatioElementType is mandatory");if (RatioElementType.equals("A") || RatioElementType.equals("C") || RatioElementType.equals("R") || RatioElementType.equals("X")); else throw new IllegalArgumentException ("RatioElementType Invalid value - " + RatioElementType + " - Reference_ID=372 - A - C - R - X"); if (RatioElementType.length() > 1) + { + log.warning("Length > 1 - truncated"); + RatioElementType = RatioElementType.substring(0, 0); + } + set_Value (COLUMNNAME_RatioElementType, RatioElementType); + } + + /** Get Element Type. + @return Ratio Element Type + */ + public String getRatioElementType () + { + return (String)get_Value(COLUMNNAME_RatioElementType); + } /** RatioOperand AD_Reference_ID=373 */ -public static final int RATIOOPERAND_AD_Reference_ID=373; -/** Divide = D */ -public static final String RATIOOPERAND_Divide = "D"; -/** Multiply = M */ -public static final String RATIOOPERAND_Multiply = "M"; -/** Minus = N */ -public static final String RATIOOPERAND_Minus = "N"; -/** Plus = P */ +public static final int RATIOOPERAND_AD_Reference_ID=373;/** Divide = D */ +public static final String RATIOOPERAND_Divide = "D";/** Multiply = M */ +public static final String RATIOOPERAND_Multiply = "M";/** Minus = N */ +public static final String RATIOOPERAND_Minus = "N";/** Plus = P */ public static final String RATIOOPERAND_Plus = "P"; -/** Set Operand. -@param RatioOperand Ratio Operand */ -public void setRatioOperand (String RatioOperand) -{ -if (RatioOperand == null) throw new IllegalArgumentException ("RatioOperand is mandatory"); -if (RatioOperand.equals("D") || RatioOperand.equals("M") || RatioOperand.equals("N") || RatioOperand.equals("P")); - else throw new IllegalArgumentException ("RatioOperand Invalid value - " + RatioOperand + " - Reference_ID=373 - D - M - N - P"); -if (RatioOperand.length() > 1) -{ -log.warning("Length > 1 - truncated"); -RatioOperand = RatioOperand.substring(0,0); -} -set_Value ("RatioOperand", RatioOperand); -} -/** Get Operand. -@return Ratio Operand */ -public String getRatioOperand() -{ -return (String)get_Value("RatioOperand"); -} -/** Column name RatioOperand */ -public static final String COLUMNNAME_RatioOperand = "RatioOperand"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set Operand. + @param RatioOperand + Ratio Operand + */ + public void setRatioOperand (String RatioOperand) + { +if (RatioOperand == null) throw new IllegalArgumentException ("RatioOperand is mandatory");if (RatioOperand.equals("D") || RatioOperand.equals("M") || RatioOperand.equals("N") || RatioOperand.equals("P")); else throw new IllegalArgumentException ("RatioOperand Invalid value - " + RatioOperand + " - Reference_ID=373 - D - M - N - P"); if (RatioOperand.length() > 1) + { + log.warning("Length > 1 - truncated"); + RatioOperand = RatioOperand.substring(0, 0); + } + set_Value (COLUMNNAME_RatioOperand, RatioOperand); + } + + /** Get Operand. + @return Ratio Operand + */ + public String getRatioOperand () + { + return (String)get_Value(COLUMNNAME_RatioOperand); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_Report.java b/base/src/org/compiere/model/X_PA_Report.java index bd63007a94..132bdfe9ac 100644 --- a/base/src/org/compiere/model/X_PA_Report.java +++ b/base/src/org/compiere/model/X_PA_Report.java @@ -1,304 +1,413 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_Report - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_Report extends PO + +/** Generated Model for PA_Report + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_Report extends PO implements I_PA_Report, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_Report_ID id -@param trxName transaction -*/ -public X_PA_Report (Properties ctx, int PA_Report_ID, String trxName) -{ -super (ctx, PA_Report_ID, trxName); -/** if (PA_Report_ID == 0) -{ -setC_AcctSchema_ID (0); -setC_Calendar_ID (0); -setListSources (false); -setListTrx (false); -setName (null); -setPA_ReportColumnSet_ID (0); -setPA_ReportLineSet_ID (0); -setPA_Report_ID (0); -setProcessing (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_Report (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_Report */ -public static final String Table_Name="PA_Report"; - -/** AD_Table_ID=445 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_Report[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Print Format. -@param AD_PrintFormat_ID Data Print Format */ -public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) -{ -if (AD_PrintFormat_ID <= 0) set_Value ("AD_PrintFormat_ID", null); - else -set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); -} -/** Get Print Format. -@return Data Print Format */ -public int getAD_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PrintFormat_ID */ -public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; -/** Set Accounting Schema. -@param C_AcctSchema_ID Rules for accounting */ -public void setC_AcctSchema_ID (int C_AcctSchema_ID) -{ -if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); -set_Value ("C_AcctSchema_ID", Integer.valueOf(C_AcctSchema_ID)); -} -/** Get Accounting Schema. -@return Rules for accounting */ -public int getC_AcctSchema_ID() -{ -Integer ii = (Integer)get_Value("C_AcctSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_AcctSchema_ID */ -public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; -/** Set Calendar. -@param C_Calendar_ID Accounting Calendar Name */ -public void setC_Calendar_ID (int C_Calendar_ID) -{ -if (C_Calendar_ID < 1) throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); -set_Value ("C_Calendar_ID", Integer.valueOf(C_Calendar_ID)); -} -/** Get Calendar. -@return Accounting Calendar Name */ -public int getC_Calendar_ID() -{ -Integer ii = (Integer)get_Value("C_Calendar_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Calendar_ID */ -public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set List Sources. -@param ListSources List Report Line Sources */ -public void setListSources (boolean ListSources) -{ -set_Value ("ListSources", Boolean.valueOf(ListSources)); -} -/** Get List Sources. -@return List Report Line Sources */ -public boolean isListSources() -{ -Object oo = get_Value("ListSources"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ListSources */ -public static final String COLUMNNAME_ListSources = "ListSources"; -/** Set List Transactions. -@param ListTrx List the report transactions */ -public void setListTrx (boolean ListTrx) -{ -set_Value ("ListTrx", Boolean.valueOf(ListTrx)); -} -/** Get List Transactions. -@return List the report transactions */ -public boolean isListTrx() -{ -Object oo = get_Value("ListTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name ListTrx */ -public static final String COLUMNNAME_ListTrx = "ListTrx"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Report Column Set. -@param PA_ReportColumnSet_ID Collection of Columns for Report */ -public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) -{ -if (PA_ReportColumnSet_ID < 1) throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); -set_Value ("PA_ReportColumnSet_ID", Integer.valueOf(PA_ReportColumnSet_ID)); -} -/** Get Report Column Set. -@return Collection of Columns for Report */ -public int getPA_ReportColumnSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportColumnSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportColumnSet_ID */ -public static final String COLUMNNAME_PA_ReportColumnSet_ID = "PA_ReportColumnSet_ID"; -/** Set Report Line Set. -@param PA_ReportLineSet_ID Report Line Set */ -public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) -{ -if (PA_ReportLineSet_ID < 1) throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); -set_Value ("PA_ReportLineSet_ID", Integer.valueOf(PA_ReportLineSet_ID)); -} -/** Get Report Line Set. -@return Report Line Set */ -public int getPA_ReportLineSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLineSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLineSet_ID */ -public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; -/** Set Financial Report. -@param PA_Report_ID Financial Report */ -public void setPA_Report_ID (int PA_Report_ID) -{ -if (PA_Report_ID < 1) throw new IllegalArgumentException ("PA_Report_ID is mandatory."); -set_ValueNoCheck ("PA_Report_ID", Integer.valueOf(PA_Report_ID)); -} -/** Get Financial Report. -@return Financial Report */ -public int getPA_Report_ID() -{ -Integer ii = (Integer)get_Value("PA_Report_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_Report_ID */ -public static final String COLUMNNAME_PA_Report_ID = "PA_Report_ID"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_Report (Properties ctx, int PA_Report_ID, String trxName) + { + super (ctx, PA_Report_ID, trxName); + /** if (PA_Report_ID == 0) { setC_AcctSchema_ID (0); + setC_Calendar_ID (0); + setListSources (false); + setListTrx (false); + setName (null); + setPA_ReportColumnSet_ID (0); + setPA_ReportLineSet_ID (0); + setPA_Report_ID (0); + setProcessing (false); +} */ + } + + /** Load Constructor */ + public X_PA_Report (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_Report[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintFormat getI_AD_PrintFormat() throws Exception + { + 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 e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID <= 0) set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_AcctSchema getI_C_AcctSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Calendar getI_C_Calendar() throws Exception + { + 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 e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_Value (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set List Sources. + @param ListSources + List Report Line Sources + */ + public void setListSources (boolean ListSources) + { + set_Value (COLUMNNAME_ListSources, Boolean.valueOf(ListSources)); + } + + /** Get List Sources. + @return List Report Line Sources + */ + public boolean isListSources () + { + Object oo = get_Value(COLUMNNAME_ListSources); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set List Transactions. + @param ListTrx + List the report transactions + */ + public void setListTrx (boolean ListTrx) + { + set_Value (COLUMNNAME_ListTrx, Boolean.valueOf(ListTrx)); + } + + /** Get List Transactions. + @return List the report transactions + */ + public boolean isListTrx () + { + Object oo = get_Value(COLUMNNAME_ListTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + public I_PA_ReportColumnSet getI_PA_ReportColumnSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Column Set. + @param PA_ReportColumnSet_ID + Collection of Columns for Report + */ + public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) + { + if (PA_ReportColumnSet_ID < 1) + throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); + set_Value (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); + } + + /** Get Report Column Set. + @return Collection of Columns for Report + */ + public int getPA_ReportColumnSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportColumnSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_ReportLineSet getI_PA_ReportLineSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Line Set. + @param PA_ReportLineSet_ID Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) + { + if (PA_ReportLineSet_ID < 1) + throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); + set_Value (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + } + + /** Get Report Line Set. +@return Report Line Set */ + public int getPA_ReportLineSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLineSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Financial Report. + @param PA_Report_ID + Financial Report + */ + public void setPA_Report_ID (int PA_Report_ID) + { + if (PA_Report_ID < 1) + throw new IllegalArgumentException ("PA_Report_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_Report_ID, Integer.valueOf(PA_Report_ID)); + } + + /** Get Financial Report. + @return Financial Report + */ + public int getPA_Report_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_Report_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_ReportColumn.java b/base/src/org/compiere/model/X_PA_ReportColumn.java index e47b7c9930..321a68e197 100644 --- a/base/src/org/compiere/model/X_PA_ReportColumn.java +++ b/base/src/org/compiere/model/X_PA_ReportColumn.java @@ -1,720 +1,898 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_ReportColumn - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_ReportColumn extends PO + +/** Generated Model for PA_ReportColumn + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_ReportColumn extends PO implements I_PA_ReportColumn, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_ReportColumn_ID id -@param trxName transaction -*/ -public X_PA_ReportColumn (Properties ctx, int PA_ReportColumn_ID, String trxName) -{ -super (ctx, PA_ReportColumn_ID, trxName); -/** if (PA_ReportColumn_ID == 0) -{ -setColumnType (null); // R -setIsPrinted (true); // Y -setName (null); -setPA_ReportColumnSet_ID (0); -setPA_ReportColumn_ID (0); -setPostingType (null); // A -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM PA_ReportColumn WHERE PA_ReportColumnSet_ID=@PA_ReportColumnSet_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_ReportColumn (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_ReportColumn */ -public static final String Table_Name="PA_ReportColumn"; - -/** AD_Table_ID=446 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_ReportColumn[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_ReportColumn (Properties ctx, int PA_ReportColumn_ID, String trxName) + { + super (ctx, PA_ReportColumn_ID, trxName); + /** if (PA_ReportColumn_ID == 0) { setColumnType (null); +// R + setIsPrinted (true); +// Y + setName (null); + setPA_ReportColumnSet_ID (0); + setPA_ReportColumn_ID (0); + setPostingType (null); +// A + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM PA_ReportColumn WHERE PA_ReportColumnSet_ID=@PA_ReportColumnSet_ID@ +} */ + } + + /** Load Constructor */ + public X_PA_ReportColumn (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_ReportColumn[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AmountType AD_Reference_ID=235 */ -public static final int AMOUNTTYPE_AD_Reference_ID=235; -/** Period Balance = BP */ -public static final String AMOUNTTYPE_PeriodBalance = "BP"; -/** Total Balance = BT */ -public static final String AMOUNTTYPE_TotalBalance = "BT"; -/** Year Balance = BY */ -public static final String AMOUNTTYPE_YearBalance = "BY"; -/** Period Credit Only = CP */ -public static final String AMOUNTTYPE_PeriodCreditOnly = "CP"; -/** Total Credit Only = CT */ -public static final String AMOUNTTYPE_TotalCreditOnly = "CT"; -/** Year Credit Only = CY */ -public static final String AMOUNTTYPE_YearCreditOnly = "CY"; -/** Period Debit Only = DP */ -public static final String AMOUNTTYPE_PeriodDebitOnly = "DP"; -/** Total Debit Only = DT */ -public static final String AMOUNTTYPE_TotalDebitOnly = "DT"; -/** Year Debit Only = DY */ -public static final String AMOUNTTYPE_YearDebitOnly = "DY"; -/** Period Quantity = QP */ -public static final String AMOUNTTYPE_PeriodQuantity = "QP"; -/** Total Quantity = QT */ -public static final String AMOUNTTYPE_TotalQuantity = "QT"; -/** Year Quantity = QY */ +public static final int AMOUNTTYPE_AD_Reference_ID=235;/** Period Balance = BP */ +public static final String AMOUNTTYPE_PeriodBalance = "BP";/** Total Balance = BT */ +public static final String AMOUNTTYPE_TotalBalance = "BT";/** Year Balance = BY */ +public static final String AMOUNTTYPE_YearBalance = "BY";/** Period Credit Only = CP */ +public static final String AMOUNTTYPE_PeriodCreditOnly = "CP";/** Total Credit Only = CT */ +public static final String AMOUNTTYPE_TotalCreditOnly = "CT";/** Year Credit Only = CY */ +public static final String AMOUNTTYPE_YearCreditOnly = "CY";/** Period Debit Only = DP */ +public static final String AMOUNTTYPE_PeriodDebitOnly = "DP";/** Total Debit Only = DT */ +public static final String AMOUNTTYPE_TotalDebitOnly = "DT";/** Year Debit Only = DY */ +public static final String AMOUNTTYPE_YearDebitOnly = "DY";/** Period Quantity = QP */ +public static final String AMOUNTTYPE_PeriodQuantity = "QP";/** Total Quantity = QT */ +public static final String AMOUNTTYPE_TotalQuantity = "QT";/** Year Quantity = QY */ public static final String AMOUNTTYPE_YearQuantity = "QY"; -/** Set Amount Type. -@param AmountType Type of amount to report */ -public void setAmountType (String AmountType) -{ -if (AmountType == null || AmountType.equals("BP") || AmountType.equals("BT") || AmountType.equals("BY") || AmountType.equals("CP") || AmountType.equals("CT") || AmountType.equals("CY") || AmountType.equals("DP") || AmountType.equals("DT") || AmountType.equals("DY") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("QY")); - else throw new IllegalArgumentException ("AmountType Invalid value - " + AmountType + " - Reference_ID=235 - BP - BT - BY - CP - CT - CY - DP - DT - DY - QP - QT - QY"); -if (AmountType != null && AmountType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -AmountType = AmountType.substring(0,1); -} -set_Value ("AmountType", AmountType); -} -/** Get Amount Type. -@return Type of amount to report */ -public String getAmountType() -{ -return (String)get_Value("AmountType"); -} -/** Column name AmountType */ -public static final String COLUMNNAME_AmountType = "AmountType"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID <= 0) set_Value ("C_ElementValue_ID", null); - else -set_Value ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; + /** Set Amount Type. + @param AmountType + Type of amount to report + */ + public void setAmountType (String AmountType) + { +if (AmountType == null || AmountType.equals("BP") || AmountType.equals("BT") || AmountType.equals("BY") || AmountType.equals("CP") || AmountType.equals("CT") || AmountType.equals("CY") || AmountType.equals("DP") || AmountType.equals("DT") || AmountType.equals("DY") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("QY")); else throw new IllegalArgumentException ("AmountType Invalid value - " + AmountType + " - Reference_ID=235 - BP - BT - BY - CP - CT - CY - DP - DT - DY - QP - QT - QY"); if (AmountType != null && AmountType.length() > 2) + { + log.warning("Length > 2 - truncated"); + AmountType = AmountType.substring(0, 1); + } + set_Value (COLUMNNAME_AmountType, AmountType); + } + + /** Get Amount Type. + @return Type of amount to report + */ + public String getAmountType () + { + return (String)get_Value(COLUMNNAME_AmountType); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getI_C_BPartner() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ElementValue getI_C_ElementValue() throws Exception + { + 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 e; + } + return result; + } + + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID <= 0) set_Value (COLUMNNAME_C_ElementValue_ID, null); + else + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** CalculationType AD_Reference_ID=236 */ -public static final int CALCULATIONTYPE_AD_Reference_ID=236; -/** Add (Op1+Op2) = A */ -public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A"; -/** Percentage (Op1 of Op2) = P */ -public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P"; -/** Add Range (Op1 to Op2) = R */ -public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R"; -/** Subtract (Op1-Op2) = S */ +public static final int CALCULATIONTYPE_AD_Reference_ID=236;/** Add (Op1+Op2) = A */ +public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A";/** Percentage (Op1 of Op2) = P */ +public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P";/** Add Range (Op1 to Op2) = R */ +public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R";/** Subtract (Op1-Op2) = S */ public static final String CALCULATIONTYPE_SubtractOp1_Op2 = "S"; -/** Set Calculation. -@param CalculationType Calculation */ -public void setCalculationType (String CalculationType) -{ -if (CalculationType == null || CalculationType.equals("A") || CalculationType.equals("P") || CalculationType.equals("R") || CalculationType.equals("S")); - else throw new IllegalArgumentException ("CalculationType Invalid value - " + CalculationType + " - Reference_ID=236 - A - P - R - S"); -if (CalculationType != null && CalculationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CalculationType = CalculationType.substring(0,0); -} -set_Value ("CalculationType", CalculationType); -} -/** Get Calculation. -@return Calculation */ -public String getCalculationType() -{ -return (String)get_Value("CalculationType"); -} -/** Column name CalculationType */ -public static final String COLUMNNAME_CalculationType = "CalculationType"; + /** Set Calculation. + @param CalculationType Calculation */ + public void setCalculationType (String CalculationType) + { +if (CalculationType == null || CalculationType.equals("A") || CalculationType.equals("P") || CalculationType.equals("R") || CalculationType.equals("S")); else throw new IllegalArgumentException ("CalculationType Invalid value - " + CalculationType + " - Reference_ID=236 - A - P - R - S"); if (CalculationType != null && CalculationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CalculationType = CalculationType.substring(0, 0); + } + set_Value (COLUMNNAME_CalculationType, CalculationType); + } + + /** Get Calculation. +@return Calculation */ + public String getCalculationType () + { + return (String)get_Value(COLUMNNAME_CalculationType); + } /** ColumnType AD_Reference_ID=237 */ -public static final int COLUMNTYPE_AD_Reference_ID=237; -/** Calculation = C */ -public static final String COLUMNTYPE_Calculation = "C"; -/** Relative Period = R */ -public static final String COLUMNTYPE_RelativePeriod = "R"; -/** Segment Value = S */ +public static final int COLUMNTYPE_AD_Reference_ID=237;/** Calculation = C */ +public static final String COLUMNTYPE_Calculation = "C";/** Relative Period = R */ +public static final String COLUMNTYPE_RelativePeriod = "R";/** Segment Value = S */ public static final String COLUMNTYPE_SegmentValue = "S"; -/** Set Column Type. -@param ColumnType Column Type */ -public void setColumnType (String ColumnType) -{ -if (ColumnType == null) throw new IllegalArgumentException ("ColumnType is mandatory"); -if (ColumnType.equals("C") || ColumnType.equals("R") || ColumnType.equals("S")); - else throw new IllegalArgumentException ("ColumnType Invalid value - " + ColumnType + " - Reference_ID=237 - C - R - S"); -if (ColumnType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ColumnType = ColumnType.substring(0,0); -} -set_Value ("ColumnType", ColumnType); -} -/** Get Column Type. -@return Column Type */ -public String getColumnType() -{ -return (String)get_Value("ColumnType"); -} -/** Column name ColumnType */ -public static final String COLUMNNAME_ColumnType = "ColumnType"; + /** Set Column Type. + @param ColumnType Column Type */ + public void setColumnType (String ColumnType) + { +if (ColumnType == null) throw new IllegalArgumentException ("ColumnType is mandatory");if (ColumnType.equals("C") || ColumnType.equals("R") || ColumnType.equals("S")); else throw new IllegalArgumentException ("ColumnType Invalid value - " + ColumnType + " - Reference_ID=237 - C - R - S"); if (ColumnType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ColumnType = ColumnType.substring(0, 0); + } + set_Value (COLUMNNAME_ColumnType, ColumnType); + } + + /** Get Column Type. +@return Column Type */ + public String getColumnType () + { + return (String)get_Value(COLUMNNAME_ColumnType); + } /** CurrencyType AD_Reference_ID=238 */ -public static final int CURRENCYTYPE_AD_Reference_ID=238; -/** Accounting Currency = A */ -public static final String CURRENCYTYPE_AccountingCurrency = "A"; -/** Source Currency = S */ +public static final int CURRENCYTYPE_AD_Reference_ID=238;/** Accounting Currency = A */ +public static final String CURRENCYTYPE_AccountingCurrency = "A";/** Source Currency = S */ public static final String CURRENCYTYPE_SourceCurrency = "S"; -/** Set Currency Type. -@param CurrencyType Currency Type */ -public void setCurrencyType (String CurrencyType) -{ -if (CurrencyType == null || CurrencyType.equals("A") || CurrencyType.equals("S")); - else throw new IllegalArgumentException ("CurrencyType Invalid value - " + CurrencyType + " - Reference_ID=238 - A - S"); -if (CurrencyType != null && CurrencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CurrencyType = CurrencyType.substring(0,0); -} -set_Value ("CurrencyType", CurrencyType); -} -/** Get Currency Type. -@return Currency Type */ -public String getCurrencyType() -{ -return (String)get_Value("CurrencyType"); -} -/** Column name CurrencyType */ -public static final String COLUMNNAME_CurrencyType = "CurrencyType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Currency Type. + @param CurrencyType Currency Type */ + public void setCurrencyType (String CurrencyType) + { +if (CurrencyType == null || CurrencyType.equals("A") || CurrencyType.equals("S")); else throw new IllegalArgumentException ("CurrencyType Invalid value - " + CurrencyType + " - Reference_ID=238 - A - S"); if (CurrencyType != null && CurrencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CurrencyType = CurrencyType.substring(0, 0); + } + set_Value (COLUMNNAME_CurrencyType, CurrencyType); + } + + /** Get Currency Type. +@return Currency Type */ + public String getCurrencyType () + { + return (String)get_Value(COLUMNNAME_CurrencyType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** ElementType AD_Reference_ID=181 */ -public static final int ELEMENTTYPE_AD_Reference_ID=181; -/** Account = AC */ -public static final String ELEMENTTYPE_Account = "AC"; -/** Activity = AY */ -public static final String ELEMENTTYPE_Activity = "AY"; -/** BPartner = BP */ -public static final String ELEMENTTYPE_BPartner = "BP"; -/** Location From = LF */ -public static final String ELEMENTTYPE_LocationFrom = "LF"; -/** Location To = LT */ -public static final String ELEMENTTYPE_LocationTo = "LT"; -/** Campaign = MC */ -public static final String ELEMENTTYPE_Campaign = "MC"; -/** Organization = OO */ -public static final String ELEMENTTYPE_Organization = "OO"; -/** Org Trx = OT */ -public static final String ELEMENTTYPE_OrgTrx = "OT"; -/** Project = PJ */ -public static final String ELEMENTTYPE_Project = "PJ"; -/** Product = PR */ -public static final String ELEMENTTYPE_Product = "PR"; -/** Sub Account = SA */ -public static final String ELEMENTTYPE_SubAccount = "SA"; -/** Sales Region = SR */ -public static final String ELEMENTTYPE_SalesRegion = "SR"; -/** User List 1 = U1 */ -public static final String ELEMENTTYPE_UserList1 = "U1"; -/** User List 2 = U2 */ -public static final String ELEMENTTYPE_UserList2 = "U2"; -/** User Element 1 = X1 */ -public static final String ELEMENTTYPE_UserElement1 = "X1"; -/** User Element 2 = X2 */ +public static final int ELEMENTTYPE_AD_Reference_ID=181;/** Account = AC */ +public static final String ELEMENTTYPE_Account = "AC";/** Activity = AY */ +public static final String ELEMENTTYPE_Activity = "AY";/** BPartner = BP */ +public static final String ELEMENTTYPE_BPartner = "BP";/** Location From = LF */ +public static final String ELEMENTTYPE_LocationFrom = "LF";/** Location To = LT */ +public static final String ELEMENTTYPE_LocationTo = "LT";/** Campaign = MC */ +public static final String ELEMENTTYPE_Campaign = "MC";/** Organization = OO */ +public static final String ELEMENTTYPE_Organization = "OO";/** Org Trx = OT */ +public static final String ELEMENTTYPE_OrgTrx = "OT";/** Project = PJ */ +public static final String ELEMENTTYPE_Project = "PJ";/** Product = PR */ +public static final String ELEMENTTYPE_Product = "PR";/** Sub Account = SA */ +public static final String ELEMENTTYPE_SubAccount = "SA";/** Sales Region = SR */ +public static final String ELEMENTTYPE_SalesRegion = "SR";/** User List 1 = U1 */ +public static final String ELEMENTTYPE_UserList1 = "U1";/** User List 2 = U2 */ +public static final String ELEMENTTYPE_UserList2 = "U2";/** User Element 1 = X1 */ +public static final String ELEMENTTYPE_UserElement1 = "X1";/** User Element 2 = X2 */ public static final String ELEMENTTYPE_UserElement2 = "X2"; -/** Set Type. -@param ElementType Element Type (account or user defined) */ -public void setElementType (String ElementType) -{ -if (ElementType == null || ElementType.equals("AC") || ElementType.equals("AY") || ElementType.equals("BP") || ElementType.equals("LF") || ElementType.equals("LT") || ElementType.equals("MC") || ElementType.equals("OO") || ElementType.equals("OT") || ElementType.equals("PJ") || ElementType.equals("PR") || ElementType.equals("SA") || ElementType.equals("SR") || ElementType.equals("U1") || ElementType.equals("U2") || ElementType.equals("X1") || ElementType.equals("X2")); - else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=181 - AC - AY - BP - LF - LT - MC - OO - OT - PJ - PR - SA - SR - U1 - U2 - X1 - X2"); -if (ElementType != null && ElementType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -ElementType = ElementType.substring(0,1); -} -set_Value ("ElementType", ElementType); -} -/** Get Type. -@return Element Type (account or user defined) */ -public String getElementType() -{ -return (String)get_Value("ElementType"); -} -/** Column name ElementType */ -public static final String COLUMNNAME_ElementType = "ElementType"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID <= 0) set_Value ("GL_Budget_ID", null); - else -set_Value ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set Adhoc Conversion. -@param IsAdhocConversion Perform conversion for all amounts to currency */ -public void setIsAdhocConversion (boolean IsAdhocConversion) -{ -set_Value ("IsAdhocConversion", Boolean.valueOf(IsAdhocConversion)); -} -/** Get Adhoc Conversion. -@return Perform conversion for all amounts to currency */ -public boolean isAdhocConversion() -{ -Object oo = get_Value("IsAdhocConversion"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAdhocConversion */ -public static final String COLUMNNAME_IsAdhocConversion = "IsAdhocConversion"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Type. + @param ElementType + Element Type (account or user defined) + */ + public void setElementType (String ElementType) + { +if (ElementType == null || ElementType.equals("AC") || ElementType.equals("AY") || ElementType.equals("BP") || ElementType.equals("LF") || ElementType.equals("LT") || ElementType.equals("MC") || ElementType.equals("OO") || ElementType.equals("OT") || ElementType.equals("PJ") || ElementType.equals("PR") || ElementType.equals("SA") || ElementType.equals("SR") || ElementType.equals("U1") || ElementType.equals("U2") || ElementType.equals("X1") || ElementType.equals("X2")); else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=181 - AC - AY - BP - LF - LT - MC - OO - OT - PJ - PR - SA - SR - U1 - U2 - X1 - X2"); if (ElementType != null && ElementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + ElementType = ElementType.substring(0, 1); + } + set_Value (COLUMNNAME_ElementType, ElementType); + } + + /** Get Type. + @return Element Type (account or user defined) + */ + public String getElementType () + { + return (String)get_Value(COLUMNNAME_ElementType); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID <= 0) set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Adhoc Conversion. + @param IsAdhocConversion + Perform conversion for all amounts to currency + */ + public void setIsAdhocConversion (boolean IsAdhocConversion) + { + set_Value (COLUMNNAME_IsAdhocConversion, Boolean.valueOf(IsAdhocConversion)); + } + + /** Get Adhoc Conversion. + @return Perform conversion for all amounts to currency + */ + public boolean isAdhocConversion () + { + Object oo = get_Value(COLUMNNAME_IsAdhocConversion); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_Product getI_M_Product() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Oper_1_ID AD_Reference_ID=239 */ public static final int OPER_1_ID_AD_Reference_ID=239; -/** Set Operand 1. -@param Oper_1_ID First operand for calculation */ -public void setOper_1_ID (int Oper_1_ID) -{ -if (Oper_1_ID <= 0) set_Value ("Oper_1_ID", null); - else -set_Value ("Oper_1_ID", Integer.valueOf(Oper_1_ID)); -} -/** Get Operand 1. -@return First operand for calculation */ -public int getOper_1_ID() -{ -Integer ii = (Integer)get_Value("Oper_1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Oper_1_ID */ -public static final String COLUMNNAME_Oper_1_ID = "Oper_1_ID"; + /** Set Operand 1. + @param Oper_1_ID + First operand for calculation + */ + public void setOper_1_ID (int Oper_1_ID) + { + if (Oper_1_ID <= 0) set_Value (COLUMNNAME_Oper_1_ID, null); + else + set_Value (COLUMNNAME_Oper_1_ID, Integer.valueOf(Oper_1_ID)); + } + + /** Get Operand 1. + @return First operand for calculation + */ + public int getOper_1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Oper_1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Oper_2_ID AD_Reference_ID=239 */ public static final int OPER_2_ID_AD_Reference_ID=239; -/** Set Operand 2. -@param Oper_2_ID Second operand for calculation */ -public void setOper_2_ID (int Oper_2_ID) -{ -if (Oper_2_ID <= 0) set_Value ("Oper_2_ID", null); - else -set_Value ("Oper_2_ID", Integer.valueOf(Oper_2_ID)); -} -/** Get Operand 2. -@return Second operand for calculation */ -public int getOper_2_ID() -{ -Integer ii = (Integer)get_Value("Oper_2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Oper_2_ID */ -public static final String COLUMNNAME_Oper_2_ID = "Oper_2_ID"; + /** Set Operand 2. + @param Oper_2_ID + Second operand for calculation + */ + public void setOper_2_ID (int Oper_2_ID) + { + if (Oper_2_ID <= 0) set_Value (COLUMNNAME_Oper_2_ID, null); + else + set_Value (COLUMNNAME_Oper_2_ID, Integer.valueOf(Oper_2_ID)); + } + + /** Get Operand 2. + @return Second operand for calculation + */ + public int getOper_2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Oper_2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Org_ID AD_Reference_ID=130 */ public static final int ORG_ID_AD_Reference_ID=130; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID <= 0) set_Value ("Org_ID", null); - else -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Report Column Set. -@param PA_ReportColumnSet_ID Collection of Columns for Report */ -public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) -{ -if (PA_ReportColumnSet_ID < 1) throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); -set_ValueNoCheck ("PA_ReportColumnSet_ID", Integer.valueOf(PA_ReportColumnSet_ID)); -} -/** Get Report Column Set. -@return Collection of Columns for Report */ -public int getPA_ReportColumnSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportColumnSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportColumnSet_ID */ -public static final String COLUMNNAME_PA_ReportColumnSet_ID = "PA_ReportColumnSet_ID"; -/** Set Report Column. -@param PA_ReportColumn_ID Column in Report */ -public void setPA_ReportColumn_ID (int PA_ReportColumn_ID) -{ -if (PA_ReportColumn_ID < 1) throw new IllegalArgumentException ("PA_ReportColumn_ID is mandatory."); -set_ValueNoCheck ("PA_ReportColumn_ID", Integer.valueOf(PA_ReportColumn_ID)); -} -/** Get Report Column. -@return Column in Report */ -public int getPA_ReportColumn_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportColumn_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportColumn_ID */ -public static final String COLUMNNAME_PA_ReportColumn_ID = "PA_ReportColumn_ID"; + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID <= 0) set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_ReportColumnSet getI_PA_ReportColumnSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Column Set. + @param PA_ReportColumnSet_ID + Collection of Columns for Report + */ + public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) + { + if (PA_ReportColumnSet_ID < 1) + throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); + } + + /** Get Report Column Set. + @return Collection of Columns for Report + */ + public int getPA_ReportColumnSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportColumnSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report Column. + @param PA_ReportColumn_ID + Column in Report + */ + public void setPA_ReportColumn_ID (int PA_ReportColumn_ID) + { + if (PA_ReportColumn_ID < 1) + throw new IllegalArgumentException ("PA_ReportColumn_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportColumn_ID, Integer.valueOf(PA_ReportColumn_ID)); + } + + /** Get Report Column. + @return Column in Report + */ + public int getPA_ReportColumn_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportColumn_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); -if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Relative Period. -@param RelativePeriod Period offset (0 is current) */ -public void setRelativePeriod (BigDecimal RelativePeriod) -{ -set_Value ("RelativePeriod", RelativePeriod); -} -/** Get Relative Period. -@return Period offset (0 is current) */ -public BigDecimal getRelativePeriod() -{ -BigDecimal bd = (BigDecimal)get_Value("RelativePeriod"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RelativePeriod */ -public static final String COLUMNNAME_RelativePeriod = "RelativePeriod"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory");if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Relative Period. + @param RelativePeriod + Period offset (0 is current) + */ + public void setRelativePeriod (BigDecimal RelativePeriod) + { + set_Value (COLUMNNAME_RelativePeriod, RelativePeriod); + } + + /** Get Relative Period. + @return Period offset (0 is current) + */ + public BigDecimal getRelativePeriod () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RelativePeriod); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_ReportColumnSet.java b/base/src/org/compiere/model/X_PA_ReportColumnSet.java index 9172e0ed94..5fd6a1a53a 100644 --- a/base/src/org/compiere/model/X_PA_ReportColumnSet.java +++ b/base/src/org/compiere/model/X_PA_ReportColumnSet.java @@ -1,172 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_ReportColumnSet - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_ReportColumnSet extends PO + +/** Generated Model for PA_ReportColumnSet + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_ReportColumnSet extends PO implements I_PA_ReportColumnSet, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_ReportColumnSet_ID id -@param trxName transaction -*/ -public X_PA_ReportColumnSet (Properties ctx, int PA_ReportColumnSet_ID, String trxName) -{ -super (ctx, PA_ReportColumnSet_ID, trxName); -/** if (PA_ReportColumnSet_ID == 0) -{ -setName (null); -setPA_ReportColumnSet_ID (0); -setProcessing (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_ReportColumnSet (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_ReportColumnSet */ -public static final String Table_Name="PA_ReportColumnSet"; - -/** AD_Table_ID=447 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_ReportColumnSet[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Report Column Set. -@param PA_ReportColumnSet_ID Collection of Columns for Report */ -public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) -{ -if (PA_ReportColumnSet_ID < 1) throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); -set_ValueNoCheck ("PA_ReportColumnSet_ID", Integer.valueOf(PA_ReportColumnSet_ID)); -} -/** Get Report Column Set. -@return Collection of Columns for Report */ -public int getPA_ReportColumnSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportColumnSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportColumnSet_ID */ -public static final String COLUMNNAME_PA_ReportColumnSet_ID = "PA_ReportColumnSet_ID"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_ReportColumnSet (Properties ctx, int PA_ReportColumnSet_ID, String trxName) + { + super (ctx, PA_ReportColumnSet_ID, trxName); + /** if (PA_ReportColumnSet_ID == 0) { setName (null); + setPA_ReportColumnSet_ID (0); + setProcessing (false); +} */ + } + + /** Load Constructor */ + public X_PA_ReportColumnSet (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_ReportColumnSet[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Report Column Set. + @param PA_ReportColumnSet_ID + Collection of Columns for Report + */ + public void setPA_ReportColumnSet_ID (int PA_ReportColumnSet_ID) + { + if (PA_ReportColumnSet_ID < 1) + throw new IllegalArgumentException ("PA_ReportColumnSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportColumnSet_ID, Integer.valueOf(PA_ReportColumnSet_ID)); + } + + /** Get Report Column Set. + @return Collection of Columns for Report + */ + public int getPA_ReportColumnSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportColumnSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_ReportLine.java b/base/src/org/compiere/model/X_PA_ReportLine.java index 85dff51f66..354efc39a8 100644 --- a/base/src/org/compiere/model/X_PA_ReportLine.java +++ b/base/src/org/compiere/model/X_PA_ReportLine.java @@ -1,413 +1,480 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_ReportLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_ReportLine extends PO + +/** Generated Model for PA_ReportLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_ReportLine extends PO implements I_PA_ReportLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_ReportLine_ID id -@param trxName transaction -*/ -public X_PA_ReportLine (Properties ctx, int PA_ReportLine_ID, String trxName) -{ -super (ctx, PA_ReportLine_ID, trxName); -/** if (PA_ReportLine_ID == 0) -{ -setIsPrinted (true); // Y -setLineType (null); -setName (null); -setPA_ReportLineSet_ID (0); -setPA_ReportLine_ID (0); -setSeqNo (0); // @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM PA_ReportLine WHERE PA_ReportLineSet_ID=@PA_ReportLineSet_ID@ -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_ReportLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_ReportLine */ -public static final String Table_Name="PA_ReportLine"; - -/** AD_Table_ID=448 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_ReportLine[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_ReportLine (Properties ctx, int PA_ReportLine_ID, String trxName) + { + super (ctx, PA_ReportLine_ID, trxName); + /** if (PA_ReportLine_ID == 0) { setIsPrinted (true); +// Y + setIsSummary (false); + setLineType (null); + setName (null); + setPA_ReportLineSet_ID (0); + setPA_ReportLine_ID (0); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM PA_ReportLine WHERE PA_ReportLineSet_ID=@PA_ReportLineSet_ID@ +} */ + } + + /** Load Constructor */ + public X_PA_ReportLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_ReportLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AmountType AD_Reference_ID=235 */ -public static final int AMOUNTTYPE_AD_Reference_ID=235; -/** Period Balance = BP */ -public static final String AMOUNTTYPE_PeriodBalance = "BP"; -/** Total Balance = BT */ -public static final String AMOUNTTYPE_TotalBalance = "BT"; -/** Year Balance = BY */ -public static final String AMOUNTTYPE_YearBalance = "BY"; -/** Period Credit Only = CP */ -public static final String AMOUNTTYPE_PeriodCreditOnly = "CP"; -/** Total Credit Only = CT */ -public static final String AMOUNTTYPE_TotalCreditOnly = "CT"; -/** Year Credit Only = CY */ -public static final String AMOUNTTYPE_YearCreditOnly = "CY"; -/** Period Debit Only = DP */ -public static final String AMOUNTTYPE_PeriodDebitOnly = "DP"; -/** Total Debit Only = DT */ -public static final String AMOUNTTYPE_TotalDebitOnly = "DT"; -/** Year Debit Only = DY */ -public static final String AMOUNTTYPE_YearDebitOnly = "DY"; -/** Period Quantity = QP */ -public static final String AMOUNTTYPE_PeriodQuantity = "QP"; -/** Total Quantity = QT */ -public static final String AMOUNTTYPE_TotalQuantity = "QT"; -/** Year Quantity = QY */ +public static final int AMOUNTTYPE_AD_Reference_ID=235;/** Period Balance = BP */ +public static final String AMOUNTTYPE_PeriodBalance = "BP";/** Total Balance = BT */ +public static final String AMOUNTTYPE_TotalBalance = "BT";/** Year Balance = BY */ +public static final String AMOUNTTYPE_YearBalance = "BY";/** Period Credit Only = CP */ +public static final String AMOUNTTYPE_PeriodCreditOnly = "CP";/** Total Credit Only = CT */ +public static final String AMOUNTTYPE_TotalCreditOnly = "CT";/** Year Credit Only = CY */ +public static final String AMOUNTTYPE_YearCreditOnly = "CY";/** Period Debit Only = DP */ +public static final String AMOUNTTYPE_PeriodDebitOnly = "DP";/** Total Debit Only = DT */ +public static final String AMOUNTTYPE_TotalDebitOnly = "DT";/** Year Debit Only = DY */ +public static final String AMOUNTTYPE_YearDebitOnly = "DY";/** Period Quantity = QP */ +public static final String AMOUNTTYPE_PeriodQuantity = "QP";/** Total Quantity = QT */ +public static final String AMOUNTTYPE_TotalQuantity = "QT";/** Year Quantity = QY */ public static final String AMOUNTTYPE_YearQuantity = "QY"; -/** Set Amount Type. -@param AmountType Type of amount to report */ -public void setAmountType (String AmountType) -{ -if (AmountType == null || AmountType.equals("BP") || AmountType.equals("BT") || AmountType.equals("BY") || AmountType.equals("CP") || AmountType.equals("CT") || AmountType.equals("CY") || AmountType.equals("DP") || AmountType.equals("DT") || AmountType.equals("DY") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("QY")); - else throw new IllegalArgumentException ("AmountType Invalid value - " + AmountType + " - Reference_ID=235 - BP - BT - BY - CP - CT - CY - DP - DT - DY - QP - QT - QY"); -if (AmountType != null && AmountType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -AmountType = AmountType.substring(0,1); -} -set_Value ("AmountType", AmountType); -} -/** Get Amount Type. -@return Type of amount to report */ -public String getAmountType() -{ -return (String)get_Value("AmountType"); -} -/** Column name AmountType */ -public static final String COLUMNNAME_AmountType = "AmountType"; + /** Set Amount Type. + @param AmountType + Type of amount to report + */ + public void setAmountType (String AmountType) + { +if (AmountType == null || AmountType.equals("BP") || AmountType.equals("BT") || AmountType.equals("BY") || AmountType.equals("CP") || AmountType.equals("CT") || AmountType.equals("CY") || AmountType.equals("DP") || AmountType.equals("DT") || AmountType.equals("DY") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("QY")); else throw new IllegalArgumentException ("AmountType Invalid value - " + AmountType + " - Reference_ID=235 - BP - BT - BY - CP - CT - CY - DP - DT - DY - QP - QT - QY"); if (AmountType != null && AmountType.length() > 2) + { + log.warning("Length > 2 - truncated"); + AmountType = AmountType.substring(0, 1); + } + set_Value (COLUMNNAME_AmountType, AmountType); + } + + /** Get Amount Type. + @return Type of amount to report + */ + public String getAmountType () + { + return (String)get_Value(COLUMNNAME_AmountType); + } /** CalculationType AD_Reference_ID=236 */ -public static final int CALCULATIONTYPE_AD_Reference_ID=236; -/** Add (Op1+Op2) = A */ -public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A"; -/** Percentage (Op1 of Op2) = P */ -public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P"; -/** Add Range (Op1 to Op2) = R */ -public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R"; -/** Subtract (Op1-Op2) = S */ +public static final int CALCULATIONTYPE_AD_Reference_ID=236;/** Add (Op1+Op2) = A */ +public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A";/** Percentage (Op1 of Op2) = P */ +public static final String CALCULATIONTYPE_PercentageOp1OfOp2 = "P";/** Add Range (Op1 to Op2) = R */ +public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R";/** Subtract (Op1-Op2) = S */ public static final String CALCULATIONTYPE_SubtractOp1_Op2 = "S"; -/** Set Calculation. -@param CalculationType Calculation */ -public void setCalculationType (String CalculationType) -{ -if (CalculationType == null || CalculationType.equals("A") || CalculationType.equals("P") || CalculationType.equals("R") || CalculationType.equals("S")); - else throw new IllegalArgumentException ("CalculationType Invalid value - " + CalculationType + " - Reference_ID=236 - A - P - R - S"); -if (CalculationType != null && CalculationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -CalculationType = CalculationType.substring(0,0); -} -set_Value ("CalculationType", CalculationType); -} -/** Get Calculation. -@return Calculation */ -public String getCalculationType() -{ -return (String)get_Value("CalculationType"); -} -/** Column name CalculationType */ -public static final String COLUMNNAME_CalculationType = "CalculationType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Budget. -@param GL_Budget_ID General Ledger Budget */ -public void setGL_Budget_ID (int GL_Budget_ID) -{ -if (GL_Budget_ID <= 0) set_Value ("GL_Budget_ID", null); - else -set_Value ("GL_Budget_ID", Integer.valueOf(GL_Budget_ID)); -} -/** Get Budget. -@return General Ledger Budget */ -public int getGL_Budget_ID() -{ -Integer ii = (Integer)get_Value("GL_Budget_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name GL_Budget_ID */ -public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; -/** Set Printed. -@param IsPrinted Indicates if this document / line is printed */ -public void setIsPrinted (boolean IsPrinted) -{ -set_Value ("IsPrinted", Boolean.valueOf(IsPrinted)); -} -/** Get Printed. -@return Indicates if this document / line is printed */ -public boolean isPrinted() -{ -Object oo = get_Value("IsPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsPrinted */ -public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + /** Set Calculation. + @param CalculationType Calculation */ + public void setCalculationType (String CalculationType) + { +if (CalculationType == null || CalculationType.equals("A") || CalculationType.equals("P") || CalculationType.equals("R") || CalculationType.equals("S")); else throw new IllegalArgumentException ("CalculationType Invalid value - " + CalculationType + " - Reference_ID=236 - A - P - R - S"); if (CalculationType != null && CalculationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CalculationType = CalculationType.substring(0, 0); + } + set_Value (COLUMNNAME_CalculationType, CalculationType); + } + + /** Get Calculation. +@return Calculation */ + public String getCalculationType () + { + return (String)get_Value(COLUMNNAME_CalculationType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + public I_GL_Budget getI_GL_Budget() throws Exception + { + 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 e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID <= 0) set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** LineType AD_Reference_ID=241 */ -public static final int LINETYPE_AD_Reference_ID=241; -/** Calculation = C */ -public static final String LINETYPE_Calculation = "C"; -/** Segment Value = S */ +public static final int LINETYPE_AD_Reference_ID=241;/** Calculation = C */ +public static final String LINETYPE_Calculation = "C";/** Segment Value = S */ public static final String LINETYPE_SegmentValue = "S"; -/** Set Line Type. -@param LineType Line Type */ -public void setLineType (String LineType) -{ -if (LineType == null) throw new IllegalArgumentException ("LineType is mandatory"); -if (LineType.equals("C") || LineType.equals("S")); - else throw new IllegalArgumentException ("LineType Invalid value - " + LineType + " - Reference_ID=241 - C - S"); -if (LineType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -LineType = LineType.substring(0,0); -} -set_Value ("LineType", LineType); -} -/** Get Line Type. -@return Line Type */ -public String getLineType() -{ -return (String)get_Value("LineType"); -} -/** Column name LineType */ -public static final String COLUMNNAME_LineType = "LineType"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + /** Set Line Type. + @param LineType Line Type */ + public void setLineType (String LineType) + { +if (LineType == null) throw new IllegalArgumentException ("LineType is mandatory");if (LineType.equals("C") || LineType.equals("S")); else throw new IllegalArgumentException ("LineType Invalid value - " + LineType + " - Reference_ID=241 - C - S"); if (LineType.length() > 1) + { + log.warning("Length > 1 - truncated"); + LineType = LineType.substring(0, 0); + } + set_Value (COLUMNNAME_LineType, LineType); + } + + /** Get Line Type. +@return Line Type */ + public String getLineType () + { + return (String)get_Value(COLUMNNAME_LineType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** Oper_1_ID AD_Reference_ID=240 */ public static final int OPER_1_ID_AD_Reference_ID=240; -/** Set Operand 1. -@param Oper_1_ID First operand for calculation */ -public void setOper_1_ID (int Oper_1_ID) -{ -if (Oper_1_ID <= 0) set_Value ("Oper_1_ID", null); - else -set_Value ("Oper_1_ID", Integer.valueOf(Oper_1_ID)); -} -/** Get Operand 1. -@return First operand for calculation */ -public int getOper_1_ID() -{ -Integer ii = (Integer)get_Value("Oper_1_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Oper_1_ID */ -public static final String COLUMNNAME_Oper_1_ID = "Oper_1_ID"; + /** Set Operand 1. + @param Oper_1_ID + First operand for calculation + */ + public void setOper_1_ID (int Oper_1_ID) + { + if (Oper_1_ID <= 0) set_Value (COLUMNNAME_Oper_1_ID, null); + else + set_Value (COLUMNNAME_Oper_1_ID, Integer.valueOf(Oper_1_ID)); + } + + /** Get Operand 1. + @return First operand for calculation + */ + public int getOper_1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Oper_1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Oper_2_ID AD_Reference_ID=240 */ public static final int OPER_2_ID_AD_Reference_ID=240; -/** Set Operand 2. -@param Oper_2_ID Second operand for calculation */ -public void setOper_2_ID (int Oper_2_ID) -{ -if (Oper_2_ID <= 0) set_Value ("Oper_2_ID", null); - else -set_Value ("Oper_2_ID", Integer.valueOf(Oper_2_ID)); -} -/** Get Operand 2. -@return Second operand for calculation */ -public int getOper_2_ID() -{ -Integer ii = (Integer)get_Value("Oper_2_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Oper_2_ID */ -public static final String COLUMNNAME_Oper_2_ID = "Oper_2_ID"; -/** Set Report Line Set. -@param PA_ReportLineSet_ID Report Line Set */ -public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) -{ -if (PA_ReportLineSet_ID < 1) throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); -set_ValueNoCheck ("PA_ReportLineSet_ID", Integer.valueOf(PA_ReportLineSet_ID)); -} -/** Get Report Line Set. -@return Report Line Set */ -public int getPA_ReportLineSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLineSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLineSet_ID */ -public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; -/** Set Report Line. -@param PA_ReportLine_ID Report Line */ -public void setPA_ReportLine_ID (int PA_ReportLine_ID) -{ -if (PA_ReportLine_ID < 1) throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); -set_ValueNoCheck ("PA_ReportLine_ID", Integer.valueOf(PA_ReportLine_ID)); -} -/** Get Report Line. -@return Report Line */ -public int getPA_ReportLine_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLine_ID */ -public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; + /** Set Operand 2. + @param Oper_2_ID + Second operand for calculation + */ + public void setOper_2_ID (int Oper_2_ID) + { + if (Oper_2_ID <= 0) set_Value (COLUMNNAME_Oper_2_ID, null); + else + set_Value (COLUMNNAME_Oper_2_ID, Integer.valueOf(Oper_2_ID)); + } + + /** Get Operand 2. + @return Second operand for calculation + */ + public int getOper_2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Oper_2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_ReportLineSet getI_PA_ReportLineSet() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Line Set. + @param PA_ReportLineSet_ID Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) + { + if (PA_ReportLineSet_ID < 1) + throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + } + + /** Get Report Line Set. +@return Report Line Set */ + public int getPA_ReportLineSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLineSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report Line. + @param PA_ReportLine_ID Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID) + { + if (PA_ReportLine_ID < 1) + throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + } + + /** Get Report Line. +@return Report Line */ + public int getPA_ReportLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + +/** Parent_ID AD_Reference_ID=242 */ +public static final int PARENT_ID_AD_Reference_ID=242; + /** Set Parent. + @param Parent_ID + Parent of Entity + */ + public void setParent_ID (int Parent_ID) + { + if (Parent_ID <= 0) set_Value (COLUMNNAME_Parent_ID, null); + else + set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); + } + + /** Get Parent. + @return Parent of Entity + */ + public int getParent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PostingType AD_Reference_ID=125 */ -public static final int POSTINGTYPE_AD_Reference_ID=125; -/** Actual = A */ -public static final String POSTINGTYPE_Actual = "A"; -/** Budget = B */ -public static final String POSTINGTYPE_Budget = "B"; -/** Commitment = E */ -public static final String POSTINGTYPE_Commitment = "E"; -/** Reservation = R */ -public static final String POSTINGTYPE_Reservation = "R"; -/** Statistical = S */ +public static final int POSTINGTYPE_AD_Reference_ID=125;/** Actual = A */ +public static final String POSTINGTYPE_Actual = "A";/** Budget = B */ +public static final String POSTINGTYPE_Budget = "B";/** Commitment = E */ +public static final String POSTINGTYPE_Commitment = "E";/** Reservation = R */ +public static final String POSTINGTYPE_Reservation = "R";/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; -/** Set PostingType. -@param PostingType The type of posted amount for the transaction */ -public void setPostingType (String PostingType) -{ -if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); - else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); -if (PostingType != null && PostingType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PostingType = PostingType.substring(0,0); -} -set_Value ("PostingType", PostingType); -} -/** Get PostingType. -@return The type of posted amount for the transaction */ -public String getPostingType() -{ -return (String)get_Value("PostingType"); -} -/** Column name PostingType */ -public static final String COLUMNNAME_PostingType = "PostingType"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { +if (PostingType == null || PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("R") || PostingType.equals("S")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - R - S"); if (PostingType != null && PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 0); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_ReportLineSet.java b/base/src/org/compiere/model/X_PA_ReportLineSet.java index 34a82e18a8..32a140ace6 100644 --- a/base/src/org/compiere/model/X_PA_ReportLineSet.java +++ b/base/src/org/compiere/model/X_PA_ReportLineSet.java @@ -1,172 +1,169 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_ReportLineSet - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_ReportLineSet extends PO + +/** Generated Model for PA_ReportLineSet + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_ReportLineSet extends PO implements I_PA_ReportLineSet, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_ReportLineSet_ID id -@param trxName transaction -*/ -public X_PA_ReportLineSet (Properties ctx, int PA_ReportLineSet_ID, String trxName) -{ -super (ctx, PA_ReportLineSet_ID, trxName); -/** if (PA_ReportLineSet_ID == 0) -{ -setName (null); -setPA_ReportLineSet_ID (0); -setProcessing (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_ReportLineSet (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_ReportLineSet */ -public static final String Table_Name="PA_ReportLineSet"; - -/** AD_Table_ID=449 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_ReportLineSet[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Report Line Set. -@param PA_ReportLineSet_ID Report Line Set */ -public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) -{ -if (PA_ReportLineSet_ID < 1) throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); -set_ValueNoCheck ("PA_ReportLineSet_ID", Integer.valueOf(PA_ReportLineSet_ID)); -} -/** Get Report Line Set. -@return Report Line Set */ -public int getPA_ReportLineSet_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLineSet_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLineSet_ID */ -public static final String COLUMNNAME_PA_ReportLineSet_ID = "PA_ReportLineSet_ID"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_ReportLineSet (Properties ctx, int PA_ReportLineSet_ID, String trxName) + { + super (ctx, PA_ReportLineSet_ID, trxName); + /** if (PA_ReportLineSet_ID == 0) { setName (null); + setPA_ReportLineSet_ID (0); + setProcessing (false); +} */ + } + + /** Load Constructor */ + public X_PA_ReportLineSet (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_ReportLineSet[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Report Line Set. + @param PA_ReportLineSet_ID Report Line Set */ + public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) + { + if (PA_ReportLineSet_ID < 1) + throw new IllegalArgumentException ("PA_ReportLineSet_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportLineSet_ID, Integer.valueOf(PA_ReportLineSet_ID)); + } + + /** Get Report Line Set. +@return Report Line Set */ + public int getPA_ReportLineSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLineSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_ReportSource.java b/base/src/org/compiere/model/X_PA_ReportSource.java index d0aaf05ccb..0b6ae517b6 100644 --- a/base/src/org/compiere/model/X_PA_ReportSource.java +++ b/base/src/org/compiere/model/X_PA_ReportSource.java @@ -1,374 +1,500 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_ReportSource - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_ReportSource extends PO + +/** Generated Model for PA_ReportSource + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_ReportSource extends PO implements I_PA_ReportSource, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_ReportSource_ID id -@param trxName transaction -*/ -public X_PA_ReportSource (Properties ctx, int PA_ReportSource_ID, String trxName) -{ -super (ctx, PA_ReportSource_ID, trxName); -/** if (PA_ReportSource_ID == 0) -{ -setElementType (null); -setPA_ReportLine_ID (0); -setPA_ReportSource_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_ReportSource (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_ReportSource */ -public static final String Table_Name="PA_ReportSource"; - -/** AD_Table_ID=450 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_ReportSource[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_ReportSource (Properties ctx, int PA_ReportSource_ID, String trxName) + { + super (ctx, PA_ReportSource_ID, trxName); + /** if (PA_ReportSource_ID == 0) { setElementType (null); + setPA_ReportLine_ID (0); + setPA_ReportSource_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_ReportSource (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_ReportSource[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getI_C_BPartner() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_ElementValue_ID AD_Reference_ID=182 */ public static final int C_ELEMENTVALUE_ID_AD_Reference_ID=182; -/** Set Account Element. -@param C_ElementValue_ID Account Element */ -public void setC_ElementValue_ID (int C_ElementValue_ID) -{ -if (C_ElementValue_ID <= 0) set_Value ("C_ElementValue_ID", null); - else -set_Value ("C_ElementValue_ID", Integer.valueOf(C_ElementValue_ID)); -} -/** Get Account Element. -@return Account Element */ -public int getC_ElementValue_ID() -{ -Integer ii = (Integer)get_Value("C_ElementValue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ElementValue_ID */ -public static final String COLUMNNAME_C_ElementValue_ID = "C_ElementValue_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Sales Region. -@param C_SalesRegion_ID Sales coverage region */ -public void setC_SalesRegion_ID (int C_SalesRegion_ID) -{ -if (C_SalesRegion_ID <= 0) set_Value ("C_SalesRegion_ID", null); - else -set_Value ("C_SalesRegion_ID", Integer.valueOf(C_SalesRegion_ID)); -} -/** Get Sales Region. -@return Sales coverage region */ -public int getC_SalesRegion_ID() -{ -Integer ii = (Integer)get_Value("C_SalesRegion_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_SalesRegion_ID */ -public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Account Element. + @param C_ElementValue_ID + Account Element + */ + public void setC_ElementValue_ID (int C_ElementValue_ID) + { + if (C_ElementValue_ID <= 0) set_Value (COLUMNNAME_C_ElementValue_ID, null); + else + set_Value (COLUMNNAME_C_ElementValue_ID, Integer.valueOf(C_ElementValue_ID)); + } + + /** Get Account Element. + @return Account Element + */ + public int getC_ElementValue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ElementValue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_SalesRegion getI_C_SalesRegion() throws Exception + { + 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 e; + } + return result; + } + + /** Set Sales Region. + @param C_SalesRegion_ID + Sales coverage region + */ + public void setC_SalesRegion_ID (int C_SalesRegion_ID) + { + if (C_SalesRegion_ID <= 0) set_Value (COLUMNNAME_C_SalesRegion_ID, null); + else + set_Value (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); + } + + /** Get Sales Region. + @return Sales coverage region + */ + public int getC_SalesRegion_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** ElementType AD_Reference_ID=181 */ -public static final int ELEMENTTYPE_AD_Reference_ID=181; -/** Account = AC */ -public static final String ELEMENTTYPE_Account = "AC"; -/** Activity = AY */ -public static final String ELEMENTTYPE_Activity = "AY"; -/** BPartner = BP */ -public static final String ELEMENTTYPE_BPartner = "BP"; -/** Location From = LF */ -public static final String ELEMENTTYPE_LocationFrom = "LF"; -/** Location To = LT */ -public static final String ELEMENTTYPE_LocationTo = "LT"; -/** Campaign = MC */ -public static final String ELEMENTTYPE_Campaign = "MC"; -/** Organization = OO */ -public static final String ELEMENTTYPE_Organization = "OO"; -/** Org Trx = OT */ -public static final String ELEMENTTYPE_OrgTrx = "OT"; -/** Project = PJ */ -public static final String ELEMENTTYPE_Project = "PJ"; -/** Product = PR */ -public static final String ELEMENTTYPE_Product = "PR"; -/** Sub Account = SA */ -public static final String ELEMENTTYPE_SubAccount = "SA"; -/** Sales Region = SR */ -public static final String ELEMENTTYPE_SalesRegion = "SR"; -/** User List 1 = U1 */ -public static final String ELEMENTTYPE_UserList1 = "U1"; -/** User List 2 = U2 */ -public static final String ELEMENTTYPE_UserList2 = "U2"; -/** User Element 1 = X1 */ -public static final String ELEMENTTYPE_UserElement1 = "X1"; -/** User Element 2 = X2 */ +public static final int ELEMENTTYPE_AD_Reference_ID=181;/** Account = AC */ +public static final String ELEMENTTYPE_Account = "AC";/** Activity = AY */ +public static final String ELEMENTTYPE_Activity = "AY";/** BPartner = BP */ +public static final String ELEMENTTYPE_BPartner = "BP";/** Location From = LF */ +public static final String ELEMENTTYPE_LocationFrom = "LF";/** Location To = LT */ +public static final String ELEMENTTYPE_LocationTo = "LT";/** Campaign = MC */ +public static final String ELEMENTTYPE_Campaign = "MC";/** Organization = OO */ +public static final String ELEMENTTYPE_Organization = "OO";/** Org Trx = OT */ +public static final String ELEMENTTYPE_OrgTrx = "OT";/** Project = PJ */ +public static final String ELEMENTTYPE_Project = "PJ";/** Product = PR */ +public static final String ELEMENTTYPE_Product = "PR";/** Sub Account = SA */ +public static final String ELEMENTTYPE_SubAccount = "SA";/** Sales Region = SR */ +public static final String ELEMENTTYPE_SalesRegion = "SR";/** User List 1 = U1 */ +public static final String ELEMENTTYPE_UserList1 = "U1";/** User List 2 = U2 */ +public static final String ELEMENTTYPE_UserList2 = "U2";/** User Element 1 = X1 */ +public static final String ELEMENTTYPE_UserElement1 = "X1";/** User Element 2 = X2 */ public static final String ELEMENTTYPE_UserElement2 = "X2"; -/** Set Type. -@param ElementType Element Type (account or user defined) */ -public void setElementType (String ElementType) -{ -if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory"); -if (ElementType.equals("AC") || ElementType.equals("AY") || ElementType.equals("BP") || ElementType.equals("LF") || ElementType.equals("LT") || ElementType.equals("MC") || ElementType.equals("OO") || ElementType.equals("OT") || ElementType.equals("PJ") || ElementType.equals("PR") || ElementType.equals("SA") || ElementType.equals("SR") || ElementType.equals("U1") || ElementType.equals("U2") || ElementType.equals("X1") || ElementType.equals("X2")); - else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=181 - AC - AY - BP - LF - LT - MC - OO - OT - PJ - PR - SA - SR - U1 - U2 - X1 - X2"); -if (ElementType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -ElementType = ElementType.substring(0,1); -} -set_Value ("ElementType", ElementType); -} -/** Get Type. -@return Element Type (account or user defined) */ -public String getElementType() -{ -return (String)get_Value("ElementType"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getElementType())); -} -/** Column name ElementType */ -public static final String COLUMNNAME_ElementType = "ElementType"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + /** Set Type. + @param ElementType + Element Type (account or user defined) + */ + public void setElementType (String ElementType) + { +if (ElementType == null) throw new IllegalArgumentException ("ElementType is mandatory");if (ElementType.equals("AC") || ElementType.equals("AY") || ElementType.equals("BP") || ElementType.equals("LF") || ElementType.equals("LT") || ElementType.equals("MC") || ElementType.equals("OO") || ElementType.equals("OT") || ElementType.equals("PJ") || ElementType.equals("PR") || ElementType.equals("SA") || ElementType.equals("SR") || ElementType.equals("U1") || ElementType.equals("U2") || ElementType.equals("X1") || ElementType.equals("X2")); else throw new IllegalArgumentException ("ElementType Invalid value - " + ElementType + " - Reference_ID=181 - AC - AY - BP - LF - LT - MC - OO - OT - PJ - PR - SA - SR - U1 - U2 - X1 - X2"); if (ElementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + ElementType = ElementType.substring(0, 1); + } + set_Value (COLUMNNAME_ElementType, ElementType); + } + + /** Get Type. + @return Element Type (account or user defined) + */ + public String getElementType () + { + return (String)get_Value(COLUMNNAME_ElementType); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getElementType())); + } + + public I_M_Product getI_M_Product() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Org_ID AD_Reference_ID=322 */ public static final int ORG_ID_AD_Reference_ID=322; -/** Set Organization. -@param Org_ID Organizational entity within client */ -public void setOrg_ID (int Org_ID) -{ -if (Org_ID <= 0) set_Value ("Org_ID", null); - else -set_Value ("Org_ID", Integer.valueOf(Org_ID)); -} -/** Get Organization. -@return Organizational entity within client */ -public int getOrg_ID() -{ -Integer ii = (Integer)get_Value("Org_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Org_ID */ -public static final String COLUMNNAME_Org_ID = "Org_ID"; -/** Set Report Line. -@param PA_ReportLine_ID Report Line */ -public void setPA_ReportLine_ID (int PA_ReportLine_ID) -{ -if (PA_ReportLine_ID < 1) throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); -set_ValueNoCheck ("PA_ReportLine_ID", Integer.valueOf(PA_ReportLine_ID)); -} -/** Get Report Line. -@return Report Line */ -public int getPA_ReportLine_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLine_ID */ -public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; -/** Set Report Source. -@param PA_ReportSource_ID Restriction of what will be shown in Report Line */ -public void setPA_ReportSource_ID (int PA_ReportSource_ID) -{ -if (PA_ReportSource_ID < 1) throw new IllegalArgumentException ("PA_ReportSource_ID is mandatory."); -set_ValueNoCheck ("PA_ReportSource_ID", Integer.valueOf(PA_ReportSource_ID)); -} -/** Get Report Source. -@return Restriction of what will be shown in Report Line */ -public int getPA_ReportSource_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportSource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportSource_ID */ -public static final String COLUMNNAME_PA_ReportSource_ID = "PA_ReportSource_ID"; -} + /** Set Organization. + @param Org_ID + Organizational entity within client + */ + public void setOrg_ID (int Org_ID) + { + if (Org_ID <= 0) set_Value (COLUMNNAME_Org_ID, null); + else + set_Value (COLUMNNAME_Org_ID, Integer.valueOf(Org_ID)); + } + + /** Get Organization. + @return Organizational entity within client + */ + public int getOrg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_PA_ReportLine getI_PA_ReportLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Line. + @param PA_ReportLine_ID Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID) + { + if (PA_ReportLine_ID < 1) + throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + } + + /** Get Report Line. +@return Report Line */ + public int getPA_ReportLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report Source. + @param PA_ReportSource_ID + Restriction of what will be shown in Report Line + */ + public void setPA_ReportSource_ID (int PA_ReportSource_ID) + { + if (PA_ReportSource_ID < 1) + throw new IllegalArgumentException ("PA_ReportSource_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportSource_ID, Integer.valueOf(PA_ReportSource_ID)); + } + + /** Get Report Source. + @return Restriction of what will be shown in Report Line + */ + public int getPA_ReportSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_PA_SLA_Criteria.java b/base/src/org/compiere/model/X_PA_SLA_Criteria.java index 8df5f64903..0857014559 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Criteria.java +++ b/base/src/org/compiere/model/X_PA_SLA_Criteria.java @@ -1,210 +1,220 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_SLA_Criteria - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_SLA_Criteria extends PO + +/** Generated Model for PA_SLA_Criteria + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_SLA_Criteria extends PO implements I_PA_SLA_Criteria, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_SLA_Criteria_ID id -@param trxName transaction -*/ -public X_PA_SLA_Criteria (Properties ctx, int PA_SLA_Criteria_ID, String trxName) -{ -super (ctx, PA_SLA_Criteria_ID, trxName); -/** if (PA_SLA_Criteria_ID == 0) -{ -setIsManual (true); // Y -setName (null); -setPA_SLA_Criteria_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_SLA_Criteria (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_SLA_Criteria */ -public static final String Table_Name="PA_SLA_Criteria"; - -/** AD_Table_ID=744 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_SLA_Criteria[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Classname. -@param Classname Java Classname */ -public void setClassname (String Classname) -{ -if (Classname != null && Classname.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Classname = Classname.substring(0,59); -} -set_Value ("Classname", Classname); -} -/** Get Classname. -@return Java Classname */ -public String getClassname() -{ -return (String)get_Value("Classname"); -} -/** Column name Classname */ -public static final String COLUMNNAME_Classname = "Classname"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Manual. -@param IsManual This is a manual process */ -public void setIsManual (boolean IsManual) -{ -set_Value ("IsManual", Boolean.valueOf(IsManual)); -} -/** Get Manual. -@return This is a manual process */ -public boolean isManual() -{ -Object oo = get_Value("IsManual"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsManual */ -public static final String COLUMNNAME_IsManual = "IsManual"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set SLA Criteria. -@param PA_SLA_Criteria_ID Service Level Agreement Criteria */ -public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID) -{ -if (PA_SLA_Criteria_ID < 1) throw new IllegalArgumentException ("PA_SLA_Criteria_ID is mandatory."); -set_ValueNoCheck ("PA_SLA_Criteria_ID", Integer.valueOf(PA_SLA_Criteria_ID)); -} -/** Get SLA Criteria. -@return Service Level Agreement Criteria */ -public int getPA_SLA_Criteria_ID() -{ -Integer ii = (Integer)get_Value("PA_SLA_Criteria_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_SLA_Criteria_ID */ -public static final String COLUMNNAME_PA_SLA_Criteria_ID = "PA_SLA_Criteria_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_SLA_Criteria (Properties ctx, int PA_SLA_Criteria_ID, String trxName) + { + super (ctx, PA_SLA_Criteria_ID, trxName); + /** if (PA_SLA_Criteria_ID == 0) { setIsManual (true); +// Y + setName (null); + setPA_SLA_Criteria_ID (0); +} */ + } + + /** Load Constructor */ + public X_PA_SLA_Criteria (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_SLA_Criteria[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Classname. + @param Classname + Java Classname + */ + public void setClassname (String Classname) + { + if (Classname != null && Classname.length() > 60) + { + log.warning("Length > 60 - truncated"); + Classname = Classname.substring(0, 59); + } + set_Value (COLUMNNAME_Classname, Classname); + } + + /** Get Classname. + @return Java Classname + */ + public String getClassname () + { + return (String)get_Value(COLUMNNAME_Classname); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set SLA Criteria. + @param PA_SLA_Criteria_ID + Service Level Agreement Criteria + */ + public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID) + { + if (PA_SLA_Criteria_ID < 1) + throw new IllegalArgumentException ("PA_SLA_Criteria_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_SLA_Criteria_ID, Integer.valueOf(PA_SLA_Criteria_ID)); + } + + /** Get SLA Criteria. + @return Service Level Agreement Criteria + */ + public int getPA_SLA_Criteria_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_SLA_Criteria_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 f28f007fb7..7c341e3289 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Goal.java +++ b/base/src/org/compiere/model/X_PA_SLA_Goal.java @@ -1,325 +1,377 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_SLA_Goal - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_SLA_Goal extends PO + +/** Generated Model for PA_SLA_Goal + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_SLA_Goal extends PO implements I_PA_SLA_Goal, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_SLA_Goal_ID id -@param trxName transaction -*/ -public X_PA_SLA_Goal (Properties ctx, int PA_SLA_Goal_ID, String trxName) -{ -super (ctx, PA_SLA_Goal_ID, trxName); -/** if (PA_SLA_Goal_ID == 0) -{ -setC_BPartner_ID (0); -setMeasureActual (Env.ZERO); -setMeasureTarget (Env.ZERO); -setName (null); -setPA_SLA_Criteria_ID (0); -setPA_SLA_Goal_ID (0); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_SLA_Goal (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_SLA_Goal */ -public static final String Table_Name="PA_SLA_Goal"; - -/** AD_Table_ID=745 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_SLA_Goal[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Measure Actual. -@param MeasureActual Actual value that has been measured. */ -public void setMeasureActual (BigDecimal MeasureActual) -{ -if (MeasureActual == null) throw new IllegalArgumentException ("MeasureActual is mandatory."); -set_Value ("MeasureActual", MeasureActual); -} -/** Get Measure Actual. -@return Actual value that has been measured. */ -public BigDecimal getMeasureActual() -{ -BigDecimal bd = (BigDecimal)get_Value("MeasureActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MeasureActual */ -public static final String COLUMNNAME_MeasureActual = "MeasureActual"; -/** Set Measure Target. -@param MeasureTarget Target value for measure */ -public void setMeasureTarget (BigDecimal MeasureTarget) -{ -if (MeasureTarget == null) throw new IllegalArgumentException ("MeasureTarget is mandatory."); -set_Value ("MeasureTarget", MeasureTarget); -} -/** Get Measure Target. -@return Target value for measure */ -public BigDecimal getMeasureTarget() -{ -BigDecimal bd = (BigDecimal)get_Value("MeasureTarget"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MeasureTarget */ -public static final String COLUMNNAME_MeasureTarget = "MeasureTarget"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set SLA Criteria. -@param PA_SLA_Criteria_ID Service Level Agreement Criteria */ -public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID) -{ -if (PA_SLA_Criteria_ID < 1) throw new IllegalArgumentException ("PA_SLA_Criteria_ID is mandatory."); -set_Value ("PA_SLA_Criteria_ID", Integer.valueOf(PA_SLA_Criteria_ID)); -} -/** Get SLA Criteria. -@return Service Level Agreement Criteria */ -public int getPA_SLA_Criteria_ID() -{ -Integer ii = (Integer)get_Value("PA_SLA_Criteria_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_SLA_Criteria_ID */ -public static final String COLUMNNAME_PA_SLA_Criteria_ID = "PA_SLA_Criteria_ID"; -/** Set SLA Goal. -@param PA_SLA_Goal_ID Service Level Agreement Goal */ -public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID) -{ -if (PA_SLA_Goal_ID < 1) throw new IllegalArgumentException ("PA_SLA_Goal_ID is mandatory."); -set_ValueNoCheck ("PA_SLA_Goal_ID", Integer.valueOf(PA_SLA_Goal_ID)); -} -/** Get SLA Goal. -@return Service Level Agreement Goal */ -public int getPA_SLA_Goal_ID() -{ -Integer ii = (Integer)get_Value("PA_SLA_Goal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_SLA_Goal_ID */ -public static final String COLUMNNAME_PA_SLA_Goal_ID = "PA_SLA_Goal_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_SLA_Goal (Properties ctx, int PA_SLA_Goal_ID, String trxName) + { + super (ctx, PA_SLA_Goal_ID, trxName); + /** if (PA_SLA_Goal_ID == 0) { setC_BPartner_ID (0); + setMeasureActual (Env.ZERO); + setMeasureTarget (Env.ZERO); + setName (null); + setPA_SLA_Criteria_ID (0); + setPA_SLA_Goal_ID (0); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_PA_SLA_Goal (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_SLA_Goal[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Measure Actual. + @param MeasureActual + Actual value that has been measured. + */ + public void setMeasureActual (BigDecimal MeasureActual) + { + if (MeasureActual == null) + throw new IllegalArgumentException ("MeasureActual is mandatory."); + set_Value (COLUMNNAME_MeasureActual, MeasureActual); + } + + /** Get Measure Actual. + @return Actual value that has been measured. + */ + public BigDecimal getMeasureActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MeasureActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Measure Target. + @param MeasureTarget + Target value for measure + */ + public void setMeasureTarget (BigDecimal MeasureTarget) + { + if (MeasureTarget == null) + throw new IllegalArgumentException ("MeasureTarget is mandatory."); + set_Value (COLUMNNAME_MeasureTarget, MeasureTarget); + } + + /** Get Measure Target. + @return Target value for measure + */ + public BigDecimal getMeasureTarget () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MeasureTarget); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + public I_PA_SLA_Criteria getI_PA_SLA_Criteria() throws Exception + { + 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 e; + } + return result; + } + + /** Set SLA Criteria. + @param PA_SLA_Criteria_ID + Service Level Agreement Criteria + */ + public void setPA_SLA_Criteria_ID (int PA_SLA_Criteria_ID) + { + if (PA_SLA_Criteria_ID < 1) + throw new IllegalArgumentException ("PA_SLA_Criteria_ID is mandatory."); + set_Value (COLUMNNAME_PA_SLA_Criteria_ID, Integer.valueOf(PA_SLA_Criteria_ID)); + } + + /** Get SLA Criteria. + @return Service Level Agreement Criteria + */ + public int getPA_SLA_Criteria_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_SLA_Criteria_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set SLA Goal. + @param PA_SLA_Goal_ID + Service Level Agreement Goal + */ + public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID) + { + if (PA_SLA_Goal_ID < 1) + throw new IllegalArgumentException ("PA_SLA_Goal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, Integer.valueOf(PA_SLA_Goal_ID)); + } + + /** Get SLA Goal. + @return Service Level Agreement Goal + */ + public int getPA_SLA_Goal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_SLA_Goal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } +} \ No newline at end of file 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 af728fadcd..1c91c11809 100644 --- a/base/src/org/compiere/model/X_PA_SLA_Measure.java +++ b/base/src/org/compiere/model/X_PA_SLA_Measure.java @@ -1,259 +1,297 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for PA_SLA_Measure - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_PA_SLA_Measure extends PO + +/** Generated Model for PA_SLA_Measure + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_PA_SLA_Measure extends PO implements I_PA_SLA_Measure, I_Persistent { -/** Standard Constructor -@param ctx context -@param PA_SLA_Measure_ID id -@param trxName transaction -*/ -public X_PA_SLA_Measure (Properties ctx, int PA_SLA_Measure_ID, String trxName) -{ -super (ctx, PA_SLA_Measure_ID, trxName); -/** if (PA_SLA_Measure_ID == 0) -{ -setDateTrx (new Timestamp(System.currentTimeMillis())); -setMeasureActual (Env.ZERO); -setPA_SLA_Goal_ID (0); -setPA_SLA_Measure_ID (0); -setProcessed (false); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_PA_SLA_Measure (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=PA_SLA_Measure */ -public static final String Table_Name="PA_SLA_Measure"; - -/** AD_Table_ID=743 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_PA_SLA_Measure[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_Value ("AD_Table_ID", null); - else -set_Value ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set Transaction Date. -@param DateTrx Transaction Date */ -public void setDateTrx (Timestamp DateTrx) -{ -if (DateTrx == null) throw new IllegalArgumentException ("DateTrx is mandatory."); -set_Value ("DateTrx", DateTrx); -} -/** Get Transaction Date. -@return Transaction Date */ -public Timestamp getDateTrx() -{ -return (Timestamp)get_Value("DateTrx"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getDateTrx())); -} -/** Column name DateTrx */ -public static final String COLUMNNAME_DateTrx = "DateTrx"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Measure Actual. -@param MeasureActual Actual value that has been measured. */ -public void setMeasureActual (BigDecimal MeasureActual) -{ -if (MeasureActual == null) throw new IllegalArgumentException ("MeasureActual is mandatory."); -set_Value ("MeasureActual", MeasureActual); -} -/** Get Measure Actual. -@return Actual value that has been measured. */ -public BigDecimal getMeasureActual() -{ -BigDecimal bd = (BigDecimal)get_Value("MeasureActual"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MeasureActual */ -public static final String COLUMNNAME_MeasureActual = "MeasureActual"; -/** Set SLA Goal. -@param PA_SLA_Goal_ID Service Level Agreement Goal */ -public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID) -{ -if (PA_SLA_Goal_ID < 1) throw new IllegalArgumentException ("PA_SLA_Goal_ID is mandatory."); -set_ValueNoCheck ("PA_SLA_Goal_ID", Integer.valueOf(PA_SLA_Goal_ID)); -} -/** Get SLA Goal. -@return Service Level Agreement Goal */ -public int getPA_SLA_Goal_ID() -{ -Integer ii = (Integer)get_Value("PA_SLA_Goal_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_SLA_Goal_ID */ -public static final String COLUMNNAME_PA_SLA_Goal_ID = "PA_SLA_Goal_ID"; -/** Set SLA Measure. -@param PA_SLA_Measure_ID Service Level Agreement Measure */ -public void setPA_SLA_Measure_ID (int PA_SLA_Measure_ID) -{ -if (PA_SLA_Measure_ID < 1) throw new IllegalArgumentException ("PA_SLA_Measure_ID is mandatory."); -set_ValueNoCheck ("PA_SLA_Measure_ID", Integer.valueOf(PA_SLA_Measure_ID)); -} -/** Get SLA Measure. -@return Service Level Agreement Measure */ -public int getPA_SLA_Measure_ID() -{ -Integer ii = (Integer)get_Value("PA_SLA_Measure_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_SLA_Measure_ID */ -public static final String COLUMNNAME_PA_SLA_Measure_ID = "PA_SLA_Measure_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_Value ("Record_ID", null); - else -set_Value ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_PA_SLA_Measure (Properties ctx, int PA_SLA_Measure_ID, String trxName) + { + super (ctx, PA_SLA_Measure_ID, trxName); + /** if (PA_SLA_Measure_ID == 0) { setDateTrx (new Timestamp(System.currentTimeMillis())); + setMeasureActual (Env.ZERO); + setPA_SLA_Goal_ID (0); + setPA_SLA_Measure_ID (0); + setProcessed (false); +} */ + } + + /** Load Constructor */ + public X_PA_SLA_Measure (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_PA_SLA_Measure[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getDateTrx())); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Measure Actual. + @param MeasureActual + Actual value that has been measured. + */ + public void setMeasureActual (BigDecimal MeasureActual) + { + if (MeasureActual == null) + throw new IllegalArgumentException ("MeasureActual is mandatory."); + set_Value (COLUMNNAME_MeasureActual, MeasureActual); + } + + /** Get Measure Actual. + @return Actual value that has been measured. + */ + public BigDecimal getMeasureActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MeasureActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_PA_SLA_Goal getI_PA_SLA_Goal() throws Exception + { + 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 e; + } + return result; + } + + /** Set SLA Goal. + @param PA_SLA_Goal_ID + Service Level Agreement Goal + */ + public void setPA_SLA_Goal_ID (int PA_SLA_Goal_ID) + { + if (PA_SLA_Goal_ID < 1) + throw new IllegalArgumentException ("PA_SLA_Goal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_SLA_Goal_ID, Integer.valueOf(PA_SLA_Goal_ID)); + } + + /** Get SLA Goal. + @return Service Level Agreement Goal + */ + public int getPA_SLA_Goal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_SLA_Goal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set SLA Measure. + @param PA_SLA_Measure_ID + Service Level Agreement Measure + */ + public void setPA_SLA_Measure_ID (int PA_SLA_Measure_ID) + { + if (PA_SLA_Measure_ID < 1) + throw new IllegalArgumentException ("PA_SLA_Measure_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_SLA_Measure_ID, Integer.valueOf(PA_SLA_Measure_ID)); + } + + /** Get SLA Measure. + @return Service Level Agreement Measure + */ + public int getPA_SLA_Measure_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_SLA_Measure_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_Value (COLUMNNAME_Record_ID, null); + else + set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_RV_BPartner.java b/base/src/org/compiere/model/X_RV_BPartner.java index c656013107..65bcb851b3 100644 --- a/base/src/org/compiere/model/X_RV_BPartner.java +++ b/base/src/org/compiere/model/X_RV_BPartner.java @@ -1,1874 +1,2263 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for RV_BPartner - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_RV_BPartner extends PO + +/** Generated Model for RV_BPartner + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_RV_BPartner extends PO implements I_RV_BPartner, I_Persistent { -/** Standard Constructor -@param ctx context -@param RV_BPartner_ID id -@param trxName transaction -*/ -public X_RV_BPartner (Properties ctx, int RV_BPartner_ID, String trxName) -{ -super (ctx, RV_BPartner_ID, trxName); -/** if (RV_BPartner_ID == 0) -{ -setC_BP_Group_ID (0); -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setC_Country_ID (0); -setContactName (null); -setCountryName (null); -setIsCustomer (false); -setIsEmployee (false); -setIsOneTime (false); -setIsProspect (false); -setIsSalesRep (false); -setIsSummary (false); -setIsVendor (false); -setLDAPUser (false); -setName (null); -setNotificationType (null); -setSendEMail (false); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_RV_BPartner (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=RV_BPartner */ -public static final String Table_Name="RV_BPartner"; - -/** AD_Table_ID=520 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_RV_BPartner[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_RV_BPartner (Properties ctx, int RV_BPartner_ID, String trxName) + { + super (ctx, RV_BPartner_ID, trxName); + /** if (RV_BPartner_ID == 0) { setC_BP_Group_ID (0); + setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Country_ID (0); + setContactName (null); + setCountryName (null); + setIsCustomer (false); + setIsEmployee (false); + setIsOneTime (false); + setIsProspect (false); + setIsSalesRep (false); + setIsSummary (false); + setIsVendor (false); + setLDAPUser (false); + setName (null); + setNotificationType (null); + setSendEMail (false); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_RV_BPartner (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_RV_BPartner[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** AD_Language AD_Reference_ID=106 */ public static final int AD_LANGUAGE_AD_Reference_ID=106; -/** Set Language. -@param AD_Language Language for this entity */ -public void setAD_Language (String AD_Language) -{ -if (AD_Language != null && AD_Language.length() > 6) -{ -log.warning("Length > 6 - truncated"); -AD_Language = AD_Language.substring(0,5); -} -set_ValueNoCheck ("AD_Language", AD_Language); -} -/** Get Language. -@return Language for this entity */ -public String getAD_Language() -{ -return (String)get_Value("AD_Language"); -} -/** Column name AD_Language */ -public static final String COLUMNNAME_AD_Language = "AD_Language"; + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 5); + } + set_ValueNoCheck (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } /** AD_OrgBP_ID AD_Reference_ID=276 */ public static final int AD_ORGBP_ID_AD_Reference_ID=276; -/** Set Linked Organization. -@param AD_OrgBP_ID The Business Partner is another Organization for explicit Inter-Org transactions */ -public void setAD_OrgBP_ID (int AD_OrgBP_ID) -{ -if (AD_OrgBP_ID <= 0) set_ValueNoCheck ("AD_OrgBP_ID", null); - else -set_ValueNoCheck ("AD_OrgBP_ID", Integer.valueOf(AD_OrgBP_ID)); -} -/** Get Linked Organization. -@return The Business Partner is another Organization for explicit Inter-Org transactions */ -public int getAD_OrgBP_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgBP_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgBP_ID */ -public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; + /** Set Linked Organization. + @param AD_OrgBP_ID + The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (int AD_OrgBP_ID) + { + if (AD_OrgBP_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_OrgBP_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_OrgBP_ID, Integer.valueOf(AD_OrgBP_ID)); + } + + /** Get Linked Organization. + @return The Business Partner is another Organization for explicit Inter-Org transactions + */ + public int getAD_OrgBP_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgBP_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** AD_OrgTrx_ID AD_Reference_ID=276 */ public static final int AD_ORGTRX_ID_AD_Reference_ID=276; -/** Set Trx Organization. -@param AD_OrgTrx_ID Performing or initiating organization */ -public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) -{ -if (AD_OrgTrx_ID <= 0) set_ValueNoCheck ("AD_OrgTrx_ID", null); - else -set_ValueNoCheck ("AD_OrgTrx_ID", Integer.valueOf(AD_OrgTrx_ID)); -} -/** Get Trx Organization. -@return Performing or initiating organization */ -public int getAD_OrgTrx_ID() -{ -Integer ii = (Integer)get_Value("AD_OrgTrx_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_OrgTrx_ID */ -public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_ValueNoCheck ("AD_User_ID", null); - else -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Acquisition Cost. -@param AcqusitionCost The cost of gaining the prospect as a customer */ -public void setAcqusitionCost (BigDecimal AcqusitionCost) -{ -set_ValueNoCheck ("AcqusitionCost", AcqusitionCost); -} -/** Get Acquisition Cost. -@return The cost of gaining the prospect as a customer */ -public BigDecimal getAcqusitionCost() -{ -BigDecimal bd = (BigDecimal)get_Value("AcqusitionCost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AcqusitionCost */ -public static final String COLUMNNAME_AcqusitionCost = "AcqusitionCost"; -/** Set Actual Life Time Value. -@param ActualLifeTimeValue Actual Life Time Revenue */ -public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue) -{ -set_ValueNoCheck ("ActualLifeTimeValue", ActualLifeTimeValue); -} -/** Get Actual Life Time Value. -@return Actual Life Time Revenue */ -public BigDecimal getActualLifeTimeValue() -{ -BigDecimal bd = (BigDecimal)get_Value("ActualLifeTimeValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ActualLifeTimeValue */ -public static final String COLUMNNAME_ActualLifeTimeValue = "ActualLifeTimeValue"; -/** Set Address 1. -@param Address1 Address line 1 for this location */ -public void setAddress1 (String Address1) -{ -if (Address1 != null && Address1.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address1 = Address1.substring(0,59); -} -set_ValueNoCheck ("Address1", Address1); -} -/** Get Address 1. -@return Address line 1 for this location */ -public String getAddress1() -{ -return (String)get_Value("Address1"); -} -/** Column name Address1 */ -public static final String COLUMNNAME_Address1 = "Address1"; -/** Set Address 2. -@param Address2 Address line 2 for this location */ -public void setAddress2 (String Address2) -{ -if (Address2 != null && Address2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address2 = Address2.substring(0,59); -} -set_ValueNoCheck ("Address2", Address2); -} -/** Get Address 2. -@return Address line 2 for this location */ -public String getAddress2() -{ -return (String)get_Value("Address2"); -} -/** Column name Address2 */ -public static final String COLUMNNAME_Address2 = "Address2"; -/** Set Address 3. -@param Address3 Address Line 3 for the location */ -public void setAddress3 (String Address3) -{ -if (Address3 != null && Address3.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Address3 = Address3.substring(0,59); -} -set_ValueNoCheck ("Address3", Address3); -} -/** Get Address 3. -@return Address Line 3 for the location */ -public String getAddress3() -{ -return (String)get_Value("Address3"); -} -/** Column name Address3 */ -public static final String COLUMNNAME_Address3 = "Address3"; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Acquisition Cost. + @param AcqusitionCost + The cost of gaining the prospect as a customer + */ + public void setAcqusitionCost (BigDecimal AcqusitionCost) + { + set_ValueNoCheck (COLUMNNAME_AcqusitionCost, AcqusitionCost); + } + + /** Get Acquisition Cost. + @return The cost of gaining the prospect as a customer + */ + public BigDecimal getAcqusitionCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AcqusitionCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Actual Life Time Value. + @param ActualLifeTimeValue + Actual Life Time Revenue + */ + public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue) + { + set_ValueNoCheck (COLUMNNAME_ActualLifeTimeValue, ActualLifeTimeValue); + } + + /** Get Actual Life Time Value. + @return Actual Life Time Revenue + */ + public BigDecimal getActualLifeTimeValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ActualLifeTimeValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Address 1. + @param Address1 + Address line 1 for this location + */ + public void setAddress1 (String Address1) + { + if (Address1 != null && Address1.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address1 = Address1.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Address1, Address1); + } + + /** Get Address 1. + @return Address line 1 for this location + */ + public String getAddress1 () + { + return (String)get_Value(COLUMNNAME_Address1); + } + + /** Set Address 2. + @param Address2 + Address line 2 for this location + */ + public void setAddress2 (String Address2) + { + if (Address2 != null && Address2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address2 = Address2.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Address2, Address2); + } + + /** Get Address 2. + @return Address line 2 for this location + */ + public String getAddress2 () + { + return (String)get_Value(COLUMNNAME_Address2); + } + + /** Set Address 3. + @param Address3 + Address Line 3 for the location + */ + public void setAddress3 (String Address3) + { + if (Address3 != null && Address3.length() > 60) + { + log.warning("Length > 60 - truncated"); + Address3 = Address3.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Address3, Address3); + } + + /** Get Address 3. + @return Address Line 3 for the location + */ + public String getAddress3 () + { + return (String)get_Value(COLUMNNAME_Address3); + } /** BPContactGreeting AD_Reference_ID=356 */ public static final int BPCONTACTGREETING_AD_Reference_ID=356; -/** Set BP Contact Greeting. -@param BPContactGreeting Greeting for Business Partner Contact */ -public void setBPContactGreeting (int BPContactGreeting) -{ -set_ValueNoCheck ("BPContactGreeting", Integer.valueOf(BPContactGreeting)); -} -/** Get BP Contact Greeting. -@return Greeting for Business Partner Contact */ -public int getBPContactGreeting() -{ -Integer ii = (Integer)get_Value("BPContactGreeting"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BPContactGreeting */ -public static final String COLUMNNAME_BPContactGreeting = "BPContactGreeting"; + /** Set BP Contact Greeting. + @param BPContactGreeting + Greeting for Business Partner Contact + */ + public void setBPContactGreeting (int BPContactGreeting) + { + set_ValueNoCheck (COLUMNNAME_BPContactGreeting, Integer.valueOf(BPContactGreeting)); + } + + /** Get BP Contact Greeting. + @return Greeting for Business Partner Contact + */ + public int getBPContactGreeting () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BPContactGreeting); + if (ii == null) + return 0; + return ii.intValue(); + } /** BPartner_Parent_ID AD_Reference_ID=124 */ public static final int BPARTNER_PARENT_ID_AD_Reference_ID=124; -/** Set Partner Parent. -@param BPartner_Parent_ID Business Partner Parent */ -public void setBPartner_Parent_ID (int BPartner_Parent_ID) -{ -if (BPartner_Parent_ID <= 0) set_ValueNoCheck ("BPartner_Parent_ID", null); - else -set_ValueNoCheck ("BPartner_Parent_ID", Integer.valueOf(BPartner_Parent_ID)); -} -/** Get Partner Parent. -@return Business Partner Parent */ -public int getBPartner_Parent_ID() -{ -Integer ii = (Integer)get_Value("BPartner_Parent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BPartner_Parent_ID */ -public static final String COLUMNNAME_BPartner_Parent_ID = "BPartner_Parent_ID"; -/** Set Birthday. -@param Birthday Birthday or Anniversary day */ -public void setBirthday (Timestamp Birthday) -{ -set_ValueNoCheck ("Birthday", Birthday); -} -/** Get Birthday. -@return Birthday or Anniversary day */ -public Timestamp getBirthday() -{ -return (Timestamp)get_Value("Birthday"); -} -/** Column name Birthday */ -public static final String COLUMNNAME_Birthday = "Birthday"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID < 1) throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); -set_ValueNoCheck ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Country. -@param C_Country_ID Country */ -public void setC_Country_ID (int C_Country_ID) -{ -if (C_Country_ID < 1) throw new IllegalArgumentException ("C_Country_ID is mandatory."); -set_ValueNoCheck ("C_Country_ID", Integer.valueOf(C_Country_ID)); -} -/** Get Country. -@return Country */ -public int getC_Country_ID() -{ -Integer ii = (Integer)get_Value("C_Country_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Country_ID */ -public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; -/** Set Dunning. -@param C_Dunning_ID Dunning Rules for overdue invoices */ -public void setC_Dunning_ID (int C_Dunning_ID) -{ -if (C_Dunning_ID <= 0) set_ValueNoCheck ("C_Dunning_ID", null); - else -set_ValueNoCheck ("C_Dunning_ID", Integer.valueOf(C_Dunning_ID)); -} -/** Get Dunning. -@return Dunning Rules for overdue invoices */ -public int getC_Dunning_ID() -{ -Integer ii = (Integer)get_Value("C_Dunning_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Dunning_ID */ -public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; -/** Set Greeting. -@param C_Greeting_ID Greeting to print on correspondence */ -public void setC_Greeting_ID (int C_Greeting_ID) -{ -if (C_Greeting_ID <= 0) set_ValueNoCheck ("C_Greeting_ID", null); - else -set_ValueNoCheck ("C_Greeting_ID", Integer.valueOf(C_Greeting_ID)); -} -/** Get Greeting. -@return Greeting to print on correspondence */ -public int getC_Greeting_ID() -{ -Integer ii = (Integer)get_Value("C_Greeting_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Greeting_ID */ -public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; -/** Set Invoice Schedule. -@param C_InvoiceSchedule_ID Schedule for generating Invoices */ -public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) -{ -if (C_InvoiceSchedule_ID <= 0) set_ValueNoCheck ("C_InvoiceSchedule_ID", null); - else -set_ValueNoCheck ("C_InvoiceSchedule_ID", Integer.valueOf(C_InvoiceSchedule_ID)); -} -/** Get Invoice Schedule. -@return Schedule for generating Invoices */ -public int getC_InvoiceSchedule_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceSchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceSchedule_ID */ -public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID <= 0) set_ValueNoCheck ("C_PaymentTerm_ID", null); - else -set_ValueNoCheck ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Region. -@param C_Region_ID Identifies a geographical Region */ -public void setC_Region_ID (int C_Region_ID) -{ -if (C_Region_ID <= 0) set_ValueNoCheck ("C_Region_ID", null); - else -set_ValueNoCheck ("C_Region_ID", Integer.valueOf(C_Region_ID)); -} -/** Get Region. -@return Identifies a geographical Region */ -public int getC_Region_ID() -{ -Integer ii = (Integer)get_Value("C_Region_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Region_ID */ -public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; -/** Set City. -@param City Identifies a City */ -public void setCity (String City) -{ -if (City != null && City.length() > 60) -{ -log.warning("Length > 60 - truncated"); -City = City.substring(0,59); -} -set_ValueNoCheck ("City", City); -} -/** Get City. -@return Identifies a City */ -public String getCity() -{ -return (String)get_Value("City"); -} -/** Column name City */ -public static final String COLUMNNAME_City = "City"; -/** Set Comments. -@param Comments Comments or additional information */ -public void setComments (String Comments) -{ -if (Comments != null && Comments.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Comments = Comments.substring(0,1999); -} -set_ValueNoCheck ("Comments", Comments); -} -/** Get Comments. -@return Comments or additional information */ -public String getComments() -{ -return (String)get_Value("Comments"); -} -/** Column name Comments */ -public static final String COLUMNNAME_Comments = "Comments"; -/** Set Contact Description. -@param ContactDescription Description of Contact */ -public void setContactDescription (String ContactDescription) -{ -if (ContactDescription != null && ContactDescription.length() > 255) -{ -log.warning("Length > 255 - truncated"); -ContactDescription = ContactDescription.substring(0,254); -} -set_ValueNoCheck ("ContactDescription", ContactDescription); -} -/** Get Contact Description. -@return Description of Contact */ -public String getContactDescription() -{ -return (String)get_Value("ContactDescription"); -} -/** Column name ContactDescription */ -public static final String COLUMNNAME_ContactDescription = "ContactDescription"; -/** Set Contact Name. -@param ContactName Business Partner Contact Name */ -public void setContactName (String ContactName) -{ -if (ContactName == null) throw new IllegalArgumentException ("ContactName is mandatory."); -if (ContactName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ContactName = ContactName.substring(0,59); -} -set_ValueNoCheck ("ContactName", ContactName); -} -/** Get Contact Name. -@return Business Partner Contact Name */ -public String getContactName() -{ -return (String)get_Value("ContactName"); -} -/** Column name ContactName */ -public static final String COLUMNNAME_ContactName = "ContactName"; -/** Set Country. -@param CountryName Country Name */ -public void setCountryName (String CountryName) -{ -if (CountryName == null) throw new IllegalArgumentException ("CountryName is mandatory."); -if (CountryName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -CountryName = CountryName.substring(0,59); -} -set_ValueNoCheck ("CountryName", CountryName); -} -/** Get Country. -@return Country Name */ -public String getCountryName() -{ -return (String)get_Value("CountryName"); -} -/** Column name CountryName */ -public static final String COLUMNNAME_CountryName = "CountryName"; -/** Set D-U-N-S. -@param DUNS Dun & Bradstreet Number */ -public void setDUNS (String DUNS) -{ -if (DUNS != null && DUNS.length() > 11) -{ -log.warning("Length > 11 - truncated"); -DUNS = DUNS.substring(0,10); -} -set_ValueNoCheck ("DUNS", DUNS); -} -/** Get D-U-N-S. -@return Dun & Bradstreet Number */ -public String getDUNS() -{ -return (String)get_Value("DUNS"); -} -/** Column name DUNS */ -public static final String COLUMNNAME_DUNS = "DUNS"; + /** Set Partner Parent. + @param BPartner_Parent_ID + Business Partner Parent + */ + public void setBPartner_Parent_ID (int BPartner_Parent_ID) + { + if (BPartner_Parent_ID <= 0) set_ValueNoCheck (COLUMNNAME_BPartner_Parent_ID, null); + else + set_ValueNoCheck (COLUMNNAME_BPartner_Parent_ID, Integer.valueOf(BPartner_Parent_ID)); + } + + /** Get Partner Parent. + @return Business Partner Parent + */ + public int getBPartner_Parent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BPartner_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Birthday. + @param Birthday + Birthday or Anniversary day + */ + public void setBirthday (Timestamp Birthday) + { + set_ValueNoCheck (COLUMNNAME_Birthday, Birthday); + } + + /** Get Birthday. + @return Birthday or Anniversary day + */ + public Timestamp getBirthday () + { + return (Timestamp)get_Value(COLUMNNAME_Birthday); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner_Location getI_C_BPartner_Location() throws Exception + { + 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 e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Country getI_C_Country() throws Exception + { + 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 e; + } + return result; + } + + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID < 1) + throw new IllegalArgumentException ("C_Country_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Dunning getI_C_Dunning() throws Exception + { + 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 e; + } + return result; + } + + /** Set Dunning. + @param C_Dunning_ID + Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID) + { + if (C_Dunning_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + } + + /** Get Dunning. + @return Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Dunning_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Greeting getI_C_Greeting() throws Exception + { + 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 e; + } + return result; + } + + /** Set Greeting. + @param C_Greeting_ID + Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID) + { + if (C_Greeting_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Greeting_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + } + + /** Get Greeting. + @return Greeting to print on correspondence + */ + public int getC_Greeting_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_InvoiceSchedule getI_C_InvoiceSchedule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Invoice Schedule. + @param C_InvoiceSchedule_ID + Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) + { + if (C_InvoiceSchedule_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceSchedule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceSchedule_ID, Integer.valueOf(C_InvoiceSchedule_ID)); + } + + /** Get Invoice Schedule. + @return Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceSchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Region getI_C_Region() throws Exception + { + 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 e; + } + return result; + } + + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Region_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set City. + @param City + Identifies a City + */ + public void setCity (String City) + { + if (City != null && City.length() > 60) + { + log.warning("Length > 60 - truncated"); + City = City.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_City, City); + } + + /** Get City. + @return Identifies a City + */ + public String getCity () + { + return (String)get_Value(COLUMNNAME_City); + } + + /** Set Comments. + @param Comments + Comments or additional information + */ + public void setComments (String Comments) + { + if (Comments != null && Comments.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Comments = Comments.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_Comments, Comments); + } + + /** Get Comments. + @return Comments or additional information + */ + public String getComments () + { + return (String)get_Value(COLUMNNAME_Comments); + } + + /** Set Contact Description. + @param ContactDescription + Description of Contact + */ + public void setContactDescription (String ContactDescription) + { + if (ContactDescription != null && ContactDescription.length() > 255) + { + log.warning("Length > 255 - truncated"); + ContactDescription = ContactDescription.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_ContactDescription, ContactDescription); + } + + /** Get Contact Description. + @return Description of Contact + */ + public String getContactDescription () + { + return (String)get_Value(COLUMNNAME_ContactDescription); + } + + /** Set Contact Name. + @param ContactName + Business Partner Contact Name + */ + public void setContactName (String ContactName) + { + if (ContactName == null) + throw new IllegalArgumentException ("ContactName is mandatory."); + if (ContactName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ContactName = ContactName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_ContactName, ContactName); + } + + /** Get Contact Name. + @return Business Partner Contact Name + */ + public String getContactName () + { + return (String)get_Value(COLUMNNAME_ContactName); + } + + /** Set Country. + @param CountryName + Country Name + */ + public void setCountryName (String CountryName) + { + if (CountryName == null) + throw new IllegalArgumentException ("CountryName is mandatory."); + if (CountryName.length() > 60) + { + log.warning("Length > 60 - truncated"); + CountryName = CountryName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_CountryName, CountryName); + } + + /** Get Country. + @return Country Name + */ + public String getCountryName () + { + return (String)get_Value(COLUMNNAME_CountryName); + } + + /** Set D-U-N-S. + @param DUNS + Dun & Bradstreet Number + */ + public void setDUNS (String DUNS) + { + if (DUNS != null && DUNS.length() > 11) + { + log.warning("Length > 11 - truncated"); + DUNS = DUNS.substring(0, 10); + } + set_ValueNoCheck (COLUMNNAME_DUNS, DUNS); + } + + /** Get D-U-N-S. + @return Dun & Bradstreet Number + */ + public String getDUNS () + { + return (String)get_Value(COLUMNNAME_DUNS); + } /** DeliveryRule AD_Reference_ID=151 */ -public static final int DELIVERYRULE_AD_Reference_ID=151; -/** Availability = A */ -public static final String DELIVERYRULE_Availability = "A"; -/** Force = F */ -public static final String DELIVERYRULE_Force = "F"; -/** Complete Line = L */ -public static final String DELIVERYRULE_CompleteLine = "L"; -/** Manual = M */ -public static final String DELIVERYRULE_Manual = "M"; -/** Complete Order = O */ -public static final String DELIVERYRULE_CompleteOrder = "O"; -/** After Receipt = R */ +public static final int DELIVERYRULE_AD_Reference_ID=151;/** Availability = A */ +public static final String DELIVERYRULE_Availability = "A";/** Force = F */ +public static final String DELIVERYRULE_Force = "F";/** Complete Line = L */ +public static final String DELIVERYRULE_CompleteLine = "L";/** Manual = M */ +public static final String DELIVERYRULE_Manual = "M";/** Complete Order = O */ +public static final String DELIVERYRULE_CompleteOrder = "O";/** After Receipt = R */ public static final String DELIVERYRULE_AfterReceipt = "R"; -/** Set Delivery Rule. -@param DeliveryRule Defines the timing of Delivery */ -public void setDeliveryRule (String DeliveryRule) -{ -if (DeliveryRule == null || DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); - else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); -if (DeliveryRule != null && DeliveryRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryRule = DeliveryRule.substring(0,0); -} -set_ValueNoCheck ("DeliveryRule", DeliveryRule); -} -/** Get Delivery Rule. -@return Defines the timing of Delivery */ -public String getDeliveryRule() -{ -return (String)get_Value("DeliveryRule"); -} -/** Column name DeliveryRule */ -public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { +if (DeliveryRule == null || DeliveryRule.equals("A") || DeliveryRule.equals("F") || DeliveryRule.equals("L") || DeliveryRule.equals("M") || DeliveryRule.equals("O") || DeliveryRule.equals("R")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - A - F - L - M - O - R"); if (DeliveryRule != null && DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } /** DeliveryViaRule AD_Reference_ID=152 */ -public static final int DELIVERYVIARULE_AD_Reference_ID=152; -/** Delivery = D */ -public static final String DELIVERYVIARULE_Delivery = "D"; -/** Pickup = P */ -public static final String DELIVERYVIARULE_Pickup = "P"; -/** Shipper = S */ +public static final int DELIVERYVIARULE_AD_Reference_ID=152;/** Delivery = D */ +public static final String DELIVERYVIARULE_Delivery = "D";/** Pickup = P */ +public static final String DELIVERYVIARULE_Pickup = "P";/** Shipper = S */ public static final String DELIVERYVIARULE_Shipper = "S"; -/** Set Delivery Via. -@param DeliveryViaRule How the order will be delivered */ -public void setDeliveryViaRule (String DeliveryViaRule) -{ -if (DeliveryViaRule == null || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); - else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); -if (DeliveryViaRule != null && DeliveryViaRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DeliveryViaRule = DeliveryViaRule.substring(0,0); -} -set_ValueNoCheck ("DeliveryViaRule", DeliveryViaRule); -} -/** Get Delivery Via. -@return How the order will be delivered */ -public String getDeliveryViaRule() -{ -return (String)get_Value("DeliveryViaRule"); -} -/** Column name DeliveryViaRule */ -public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_ValueNoCheck ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Document Copies. -@param DocumentCopies Number of copies to be printed */ -public void setDocumentCopies (int DocumentCopies) -{ -set_ValueNoCheck ("DocumentCopies", Integer.valueOf(DocumentCopies)); -} -/** Get Document Copies. -@return Number of copies to be printed */ -public int getDocumentCopies() -{ -Integer ii = (Integer)get_Value("DocumentCopies"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DocumentCopies */ -public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_ValueNoCheck ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set EMail User ID. -@param EMailUser User Name (ID) in the Mail System */ -public void setEMailUser (String EMailUser) -{ -if (EMailUser != null && EMailUser.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMailUser = EMailUser.substring(0,59); -} -set_ValueNoCheck ("EMailUser", EMailUser); -} -/** Get EMail User ID. -@return User Name (ID) in the Mail System */ -public String getEMailUser() -{ -return (String)get_Value("EMailUser"); -} -/** Column name EMailUser */ -public static final String COLUMNNAME_EMailUser = "EMailUser"; -/** Set Verification Info. -@param EMailVerify Verification information of EMail Address */ -public void setEMailVerify (String EMailVerify) -{ -if (EMailVerify != null && EMailVerify.length() > 40) -{ -log.warning("Length > 40 - truncated"); -EMailVerify = EMailVerify.substring(0,39); -} -set_ValueNoCheck ("EMailVerify", EMailVerify); -} -/** Get Verification Info. -@return Verification information of EMail Address */ -public String getEMailVerify() -{ -return (String)get_Value("EMailVerify"); -} -/** Column name EMailVerify */ -public static final String COLUMNNAME_EMailVerify = "EMailVerify"; -/** Set EMail Verify. -@param EMailVerifyDate Date Email was verified */ -public void setEMailVerifyDate (Timestamp EMailVerifyDate) -{ -set_ValueNoCheck ("EMailVerifyDate", EMailVerifyDate); -} -/** Get EMail Verify. -@return Date Email was verified */ -public Timestamp getEMailVerifyDate() -{ -return (Timestamp)get_Value("EMailVerifyDate"); -} -/** Column name EMailVerifyDate */ -public static final String COLUMNNAME_EMailVerifyDate = "EMailVerifyDate"; -/** Set Fax. -@param Fax Facsimile number */ -public void setFax (String Fax) -{ -if (Fax != null && Fax.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Fax = Fax.substring(0,39); -} -set_ValueNoCheck ("Fax", Fax); -} -/** Get Fax. -@return Facsimile number */ -public String getFax() -{ -return (String)get_Value("Fax"); -} -/** Column name Fax */ -public static final String COLUMNNAME_Fax = "Fax"; -/** Set First Sale. -@param FirstSale Date of First Sale */ -public void setFirstSale (Timestamp FirstSale) -{ -set_ValueNoCheck ("FirstSale", FirstSale); -} -/** Get First Sale. -@return Date of First Sale */ -public Timestamp getFirstSale() -{ -return (Timestamp)get_Value("FirstSale"); -} -/** Column name FirstSale */ -public static final String COLUMNNAME_FirstSale = "FirstSale"; -/** Set Flat Discount %. -@param FlatDiscount Flat discount percentage */ -public void setFlatDiscount (BigDecimal FlatDiscount) -{ -set_ValueNoCheck ("FlatDiscount", FlatDiscount); -} -/** Get Flat Discount %. -@return Flat discount percentage */ -public BigDecimal getFlatDiscount() -{ -BigDecimal bd = (BigDecimal)get_Value("FlatDiscount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name FlatDiscount */ -public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { +if (DeliveryViaRule == null || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - D - P - S"); if (DeliveryViaRule != null && DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Document Copies. + @param DocumentCopies + Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies) + { + set_ValueNoCheck (COLUMNNAME_DocumentCopies, Integer.valueOf(DocumentCopies)); + } + + /** Get Document Copies. + @return Number of copies to be printed + */ + public int getDocumentCopies () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocumentCopies); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set EMail User ID. + @param EMailUser + User Name (ID) in the Mail System + */ + public void setEMailUser (String EMailUser) + { + if (EMailUser != null && EMailUser.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMailUser = EMailUser.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_EMailUser, EMailUser); + } + + /** Get EMail User ID. + @return User Name (ID) in the Mail System + */ + public String getEMailUser () + { + return (String)get_Value(COLUMNNAME_EMailUser); + } + + /** Set Verification Info. + @param EMailVerify + Verification information of EMail Address + */ + public void setEMailVerify (String EMailVerify) + { + if (EMailVerify != null && EMailVerify.length() > 40) + { + log.warning("Length > 40 - truncated"); + EMailVerify = EMailVerify.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_EMailVerify, EMailVerify); + } + + /** Get Verification Info. + @return Verification information of EMail Address + */ + public String getEMailVerify () + { + return (String)get_Value(COLUMNNAME_EMailVerify); + } + + /** Set EMail Verify. + @param EMailVerifyDate + Date Email was verified + */ + public void setEMailVerifyDate (Timestamp EMailVerifyDate) + { + set_ValueNoCheck (COLUMNNAME_EMailVerifyDate, EMailVerifyDate); + } + + /** Get EMail Verify. + @return Date Email was verified + */ + public Timestamp getEMailVerifyDate () + { + return (Timestamp)get_Value(COLUMNNAME_EMailVerifyDate); + } + + /** Set Fax. + @param Fax + Facsimile number + */ + public void setFax (String Fax) + { + if (Fax != null && Fax.length() > 40) + { + log.warning("Length > 40 - truncated"); + Fax = Fax.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Fax, Fax); + } + + /** Get Fax. + @return Facsimile number + */ + public String getFax () + { + return (String)get_Value(COLUMNNAME_Fax); + } + + /** Set First Sale. + @param FirstSale + Date of First Sale + */ + public void setFirstSale (Timestamp FirstSale) + { + set_ValueNoCheck (COLUMNNAME_FirstSale, FirstSale); + } + + /** Get First Sale. + @return Date of First Sale + */ + public Timestamp getFirstSale () + { + return (Timestamp)get_Value(COLUMNNAME_FirstSale); + } + + /** Set Flat Discount %. + @param FlatDiscount + Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount) + { + set_ValueNoCheck (COLUMNNAME_FlatDiscount, FlatDiscount); + } + + /** Get Flat Discount %. + @return Flat discount percentage + */ + public BigDecimal getFlatDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FlatDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } /** FreightCostRule AD_Reference_ID=153 */ -public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; -/** Calculated = C */ -public static final String FREIGHTCOSTRULE_Calculated = "C"; -/** Fix price = F */ -public static final String FREIGHTCOSTRULE_FixPrice = "F"; -/** Freight included = I */ -public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; -/** Line = L */ +public static final int FREIGHTCOSTRULE_AD_Reference_ID=153;/** Calculated = C */ +public static final String FREIGHTCOSTRULE_Calculated = "C";/** Fix price = F */ +public static final String FREIGHTCOSTRULE_FixPrice = "F";/** Freight included = I */ +public static final String FREIGHTCOSTRULE_FreightIncluded = "I";/** Line = L */ public static final String FREIGHTCOSTRULE_Line = "L"; -/** Set Freight Cost Rule. -@param FreightCostRule Method for charging Freight */ -public void setFreightCostRule (String FreightCostRule) -{ -if (FreightCostRule == null || FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); - else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); -if (FreightCostRule != null && FreightCostRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FreightCostRule = FreightCostRule.substring(0,0); -} -set_ValueNoCheck ("FreightCostRule", FreightCostRule); -} -/** Get Freight Cost Rule. -@return Method for charging Freight */ -public String getFreightCostRule() -{ -return (String)get_Value("FreightCostRule"); -} -/** Column name FreightCostRule */ -public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { +if (FreightCostRule == null || FreightCostRule.equals("C") || FreightCostRule.equals("F") || FreightCostRule.equals("I") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - C - F - I - L"); if (FreightCostRule != null && FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } /** InvoiceRule AD_Reference_ID=150 */ -public static final int INVOICERULE_AD_Reference_ID=150; -/** After Delivery = D */ -public static final String INVOICERULE_AfterDelivery = "D"; -/** Immediate = I */ -public static final String INVOICERULE_Immediate = "I"; -/** After Order delivered = O */ -public static final String INVOICERULE_AfterOrderDelivered = "O"; -/** Customer Schedule after Delivery = S */ +public static final int INVOICERULE_AD_Reference_ID=150;/** After Delivery = D */ +public static final String INVOICERULE_AfterDelivery = "D";/** Immediate = I */ +public static final String INVOICERULE_Immediate = "I";/** After Order delivered = O */ +public static final String INVOICERULE_AfterOrderDelivered = "O";/** Customer Schedule after Delivery = S */ public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; -/** Set Invoice Rule. -@param InvoiceRule Frequency and method of invoicing */ -public void setInvoiceRule (String InvoiceRule) -{ -if (InvoiceRule == null || InvoiceRule.equals("D") || InvoiceRule.equals("I") || InvoiceRule.equals("O") || InvoiceRule.equals("S")); - else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - D - I - O - S"); -if (InvoiceRule != null && InvoiceRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -InvoiceRule = InvoiceRule.substring(0,0); -} -set_ValueNoCheck ("InvoiceRule", InvoiceRule); -} -/** Get Invoice Rule. -@return Frequency and method of invoicing */ -public String getInvoiceRule() -{ -return (String)get_Value("InvoiceRule"); -} -/** Column name InvoiceRule */ -public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + /** Set Invoice Rule. + @param InvoiceRule + Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule) + { +if (InvoiceRule == null || InvoiceRule.equals("D") || InvoiceRule.equals("I") || InvoiceRule.equals("O") || InvoiceRule.equals("S")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - D - I - O - S"); if (InvoiceRule != null && InvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceRule = InvoiceRule.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_InvoiceRule, InvoiceRule); + } + + /** Get Invoice Rule. + @return Frequency and method of invoicing + */ + public String getInvoiceRule () + { + return (String)get_Value(COLUMNNAME_InvoiceRule); + } /** Invoice_PrintFormat_ID AD_Reference_ID=259 */ public static final int INVOICE_PRINTFORMAT_ID_AD_Reference_ID=259; -/** Set Invoice Print Format. -@param Invoice_PrintFormat_ID Print Format for printing Invoices */ -public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) -{ -if (Invoice_PrintFormat_ID <= 0) set_ValueNoCheck ("Invoice_PrintFormat_ID", null); - else -set_ValueNoCheck ("Invoice_PrintFormat_ID", Integer.valueOf(Invoice_PrintFormat_ID)); -} -/** Get Invoice Print Format. -@return Print Format for printing Invoices */ -public int getInvoice_PrintFormat_ID() -{ -Integer ii = (Integer)get_Value("Invoice_PrintFormat_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Invoice_PrintFormat_ID */ -public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; -/** Set Customer. -@param IsCustomer Indicates if this Business Partner is a Customer */ -public void setIsCustomer (boolean IsCustomer) -{ -set_ValueNoCheck ("IsCustomer", Boolean.valueOf(IsCustomer)); -} -/** Get Customer. -@return Indicates if this Business Partner is a Customer */ -public boolean isCustomer() -{ -Object oo = get_Value("IsCustomer"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsCustomer */ -public static final String COLUMNNAME_IsCustomer = "IsCustomer"; -/** Set Discount Printed. -@param IsDiscountPrinted Print Discount on Invoice and Order */ -public void setIsDiscountPrinted (boolean IsDiscountPrinted) -{ -set_ValueNoCheck ("IsDiscountPrinted", Boolean.valueOf(IsDiscountPrinted)); -} -/** Get Discount Printed. -@return Print Discount on Invoice and Order */ -public boolean isDiscountPrinted() -{ -Object oo = get_Value("IsDiscountPrinted"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDiscountPrinted */ -public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; -/** Set Employee. -@param IsEmployee Indicates if this Business Partner is an employee */ -public void setIsEmployee (boolean IsEmployee) -{ -set_ValueNoCheck ("IsEmployee", Boolean.valueOf(IsEmployee)); -} -/** Get Employee. -@return Indicates if this Business Partner is an employee */ -public boolean isEmployee() -{ -Object oo = get_Value("IsEmployee"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEmployee */ -public static final String COLUMNNAME_IsEmployee = "IsEmployee"; -/** Set One time transaction. -@param IsOneTime One time transaction */ -public void setIsOneTime (boolean IsOneTime) -{ -set_ValueNoCheck ("IsOneTime", Boolean.valueOf(IsOneTime)); -} -/** Get One time transaction. -@return One time transaction */ -public boolean isOneTime() -{ -Object oo = get_Value("IsOneTime"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOneTime */ -public static final String COLUMNNAME_IsOneTime = "IsOneTime"; -/** Set Prospect. -@param IsProspect Indicates this is a Prospect */ -public void setIsProspect (boolean IsProspect) -{ -set_ValueNoCheck ("IsProspect", Boolean.valueOf(IsProspect)); -} -/** Get Prospect. -@return Indicates this is a Prospect */ -public boolean isProspect() -{ -Object oo = get_Value("IsProspect"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsProspect */ -public static final String COLUMNNAME_IsProspect = "IsProspect"; -/** Set Sales Representative. -@param IsSalesRep Indicates if the business partner is a sales representative or company agent */ -public void setIsSalesRep (boolean IsSalesRep) -{ -set_ValueNoCheck ("IsSalesRep", Boolean.valueOf(IsSalesRep)); -} -/** Get Sales Representative. -@return Indicates if the business partner is a sales representative or company agent */ -public boolean isSalesRep() -{ -Object oo = get_Value("IsSalesRep"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSalesRep */ -public static final String COLUMNNAME_IsSalesRep = "IsSalesRep"; -/** Set Summary Level. -@param IsSummary This is a summary entity */ -public void setIsSummary (boolean IsSummary) -{ -set_ValueNoCheck ("IsSummary", Boolean.valueOf(IsSummary)); -} -/** Get Summary Level. -@return This is a summary entity */ -public boolean isSummary() -{ -Object oo = get_Value("IsSummary"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSummary */ -public static final String COLUMNNAME_IsSummary = "IsSummary"; -/** Set Tax exempt. -@param IsTaxExempt Business partner is exempt from tax */ -public void setIsTaxExempt (boolean IsTaxExempt) -{ -set_ValueNoCheck ("IsTaxExempt", Boolean.valueOf(IsTaxExempt)); -} -/** Get Tax exempt. -@return Business partner is exempt from tax */ -public boolean isTaxExempt() -{ -Object oo = get_Value("IsTaxExempt"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTaxExempt */ -public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; -/** Set Vendor. -@param IsVendor Indicates if this Business Partner is a Vendor */ -public void setIsVendor (boolean IsVendor) -{ -set_ValueNoCheck ("IsVendor", Boolean.valueOf(IsVendor)); -} -/** Get Vendor. -@return Indicates if this Business Partner is a Vendor */ -public boolean isVendor() -{ -Object oo = get_Value("IsVendor"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsVendor */ -public static final String COLUMNNAME_IsVendor = "IsVendor"; -/** Set LDAP User Name. -@param LDAPUser User Name used for authorization via LDAP (directory) services */ -public void setLDAPUser (boolean LDAPUser) -{ -set_ValueNoCheck ("LDAPUser", Boolean.valueOf(LDAPUser)); -} -/** Get LDAP User Name. -@return User Name used for authorization via LDAP (directory) services */ -public boolean isLDAPUser() -{ -Object oo = get_Value("LDAPUser"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name LDAPUser */ -public static final String COLUMNNAME_LDAPUser = "LDAPUser"; -/** Set Last Contact. -@param LastContact Date this individual was last contacted */ -public void setLastContact (Timestamp LastContact) -{ -set_ValueNoCheck ("LastContact", LastContact); -} -/** Get Last Contact. -@return Date this individual was last contacted */ -public Timestamp getLastContact() -{ -return (Timestamp)get_Value("LastContact"); -} -/** Column name LastContact */ -public static final String COLUMNNAME_LastContact = "LastContact"; -/** Set Last Result. -@param LastResult Result of last contact */ -public void setLastResult (String LastResult) -{ -if (LastResult != null && LastResult.length() > 255) -{ -log.warning("Length > 255 - truncated"); -LastResult = LastResult.substring(0,254); -} -set_ValueNoCheck ("LastResult", LastResult); -} -/** Get Last Result. -@return Result of last contact */ -public String getLastResult() -{ -return (String)get_Value("LastResult"); -} -/** Column name LastResult */ -public static final String COLUMNNAME_LastResult = "LastResult"; -/** Set Discount Schema. -@param M_DiscountSchema_ID Schema to calculate the trade discount percentage */ -public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) -{ -if (M_DiscountSchema_ID <= 0) set_ValueNoCheck ("M_DiscountSchema_ID", null); - else -set_ValueNoCheck ("M_DiscountSchema_ID", Integer.valueOf(M_DiscountSchema_ID)); -} -/** Get Discount Schema. -@return Schema to calculate the trade discount percentage */ -public int getM_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("M_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DiscountSchema_ID */ -public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID <= 0) set_ValueNoCheck ("M_PriceList_ID", null); - else -set_ValueNoCheck ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set NAICS/SIC. -@param NAICS Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html */ -public void setNAICS (String NAICS) -{ -if (NAICS != null && NAICS.length() > 6) -{ -log.warning("Length > 6 - truncated"); -NAICS = NAICS.substring(0,5); -} -set_ValueNoCheck ("NAICS", NAICS); -} -/** Get NAICS/SIC. -@return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html */ -public String getNAICS() -{ -return (String)get_Value("NAICS"); -} -/** Column name NAICS */ -public static final String COLUMNNAME_NAICS = "NAICS"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_ValueNoCheck ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Name 2. -@param Name2 Additional Name */ -public void setName2 (String Name2) -{ -if (Name2 != null && Name2.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name2 = Name2.substring(0,59); -} -set_ValueNoCheck ("Name2", Name2); -} -/** Get Name 2. -@return Additional Name */ -public String getName2() -{ -return (String)get_Value("Name2"); -} -/** Column name Name2 */ -public static final String COLUMNNAME_Name2 = "Name2"; + /** Set Invoice Print Format. + @param Invoice_PrintFormat_ID + Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) + { + if (Invoice_PrintFormat_ID <= 0) set_ValueNoCheck (COLUMNNAME_Invoice_PrintFormat_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Invoice_PrintFormat_ID, Integer.valueOf(Invoice_PrintFormat_ID)); + } + + /** Get Invoice Print Format. + @return Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer. + @param IsCustomer + Indicates if this Business Partner is a Customer + */ + public void setIsCustomer (boolean IsCustomer) + { + set_ValueNoCheck (COLUMNNAME_IsCustomer, Boolean.valueOf(IsCustomer)); + } + + /** Get Customer. + @return Indicates if this Business Partner is a Customer + */ + public boolean isCustomer () + { + Object oo = get_Value(COLUMNNAME_IsCustomer); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Employee. + @param IsEmployee + Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee) + { + set_ValueNoCheck (COLUMNNAME_IsEmployee, Boolean.valueOf(IsEmployee)); + } + + /** Get Employee. + @return Indicates if this Business Partner is an employee + */ + public boolean isEmployee () + { + Object oo = get_Value(COLUMNNAME_IsEmployee); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set One time transaction. + @param IsOneTime One time transaction */ + public void setIsOneTime (boolean IsOneTime) + { + set_ValueNoCheck (COLUMNNAME_IsOneTime, Boolean.valueOf(IsOneTime)); + } + + /** Get One time transaction. +@return One time transaction */ + public boolean isOneTime () + { + Object oo = get_Value(COLUMNNAME_IsOneTime); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Prospect. + @param IsProspect + Indicates this is a Prospect + */ + public void setIsProspect (boolean IsProspect) + { + set_ValueNoCheck (COLUMNNAME_IsProspect, Boolean.valueOf(IsProspect)); + } + + /** Get Prospect. + @return Indicates this is a Prospect + */ + public boolean isProspect () + { + Object oo = get_Value(COLUMNNAME_IsProspect); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Representative. + @param IsSalesRep + Indicates if the business partner is a sales representative or company agent + */ + public void setIsSalesRep (boolean IsSalesRep) + { + set_ValueNoCheck (COLUMNNAME_IsSalesRep, Boolean.valueOf(IsSalesRep)); + } + + /** Get Sales Representative. + @return Indicates if the business partner is a sales representative or company agent + */ + public boolean isSalesRep () + { + Object oo = get_Value(COLUMNNAME_IsSalesRep); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_ValueNoCheck (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax exempt. + @param IsTaxExempt + Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt) + { + set_ValueNoCheck (COLUMNNAME_IsTaxExempt, Boolean.valueOf(IsTaxExempt)); + } + + /** Get Tax exempt. + @return Business partner is exempt from tax + */ + public boolean isTaxExempt () + { + Object oo = get_Value(COLUMNNAME_IsTaxExempt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Vendor. + @param IsVendor + Indicates if this Business Partner is a Vendor + */ + public void setIsVendor (boolean IsVendor) + { + set_ValueNoCheck (COLUMNNAME_IsVendor, Boolean.valueOf(IsVendor)); + } + + /** Get Vendor. + @return Indicates if this Business Partner is a Vendor + */ + public boolean isVendor () + { + Object oo = get_Value(COLUMNNAME_IsVendor); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set LDAP User Name. + @param LDAPUser + User Name used for authorization via LDAP (directory) services + */ + public void setLDAPUser (boolean LDAPUser) + { + set_ValueNoCheck (COLUMNNAME_LDAPUser, Boolean.valueOf(LDAPUser)); + } + + /** Get LDAP User Name. + @return User Name used for authorization via LDAP (directory) services + */ + public boolean isLDAPUser () + { + Object oo = get_Value(COLUMNNAME_LDAPUser); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Last Contact. + @param LastContact + Date this individual was last contacted + */ + public void setLastContact (Timestamp LastContact) + { + set_ValueNoCheck (COLUMNNAME_LastContact, LastContact); + } + + /** Get Last Contact. + @return Date this individual was last contacted + */ + public Timestamp getLastContact () + { + return (Timestamp)get_Value(COLUMNNAME_LastContact); + } + + /** Set Last Result. + @param LastResult + Result of last contact + */ + public void setLastResult (String LastResult) + { + if (LastResult != null && LastResult.length() > 255) + { + log.warning("Length > 255 - truncated"); + LastResult = LastResult.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_LastResult, LastResult); + } + + /** Get Last Result. + @return Result of last contact + */ + public String getLastResult () + { + return (String)get_Value(COLUMNNAME_LastResult); + } + + public I_M_DiscountSchema getI_M_DiscountSchema() throws Exception + { + 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 e; + } + return result; + } + + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set NAICS/SIC. + @param NAICS + Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS) + { + if (NAICS != null && NAICS.length() > 6) + { + log.warning("Length > 6 - truncated"); + NAICS = NAICS.substring(0, 5); + } + set_ValueNoCheck (COLUMNNAME_NAICS, NAICS); + } + + /** Get NAICS/SIC. + @return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS () + { + return (String)get_Value(COLUMNNAME_NAICS); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Name 2. + @param Name2 + Additional Name + */ + public void setName2 (String Name2) + { + if (Name2 != null && Name2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name2 = Name2.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Name2, Name2); + } + + /** Get Name 2. + @return Additional Name + */ + public String getName2 () + { + return (String)get_Value(COLUMNNAME_Name2); + } /** NotificationType AD_Reference_ID=344 */ -public static final int NOTIFICATIONTYPE_AD_Reference_ID=344; -/** EMail+Notice = B */ -public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B"; -/** EMail = E */ -public static final String NOTIFICATIONTYPE_EMail = "E"; -/** Notice = N */ -public static final String NOTIFICATIONTYPE_Notice = "N"; -/** None = X */ +public static final int NOTIFICATIONTYPE_AD_Reference_ID=344;/** EMail+Notice = B */ +public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B";/** EMail = E */ +public static final String NOTIFICATIONTYPE_EMail = "E";/** Notice = N */ +public static final String NOTIFICATIONTYPE_Notice = "N";/** None = X */ public static final String NOTIFICATIONTYPE_None = "X"; -/** Set Notification Type. -@param NotificationType Type of Notifications */ -public void setNotificationType (String NotificationType) -{ -if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory"); -if (NotificationType.equals("B") || NotificationType.equals("E") || NotificationType.equals("N") || NotificationType.equals("X")); - else throw new IllegalArgumentException ("NotificationType Invalid value - " + NotificationType + " - Reference_ID=344 - B - E - N - X"); -if (NotificationType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -NotificationType = NotificationType.substring(0,0); -} -set_ValueNoCheck ("NotificationType", NotificationType); -} -/** Get Notification Type. -@return Type of Notifications */ -public String getNotificationType() -{ -return (String)get_Value("NotificationType"); -} -/** Column name NotificationType */ -public static final String COLUMNNAME_NotificationType = "NotificationType"; -/** Set Employees. -@param NumberEmployees Number of employees */ -public void setNumberEmployees (int NumberEmployees) -{ -set_ValueNoCheck ("NumberEmployees", Integer.valueOf(NumberEmployees)); -} -/** Get Employees. -@return Number of employees */ -public int getNumberEmployees() -{ -Integer ii = (Integer)get_Value("NumberEmployees"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name NumberEmployees */ -public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; -/** Set Order Reference. -@param POReference Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public void setPOReference (String POReference) -{ -if (POReference != null && POReference.length() > 20) -{ -log.warning("Length > 20 - truncated"); -POReference = POReference.substring(0,19); -} -set_ValueNoCheck ("POReference", POReference); -} -/** Get Order Reference. -@return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner */ -public String getPOReference() -{ -return (String)get_Value("POReference"); -} -/** Column name POReference */ -public static final String COLUMNNAME_POReference = "POReference"; + /** Set Notification Type. + @param NotificationType + Type of Notifications + */ + public void setNotificationType (String NotificationType) + { +if (NotificationType == null) throw new IllegalArgumentException ("NotificationType is mandatory");if (NotificationType.equals("B") || NotificationType.equals("E") || NotificationType.equals("N") || NotificationType.equals("X")); else throw new IllegalArgumentException ("NotificationType Invalid value - " + NotificationType + " - Reference_ID=344 - B - E - N - X"); if (NotificationType.length() > 1) + { + log.warning("Length > 1 - truncated"); + NotificationType = NotificationType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_NotificationType, NotificationType); + } + + /** Get Notification Type. + @return Type of Notifications + */ + public String getNotificationType () + { + return (String)get_Value(COLUMNNAME_NotificationType); + } + + /** Set Employees. + @param NumberEmployees + Number of employees + */ + public void setNumberEmployees (int NumberEmployees) + { + set_ValueNoCheck (COLUMNNAME_NumberEmployees, Integer.valueOf(NumberEmployees)); + } + + /** Get Employees. + @return Number of employees + */ + public int getNumberEmployees () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NumberEmployees); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } /** PO_DiscountSchema_ID AD_Reference_ID=249 */ public static final int PO_DISCOUNTSCHEMA_ID_AD_Reference_ID=249; -/** Set PO Discount Schema. -@param PO_DiscountSchema_ID Schema to calculate the purchase trade discount percentage */ -public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) -{ -if (PO_DiscountSchema_ID <= 0) set_ValueNoCheck ("PO_DiscountSchema_ID", null); - else -set_ValueNoCheck ("PO_DiscountSchema_ID", Integer.valueOf(PO_DiscountSchema_ID)); -} -/** Get PO Discount Schema. -@return Schema to calculate the purchase trade discount percentage */ -public int getPO_DiscountSchema_ID() -{ -Integer ii = (Integer)get_Value("PO_DiscountSchema_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_DiscountSchema_ID */ -public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + /** Set PO Discount Schema. + @param PO_DiscountSchema_ID + Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) + { + if (PO_DiscountSchema_ID <= 0) set_ValueNoCheck (COLUMNNAME_PO_DiscountSchema_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PO_DiscountSchema_ID, Integer.valueOf(PO_DiscountSchema_ID)); + } + + /** Get PO Discount Schema. + @return Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PO_PaymentTerm_ID AD_Reference_ID=227 */ public static final int PO_PAYMENTTERM_ID_AD_Reference_ID=227; -/** Set PO Payment Term. -@param PO_PaymentTerm_ID Payment rules for a purchase order */ -public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID) -{ -if (PO_PaymentTerm_ID <= 0) set_ValueNoCheck ("PO_PaymentTerm_ID", null); - else -set_ValueNoCheck ("PO_PaymentTerm_ID", Integer.valueOf(PO_PaymentTerm_ID)); -} -/** Get PO Payment Term. -@return Payment rules for a purchase order */ -public int getPO_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("PO_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_PaymentTerm_ID */ -public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; + /** Set PO Payment Term. + @param PO_PaymentTerm_ID + Payment rules for a purchase order + */ + public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID) + { + if (PO_PaymentTerm_ID <= 0) set_ValueNoCheck (COLUMNNAME_PO_PaymentTerm_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PO_PaymentTerm_ID, Integer.valueOf(PO_PaymentTerm_ID)); + } + + /** Get PO Payment Term. + @return Payment rules for a purchase order + */ + public int getPO_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PO_PriceList_ID AD_Reference_ID=166 */ public static final int PO_PRICELIST_ID_AD_Reference_ID=166; -/** Set Purchase Pricelist. -@param PO_PriceList_ID Price List used by this Business Partner */ -public void setPO_PriceList_ID (int PO_PriceList_ID) -{ -if (PO_PriceList_ID <= 0) set_ValueNoCheck ("PO_PriceList_ID", null); - else -set_ValueNoCheck ("PO_PriceList_ID", Integer.valueOf(PO_PriceList_ID)); -} -/** Get Purchase Pricelist. -@return Price List used by this Business Partner */ -public int getPO_PriceList_ID() -{ -Integer ii = (Integer)get_Value("PO_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PO_PriceList_ID */ -public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; + /** Set Purchase Pricelist. + @param PO_PriceList_ID + Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID) + { + if (PO_PriceList_ID <= 0) set_ValueNoCheck (COLUMNNAME_PO_PriceList_ID, null); + else + set_ValueNoCheck (COLUMNNAME_PO_PriceList_ID, Integer.valueOf(PO_PriceList_ID)); + } + + /** Get Purchase Pricelist. + @return Price List used by this Business Partner + */ + public int getPO_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** PaymentRule AD_Reference_ID=195 */ -public static final int PAYMENTRULE_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULE_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULE_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULE_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULE_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULE_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULE_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULE_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULE_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULE_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULE_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULE_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULE_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRule How you pay the invoice */ -public void setPaymentRule (String PaymentRule) -{ -if (PaymentRule == null || PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); - else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRule != null && PaymentRule.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRule = PaymentRule.substring(0,0); -} -set_ValueNoCheck ("PaymentRule", PaymentRule); -} -/** Get Payment Rule. -@return How you pay the invoice */ -public String getPaymentRule() -{ -return (String)get_Value("PaymentRule"); -} -/** Column name PaymentRule */ -public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { +if (PaymentRule == null || PaymentRule.equals("B") || PaymentRule.equals("D") || PaymentRule.equals("K") || PaymentRule.equals("P") || PaymentRule.equals("S") || PaymentRule.equals("T")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRule != null && PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } /** PaymentRulePO AD_Reference_ID=195 */ -public static final int PAYMENTRULEPO_AD_Reference_ID=195; -/** Cash = B */ -public static final String PAYMENTRULEPO_Cash = "B"; -/** Direct Debit = D */ -public static final String PAYMENTRULEPO_DirectDebit = "D"; -/** Credit Card = K */ -public static final String PAYMENTRULEPO_CreditCard = "K"; -/** On Credit = P */ -public static final String PAYMENTRULEPO_OnCredit = "P"; -/** Check = S */ -public static final String PAYMENTRULEPO_Check = "S"; -/** Direct Deposit = T */ +public static final int PAYMENTRULEPO_AD_Reference_ID=195;/** Cash = B */ +public static final String PAYMENTRULEPO_Cash = "B";/** Direct Debit = D */ +public static final String PAYMENTRULEPO_DirectDebit = "D";/** Credit Card = K */ +public static final String PAYMENTRULEPO_CreditCard = "K";/** On Credit = P */ +public static final String PAYMENTRULEPO_OnCredit = "P";/** Check = S */ +public static final String PAYMENTRULEPO_Check = "S";/** Direct Deposit = T */ public static final String PAYMENTRULEPO_DirectDeposit = "T"; -/** Set Payment Rule. -@param PaymentRulePO Purchase payment option */ -public void setPaymentRulePO (String PaymentRulePO) -{ -if (PaymentRulePO == null || PaymentRulePO.equals("B") || PaymentRulePO.equals("D") || PaymentRulePO.equals("K") || PaymentRulePO.equals("P") || PaymentRulePO.equals("S") || PaymentRulePO.equals("T")); - else throw new IllegalArgumentException ("PaymentRulePO Invalid value - " + PaymentRulePO + " - Reference_ID=195 - B - D - K - P - S - T"); -if (PaymentRulePO != null && PaymentRulePO.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PaymentRulePO = PaymentRulePO.substring(0,0); -} -set_ValueNoCheck ("PaymentRulePO", PaymentRulePO); -} -/** Get Payment Rule. -@return Purchase payment option */ -public String getPaymentRulePO() -{ -return (String)get_Value("PaymentRulePO"); -} -/** Column name PaymentRulePO */ -public static final String COLUMNNAME_PaymentRulePO = "PaymentRulePO"; -/** Set Phone. -@param Phone Identifies a telephone number */ -public void setPhone (String Phone) -{ -if (Phone != null && Phone.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone = Phone.substring(0,39); -} -set_ValueNoCheck ("Phone", Phone); -} -/** Get Phone. -@return Identifies a telephone number */ -public String getPhone() -{ -return (String)get_Value("Phone"); -} -/** Column name Phone */ -public static final String COLUMNNAME_Phone = "Phone"; -/** Set 2nd Phone. -@param Phone2 Identifies an alternate telephone number. */ -public void setPhone2 (String Phone2) -{ -if (Phone2 != null && Phone2.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Phone2 = Phone2.substring(0,39); -} -set_ValueNoCheck ("Phone2", Phone2); -} -/** Get 2nd Phone. -@return Identifies an alternate telephone number. */ -public String getPhone2() -{ -return (String)get_Value("Phone2"); -} -/** Column name Phone2 */ -public static final String COLUMNNAME_Phone2 = "Phone2"; -/** Set ZIP. -@param Postal Postal code */ -public void setPostal (String Postal) -{ -if (Postal != null && Postal.length() > 10) -{ -log.warning("Length > 10 - truncated"); -Postal = Postal.substring(0,9); -} -set_ValueNoCheck ("Postal", Postal); -} -/** Get ZIP. -@return Postal code */ -public String getPostal() -{ -return (String)get_Value("Postal"); -} -/** Column name Postal */ -public static final String COLUMNNAME_Postal = "Postal"; -/** Set Potential Life Time Value. -@param PotentialLifeTimeValue Total Revenue expected */ -public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue) -{ -set_ValueNoCheck ("PotentialLifeTimeValue", PotentialLifeTimeValue); -} -/** Get Potential Life Time Value. -@return Total Revenue expected */ -public BigDecimal getPotentialLifeTimeValue() -{ -BigDecimal bd = (BigDecimal)get_Value("PotentialLifeTimeValue"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PotentialLifeTimeValue */ -public static final String COLUMNNAME_PotentialLifeTimeValue = "PotentialLifeTimeValue"; -/** Set Rating. -@param Rating Classification or Importance */ -public void setRating (String Rating) -{ -if (Rating != null && Rating.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Rating = Rating.substring(0,0); -} -set_ValueNoCheck ("Rating", Rating); -} -/** Get Rating. -@return Classification or Importance */ -public String getRating() -{ -return (String)get_Value("Rating"); -} -/** Column name Rating */ -public static final String COLUMNNAME_Rating = "Rating"; -/** Set Reference No. -@param ReferenceNo Your customer or vendor number at the Business Partner's site */ -public void setReferenceNo (String ReferenceNo) -{ -if (ReferenceNo != null && ReferenceNo.length() > 40) -{ -log.warning("Length > 40 - truncated"); -ReferenceNo = ReferenceNo.substring(0,39); -} -set_ValueNoCheck ("ReferenceNo", ReferenceNo); -} -/** Get Reference No. -@return Your customer or vendor number at the Business Partner's site */ -public String getReferenceNo() -{ -return (String)get_Value("ReferenceNo"); -} -/** Column name ReferenceNo */ -public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; -/** Set Region. -@param RegionName Name of the Region */ -public void setRegionName (String RegionName) -{ -if (RegionName != null && RegionName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -RegionName = RegionName.substring(0,59); -} -set_ValueNoCheck ("RegionName", RegionName); -} -/** Get Region. -@return Name of the Region */ -public String getRegionName() -{ -return (String)get_Value("RegionName"); -} -/** Column name RegionName */ -public static final String COLUMNNAME_RegionName = "RegionName"; + /** Set Payment Rule. + @param PaymentRulePO + Purchase payment option + */ + public void setPaymentRulePO (String PaymentRulePO) + { +if (PaymentRulePO == null || PaymentRulePO.equals("B") || PaymentRulePO.equals("D") || PaymentRulePO.equals("K") || PaymentRulePO.equals("P") || PaymentRulePO.equals("S") || PaymentRulePO.equals("T")); else throw new IllegalArgumentException ("PaymentRulePO Invalid value - " + PaymentRulePO + " - Reference_ID=195 - B - D - K - P - S - T"); if (PaymentRulePO != null && PaymentRulePO.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRulePO = PaymentRulePO.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_PaymentRulePO, PaymentRulePO); + } + + /** Get Payment Rule. + @return Purchase payment option + */ + public String getPaymentRulePO () + { + return (String)get_Value(COLUMNNAME_PaymentRulePO); + } + + /** Set Phone. + @param Phone + Identifies a telephone number + */ + public void setPhone (String Phone) + { + if (Phone != null && Phone.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone = Phone.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Phone, Phone); + } + + /** Get Phone. + @return Identifies a telephone number + */ + public String getPhone () + { + return (String)get_Value(COLUMNNAME_Phone); + } + + /** Set 2nd Phone. + @param Phone2 + Identifies an alternate telephone number. + */ + public void setPhone2 (String Phone2) + { + if (Phone2 != null && Phone2.length() > 40) + { + log.warning("Length > 40 - truncated"); + Phone2 = Phone2.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Phone2, Phone2); + } + + /** Get 2nd Phone. + @return Identifies an alternate telephone number. + */ + public String getPhone2 () + { + return (String)get_Value(COLUMNNAME_Phone2); + } + + /** Set ZIP. + @param Postal + Postal code + */ + public void setPostal (String Postal) + { + if (Postal != null && Postal.length() > 10) + { + log.warning("Length > 10 - truncated"); + Postal = Postal.substring(0, 9); + } + set_ValueNoCheck (COLUMNNAME_Postal, Postal); + } + + /** Get ZIP. + @return Postal code + */ + public String getPostal () + { + return (String)get_Value(COLUMNNAME_Postal); + } + + /** Set Potential Life Time Value. + @param PotentialLifeTimeValue + Total Revenue expected + */ + public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue) + { + set_ValueNoCheck (COLUMNNAME_PotentialLifeTimeValue, PotentialLifeTimeValue); + } + + /** Get Potential Life Time Value. + @return Total Revenue expected + */ + public BigDecimal getPotentialLifeTimeValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PotentialLifeTimeValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Rating. + @param Rating + Classification or Importance + */ + public void setRating (String Rating) + { + if (Rating != null && Rating.length() > 1) + { + log.warning("Length > 1 - truncated"); + Rating = Rating.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_Rating, Rating); + } + + /** Get Rating. + @return Classification or Importance + */ + public String getRating () + { + return (String)get_Value(COLUMNNAME_Rating); + } + + /** Set Reference No. + @param ReferenceNo + Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo) + { + if (ReferenceNo != null && ReferenceNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + ReferenceNo = ReferenceNo.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_ReferenceNo, ReferenceNo); + } + + /** Get Reference No. + @return Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo () + { + return (String)get_Value(COLUMNNAME_ReferenceNo); + } + + /** Set Region. + @param RegionName + Name of the Region + */ + public void setRegionName (String RegionName) + { + if (RegionName != null && RegionName.length() > 60) + { + log.warning("Length > 60 - truncated"); + RegionName = RegionName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_RegionName, RegionName); + } + + /** Get Region. + @return Name of the Region + */ + public String getRegionName () + { + return (String)get_Value(COLUMNNAME_RegionName); + } /** SOCreditStatus AD_Reference_ID=289 */ -public static final int SOCREDITSTATUS_AD_Reference_ID=289; -/** Credit Hold = H */ -public static final String SOCREDITSTATUS_CreditHold = "H"; -/** Credit OK = O */ -public static final String SOCREDITSTATUS_CreditOK = "O"; -/** Credit Stop = S */ -public static final String SOCREDITSTATUS_CreditStop = "S"; -/** Credit Watch = W */ -public static final String SOCREDITSTATUS_CreditWatch = "W"; -/** No Credit Check = X */ +public static final int SOCREDITSTATUS_AD_Reference_ID=289;/** Credit Hold = H */ +public static final String SOCREDITSTATUS_CreditHold = "H";/** Credit OK = O */ +public static final String SOCREDITSTATUS_CreditOK = "O";/** Credit Stop = S */ +public static final String SOCREDITSTATUS_CreditStop = "S";/** Credit Watch = W */ +public static final String SOCREDITSTATUS_CreditWatch = "W";/** No Credit Check = X */ public static final String SOCREDITSTATUS_NoCreditCheck = "X"; -/** Set Credit Status. -@param SOCreditStatus Business Partner Credit Status */ -public void setSOCreditStatus (String SOCreditStatus) -{ -if (SOCreditStatus == null || SOCreditStatus.equals("H") || SOCreditStatus.equals("O") || SOCreditStatus.equals("S") || SOCreditStatus.equals("W") || SOCreditStatus.equals("X")); - else throw new IllegalArgumentException ("SOCreditStatus Invalid value - " + SOCreditStatus + " - Reference_ID=289 - H - O - S - W - X"); -if (SOCreditStatus != null && SOCreditStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SOCreditStatus = SOCreditStatus.substring(0,0); -} -set_ValueNoCheck ("SOCreditStatus", SOCreditStatus); -} -/** Get Credit Status. -@return Business Partner Credit Status */ -public String getSOCreditStatus() -{ -return (String)get_Value("SOCreditStatus"); -} -/** Column name SOCreditStatus */ -public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; -/** Set Credit Available. -@param SO_CreditAvailable Available Credit based on Credit Limit (not Total Open Balance) and Credit Used */ -public void setSO_CreditAvailable (BigDecimal SO_CreditAvailable) -{ -set_ValueNoCheck ("SO_CreditAvailable", SO_CreditAvailable); -} -/** Get Credit Available. -@return Available Credit based on Credit Limit (not Total Open Balance) and Credit Used */ -public BigDecimal getSO_CreditAvailable() -{ -BigDecimal bd = (BigDecimal)get_Value("SO_CreditAvailable"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SO_CreditAvailable */ -public static final String COLUMNNAME_SO_CreditAvailable = "SO_CreditAvailable"; -/** Set Credit Limit. -@param SO_CreditLimit Total outstanding invoice amounts allowed */ -public void setSO_CreditLimit (BigDecimal SO_CreditLimit) -{ -set_ValueNoCheck ("SO_CreditLimit", SO_CreditLimit); -} -/** Get Credit Limit. -@return Total outstanding invoice amounts allowed */ -public BigDecimal getSO_CreditLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("SO_CreditLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SO_CreditLimit */ -public static final String COLUMNNAME_SO_CreditLimit = "SO_CreditLimit"; -/** Set Credit Used. -@param SO_CreditUsed Current open balance */ -public void setSO_CreditUsed (BigDecimal SO_CreditUsed) -{ -set_ValueNoCheck ("SO_CreditUsed", SO_CreditUsed); -} -/** Get Credit Used. -@return Current open balance */ -public BigDecimal getSO_CreditUsed() -{ -BigDecimal bd = (BigDecimal)get_Value("SO_CreditUsed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SO_CreditUsed */ -public static final String COLUMNNAME_SO_CreditUsed = "SO_CreditUsed"; -/** Set Order Description. -@param SO_Description Description to be used on orders */ -public void setSO_Description (String SO_Description) -{ -if (SO_Description != null && SO_Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -SO_Description = SO_Description.substring(0,254); -} -set_ValueNoCheck ("SO_Description", SO_Description); -} -/** Get Order Description. -@return Description to be used on orders */ -public String getSO_Description() -{ -return (String)get_Value("SO_Description"); -} -/** Column name SO_Description */ -public static final String COLUMNNAME_SO_Description = "SO_Description"; + /** Set Credit Status. + @param SOCreditStatus + Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus) + { +if (SOCreditStatus == null || SOCreditStatus.equals("H") || SOCreditStatus.equals("O") || SOCreditStatus.equals("S") || SOCreditStatus.equals("W") || SOCreditStatus.equals("X")); else throw new IllegalArgumentException ("SOCreditStatus Invalid value - " + SOCreditStatus + " - Reference_ID=289 - H - O - S - W - X"); if (SOCreditStatus != null && SOCreditStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SOCreditStatus = SOCreditStatus.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_SOCreditStatus, SOCreditStatus); + } + + /** Get Credit Status. + @return Business Partner Credit Status + */ + public String getSOCreditStatus () + { + return (String)get_Value(COLUMNNAME_SOCreditStatus); + } + + /** Set Credit Available. + @param SO_CreditAvailable + Available Credit based on Credit Limit (not Total Open Balance) and Credit Used + */ + public void setSO_CreditAvailable (BigDecimal SO_CreditAvailable) + { + set_ValueNoCheck (COLUMNNAME_SO_CreditAvailable, SO_CreditAvailable); + } + + /** Get Credit Available. + @return Available Credit based on Credit Limit (not Total Open Balance) and Credit Used + */ + public BigDecimal getSO_CreditAvailable () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditAvailable); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Credit Limit. + @param SO_CreditLimit + Total outstanding invoice amounts allowed + */ + public void setSO_CreditLimit (BigDecimal SO_CreditLimit) + { + set_ValueNoCheck (COLUMNNAME_SO_CreditLimit, SO_CreditLimit); + } + + /** Get Credit Limit. + @return Total outstanding invoice amounts allowed + */ + public BigDecimal getSO_CreditLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Credit Used. + @param SO_CreditUsed + Current open balance + */ + public void setSO_CreditUsed (BigDecimal SO_CreditUsed) + { + set_ValueNoCheck (COLUMNNAME_SO_CreditUsed, SO_CreditUsed); + } + + /** Get Credit Used. + @return Current open balance + */ + public BigDecimal getSO_CreditUsed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditUsed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Order Description. + @param SO_Description + Description to be used on orders + */ + public void setSO_Description (String SO_Description) + { + if (SO_Description != null && SO_Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + SO_Description = SO_Description.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_SO_Description, SO_Description); + } + + /** Get Order Description. + @return Description to be used on orders + */ + public String getSO_Description () + { + return (String)get_Value(COLUMNNAME_SO_Description); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_ValueNoCheck ("SalesRep_ID", null); - else -set_ValueNoCheck ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Sales Volume in 1.000. -@param SalesVolume Total Volume of Sales in Thousands of Currency */ -public void setSalesVolume (BigDecimal SalesVolume) -{ -set_ValueNoCheck ("SalesVolume", SalesVolume); -} -/** Get Sales Volume in 1.000. -@return Total Volume of Sales in Thousands of Currency */ -public BigDecimal getSalesVolume() -{ -BigDecimal bd = (BigDecimal)get_Value("SalesVolume"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name SalesVolume */ -public static final String COLUMNNAME_SalesVolume = "SalesVolume"; -/** Set Send EMail. -@param SendEMail Enable sending Document EMail */ -public void setSendEMail (boolean SendEMail) -{ -set_ValueNoCheck ("SendEMail", Boolean.valueOf(SendEMail)); -} -/** Get Send EMail. -@return Enable sending Document EMail */ -public boolean isSendEMail() -{ -Object oo = get_Value("SendEMail"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name SendEMail */ -public static final String COLUMNNAME_SendEMail = "SendEMail"; -/** Set Share. -@param ShareOfCustomer Share of Customer's business as a percentage */ -public void setShareOfCustomer (int ShareOfCustomer) -{ -set_ValueNoCheck ("ShareOfCustomer", Integer.valueOf(ShareOfCustomer)); -} -/** Get Share. -@return Share of Customer's business as a percentage */ -public int getShareOfCustomer() -{ -Integer ii = (Integer)get_Value("ShareOfCustomer"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShareOfCustomer */ -public static final String COLUMNNAME_ShareOfCustomer = "ShareOfCustomer"; -/** Set Min Shelf Life %. -@param ShelfLifeMinPct Minimum Shelf Life in percent based on Product Instance Guarantee Date */ -public void setShelfLifeMinPct (int ShelfLifeMinPct) -{ -set_ValueNoCheck ("ShelfLifeMinPct", Integer.valueOf(ShelfLifeMinPct)); -} -/** Get Min Shelf Life %. -@return Minimum Shelf Life in percent based on Product Instance Guarantee Date */ -public int getShelfLifeMinPct() -{ -Integer ii = (Integer)get_Value("ShelfLifeMinPct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ShelfLifeMinPct */ -public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_ValueNoCheck (COLUMNNAME_SalesRep_ID, null); + else + set_ValueNoCheck (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Volume in 1.000. + @param SalesVolume + Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (BigDecimal SalesVolume) + { + set_ValueNoCheck (COLUMNNAME_SalesVolume, SalesVolume); + } + + /** Get Sales Volume in 1.000. + @return Total Volume of Sales in Thousands of Currency + */ + public BigDecimal getSalesVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SalesVolume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_ValueNoCheck (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Share. + @param ShareOfCustomer + Share of Customer's business as a percentage + */ + public void setShareOfCustomer (int ShareOfCustomer) + { + set_ValueNoCheck (COLUMNNAME_ShareOfCustomer, Integer.valueOf(ShareOfCustomer)); + } + + /** Get Share. + @return Share of Customer's business as a percentage + */ + public int getShareOfCustomer () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShareOfCustomer); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Min Shelf Life %. + @param ShelfLifeMinPct + Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct) + { + set_ValueNoCheck (COLUMNNAME_ShelfLifeMinPct, Integer.valueOf(ShelfLifeMinPct)); + } + + /** Get Min Shelf Life %. + @return Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfLifeMinPct); + if (ii == null) + return 0; + return ii.intValue(); + } /** Supervisor_ID AD_Reference_ID=110 */ public static final int SUPERVISOR_ID_AD_Reference_ID=110; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID <= 0) set_ValueNoCheck ("Supervisor_ID", null); - else -set_ValueNoCheck ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -/** Set Tax ID. -@param TaxID Tax Identification */ -public void setTaxID (String TaxID) -{ -if (TaxID != null && TaxID.length() > 20) -{ -log.warning("Length > 20 - truncated"); -TaxID = TaxID.substring(0,19); -} -set_ValueNoCheck ("TaxID", TaxID); -} -/** Get Tax ID. -@return Tax Identification */ -public String getTaxID() -{ -return (String)get_Value("TaxID"); -} -/** Column name TaxID */ -public static final String COLUMNNAME_TaxID = "TaxID"; -/** Set Title. -@param Title Name this entity is referred to as */ -public void setTitle (String Title) -{ -if (Title != null && Title.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Title = Title.substring(0,39); -} -set_ValueNoCheck ("Title", Title); -} -/** Get Title. -@return Name this entity is referred to as */ -public String getTitle() -{ -return (String)get_Value("Title"); -} -/** Column name Title */ -public static final String COLUMNNAME_Title = "Title"; -/** Set Open Balance. -@param TotalOpenBalance Total Open Balance Amount in primary Accounting Currency */ -public void setTotalOpenBalance (BigDecimal TotalOpenBalance) -{ -set_ValueNoCheck ("TotalOpenBalance", TotalOpenBalance); -} -/** Get Open Balance. -@return Total Open Balance Amount in primary Accounting Currency */ -public BigDecimal getTotalOpenBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("TotalOpenBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name TotalOpenBalance */ -public static final String COLUMNNAME_TotalOpenBalance = "TotalOpenBalance"; -/** Set URL. -@param URL Full URL address - e.g. http://www.adempiere.org */ -public void setURL (String URL) -{ -if (URL != null && URL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -URL = URL.substring(0,119); -} -set_ValueNoCheck ("URL", URL); -} -/** Get URL. -@return Full URL address - e.g. http://www.adempiere.org */ -public String getURL() -{ -return (String)get_Value("URL"); -} -/** Column name URL */ -public static final String COLUMNNAME_URL = "URL"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_ValueNoCheck ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID <= 0) set_ValueNoCheck (COLUMNNAME_Supervisor_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax ID. + @param TaxID + Tax Identification + */ + public void setTaxID (String TaxID) + { + if (TaxID != null && TaxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + TaxID = TaxID.substring(0, 19); + } + set_ValueNoCheck (COLUMNNAME_TaxID, TaxID); + } + + /** Get Tax ID. + @return Tax Identification + */ + public String getTaxID () + { + return (String)get_Value(COLUMNNAME_TaxID); + } + + /** Set Title. + @param Title + Name this entity is referred to as + */ + public void setTitle (String Title) + { + if (Title != null && Title.length() > 40) + { + log.warning("Length > 40 - truncated"); + Title = Title.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Title, Title); + } + + /** Get Title. + @return Name this entity is referred to as + */ + public String getTitle () + { + return (String)get_Value(COLUMNNAME_Title); + } + + /** Set Open Balance. + @param TotalOpenBalance + Total Open Balance Amount in primary Accounting Currency + */ + public void setTotalOpenBalance (BigDecimal TotalOpenBalance) + { + set_ValueNoCheck (COLUMNNAME_TotalOpenBalance, TotalOpenBalance); + } + + /** Get Open Balance. + @return Total Open Balance Amount in primary Accounting Currency + */ + public BigDecimal getTotalOpenBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalOpenBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set URL. + @param URL + Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL) + { + if (URL != null && URL.length() > 120) + { + log.warning("Length > 120 - truncated"); + URL = URL.substring(0, 119); + } + set_ValueNoCheck (COLUMNNAME_URL, URL); + } + + /** Get URL. + @return Full URL address - e.g. http://www.adempiere.org + */ + public String getURL () + { + return (String)get_Value(COLUMNNAME_URL); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_RV_WarehousePrice.java b/base/src/org/compiere/model/X_RV_WarehousePrice.java index ef33e9335a..cad50b2eb5 100644 --- a/base/src/org/compiere/model/X_RV_WarehousePrice.java +++ b/base/src/org/compiere/model/X_RV_WarehousePrice.java @@ -1,427 +1,537 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for RV_WarehousePrice - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_RV_WarehousePrice extends PO + +/** Generated Model for RV_WarehousePrice + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_RV_WarehousePrice extends PO implements I_RV_WarehousePrice, I_Persistent { -/** Standard Constructor -@param ctx context -@param RV_WarehousePrice_ID id -@param trxName transaction -*/ -public X_RV_WarehousePrice (Properties ctx, int RV_WarehousePrice_ID, String trxName) -{ -super (ctx, RV_WarehousePrice_ID, trxName); -/** if (RV_WarehousePrice_ID == 0) -{ -setC_UOM_ID (0); -setM_PriceList_Version_ID (0); -setM_Product_ID (0); -setM_Warehouse_ID (0); -setName (null); -setValue (null); -setWarehouseName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_RV_WarehousePrice (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=RV_WarehousePrice */ -public static final String Table_Name="RV_WarehousePrice"; - -/** AD_Table_ID=639 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_RV_WarehousePrice[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_ValueNoCheck ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Instance Attribute. -@param IsInstanceAttribute The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) */ -public void setIsInstanceAttribute (boolean IsInstanceAttribute) -{ -set_ValueNoCheck ("IsInstanceAttribute", Boolean.valueOf(IsInstanceAttribute)); -} -/** Get Instance Attribute. -@return The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) */ -public boolean isInstanceAttribute() -{ -Object oo = get_Value("IsInstanceAttribute"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInstanceAttribute */ -public static final String COLUMNNAME_IsInstanceAttribute = "IsInstanceAttribute"; -/** Set Price List Version. -@param M_PriceList_Version_ID Identifies a unique instance of a Price List */ -public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) -{ -if (M_PriceList_Version_ID < 1) throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); -set_ValueNoCheck ("M_PriceList_Version_ID", Integer.valueOf(M_PriceList_Version_ID)); -} -/** Get Price List Version. -@return Identifies a unique instance of a Price List */ -public int getM_PriceList_Version_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_Version_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_Version_ID */ -public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Margin %. -@param Margin Margin for a product as a percentage */ -public void setMargin (BigDecimal Margin) -{ -set_ValueNoCheck ("Margin", Margin); -} -/** Get Margin %. -@return Margin for a product as a percentage */ -public BigDecimal getMargin() -{ -BigDecimal bd = (BigDecimal)get_Value("Margin"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Margin */ -public static final String COLUMNNAME_Margin = "Margin"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_ValueNoCheck ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Limit Price. -@param PriceLimit Lowest price for a product */ -public void setPriceLimit (BigDecimal PriceLimit) -{ -set_ValueNoCheck ("PriceLimit", PriceLimit); -} -/** Get Limit Price. -@return Lowest price for a product */ -public BigDecimal getPriceLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimit */ -public static final String COLUMNNAME_PriceLimit = "PriceLimit"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -set_ValueNoCheck ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set Standard Price. -@param PriceStd Standard Price */ -public void setPriceStd (BigDecimal PriceStd) -{ -set_ValueNoCheck ("PriceStd", PriceStd); -} -/** Get Standard Price. -@return Standard Price */ -public BigDecimal getPriceStd() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceStd"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceStd */ -public static final String COLUMNNAME_PriceStd = "PriceStd"; -/** Set Available Quantity. -@param QtyAvailable Available Quantity (On Hand - Reserved) */ -public void setQtyAvailable (BigDecimal QtyAvailable) -{ -set_ValueNoCheck ("QtyAvailable", QtyAvailable); -} -/** Get Available Quantity. -@return Available Quantity (On Hand - Reserved) */ -public BigDecimal getQtyAvailable() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyAvailable"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyAvailable */ -public static final String COLUMNNAME_QtyAvailable = "QtyAvailable"; -/** Set On Hand Quantity. -@param QtyOnHand On Hand Quantity */ -public void setQtyOnHand (BigDecimal QtyOnHand) -{ -set_ValueNoCheck ("QtyOnHand", QtyOnHand); -} -/** Get On Hand Quantity. -@return On Hand Quantity */ -public BigDecimal getQtyOnHand() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOnHand"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOnHand */ -public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; -/** Set Ordered Quantity. -@param QtyOrdered Ordered Quantity */ -public void setQtyOrdered (BigDecimal QtyOrdered) -{ -set_ValueNoCheck ("QtyOrdered", QtyOrdered); -} -/** Get Ordered Quantity. -@return Ordered Quantity */ -public BigDecimal getQtyOrdered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOrdered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOrdered */ -public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; -/** Set Reserved Quantity. -@param QtyReserved Reserved Quantity */ -public void setQtyReserved (BigDecimal QtyReserved) -{ -set_ValueNoCheck ("QtyReserved", QtyReserved); -} -/** Get Reserved Quantity. -@return Reserved Quantity */ -public BigDecimal getQtyReserved() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyReserved"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyReserved */ -public static final String COLUMNNAME_QtyReserved = "QtyReserved"; -/** Set SKU. -@param SKU Stock Keeping Unit */ -public void setSKU (String SKU) -{ -if (SKU != null && SKU.length() > 30) -{ -log.warning("Length > 30 - truncated"); -SKU = SKU.substring(0,29); -} -set_ValueNoCheck ("SKU", SKU); -} -/** Get SKU. -@return Stock Keeping Unit */ -public String getSKU() -{ -return (String)get_Value("SKU"); -} -/** Column name SKU */ -public static final String COLUMNNAME_SKU = "SKU"; -/** Set Symbol. -@param UOMSymbol Symbol for a Unit of Measure */ -public void setUOMSymbol (String UOMSymbol) -{ -if (UOMSymbol != null && UOMSymbol.length() > 10) -{ -log.warning("Length > 10 - truncated"); -UOMSymbol = UOMSymbol.substring(0,9); -} -set_ValueNoCheck ("UOMSymbol", UOMSymbol); -} -/** Get Symbol. -@return Symbol for a Unit of Measure */ -public String getUOMSymbol() -{ -return (String)get_Value("UOMSymbol"); -} -/** Column name UOMSymbol */ -public static final String COLUMNNAME_UOMSymbol = "UOMSymbol"; -/** Set UPC/EAN. -@param UPC Bar Code (Universal Product Code or its superset European Article Number) */ -public void setUPC (String UPC) -{ -if (UPC != null && UPC.length() > 30) -{ -log.warning("Length > 30 - truncated"); -UPC = UPC.substring(0,29); -} -set_ValueNoCheck ("UPC", UPC); -} -/** Get UPC/EAN. -@return Bar Code (Universal Product Code or its superset European Article Number) */ -public String getUPC() -{ -return (String)get_Value("UPC"); -} -/** Column name UPC */ -public static final String COLUMNNAME_UPC = "UPC"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_ValueNoCheck ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -/** Set Warehouse. -@param WarehouseName Warehouse Name */ -public void setWarehouseName (String WarehouseName) -{ -if (WarehouseName == null) throw new IllegalArgumentException ("WarehouseName is mandatory."); -if (WarehouseName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -WarehouseName = WarehouseName.substring(0,59); -} -set_ValueNoCheck ("WarehouseName", WarehouseName); -} -/** Get Warehouse. -@return Warehouse Name */ -public String getWarehouseName() -{ -return (String)get_Value("WarehouseName"); -} -/** Column name WarehouseName */ -public static final String COLUMNNAME_WarehouseName = "WarehouseName"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_RV_WarehousePrice (Properties ctx, int RV_WarehousePrice_ID, String trxName) + { + super (ctx, RV_WarehousePrice_ID, trxName); + /** if (RV_WarehousePrice_ID == 0) { setC_UOM_ID (0); + setM_PriceList_Version_ID (0); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setName (null); + setValue (null); + setWarehouseName (null); +} */ + } + + /** Load Constructor */ + public X_RV_WarehousePrice (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_RV_WarehousePrice[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Instance Attribute. + @param IsInstanceAttribute + The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public void setIsInstanceAttribute (boolean IsInstanceAttribute) + { + set_ValueNoCheck (COLUMNNAME_IsInstanceAttribute, Boolean.valueOf(IsInstanceAttribute)); + } + + /** Get Instance Attribute. + @return The product attribute is specific to the instance (like Serial No, Lot or Guarantee Date) + */ + public boolean isInstanceAttribute () + { + Object oo = get_Value(COLUMNNAME_IsInstanceAttribute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List Version. + @param M_PriceList_Version_ID + Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) + { + if (M_PriceList_Version_ID < 1) + throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + } + + /** Get Price List Version. + @return Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Margin %. + @param Margin + Margin for a product as a percentage + */ + public void setMargin (BigDecimal Margin) + { + set_ValueNoCheck (COLUMNNAME_Margin, Margin); + } + + /** Get Margin %. + @return Margin for a product as a percentage + */ + public BigDecimal getMargin () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Margin); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + set_ValueNoCheck (COLUMNNAME_PriceLimit, PriceLimit); + } + + /** Get Limit Price. + @return Lowest price for a product + */ + public BigDecimal getPriceLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + set_ValueNoCheck (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Price. + @param PriceStd + Standard Price + */ + public void setPriceStd (BigDecimal PriceStd) + { + set_ValueNoCheck (COLUMNNAME_PriceStd, PriceStd); + } + + /** Get Standard Price. + @return Standard Price + */ + public BigDecimal getPriceStd () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Available Quantity. + @param QtyAvailable + Available Quantity (On Hand - Reserved) + */ + public void setQtyAvailable (BigDecimal QtyAvailable) + { + set_ValueNoCheck (COLUMNNAME_QtyAvailable, QtyAvailable); + } + + /** Get Available Quantity. + @return Available Quantity (On Hand - Reserved) + */ + public BigDecimal getQtyAvailable () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyAvailable); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set On Hand Quantity. + @param QtyOnHand + On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand) + { + set_ValueNoCheck (COLUMNNAME_QtyOnHand, QtyOnHand); + } + + /** Get On Hand Quantity. + @return On Hand Quantity + */ + public BigDecimal getQtyOnHand () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOnHand); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + set_ValueNoCheck (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reserved Quantity. + @param QtyReserved + Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved) + { + set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); + } + + /** Get Reserved Quantity. + @return Reserved Quantity + */ + public BigDecimal getQtyReserved () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } + + /** Set Symbol. + @param UOMSymbol + Symbol for a Unit of Measure + */ + public void setUOMSymbol (String UOMSymbol) + { + if (UOMSymbol != null && UOMSymbol.length() > 10) + { + log.warning("Length > 10 - truncated"); + UOMSymbol = UOMSymbol.substring(0, 9); + } + set_ValueNoCheck (COLUMNNAME_UOMSymbol, UOMSymbol); + } + + /** Get Symbol. + @return Symbol for a Unit of Measure + */ + public String getUOMSymbol () + { + return (String)get_Value(COLUMNNAME_UOMSymbol); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 29); + } + set_ValueNoCheck (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_ValueNoCheck (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } + + /** Set Warehouse. + @param WarehouseName + Warehouse Name + */ + public void setWarehouseName (String WarehouseName) + { + if (WarehouseName == null) + throw new IllegalArgumentException ("WarehouseName is mandatory."); + if (WarehouseName.length() > 60) + { + log.warning("Length > 60 - truncated"); + WarehouseName = WarehouseName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_WarehouseName, WarehouseName); + } + + /** Get Warehouse. + @return Warehouse Name + */ + public String getWarehouseName () + { + return (String)get_Value(COLUMNNAME_WarehouseName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_Category.java b/base/src/org/compiere/model/X_R_Category.java index fdd434a93e..c0e349d2cb 100644 --- a/base/src/org/compiere/model/X_R_Category.java +++ b/base/src/org/compiere/model/X_R_Category.java @@ -1,188 +1,194 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_Category - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_Category extends PO + +/** Generated Model for R_Category + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_Category extends PO implements I_R_Category, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_Category_ID id -@param trxName transaction -*/ -public X_R_Category (Properties ctx, int R_Category_ID, String trxName) -{ -super (ctx, R_Category_ID, trxName); -/** if (R_Category_ID == 0) -{ -setName (null); -setR_Category_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_Category (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_Category */ -public static final String Table_Name="R_Category"; - -/** AD_Table_ID=772 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_Category[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Category. -@param R_Category_ID Request Category */ -public void setR_Category_ID (int R_Category_ID) -{ -if (R_Category_ID < 1) throw new IllegalArgumentException ("R_Category_ID is mandatory."); -set_ValueNoCheck ("R_Category_ID", Integer.valueOf(R_Category_ID)); -} -/** Get Category. -@return Request Category */ -public int getR_Category_ID() -{ -Integer ii = (Integer)get_Value("R_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Category_ID */ -public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_Category (Properties ctx, int R_Category_ID, String trxName) + { + super (ctx, R_Category_ID, trxName); + /** if (R_Category_ID == 0) { setName (null); + setR_Category_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_Category (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_Category[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Category. + @param R_Category_ID + Request Category + */ + public void setR_Category_ID (int R_Category_ID) + { + if (R_Category_ID < 1) + throw new IllegalArgumentException ("R_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + } + + /** Get Category. + @return Request Category + */ + public int getR_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_CategoryUpdates.java b/base/src/org/compiere/model/X_R_CategoryUpdates.java index 3a996c4512..af83baffd9 100644 --- a/base/src/org/compiere/model/X_R_CategoryUpdates.java +++ b/base/src/org/compiere/model/X_R_CategoryUpdates.java @@ -1,144 +1,159 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_CategoryUpdates - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_CategoryUpdates extends PO + +/** Generated Model for R_CategoryUpdates + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_CategoryUpdates extends PO implements I_R_CategoryUpdates, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_CategoryUpdates_ID id -@param trxName transaction -*/ -public X_R_CategoryUpdates (Properties ctx, int R_CategoryUpdates_ID, String trxName) -{ -super (ctx, R_CategoryUpdates_ID, trxName); -/** if (R_CategoryUpdates_ID == 0) -{ -setAD_User_ID (0); -setIsSelfService (false); -setR_Category_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_CategoryUpdates (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_CategoryUpdates */ -public static final String Table_Name="R_CategoryUpdates"; - -/** AD_Table_ID=785 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_CategoryUpdates[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Category. -@param R_Category_ID Request Category */ -public void setR_Category_ID (int R_Category_ID) -{ -if (R_Category_ID < 1) throw new IllegalArgumentException ("R_Category_ID is mandatory."); -set_ValueNoCheck ("R_Category_ID", Integer.valueOf(R_Category_ID)); -} -/** Get Category. -@return Request Category */ -public int getR_Category_ID() -{ -Integer ii = (Integer)get_Value("R_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Category_ID */ -public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_CategoryUpdates (Properties ctx, int R_CategoryUpdates_ID, String trxName) + { + super (ctx, R_CategoryUpdates_ID, trxName); + /** if (R_CategoryUpdates_ID == 0) { setAD_User_ID (0); + setIsSelfService (false); + setR_Category_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_CategoryUpdates (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_CategoryUpdates[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_R_Category getI_R_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Category. + @param R_Category_ID + Request Category + */ + public void setR_Category_ID (int R_Category_ID) + { + if (R_Category_ID < 1) + throw new IllegalArgumentException ("R_Category_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + } + + /** Get Category. + @return Request Category + */ + public int getR_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_ContactInterest.java b/base/src/org/compiere/model/X_R_ContactInterest.java index 41363d79c8..d4024f8e42 100644 --- a/base/src/org/compiere/model/X_R_ContactInterest.java +++ b/base/src/org/compiere/model/X_R_ContactInterest.java @@ -1,157 +1,193 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_ContactInterest - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_ContactInterest extends PO + +/** Generated Model for R_ContactInterest + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_ContactInterest extends PO implements I_R_ContactInterest, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_ContactInterest_ID id -@param trxName transaction -*/ -public X_R_ContactInterest (Properties ctx, int R_ContactInterest_ID, String trxName) -{ -super (ctx, R_ContactInterest_ID, trxName); -/** if (R_ContactInterest_ID == 0) -{ -setAD_User_ID (0); // @AD_User_ID@ -setR_InterestArea_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_ContactInterest (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_ContactInterest */ -public static final String Table_Name="R_ContactInterest"; - -/** AD_Table_ID=528 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_ContactInterest[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Opt-out Date. -@param OptOutDate Date the contact opted out */ -public void setOptOutDate (Timestamp OptOutDate) -{ -set_ValueNoCheck ("OptOutDate", OptOutDate); -} -/** Get Opt-out Date. -@return Date the contact opted out */ -public Timestamp getOptOutDate() -{ -return (Timestamp)get_Value("OptOutDate"); -} -/** Column name OptOutDate */ -public static final String COLUMNNAME_OptOutDate = "OptOutDate"; -/** Set Interest Area. -@param R_InterestArea_ID Interest Area or Topic */ -public void setR_InterestArea_ID (int R_InterestArea_ID) -{ -if (R_InterestArea_ID < 1) throw new IllegalArgumentException ("R_InterestArea_ID is mandatory."); -set_ValueNoCheck ("R_InterestArea_ID", Integer.valueOf(R_InterestArea_ID)); -} -/** Get Interest Area. -@return Interest Area or Topic */ -public int getR_InterestArea_ID() -{ -Integer ii = (Integer)get_Value("R_InterestArea_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_InterestArea_ID */ -public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; -/** Set Subscribe Date. -@param SubscribeDate Date the contact actively subscribed */ -public void setSubscribeDate (Timestamp SubscribeDate) -{ -set_ValueNoCheck ("SubscribeDate", SubscribeDate); -} -/** Get Subscribe Date. -@return Date the contact actively subscribed */ -public Timestamp getSubscribeDate() -{ -return (Timestamp)get_Value("SubscribeDate"); -} -/** Column name SubscribeDate */ -public static final String COLUMNNAME_SubscribeDate = "SubscribeDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_ContactInterest (Properties ctx, int R_ContactInterest_ID, String trxName) + { + super (ctx, R_ContactInterest_ID, trxName); + /** if (R_ContactInterest_ID == 0) { setAD_User_ID (0); +// @AD_User_ID@ + setR_InterestArea_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_ContactInterest (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_ContactInterest[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); + } + + /** Set Opt-out Date. + @param OptOutDate + Date the contact opted out + */ + public void setOptOutDate (Timestamp OptOutDate) + { + set_ValueNoCheck (COLUMNNAME_OptOutDate, OptOutDate); + } + + /** Get Opt-out Date. + @return Date the contact opted out + */ + public Timestamp getOptOutDate () + { + return (Timestamp)get_Value(COLUMNNAME_OptOutDate); + } + + public I_R_InterestArea getI_R_InterestArea() throws Exception + { + 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 e; + } + return result; + } + + /** Set Interest Area. + @param R_InterestArea_ID + Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID) + { + if (R_InterestArea_ID < 1) + throw new IllegalArgumentException ("R_InterestArea_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); + } + + /** Get Interest Area. + @return Interest Area or Topic + */ + public int getR_InterestArea_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_InterestArea_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Subscribe Date. + @param SubscribeDate + Date the contact actively subscribed + */ + public void setSubscribeDate (Timestamp SubscribeDate) + { + set_ValueNoCheck (COLUMNNAME_SubscribeDate, SubscribeDate); + } + + /** Get Subscribe Date. + @return Date the contact actively subscribed + */ + public Timestamp getSubscribeDate () + { + return (Timestamp)get_Value(COLUMNNAME_SubscribeDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_Group.java b/base/src/org/compiere/model/X_R_Group.java index e375814808..2be9a54121 100644 --- a/base/src/org/compiere/model/X_R_Group.java +++ b/base/src/org/compiere/model/X_R_Group.java @@ -1,206 +1,232 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_Group - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_Group extends PO + +/** Generated Model for R_Group + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_Group extends PO implements I_R_Group, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_Group_ID id -@param trxName transaction -*/ -public X_R_Group (Properties ctx, int R_Group_ID, String trxName) -{ -super (ctx, R_Group_ID, trxName); -/** if (R_Group_ID == 0) -{ -setName (null); -setR_Group_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_Group (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_Group */ -public static final String Table_Name="R_Group"; - -/** AD_Table_ID=773 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_Group[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set BOM. -@param M_BOM_ID Bill of Material */ -public void setM_BOM_ID (int M_BOM_ID) -{ -if (M_BOM_ID <= 0) set_Value ("M_BOM_ID", null); - else -set_Value ("M_BOM_ID", Integer.valueOf(M_BOM_ID)); -} -/** Get BOM. -@return Bill of Material */ -public int getM_BOM_ID() -{ -Integer ii = (Integer)get_Value("M_BOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_BOM_ID */ -public static final String COLUMNNAME_M_BOM_ID = "M_BOM_ID"; -/** Set Change Notice. -@param M_ChangeNotice_ID Bill of Materials (Engineering) Change Notice (Version) */ -public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) -{ -if (M_ChangeNotice_ID <= 0) set_Value ("M_ChangeNotice_ID", null); - else -set_Value ("M_ChangeNotice_ID", Integer.valueOf(M_ChangeNotice_ID)); -} -/** Get Change Notice. -@return Bill of Materials (Engineering) Change Notice (Version) */ -public int getM_ChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeNotice_ID */ -public static final String COLUMNNAME_M_ChangeNotice_ID = "M_ChangeNotice_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Group. -@param R_Group_ID Request Group */ -public void setR_Group_ID (int R_Group_ID) -{ -if (R_Group_ID < 1) throw new IllegalArgumentException ("R_Group_ID is mandatory."); -set_ValueNoCheck ("R_Group_ID", Integer.valueOf(R_Group_ID)); -} -/** Get Group. -@return Request Group */ -public int getR_Group_ID() -{ -Integer ii = (Integer)get_Value("R_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Group_ID */ -public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_Group (Properties ctx, int R_Group_ID, String trxName) + { + super (ctx, R_Group_ID, trxName); + /** if (R_Group_ID == 0) { setName (null); + setR_Group_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_Group (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_Group[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set BOM. + @param M_BOM_ID + Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID) + { + if (M_BOM_ID <= 0) set_Value (COLUMNNAME_M_BOM_ID, null); + else + set_Value (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + } + + /** Get BOM. + @return Bill of Material + */ + public int getM_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ChangeNotice getI_M_ChangeNotice() throws Exception + { + 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 e; + } + return result; + } + + /** Set Change Notice. + @param M_ChangeNotice_ID + Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) + { + if (M_ChangeNotice_ID <= 0) set_Value (COLUMNNAME_M_ChangeNotice_ID, null); + else + set_Value (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + } + + /** Get Change Notice. + @return Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Group. + @param R_Group_ID + Request Group + */ + public void setR_Group_ID (int R_Group_ID) + { + if (R_Group_ID < 1) + throw new IllegalArgumentException ("R_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + } + + /** Get Group. + @return Request Group + */ + public int getR_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_GroupUpdates.java b/base/src/org/compiere/model/X_R_GroupUpdates.java index 8a9be7c069..6d0a8e6e72 100644 --- a/base/src/org/compiere/model/X_R_GroupUpdates.java +++ b/base/src/org/compiere/model/X_R_GroupUpdates.java @@ -1,144 +1,159 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_GroupUpdates - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_GroupUpdates extends PO + +/** Generated Model for R_GroupUpdates + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_GroupUpdates extends PO implements I_R_GroupUpdates, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_GroupUpdates_ID id -@param trxName transaction -*/ -public X_R_GroupUpdates (Properties ctx, int R_GroupUpdates_ID, String trxName) -{ -super (ctx, R_GroupUpdates_ID, trxName); -/** if (R_GroupUpdates_ID == 0) -{ -setAD_User_ID (0); -setIsSelfService (false); -setR_Group_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_GroupUpdates (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_GroupUpdates */ -public static final String Table_Name="R_GroupUpdates"; - -/** AD_Table_ID=786 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_GroupUpdates[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Group. -@param R_Group_ID Request Group */ -public void setR_Group_ID (int R_Group_ID) -{ -if (R_Group_ID < 1) throw new IllegalArgumentException ("R_Group_ID is mandatory."); -set_ValueNoCheck ("R_Group_ID", Integer.valueOf(R_Group_ID)); -} -/** Get Group. -@return Request Group */ -public int getR_Group_ID() -{ -Integer ii = (Integer)get_Value("R_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Group_ID */ -public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_GroupUpdates (Properties ctx, int R_GroupUpdates_ID, String trxName) + { + super (ctx, R_GroupUpdates_ID, trxName); + /** if (R_GroupUpdates_ID == 0) { setAD_User_ID (0); + setIsSelfService (false); + setR_Group_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_GroupUpdates (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_GroupUpdates[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_R_Group getI_R_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Group. + @param R_Group_ID + Request Group + */ + public void setR_Group_ID (int R_Group_ID) + { + if (R_Group_ID < 1) + throw new IllegalArgumentException ("R_Group_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + } + + /** Get Group. + @return Request Group + */ + public int getR_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_InterestArea.java b/base/src/org/compiere/model/X_R_InterestArea.java index 9aa309a98b..1f8e0cba32 100644 --- a/base/src/org/compiere/model/X_R_InterestArea.java +++ b/base/src/org/compiere/model/X_R_InterestArea.java @@ -1,193 +1,201 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_InterestArea - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_InterestArea extends PO + +/** Generated Model for R_InterestArea + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_InterestArea extends PO implements I_R_InterestArea, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_InterestArea_ID id -@param trxName transaction -*/ -public X_R_InterestArea (Properties ctx, int R_InterestArea_ID, String trxName) -{ -super (ctx, R_InterestArea_ID, trxName); -/** if (R_InterestArea_ID == 0) -{ -setIsSelfService (true); // Y -setName (null); -setR_InterestArea_ID (0); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_InterestArea (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_InterestArea */ -public static final String Table_Name="R_InterestArea"; - -/** AD_Table_ID=530 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_InterestArea[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Interest Area. -@param R_InterestArea_ID Interest Area or Topic */ -public void setR_InterestArea_ID (int R_InterestArea_ID) -{ -if (R_InterestArea_ID < 1) throw new IllegalArgumentException ("R_InterestArea_ID is mandatory."); -set_ValueNoCheck ("R_InterestArea_ID", Integer.valueOf(R_InterestArea_ID)); -} -/** Get Interest Area. -@return Interest Area or Topic */ -public int getR_InterestArea_ID() -{ -Integer ii = (Integer)get_Value("R_InterestArea_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_InterestArea_ID */ -public static final String COLUMNNAME_R_InterestArea_ID = "R_InterestArea_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_InterestArea (Properties ctx, int R_InterestArea_ID, String trxName) + { + super (ctx, R_InterestArea_ID, trxName); + /** if (R_InterestArea_ID == 0) { setIsSelfService (true); +// Y + setName (null); + setR_InterestArea_ID (0); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_R_InterestArea (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_InterestArea[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Interest Area. + @param R_InterestArea_ID + Interest Area or Topic + */ + public void setR_InterestArea_ID (int R_InterestArea_ID) + { + if (R_InterestArea_ID < 1) + throw new IllegalArgumentException ("R_InterestArea_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_InterestArea_ID, Integer.valueOf(R_InterestArea_ID)); + } + + /** Get Interest Area. + @return Interest Area or Topic + */ + public int getR_InterestArea_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_InterestArea_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_IssueKnown.java b/base/src/org/compiere/model/X_R_IssueKnown.java index bdd7099d67..6a40469272 100644 --- a/base/src/org/compiere/model/X_R_IssueKnown.java +++ b/base/src/org/compiere/model/X_R_IssueKnown.java @@ -1,338 +1,418 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_IssueKnown - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_IssueKnown extends PO + +/** Generated Model for R_IssueKnown + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_IssueKnown extends PO implements I_R_IssueKnown, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_IssueKnown_ID id -@param trxName transaction -*/ -public X_R_IssueKnown (Properties ctx, int R_IssueKnown_ID, String trxName) -{ -super (ctx, R_IssueKnown_ID, trxName); -/** if (R_IssueKnown_ID == 0) -{ -setIssueSummary (null); -setR_IssueKnown_ID (0); -setReleaseNo (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_IssueKnown (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_IssueKnown */ -public static final String Table_Name="R_IssueKnown"; - -/** AD_Table_ID=839 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_IssueKnown[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Issue Status. -@param IssueStatus Current Status of the Issue */ -public void setIssueStatus (String IssueStatus) -{ -if (IssueStatus != null && IssueStatus.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -IssueStatus = IssueStatus.substring(0,1999); -} -set_Value ("IssueStatus", IssueStatus); -} -/** Get Issue Status. -@return Current Status of the Issue */ -public String getIssueStatus() -{ -return (String)get_Value("IssueStatus"); -} -/** Column name IssueStatus */ -public static final String COLUMNNAME_IssueStatus = "IssueStatus"; -/** Set Issue Summary. -@param IssueSummary Issue Summary */ -public void setIssueSummary (String IssueSummary) -{ -if (IssueSummary == null) throw new IllegalArgumentException ("IssueSummary is mandatory."); -if (IssueSummary.length() > 255) -{ -log.warning("Length > 255 - truncated"); -IssueSummary = IssueSummary.substring(0,254); -} -set_Value ("IssueSummary", IssueSummary); -} -/** Get Issue Summary. -@return Issue Summary */ -public String getIssueSummary() -{ -return (String)get_Value("IssueSummary"); -} -/** Column name IssueSummary */ -public static final String COLUMNNAME_IssueSummary = "IssueSummary"; -/** Set Line. -@param LineNo Line No */ -public void setLineNo (int LineNo) -{ -set_Value ("LineNo", Integer.valueOf(LineNo)); -} -/** Get Line. -@return Line No */ -public int getLineNo() -{ -Integer ii = (Integer)get_Value("LineNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LineNo */ -public static final String COLUMNNAME_LineNo = "LineNo"; -/** Set Logger. -@param LoggerName Logger Name */ -public void setLoggerName (String LoggerName) -{ -if (LoggerName != null && LoggerName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -LoggerName = LoggerName.substring(0,59); -} -set_Value ("LoggerName", LoggerName); -} -/** Get Logger. -@return Logger Name */ -public String getLoggerName() -{ -return (String)get_Value("LoggerName"); -} -/** Column name LoggerName */ -public static final String COLUMNNAME_LoggerName = "LoggerName"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Known Issue. -@param R_IssueKnown_ID Known Issue */ -public void setR_IssueKnown_ID (int R_IssueKnown_ID) -{ -if (R_IssueKnown_ID < 1) throw new IllegalArgumentException ("R_IssueKnown_ID is mandatory."); -set_ValueNoCheck ("R_IssueKnown_ID", Integer.valueOf(R_IssueKnown_ID)); -} -/** Get Known Issue. -@return Known Issue */ -public int getR_IssueKnown_ID() -{ -Integer ii = (Integer)get_Value("R_IssueKnown_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueKnown_ID */ -public static final String COLUMNNAME_R_IssueKnown_ID = "R_IssueKnown_ID"; -/** Set Issue Recommendation. -@param R_IssueRecommendation_ID Recommendations how to fix an Issue */ -public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID) -{ -if (R_IssueRecommendation_ID <= 0) set_Value ("R_IssueRecommendation_ID", null); - else -set_Value ("R_IssueRecommendation_ID", Integer.valueOf(R_IssueRecommendation_ID)); -} -/** Get Issue Recommendation. -@return Recommendations how to fix an Issue */ -public int getR_IssueRecommendation_ID() -{ -Integer ii = (Integer)get_Value("R_IssueRecommendation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueRecommendation_ID */ -public static final String COLUMNNAME_R_IssueRecommendation_ID = "R_IssueRecommendation_ID"; -/** Set Issue Status. -@param R_IssueStatus_ID Status of an Issue */ -public void setR_IssueStatus_ID (int R_IssueStatus_ID) -{ -if (R_IssueStatus_ID <= 0) set_Value ("R_IssueStatus_ID", null); - else -set_Value ("R_IssueStatus_ID", Integer.valueOf(R_IssueStatus_ID)); -} -/** Get Issue Status. -@return Status of an Issue */ -public int getR_IssueStatus_ID() -{ -Integer ii = (Integer)get_Value("R_IssueStatus_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueStatus_ID */ -public static final String COLUMNNAME_R_IssueStatus_ID = "R_IssueStatus_ID"; -/** Set Request. -@param R_Request_ID Request from a Business Partner or Prospect */ -public void setR_Request_ID (int R_Request_ID) -{ -if (R_Request_ID <= 0) set_Value ("R_Request_ID", null); - else -set_Value ("R_Request_ID", Integer.valueOf(R_Request_ID)); -} -/** Get Request. -@return Request from a Business Partner or Prospect */ -public int getR_Request_ID() -{ -Integer ii = (Integer)get_Value("R_Request_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Request_ID */ -public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; -/** Set Release No. -@param ReleaseNo Internal Release Number */ -public void setReleaseNo (String ReleaseNo) -{ -if (ReleaseNo == null) throw new IllegalArgumentException ("ReleaseNo is mandatory."); -if (ReleaseNo.length() > 4) -{ -log.warning("Length > 4 - truncated"); -ReleaseNo = ReleaseNo.substring(0,3); -} -set_Value ("ReleaseNo", ReleaseNo); -} -/** Get Release No. -@return Internal Release Number */ -public String getReleaseNo() -{ -return (String)get_Value("ReleaseNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getReleaseNo()); -} -/** Column name ReleaseNo */ -public static final String COLUMNNAME_ReleaseNo = "ReleaseNo"; -/** Set Source Class. -@param SourceClassName Source Class Name */ -public void setSourceClassName (String SourceClassName) -{ -if (SourceClassName != null && SourceClassName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SourceClassName = SourceClassName.substring(0,59); -} -set_Value ("SourceClassName", SourceClassName); -} -/** Get Source Class. -@return Source Class Name */ -public String getSourceClassName() -{ -return (String)get_Value("SourceClassName"); -} -/** Column name SourceClassName */ -public static final String COLUMNNAME_SourceClassName = "SourceClassName"; -/** Set Source Method. -@param SourceMethodName Source Method Name */ -public void setSourceMethodName (String SourceMethodName) -{ -if (SourceMethodName != null && SourceMethodName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -SourceMethodName = SourceMethodName.substring(0,59); -} -set_Value ("SourceMethodName", SourceMethodName); -} -/** Get Source Method. -@return Source Method Name */ -public String getSourceMethodName() -{ -return (String)get_Value("SourceMethodName"); -} -/** Column name SourceMethodName */ -public static final String COLUMNNAME_SourceMethodName = "SourceMethodName"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_IssueKnown (Properties ctx, int R_IssueKnown_ID, String trxName) + { + super (ctx, R_IssueKnown_ID, trxName); + /** if (R_IssueKnown_ID == 0) { setIssueSummary (null); + setR_IssueKnown_ID (0); + setReleaseNo (null); +} */ + } + + /** Load Constructor */ + public X_R_IssueKnown (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_IssueKnown[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Issue Status. + @param IssueStatus + Current Status of the Issue + */ + public void setIssueStatus (String IssueStatus) + { + if (IssueStatus != null && IssueStatus.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + IssueStatus = IssueStatus.substring(0, 1999); + } + set_Value (COLUMNNAME_IssueStatus, IssueStatus); + } + + /** Get Issue Status. + @return Current Status of the Issue + */ + public String getIssueStatus () + { + return (String)get_Value(COLUMNNAME_IssueStatus); + } + + /** Set Issue Summary. + @param IssueSummary + Issue Summary + */ + public void setIssueSummary (String IssueSummary) + { + if (IssueSummary == null) + throw new IllegalArgumentException ("IssueSummary is mandatory."); + if (IssueSummary.length() > 255) + { + log.warning("Length > 255 - truncated"); + IssueSummary = IssueSummary.substring(0, 254); + } + set_Value (COLUMNNAME_IssueSummary, IssueSummary); + } + + /** Get Issue Summary. + @return Issue Summary + */ + public String getIssueSummary () + { + return (String)get_Value(COLUMNNAME_IssueSummary); + } + + /** Set Line. + @param LineNo + Line No + */ + public void setLineNo (int LineNo) + { + set_Value (COLUMNNAME_LineNo, Integer.valueOf(LineNo)); + } + + /** Get Line. + @return Line No + */ + public int getLineNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LineNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Logger. + @param LoggerName + Logger Name + */ + public void setLoggerName (String LoggerName) + { + if (LoggerName != null && LoggerName.length() > 60) + { + log.warning("Length > 60 - truncated"); + LoggerName = LoggerName.substring(0, 59); + } + set_Value (COLUMNNAME_LoggerName, LoggerName); + } + + /** Get Logger. + @return Logger Name + */ + public String getLoggerName () + { + return (String)get_Value(COLUMNNAME_LoggerName); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Known Issue. + @param R_IssueKnown_ID + Known Issue + */ + public void setR_IssueKnown_ID (int R_IssueKnown_ID) + { + if (R_IssueKnown_ID < 1) + throw new IllegalArgumentException ("R_IssueKnown_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_IssueKnown_ID, Integer.valueOf(R_IssueKnown_ID)); + } + + /** Get Known Issue. + @return Known Issue + */ + public int getR_IssueKnown_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueKnown_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_IssueRecommendation getI_R_IssueRecommendation() throws Exception + { + 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 e; + } + return result; + } + + /** Set Issue Recommendation. + @param R_IssueRecommendation_ID + Recommendations how to fix an Issue + */ + public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID) + { + if (R_IssueRecommendation_ID <= 0) set_Value (COLUMNNAME_R_IssueRecommendation_ID, null); + else + set_Value (COLUMNNAME_R_IssueRecommendation_ID, Integer.valueOf(R_IssueRecommendation_ID)); + } + + /** Get Issue Recommendation. + @return Recommendations how to fix an Issue + */ + public int getR_IssueRecommendation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueRecommendation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_IssueStatus getI_R_IssueStatus() throws Exception + { + 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 e; + } + return result; + } + + /** Set Issue Status. + @param R_IssueStatus_ID + Status of an Issue + */ + public void setR_IssueStatus_ID (int R_IssueStatus_ID) + { + if (R_IssueStatus_ID <= 0) set_Value (COLUMNNAME_R_IssueStatus_ID, null); + else + set_Value (COLUMNNAME_R_IssueStatus_ID, Integer.valueOf(R_IssueStatus_ID)); + } + + /** Get Issue Status. + @return Status of an Issue + */ + public int getR_IssueStatus_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueStatus_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Request getI_R_Request() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID <= 0) set_Value (COLUMNNAME_R_Request_ID, null); + else + set_Value (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Release No. + @param ReleaseNo + Internal Release Number + */ + public void setReleaseNo (String ReleaseNo) + { + if (ReleaseNo == null) + throw new IllegalArgumentException ("ReleaseNo is mandatory."); + if (ReleaseNo.length() > 4) + { + log.warning("Length > 4 - truncated"); + ReleaseNo = ReleaseNo.substring(0, 3); + } + set_Value (COLUMNNAME_ReleaseNo, ReleaseNo); + } + + /** Get Release No. + @return Internal Release Number + */ + public String getReleaseNo () + { + return (String)get_Value(COLUMNNAME_ReleaseNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getReleaseNo()); + } + + /** Set Source Class. + @param SourceClassName + Source Class Name + */ + public void setSourceClassName (String SourceClassName) + { + if (SourceClassName != null && SourceClassName.length() > 60) + { + log.warning("Length > 60 - truncated"); + SourceClassName = SourceClassName.substring(0, 59); + } + set_Value (COLUMNNAME_SourceClassName, SourceClassName); + } + + /** Get Source Class. + @return Source Class Name + */ + public String getSourceClassName () + { + return (String)get_Value(COLUMNNAME_SourceClassName); + } + + /** Set Source Method. + @param SourceMethodName + Source Method Name + */ + public void setSourceMethodName (String SourceMethodName) + { + if (SourceMethodName != null && SourceMethodName.length() > 60) + { + log.warning("Length > 60 - truncated"); + SourceMethodName = SourceMethodName.substring(0, 59); + } + set_Value (COLUMNNAME_SourceMethodName, SourceMethodName); + } + + /** Get Source Method. + @return Source Method Name + */ + public String getSourceMethodName () + { + return (String)get_Value(COLUMNNAME_SourceMethodName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_IssueProject.java b/base/src/org/compiere/model/X_R_IssueProject.java index 0c39340a49..ea647246e1 100644 --- a/base/src/org/compiere/model/X_R_IssueProject.java +++ b/base/src/org/compiere/model/X_R_IssueProject.java @@ -1,257 +1,266 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_IssueProject - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_IssueProject extends PO + +/** Generated Model for R_IssueProject + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_IssueProject extends PO implements I_R_IssueProject, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_IssueProject_ID id -@param trxName transaction -*/ -public X_R_IssueProject (Properties ctx, int R_IssueProject_ID, String trxName) -{ -super (ctx, R_IssueProject_ID, trxName); -/** if (R_IssueProject_ID == 0) -{ -setName (null); -setR_IssueProject_ID (0); -setSystemStatus (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_IssueProject (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_IssueProject */ -public static final String Table_Name="R_IssueProject"; - -/** AD_Table_ID=842 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_IssueProject[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Profile. -@param ProfileInfo Information to help profiling the system for solving support issues */ -public void setProfileInfo (String ProfileInfo) -{ -if (ProfileInfo != null && ProfileInfo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProfileInfo = ProfileInfo.substring(0,59); -} -set_Value ("ProfileInfo", ProfileInfo); -} -/** Get Profile. -@return Information to help profiling the system for solving support issues */ -public String getProfileInfo() -{ -return (String)get_Value("ProfileInfo"); -} -/** Column name ProfileInfo */ -public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; -/** Set Issue Project. -@param R_IssueProject_ID Implementation Projects */ -public void setR_IssueProject_ID (int R_IssueProject_ID) -{ -if (R_IssueProject_ID < 1) throw new IllegalArgumentException ("R_IssueProject_ID is mandatory."); -set_ValueNoCheck ("R_IssueProject_ID", Integer.valueOf(R_IssueProject_ID)); -} -/** Get Issue Project. -@return Implementation Projects */ -public int getR_IssueProject_ID() -{ -Integer ii = (Integer)get_Value("R_IssueProject_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueProject_ID */ -public static final String COLUMNNAME_R_IssueProject_ID = "R_IssueProject_ID"; -/** Set Statistics. -@param StatisticsInfo Information to help profiling the system for solving support issues */ -public void setStatisticsInfo (String StatisticsInfo) -{ -if (StatisticsInfo != null && StatisticsInfo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -StatisticsInfo = StatisticsInfo.substring(0,59); -} -set_Value ("StatisticsInfo", StatisticsInfo); -} -/** Get Statistics. -@return Information to help profiling the system for solving support issues */ -public String getStatisticsInfo() -{ -return (String)get_Value("StatisticsInfo"); -} -/** Column name StatisticsInfo */ -public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_IssueProject (Properties ctx, int R_IssueProject_ID, String trxName) + { + super (ctx, R_IssueProject_ID, trxName); + /** if (R_IssueProject_ID == 0) { setName (null); + setR_IssueProject_ID (0); + setSystemStatus (null); +} */ + } + + /** Load Constructor */ + public X_R_IssueProject (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_IssueProject[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Profile. + @param ProfileInfo + Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo) + { + if (ProfileInfo != null && ProfileInfo.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProfileInfo = ProfileInfo.substring(0, 59); + } + set_Value (COLUMNNAME_ProfileInfo, ProfileInfo); + } + + /** Get Profile. + @return Information to help profiling the system for solving support issues + */ + public String getProfileInfo () + { + return (String)get_Value(COLUMNNAME_ProfileInfo); + } + + /** Set Issue Project. + @param R_IssueProject_ID + Implementation Projects + */ + public void setR_IssueProject_ID (int R_IssueProject_ID) + { + if (R_IssueProject_ID < 1) + throw new IllegalArgumentException ("R_IssueProject_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_IssueProject_ID, Integer.valueOf(R_IssueProject_ID)); + } + + /** Get Issue Project. + @return Implementation Projects + */ + public int getR_IssueProject_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueProject_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Statistics. + @param StatisticsInfo + Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo) + { + if (StatisticsInfo != null && StatisticsInfo.length() > 60) + { + log.warning("Length > 60 - truncated"); + StatisticsInfo = StatisticsInfo.substring(0, 59); + } + set_Value (COLUMNNAME_StatisticsInfo, StatisticsInfo); + } + + /** Get Statistics. + @return Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo () + { + return (String)get_Value(COLUMNNAME_StatisticsInfo); + } /** SystemStatus AD_Reference_ID=374 */ -public static final int SYSTEMSTATUS_AD_Reference_ID=374; -/** Evaluation = E */ -public static final String SYSTEMSTATUS_Evaluation = "E"; -/** Implementation = I */ -public static final String SYSTEMSTATUS_Implementation = "I"; -/** Production = P */ +public static final int SYSTEMSTATUS_AD_Reference_ID=374;/** Evaluation = E */ +public static final String SYSTEMSTATUS_Evaluation = "E";/** Implementation = I */ +public static final String SYSTEMSTATUS_Implementation = "I";/** Production = P */ public static final String SYSTEMSTATUS_Production = "P"; -/** Set System Status. -@param SystemStatus Status of the system - Support priority depends on system status */ -public void setSystemStatus (String SystemStatus) -{ -if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); -if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); - else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); -if (SystemStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SystemStatus = SystemStatus.substring(0,0); -} -set_Value ("SystemStatus", SystemStatus); -} -/** Get System Status. -@return Status of the system - Support priority depends on system status */ -public String getSystemStatus() -{ -return (String)get_Value("SystemStatus"); -} -/** Column name SystemStatus */ -public static final String COLUMNNAME_SystemStatus = "SystemStatus"; -} + /** Set System Status. + @param SystemStatus + Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus) + { +if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory");if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); if (SystemStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SystemStatus = SystemStatus.substring(0, 0); + } + set_Value (COLUMNNAME_SystemStatus, SystemStatus); + } + + /** Get System Status. + @return Status of the system - Support priority depends on system status + */ + public String getSystemStatus () + { + return (String)get_Value(COLUMNNAME_SystemStatus); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_IssueRecommendation.java b/base/src/org/compiere/model/X_R_IssueRecommendation.java index 6cd44798e3..1557637b69 100644 --- a/base/src/org/compiere/model/X_R_IssueRecommendation.java +++ b/base/src/org/compiere/model/X_R_IssueRecommendation.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_IssueRecommendation - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_IssueRecommendation extends PO + +/** Generated Model for R_IssueRecommendation + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_IssueRecommendation extends PO implements I_R_IssueRecommendation, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_IssueRecommendation_ID id -@param trxName transaction -*/ -public X_R_IssueRecommendation (Properties ctx, int R_IssueRecommendation_ID, String trxName) -{ -super (ctx, R_IssueRecommendation_ID, trxName); -/** if (R_IssueRecommendation_ID == 0) -{ -setName (null); -setR_IssueRecommendation_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_IssueRecommendation (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_IssueRecommendation */ -public static final String Table_Name="R_IssueRecommendation"; - -/** AD_Table_ID=837 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_IssueRecommendation[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Issue Recommendation. -@param R_IssueRecommendation_ID Recommendations how to fix an Issue */ -public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID) -{ -if (R_IssueRecommendation_ID < 1) throw new IllegalArgumentException ("R_IssueRecommendation_ID is mandatory."); -set_ValueNoCheck ("R_IssueRecommendation_ID", Integer.valueOf(R_IssueRecommendation_ID)); -} -/** Get Issue Recommendation. -@return Recommendations how to fix an Issue */ -public int getR_IssueRecommendation_ID() -{ -Integer ii = (Integer)get_Value("R_IssueRecommendation_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueRecommendation_ID */ -public static final String COLUMNNAME_R_IssueRecommendation_ID = "R_IssueRecommendation_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_IssueRecommendation (Properties ctx, int R_IssueRecommendation_ID, String trxName) + { + super (ctx, R_IssueRecommendation_ID, trxName); + /** if (R_IssueRecommendation_ID == 0) { setName (null); + setR_IssueRecommendation_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_IssueRecommendation (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_IssueRecommendation[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Issue Recommendation. + @param R_IssueRecommendation_ID + Recommendations how to fix an Issue + */ + public void setR_IssueRecommendation_ID (int R_IssueRecommendation_ID) + { + if (R_IssueRecommendation_ID < 1) + throw new IllegalArgumentException ("R_IssueRecommendation_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_IssueRecommendation_ID, Integer.valueOf(R_IssueRecommendation_ID)); + } + + /** Get Issue Recommendation. + @return Recommendations how to fix an Issue + */ + public int getR_IssueRecommendation_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueRecommendation_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_IssueStatus.java b/base/src/org/compiere/model/X_R_IssueStatus.java index 9cde624ea1..b99d1426f1 100644 --- a/base/src/org/compiere/model/X_R_IssueStatus.java +++ b/base/src/org/compiere/model/X_R_IssueStatus.java @@ -1,151 +1,150 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_IssueStatus - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_IssueStatus extends PO + +/** Generated Model for R_IssueStatus + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_IssueStatus extends PO implements I_R_IssueStatus, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_IssueStatus_ID id -@param trxName transaction -*/ -public X_R_IssueStatus (Properties ctx, int R_IssueStatus_ID, String trxName) -{ -super (ctx, R_IssueStatus_ID, trxName); -/** if (R_IssueStatus_ID == 0) -{ -setName (null); -setR_IssueStatus_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_IssueStatus (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_IssueStatus */ -public static final String Table_Name="R_IssueStatus"; - -/** AD_Table_ID=838 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_IssueStatus[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Issue Status. -@param R_IssueStatus_ID Status of an Issue */ -public void setR_IssueStatus_ID (int R_IssueStatus_ID) -{ -if (R_IssueStatus_ID < 1) throw new IllegalArgumentException ("R_IssueStatus_ID is mandatory."); -set_ValueNoCheck ("R_IssueStatus_ID", Integer.valueOf(R_IssueStatus_ID)); -} -/** Get Issue Status. -@return Status of an Issue */ -public int getR_IssueStatus_ID() -{ -Integer ii = (Integer)get_Value("R_IssueStatus_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueStatus_ID */ -public static final String COLUMNNAME_R_IssueStatus_ID = "R_IssueStatus_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_IssueStatus (Properties ctx, int R_IssueStatus_ID, String trxName) + { + super (ctx, R_IssueStatus_ID, trxName); + /** if (R_IssueStatus_ID == 0) { setName (null); + setR_IssueStatus_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_IssueStatus (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_IssueStatus[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Issue Status. + @param R_IssueStatus_ID + Status of an Issue + */ + public void setR_IssueStatus_ID (int R_IssueStatus_ID) + { + if (R_IssueStatus_ID < 1) + throw new IllegalArgumentException ("R_IssueStatus_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_IssueStatus_ID, Integer.valueOf(R_IssueStatus_ID)); + } + + /** Get Issue Status. + @return Status of an Issue + */ + public int getR_IssueStatus_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueStatus_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_IssueSystem.java b/base/src/org/compiere/model/X_R_IssueSystem.java index dd646019b4..3c898eecb2 100644 --- a/base/src/org/compiere/model/X_R_IssueSystem.java +++ b/base/src/org/compiere/model/X_R_IssueSystem.java @@ -1,220 +1,222 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_IssueSystem - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_IssueSystem extends PO + +/** Generated Model for R_IssueSystem + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_IssueSystem extends PO implements I_R_IssueSystem, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_IssueSystem_ID id -@param trxName transaction -*/ -public X_R_IssueSystem (Properties ctx, int R_IssueSystem_ID, String trxName) -{ -super (ctx, R_IssueSystem_ID, trxName); -/** if (R_IssueSystem_ID == 0) -{ -setDBAddress (null); -setR_IssueSystem_ID (0); -setSystemStatus (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_IssueSystem (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_IssueSystem */ -public static final String Table_Name="R_IssueSystem"; - -/** AD_Table_ID=843 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_IssueSystem[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set DB Address. -@param DBAddress JDBC URL of the database server */ -public void setDBAddress (String DBAddress) -{ -if (DBAddress == null) throw new IllegalArgumentException ("DBAddress is mandatory."); -if (DBAddress.length() > 255) -{ -log.warning("Length > 255 - truncated"); -DBAddress = DBAddress.substring(0,254); -} -set_ValueNoCheck ("DBAddress", DBAddress); -} -/** Get DB Address. -@return JDBC URL of the database server */ -public String getDBAddress() -{ -return (String)get_Value("DBAddress"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDBAddress()); -} -/** Column name DBAddress */ -public static final String COLUMNNAME_DBAddress = "DBAddress"; -/** Set Profile. -@param ProfileInfo Information to help profiling the system for solving support issues */ -public void setProfileInfo (String ProfileInfo) -{ -if (ProfileInfo != null && ProfileInfo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -ProfileInfo = ProfileInfo.substring(0,59); -} -set_ValueNoCheck ("ProfileInfo", ProfileInfo); -} -/** Get Profile. -@return Information to help profiling the system for solving support issues */ -public String getProfileInfo() -{ -return (String)get_Value("ProfileInfo"); -} -/** Column name ProfileInfo */ -public static final String COLUMNNAME_ProfileInfo = "ProfileInfo"; -/** Set Issue System. -@param R_IssueSystem_ID System creating the issue */ -public void setR_IssueSystem_ID (int R_IssueSystem_ID) -{ -if (R_IssueSystem_ID < 1) throw new IllegalArgumentException ("R_IssueSystem_ID is mandatory."); -set_ValueNoCheck ("R_IssueSystem_ID", Integer.valueOf(R_IssueSystem_ID)); -} -/** Get Issue System. -@return System creating the issue */ -public int getR_IssueSystem_ID() -{ -Integer ii = (Integer)get_Value("R_IssueSystem_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueSystem_ID */ -public static final String COLUMNNAME_R_IssueSystem_ID = "R_IssueSystem_ID"; -/** Set Statistics. -@param StatisticsInfo Information to help profiling the system for solving support issues */ -public void setStatisticsInfo (String StatisticsInfo) -{ -if (StatisticsInfo != null && StatisticsInfo.length() > 60) -{ -log.warning("Length > 60 - truncated"); -StatisticsInfo = StatisticsInfo.substring(0,59); -} -set_ValueNoCheck ("StatisticsInfo", StatisticsInfo); -} -/** Get Statistics. -@return Information to help profiling the system for solving support issues */ -public String getStatisticsInfo() -{ -return (String)get_Value("StatisticsInfo"); -} -/** Column name StatisticsInfo */ -public static final String COLUMNNAME_StatisticsInfo = "StatisticsInfo"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_IssueSystem (Properties ctx, int R_IssueSystem_ID, String trxName) + { + super (ctx, R_IssueSystem_ID, trxName); + /** if (R_IssueSystem_ID == 0) { setDBAddress (null); + setR_IssueSystem_ID (0); + setSystemStatus (null); +} */ + } + + /** Load Constructor */ + public X_R_IssueSystem (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_IssueSystem[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set DB Address. + @param DBAddress + JDBC URL of the database server + */ + public void setDBAddress (String DBAddress) + { + if (DBAddress == null) + throw new IllegalArgumentException ("DBAddress is mandatory."); + if (DBAddress.length() > 255) + { + log.warning("Length > 255 - truncated"); + DBAddress = DBAddress.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_DBAddress, DBAddress); + } + + /** Get DB Address. + @return JDBC URL of the database server + */ + public String getDBAddress () + { + return (String)get_Value(COLUMNNAME_DBAddress); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDBAddress()); + } + + /** Set Profile. + @param ProfileInfo + Information to help profiling the system for solving support issues + */ + public void setProfileInfo (String ProfileInfo) + { + if (ProfileInfo != null && ProfileInfo.length() > 60) + { + log.warning("Length > 60 - truncated"); + ProfileInfo = ProfileInfo.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_ProfileInfo, ProfileInfo); + } + + /** Get Profile. + @return Information to help profiling the system for solving support issues + */ + public String getProfileInfo () + { + return (String)get_Value(COLUMNNAME_ProfileInfo); + } + + /** Set Issue System. + @param R_IssueSystem_ID + System creating the issue + */ + public void setR_IssueSystem_ID (int R_IssueSystem_ID) + { + if (R_IssueSystem_ID < 1) + throw new IllegalArgumentException ("R_IssueSystem_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_IssueSystem_ID, Integer.valueOf(R_IssueSystem_ID)); + } + + /** Get Issue System. + @return System creating the issue + */ + public int getR_IssueSystem_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueSystem_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Statistics. + @param StatisticsInfo + Information to help profiling the system for solving support issues + */ + public void setStatisticsInfo (String StatisticsInfo) + { + if (StatisticsInfo != null && StatisticsInfo.length() > 60) + { + log.warning("Length > 60 - truncated"); + StatisticsInfo = StatisticsInfo.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_StatisticsInfo, StatisticsInfo); + } + + /** Get Statistics. + @return Information to help profiling the system for solving support issues + */ + public String getStatisticsInfo () + { + return (String)get_Value(COLUMNNAME_StatisticsInfo); + } /** SystemStatus AD_Reference_ID=374 */ -public static final int SYSTEMSTATUS_AD_Reference_ID=374; -/** Evaluation = E */ -public static final String SYSTEMSTATUS_Evaluation = "E"; -/** Implementation = I */ -public static final String SYSTEMSTATUS_Implementation = "I"; -/** Production = P */ +public static final int SYSTEMSTATUS_AD_Reference_ID=374;/** Evaluation = E */ +public static final String SYSTEMSTATUS_Evaluation = "E";/** Implementation = I */ +public static final String SYSTEMSTATUS_Implementation = "I";/** Production = P */ public static final String SYSTEMSTATUS_Production = "P"; -/** Set System Status. -@param SystemStatus Status of the system - Support priority depends on system status */ -public void setSystemStatus (String SystemStatus) -{ -if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory"); -if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); - else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); -if (SystemStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -SystemStatus = SystemStatus.substring(0,0); -} -set_Value ("SystemStatus", SystemStatus); -} -/** Get System Status. -@return Status of the system - Support priority depends on system status */ -public String getSystemStatus() -{ -return (String)get_Value("SystemStatus"); -} -/** Column name SystemStatus */ -public static final String COLUMNNAME_SystemStatus = "SystemStatus"; -} + /** Set System Status. + @param SystemStatus + Status of the system - Support priority depends on system status + */ + public void setSystemStatus (String SystemStatus) + { +if (SystemStatus == null) throw new IllegalArgumentException ("SystemStatus is mandatory");if (SystemStatus.equals("E") || SystemStatus.equals("I") || SystemStatus.equals("P")); else throw new IllegalArgumentException ("SystemStatus Invalid value - " + SystemStatus + " - Reference_ID=374 - E - I - P"); if (SystemStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SystemStatus = SystemStatus.substring(0, 0); + } + set_Value (COLUMNNAME_SystemStatus, SystemStatus); + } + + /** Get System Status. + @return Status of the system - Support priority depends on system status + */ + public String getSystemStatus () + { + return (String)get_Value(COLUMNNAME_SystemStatus); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_IssueUser.java b/base/src/org/compiere/model/X_R_IssueUser.java index f37f2c1860..6d453e6072 100644 --- a/base/src/org/compiere/model/X_R_IssueUser.java +++ b/base/src/org/compiere/model/X_R_IssueUser.java @@ -1,169 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_IssueUser - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_IssueUser extends PO + +/** Generated Model for R_IssueUser + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_IssueUser extends PO implements I_R_IssueUser, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_IssueUser_ID id -@param trxName transaction -*/ -public X_R_IssueUser (Properties ctx, int R_IssueUser_ID, String trxName) -{ -super (ctx, R_IssueUser_ID, trxName); -/** if (R_IssueUser_ID == 0) -{ -setR_IssueUser_ID (0); -setUserName (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_IssueUser (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_IssueUser */ -public static final String Table_Name="R_IssueUser"; - -/** AD_Table_ID=841 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_IssueUser[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set IssueUser. -@param R_IssueUser_ID User who reported issues */ -public void setR_IssueUser_ID (int R_IssueUser_ID) -{ -if (R_IssueUser_ID < 1) throw new IllegalArgumentException ("R_IssueUser_ID is mandatory."); -set_ValueNoCheck ("R_IssueUser_ID", Integer.valueOf(R_IssueUser_ID)); -} -/** Get IssueUser. -@return User who reported issues */ -public int getR_IssueUser_ID() -{ -Integer ii = (Integer)get_Value("R_IssueUser_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_IssueUser_ID */ -public static final String COLUMNNAME_R_IssueUser_ID = "R_IssueUser_ID"; -/** Set Registered EMail. -@param UserName Email of the responsible for the System */ -public void setUserName (String UserName) -{ -if (UserName == null) throw new IllegalArgumentException ("UserName is mandatory."); -if (UserName.length() > 60) -{ -log.warning("Length > 60 - truncated"); -UserName = UserName.substring(0,59); -} -set_ValueNoCheck ("UserName", UserName); -} -/** Get Registered EMail. -@return Email of the responsible for the System */ -public String getUserName() -{ -return (String)get_Value("UserName"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getUserName()); -} -/** Column name UserName */ -public static final String COLUMNNAME_UserName = "UserName"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_IssueUser (Properties ctx, int R_IssueUser_ID, String trxName) + { + super (ctx, R_IssueUser_ID, trxName); + /** if (R_IssueUser_ID == 0) { setR_IssueUser_ID (0); + setUserName (null); +} */ + } + + /** Load Constructor */ + public X_R_IssueUser (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_IssueUser[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set IssueUser. + @param R_IssueUser_ID + User who reported issues + */ + public void setR_IssueUser_ID (int R_IssueUser_ID) + { + if (R_IssueUser_ID < 1) + throw new IllegalArgumentException ("R_IssueUser_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_IssueUser_ID, Integer.valueOf(R_IssueUser_ID)); + } + + /** Get IssueUser. + @return User who reported issues + */ + public int getR_IssueUser_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_IssueUser_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Registered EMail. + @param UserName + Email of the responsible for the System + */ + public void setUserName (String UserName) + { + if (UserName == null) + throw new IllegalArgumentException ("UserName is mandatory."); + if (UserName.length() > 60) + { + log.warning("Length > 60 - truncated"); + UserName = UserName.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_UserName, UserName); + } + + /** Get Registered EMail. + @return Email of the responsible for the System + */ + public String getUserName () + { + return (String)get_Value(COLUMNNAME_UserName); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getUserName()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_MailText.java b/base/src/org/compiere/model/X_R_MailText.java index 134246a5cb..6187825542 100644 --- a/base/src/org/compiere/model/X_R_MailText.java +++ b/base/src/org/compiere/model/X_R_MailText.java @@ -1,231 +1,244 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_MailText - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_MailText extends PO + +/** Generated Model for R_MailText + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_MailText extends PO implements I_R_MailText, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_MailText_ID id -@param trxName transaction -*/ -public X_R_MailText (Properties ctx, int R_MailText_ID, String trxName) -{ -super (ctx, R_MailText_ID, trxName); -/** if (R_MailText_ID == 0) -{ -setIsHtml (false); -setMailText (null); -setName (null); -setR_MailText_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_MailText (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_MailText */ -public static final String Table_Name="R_MailText"; - -/** AD_Table_ID=416 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_MailText[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set HTML. -@param IsHtml Text has HTML tags */ -public void setIsHtml (boolean IsHtml) -{ -set_Value ("IsHtml", Boolean.valueOf(IsHtml)); -} -/** Get HTML. -@return Text has HTML tags */ -public boolean isHtml() -{ -Object oo = get_Value("IsHtml"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsHtml */ -public static final String COLUMNNAME_IsHtml = "IsHtml"; -/** Set Subject. -@param MailHeader Mail Header (Subject) */ -public void setMailHeader (String MailHeader) -{ -if (MailHeader != null && MailHeader.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MailHeader = MailHeader.substring(0,1999); -} -set_Value ("MailHeader", MailHeader); -} -/** Get Subject. -@return Mail Header (Subject) */ -public String getMailHeader() -{ -return (String)get_Value("MailHeader"); -} -/** Column name MailHeader */ -public static final String COLUMNNAME_MailHeader = "MailHeader"; -/** Set Mail Text. -@param MailText Text used for Mail message */ -public void setMailText (String MailText) -{ -if (MailText == null) throw new IllegalArgumentException ("MailText is mandatory."); -if (MailText.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MailText = MailText.substring(0,1999); -} -set_Value ("MailText", MailText); -} -/** Get Mail Text. -@return Text used for Mail message */ -public String getMailText() -{ -return (String)get_Value("MailText"); -} -/** Column name MailText */ -public static final String COLUMNNAME_MailText = "MailText"; -/** Set Mail Text 2. -@param MailText2 Optional second text part used for Mail message */ -public void setMailText2 (String MailText2) -{ -if (MailText2 != null && MailText2.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MailText2 = MailText2.substring(0,1999); -} -set_Value ("MailText2", MailText2); -} -/** Get Mail Text 2. -@return Optional second text part used for Mail message */ -public String getMailText2() -{ -return (String)get_Value("MailText2"); -} -/** Column name MailText2 */ -public static final String COLUMNNAME_MailText2 = "MailText2"; -/** Set Mail Text 3. -@param MailText3 Optional third text part used for Mail message */ -public void setMailText3 (String MailText3) -{ -if (MailText3 != null && MailText3.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -MailText3 = MailText3.substring(0,1999); -} -set_Value ("MailText3", MailText3); -} -/** Get Mail Text 3. -@return Optional third text part used for Mail message */ -public String getMailText3() -{ -return (String)get_Value("MailText3"); -} -/** Column name MailText3 */ -public static final String COLUMNNAME_MailText3 = "MailText3"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Mail Template. -@param R_MailText_ID Text templates for mailings */ -public void setR_MailText_ID (int R_MailText_ID) -{ -if (R_MailText_ID < 1) throw new IllegalArgumentException ("R_MailText_ID is mandatory."); -set_ValueNoCheck ("R_MailText_ID", Integer.valueOf(R_MailText_ID)); -} -/** Get Mail Template. -@return Text templates for mailings */ -public int getR_MailText_ID() -{ -Integer ii = (Integer)get_Value("R_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_MailText_ID */ -public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_MailText (Properties ctx, int R_MailText_ID, String trxName) + { + super (ctx, R_MailText_ID, trxName); + /** if (R_MailText_ID == 0) { setIsHtml (false); + setMailText (null); + setName (null); + setR_MailText_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_MailText (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_MailText[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set HTML. + @param IsHtml + Text has HTML tags + */ + public void setIsHtml (boolean IsHtml) + { + set_Value (COLUMNNAME_IsHtml, Boolean.valueOf(IsHtml)); + } + + /** Get HTML. + @return Text has HTML tags + */ + public boolean isHtml () + { + Object oo = get_Value(COLUMNNAME_IsHtml); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Subject. + @param MailHeader + Mail Header (Subject) + */ + public void setMailHeader (String MailHeader) + { + if (MailHeader != null && MailHeader.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MailHeader = MailHeader.substring(0, 1999); + } + set_Value (COLUMNNAME_MailHeader, MailHeader); + } + + /** Get Subject. + @return Mail Header (Subject) + */ + public String getMailHeader () + { + return (String)get_Value(COLUMNNAME_MailHeader); + } + + /** Set Mail Text. + @param MailText + Text used for Mail message + */ + public void setMailText (String MailText) + { + if (MailText == null) + throw new IllegalArgumentException ("MailText is mandatory."); + if (MailText.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MailText = MailText.substring(0, 1999); + } + set_Value (COLUMNNAME_MailText, MailText); + } + + /** Get Mail Text. + @return Text used for Mail message + */ + public String getMailText () + { + return (String)get_Value(COLUMNNAME_MailText); + } + + /** Set Mail Text 2. + @param MailText2 + Optional second text part used for Mail message + */ + public void setMailText2 (String MailText2) + { + if (MailText2 != null && MailText2.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MailText2 = MailText2.substring(0, 1999); + } + set_Value (COLUMNNAME_MailText2, MailText2); + } + + /** Get Mail Text 2. + @return Optional second text part used for Mail message + */ + public String getMailText2 () + { + return (String)get_Value(COLUMNNAME_MailText2); + } + + /** Set Mail Text 3. + @param MailText3 + Optional third text part used for Mail message + */ + public void setMailText3 (String MailText3) + { + if (MailText3 != null && MailText3.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + MailText3 = MailText3.substring(0, 1999); + } + set_Value (COLUMNNAME_MailText3, MailText3); + } + + /** Get Mail Text 3. + @return Optional third text part used for Mail message + */ + public String getMailText3 () + { + return (String)get_Value(COLUMNNAME_MailText3); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID < 1) + throw new IllegalArgumentException ("R_MailText_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_Request.java b/base/src/org/compiere/model/X_R_Request.java index 1dc62a0d47..56284c7b0c 100644 --- a/base/src/org/compiere/model/X_R_Request.java +++ b/base/src/org/compiere/model/X_R_Request.java @@ -1,1226 +1,1579 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_Request - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_Request extends PO + +/** Generated Model for R_Request + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_Request extends PO implements I_R_Request, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_Request_ID id -@param trxName transaction -*/ -public X_R_Request (Properties ctx, int R_Request_ID, String trxName) -{ -super (ctx, R_Request_ID, trxName); -/** if (R_Request_ID == 0) -{ -setConfidentialType (null); // C -setConfidentialTypeEntry (null); // C -setDocumentNo (null); -setDueType (null); // 5 -setIsEscalated (false); -setIsInvoiced (false); -setIsSelfService (false); // N -setPriority (null); // 5 -setProcessed (false); -setR_RequestType_ID (0); -setR_Request_ID (0); -setRequestAmt (Env.ZERO); -setSalesRep_ID (0); // @AD_User_ID@ -setSummary (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_Request (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_Request */ -public static final String Table_Name="R_Request"; - -/** AD_Table_ID=417 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_Request[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_Value ("AD_Role_ID", null); - else -set_Value ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set Table. -@param AD_Table_ID Database Table information */ -public void setAD_Table_ID (int AD_Table_ID) -{ -if (AD_Table_ID <= 0) set_ValueNoCheck ("AD_Table_ID", null); - else -set_ValueNoCheck ("AD_Table_ID", Integer.valueOf(AD_Table_ID)); -} -/** Get Table. -@return Database Table information */ -public int getAD_Table_ID() -{ -Integer ii = (Integer)get_Value("AD_Table_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Table_ID */ -public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_Value ("A_Asset_ID", null); - else -set_Value ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_Request (Properties ctx, int R_Request_ID, String trxName) + { + super (ctx, R_Request_ID, trxName); + /** if (R_Request_ID == 0) { setConfidentialType (null); +// C + setConfidentialTypeEntry (null); +// C + setDocumentNo (null); + setDueType (null); +// 5 + setIsEscalated (false); + setIsInvoiced (false); + setIsSelfService (false); +// N + setPriority (null); +// 5 + setProcessed (false); + setR_RequestType_ID (0); + setR_Request_ID (0); + setRequestAmt (Env.ZERO); + setSalesRep_ID (0); +// @#AD_User_ID@ + setSummary (null); +} */ + } + + /** Load Constructor */ + public X_R_Request (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_Request[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getI_AD_Table() throws Exception + { + 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 e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_InvoiceRequest_ID AD_Reference_ID=336 */ public static final int C_INVOICEREQUEST_ID_AD_Reference_ID=336; -/** Set Request Invoice. -@param C_InvoiceRequest_ID The generated invoice for this request */ -public void setC_InvoiceRequest_ID (int C_InvoiceRequest_ID) -{ -if (C_InvoiceRequest_ID <= 0) set_ValueNoCheck ("C_InvoiceRequest_ID", null); - else -set_ValueNoCheck ("C_InvoiceRequest_ID", Integer.valueOf(C_InvoiceRequest_ID)); -} -/** Get Request Invoice. -@return The generated invoice for this request */ -public int getC_InvoiceRequest_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceRequest_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceRequest_ID */ -public static final String COLUMNNAME_C_InvoiceRequest_ID = "C_InvoiceRequest_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_Value ("C_Invoice_ID", null); - else -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_Value ("C_Order_ID", null); - else -set_Value ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Close Date. -@param CloseDate Close Date */ -public void setCloseDate (Timestamp CloseDate) -{ -set_Value ("CloseDate", CloseDate); -} -/** Get Close Date. -@return Close Date */ -public Timestamp getCloseDate() -{ -return (Timestamp)get_Value("CloseDate"); -} -/** Column name CloseDate */ -public static final String COLUMNNAME_CloseDate = "CloseDate"; + /** Set Request Invoice. + @param C_InvoiceRequest_ID + The generated invoice for this request + */ + public void setC_InvoiceRequest_ID (int C_InvoiceRequest_ID) + { + if (C_InvoiceRequest_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceRequest_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceRequest_ID, Integer.valueOf(C_InvoiceRequest_ID)); + } + + /** Get Request Invoice. + @return The generated invoice for this request + */ + public int getC_InvoiceRequest_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceRequest_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_Value (COLUMNNAME_C_Order_ID, null); + else + set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Close Date. + @param CloseDate + Close Date + */ + public void setCloseDate (Timestamp CloseDate) + { + set_Value (COLUMNNAME_CloseDate, CloseDate); + } + + /** Get Close Date. + @return Close Date + */ + public Timestamp getCloseDate () + { + return (Timestamp)get_Value(COLUMNNAME_CloseDate); + } /** ConfidentialType AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPE_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPE_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPE_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPE_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPE_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPE_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPE_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPE_PrivateInformation = "P"; -/** Set Confidentiality. -@param ConfidentialType Type of Confidentiality */ -public void setConfidentialType (String ConfidentialType) -{ -if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); -if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); - else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialType = ConfidentialType.substring(0,0); -} -set_Value ("ConfidentialType", ConfidentialType); -} -/** Get Confidentiality. -@return Type of Confidentiality */ -public String getConfidentialType() -{ -return (String)get_Value("ConfidentialType"); -} -/** Column name ConfidentialType */ -public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; + /** Set Confidentiality. + @param ConfidentialType + Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType) + { +if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory");if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialType = ConfidentialType.substring(0, 0); + } + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); + } + + /** Get Confidentiality. + @return Type of Confidentiality + */ + public String getConfidentialType () + { + return (String)get_Value(COLUMNNAME_ConfidentialType); + } /** ConfidentialTypeEntry AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPEENTRY_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPEENTRY_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPEENTRY_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPEENTRY_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPEENTRY_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPEENTRY_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPEENTRY_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPEENTRY_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPEENTRY_PrivateInformation = "P"; -/** Set Entry Confidentiality. -@param ConfidentialTypeEntry Confidentiality of the individual entry */ -public void setConfidentialTypeEntry (String ConfidentialTypeEntry) -{ -if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory"); -if (ConfidentialTypeEntry.equals("A") || ConfidentialTypeEntry.equals("C") || ConfidentialTypeEntry.equals("I") || ConfidentialTypeEntry.equals("P")); - else throw new IllegalArgumentException ("ConfidentialTypeEntry Invalid value - " + ConfidentialTypeEntry + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialTypeEntry.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialTypeEntry = ConfidentialTypeEntry.substring(0,0); -} -set_Value ("ConfidentialTypeEntry", ConfidentialTypeEntry); -} -/** Get Entry Confidentiality. -@return Confidentiality of the individual entry */ -public String getConfidentialTypeEntry() -{ -return (String)get_Value("ConfidentialTypeEntry"); -} -/** Column name ConfidentialTypeEntry */ -public static final String COLUMNNAME_ConfidentialTypeEntry = "ConfidentialTypeEntry"; -/** Set Complete Plan. -@param DateCompletePlan Planned Completion Date */ -public void setDateCompletePlan (Timestamp DateCompletePlan) -{ -set_Value ("DateCompletePlan", DateCompletePlan); -} -/** Get Complete Plan. -@return Planned Completion Date */ -public Timestamp getDateCompletePlan() -{ -return (Timestamp)get_Value("DateCompletePlan"); -} -/** Column name DateCompletePlan */ -public static final String COLUMNNAME_DateCompletePlan = "DateCompletePlan"; -/** Set Date last action. -@param DateLastAction Date this request was last acted on */ -public void setDateLastAction (Timestamp DateLastAction) -{ -set_ValueNoCheck ("DateLastAction", DateLastAction); -} -/** Get Date last action. -@return Date this request was last acted on */ -public Timestamp getDateLastAction() -{ -return (Timestamp)get_Value("DateLastAction"); -} -/** Column name DateLastAction */ -public static final String COLUMNNAME_DateLastAction = "DateLastAction"; -/** Set Last Alert. -@param DateLastAlert Date when last alert were sent */ -public void setDateLastAlert (Timestamp DateLastAlert) -{ -set_Value ("DateLastAlert", DateLastAlert); -} -/** Get Last Alert. -@return Date when last alert were sent */ -public Timestamp getDateLastAlert() -{ -return (Timestamp)get_Value("DateLastAlert"); -} -/** Column name DateLastAlert */ -public static final String COLUMNNAME_DateLastAlert = "DateLastAlert"; -/** Set Date next action. -@param DateNextAction Date that this request should be acted on */ -public void setDateNextAction (Timestamp DateNextAction) -{ -set_Value ("DateNextAction", DateNextAction); -} -/** Get Date next action. -@return Date that this request should be acted on */ -public Timestamp getDateNextAction() -{ -return (Timestamp)get_Value("DateNextAction"); -} -/** Column name DateNextAction */ -public static final String COLUMNNAME_DateNextAction = "DateNextAction"; -/** Set Start Plan. -@param DateStartPlan Planned Start Date */ -public void setDateStartPlan (Timestamp DateStartPlan) -{ -set_Value ("DateStartPlan", DateStartPlan); -} -/** Get Start Plan. -@return Planned Start Date */ -public Timestamp getDateStartPlan() -{ -return (Timestamp)get_Value("DateStartPlan"); -} -/** Column name DateStartPlan */ -public static final String COLUMNNAME_DateStartPlan = "DateStartPlan"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; + /** Set Entry Confidentiality. + @param ConfidentialTypeEntry + Confidentiality of the individual entry + */ + public void setConfidentialTypeEntry (String ConfidentialTypeEntry) + { +if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory");if (ConfidentialTypeEntry.equals("A") || ConfidentialTypeEntry.equals("C") || ConfidentialTypeEntry.equals("I") || ConfidentialTypeEntry.equals("P")); else throw new IllegalArgumentException ("ConfidentialTypeEntry Invalid value - " + ConfidentialTypeEntry + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialTypeEntry.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialTypeEntry = ConfidentialTypeEntry.substring(0, 0); + } + set_Value (COLUMNNAME_ConfidentialTypeEntry, ConfidentialTypeEntry); + } + + /** Get Entry Confidentiality. + @return Confidentiality of the individual entry + */ + public String getConfidentialTypeEntry () + { + return (String)get_Value(COLUMNNAME_ConfidentialTypeEntry); + } + + /** Set Complete Plan. + @param DateCompletePlan + Planned Completion Date + */ + public void setDateCompletePlan (Timestamp DateCompletePlan) + { + set_Value (COLUMNNAME_DateCompletePlan, DateCompletePlan); + } + + /** Get Complete Plan. + @return Planned Completion Date + */ + public Timestamp getDateCompletePlan () + { + return (Timestamp)get_Value(COLUMNNAME_DateCompletePlan); + } + + /** Set Date last action. + @param DateLastAction + Date this request was last acted on + */ + public void setDateLastAction (Timestamp DateLastAction) + { + set_ValueNoCheck (COLUMNNAME_DateLastAction, DateLastAction); + } + + /** Get Date last action. + @return Date this request was last acted on + */ + public Timestamp getDateLastAction () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastAction); + } + + /** Set Last Alert. + @param DateLastAlert + Date when last alert were sent + */ + public void setDateLastAlert (Timestamp DateLastAlert) + { + set_Value (COLUMNNAME_DateLastAlert, DateLastAlert); + } + + /** Get Last Alert. + @return Date when last alert were sent + */ + public Timestamp getDateLastAlert () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastAlert); + } + + /** Set Date next action. + @param DateNextAction + Date that this request should be acted on + */ + public void setDateNextAction (Timestamp DateNextAction) + { + set_Value (COLUMNNAME_DateNextAction, DateNextAction); + } + + /** Get Date next action. + @return Date that this request should be acted on + */ + public Timestamp getDateNextAction () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextAction); + } + + /** Set Start Plan. + @param DateStartPlan + Planned Start Date + */ + public void setDateStartPlan (Timestamp DateStartPlan) + { + set_Value (COLUMNNAME_DateStartPlan, DateStartPlan); + } + + /** Get Start Plan. + @return Planned Start Date + */ + public Timestamp getDateStartPlan () + { + return (Timestamp)get_Value(COLUMNNAME_DateStartPlan); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } /** DueType AD_Reference_ID=222 */ -public static final int DUETYPE_AD_Reference_ID=222; -/** Overdue = 3 */ -public static final String DUETYPE_Overdue = "3"; -/** Due = 5 */ -public static final String DUETYPE_Due = "5"; -/** Scheduled = 7 */ +public static final int DUETYPE_AD_Reference_ID=222;/** Overdue = 3 */ +public static final String DUETYPE_Overdue = "3";/** Due = 5 */ +public static final String DUETYPE_Due = "5";/** Scheduled = 7 */ public static final String DUETYPE_Scheduled = "7"; -/** Set Due type. -@param DueType Status of the next action for this Request */ -public void setDueType (String DueType) -{ -if (DueType == null) throw new IllegalArgumentException ("DueType is mandatory"); -if (DueType.equals("3") || DueType.equals("5") || DueType.equals("7")); - else throw new IllegalArgumentException ("DueType Invalid value - " + DueType + " - Reference_ID=222 - 3 - 5 - 7"); -if (DueType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -DueType = DueType.substring(0,0); -} -set_Value ("DueType", DueType); -} -/** Get Due type. -@return Status of the next action for this Request */ -public String getDueType() -{ -return (String)get_Value("DueType"); -} -/** Column name DueType */ -public static final String COLUMNNAME_DueType = "DueType"; -/** Set End Time. -@param EndTime End of the time span */ -public void setEndTime (Timestamp EndTime) -{ -set_Value ("EndTime", EndTime); -} -/** Get End Time. -@return End of the time span */ -public Timestamp getEndTime() -{ -return (Timestamp)get_Value("EndTime"); -} -/** Column name EndTime */ -public static final String COLUMNNAME_EndTime = "EndTime"; -/** Set Escalated. -@param IsEscalated This request has been escalated */ -public void setIsEscalated (boolean IsEscalated) -{ -set_Value ("IsEscalated", Boolean.valueOf(IsEscalated)); -} -/** Get Escalated. -@return This request has been escalated */ -public boolean isEscalated() -{ -Object oo = get_Value("IsEscalated"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEscalated */ -public static final String COLUMNNAME_IsEscalated = "IsEscalated"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (boolean IsInvoiced) -{ -set_Value ("IsInvoiced", Boolean.valueOf(IsInvoiced)); -} -/** Get Invoiced. -@return Is this invoiced? */ -public boolean isInvoiced() -{ -Object oo = get_Value("IsInvoiced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_ValueNoCheck ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Last Result. -@param LastResult Result of last contact */ -public void setLastResult (String LastResult) -{ -if (LastResult != null && LastResult.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -LastResult = LastResult.substring(0,1999); -} -set_Value ("LastResult", LastResult); -} -/** Get Last Result. -@return Result of last contact */ -public String getLastResult() -{ -return (String)get_Value("LastResult"); -} -/** Column name LastResult */ -public static final String COLUMNNAME_LastResult = "LastResult"; -/** Set Change Request. -@param M_ChangeRequest_ID BOM (Engineering) Change Request */ -public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) -{ -if (M_ChangeRequest_ID <= 0) set_Value ("M_ChangeRequest_ID", null); - else -set_Value ("M_ChangeRequest_ID", Integer.valueOf(M_ChangeRequest_ID)); -} -/** Get Change Request. -@return BOM (Engineering) Change Request */ -public int getM_ChangeRequest_ID() -{ -Integer ii = (Integer)get_Value("M_ChangeRequest_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ChangeRequest_ID */ -public static final String COLUMNNAME_M_ChangeRequest_ID = "M_ChangeRequest_ID"; + /** Set Due type. + @param DueType + Status of the next action for this Request + */ + public void setDueType (String DueType) + { +if (DueType == null) throw new IllegalArgumentException ("DueType is mandatory");if (DueType.equals("3") || DueType.equals("5") || DueType.equals("7")); else throw new IllegalArgumentException ("DueType Invalid value - " + DueType + " - Reference_ID=222 - 3 - 5 - 7"); if (DueType.length() > 1) + { + log.warning("Length > 1 - truncated"); + DueType = DueType.substring(0, 0); + } + set_Value (COLUMNNAME_DueType, DueType); + } + + /** Get Due type. + @return Status of the next action for this Request + */ + public String getDueType () + { + return (String)get_Value(COLUMNNAME_DueType); + } + + /** Set End Time. + @param EndTime + End of the time span + */ + public void setEndTime (Timestamp EndTime) + { + set_Value (COLUMNNAME_EndTime, EndTime); + } + + /** Get End Time. + @return End of the time span + */ + public Timestamp getEndTime () + { + return (Timestamp)get_Value(COLUMNNAME_EndTime); + } + + /** Set Escalated. + @param IsEscalated + This request has been escalated + */ + public void setIsEscalated (boolean IsEscalated) + { + set_Value (COLUMNNAME_IsEscalated, Boolean.valueOf(IsEscalated)); + } + + /** Get Escalated. + @return This request has been escalated + */ + public boolean isEscalated () + { + Object oo = get_Value(COLUMNNAME_IsEscalated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_ValueNoCheck (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Last Result. + @param LastResult + Result of last contact + */ + public void setLastResult (String LastResult) + { + if (LastResult != null && LastResult.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + LastResult = LastResult.substring(0, 1999); + } + set_Value (COLUMNNAME_LastResult, LastResult); + } + + /** Get Last Result. + @return Result of last contact + */ + public String getLastResult () + { + return (String)get_Value(COLUMNNAME_LastResult); + } + + /** Set Change Request. + @param M_ChangeRequest_ID + BOM (Engineering) Change Request + */ + public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) + { + if (M_ChangeRequest_ID <= 0) set_Value (COLUMNNAME_M_ChangeRequest_ID, null); + else + set_Value (COLUMNNAME_M_ChangeRequest_ID, Integer.valueOf(M_ChangeRequest_ID)); + } + + /** Get Change Request. + @return BOM (Engineering) Change Request + */ + public int getM_ChangeRequest_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeRequest_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_FixChangeNotice_ID AD_Reference_ID=351 */ public static final int M_FIXCHANGENOTICE_ID_AD_Reference_ID=351; -/** Set Fixed in. -@param M_FixChangeNotice_ID Fixed in Change Notice */ -public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID) -{ -if (M_FixChangeNotice_ID <= 0) set_Value ("M_FixChangeNotice_ID", null); - else -set_Value ("M_FixChangeNotice_ID", Integer.valueOf(M_FixChangeNotice_ID)); -} -/** Get Fixed in. -@return Fixed in Change Notice */ -public int getM_FixChangeNotice_ID() -{ -Integer ii = (Integer)get_Value("M_FixChangeNotice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_FixChangeNotice_ID */ -public static final String COLUMNNAME_M_FixChangeNotice_ID = "M_FixChangeNotice_ID"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID <= 0) set_Value ("M_InOut_ID", null); - else -set_Value ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + /** Set Fixed in. + @param M_FixChangeNotice_ID + Fixed in Change Notice + */ + public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID) + { + if (M_FixChangeNotice_ID <= 0) set_Value (COLUMNNAME_M_FixChangeNotice_ID, null); + else + set_Value (COLUMNNAME_M_FixChangeNotice_ID, Integer.valueOf(M_FixChangeNotice_ID)); + } + + /** Get Fixed in. + @return Fixed in Change Notice + */ + public int getM_FixChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FixChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID <= 0) set_Value (COLUMNNAME_M_InOut_ID, null); + else + set_Value (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_ProductSpent_ID AD_Reference_ID=162 */ public static final int M_PRODUCTSPENT_ID_AD_Reference_ID=162; -/** Set Product Used. -@param M_ProductSpent_ID Product/Resource/Service used in Request */ -public void setM_ProductSpent_ID (int M_ProductSpent_ID) -{ -if (M_ProductSpent_ID <= 0) set_Value ("M_ProductSpent_ID", null); - else -set_Value ("M_ProductSpent_ID", Integer.valueOf(M_ProductSpent_ID)); -} -/** Get Product Used. -@return Product/Resource/Service used in Request */ -public int getM_ProductSpent_ID() -{ -Integer ii = (Integer)get_Value("M_ProductSpent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductSpent_ID */ -public static final String COLUMNNAME_M_ProductSpent_ID = "M_ProductSpent_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set RMA. -@param M_RMA_ID Return Material Authorization */ -public void setM_RMA_ID (int M_RMA_ID) -{ -if (M_RMA_ID <= 0) set_Value ("M_RMA_ID", null); - else -set_Value ("M_RMA_ID", Integer.valueOf(M_RMA_ID)); -} -/** Get RMA. -@return Return Material Authorization */ -public int getM_RMA_ID() -{ -Integer ii = (Integer)get_Value("M_RMA_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMA_ID */ -public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + /** Set Product Used. + @param M_ProductSpent_ID + Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID) + { + if (M_ProductSpent_ID <= 0) set_Value (COLUMNNAME_M_ProductSpent_ID, null); + else + set_Value (COLUMNNAME_M_ProductSpent_ID, Integer.valueOf(M_ProductSpent_ID)); + } + + /** Get Product Used. + @return Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductSpent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID <= 0) set_Value (COLUMNNAME_M_RMA_ID, null); + else + set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** NextAction AD_Reference_ID=219 */ -public static final int NEXTACTION_AD_Reference_ID=219; -/** Follow up = F */ -public static final String NEXTACTION_FollowUp = "F"; -/** None = N */ +public static final int NEXTACTION_AD_Reference_ID=219;/** Follow up = F */ +public static final String NEXTACTION_FollowUp = "F";/** None = N */ public static final String NEXTACTION_None = "N"; -/** Set Next action. -@param NextAction Next Action to be taken */ -public void setNextAction (String NextAction) -{ -if (NextAction == null || NextAction.equals("F") || NextAction.equals("N")); - else throw new IllegalArgumentException ("NextAction Invalid value - " + NextAction + " - Reference_ID=219 - F - N"); -if (NextAction != null && NextAction.length() > 1) -{ -log.warning("Length > 1 - truncated"); -NextAction = NextAction.substring(0,0); -} -set_Value ("NextAction", NextAction); -} -/** Get Next action. -@return Next Action to be taken */ -public String getNextAction() -{ -return (String)get_Value("NextAction"); -} -/** Column name NextAction */ -public static final String COLUMNNAME_NextAction = "NextAction"; + /** Set Next action. + @param NextAction + Next Action to be taken + */ + public void setNextAction (String NextAction) + { +if (NextAction == null || NextAction.equals("F") || NextAction.equals("N")); else throw new IllegalArgumentException ("NextAction Invalid value - " + NextAction + " - Reference_ID=219 - F - N"); if (NextAction != null && NextAction.length() > 1) + { + log.warning("Length > 1 - truncated"); + NextAction = NextAction.substring(0, 0); + } + set_Value (COLUMNNAME_NextAction, NextAction); + } + + /** Get Next action. + @return Next Action to be taken + */ + public String getNextAction () + { + return (String)get_Value(COLUMNNAME_NextAction); + } /** Priority AD_Reference_ID=154 */ -public static final int PRIORITY_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITY_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITY_High = "3"; -/** Medium = 5 */ -public static final String PRIORITY_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITY_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITY_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITY_Urgent = "1";/** High = 3 */ +public static final String PRIORITY_High = "3";/** Medium = 5 */ +public static final String PRIORITY_Medium = "5";/** Low = 7 */ +public static final String PRIORITY_Low = "7";/** Minor = 9 */ public static final String PRIORITY_Minor = "9"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (String Priority) -{ -if (Priority == null) throw new IllegalArgumentException ("Priority is mandatory"); -if (Priority.equals("1") || Priority.equals("3") || Priority.equals("5") || Priority.equals("7") || Priority.equals("9")); - else throw new IllegalArgumentException ("Priority Invalid value - " + Priority + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (Priority.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Priority = Priority.substring(0,0); -} -set_Value ("Priority", Priority); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public String getPriority() -{ -return (String)get_Value("Priority"); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (String Priority) + { +if (Priority == null) throw new IllegalArgumentException ("Priority is mandatory");if (Priority.equals("1") || Priority.equals("3") || Priority.equals("5") || Priority.equals("7") || Priority.equals("9")); else throw new IllegalArgumentException ("Priority Invalid value - " + Priority + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (Priority.length() > 1) + { + log.warning("Length > 1 - truncated"); + Priority = Priority.substring(0, 0); + } + set_Value (COLUMNNAME_Priority, Priority); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public String getPriority () + { + return (String)get_Value(COLUMNNAME_Priority); + } /** PriorityUser AD_Reference_ID=154 */ -public static final int PRIORITYUSER_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITYUSER_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITYUSER_High = "3"; -/** Medium = 5 */ -public static final String PRIORITYUSER_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITYUSER_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITYUSER_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITYUSER_Urgent = "1";/** High = 3 */ +public static final String PRIORITYUSER_High = "3";/** Medium = 5 */ +public static final String PRIORITYUSER_Medium = "5";/** Low = 7 */ +public static final String PRIORITYUSER_Low = "7";/** Minor = 9 */ public static final String PRIORITYUSER_Minor = "9"; -/** Set User Importance. -@param PriorityUser Priority of the issue for the User */ -public void setPriorityUser (String PriorityUser) -{ -if (PriorityUser == null || PriorityUser.equals("1") || PriorityUser.equals("3") || PriorityUser.equals("5") || PriorityUser.equals("7") || PriorityUser.equals("9")); - else throw new IllegalArgumentException ("PriorityUser Invalid value - " + PriorityUser + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (PriorityUser != null && PriorityUser.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PriorityUser = PriorityUser.substring(0,0); -} -set_Value ("PriorityUser", PriorityUser); -} -/** Get User Importance. -@return Priority of the issue for the User */ -public String getPriorityUser() -{ -return (String)get_Value("PriorityUser"); -} -/** Column name PriorityUser */ -public static final String COLUMNNAME_PriorityUser = "PriorityUser"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity Invoiced. -@param QtyInvoiced Invoiced Quantity */ -public void setQtyInvoiced (BigDecimal QtyInvoiced) -{ -set_Value ("QtyInvoiced", QtyInvoiced); -} -/** Get Quantity Invoiced. -@return Invoiced Quantity */ -public BigDecimal getQtyInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInvoiced */ -public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; -/** Set Quantity Plan. -@param QtyPlan Planned Quantity */ -public void setQtyPlan (BigDecimal QtyPlan) -{ -set_Value ("QtyPlan", QtyPlan); -} -/** Get Quantity Plan. -@return Planned Quantity */ -public BigDecimal getQtyPlan() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyPlan"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyPlan */ -public static final String COLUMNNAME_QtyPlan = "QtyPlan"; -/** Set Quantity Used. -@param QtySpent Quantity used for this event */ -public void setQtySpent (BigDecimal QtySpent) -{ -set_Value ("QtySpent", QtySpent); -} -/** Get Quantity Used. -@return Quantity used for this event */ -public BigDecimal getQtySpent() -{ -BigDecimal bd = (BigDecimal)get_Value("QtySpent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtySpent */ -public static final String COLUMNNAME_QtySpent = "QtySpent"; -/** Set Category. -@param R_Category_ID Request Category */ -public void setR_Category_ID (int R_Category_ID) -{ -if (R_Category_ID <= 0) set_Value ("R_Category_ID", null); - else -set_Value ("R_Category_ID", Integer.valueOf(R_Category_ID)); -} -/** Get Category. -@return Request Category */ -public int getR_Category_ID() -{ -Integer ii = (Integer)get_Value("R_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Category_ID */ -public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; -/** Set Group. -@param R_Group_ID Request Group */ -public void setR_Group_ID (int R_Group_ID) -{ -if (R_Group_ID <= 0) set_Value ("R_Group_ID", null); - else -set_Value ("R_Group_ID", Integer.valueOf(R_Group_ID)); -} -/** Get Group. -@return Request Group */ -public int getR_Group_ID() -{ -Integer ii = (Integer)get_Value("R_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Group_ID */ -public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; -/** Set Mail Template. -@param R_MailText_ID Text templates for mailings */ -public void setR_MailText_ID (int R_MailText_ID) -{ -if (R_MailText_ID <= 0) set_Value ("R_MailText_ID", null); - else -set_Value ("R_MailText_ID", Integer.valueOf(R_MailText_ID)); -} -/** Get Mail Template. -@return Text templates for mailings */ -public int getR_MailText_ID() -{ -Integer ii = (Integer)get_Value("R_MailText_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_MailText_ID */ -public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + /** Set User Importance. + @param PriorityUser + Priority of the issue for the User + */ + public void setPriorityUser (String PriorityUser) + { +if (PriorityUser == null || PriorityUser.equals("1") || PriorityUser.equals("3") || PriorityUser.equals("5") || PriorityUser.equals("7") || PriorityUser.equals("9")); else throw new IllegalArgumentException ("PriorityUser Invalid value - " + PriorityUser + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (PriorityUser != null && PriorityUser.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityUser = PriorityUser.substring(0, 0); + } + set_Value (COLUMNNAME_PriorityUser, PriorityUser); + } + + /** Get User Importance. + @return Priority of the issue for the User + */ + public String getPriorityUser () + { + return (String)get_Value(COLUMNNAME_PriorityUser); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Plan. + @param QtyPlan + Planned Quantity + */ + public void setQtyPlan (BigDecimal QtyPlan) + { + set_Value (COLUMNNAME_QtyPlan, QtyPlan); + } + + /** Get Quantity Plan. + @return Planned Quantity + */ + public BigDecimal getQtyPlan () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyPlan); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Used. + @param QtySpent + Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent) + { + set_Value (COLUMNNAME_QtySpent, QtySpent); + } + + /** Get Quantity Used. + @return Quantity used for this event + */ + public BigDecimal getQtySpent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtySpent); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_R_Category getI_R_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Category. + @param R_Category_ID + Request Category + */ + public void setR_Category_ID (int R_Category_ID) + { + if (R_Category_ID <= 0) set_Value (COLUMNNAME_R_Category_ID, null); + else + set_Value (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + } + + /** Get Category. + @return Request Category + */ + public int getR_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Group getI_R_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Group. + @param R_Group_ID + Request Group + */ + public void setR_Group_ID (int R_Group_ID) + { + if (R_Group_ID <= 0) set_Value (COLUMNNAME_R_Group_ID, null); + else + set_Value (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + } + + /** Get Group. + @return Request Group + */ + public int getR_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_MailText getI_R_MailText() throws Exception + { + 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 e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID <= 0) set_Value (COLUMNNAME_R_MailText_ID, null); + else + set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** R_RequestRelated_ID AD_Reference_ID=341 */ public static final int R_REQUESTRELATED_ID_AD_Reference_ID=341; -/** Set Related Request. -@param R_RequestRelated_ID Related Request (Master Issue, ..) */ -public void setR_RequestRelated_ID (int R_RequestRelated_ID) -{ -if (R_RequestRelated_ID <= 0) set_Value ("R_RequestRelated_ID", null); - else -set_Value ("R_RequestRelated_ID", Integer.valueOf(R_RequestRelated_ID)); -} -/** Get Related Request. -@return Related Request (Master Issue, ..) */ -public int getR_RequestRelated_ID() -{ -Integer ii = (Integer)get_Value("R_RequestRelated_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestRelated_ID */ -public static final String COLUMNNAME_R_RequestRelated_ID = "R_RequestRelated_ID"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID < 1) throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); -set_Value ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -/** Set Request. -@param R_Request_ID Request from a Business Partner or Prospect */ -public void setR_Request_ID (int R_Request_ID) -{ -if (R_Request_ID < 1) throw new IllegalArgumentException ("R_Request_ID is mandatory."); -set_ValueNoCheck ("R_Request_ID", Integer.valueOf(R_Request_ID)); -} -/** Get Request. -@return Request from a Business Partner or Prospect */ -public int getR_Request_ID() -{ -Integer ii = (Integer)get_Value("R_Request_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Request_ID */ -public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; -/** Set Resolution. -@param R_Resolution_ID Request Resolution */ -public void setR_Resolution_ID (int R_Resolution_ID) -{ -if (R_Resolution_ID <= 0) set_Value ("R_Resolution_ID", null); - else -set_Value ("R_Resolution_ID", Integer.valueOf(R_Resolution_ID)); -} -/** Get Resolution. -@return Request Resolution */ -public int getR_Resolution_ID() -{ -Integer ii = (Integer)get_Value("R_Resolution_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Resolution_ID */ -public static final String COLUMNNAME_R_Resolution_ID = "R_Resolution_ID"; -/** Set Standard Response. -@param R_StandardResponse_ID Request Standard Response */ -public void setR_StandardResponse_ID (int R_StandardResponse_ID) -{ -if (R_StandardResponse_ID <= 0) set_Value ("R_StandardResponse_ID", null); - else -set_Value ("R_StandardResponse_ID", Integer.valueOf(R_StandardResponse_ID)); -} -/** Get Standard Response. -@return Request Standard Response */ -public int getR_StandardResponse_ID() -{ -Integer ii = (Integer)get_Value("R_StandardResponse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_StandardResponse_ID */ -public static final String COLUMNNAME_R_StandardResponse_ID = "R_StandardResponse_ID"; -/** Set Status. -@param R_Status_ID Request Status */ -public void setR_Status_ID (int R_Status_ID) -{ -if (R_Status_ID <= 0) set_Value ("R_Status_ID", null); - else -set_Value ("R_Status_ID", Integer.valueOf(R_Status_ID)); -} -/** Get Status. -@return Request Status */ -public int getR_Status_ID() -{ -Integer ii = (Integer)get_Value("R_Status_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Status_ID */ -public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null); - else -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Request Amount. -@param RequestAmt Amount associated with this request */ -public void setRequestAmt (BigDecimal RequestAmt) -{ -if (RequestAmt == null) throw new IllegalArgumentException ("RequestAmt is mandatory."); -set_Value ("RequestAmt", RequestAmt); -} -/** Get Request Amount. -@return Amount associated with this request */ -public BigDecimal getRequestAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("RequestAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name RequestAmt */ -public static final String COLUMNNAME_RequestAmt = "RequestAmt"; -/** Set Result. -@param Result Result of the action taken */ -public void setResult (String Result) -{ -if (Result != null && Result.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Result = Result.substring(0,1999); -} -set_Value ("Result", Result); -} -/** Get Result. -@return Result of the action taken */ -public String getResult() -{ -return (String)get_Value("Result"); -} -/** Column name Result */ -public static final String COLUMNNAME_Result = "Result"; + /** Set Related Request. + @param R_RequestRelated_ID + Related Request (Master Issue, ..) + */ + public void setR_RequestRelated_ID (int R_RequestRelated_ID) + { + if (R_RequestRelated_ID <= 0) set_Value (COLUMNNAME_R_RequestRelated_ID, null); + else + set_Value (COLUMNNAME_R_RequestRelated_ID, Integer.valueOf(R_RequestRelated_ID)); + } + + /** Get Related Request. + @return Related Request (Master Issue, ..) + */ + public int getR_RequestRelated_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestRelated_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID < 1) + throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID < 1) + throw new IllegalArgumentException ("R_Request_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Resolution getI_R_Resolution() throws Exception + { + 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 e; + } + return result; + } + + /** Set Resolution. + @param R_Resolution_ID + Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID) + { + if (R_Resolution_ID <= 0) set_Value (COLUMNNAME_R_Resolution_ID, null); + else + set_Value (COLUMNNAME_R_Resolution_ID, Integer.valueOf(R_Resolution_ID)); + } + + /** Get Resolution. + @return Request Resolution + */ + public int getR_Resolution_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Resolution_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_StandardResponse getI_R_StandardResponse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Standard Response. + @param R_StandardResponse_ID + Request Standard Response + */ + public void setR_StandardResponse_ID (int R_StandardResponse_ID) + { + if (R_StandardResponse_ID <= 0) set_Value (COLUMNNAME_R_StandardResponse_ID, null); + else + set_Value (COLUMNNAME_R_StandardResponse_ID, Integer.valueOf(R_StandardResponse_ID)); + } + + /** Get Standard Response. + @return Request Standard Response + */ + public int getR_StandardResponse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_StandardResponse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Status getI_R_Status() throws Exception + { + 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 e; + } + return result; + } + + /** Set Status. + @param R_Status_ID + Request Status + */ + public void setR_Status_ID (int R_Status_ID) + { + if (R_Status_ID <= 0) set_Value (COLUMNNAME_R_Status_ID, null); + else + set_Value (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); + } + + /** Get Status. + @return Request Status + */ + public int getR_Status_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Status_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID <= 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request Amount. + @param RequestAmt + Amount associated with this request + */ + public void setRequestAmt (BigDecimal RequestAmt) + { + if (RequestAmt == null) + throw new IllegalArgumentException ("RequestAmt is mandatory."); + set_Value (COLUMNNAME_RequestAmt, RequestAmt); + } + + /** Get Request Amount. + @return Amount associated with this request + */ + public BigDecimal getRequestAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RequestAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Result. + @param Result + Result of the action taken + */ + public void setResult (String Result) + { + if (Result != null && Result.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Result = Result.substring(0, 1999); + } + set_Value (COLUMNNAME_Result, Result); + } + + /** Get Result. + @return Result of the action taken + */ + public String getResult () + { + return (String)get_Value(COLUMNNAME_Result); + } /** SalesRep_ID AD_Reference_ID=286 */ public static final int SALESREP_ID_AD_Reference_ID=286; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -/** Set Start Time. -@param StartTime Time started */ -public void setStartTime (Timestamp StartTime) -{ -set_Value ("StartTime", StartTime); -} -/** Get Start Time. -@return Time started */ -public Timestamp getStartTime() -{ -return (Timestamp)get_Value("StartTime"); -} -/** Column name StartTime */ -public static final String COLUMNNAME_StartTime = "StartTime"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary == null) throw new IllegalArgumentException ("Summary is mandatory."); -if (Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } + + /** Set Start Time. + @param StartTime + Time started + */ + public void setStartTime (Timestamp StartTime) + { + set_Value (COLUMNNAME_StartTime, StartTime); + } + + /** Get Start Time. + @return Time started + */ + public Timestamp getStartTime () + { + return (Timestamp)get_Value(COLUMNNAME_StartTime); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary == null) + throw new IllegalArgumentException ("Summary is mandatory."); + if (Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } /** TaskStatus AD_Reference_ID=366 */ -public static final int TASKSTATUS_AD_Reference_ID=366; -/** 0% Not Started = 0 */ -public static final String TASKSTATUS_0NotStarted = "0"; -/** 20% Started = 2 */ -public static final String TASKSTATUS_20Started = "2"; -/** 40% Busy = 4 */ -public static final String TASKSTATUS_40Busy = "4"; -/** 60% Good Progress = 6 */ -public static final String TASKSTATUS_60GoodProgress = "6"; -/** 80% Nearly Done = 8 */ -public static final String TASKSTATUS_80NearlyDone = "8"; -/** 90% Finishing = 9 */ -public static final String TASKSTATUS_90Finishing = "9"; -/** 95% Almost Done = A */ -public static final String TASKSTATUS_95AlmostDone = "A"; -/** 99% Cleaning up = C */ -public static final String TASKSTATUS_99CleaningUp = "C"; -/** 100% Complete = D */ +public static final int TASKSTATUS_AD_Reference_ID=366;/** 0% Not Started = 0 */ +public static final String TASKSTATUS_0NotStarted = "0";/** 20% Started = 2 */ +public static final String TASKSTATUS_20Started = "2";/** 40% Busy = 4 */ +public static final String TASKSTATUS_40Busy = "4";/** 60% Good Progress = 6 */ +public static final String TASKSTATUS_60GoodProgress = "6";/** 80% Nearly Done = 8 */ +public static final String TASKSTATUS_80NearlyDone = "8";/** 90% Finishing = 9 */ +public static final String TASKSTATUS_90Finishing = "9";/** 95% Almost Done = A */ +public static final String TASKSTATUS_95AlmostDone = "A";/** 99% Cleaning up = C */ +public static final String TASKSTATUS_99CleaningUp = "C";/** 100% Complete = D */ public static final String TASKSTATUS_100Complete = "D"; -/** Set Task Status. -@param TaskStatus Status of the Task */ -public void setTaskStatus (String TaskStatus) -{ -if (TaskStatus == null || TaskStatus.equals("0") || TaskStatus.equals("2") || TaskStatus.equals("4") || TaskStatus.equals("6") || TaskStatus.equals("8") || TaskStatus.equals("9") || TaskStatus.equals("A") || TaskStatus.equals("C") || TaskStatus.equals("D")); - else throw new IllegalArgumentException ("TaskStatus Invalid value - " + TaskStatus + " - Reference_ID=366 - 0 - 2 - 4 - 6 - 8 - 9 - A - C - D"); -if (TaskStatus != null && TaskStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TaskStatus = TaskStatus.substring(0,0); -} -set_Value ("TaskStatus", TaskStatus); -} -/** Get Task Status. -@return Status of the Task */ -public String getTaskStatus() -{ -return (String)get_Value("TaskStatus"); -} -/** Column name TaskStatus */ -public static final String COLUMNNAME_TaskStatus = "TaskStatus"; -} + /** Set Task Status. + @param TaskStatus + Status of the Task + */ + public void setTaskStatus (String TaskStatus) + { +if (TaskStatus == null || TaskStatus.equals("0") || TaskStatus.equals("2") || TaskStatus.equals("4") || TaskStatus.equals("6") || TaskStatus.equals("8") || TaskStatus.equals("9") || TaskStatus.equals("A") || TaskStatus.equals("C") || TaskStatus.equals("D")); else throw new IllegalArgumentException ("TaskStatus Invalid value - " + TaskStatus + " - Reference_ID=366 - 0 - 2 - 4 - 6 - 8 - 9 - A - C - D"); if (TaskStatus != null && TaskStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + TaskStatus = TaskStatus.substring(0, 0); + } + set_Value (COLUMNNAME_TaskStatus, TaskStatus); + } + + /** Get Task Status. + @return Status of the Task + */ + public String getTaskStatus () + { + return (String)get_Value(COLUMNNAME_TaskStatus); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestAction.java b/base/src/org/compiere/model/X_R_RequestAction.java index 0feff9aa15..25253dbd6a 100644 --- a/base/src/org/compiere/model/X_R_RequestAction.java +++ b/base/src/org/compiere/model/X_R_RequestAction.java @@ -1,853 +1,1102 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestAction - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestAction extends PO + +/** Generated Model for R_RequestAction + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestAction extends PO implements I_R_RequestAction, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestAction_ID id -@param trxName transaction -*/ -public X_R_RequestAction (Properties ctx, int R_RequestAction_ID, String trxName) -{ -super (ctx, R_RequestAction_ID, trxName); -/** if (R_RequestAction_ID == 0) -{ -setR_RequestAction_ID (0); -setR_Request_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestAction (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestAction */ -public static final String Table_Name="R_RequestAction"; - -/** AD_Table_ID=418 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestAction[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Role. -@param AD_Role_ID Responsibility Role */ -public void setAD_Role_ID (int AD_Role_ID) -{ -if (AD_Role_ID <= 0) set_ValueNoCheck ("AD_Role_ID", null); - else -set_ValueNoCheck ("AD_Role_ID", Integer.valueOf(AD_Role_ID)); -} -/** Get Role. -@return Responsibility Role */ -public int getAD_Role_ID() -{ -Integer ii = (Integer)get_Value("AD_Role_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_Role_ID */ -public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_ValueNoCheck ("AD_User_ID", null); - else -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Asset. -@param A_Asset_ID Asset used internally or by customers */ -public void setA_Asset_ID (int A_Asset_ID) -{ -if (A_Asset_ID <= 0) set_ValueNoCheck ("A_Asset_ID", null); - else -set_ValueNoCheck ("A_Asset_ID", Integer.valueOf(A_Asset_ID)); -} -/** Get Asset. -@return Asset used internally or by customers */ -public int getA_Asset_ID() -{ -Integer ii = (Integer)get_Value("A_Asset_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name A_Asset_ID */ -public static final String COLUMNNAME_A_Asset_ID = "A_Asset_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_ValueNoCheck ("C_Activity_ID", null); - else -set_ValueNoCheck ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_ValueNoCheck ("C_BPartner_ID", null); - else -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Order. -@param C_Order_ID Order */ -public void setC_Order_ID (int C_Order_ID) -{ -if (C_Order_ID <= 0) set_ValueNoCheck ("C_Order_ID", null); - else -set_ValueNoCheck ("C_Order_ID", Integer.valueOf(C_Order_ID)); -} -/** Get Order. -@return Order */ -public int getC_Order_ID() -{ -Integer ii = (Integer)get_Value("C_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Order_ID */ -public static final String COLUMNNAME_C_Order_ID = "C_Order_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_ValueNoCheck ("C_Payment_ID", null); - else -set_ValueNoCheck ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_ValueNoCheck ("C_Project_ID", null); - else -set_ValueNoCheck ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestAction (Properties ctx, int R_RequestAction_ID, String trxName) + { + super (ctx, R_RequestAction_ID, trxName); + /** if (R_RequestAction_ID == 0) { setR_RequestAction_ID (0); + setR_Request_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestAction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestAction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getI_AD_Role() throws Exception + { + 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 e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID <= 0) set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); + else + set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Activity_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID)); + } + + /** Get Order. + @return Order + */ + public int getC_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** ConfidentialType AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPE_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPE_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPE_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPE_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPE_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPE_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPE_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPE_PrivateInformation = "P"; -/** Set Confidentiality. -@param ConfidentialType Type of Confidentiality */ -public void setConfidentialType (String ConfidentialType) -{ -if (ConfidentialType == null || ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); - else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialType != null && ConfidentialType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialType = ConfidentialType.substring(0,0); -} -set_ValueNoCheck ("ConfidentialType", ConfidentialType); -} -/** Get Confidentiality. -@return Type of Confidentiality */ -public String getConfidentialType() -{ -return (String)get_Value("ConfidentialType"); -} -/** Column name ConfidentialType */ -public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; -/** Set Complete Plan. -@param DateCompletePlan Planned Completion Date */ -public void setDateCompletePlan (Timestamp DateCompletePlan) -{ -set_Value ("DateCompletePlan", DateCompletePlan); -} -/** Get Complete Plan. -@return Planned Completion Date */ -public Timestamp getDateCompletePlan() -{ -return (Timestamp)get_Value("DateCompletePlan"); -} -/** Column name DateCompletePlan */ -public static final String COLUMNNAME_DateCompletePlan = "DateCompletePlan"; -/** Set Date next action. -@param DateNextAction Date that this request should be acted on */ -public void setDateNextAction (Timestamp DateNextAction) -{ -set_ValueNoCheck ("DateNextAction", DateNextAction); -} -/** Get Date next action. -@return Date that this request should be acted on */ -public Timestamp getDateNextAction() -{ -return (Timestamp)get_Value("DateNextAction"); -} -/** Column name DateNextAction */ -public static final String COLUMNNAME_DateNextAction = "DateNextAction"; -/** Set Start Plan. -@param DateStartPlan Planned Start Date */ -public void setDateStartPlan (Timestamp DateStartPlan) -{ -set_Value ("DateStartPlan", DateStartPlan); -} -/** Get Start Plan. -@return Planned Start Date */ -public Timestamp getDateStartPlan() -{ -return (Timestamp)get_Value("DateStartPlan"); -} -/** Column name DateStartPlan */ -public static final String COLUMNNAME_DateStartPlan = "DateStartPlan"; -/** Set End Date. -@param EndDate Last effective date (inclusive) */ -public void setEndDate (Timestamp EndDate) -{ -set_Value ("EndDate", EndDate); -} -/** Get End Date. -@return Last effective date (inclusive) */ -public Timestamp getEndDate() -{ -return (Timestamp)get_Value("EndDate"); -} -/** Column name EndDate */ -public static final String COLUMNNAME_EndDate = "EndDate"; + /** Set Confidentiality. + @param ConfidentialType + Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType) + { +if (ConfidentialType == null || ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialType != null && ConfidentialType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialType = ConfidentialType.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_ConfidentialType, ConfidentialType); + } + + /** Get Confidentiality. + @return Type of Confidentiality + */ + public String getConfidentialType () + { + return (String)get_Value(COLUMNNAME_ConfidentialType); + } + + /** Set Complete Plan. + @param DateCompletePlan + Planned Completion Date + */ + public void setDateCompletePlan (Timestamp DateCompletePlan) + { + set_Value (COLUMNNAME_DateCompletePlan, DateCompletePlan); + } + + /** Get Complete Plan. + @return Planned Completion Date + */ + public Timestamp getDateCompletePlan () + { + return (Timestamp)get_Value(COLUMNNAME_DateCompletePlan); + } + + /** Set Date next action. + @param DateNextAction + Date that this request should be acted on + */ + public void setDateNextAction (Timestamp DateNextAction) + { + set_ValueNoCheck (COLUMNNAME_DateNextAction, DateNextAction); + } + + /** Get Date next action. + @return Date that this request should be acted on + */ + public Timestamp getDateNextAction () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextAction); + } + + /** Set Start Plan. + @param DateStartPlan + Planned Start Date + */ + public void setDateStartPlan (Timestamp DateStartPlan) + { + set_Value (COLUMNNAME_DateStartPlan, DateStartPlan); + } + + /** Get Start Plan. + @return Planned Start Date + */ + public Timestamp getDateStartPlan () + { + return (Timestamp)get_Value(COLUMNNAME_DateStartPlan); + } + + /** Set End Date. + @param EndDate + Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate) + { + set_Value (COLUMNNAME_EndDate, EndDate); + } + + /** Get End Date. + @return Last effective date (inclusive) + */ + public Timestamp getEndDate () + { + return (Timestamp)get_Value(COLUMNNAME_EndDate); + } /** IsEscalated AD_Reference_ID=319 */ -public static final int ISESCALATED_AD_Reference_ID=319; -/** No = N */ -public static final String ISESCALATED_No = "N"; -/** Yes = Y */ +public static final int ISESCALATED_AD_Reference_ID=319;/** No = N */ +public static final String ISESCALATED_No = "N";/** Yes = Y */ public static final String ISESCALATED_Yes = "Y"; -/** Set Escalated. -@param IsEscalated This request has been escalated */ -public void setIsEscalated (String IsEscalated) -{ -if (IsEscalated == null || IsEscalated.equals("N") || IsEscalated.equals("Y")); - else throw new IllegalArgumentException ("IsEscalated Invalid value - " + IsEscalated + " - Reference_ID=319 - N - Y"); -if (IsEscalated != null && IsEscalated.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsEscalated = IsEscalated.substring(0,0); -} -set_ValueNoCheck ("IsEscalated", IsEscalated); -} -/** Get Escalated. -@return This request has been escalated */ -public String getIsEscalated() -{ -return (String)get_Value("IsEscalated"); -} -/** Column name IsEscalated */ -public static final String COLUMNNAME_IsEscalated = "IsEscalated"; + /** Set Escalated. + @param IsEscalated + This request has been escalated + */ + public void setIsEscalated (String IsEscalated) + { +if (IsEscalated == null || IsEscalated.equals("N") || IsEscalated.equals("Y")); else throw new IllegalArgumentException ("IsEscalated Invalid value - " + IsEscalated + " - Reference_ID=319 - N - Y"); if (IsEscalated != null && IsEscalated.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsEscalated = IsEscalated.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_IsEscalated, IsEscalated); + } + + /** Get Escalated. + @return This request has been escalated + */ + public String getIsEscalated () + { + return (String)get_Value(COLUMNNAME_IsEscalated); + } /** IsInvoiced AD_Reference_ID=319 */ -public static final int ISINVOICED_AD_Reference_ID=319; -/** No = N */ -public static final String ISINVOICED_No = "N"; -/** Yes = Y */ +public static final int ISINVOICED_AD_Reference_ID=319;/** No = N */ +public static final String ISINVOICED_No = "N";/** Yes = Y */ public static final String ISINVOICED_Yes = "Y"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (String IsInvoiced) -{ -if (IsInvoiced == null || IsInvoiced.equals("N") || IsInvoiced.equals("Y")); - else throw new IllegalArgumentException ("IsInvoiced Invalid value - " + IsInvoiced + " - Reference_ID=319 - N - Y"); -if (IsInvoiced != null && IsInvoiced.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsInvoiced = IsInvoiced.substring(0,0); -} -set_ValueNoCheck ("IsInvoiced", IsInvoiced); -} -/** Get Invoiced. -@return Is this invoiced? */ -public String getIsInvoiced() -{ -return (String)get_Value("IsInvoiced"); -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (String IsInvoiced) + { +if (IsInvoiced == null || IsInvoiced.equals("N") || IsInvoiced.equals("Y")); else throw new IllegalArgumentException ("IsInvoiced Invalid value - " + IsInvoiced + " - Reference_ID=319 - N - Y"); if (IsInvoiced != null && IsInvoiced.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsInvoiced = IsInvoiced.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_IsInvoiced, IsInvoiced); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public String getIsInvoiced () + { + return (String)get_Value(COLUMNNAME_IsInvoiced); + } /** IsSelfService AD_Reference_ID=319 */ -public static final int ISSELFSERVICE_AD_Reference_ID=319; -/** No = N */ -public static final String ISSELFSERVICE_No = "N"; -/** Yes = Y */ +public static final int ISSELFSERVICE_AD_Reference_ID=319;/** No = N */ +public static final String ISSELFSERVICE_No = "N";/** Yes = Y */ public static final String ISSELFSERVICE_Yes = "Y"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (String IsSelfService) -{ -if (IsSelfService == null || IsSelfService.equals("N") || IsSelfService.equals("Y")); - else throw new IllegalArgumentException ("IsSelfService Invalid value - " + IsSelfService + " - Reference_ID=319 - N - Y"); -if (IsSelfService != null && IsSelfService.length() > 1) -{ -log.warning("Length > 1 - truncated"); -IsSelfService = IsSelfService.substring(0,0); -} -set_ValueNoCheck ("IsSelfService", IsSelfService); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public String getIsSelfService() -{ -return (String)get_Value("IsSelfService"); -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID <= 0) set_ValueNoCheck ("M_InOut_ID", null); - else -set_ValueNoCheck ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (String IsSelfService) + { +if (IsSelfService == null || IsSelfService.equals("N") || IsSelfService.equals("Y")); else throw new IllegalArgumentException ("IsSelfService Invalid value - " + IsSelfService + " - Reference_ID=319 - N - Y"); if (IsSelfService != null && IsSelfService.length() > 1) + { + log.warning("Length > 1 - truncated"); + IsSelfService = IsSelfService.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_IsSelfService, IsSelfService); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public String getIsSelfService () + { + return (String)get_Value(COLUMNNAME_IsSelfService); + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_InOut_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_ProductSpent_ID AD_Reference_ID=162 */ public static final int M_PRODUCTSPENT_ID_AD_Reference_ID=162; -/** Set Product Used. -@param M_ProductSpent_ID Product/Resource/Service used in Request */ -public void setM_ProductSpent_ID (int M_ProductSpent_ID) -{ -if (M_ProductSpent_ID <= 0) set_Value ("M_ProductSpent_ID", null); - else -set_Value ("M_ProductSpent_ID", Integer.valueOf(M_ProductSpent_ID)); -} -/** Get Product Used. -@return Product/Resource/Service used in Request */ -public int getM_ProductSpent_ID() -{ -Integer ii = (Integer)get_Value("M_ProductSpent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductSpent_ID */ -public static final String COLUMNNAME_M_ProductSpent_ID = "M_ProductSpent_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_ValueNoCheck ("M_Product_ID", null); - else -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set RMA. -@param M_RMA_ID Return Material Authorization */ -public void setM_RMA_ID (int M_RMA_ID) -{ -if (M_RMA_ID <= 0) set_ValueNoCheck ("M_RMA_ID", null); - else -set_ValueNoCheck ("M_RMA_ID", Integer.valueOf(M_RMA_ID)); -} -/** Get RMA. -@return Return Material Authorization */ -public int getM_RMA_ID() -{ -Integer ii = (Integer)get_Value("M_RMA_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_RMA_ID */ -public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; -/** Set Null Columns. -@param NullColumns Columns with NULL value */ -public void setNullColumns (String NullColumns) -{ -if (NullColumns != null && NullColumns.length() > 255) -{ -log.warning("Length > 255 - truncated"); -NullColumns = NullColumns.substring(0,254); -} -set_ValueNoCheck ("NullColumns", NullColumns); -} -/** Get Null Columns. -@return Columns with NULL value */ -public String getNullColumns() -{ -return (String)get_Value("NullColumns"); -} -/** Column name NullColumns */ -public static final String COLUMNNAME_NullColumns = "NullColumns"; + /** Set Product Used. + @param M_ProductSpent_ID + Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID) + { + if (M_ProductSpent_ID <= 0) set_Value (COLUMNNAME_M_ProductSpent_ID, null); + else + set_Value (COLUMNNAME_M_ProductSpent_ID, Integer.valueOf(M_ProductSpent_ID)); + } + + /** Get Product Used. + @return Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductSpent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getI_M_RMA() throws Exception + { + 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 e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID <= 0) set_ValueNoCheck (COLUMNNAME_M_RMA_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Null Columns. + @param NullColumns + Columns with NULL value + */ + public void setNullColumns (String NullColumns) + { + if (NullColumns != null && NullColumns.length() > 255) + { + log.warning("Length > 255 - truncated"); + NullColumns = NullColumns.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_NullColumns, NullColumns); + } + + /** Get Null Columns. + @return Columns with NULL value + */ + public String getNullColumns () + { + return (String)get_Value(COLUMNNAME_NullColumns); + } /** Priority AD_Reference_ID=154 */ -public static final int PRIORITY_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITY_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITY_High = "3"; -/** Medium = 5 */ -public static final String PRIORITY_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITY_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITY_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITY_Urgent = "1";/** High = 3 */ +public static final String PRIORITY_High = "3";/** Medium = 5 */ +public static final String PRIORITY_Medium = "5";/** Low = 7 */ +public static final String PRIORITY_Low = "7";/** Minor = 9 */ public static final String PRIORITY_Minor = "9"; -/** Set Priority. -@param Priority Indicates if this request is of a high, medium or low priority. */ -public void setPriority (String Priority) -{ -if (Priority == null || Priority.equals("1") || Priority.equals("3") || Priority.equals("5") || Priority.equals("7") || Priority.equals("9")); - else throw new IllegalArgumentException ("Priority Invalid value - " + Priority + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (Priority != null && Priority.length() > 1) -{ -log.warning("Length > 1 - truncated"); -Priority = Priority.substring(0,0); -} -set_ValueNoCheck ("Priority", Priority); -} -/** Get Priority. -@return Indicates if this request is of a high, medium or low priority. */ -public String getPriority() -{ -return (String)get_Value("Priority"); -} -/** Column name Priority */ -public static final String COLUMNNAME_Priority = "Priority"; + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (String Priority) + { +if (Priority == null || Priority.equals("1") || Priority.equals("3") || Priority.equals("5") || Priority.equals("7") || Priority.equals("9")); else throw new IllegalArgumentException ("Priority Invalid value - " + Priority + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (Priority != null && Priority.length() > 1) + { + log.warning("Length > 1 - truncated"); + Priority = Priority.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_Priority, Priority); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public String getPriority () + { + return (String)get_Value(COLUMNNAME_Priority); + } /** PriorityUser AD_Reference_ID=154 */ -public static final int PRIORITYUSER_AD_Reference_ID=154; -/** Urgent = 1 */ -public static final String PRIORITYUSER_Urgent = "1"; -/** High = 3 */ -public static final String PRIORITYUSER_High = "3"; -/** Medium = 5 */ -public static final String PRIORITYUSER_Medium = "5"; -/** Low = 7 */ -public static final String PRIORITYUSER_Low = "7"; -/** Minor = 9 */ +public static final int PRIORITYUSER_AD_Reference_ID=154;/** Urgent = 1 */ +public static final String PRIORITYUSER_Urgent = "1";/** High = 3 */ +public static final String PRIORITYUSER_High = "3";/** Medium = 5 */ +public static final String PRIORITYUSER_Medium = "5";/** Low = 7 */ +public static final String PRIORITYUSER_Low = "7";/** Minor = 9 */ public static final String PRIORITYUSER_Minor = "9"; -/** Set User Importance. -@param PriorityUser Priority of the issue for the User */ -public void setPriorityUser (String PriorityUser) -{ -if (PriorityUser == null || PriorityUser.equals("1") || PriorityUser.equals("3") || PriorityUser.equals("5") || PriorityUser.equals("7") || PriorityUser.equals("9")); - else throw new IllegalArgumentException ("PriorityUser Invalid value - " + PriorityUser + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); -if (PriorityUser != null && PriorityUser.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PriorityUser = PriorityUser.substring(0,0); -} -set_ValueNoCheck ("PriorityUser", PriorityUser); -} -/** Get User Importance. -@return Priority of the issue for the User */ -public String getPriorityUser() -{ -return (String)get_Value("PriorityUser"); -} -/** Column name PriorityUser */ -public static final String COLUMNNAME_PriorityUser = "PriorityUser"; -/** Set Quantity Invoiced. -@param QtyInvoiced Invoiced Quantity */ -public void setQtyInvoiced (BigDecimal QtyInvoiced) -{ -set_Value ("QtyInvoiced", QtyInvoiced); -} -/** Get Quantity Invoiced. -@return Invoiced Quantity */ -public BigDecimal getQtyInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInvoiced */ -public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; -/** Set Quantity Plan. -@param QtyPlan Planned Quantity */ -public void setQtyPlan (BigDecimal QtyPlan) -{ -set_Value ("QtyPlan", QtyPlan); -} -/** Get Quantity Plan. -@return Planned Quantity */ -public BigDecimal getQtyPlan() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyPlan"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyPlan */ -public static final String COLUMNNAME_QtyPlan = "QtyPlan"; -/** Set Quantity Used. -@param QtySpent Quantity used for this event */ -public void setQtySpent (BigDecimal QtySpent) -{ -set_Value ("QtySpent", QtySpent); -} -/** Get Quantity Used. -@return Quantity used for this event */ -public BigDecimal getQtySpent() -{ -BigDecimal bd = (BigDecimal)get_Value("QtySpent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtySpent */ -public static final String COLUMNNAME_QtySpent = "QtySpent"; -/** Set Category. -@param R_Category_ID Request Category */ -public void setR_Category_ID (int R_Category_ID) -{ -if (R_Category_ID <= 0) set_ValueNoCheck ("R_Category_ID", null); - else -set_ValueNoCheck ("R_Category_ID", Integer.valueOf(R_Category_ID)); -} -/** Get Category. -@return Request Category */ -public int getR_Category_ID() -{ -Integer ii = (Integer)get_Value("R_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Category_ID */ -public static final String COLUMNNAME_R_Category_ID = "R_Category_ID"; -/** Set Group. -@param R_Group_ID Request Group */ -public void setR_Group_ID (int R_Group_ID) -{ -if (R_Group_ID <= 0) set_ValueNoCheck ("R_Group_ID", null); - else -set_ValueNoCheck ("R_Group_ID", Integer.valueOf(R_Group_ID)); -} -/** Get Group. -@return Request Group */ -public int getR_Group_ID() -{ -Integer ii = (Integer)get_Value("R_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Group_ID */ -public static final String COLUMNNAME_R_Group_ID = "R_Group_ID"; -/** Set Request History. -@param R_RequestAction_ID Request has been changed */ -public void setR_RequestAction_ID (int R_RequestAction_ID) -{ -if (R_RequestAction_ID < 1) throw new IllegalArgumentException ("R_RequestAction_ID is mandatory."); -set_ValueNoCheck ("R_RequestAction_ID", Integer.valueOf(R_RequestAction_ID)); -} -/** Get Request History. -@return Request has been changed */ -public int getR_RequestAction_ID() -{ -Integer ii = (Integer)get_Value("R_RequestAction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestAction_ID */ -public static final String COLUMNNAME_R_RequestAction_ID = "R_RequestAction_ID"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_ValueNoCheck ("R_RequestType_ID", null); - else -set_ValueNoCheck ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -/** Set Request. -@param R_Request_ID Request from a Business Partner or Prospect */ -public void setR_Request_ID (int R_Request_ID) -{ -if (R_Request_ID < 1) throw new IllegalArgumentException ("R_Request_ID is mandatory."); -set_ValueNoCheck ("R_Request_ID", Integer.valueOf(R_Request_ID)); -} -/** Get Request. -@return Request from a Business Partner or Prospect */ -public int getR_Request_ID() -{ -Integer ii = (Integer)get_Value("R_Request_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Request_ID */ -public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; -/** Set Resolution. -@param R_Resolution_ID Request Resolution */ -public void setR_Resolution_ID (int R_Resolution_ID) -{ -if (R_Resolution_ID <= 0) set_ValueNoCheck ("R_Resolution_ID", null); - else -set_ValueNoCheck ("R_Resolution_ID", Integer.valueOf(R_Resolution_ID)); -} -/** Get Resolution. -@return Request Resolution */ -public int getR_Resolution_ID() -{ -Integer ii = (Integer)get_Value("R_Resolution_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Resolution_ID */ -public static final String COLUMNNAME_R_Resolution_ID = "R_Resolution_ID"; -/** Set Status. -@param R_Status_ID Request Status */ -public void setR_Status_ID (int R_Status_ID) -{ -if (R_Status_ID <= 0) set_ValueNoCheck ("R_Status_ID", null); - else -set_ValueNoCheck ("R_Status_ID", Integer.valueOf(R_Status_ID)); -} -/** Get Status. -@return Request Status */ -public int getR_Status_ID() -{ -Integer ii = (Integer)get_Value("R_Status_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Status_ID */ -public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; + /** Set User Importance. + @param PriorityUser + Priority of the issue for the User + */ + public void setPriorityUser (String PriorityUser) + { +if (PriorityUser == null || PriorityUser.equals("1") || PriorityUser.equals("3") || PriorityUser.equals("5") || PriorityUser.equals("7") || PriorityUser.equals("9")); else throw new IllegalArgumentException ("PriorityUser Invalid value - " + PriorityUser + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9"); if (PriorityUser != null && PriorityUser.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityUser = PriorityUser.substring(0, 0); + } + set_ValueNoCheck (COLUMNNAME_PriorityUser, PriorityUser); + } + + /** Get User Importance. + @return Priority of the issue for the User + */ + public String getPriorityUser () + { + return (String)get_Value(COLUMNNAME_PriorityUser); + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Plan. + @param QtyPlan + Planned Quantity + */ + public void setQtyPlan (BigDecimal QtyPlan) + { + set_Value (COLUMNNAME_QtyPlan, QtyPlan); + } + + /** Get Quantity Plan. + @return Planned Quantity + */ + public BigDecimal getQtyPlan () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyPlan); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Used. + @param QtySpent + Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent) + { + set_Value (COLUMNNAME_QtySpent, QtySpent); + } + + /** Get Quantity Used. + @return Quantity used for this event + */ + public BigDecimal getQtySpent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtySpent); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_R_Category getI_R_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Category. + @param R_Category_ID + Request Category + */ + public void setR_Category_ID (int R_Category_ID) + { + if (R_Category_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_Category_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + } + + /** Get Category. + @return Request Category + */ + public int getR_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Group getI_R_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Group. + @param R_Group_ID + Request Group + */ + public void setR_Group_ID (int R_Group_ID) + { + if (R_Group_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_Group_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + } + + /** Get Group. + @return Request Group + */ + public int getR_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request History. + @param R_RequestAction_ID + Request has been changed + */ + public void setR_RequestAction_ID (int R_RequestAction_ID) + { + if (R_RequestAction_ID < 1) + throw new IllegalArgumentException ("R_RequestAction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestAction_ID, Integer.valueOf(R_RequestAction_ID)); + } + + /** Get Request History. + @return Request has been changed + */ + public int getR_RequestAction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestAction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Request getI_R_Request() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID < 1) + throw new IllegalArgumentException ("R_Request_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Resolution getI_R_Resolution() throws Exception + { + 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 e; + } + return result; + } + + /** Set Resolution. + @param R_Resolution_ID + Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID) + { + if (R_Resolution_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_Resolution_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Resolution_ID, Integer.valueOf(R_Resolution_ID)); + } + + /** Get Resolution. + @return Request Resolution + */ + public int getR_Resolution_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Resolution_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Status getI_R_Status() throws Exception + { + 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 e; + } + return result; + } + + /** Set Status. + @param R_Status_ID + Request Status + */ + public void setR_Status_ID (int R_Status_ID) + { + if (R_Status_ID <= 0) set_ValueNoCheck (COLUMNNAME_R_Status_ID, null); + else + set_ValueNoCheck (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); + } + + /** Get Status. + @return Request Status + */ + public int getR_Status_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Status_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** SalesRep_ID AD_Reference_ID=110 */ public static final int SALESREP_ID_AD_Reference_ID=110; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID <= 0) set_ValueNoCheck ("SalesRep_ID", null); - else -set_ValueNoCheck ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_ValueNoCheck ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID <= 0) set_ValueNoCheck (COLUMNNAME_SalesRep_ID, null); + else + set_ValueNoCheck (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } /** TaskStatus AD_Reference_ID=366 */ -public static final int TASKSTATUS_AD_Reference_ID=366; -/** 0% Not Started = 0 */ -public static final String TASKSTATUS_0NotStarted = "0"; -/** 20% Started = 2 */ -public static final String TASKSTATUS_20Started = "2"; -/** 40% Busy = 4 */ -public static final String TASKSTATUS_40Busy = "4"; -/** 60% Good Progress = 6 */ -public static final String TASKSTATUS_60GoodProgress = "6"; -/** 80% Nearly Done = 8 */ -public static final String TASKSTATUS_80NearlyDone = "8"; -/** 90% Finishing = 9 */ -public static final String TASKSTATUS_90Finishing = "9"; -/** 95% Almost Done = A */ -public static final String TASKSTATUS_95AlmostDone = "A"; -/** 99% Cleaning up = C */ -public static final String TASKSTATUS_99CleaningUp = "C"; -/** 100% Complete = D */ +public static final int TASKSTATUS_AD_Reference_ID=366;/** 0% Not Started = 0 */ +public static final String TASKSTATUS_0NotStarted = "0";/** 20% Started = 2 */ +public static final String TASKSTATUS_20Started = "2";/** 40% Busy = 4 */ +public static final String TASKSTATUS_40Busy = "4";/** 60% Good Progress = 6 */ +public static final String TASKSTATUS_60GoodProgress = "6";/** 80% Nearly Done = 8 */ +public static final String TASKSTATUS_80NearlyDone = "8";/** 90% Finishing = 9 */ +public static final String TASKSTATUS_90Finishing = "9";/** 95% Almost Done = A */ +public static final String TASKSTATUS_95AlmostDone = "A";/** 99% Cleaning up = C */ +public static final String TASKSTATUS_99CleaningUp = "C";/** 100% Complete = D */ public static final String TASKSTATUS_100Complete = "D"; -/** Set Task Status. -@param TaskStatus Status of the Task */ -public void setTaskStatus (String TaskStatus) -{ -if (TaskStatus == null || TaskStatus.equals("0") || TaskStatus.equals("2") || TaskStatus.equals("4") || TaskStatus.equals("6") || TaskStatus.equals("8") || TaskStatus.equals("9") || TaskStatus.equals("A") || TaskStatus.equals("C") || TaskStatus.equals("D")); - else throw new IllegalArgumentException ("TaskStatus Invalid value - " + TaskStatus + " - Reference_ID=366 - 0 - 2 - 4 - 6 - 8 - 9 - A - C - D"); -if (TaskStatus != null && TaskStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -TaskStatus = TaskStatus.substring(0,0); -} -set_Value ("TaskStatus", TaskStatus); -} -/** Get Task Status. -@return Status of the Task */ -public String getTaskStatus() -{ -return (String)get_Value("TaskStatus"); -} -/** Column name TaskStatus */ -public static final String COLUMNNAME_TaskStatus = "TaskStatus"; -} + /** Set Task Status. + @param TaskStatus + Status of the Task + */ + public void setTaskStatus (String TaskStatus) + { +if (TaskStatus == null || TaskStatus.equals("0") || TaskStatus.equals("2") || TaskStatus.equals("4") || TaskStatus.equals("6") || TaskStatus.equals("8") || TaskStatus.equals("9") || TaskStatus.equals("A") || TaskStatus.equals("C") || TaskStatus.equals("D")); else throw new IllegalArgumentException ("TaskStatus Invalid value - " + TaskStatus + " - Reference_ID=366 - 0 - 2 - 4 - 6 - 8 - 9 - A - C - D"); if (TaskStatus != null && TaskStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + TaskStatus = TaskStatus.substring(0, 0); + } + set_Value (COLUMNNAME_TaskStatus, TaskStatus); + } + + /** Get Task Status. + @return Status of the Task + */ + public String getTaskStatus () + { + return (String)get_Value(COLUMNNAME_TaskStatus); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestProcessor.java b/base/src/org/compiere/model/X_R_RequestProcessor.java index 6f608349be..90b3dd9fa6 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor.java @@ -1,372 +1,428 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestProcessor - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestProcessor extends PO + +/** Generated Model for R_RequestProcessor + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestProcessor extends PO implements I_R_RequestProcessor, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestProcessor_ID id -@param trxName transaction -*/ -public X_R_RequestProcessor (Properties ctx, int R_RequestProcessor_ID, String trxName) -{ -super (ctx, R_RequestProcessor_ID, trxName); -/** if (R_RequestProcessor_ID == 0) -{ -setFrequency (0); // 1 -setFrequencyType (null); -setInactivityAlertDays (0); // 0 -setKeepLogDays (0); // 7 -setName (null); -setOverdueAlertDays (0); // 0 -setOverdueAssignDays (0); // 0 -setR_RequestProcessor_ID (0); -setRemindDays (0); // 0 -setSupervisor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestProcessor (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestProcessor */ -public static final String Table_Name="R_RequestProcessor"; - -/** AD_Table_ID=420 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestProcessor[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Date last run. -@param DateLastRun Date the process was last run. */ -public void setDateLastRun (Timestamp DateLastRun) -{ -set_Value ("DateLastRun", DateLastRun); -} -/** Get Date last run. -@return Date the process was last run. */ -public Timestamp getDateLastRun() -{ -return (Timestamp)get_Value("DateLastRun"); -} -/** Column name DateLastRun */ -public static final String COLUMNNAME_DateLastRun = "DateLastRun"; -/** Set Date next run. -@param DateNextRun Date the process will run next */ -public void setDateNextRun (Timestamp DateNextRun) -{ -set_Value ("DateNextRun", DateNextRun); -} -/** Get Date next run. -@return Date the process will run next */ -public Timestamp getDateNextRun() -{ -return (Timestamp)get_Value("DateNextRun"); -} -/** Column name DateNextRun */ -public static final String COLUMNNAME_DateNextRun = "DateNextRun"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Frequency. -@param Frequency Frequency of events */ -public void setFrequency (int Frequency) -{ -set_Value ("Frequency", Integer.valueOf(Frequency)); -} -/** Get Frequency. -@return Frequency of events */ -public int getFrequency() -{ -Integer ii = (Integer)get_Value("Frequency"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Frequency */ -public static final String COLUMNNAME_Frequency = "Frequency"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestProcessor (Properties ctx, int R_RequestProcessor_ID, String trxName) + { + super (ctx, R_RequestProcessor_ID, trxName); + /** if (R_RequestProcessor_ID == 0) { setFrequency (0); +// 1 + setFrequencyType (null); + setInactivityAlertDays (0); +// 0 + setKeepLogDays (0); +// 7 + setName (null); + setOverdueAlertDays (0); +// 0 + setOverdueAssignDays (0); +// 0 + setR_RequestProcessor_ID (0); + setRemindDays (0); +// 0 + setSupervisor_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestProcessor (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestProcessor[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Date last run. + @param DateLastRun + Date the process was last run. + */ + public void setDateLastRun (Timestamp DateLastRun) + { + set_Value (COLUMNNAME_DateLastRun, DateLastRun); + } + + /** Get Date last run. + @return Date the process was last run. + */ + public Timestamp getDateLastRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastRun); + } + + /** Set Date next run. + @param DateNextRun + Date the process will run next + */ + public void setDateNextRun (Timestamp DateNextRun) + { + set_Value (COLUMNNAME_DateNextRun, DateNextRun); + } + + /** Get Date next run. + @return Date the process will run next + */ + public Timestamp getDateNextRun () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextRun); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Frequency. + @param Frequency + Frequency of events + */ + public void setFrequency (int Frequency) + { + set_Value (COLUMNNAME_Frequency, Integer.valueOf(Frequency)); + } + + /** Get Frequency. + @return Frequency of events + */ + public int getFrequency () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Frequency); + if (ii == null) + return 0; + return ii.intValue(); + } /** FrequencyType AD_Reference_ID=221 */ -public static final int FREQUENCYTYPE_AD_Reference_ID=221; -/** Day = D */ -public static final String FREQUENCYTYPE_Day = "D"; -/** Hour = H */ -public static final String FREQUENCYTYPE_Hour = "H"; -/** Minute = M */ +public static final int FREQUENCYTYPE_AD_Reference_ID=221;/** Day = D */ +public static final String FREQUENCYTYPE_Day = "D";/** Hour = H */ +public static final String FREQUENCYTYPE_Hour = "H";/** Minute = M */ public static final String FREQUENCYTYPE_Minute = "M"; -/** Set Frequency Type. -@param FrequencyType Frequency of event */ -public void setFrequencyType (String FrequencyType) -{ -if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory"); -if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); - else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); -if (FrequencyType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -FrequencyType = FrequencyType.substring(0,0); -} -set_Value ("FrequencyType", FrequencyType); -} -/** Get Frequency Type. -@return Frequency of event */ -public String getFrequencyType() -{ -return (String)get_Value("FrequencyType"); -} -/** Column name FrequencyType */ -public static final String COLUMNNAME_FrequencyType = "FrequencyType"; -/** Set Inactivity Alert Days. -@param InactivityAlertDays Send Alert when there is no activity after days (0= no alert) */ -public void setInactivityAlertDays (int InactivityAlertDays) -{ -set_Value ("InactivityAlertDays", Integer.valueOf(InactivityAlertDays)); -} -/** Get Inactivity Alert Days. -@return Send Alert when there is no activity after days (0= no alert) */ -public int getInactivityAlertDays() -{ -Integer ii = (Integer)get_Value("InactivityAlertDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name InactivityAlertDays */ -public static final String COLUMNNAME_InactivityAlertDays = "InactivityAlertDays"; -/** Set Days to keep Log. -@param KeepLogDays Number of days to keep the log entries */ -public void setKeepLogDays (int KeepLogDays) -{ -set_Value ("KeepLogDays", Integer.valueOf(KeepLogDays)); -} -/** Get Days to keep Log. -@return Number of days to keep the log entries */ -public int getKeepLogDays() -{ -Integer ii = (Integer)get_Value("KeepLogDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name KeepLogDays */ -public static final String COLUMNNAME_KeepLogDays = "KeepLogDays"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Alert after Days Due. -@param OverdueAlertDays Send email alert after number of days due (0=no alerts) */ -public void setOverdueAlertDays (int OverdueAlertDays) -{ -set_Value ("OverdueAlertDays", Integer.valueOf(OverdueAlertDays)); -} -/** Get Alert after Days Due. -@return Send email alert after number of days due (0=no alerts) */ -public int getOverdueAlertDays() -{ -Integer ii = (Integer)get_Value("OverdueAlertDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name OverdueAlertDays */ -public static final String COLUMNNAME_OverdueAlertDays = "OverdueAlertDays"; -/** Set Escalate after Days Due. -@param OverdueAssignDays Escalation to superior after number of due days (0 = no) */ -public void setOverdueAssignDays (int OverdueAssignDays) -{ -set_Value ("OverdueAssignDays", Integer.valueOf(OverdueAssignDays)); -} -/** Get Escalate after Days Due. -@return Escalation to superior after number of due days (0 = no) */ -public int getOverdueAssignDays() -{ -Integer ii = (Integer)get_Value("OverdueAssignDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name OverdueAssignDays */ -public static final String COLUMNNAME_OverdueAssignDays = "OverdueAssignDays"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Request Processor. -@param R_RequestProcessor_ID Processor for Requests */ -public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) -{ -if (R_RequestProcessor_ID < 1) throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); -set_ValueNoCheck ("R_RequestProcessor_ID", Integer.valueOf(R_RequestProcessor_ID)); -} -/** Get Request Processor. -@return Processor for Requests */ -public int getR_RequestProcessor_ID() -{ -Integer ii = (Integer)get_Value("R_RequestProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestProcessor_ID */ -public static final String COLUMNNAME_R_RequestProcessor_ID = "R_RequestProcessor_ID"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_Value ("R_RequestType_ID", null); - else -set_Value ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -/** Set Reminder Days. -@param RemindDays Days between sending Reminder Emails for a due or inactive Document */ -public void setRemindDays (int RemindDays) -{ -set_Value ("RemindDays", Integer.valueOf(RemindDays)); -} -/** Get Reminder Days. -@return Days between sending Reminder Emails for a due or inactive Document */ -public int getRemindDays() -{ -Integer ii = (Integer)get_Value("RemindDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name RemindDays */ -public static final String COLUMNNAME_RemindDays = "RemindDays"; + /** Set Frequency Type. + @param FrequencyType + Frequency of event + */ + public void setFrequencyType (String FrequencyType) + { +if (FrequencyType == null) throw new IllegalArgumentException ("FrequencyType is mandatory");if (FrequencyType.equals("D") || FrequencyType.equals("H") || FrequencyType.equals("M")); else throw new IllegalArgumentException ("FrequencyType Invalid value - " + FrequencyType + " - Reference_ID=221 - D - H - M"); if (FrequencyType.length() > 1) + { + log.warning("Length > 1 - truncated"); + FrequencyType = FrequencyType.substring(0, 0); + } + set_Value (COLUMNNAME_FrequencyType, FrequencyType); + } + + /** Get Frequency Type. + @return Frequency of event + */ + public String getFrequencyType () + { + return (String)get_Value(COLUMNNAME_FrequencyType); + } + + /** Set Inactivity Alert Days. + @param InactivityAlertDays + Send Alert when there is no activity after days (0= no alert) + */ + public void setInactivityAlertDays (int InactivityAlertDays) + { + set_Value (COLUMNNAME_InactivityAlertDays, Integer.valueOf(InactivityAlertDays)); + } + + /** Get Inactivity Alert Days. + @return Send Alert when there is no activity after days (0= no alert) + */ + public int getInactivityAlertDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_InactivityAlertDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Days to keep Log. + @param KeepLogDays + Number of days to keep the log entries + */ + public void setKeepLogDays (int KeepLogDays) + { + set_Value (COLUMNNAME_KeepLogDays, Integer.valueOf(KeepLogDays)); + } + + /** Get Days to keep Log. + @return Number of days to keep the log entries + */ + public int getKeepLogDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_KeepLogDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Alert after Days Due. + @param OverdueAlertDays + Send email alert after number of days due (0=no alerts) + */ + public void setOverdueAlertDays (int OverdueAlertDays) + { + set_Value (COLUMNNAME_OverdueAlertDays, Integer.valueOf(OverdueAlertDays)); + } + + /** Get Alert after Days Due. + @return Send email alert after number of days due (0=no alerts) + */ + public int getOverdueAlertDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_OverdueAlertDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Escalate after Days Due. + @param OverdueAssignDays + Escalation to superior after number of due days (0 = no) + */ + public void setOverdueAssignDays (int OverdueAssignDays) + { + set_Value (COLUMNNAME_OverdueAssignDays, Integer.valueOf(OverdueAssignDays)); + } + + /** Get Escalate after Days Due. + @return Escalation to superior after number of due days (0 = no) + */ + public int getOverdueAssignDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_OverdueAssignDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Request Processor. + @param R_RequestProcessor_ID + Processor for Requests + */ + public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) + { + if (R_RequestProcessor_ID < 1) + throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); + } + + /** Get Request Processor. + @return Processor for Requests + */ + public int getR_RequestProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Reminder Days. + @param RemindDays + Days between sending Reminder Emails for a due or inactive Document + */ + public void setRemindDays (int RemindDays) + { + set_Value (COLUMNNAME_RemindDays, Integer.valueOf(RemindDays)); + } + + /** Get Reminder Days. + @return Days between sending Reminder Emails for a due or inactive Document + */ + public int getRemindDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_RemindDays); + if (ii == null) + return 0; + return ii.intValue(); + } /** Supervisor_ID AD_Reference_ID=286 */ public static final int SUPERVISOR_ID_AD_Reference_ID=286; -/** Set Supervisor. -@param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ -public void setSupervisor_ID (int Supervisor_ID) -{ -if (Supervisor_ID < 1) throw new IllegalArgumentException ("Supervisor_ID is mandatory."); -set_Value ("Supervisor_ID", Integer.valueOf(Supervisor_ID)); -} -/** Get Supervisor. -@return Supervisor for this user/organization - used for escalation and approval */ -public int getSupervisor_ID() -{ -Integer ii = (Integer)get_Value("Supervisor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Supervisor_ID */ -public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; -} + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + throw new IllegalArgumentException ("Supervisor_ID is mandatory."); + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestProcessorLog.java b/base/src/org/compiere/model/X_R_RequestProcessorLog.java index 1c060826d3..8c1c93d281 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessorLog.java +++ b/base/src/org/compiere/model/X_R_RequestProcessorLog.java @@ -1,234 +1,264 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestProcessorLog - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestProcessorLog extends PO + +/** Generated Model for R_RequestProcessorLog + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestProcessorLog extends PO implements I_R_RequestProcessorLog, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestProcessorLog_ID id -@param trxName transaction -*/ -public X_R_RequestProcessorLog (Properties ctx, int R_RequestProcessorLog_ID, String trxName) -{ -super (ctx, R_RequestProcessorLog_ID, trxName); -/** if (R_RequestProcessorLog_ID == 0) -{ -setIsError (false); -setR_RequestProcessorLog_ID (0); -setR_RequestProcessor_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestProcessorLog (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestProcessorLog */ -public static final String Table_Name="R_RequestProcessorLog"; - -/** AD_Table_ID=659 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestProcessorLog[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (byte[] BinaryData) -{ -set_Value ("BinaryData", BinaryData); -} -/** Get BinaryData. -@return Binary Data */ -public byte[] getBinaryData() -{ -return (byte[])get_Value("BinaryData"); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Error. -@param IsError An Error occured in the execution */ -public void setIsError (boolean IsError) -{ -set_Value ("IsError", Boolean.valueOf(IsError)); -} -/** Get Error. -@return An Error occured in the execution */ -public boolean isError() -{ -Object oo = get_Value("IsError"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsError */ -public static final String COLUMNNAME_IsError = "IsError"; -/** Set Request Processor Log. -@param R_RequestProcessorLog_ID Result of the execution of the Request Processor */ -public void setR_RequestProcessorLog_ID (int R_RequestProcessorLog_ID) -{ -if (R_RequestProcessorLog_ID < 1) throw new IllegalArgumentException ("R_RequestProcessorLog_ID is mandatory."); -set_ValueNoCheck ("R_RequestProcessorLog_ID", Integer.valueOf(R_RequestProcessorLog_ID)); -} -/** Get Request Processor Log. -@return Result of the execution of the Request Processor */ -public int getR_RequestProcessorLog_ID() -{ -Integer ii = (Integer)get_Value("R_RequestProcessorLog_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestProcessorLog_ID */ -public static final String COLUMNNAME_R_RequestProcessorLog_ID = "R_RequestProcessorLog_ID"; -/** Set Request Processor. -@param R_RequestProcessor_ID Processor for Requests */ -public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) -{ -if (R_RequestProcessor_ID < 1) throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); -set_ValueNoCheck ("R_RequestProcessor_ID", Integer.valueOf(R_RequestProcessor_ID)); -} -/** Get Request Processor. -@return Processor for Requests */ -public int getR_RequestProcessor_ID() -{ -Integer ii = (Integer)get_Value("R_RequestProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestProcessor_ID */ -public static final String COLUMNNAME_R_RequestProcessor_ID = "R_RequestProcessor_ID"; -/** Set Reference. -@param Reference Reference for this record */ -public void setReference (String Reference) -{ -if (Reference != null && Reference.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Reference = Reference.substring(0,59); -} -set_Value ("Reference", Reference); -} -/** Get Reference. -@return Reference for this record */ -public String getReference() -{ -return (String)get_Value("Reference"); -} -/** Column name Reference */ -public static final String COLUMNNAME_Reference = "Reference"; -/** Set Summary. -@param Summary Textual summary of this request */ -public void setSummary (String Summary) -{ -if (Summary != null && Summary.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Summary = Summary.substring(0,1999); -} -set_Value ("Summary", Summary); -} -/** Get Summary. -@return Textual summary of this request */ -public String getSummary() -{ -return (String)get_Value("Summary"); -} -/** Column name Summary */ -public static final String COLUMNNAME_Summary = "Summary"; -/** Set Text Message. -@param TextMsg Text Message */ -public void setTextMsg (String TextMsg) -{ -if (TextMsg != null && TextMsg.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -TextMsg = TextMsg.substring(0,1999); -} -set_Value ("TextMsg", TextMsg); -} -/** Get Text Message. -@return Text Message */ -public String getTextMsg() -{ -return (String)get_Value("TextMsg"); -} -/** Column name TextMsg */ -public static final String COLUMNNAME_TextMsg = "TextMsg"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestProcessorLog (Properties ctx, int R_RequestProcessorLog_ID, String trxName) + { + super (ctx, R_RequestProcessorLog_ID, trxName); + /** if (R_RequestProcessorLog_ID == 0) { setIsError (false); + setR_RequestProcessorLog_ID (0); + setR_RequestProcessor_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestProcessorLog (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestProcessorLog[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (byte[] BinaryData) + { + set_Value (COLUMNNAME_BinaryData, BinaryData); + } + + /** Get BinaryData. + @return Binary Data + */ + public byte[] getBinaryData () + { + return (byte[])get_Value(COLUMNNAME_BinaryData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Error. + @param IsError + An Error occured in the execution + */ + public void setIsError (boolean IsError) + { + set_Value (COLUMNNAME_IsError, Boolean.valueOf(IsError)); + } + + /** Get Error. + @return An Error occured in the execution + */ + public boolean isError () + { + Object oo = get_Value(COLUMNNAME_IsError); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Request Processor Log. + @param R_RequestProcessorLog_ID + Result of the execution of the Request Processor + */ + public void setR_RequestProcessorLog_ID (int R_RequestProcessorLog_ID) + { + if (R_RequestProcessorLog_ID < 1) + throw new IllegalArgumentException ("R_RequestProcessorLog_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestProcessorLog_ID, Integer.valueOf(R_RequestProcessorLog_ID)); + } + + /** Get Request Processor Log. + @return Result of the execution of the Request Processor + */ + public int getR_RequestProcessorLog_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestProcessorLog_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestProcessor getI_R_RequestProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Processor. + @param R_RequestProcessor_ID + Processor for Requests + */ + public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) + { + if (R_RequestProcessor_ID < 1) + throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); + } + + /** Get Request Processor. + @return Processor for Requests + */ + public int getR_RequestProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Reference. + @param Reference + Reference for this record + */ + public void setReference (String Reference) + { + if (Reference != null && Reference.length() > 60) + { + log.warning("Length > 60 - truncated"); + Reference = Reference.substring(0, 59); + } + set_Value (COLUMNNAME_Reference, Reference); + } + + /** Get Reference. + @return Reference for this record + */ + public String getReference () + { + return (String)get_Value(COLUMNNAME_Reference); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary != null && Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 1999); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** Set Text Message. + @param TextMsg + Text Message + */ + public void setTextMsg (String TextMsg) + { + if (TextMsg != null && TextMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + TextMsg = TextMsg.substring(0, 1999); + } + set_Value (COLUMNNAME_TextMsg, TextMsg); + } + + /** Get Text Message. + @return Text Message + */ + public String getTextMsg () + { + return (String)get_Value(COLUMNNAME_TextMsg); + } +} \ No newline at end of file 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 2b667b58c5..e2e72ee775 100644 --- a/base/src/org/compiere/model/X_R_RequestProcessor_Route.java +++ b/base/src/org/compiere/model/X_R_RequestProcessor_Route.java @@ -1,203 +1,262 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestProcessor_Route - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestProcessor_Route extends PO + +/** Generated Model for R_RequestProcessor_Route + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestProcessor_Route extends PO implements I_R_RequestProcessor_Route, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestProcessor_Route_ID id -@param trxName transaction -*/ -public X_R_RequestProcessor_Route (Properties ctx, int R_RequestProcessor_Route_ID, String trxName) -{ -super (ctx, R_RequestProcessor_Route_ID, trxName); -/** if (R_RequestProcessor_Route_ID == 0) -{ -setAD_User_ID (0); -setR_RequestProcessor_ID (0); -setR_RequestProcessor_Route_ID (0); -setSeqNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestProcessor_Route (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestProcessor_Route */ -public static final String Table_Name="R_RequestProcessor_Route"; - -/** AD_Table_ID=474 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestProcessor_Route[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Keyword. -@param Keyword Case insensitive keyword */ -public void setKeyword (String Keyword) -{ -if (Keyword != null && Keyword.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Keyword = Keyword.substring(0,59); -} -set_Value ("Keyword", Keyword); -} -/** Get Keyword. -@return Case insensitive keyword */ -public String getKeyword() -{ -return (String)get_Value("Keyword"); -} -/** Column name Keyword */ -public static final String COLUMNNAME_Keyword = "Keyword"; -/** Set Request Processor. -@param R_RequestProcessor_ID Processor for Requests */ -public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) -{ -if (R_RequestProcessor_ID < 1) throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); -set_ValueNoCheck ("R_RequestProcessor_ID", Integer.valueOf(R_RequestProcessor_ID)); -} -/** Get Request Processor. -@return Processor for Requests */ -public int getR_RequestProcessor_ID() -{ -Integer ii = (Integer)get_Value("R_RequestProcessor_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestProcessor_ID */ -public static final String COLUMNNAME_R_RequestProcessor_ID = "R_RequestProcessor_ID"; -/** Set Request Routing. -@param R_RequestProcessor_Route_ID Automatic routing of requests */ -public void setR_RequestProcessor_Route_ID (int R_RequestProcessor_Route_ID) -{ -if (R_RequestProcessor_Route_ID < 1) throw new IllegalArgumentException ("R_RequestProcessor_Route_ID is mandatory."); -set_ValueNoCheck ("R_RequestProcessor_Route_ID", Integer.valueOf(R_RequestProcessor_Route_ID)); -} -/** Get Request Routing. -@return Automatic routing of requests */ -public int getR_RequestProcessor_Route_ID() -{ -Integer ii = (Integer)get_Value("R_RequestProcessor_Route_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestProcessor_Route_ID */ -public static final String COLUMNNAME_R_RequestProcessor_Route_ID = "R_RequestProcessor_Route_ID"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID <= 0) set_Value ("R_RequestType_ID", null); - else -set_Value ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestProcessor_Route (Properties ctx, int R_RequestProcessor_Route_ID, String trxName) + { + super (ctx, R_RequestProcessor_Route_ID, trxName); + /** if (R_RequestProcessor_Route_ID == 0) { setAD_User_ID (0); + setR_RequestProcessor_ID (0); + setR_RequestProcessor_Route_ID (0); + setSeqNo (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestProcessor_Route (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestProcessor_Route[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Keyword. + @param Keyword + Case insensitive keyword + */ + public void setKeyword (String Keyword) + { + if (Keyword != null && Keyword.length() > 60) + { + log.warning("Length > 60 - truncated"); + Keyword = Keyword.substring(0, 59); + } + set_Value (COLUMNNAME_Keyword, Keyword); + } + + /** Get Keyword. + @return Case insensitive keyword + */ + public String getKeyword () + { + return (String)get_Value(COLUMNNAME_Keyword); + } + + public I_R_RequestProcessor getI_R_RequestProcessor() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Processor. + @param R_RequestProcessor_ID + Processor for Requests + */ + public void setR_RequestProcessor_ID (int R_RequestProcessor_ID) + { + if (R_RequestProcessor_ID < 1) + throw new IllegalArgumentException ("R_RequestProcessor_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_ID, Integer.valueOf(R_RequestProcessor_ID)); + } + + /** Get Request Processor. + @return Processor for Requests + */ + public int getR_RequestProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request Routing. + @param R_RequestProcessor_Route_ID + Automatic routing of requests + */ + public void setR_RequestProcessor_Route_ID (int R_RequestProcessor_Route_ID) + { + if (R_RequestProcessor_Route_ID < 1) + throw new IllegalArgumentException ("R_RequestProcessor_Route_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestProcessor_Route_ID, Integer.valueOf(R_RequestProcessor_Route_ID)); + } + + /** Get Request Routing. + @return Automatic routing of requests + */ + public int getR_RequestProcessor_Route_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestProcessor_Route_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID <= 0) set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestType.java b/base/src/org/compiere/model/X_R_RequestType.java index 1089bea7e8..2e64534f41 100644 --- a/base/src/org/compiere/model/X_R_RequestType.java +++ b/base/src/org/compiere/model/X_R_RequestType.java @@ -1,403 +1,463 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestType extends PO + +/** Generated Model for R_RequestType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestType extends PO implements I_R_RequestType, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestType_ID id -@param trxName transaction -*/ -public X_R_RequestType (Properties ctx, int R_RequestType_ID, String trxName) -{ -super (ctx, R_RequestType_ID, trxName); -/** if (R_RequestType_ID == 0) -{ -setConfidentialType (null); // C -setDueDateTolerance (0); // 7 -setIsAutoChangeRequest (false); -setIsConfidentialInfo (false); // N -setIsDefault (false); // N -setIsEMailWhenDue (false); -setIsEMailWhenOverdue (false); -setIsIndexed (false); -setIsSelfService (true); // Y -setName (null); -setR_RequestType_ID (0); -setR_StatusCategory_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestType */ -public static final String Table_Name="R_RequestType"; - -/** AD_Table_ID=529 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Auto Due Date Days. -@param AutoDueDateDays Automatic Due Date Days */ -public void setAutoDueDateDays (int AutoDueDateDays) -{ -set_Value ("AutoDueDateDays", Integer.valueOf(AutoDueDateDays)); -} -/** Get Auto Due Date Days. -@return Automatic Due Date Days */ -public int getAutoDueDateDays() -{ -Integer ii = (Integer)get_Value("AutoDueDateDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AutoDueDateDays */ -public static final String COLUMNNAME_AutoDueDateDays = "AutoDueDateDays"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestType (Properties ctx, int R_RequestType_ID, String trxName) + { + super (ctx, R_RequestType_ID, trxName); + /** if (R_RequestType_ID == 0) { setConfidentialType (null); +// C + setDueDateTolerance (0); +// 7 + setIsAutoChangeRequest (false); + setIsConfidentialInfo (false); +// N + setIsDefault (false); +// N + setIsEMailWhenDue (false); + setIsEMailWhenOverdue (false); + setIsIndexed (false); + setIsSelfService (true); +// Y + setName (null); + setR_RequestType_ID (0); + setR_StatusCategory_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Auto Due Date Days. + @param AutoDueDateDays + Automatic Due Date Days + */ + public void setAutoDueDateDays (int AutoDueDateDays) + { + set_Value (COLUMNNAME_AutoDueDateDays, Integer.valueOf(AutoDueDateDays)); + } + + /** Get Auto Due Date Days. + @return Automatic Due Date Days + */ + public int getAutoDueDateDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AutoDueDateDays); + if (ii == null) + return 0; + return ii.intValue(); + } /** ConfidentialType AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPE_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPE_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPE_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPE_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPE_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPE_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPE_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPE_PrivateInformation = "P"; -/** Set Confidentiality. -@param ConfidentialType Type of Confidentiality */ -public void setConfidentialType (String ConfidentialType) -{ -if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); -if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); - else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialType = ConfidentialType.substring(0,0); -} -set_Value ("ConfidentialType", ConfidentialType); -} -/** Get Confidentiality. -@return Type of Confidentiality */ -public String getConfidentialType() -{ -return (String)get_Value("ConfidentialType"); -} -/** Column name ConfidentialType */ -public static final String COLUMNNAME_ConfidentialType = "ConfidentialType"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Due Date Tolerance. -@param DueDateTolerance Tolerance in days between the Date Next Action and the date the request is regarded as overdue */ -public void setDueDateTolerance (int DueDateTolerance) -{ -set_Value ("DueDateTolerance", Integer.valueOf(DueDateTolerance)); -} -/** Get Due Date Tolerance. -@return Tolerance in days between the Date Next Action and the date the request is regarded as overdue */ -public int getDueDateTolerance() -{ -Integer ii = (Integer)get_Value("DueDateTolerance"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DueDateTolerance */ -public static final String COLUMNNAME_DueDateTolerance = "DueDateTolerance"; -/** Set Create Change Request. -@param IsAutoChangeRequest Automatically create BOM (Engineering) Change Request */ -public void setIsAutoChangeRequest (boolean IsAutoChangeRequest) -{ -set_Value ("IsAutoChangeRequest", Boolean.valueOf(IsAutoChangeRequest)); -} -/** Get Create Change Request. -@return Automatically create BOM (Engineering) Change Request */ -public boolean isAutoChangeRequest() -{ -Object oo = get_Value("IsAutoChangeRequest"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAutoChangeRequest */ -public static final String COLUMNNAME_IsAutoChangeRequest = "IsAutoChangeRequest"; -/** Set Confidential Info. -@param IsConfidentialInfo Can enter confidential information */ -public void setIsConfidentialInfo (boolean IsConfidentialInfo) -{ -set_Value ("IsConfidentialInfo", Boolean.valueOf(IsConfidentialInfo)); -} -/** Get Confidential Info. -@return Can enter confidential information */ -public boolean isConfidentialInfo() -{ -Object oo = get_Value("IsConfidentialInfo"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsConfidentialInfo */ -public static final String COLUMNNAME_IsConfidentialInfo = "IsConfidentialInfo"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set EMail when Due. -@param IsEMailWhenDue Send EMail when Request becomes due */ -public void setIsEMailWhenDue (boolean IsEMailWhenDue) -{ -set_Value ("IsEMailWhenDue", Boolean.valueOf(IsEMailWhenDue)); -} -/** Get EMail when Due. -@return Send EMail when Request becomes due */ -public boolean isEMailWhenDue() -{ -Object oo = get_Value("IsEMailWhenDue"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEMailWhenDue */ -public static final String COLUMNNAME_IsEMailWhenDue = "IsEMailWhenDue"; -/** Set EMail when Overdue. -@param IsEMailWhenOverdue Send EMail when Request becomes overdue */ -public void setIsEMailWhenOverdue (boolean IsEMailWhenOverdue) -{ -set_Value ("IsEMailWhenOverdue", Boolean.valueOf(IsEMailWhenOverdue)); -} -/** Get EMail when Overdue. -@return Send EMail when Request becomes overdue */ -public boolean isEMailWhenOverdue() -{ -Object oo = get_Value("IsEMailWhenOverdue"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsEMailWhenOverdue */ -public static final String COLUMNNAME_IsEMailWhenOverdue = "IsEMailWhenOverdue"; -/** Set Indexed. -@param IsIndexed Index the document for the internal search engine */ -public void setIsIndexed (boolean IsIndexed) -{ -set_Value ("IsIndexed", Boolean.valueOf(IsIndexed)); -} -/** Get Indexed. -@return Index the document for the internal search engine */ -public boolean isIndexed() -{ -Object oo = get_Value("IsIndexed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsIndexed */ -public static final String COLUMNNAME_IsIndexed = "IsIndexed"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (boolean IsInvoiced) -{ -set_Value ("IsInvoiced", Boolean.valueOf(IsInvoiced)); -} -/** Get Invoiced. -@return Is this invoiced? */ -public boolean isInvoiced() -{ -Object oo = get_Value("IsInvoiced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID < 1) throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); -set_ValueNoCheck ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -/** Set Status Category. -@param R_StatusCategory_ID Request Status Category */ -public void setR_StatusCategory_ID (int R_StatusCategory_ID) -{ -if (R_StatusCategory_ID < 1) throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); -set_Value ("R_StatusCategory_ID", Integer.valueOf(R_StatusCategory_ID)); -} -/** Get Status Category. -@return Request Status Category */ -public int getR_StatusCategory_ID() -{ -Integer ii = (Integer)get_Value("R_StatusCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_StatusCategory_ID */ -public static final String COLUMNNAME_R_StatusCategory_ID = "R_StatusCategory_ID"; -} + /** Set Confidentiality. + @param ConfidentialType + Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType) + { +if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory");if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialType = ConfidentialType.substring(0, 0); + } + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); + } + + /** Get Confidentiality. + @return Type of Confidentiality + */ + public String getConfidentialType () + { + return (String)get_Value(COLUMNNAME_ConfidentialType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Due Date Tolerance. + @param DueDateTolerance + Tolerance in days between the Date Next Action and the date the request is regarded as overdue + */ + public void setDueDateTolerance (int DueDateTolerance) + { + set_Value (COLUMNNAME_DueDateTolerance, Integer.valueOf(DueDateTolerance)); + } + + /** Get Due Date Tolerance. + @return Tolerance in days between the Date Next Action and the date the request is regarded as overdue + */ + public int getDueDateTolerance () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DueDateTolerance); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Create Change Request. + @param IsAutoChangeRequest + Automatically create BOM (Engineering) Change Request + */ + public void setIsAutoChangeRequest (boolean IsAutoChangeRequest) + { + set_Value (COLUMNNAME_IsAutoChangeRequest, Boolean.valueOf(IsAutoChangeRequest)); + } + + /** Get Create Change Request. + @return Automatically create BOM (Engineering) Change Request + */ + public boolean isAutoChangeRequest () + { + Object oo = get_Value(COLUMNNAME_IsAutoChangeRequest); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Confidential Info. + @param IsConfidentialInfo + Can enter confidential information + */ + public void setIsConfidentialInfo (boolean IsConfidentialInfo) + { + set_Value (COLUMNNAME_IsConfidentialInfo, Boolean.valueOf(IsConfidentialInfo)); + } + + /** Get Confidential Info. + @return Can enter confidential information + */ + public boolean isConfidentialInfo () + { + Object oo = get_Value(COLUMNNAME_IsConfidentialInfo); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set EMail when Due. + @param IsEMailWhenDue + Send EMail when Request becomes due + */ + public void setIsEMailWhenDue (boolean IsEMailWhenDue) + { + set_Value (COLUMNNAME_IsEMailWhenDue, Boolean.valueOf(IsEMailWhenDue)); + } + + /** Get EMail when Due. + @return Send EMail when Request becomes due + */ + public boolean isEMailWhenDue () + { + Object oo = get_Value(COLUMNNAME_IsEMailWhenDue); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set EMail when Overdue. + @param IsEMailWhenOverdue + Send EMail when Request becomes overdue + */ + public void setIsEMailWhenOverdue (boolean IsEMailWhenOverdue) + { + set_Value (COLUMNNAME_IsEMailWhenOverdue, Boolean.valueOf(IsEMailWhenOverdue)); + } + + /** Get EMail when Overdue. + @return Send EMail when Request becomes overdue + */ + public boolean isEMailWhenOverdue () + { + Object oo = get_Value(COLUMNNAME_IsEMailWhenOverdue); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Indexed. + @param IsIndexed + Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed) + { + set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); + } + + /** Get Indexed. + @return Index the document for the internal search engine + */ + public boolean isIndexed () + { + Object oo = get_Value(COLUMNNAME_IsIndexed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID < 1) + throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_StatusCategory getI_R_StatusCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Status Category. + @param R_StatusCategory_ID + Request Status Category + */ + public void setR_StatusCategory_ID (int R_StatusCategory_ID) + { + if (R_StatusCategory_ID < 1) + throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); + set_Value (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); + } + + /** Get Status Category. + @return Request Status Category + */ + public int getR_StatusCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_StatusCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java index 172e785781..140352e694 100644 --- a/base/src/org/compiere/model/X_R_RequestTypeUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestTypeUpdates.java @@ -1,144 +1,159 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestTypeUpdates - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestTypeUpdates extends PO + +/** Generated Model for R_RequestTypeUpdates + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestTypeUpdates extends PO implements I_R_RequestTypeUpdates, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestTypeUpdates_ID id -@param trxName transaction -*/ -public X_R_RequestTypeUpdates (Properties ctx, int R_RequestTypeUpdates_ID, String trxName) -{ -super (ctx, R_RequestTypeUpdates_ID, trxName); -/** if (R_RequestTypeUpdates_ID == 0) -{ -setAD_User_ID (0); -setIsSelfService (false); -setR_RequestType_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestTypeUpdates (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestTypeUpdates */ -public static final String Table_Name="R_RequestTypeUpdates"; - -/** AD_Table_ID=784 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestTypeUpdates[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Request Type. -@param R_RequestType_ID Type of request (e.g. Inquiry, Complaint, ..) */ -public void setR_RequestType_ID (int R_RequestType_ID) -{ -if (R_RequestType_ID < 1) throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); -set_ValueNoCheck ("R_RequestType_ID", Integer.valueOf(R_RequestType_ID)); -} -/** Get Request Type. -@return Type of request (e.g. Inquiry, Complaint, ..) */ -public int getR_RequestType_ID() -{ -Integer ii = (Integer)get_Value("R_RequestType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_RequestType_ID */ -public static final String COLUMNNAME_R_RequestType_ID = "R_RequestType_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestTypeUpdates (Properties ctx, int R_RequestTypeUpdates_ID, String trxName) + { + super (ctx, R_RequestTypeUpdates_ID, trxName); + /** if (R_RequestTypeUpdates_ID == 0) { setAD_User_ID (0); + setIsSelfService (false); + setR_RequestType_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestTypeUpdates (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestTypeUpdates[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_R_RequestType getI_R_RequestType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID < 1) + throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestUpdate.java b/base/src/org/compiere/model/X_R_RequestUpdate.java index 614b0b769f..839ea20526 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdate.java +++ b/base/src/org/compiere/model/X_R_RequestUpdate.java @@ -1,263 +1,291 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestUpdate - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestUpdate extends PO + +/** Generated Model for R_RequestUpdate + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestUpdate extends PO implements I_R_RequestUpdate, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestUpdate_ID id -@param trxName transaction -*/ -public X_R_RequestUpdate (Properties ctx, int R_RequestUpdate_ID, String trxName) -{ -super (ctx, R_RequestUpdate_ID, trxName); -/** if (R_RequestUpdate_ID == 0) -{ -setConfidentialTypeEntry (null); -setR_RequestUpdate_ID (0); -setR_Request_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestUpdate (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestUpdate */ -public static final String Table_Name="R_RequestUpdate"; - -/** AD_Table_ID=802 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestUpdate[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestUpdate (Properties ctx, int R_RequestUpdate_ID, String trxName) + { + super (ctx, R_RequestUpdate_ID, trxName); + /** if (R_RequestUpdate_ID == 0) { setConfidentialTypeEntry (null); + setR_RequestUpdate_ID (0); + setR_Request_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestUpdate (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestUpdate[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** ConfidentialTypeEntry AD_Reference_ID=340 */ -public static final int CONFIDENTIALTYPEENTRY_AD_Reference_ID=340; -/** Public Information = A */ -public static final String CONFIDENTIALTYPEENTRY_PublicInformation = "A"; -/** Partner Confidential = C */ -public static final String CONFIDENTIALTYPEENTRY_PartnerConfidential = "C"; -/** Internal = I */ -public static final String CONFIDENTIALTYPEENTRY_Internal = "I"; -/** Private Information = P */ +public static final int CONFIDENTIALTYPEENTRY_AD_Reference_ID=340;/** Public Information = A */ +public static final String CONFIDENTIALTYPEENTRY_PublicInformation = "A";/** Partner Confidential = C */ +public static final String CONFIDENTIALTYPEENTRY_PartnerConfidential = "C";/** Internal = I */ +public static final String CONFIDENTIALTYPEENTRY_Internal = "I";/** Private Information = P */ public static final String CONFIDENTIALTYPEENTRY_PrivateInformation = "P"; -/** Set Entry Confidentiality. -@param ConfidentialTypeEntry Confidentiality of the individual entry */ -public void setConfidentialTypeEntry (String ConfidentialTypeEntry) -{ -if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory"); -if (ConfidentialTypeEntry.equals("A") || ConfidentialTypeEntry.equals("C") || ConfidentialTypeEntry.equals("I") || ConfidentialTypeEntry.equals("P")); - else throw new IllegalArgumentException ("ConfidentialTypeEntry Invalid value - " + ConfidentialTypeEntry + " - Reference_ID=340 - A - C - I - P"); -if (ConfidentialTypeEntry.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ConfidentialTypeEntry = ConfidentialTypeEntry.substring(0,0); -} -set_Value ("ConfidentialTypeEntry", ConfidentialTypeEntry); -} -/** Get Entry Confidentiality. -@return Confidentiality of the individual entry */ -public String getConfidentialTypeEntry() -{ -return (String)get_Value("ConfidentialTypeEntry"); -} -/** Column name ConfidentialTypeEntry */ -public static final String COLUMNNAME_ConfidentialTypeEntry = "ConfidentialTypeEntry"; -/** Set End Time. -@param EndTime End of the time span */ -public void setEndTime (Timestamp EndTime) -{ -set_Value ("EndTime", EndTime); -} -/** Get End Time. -@return End of the time span */ -public Timestamp getEndTime() -{ -return (Timestamp)get_Value("EndTime"); -} -/** Column name EndTime */ -public static final String COLUMNNAME_EndTime = "EndTime"; + /** Set Entry Confidentiality. + @param ConfidentialTypeEntry + Confidentiality of the individual entry + */ + public void setConfidentialTypeEntry (String ConfidentialTypeEntry) + { +if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory");if (ConfidentialTypeEntry.equals("A") || ConfidentialTypeEntry.equals("C") || ConfidentialTypeEntry.equals("I") || ConfidentialTypeEntry.equals("P")); else throw new IllegalArgumentException ("ConfidentialTypeEntry Invalid value - " + ConfidentialTypeEntry + " - Reference_ID=340 - A - C - I - P"); if (ConfidentialTypeEntry.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialTypeEntry = ConfidentialTypeEntry.substring(0, 0); + } + set_Value (COLUMNNAME_ConfidentialTypeEntry, ConfidentialTypeEntry); + } + + /** Get Entry Confidentiality. + @return Confidentiality of the individual entry + */ + public String getConfidentialTypeEntry () + { + return (String)get_Value(COLUMNNAME_ConfidentialTypeEntry); + } + + /** Set End Time. + @param EndTime + End of the time span + */ + public void setEndTime (Timestamp EndTime) + { + set_Value (COLUMNNAME_EndTime, EndTime); + } + + /** Get End Time. + @return End of the time span + */ + public Timestamp getEndTime () + { + return (Timestamp)get_Value(COLUMNNAME_EndTime); + } /** M_ProductSpent_ID AD_Reference_ID=162 */ public static final int M_PRODUCTSPENT_ID_AD_Reference_ID=162; -/** Set Product Used. -@param M_ProductSpent_ID Product/Resource/Service used in Request */ -public void setM_ProductSpent_ID (int M_ProductSpent_ID) -{ -if (M_ProductSpent_ID <= 0) set_Value ("M_ProductSpent_ID", null); - else -set_Value ("M_ProductSpent_ID", Integer.valueOf(M_ProductSpent_ID)); -} -/** Get Product Used. -@return Product/Resource/Service used in Request */ -public int getM_ProductSpent_ID() -{ -Integer ii = (Integer)get_Value("M_ProductSpent_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductSpent_ID */ -public static final String COLUMNNAME_M_ProductSpent_ID = "M_ProductSpent_ID"; -/** Set Quantity Invoiced. -@param QtyInvoiced Invoiced Quantity */ -public void setQtyInvoiced (BigDecimal QtyInvoiced) -{ -set_Value ("QtyInvoiced", QtyInvoiced); -} -/** Get Quantity Invoiced. -@return Invoiced Quantity */ -public BigDecimal getQtyInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInvoiced */ -public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; -/** Set Quantity Used. -@param QtySpent Quantity used for this event */ -public void setQtySpent (BigDecimal QtySpent) -{ -set_Value ("QtySpent", QtySpent); -} -/** Get Quantity Used. -@return Quantity used for this event */ -public BigDecimal getQtySpent() -{ -BigDecimal bd = (BigDecimal)get_Value("QtySpent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtySpent */ -public static final String COLUMNNAME_QtySpent = "QtySpent"; -/** Set Request Update. -@param R_RequestUpdate_ID Request Updates */ -public void setR_RequestUpdate_ID (int R_RequestUpdate_ID) -{ -if (R_RequestUpdate_ID < 1) throw new IllegalArgumentException ("R_RequestUpdate_ID is mandatory."); -set_ValueNoCheck ("R_RequestUpdate_ID", Integer.valueOf(R_RequestUpdate_ID)); -} -/** Get Request Update. -@return Request Updates */ -public int getR_RequestUpdate_ID() -{ -Integer ii = (Integer)get_Value("R_RequestUpdate_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getR_RequestUpdate_ID())); -} -/** Column name R_RequestUpdate_ID */ -public static final String COLUMNNAME_R_RequestUpdate_ID = "R_RequestUpdate_ID"; -/** Set Request. -@param R_Request_ID Request from a Business Partner or Prospect */ -public void setR_Request_ID (int R_Request_ID) -{ -if (R_Request_ID < 1) throw new IllegalArgumentException ("R_Request_ID is mandatory."); -set_ValueNoCheck ("R_Request_ID", Integer.valueOf(R_Request_ID)); -} -/** Get Request. -@return Request from a Business Partner or Prospect */ -public int getR_Request_ID() -{ -Integer ii = (Integer)get_Value("R_Request_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Request_ID */ -public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; -/** Set Result. -@param Result Result of the action taken */ -public void setResult (String Result) -{ -if (Result != null && Result.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Result = Result.substring(0,1999); -} -set_ValueNoCheck ("Result", Result); -} -/** Get Result. -@return Result of the action taken */ -public String getResult() -{ -return (String)get_Value("Result"); -} -/** Column name Result */ -public static final String COLUMNNAME_Result = "Result"; -/** Set Start Time. -@param StartTime Time started */ -public void setStartTime (Timestamp StartTime) -{ -set_Value ("StartTime", StartTime); -} -/** Get Start Time. -@return Time started */ -public Timestamp getStartTime() -{ -return (Timestamp)get_Value("StartTime"); -} -/** Column name StartTime */ -public static final String COLUMNNAME_StartTime = "StartTime"; -} + /** Set Product Used. + @param M_ProductSpent_ID + Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID) + { + if (M_ProductSpent_ID <= 0) set_Value (COLUMNNAME_M_ProductSpent_ID, null); + else + set_Value (COLUMNNAME_M_ProductSpent_ID, Integer.valueOf(M_ProductSpent_ID)); + } + + /** Get Product Used. + @return Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductSpent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Used. + @param QtySpent + Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent) + { + set_Value (COLUMNNAME_QtySpent, QtySpent); + } + + /** Get Quantity Used. + @return Quantity used for this event + */ + public BigDecimal getQtySpent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtySpent); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Request Update. + @param R_RequestUpdate_ID + Request Updates + */ + public void setR_RequestUpdate_ID (int R_RequestUpdate_ID) + { + if (R_RequestUpdate_ID < 1) + throw new IllegalArgumentException ("R_RequestUpdate_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_RequestUpdate_ID, Integer.valueOf(R_RequestUpdate_ID)); + } + + /** Get Request Update. + @return Request Updates + */ + public int getR_RequestUpdate_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestUpdate_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getR_RequestUpdate_ID())); + } + + public I_R_Request getI_R_Request() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID < 1) + throw new IllegalArgumentException ("R_Request_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Result. + @param Result + Result of the action taken + */ + public void setResult (String Result) + { + if (Result != null && Result.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Result = Result.substring(0, 1999); + } + set_ValueNoCheck (COLUMNNAME_Result, Result); + } + + /** Get Result. + @return Result of the action taken + */ + public String getResult () + { + return (String)get_Value(COLUMNNAME_Result); + } + + /** Set Start Time. + @param StartTime + Time started + */ + public void setStartTime (Timestamp StartTime) + { + set_Value (COLUMNNAME_StartTime, StartTime); + } + + /** Get Start Time. + @return Time started + */ + public Timestamp getStartTime () + { + return (Timestamp)get_Value(COLUMNNAME_StartTime); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_RequestUpdates.java b/base/src/org/compiere/model/X_R_RequestUpdates.java index f62a459083..3c34025089 100644 --- a/base/src/org/compiere/model/X_R_RequestUpdates.java +++ b/base/src/org/compiere/model/X_R_RequestUpdates.java @@ -1,144 +1,159 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_RequestUpdates - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_RequestUpdates extends PO + +/** Generated Model for R_RequestUpdates + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_RequestUpdates extends PO implements I_R_RequestUpdates, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_RequestUpdates_ID id -@param trxName transaction -*/ -public X_R_RequestUpdates (Properties ctx, int R_RequestUpdates_ID, String trxName) -{ -super (ctx, R_RequestUpdates_ID, trxName); -/** if (R_RequestUpdates_ID == 0) -{ -setAD_User_ID (0); -setIsSelfService (false); -setR_Request_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_RequestUpdates (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_RequestUpdates */ -public static final String Table_Name="R_RequestUpdates"; - -/** AD_Table_ID=783 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(7); -/** AccessLevel -@return 7 - System - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_RequestUpdates[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_ValueNoCheck ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Request. -@param R_Request_ID Request from a Business Partner or Prospect */ -public void setR_Request_ID (int R_Request_ID) -{ -if (R_Request_ID < 1) throw new IllegalArgumentException ("R_Request_ID is mandatory."); -set_ValueNoCheck ("R_Request_ID", Integer.valueOf(R_Request_ID)); -} -/** Get Request. -@return Request from a Business Partner or Prospect */ -public int getR_Request_ID() -{ -Integer ii = (Integer)get_Value("R_Request_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Request_ID */ -public static final String COLUMNNAME_R_Request_ID = "R_Request_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_RequestUpdates (Properties ctx, int R_RequestUpdates_ID, String trxName) + { + super (ctx, R_RequestUpdates_ID, trxName); + /** if (R_RequestUpdates_ID == 0) { setAD_User_ID (0); + setIsSelfService (false); + setR_Request_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_RequestUpdates (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_RequestUpdates[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_R_Request getI_R_Request() throws Exception + { + 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 e; + } + return result; + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID < 1) + throw new IllegalArgumentException ("R_Request_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_Resolution.java b/base/src/org/compiere/model/X_R_Resolution.java index d4ff5cc594..d9e32ccead 100644 --- a/base/src/org/compiere/model/X_R_Resolution.java +++ b/base/src/org/compiere/model/X_R_Resolution.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_Resolution - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_Resolution extends PO + +/** Generated Model for R_Resolution + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_Resolution extends PO implements I_R_Resolution, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_Resolution_ID id -@param trxName transaction -*/ -public X_R_Resolution (Properties ctx, int R_Resolution_ID, String trxName) -{ -super (ctx, R_Resolution_ID, trxName); -/** if (R_Resolution_ID == 0) -{ -setName (null); -setR_Resolution_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_Resolution (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_Resolution */ -public static final String Table_Name="R_Resolution"; - -/** AD_Table_ID=774 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_Resolution[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Resolution. -@param R_Resolution_ID Request Resolution */ -public void setR_Resolution_ID (int R_Resolution_ID) -{ -if (R_Resolution_ID < 1) throw new IllegalArgumentException ("R_Resolution_ID is mandatory."); -set_ValueNoCheck ("R_Resolution_ID", Integer.valueOf(R_Resolution_ID)); -} -/** Get Resolution. -@return Request Resolution */ -public int getR_Resolution_ID() -{ -Integer ii = (Integer)get_Value("R_Resolution_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Resolution_ID */ -public static final String COLUMNNAME_R_Resolution_ID = "R_Resolution_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_Resolution (Properties ctx, int R_Resolution_ID, String trxName) + { + super (ctx, R_Resolution_ID, trxName); + /** if (R_Resolution_ID == 0) { setName (null); + setR_Resolution_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_Resolution (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_Resolution[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Resolution. + @param R_Resolution_ID + Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID) + { + if (R_Resolution_ID < 1) + throw new IllegalArgumentException ("R_Resolution_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Resolution_ID, Integer.valueOf(R_Resolution_ID)); + } + + /** Get Resolution. + @return Request Resolution + */ + public int getR_Resolution_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Resolution_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_StandardResponse.java b/base/src/org/compiere/model/X_R_StandardResponse.java index e689ff3482..2b246a592d 100644 --- a/base/src/org/compiere/model/X_R_StandardResponse.java +++ b/base/src/org/compiere/model/X_R_StandardResponse.java @@ -1,153 +1,153 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_StandardResponse - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_StandardResponse extends PO + +/** Generated Model for R_StandardResponse + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_StandardResponse extends PO implements I_R_StandardResponse, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_StandardResponse_ID id -@param trxName transaction -*/ -public X_R_StandardResponse (Properties ctx, int R_StandardResponse_ID, String trxName) -{ -super (ctx, R_StandardResponse_ID, trxName); -/** if (R_StandardResponse_ID == 0) -{ -setName (null); -setR_StandardResponse_ID (0); -setResponseText (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_StandardResponse (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_StandardResponse */ -public static final String Table_Name="R_StandardResponse"; - -/** AD_Table_ID=775 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_StandardResponse[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Standard Response. -@param R_StandardResponse_ID Request Standard Response */ -public void setR_StandardResponse_ID (int R_StandardResponse_ID) -{ -if (R_StandardResponse_ID < 1) throw new IllegalArgumentException ("R_StandardResponse_ID is mandatory."); -set_ValueNoCheck ("R_StandardResponse_ID", Integer.valueOf(R_StandardResponse_ID)); -} -/** Get Standard Response. -@return Request Standard Response */ -public int getR_StandardResponse_ID() -{ -Integer ii = (Integer)get_Value("R_StandardResponse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_StandardResponse_ID */ -public static final String COLUMNNAME_R_StandardResponse_ID = "R_StandardResponse_ID"; -/** Set Response Text. -@param ResponseText Request Response Text */ -public void setResponseText (String ResponseText) -{ -if (ResponseText == null) throw new IllegalArgumentException ("ResponseText is mandatory."); -if (ResponseText.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -ResponseText = ResponseText.substring(0,1999); -} -set_Value ("ResponseText", ResponseText); -} -/** Get Response Text. -@return Request Response Text */ -public String getResponseText() -{ -return (String)get_Value("ResponseText"); -} -/** Column name ResponseText */ -public static final String COLUMNNAME_ResponseText = "ResponseText"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_StandardResponse (Properties ctx, int R_StandardResponse_ID, String trxName) + { + super (ctx, R_StandardResponse_ID, trxName); + /** if (R_StandardResponse_ID == 0) { setName (null); + setR_StandardResponse_ID (0); + setResponseText (null); +} */ + } + + /** Load Constructor */ + public X_R_StandardResponse (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_StandardResponse[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Standard Response. + @param R_StandardResponse_ID + Request Standard Response + */ + public void setR_StandardResponse_ID (int R_StandardResponse_ID) + { + if (R_StandardResponse_ID < 1) + throw new IllegalArgumentException ("R_StandardResponse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_StandardResponse_ID, Integer.valueOf(R_StandardResponse_ID)); + } + + /** Get Standard Response. + @return Request Standard Response + */ + public int getR_StandardResponse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_StandardResponse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Response Text. + @param ResponseText + Request Response Text + */ + public void setResponseText (String ResponseText) + { + if (ResponseText == null) + throw new IllegalArgumentException ("ResponseText is mandatory."); + if (ResponseText.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + ResponseText = ResponseText.substring(0, 1999); + } + set_Value (COLUMNNAME_ResponseText, ResponseText); + } + + /** Get Response Text. + @return Request Response Text + */ + public String getResponseText () + { + return (String)get_Value(COLUMNNAME_ResponseText); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_Status.java b/base/src/org/compiere/model/X_R_Status.java index 85ebead35a..18de290030 100644 --- a/base/src/org/compiere/model/X_R_Status.java +++ b/base/src/org/compiere/model/X_R_Status.java @@ -1,391 +1,452 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_Status - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_Status extends PO + +/** Generated Model for R_Status + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_Status extends PO implements I_R_Status, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_Status_ID id -@param trxName transaction -*/ -public X_R_Status (Properties ctx, int R_Status_ID, String trxName) -{ -super (ctx, R_Status_ID, trxName); -/** if (R_Status_ID == 0) -{ -setIsClosed (false); // N -setIsDefault (false); -setIsFinalClose (false); // N -setIsOpen (false); -setIsWebCanUpdate (false); -setName (null); -setR_StatusCategory_ID (0); -setR_Status_ID (0); -setSeqNo (0); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_Status (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_Status */ -public static final String Table_Name="R_Status"; - -/** AD_Table_ID=776 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_Status[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Closed Status. -@param IsClosed The status is closed */ -public void setIsClosed (boolean IsClosed) -{ -set_Value ("IsClosed", Boolean.valueOf(IsClosed)); -} -/** Get Closed Status. -@return The status is closed */ -public boolean isClosed() -{ -Object oo = get_Value("IsClosed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsClosed */ -public static final String COLUMNNAME_IsClosed = "IsClosed"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Final Close. -@param IsFinalClose Entries with Final Close cannot be re-opened */ -public void setIsFinalClose (boolean IsFinalClose) -{ -set_Value ("IsFinalClose", Boolean.valueOf(IsFinalClose)); -} -/** Get Final Close. -@return Entries with Final Close cannot be re-opened */ -public boolean isFinalClose() -{ -Object oo = get_Value("IsFinalClose"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsFinalClose */ -public static final String COLUMNNAME_IsFinalClose = "IsFinalClose"; -/** Set Open Status. -@param IsOpen The status is closed */ -public void setIsOpen (boolean IsOpen) -{ -set_Value ("IsOpen", Boolean.valueOf(IsOpen)); -} -/** Get Open Status. -@return The status is closed */ -public boolean isOpen() -{ -Object oo = get_Value("IsOpen"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsOpen */ -public static final String COLUMNNAME_IsOpen = "IsOpen"; -/** Set Web Can Update. -@param IsWebCanUpdate Entry can be updated from the Web */ -public void setIsWebCanUpdate (boolean IsWebCanUpdate) -{ -set_Value ("IsWebCanUpdate", Boolean.valueOf(IsWebCanUpdate)); -} -/** Get Web Can Update. -@return Entry can be updated from the Web */ -public boolean isWebCanUpdate() -{ -Object oo = get_Value("IsWebCanUpdate"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsWebCanUpdate */ -public static final String COLUMNNAME_IsWebCanUpdate = "IsWebCanUpdate"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_Status (Properties ctx, int R_Status_ID, String trxName) + { + super (ctx, R_Status_ID, trxName); + /** if (R_Status_ID == 0) { setIsClosed (false); +// N + setIsDefault (false); + setIsFinalClose (false); +// N + setIsOpen (false); + setIsWebCanUpdate (false); + setName (null); + setR_StatusCategory_ID (0); + setR_Status_ID (0); + setSeqNo (0); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_R_Status (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_Status[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Closed Status. + @param IsClosed + The status is closed + */ + public void setIsClosed (boolean IsClosed) + { + set_Value (COLUMNNAME_IsClosed, Boolean.valueOf(IsClosed)); + } + + /** Get Closed Status. + @return The status is closed + */ + public boolean isClosed () + { + Object oo = get_Value(COLUMNNAME_IsClosed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Final Close. + @param IsFinalClose + Entries with Final Close cannot be re-opened + */ + public void setIsFinalClose (boolean IsFinalClose) + { + set_Value (COLUMNNAME_IsFinalClose, Boolean.valueOf(IsFinalClose)); + } + + /** Get Final Close. + @return Entries with Final Close cannot be re-opened + */ + public boolean isFinalClose () + { + Object oo = get_Value(COLUMNNAME_IsFinalClose); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Open Status. + @param IsOpen + The status is closed + */ + public void setIsOpen (boolean IsOpen) + { + set_Value (COLUMNNAME_IsOpen, Boolean.valueOf(IsOpen)); + } + + /** Get Open Status. + @return The status is closed + */ + public boolean isOpen () + { + Object oo = get_Value(COLUMNNAME_IsOpen); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Web Can Update. + @param IsWebCanUpdate + Entry can be updated from the Web + */ + public void setIsWebCanUpdate (boolean IsWebCanUpdate) + { + set_Value (COLUMNNAME_IsWebCanUpdate, Boolean.valueOf(IsWebCanUpdate)); + } + + /** Get Web Can Update. + @return Entry can be updated from the Web + */ + public boolean isWebCanUpdate () + { + Object oo = get_Value(COLUMNNAME_IsWebCanUpdate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } /** Next_Status_ID AD_Reference_ID=345 */ public static final int NEXT_STATUS_ID_AD_Reference_ID=345; -/** Set Next Status. -@param Next_Status_ID Move to next status automatically after timeout */ -public void setNext_Status_ID (int Next_Status_ID) -{ -if (Next_Status_ID <= 0) set_Value ("Next_Status_ID", null); - else -set_Value ("Next_Status_ID", Integer.valueOf(Next_Status_ID)); -} -/** Get Next Status. -@return Move to next status automatically after timeout */ -public int getNext_Status_ID() -{ -Integer ii = (Integer)get_Value("Next_Status_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Next_Status_ID */ -public static final String COLUMNNAME_Next_Status_ID = "Next_Status_ID"; -/** Set Status Category. -@param R_StatusCategory_ID Request Status Category */ -public void setR_StatusCategory_ID (int R_StatusCategory_ID) -{ -if (R_StatusCategory_ID < 1) throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); -set_Value ("R_StatusCategory_ID", Integer.valueOf(R_StatusCategory_ID)); -} -/** Get Status Category. -@return Request Status Category */ -public int getR_StatusCategory_ID() -{ -Integer ii = (Integer)get_Value("R_StatusCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_StatusCategory_ID */ -public static final String COLUMNNAME_R_StatusCategory_ID = "R_StatusCategory_ID"; -/** Set Status. -@param R_Status_ID Request Status */ -public void setR_Status_ID (int R_Status_ID) -{ -if (R_Status_ID < 1) throw new IllegalArgumentException ("R_Status_ID is mandatory."); -set_ValueNoCheck ("R_Status_ID", Integer.valueOf(R_Status_ID)); -} -/** Get Status. -@return Request Status */ -public int getR_Status_ID() -{ -Integer ii = (Integer)get_Value("R_Status_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_Status_ID */ -public static final String COLUMNNAME_R_Status_ID = "R_Status_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_Value ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -/** Set Timeout in Days. -@param TimeoutDays Timeout in Days to change Status automatically */ -public void setTimeoutDays (int TimeoutDays) -{ -set_Value ("TimeoutDays", Integer.valueOf(TimeoutDays)); -} -/** Get Timeout in Days. -@return Timeout in Days to change Status automatically */ -public int getTimeoutDays() -{ -Integer ii = (Integer)get_Value("TimeoutDays"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name TimeoutDays */ -public static final String COLUMNNAME_TimeoutDays = "TimeoutDays"; + /** Set Next Status. + @param Next_Status_ID + Move to next status automatically after timeout + */ + public void setNext_Status_ID (int Next_Status_ID) + { + if (Next_Status_ID <= 0) set_Value (COLUMNNAME_Next_Status_ID, null); + else + set_Value (COLUMNNAME_Next_Status_ID, Integer.valueOf(Next_Status_ID)); + } + + /** Get Next Status. + @return Move to next status automatically after timeout + */ + public int getNext_Status_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Next_Status_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_StatusCategory getI_R_StatusCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Status Category. + @param R_StatusCategory_ID + Request Status Category + */ + public void setR_StatusCategory_ID (int R_StatusCategory_ID) + { + if (R_StatusCategory_ID < 1) + throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); + set_Value (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); + } + + /** Get Status Category. + @return Request Status Category + */ + public int getR_StatusCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_StatusCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Status. + @param R_Status_ID + Request Status + */ + public void setR_Status_ID (int R_Status_ID) + { + if (R_Status_ID < 1) + throw new IllegalArgumentException ("R_Status_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); + } + + /** Get Status. + @return Request Status + */ + public int getR_Status_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Status_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); + } + + /** Set Timeout in Days. + @param TimeoutDays + Timeout in Days to change Status automatically + */ + public void setTimeoutDays (int TimeoutDays) + { + set_Value (COLUMNNAME_TimeoutDays, Integer.valueOf(TimeoutDays)); + } + + /** Get Timeout in Days. + @return Timeout in Days to change Status automatically + */ + public int getTimeoutDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_TimeoutDays); + if (ii == null) + return 0; + return ii.intValue(); + } /** Update_Status_ID AD_Reference_ID=345 */ public static final int UPDATE_STATUS_ID_AD_Reference_ID=345; -/** Set Update Status. -@param Update_Status_ID Automatically change the status after entry from web */ -public void setUpdate_Status_ID (int Update_Status_ID) -{ -if (Update_Status_ID <= 0) set_Value ("Update_Status_ID", null); - else -set_Value ("Update_Status_ID", Integer.valueOf(Update_Status_ID)); -} -/** Get Update Status. -@return Automatically change the status after entry from web */ -public int getUpdate_Status_ID() -{ -Integer ii = (Integer)get_Value("Update_Status_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Update_Status_ID */ -public static final String COLUMNNAME_Update_Status_ID = "Update_Status_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + /** Set Update Status. + @param Update_Status_ID + Automatically change the status after entry from web + */ + public void setUpdate_Status_ID (int Update_Status_ID) + { + if (Update_Status_ID <= 0) set_Value (COLUMNNAME_Update_Status_ID, null); + else + set_Value (COLUMNNAME_Update_Status_ID, Integer.valueOf(Update_Status_ID)); + } + + /** Get Update Status. + @return Automatically change the status after entry from web + */ + public int getUpdate_Status_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Update_Status_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_StatusCategory.java b/base/src/org/compiere/model/X_R_StatusCategory.java index 7c07ba3752..0888b32ce4 100644 --- a/base/src/org/compiere/model/X_R_StatusCategory.java +++ b/base/src/org/compiere/model/X_R_StatusCategory.java @@ -1,191 +1,197 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for R_StatusCategory - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_R_StatusCategory extends PO + +/** Generated Model for R_StatusCategory + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_R_StatusCategory extends PO implements I_R_StatusCategory, I_Persistent { -/** Standard Constructor -@param ctx context -@param R_StatusCategory_ID id -@param trxName transaction -*/ -public X_R_StatusCategory (Properties ctx, int R_StatusCategory_ID, String trxName) -{ -super (ctx, R_StatusCategory_ID, trxName); -/** if (R_StatusCategory_ID == 0) -{ -setIsDefault (false); -setName (null); -setR_StatusCategory_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_R_StatusCategory (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=R_StatusCategory */ -public static final String Table_Name="R_StatusCategory"; - -/** AD_Table_ID=844 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(6); -/** AccessLevel -@return 6 - System - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_R_StatusCategory[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Name = Name.substring(0,119); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Status Category. -@param R_StatusCategory_ID Request Status Category */ -public void setR_StatusCategory_ID (int R_StatusCategory_ID) -{ -if (R_StatusCategory_ID < 1) throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); -set_ValueNoCheck ("R_StatusCategory_ID", Integer.valueOf(R_StatusCategory_ID)); -} -/** Get Status Category. -@return Request Status Category */ -public int getR_StatusCategory_ID() -{ -Integer ii = (Integer)get_Value("R_StatusCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name R_StatusCategory_ID */ -public static final String COLUMNNAME_R_StatusCategory_ID = "R_StatusCategory_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_StatusCategory (Properties ctx, int R_StatusCategory_ID, String trxName) + { + super (ctx, R_StatusCategory_ID, trxName); + /** if (R_StatusCategory_ID == 0) { setIsDefault (false); + setName (null); + setR_StatusCategory_ID (0); +} */ + } + + /** Load Constructor */ + public X_R_StatusCategory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_R_StatusCategory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 119); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Status Category. + @param R_StatusCategory_ID + Request Status Category + */ + public void setR_StatusCategory_ID (int R_StatusCategory_ID) + { + if (R_StatusCategory_ID < 1) + throw new IllegalArgumentException ("R_StatusCategory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_StatusCategory_ID, Integer.valueOf(R_StatusCategory_ID)); + } + + /** Get Status Category. + @return Request Status Category + */ + public int getR_StatusCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_StatusCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_ExpenseType.java b/base/src/org/compiere/model/X_S_ExpenseType.java index 9f8692336f..a21ce3a854 100644 --- a/base/src/org/compiere/model/X_S_ExpenseType.java +++ b/base/src/org/compiere/model/X_S_ExpenseType.java @@ -1,247 +1,317 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_ExpenseType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_ExpenseType extends PO + +/** Generated Model for S_ExpenseType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_ExpenseType extends PO implements I_S_ExpenseType, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_ExpenseType_ID id -@param trxName transaction -*/ -public X_S_ExpenseType (Properties ctx, int S_ExpenseType_ID, String trxName) -{ -super (ctx, S_ExpenseType_ID, trxName); -/** if (S_ExpenseType_ID == 0) -{ -setC_TaxCategory_ID (0); -setC_UOM_ID (0); -setIsInvoiced (false); -setM_Product_Category_ID (0); -setName (null); -setS_ExpenseType_ID (0); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_ExpenseType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_ExpenseType */ -public static final String Table_Name="S_ExpenseType"; - -/** AD_Table_ID=481 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_ExpenseType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_Value ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (boolean IsInvoiced) -{ -set_Value ("IsInvoiced", Boolean.valueOf(IsInvoiced)); -} -/** Get Invoiced. -@return Is this invoiced? */ -public boolean isInvoiced() -{ -Object oo = get_Value("IsInvoiced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID < 1) throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Expense Type. -@param S_ExpenseType_ID Expense report type */ -public void setS_ExpenseType_ID (int S_ExpenseType_ID) -{ -if (S_ExpenseType_ID < 1) throw new IllegalArgumentException ("S_ExpenseType_ID is mandatory."); -set_ValueNoCheck ("S_ExpenseType_ID", Integer.valueOf(S_ExpenseType_ID)); -} -/** Get Expense Type. -@return Expense report type */ -public int getS_ExpenseType_ID() -{ -Integer ii = (Integer)get_Value("S_ExpenseType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ExpenseType_ID */ -public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_ExpenseType (Properties ctx, int S_ExpenseType_ID, String trxName) + { + super (ctx, S_ExpenseType_ID, trxName); + /** if (S_ExpenseType_ID == 0) { setC_TaxCategory_ID (0); + setC_UOM_ID (0); + setIsInvoiced (false); + setM_Product_Category_ID (0); + setName (null); + setS_ExpenseType_ID (0); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_S_ExpenseType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_ExpenseType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Expense Type. + @param S_ExpenseType_ID + Expense report type + */ + public void setS_ExpenseType_ID (int S_ExpenseType_ID) + { + if (S_ExpenseType_ID < 1) + throw new IllegalArgumentException ("S_ExpenseType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID)); + } + + /** Get Expense Type. + @return Expense report type + */ + public int getS_ExpenseType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ExpenseType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_Resource.java b/base/src/org/compiere/model/X_S_Resource.java index d20daf1e16..e0bd768c56 100644 --- a/base/src/org/compiere/model/X_S_Resource.java +++ b/base/src/org/compiere/model/X_S_Resource.java @@ -1,263 +1,331 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_Resource - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_Resource extends PO + +/** Generated Model for S_Resource + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_Resource extends PO implements I_S_Resource, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_Resource_ID id -@param trxName transaction -*/ -public X_S_Resource (Properties ctx, int S_Resource_ID, String trxName) -{ -super (ctx, S_Resource_ID, trxName); -/** if (S_Resource_ID == 0) -{ -setIsAvailable (true); // Y -setM_Warehouse_ID (0); -setName (null); -setS_ResourceType_ID (0); -setS_Resource_ID (0); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_Resource (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_Resource */ -public static final String Table_Name="S_Resource"; - -/** AD_Table_ID=487 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_Resource[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Chargeable Quantity. -@param ChargeableQty Chargeable Quantity */ -public void setChargeableQty (BigDecimal ChargeableQty) -{ -set_Value ("ChargeableQty", ChargeableQty); -} -/** Get Chargeable Quantity. -@return Chargeable Quantity */ -public BigDecimal getChargeableQty() -{ -BigDecimal bd = (BigDecimal)get_Value("ChargeableQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ChargeableQty */ -public static final String COLUMNNAME_ChargeableQty = "ChargeableQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Available. -@param IsAvailable Resource is available */ -public void setIsAvailable (boolean IsAvailable) -{ -set_Value ("IsAvailable", Boolean.valueOf(IsAvailable)); -} -/** Get Available. -@return Resource is available */ -public boolean isAvailable() -{ -Object oo = get_Value("IsAvailable"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAvailable */ -public static final String COLUMNNAME_IsAvailable = "IsAvailable"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Resource Type. -@param S_ResourceType_ID Resource Type */ -public void setS_ResourceType_ID (int S_ResourceType_ID) -{ -if (S_ResourceType_ID < 1) throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); -set_Value ("S_ResourceType_ID", Integer.valueOf(S_ResourceType_ID)); -} -/** Get Resource Type. -@return Resource Type */ -public int getS_ResourceType_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceType_ID */ -public static final String COLUMNNAME_S_ResourceType_ID = "S_ResourceType_ID"; -/** Set Resource. -@param S_Resource_ID Resource */ -public void setS_Resource_ID (int S_Resource_ID) -{ -if (S_Resource_ID < 1) throw new IllegalArgumentException ("S_Resource_ID is mandatory."); -set_ValueNoCheck ("S_Resource_ID", Integer.valueOf(S_Resource_ID)); -} -/** Get Resource. -@return Resource */ -public int getS_Resource_ID() -{ -Integer ii = (Integer)get_Value("S_Resource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_Resource_ID */ -public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_Resource (Properties ctx, int S_Resource_ID, String trxName) + { + super (ctx, S_Resource_ID, trxName); + /** if (S_Resource_ID == 0) { setIsAvailable (true); +// Y + setM_Warehouse_ID (0); + setName (null); + setS_ResourceType_ID (0); + setS_Resource_ID (0); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_S_Resource (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_Resource[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Chargeable Quantity. + @param ChargeableQty Chargeable Quantity */ + public void setChargeableQty (BigDecimal ChargeableQty) + { + set_Value (COLUMNNAME_ChargeableQty, ChargeableQty); + } + + /** Get Chargeable Quantity. +@return Chargeable Quantity */ + public BigDecimal getChargeableQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeableQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Available. + @param IsAvailable + Resource is available + */ + public void setIsAvailable (boolean IsAvailable) + { + set_Value (COLUMNNAME_IsAvailable, Boolean.valueOf(IsAvailable)); + } + + /** Get Available. + @return Resource is available + */ + public boolean isAvailable () + { + Object oo = get_Value(COLUMNNAME_IsAvailable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + public I_S_ResourceType getI_S_ResourceType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Resource Type. + @param S_ResourceType_ID Resource Type */ + public void setS_ResourceType_ID (int S_ResourceType_ID) + { + if (S_ResourceType_ID < 1) + throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); + set_Value (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); + } + + /** Get Resource Type. +@return Resource Type */ + public int getS_ResourceType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + throw new IllegalArgumentException ("S_Resource_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_ResourceAssignment.java b/base/src/org/compiere/model/X_S_ResourceAssignment.java index 02f52dfad8..2ac2d71004 100644 --- a/base/src/org/compiere/model/X_S_ResourceAssignment.java +++ b/base/src/org/compiere/model/X_S_ResourceAssignment.java @@ -1,236 +1,271 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_ResourceAssignment - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_ResourceAssignment extends PO + +/** Generated Model for S_ResourceAssignment + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_ResourceAssignment extends PO implements I_S_ResourceAssignment, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_ResourceAssignment_ID id -@param trxName transaction -*/ -public X_S_ResourceAssignment (Properties ctx, int S_ResourceAssignment_ID, String trxName) -{ -super (ctx, S_ResourceAssignment_ID, trxName); -/** if (S_ResourceAssignment_ID == 0) -{ -setAssignDateFrom (new Timestamp(System.currentTimeMillis())); -setIsConfirmed (false); -setName (null); -setS_ResourceAssignment_ID (0); -setS_Resource_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_ResourceAssignment (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_ResourceAssignment */ -public static final String Table_Name="S_ResourceAssignment"; - -/** AD_Table_ID=485 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_ResourceAssignment[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Assign From. -@param AssignDateFrom Assign resource from */ -public void setAssignDateFrom (Timestamp AssignDateFrom) -{ -if (AssignDateFrom == null) throw new IllegalArgumentException ("AssignDateFrom is mandatory."); -set_ValueNoCheck ("AssignDateFrom", AssignDateFrom); -} -/** Get Assign From. -@return Assign resource from */ -public Timestamp getAssignDateFrom() -{ -return (Timestamp)get_Value("AssignDateFrom"); -} -/** Column name AssignDateFrom */ -public static final String COLUMNNAME_AssignDateFrom = "AssignDateFrom"; -/** Set Assign To. -@param AssignDateTo Assign resource until */ -public void setAssignDateTo (Timestamp AssignDateTo) -{ -set_ValueNoCheck ("AssignDateTo", AssignDateTo); -} -/** Get Assign To. -@return Assign resource until */ -public Timestamp getAssignDateTo() -{ -return (Timestamp)get_Value("AssignDateTo"); -} -/** Column name AssignDateTo */ -public static final String COLUMNNAME_AssignDateTo = "AssignDateTo"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Confirmed. -@param IsConfirmed Assignment is confirmed */ -public void setIsConfirmed (boolean IsConfirmed) -{ -set_ValueNoCheck ("IsConfirmed", Boolean.valueOf(IsConfirmed)); -} -/** Get Confirmed. -@return Assignment is confirmed */ -public boolean isConfirmed() -{ -Object oo = get_Value("IsConfirmed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsConfirmed */ -public static final String COLUMNNAME_IsConfirmed = "IsConfirmed"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_ValueNoCheck ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Resource Assignment. -@param S_ResourceAssignment_ID Resource Assignment */ -public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) -{ -if (S_ResourceAssignment_ID < 1) throw new IllegalArgumentException ("S_ResourceAssignment_ID is mandatory."); -set_ValueNoCheck ("S_ResourceAssignment_ID", Integer.valueOf(S_ResourceAssignment_ID)); -} -/** Get Resource Assignment. -@return Resource Assignment */ -public int getS_ResourceAssignment_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceAssignment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceAssignment_ID */ -public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; -/** Set Resource. -@param S_Resource_ID Resource */ -public void setS_Resource_ID (int S_Resource_ID) -{ -if (S_Resource_ID < 1) throw new IllegalArgumentException ("S_Resource_ID is mandatory."); -set_ValueNoCheck ("S_Resource_ID", Integer.valueOf(S_Resource_ID)); -} -/** Get Resource. -@return Resource */ -public int getS_Resource_ID() -{ -Integer ii = (Integer)get_Value("S_Resource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getS_Resource_ID())); -} -/** Column name S_Resource_ID */ -public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_ResourceAssignment (Properties ctx, int S_ResourceAssignment_ID, String trxName) + { + super (ctx, S_ResourceAssignment_ID, trxName); + /** if (S_ResourceAssignment_ID == 0) { setAssignDateFrom (new Timestamp(System.currentTimeMillis())); + setIsConfirmed (false); + setName (null); + setS_ResourceAssignment_ID (0); + setS_Resource_ID (0); +} */ + } + + /** Load Constructor */ + public X_S_ResourceAssignment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_ResourceAssignment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Assign From. + @param AssignDateFrom + Assign resource from + */ + public void setAssignDateFrom (Timestamp AssignDateFrom) + { + if (AssignDateFrom == null) + throw new IllegalArgumentException ("AssignDateFrom is mandatory."); + set_ValueNoCheck (COLUMNNAME_AssignDateFrom, AssignDateFrom); + } + + /** Get Assign From. + @return Assign resource from + */ + public Timestamp getAssignDateFrom () + { + return (Timestamp)get_Value(COLUMNNAME_AssignDateFrom); + } + + /** Set Assign To. + @param AssignDateTo + Assign resource until + */ + public void setAssignDateTo (Timestamp AssignDateTo) + { + set_ValueNoCheck (COLUMNNAME_AssignDateTo, AssignDateTo); + } + + /** Get Assign To. + @return Assign resource until + */ + public Timestamp getAssignDateTo () + { + return (Timestamp)get_Value(COLUMNNAME_AssignDateTo); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Confirmed. + @param IsConfirmed + Assignment is confirmed + */ + public void setIsConfirmed (boolean IsConfirmed) + { + set_ValueNoCheck (COLUMNNAME_IsConfirmed, Boolean.valueOf(IsConfirmed)); + } + + /** Get Confirmed. + @return Assignment is confirmed + */ + public boolean isConfirmed () + { + Object oo = get_Value(COLUMNNAME_IsConfirmed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_ValueNoCheck (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Resource Assignment. + @param S_ResourceAssignment_ID + Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) + { + if (S_ResourceAssignment_ID < 1) + throw new IllegalArgumentException ("S_ResourceAssignment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); + } + + /** Get Resource Assignment. + @return Resource Assignment + */ + public int getS_ResourceAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Resource getI_S_Resource() throws Exception + { + 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 e; + } + return result; + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + throw new IllegalArgumentException ("S_Resource_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getS_Resource_ID())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_ResourceType.java b/base/src/org/compiere/model/X_S_ResourceType.java index cb2bcb0bf6..ed871b9b1c 100644 --- a/base/src/org/compiere/model/X_S_ResourceType.java +++ b/base/src/org/compiere/model/X_S_ResourceType.java @@ -1,501 +1,621 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_ResourceType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_ResourceType extends PO + +/** Generated Model for S_ResourceType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_ResourceType extends PO implements I_S_ResourceType, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_ResourceType_ID id -@param trxName transaction -*/ -public X_S_ResourceType (Properties ctx, int S_ResourceType_ID, String trxName) -{ -super (ctx, S_ResourceType_ID, trxName); -/** if (S_ResourceType_ID == 0) -{ -setAllowUoMFractions (false); // N -setC_TaxCategory_ID (0); -setC_UOM_ID (0); -setIsDateSlot (false); -setIsSingleAssignment (false); -setIsTimeSlot (false); -setM_Product_Category_ID (0); -setName (null); -setOnFriday (true); // Y -setOnMonday (true); // Y -setOnSaturday (false); -setOnSunday (false); -setOnThursday (true); // Y -setOnTuesday (true); // Y -setOnWednesday (true); // Y -setS_ResourceType_ID (0); -setValue (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_ResourceType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_ResourceType */ -public static final String Table_Name="S_ResourceType"; - -/** AD_Table_ID=480 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_ResourceType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Allow UoM Fractions. -@param AllowUoMFractions Allow Unit of Measure Fractions */ -public void setAllowUoMFractions (boolean AllowUoMFractions) -{ -set_Value ("AllowUoMFractions", Boolean.valueOf(AllowUoMFractions)); -} -/** Get Allow UoM Fractions. -@return Allow Unit of Measure Fractions */ -public boolean isAllowUoMFractions() -{ -Object oo = get_Value("AllowUoMFractions"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name AllowUoMFractions */ -public static final String COLUMNNAME_AllowUoMFractions = "AllowUoMFractions"; -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_Value ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Chargeable Quantity. -@param ChargeableQty Chargeable Quantity */ -public void setChargeableQty (int ChargeableQty) -{ -set_Value ("ChargeableQty", Integer.valueOf(ChargeableQty)); -} -/** Get Chargeable Quantity. -@return Chargeable Quantity */ -public int getChargeableQty() -{ -Integer ii = (Integer)get_Value("ChargeableQty"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name ChargeableQty */ -public static final String COLUMNNAME_ChargeableQty = "ChargeableQty"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Day Slot. -@param IsDateSlot Resource has day slot availability */ -public void setIsDateSlot (boolean IsDateSlot) -{ -set_Value ("IsDateSlot", Boolean.valueOf(IsDateSlot)); -} -/** Get Day Slot. -@return Resource has day slot availability */ -public boolean isDateSlot() -{ -Object oo = get_Value("IsDateSlot"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDateSlot */ -public static final String COLUMNNAME_IsDateSlot = "IsDateSlot"; -/** Set Single Assignment only. -@param IsSingleAssignment Only one assignment at a time (no double-booking or overlapping) */ -public void setIsSingleAssignment (boolean IsSingleAssignment) -{ -set_Value ("IsSingleAssignment", Boolean.valueOf(IsSingleAssignment)); -} -/** Get Single Assignment only. -@return Only one assignment at a time (no double-booking or overlapping) */ -public boolean isSingleAssignment() -{ -Object oo = get_Value("IsSingleAssignment"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSingleAssignment */ -public static final String COLUMNNAME_IsSingleAssignment = "IsSingleAssignment"; -/** Set Time Slot. -@param IsTimeSlot Resource has time slot availability */ -public void setIsTimeSlot (boolean IsTimeSlot) -{ -set_Value ("IsTimeSlot", Boolean.valueOf(IsTimeSlot)); -} -/** Get Time Slot. -@return Resource has time slot availability */ -public boolean isTimeSlot() -{ -Object oo = get_Value("IsTimeSlot"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTimeSlot */ -public static final String COLUMNNAME_IsTimeSlot = "IsTimeSlot"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID < 1) throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Friday. -@param OnFriday Available on Fridays */ -public void setOnFriday (boolean OnFriday) -{ -set_Value ("OnFriday", Boolean.valueOf(OnFriday)); -} -/** Get Friday. -@return Available on Fridays */ -public boolean isOnFriday() -{ -Object oo = get_Value("OnFriday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnFriday */ -public static final String COLUMNNAME_OnFriday = "OnFriday"; -/** Set Monday. -@param OnMonday Available on Mondays */ -public void setOnMonday (boolean OnMonday) -{ -set_Value ("OnMonday", Boolean.valueOf(OnMonday)); -} -/** Get Monday. -@return Available on Mondays */ -public boolean isOnMonday() -{ -Object oo = get_Value("OnMonday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnMonday */ -public static final String COLUMNNAME_OnMonday = "OnMonday"; -/** Set Saturday. -@param OnSaturday Available on Saturday */ -public void setOnSaturday (boolean OnSaturday) -{ -set_Value ("OnSaturday", Boolean.valueOf(OnSaturday)); -} -/** Get Saturday. -@return Available on Saturday */ -public boolean isOnSaturday() -{ -Object oo = get_Value("OnSaturday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnSaturday */ -public static final String COLUMNNAME_OnSaturday = "OnSaturday"; -/** Set Sunday. -@param OnSunday Available on Sundays */ -public void setOnSunday (boolean OnSunday) -{ -set_Value ("OnSunday", Boolean.valueOf(OnSunday)); -} -/** Get Sunday. -@return Available on Sundays */ -public boolean isOnSunday() -{ -Object oo = get_Value("OnSunday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnSunday */ -public static final String COLUMNNAME_OnSunday = "OnSunday"; -/** Set Thursday. -@param OnThursday Available on Thursdays */ -public void setOnThursday (boolean OnThursday) -{ -set_Value ("OnThursday", Boolean.valueOf(OnThursday)); -} -/** Get Thursday. -@return Available on Thursdays */ -public boolean isOnThursday() -{ -Object oo = get_Value("OnThursday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnThursday */ -public static final String COLUMNNAME_OnThursday = "OnThursday"; -/** Set Tuesday. -@param OnTuesday Available on Tuesdays */ -public void setOnTuesday (boolean OnTuesday) -{ -set_Value ("OnTuesday", Boolean.valueOf(OnTuesday)); -} -/** Get Tuesday. -@return Available on Tuesdays */ -public boolean isOnTuesday() -{ -Object oo = get_Value("OnTuesday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnTuesday */ -public static final String COLUMNNAME_OnTuesday = "OnTuesday"; -/** Set Wednesday. -@param OnWednesday Available on Wednesdays */ -public void setOnWednesday (boolean OnWednesday) -{ -set_Value ("OnWednesday", Boolean.valueOf(OnWednesday)); -} -/** Get Wednesday. -@return Available on Wednesdays */ -public boolean isOnWednesday() -{ -Object oo = get_Value("OnWednesday"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name OnWednesday */ -public static final String COLUMNNAME_OnWednesday = "OnWednesday"; -/** Set Resource Type. -@param S_ResourceType_ID Resource Type */ -public void setS_ResourceType_ID (int S_ResourceType_ID) -{ -if (S_ResourceType_ID < 1) throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); -set_ValueNoCheck ("S_ResourceType_ID", Integer.valueOf(S_ResourceType_ID)); -} -/** Get Resource Type. -@return Resource Type */ -public int getS_ResourceType_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceType_ID */ -public static final String COLUMNNAME_S_ResourceType_ID = "S_ResourceType_ID"; -/** Set Slot End. -@param TimeSlotEnd Time when timeslot ends */ -public void setTimeSlotEnd (Timestamp TimeSlotEnd) -{ -set_Value ("TimeSlotEnd", TimeSlotEnd); -} -/** Get Slot End. -@return Time when timeslot ends */ -public Timestamp getTimeSlotEnd() -{ -return (Timestamp)get_Value("TimeSlotEnd"); -} -/** Column name TimeSlotEnd */ -public static final String COLUMNNAME_TimeSlotEnd = "TimeSlotEnd"; -/** Set Slot Start. -@param TimeSlotStart Time when timeslot starts */ -public void setTimeSlotStart (Timestamp TimeSlotStart) -{ -set_Value ("TimeSlotStart", TimeSlotStart); -} -/** Get Slot Start. -@return Time when timeslot starts */ -public Timestamp getTimeSlotStart() -{ -return (Timestamp)get_Value("TimeSlotStart"); -} -/** Column name TimeSlotStart */ -public static final String COLUMNNAME_TimeSlotStart = "TimeSlotStart"; -/** Set Search Key. -@param Value Search key for the record in the format required - must be unique */ -public void setValue (String Value) -{ -if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); -if (Value.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Value = Value.substring(0,39); -} -set_Value ("Value", Value); -} -/** Get Search Key. -@return Search key for the record in the format required - must be unique */ -public String getValue() -{ -return (String)get_Value("Value"); -} -/** Column name Value */ -public static final String COLUMNNAME_Value = "Value"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_ResourceType (Properties ctx, int S_ResourceType_ID, String trxName) + { + super (ctx, S_ResourceType_ID, trxName); + /** if (S_ResourceType_ID == 0) { setAllowUoMFractions (false); +// N + setC_TaxCategory_ID (0); + setC_UOM_ID (0); + setIsDateSlot (false); + setIsSingleAssignment (false); + setIsTimeSlot (false); + setM_Product_Category_ID (0); + setName (null); + setOnFriday (true); +// Y + setOnMonday (true); +// Y + setOnSaturday (false); + setOnSunday (false); + setOnThursday (true); +// Y + setOnTuesday (true); +// Y + setOnWednesday (true); +// Y + setS_ResourceType_ID (0); + setValue (null); +} */ + } + + /** Load Constructor */ + public X_S_ResourceType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_ResourceType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Allow UoM Fractions. + @param AllowUoMFractions + Allow Unit of Measure Fractions + */ + public void setAllowUoMFractions (boolean AllowUoMFractions) + { + set_Value (COLUMNNAME_AllowUoMFractions, Boolean.valueOf(AllowUoMFractions)); + } + + /** Get Allow UoM Fractions. + @return Allow Unit of Measure Fractions + */ + public boolean isAllowUoMFractions () + { + Object oo = get_Value(COLUMNNAME_AllowUoMFractions); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Chargeable Quantity. + @param ChargeableQty Chargeable Quantity */ + public void setChargeableQty (int ChargeableQty) + { + set_Value (COLUMNNAME_ChargeableQty, Integer.valueOf(ChargeableQty)); + } + + /** Get Chargeable Quantity. +@return Chargeable Quantity */ + public int getChargeableQty () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ChargeableQty); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Day Slot. + @param IsDateSlot + Resource has day slot availability + */ + public void setIsDateSlot (boolean IsDateSlot) + { + set_Value (COLUMNNAME_IsDateSlot, Boolean.valueOf(IsDateSlot)); + } + + /** Get Day Slot. + @return Resource has day slot availability + */ + public boolean isDateSlot () + { + Object oo = get_Value(COLUMNNAME_IsDateSlot); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Single Assignment only. + @param IsSingleAssignment + Only one assignment at a time (no double-booking or overlapping) + */ + public void setIsSingleAssignment (boolean IsSingleAssignment) + { + set_Value (COLUMNNAME_IsSingleAssignment, Boolean.valueOf(IsSingleAssignment)); + } + + /** Get Single Assignment only. + @return Only one assignment at a time (no double-booking or overlapping) + */ + public boolean isSingleAssignment () + { + Object oo = get_Value(COLUMNNAME_IsSingleAssignment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Time Slot. + @param IsTimeSlot + Resource has time slot availability + */ + public void setIsTimeSlot (boolean IsTimeSlot) + { + set_Value (COLUMNNAME_IsTimeSlot, Boolean.valueOf(IsTimeSlot)); + } + + /** Get Time Slot. + @return Resource has time slot availability + */ + public boolean isTimeSlot () + { + Object oo = get_Value(COLUMNNAME_IsTimeSlot); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Friday. + @param OnFriday + Available on Fridays + */ + public void setOnFriday (boolean OnFriday) + { + set_Value (COLUMNNAME_OnFriday, Boolean.valueOf(OnFriday)); + } + + /** Get Friday. + @return Available on Fridays + */ + public boolean isOnFriday () + { + Object oo = get_Value(COLUMNNAME_OnFriday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Monday. + @param OnMonday + Available on Mondays + */ + public void setOnMonday (boolean OnMonday) + { + set_Value (COLUMNNAME_OnMonday, Boolean.valueOf(OnMonday)); + } + + /** Get Monday. + @return Available on Mondays + */ + public boolean isOnMonday () + { + Object oo = get_Value(COLUMNNAME_OnMonday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Saturday. + @param OnSaturday + Available on Saturday + */ + public void setOnSaturday (boolean OnSaturday) + { + set_Value (COLUMNNAME_OnSaturday, Boolean.valueOf(OnSaturday)); + } + + /** Get Saturday. + @return Available on Saturday + */ + public boolean isOnSaturday () + { + Object oo = get_Value(COLUMNNAME_OnSaturday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sunday. + @param OnSunday + Available on Sundays + */ + public void setOnSunday (boolean OnSunday) + { + set_Value (COLUMNNAME_OnSunday, Boolean.valueOf(OnSunday)); + } + + /** Get Sunday. + @return Available on Sundays + */ + public boolean isOnSunday () + { + Object oo = get_Value(COLUMNNAME_OnSunday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Thursday. + @param OnThursday + Available on Thursdays + */ + public void setOnThursday (boolean OnThursday) + { + set_Value (COLUMNNAME_OnThursday, Boolean.valueOf(OnThursday)); + } + + /** Get Thursday. + @return Available on Thursdays + */ + public boolean isOnThursday () + { + Object oo = get_Value(COLUMNNAME_OnThursday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tuesday. + @param OnTuesday + Available on Tuesdays + */ + public void setOnTuesday (boolean OnTuesday) + { + set_Value (COLUMNNAME_OnTuesday, Boolean.valueOf(OnTuesday)); + } + + /** Get Tuesday. + @return Available on Tuesdays + */ + public boolean isOnTuesday () + { + Object oo = get_Value(COLUMNNAME_OnTuesday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Wednesday. + @param OnWednesday + Available on Wednesdays + */ + public void setOnWednesday (boolean OnWednesday) + { + set_Value (COLUMNNAME_OnWednesday, Boolean.valueOf(OnWednesday)); + } + + /** Get Wednesday. + @return Available on Wednesdays + */ + public boolean isOnWednesday () + { + Object oo = get_Value(COLUMNNAME_OnWednesday); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Resource Type. + @param S_ResourceType_ID Resource Type */ + public void setS_ResourceType_ID (int S_ResourceType_ID) + { + if (S_ResourceType_ID < 1) + throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); + } + + /** Get Resource Type. +@return Resource Type */ + public int getS_ResourceType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Slot End. + @param TimeSlotEnd + Time when timeslot ends + */ + public void setTimeSlotEnd (Timestamp TimeSlotEnd) + { + set_Value (COLUMNNAME_TimeSlotEnd, TimeSlotEnd); + } + + /** Get Slot End. + @return Time when timeslot ends + */ + public Timestamp getTimeSlotEnd () + { + return (Timestamp)get_Value(COLUMNNAME_TimeSlotEnd); + } + + /** Set Slot Start. + @param TimeSlotStart + Time when timeslot starts + */ + public void setTimeSlotStart (Timestamp TimeSlotStart) + { + set_Value (COLUMNNAME_TimeSlotStart, TimeSlotStart); + } + + /** Get Slot Start. + @return Time when timeslot starts + */ + public Timestamp getTimeSlotStart () + { + return (Timestamp)get_Value(COLUMNNAME_TimeSlotStart); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 39); + } + set_Value (COLUMNNAME_Value, Value); + } + + /** Get Search Key. + @return Search key for the record in the format required - must be unique + */ + public String getValue () + { + return (String)get_Value(COLUMNNAME_Value); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_ResourceUnAvailable.java b/base/src/org/compiere/model/X_S_ResourceUnAvailable.java index 5638756b59..664b926830 100644 --- a/base/src/org/compiere/model/X_S_ResourceUnAvailable.java +++ b/base/src/org/compiere/model/X_S_ResourceUnAvailable.java @@ -1,178 +1,198 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_ResourceUnAvailable - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_ResourceUnAvailable extends PO + +/** Generated Model for S_ResourceUnAvailable + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_ResourceUnAvailable extends PO implements I_S_ResourceUnAvailable, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_ResourceUnAvailable_ID id -@param trxName transaction -*/ -public X_S_ResourceUnAvailable (Properties ctx, int S_ResourceUnAvailable_ID, String trxName) -{ -super (ctx, S_ResourceUnAvailable_ID, trxName); -/** if (S_ResourceUnAvailable_ID == 0) -{ -setDateFrom (new Timestamp(System.currentTimeMillis())); -setS_ResourceUnAvailable_ID (0); -setS_Resource_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_ResourceUnAvailable (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_ResourceUnAvailable */ -public static final String Table_Name="S_ResourceUnAvailable"; - -/** AD_Table_ID=482 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_ResourceUnAvailable[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Date From. -@param DateFrom Starting date for a range */ -public void setDateFrom (Timestamp DateFrom) -{ -if (DateFrom == null) throw new IllegalArgumentException ("DateFrom is mandatory."); -set_Value ("DateFrom", DateFrom); -} -/** Get Date From. -@return Starting date for a range */ -public Timestamp getDateFrom() -{ -return (Timestamp)get_Value("DateFrom"); -} -/** Column name DateFrom */ -public static final String COLUMNNAME_DateFrom = "DateFrom"; -/** Set Date To. -@param DateTo End date of a date range */ -public void setDateTo (Timestamp DateTo) -{ -set_Value ("DateTo", DateTo); -} -/** Get Date To. -@return End date of a date range */ -public Timestamp getDateTo() -{ -return (Timestamp)get_Value("DateTo"); -} -/** Column name DateTo */ -public static final String COLUMNNAME_DateTo = "DateTo"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Resource Unavailability. -@param S_ResourceUnAvailable_ID Resource Unavailability */ -public void setS_ResourceUnAvailable_ID (int S_ResourceUnAvailable_ID) -{ -if (S_ResourceUnAvailable_ID < 1) throw new IllegalArgumentException ("S_ResourceUnAvailable_ID is mandatory."); -set_ValueNoCheck ("S_ResourceUnAvailable_ID", Integer.valueOf(S_ResourceUnAvailable_ID)); -} -/** Get Resource Unavailability. -@return Resource Unavailability */ -public int getS_ResourceUnAvailable_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceUnAvailable_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceUnAvailable_ID */ -public static final String COLUMNNAME_S_ResourceUnAvailable_ID = "S_ResourceUnAvailable_ID"; -/** Set Resource. -@param S_Resource_ID Resource */ -public void setS_Resource_ID (int S_Resource_ID) -{ -if (S_Resource_ID < 1) throw new IllegalArgumentException ("S_Resource_ID is mandatory."); -set_ValueNoCheck ("S_Resource_ID", Integer.valueOf(S_Resource_ID)); -} -/** Get Resource. -@return Resource */ -public int getS_Resource_ID() -{ -Integer ii = (Integer)get_Value("S_Resource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getS_Resource_ID())); -} -/** Column name S_Resource_ID */ -public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_ResourceUnAvailable (Properties ctx, int S_ResourceUnAvailable_ID, String trxName) + { + super (ctx, S_ResourceUnAvailable_ID, trxName); + /** if (S_ResourceUnAvailable_ID == 0) { setDateFrom (new Timestamp(System.currentTimeMillis())); + setS_ResourceUnAvailable_ID (0); + setS_Resource_ID (0); +} */ + } + + /** Load Constructor */ + public X_S_ResourceUnAvailable (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_ResourceUnAvailable[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Date From. + @param DateFrom + Starting date for a range + */ + public void setDateFrom (Timestamp DateFrom) + { + if (DateFrom == null) + throw new IllegalArgumentException ("DateFrom is mandatory."); + set_Value (COLUMNNAME_DateFrom, DateFrom); + } + + /** Get Date From. + @return Starting date for a range + */ + public Timestamp getDateFrom () + { + return (Timestamp)get_Value(COLUMNNAME_DateFrom); + } + + /** Set Date To. + @param DateTo + End date of a date range + */ + public void setDateTo (Timestamp DateTo) + { + set_Value (COLUMNNAME_DateTo, DateTo); + } + + /** Get Date To. + @return End date of a date range + */ + public Timestamp getDateTo () + { + return (Timestamp)get_Value(COLUMNNAME_DateTo); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Resource Unavailability. + @param S_ResourceUnAvailable_ID Resource Unavailability */ + public void setS_ResourceUnAvailable_ID (int S_ResourceUnAvailable_ID) + { + if (S_ResourceUnAvailable_ID < 1) + throw new IllegalArgumentException ("S_ResourceUnAvailable_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_ResourceUnAvailable_ID, Integer.valueOf(S_ResourceUnAvailable_ID)); + } + + /** Get Resource Unavailability. +@return Resource Unavailability */ + public int getS_ResourceUnAvailable_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceUnAvailable_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Resource getI_S_Resource() throws Exception + { + 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 e; + } + return result; + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + throw new IllegalArgumentException ("S_Resource_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getS_Resource_ID())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_TimeExpense.java b/base/src/org/compiere/model/X_S_TimeExpense.java index 91c67fa614..315da850ae 100644 --- a/base/src/org/compiere/model/X_S_TimeExpense.java +++ b/base/src/org/compiere/model/X_S_TimeExpense.java @@ -1,406 +1,443 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_TimeExpense - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_TimeExpense extends PO + +/** Generated Model for S_TimeExpense + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_TimeExpense extends PO implements I_S_TimeExpense, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_TimeExpense_ID id -@param trxName transaction -*/ -public X_S_TimeExpense (Properties ctx, int S_TimeExpense_ID, String trxName) -{ -super (ctx, S_TimeExpense_ID, trxName); -/** if (S_TimeExpense_ID == 0) -{ -setC_BPartner_ID (0); -setDateReport (new Timestamp(System.currentTimeMillis())); // @#Date@ -setDocAction (null); // CO -setDocStatus (null); // DR -setDocumentNo (null); -setIsApproved (false); -setM_PriceList_ID (0); -setM_Warehouse_ID (0); -setProcessed (false); -setS_TimeExpense_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_TimeExpense (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_TimeExpense */ -public static final String Table_Name="S_TimeExpense"; - -/** AD_Table_ID=486 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_TimeExpense[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Approval Amount. -@param ApprovalAmt Document Approval Amount */ -public void setApprovalAmt (BigDecimal ApprovalAmt) -{ -set_Value ("ApprovalAmt", ApprovalAmt); -} -/** Get Approval Amount. -@return Document Approval Amount */ -public BigDecimal getApprovalAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ApprovalAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ApprovalAmt */ -public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_TimeExpense (Properties ctx, int S_TimeExpense_ID, String trxName) + { + super (ctx, S_TimeExpense_ID, trxName); + /** if (S_TimeExpense_ID == 0) { setC_BPartner_ID (0); + setDateReport (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setM_PriceList_ID (0); + setM_Warehouse_ID (0); + setProcessed (false); + setS_TimeExpense_ID (0); +} */ + } + + /** Load Constructor */ + public X_S_TimeExpense (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_TimeExpense[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } /** C_BPartner_ID AD_Reference_ID=277 */ public static final int C_BPARTNER_ID_AD_Reference_ID=277; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Report Date. -@param DateReport Expense/Time Report Date */ -public void setDateReport (Timestamp DateReport) -{ -if (DateReport == null) throw new IllegalArgumentException ("DateReport is mandatory."); -set_Value ("DateReport", DateReport); -} -/** Get Report Date. -@return Expense/Time Report Date */ -public Timestamp getDateReport() -{ -return (Timestamp)get_Value("DateReport"); -} -/** Column name DateReport */ -public static final String COLUMNNAME_DateReport = "DateReport"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Report Date. + @param DateReport + Expense/Time Report Date + */ + public void setDateReport (Timestamp DateReport) + { + if (DateReport == null) + throw new IllegalArgumentException ("DateReport is mandatory."); + set_Value (COLUMNNAME_DateReport, DateReport); + } + + /** Get Report Date. + @return Expense/Time Report Date + */ + public Timestamp getDateReport () + { + return (Timestamp)get_Value(COLUMNNAME_DateReport); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** DocAction AD_Reference_ID=135 */ -public static final int DOCACTION_AD_Reference_ID=135; -/** = -- */ -public static final String DOCACTION_None = "--"; -/** Approve = AP */ -public static final String DOCACTION_Approve = "AP"; -/** Close = CL */ -public static final String DOCACTION_Close = "CL"; -/** Complete = CO */ -public static final String DOCACTION_Complete = "CO"; -/** Invalidate = IN */ -public static final String DOCACTION_Invalidate = "IN"; -/** Post = PO */ -public static final String DOCACTION_Post = "PO"; -/** Prepare = PR */ -public static final String DOCACTION_Prepare = "PR"; -/** Reverse - Accrual = RA */ -public static final String DOCACTION_Reverse_Accrual = "RA"; -/** Reverse - Correct = RC */ -public static final String DOCACTION_Reverse_Correct = "RC"; -/** Re-activate = RE */ -public static final String DOCACTION_Re_Activate = "RE"; -/** Reject = RJ */ -public static final String DOCACTION_Reject = "RJ"; -/** Void = VO */ -public static final String DOCACTION_Void = "VO"; -/** Wait Complete = WC */ -public static final String DOCACTION_WaitComplete = "WC"; -/** Unlock = XL */ +public static final int DOCACTION_AD_Reference_ID=135;/** = -- */ +public static final String DOCACTION_None = "--";/** Approve = AP */ +public static final String DOCACTION_Approve = "AP";/** Close = CL */ +public static final String DOCACTION_Close = "CL";/** Complete = CO */ +public static final String DOCACTION_Complete = "CO";/** Invalidate = IN */ +public static final String DOCACTION_Invalidate = "IN";/** Post = PO */ +public static final String DOCACTION_Post = "PO";/** Prepare = PR */ +public static final String DOCACTION_Prepare = "PR";/** Reverse - Accrual = RA */ +public static final String DOCACTION_Reverse_Accrual = "RA";/** Reverse - Correct = RC */ +public static final String DOCACTION_Reverse_Correct = "RC";/** Re-activate = RE */ +public static final String DOCACTION_Re_Activate = "RE";/** Reject = RJ */ +public static final String DOCACTION_Reject = "RJ";/** Void = VO */ +public static final String DOCACTION_Void = "VO";/** Wait Complete = WC */ +public static final String DOCACTION_WaitComplete = "WC";/** Unlock = XL */ public static final String DOCACTION_Unlock = "XL"; -/** Set Document Action. -@param DocAction The targeted status of the document */ -public void setDocAction (String DocAction) -{ -if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); -if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); - else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); -if (DocAction.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocAction = DocAction.substring(0,1); -} -set_Value ("DocAction", DocAction); -} -/** Get Document Action. -@return The targeted status of the document */ -public String getDocAction() -{ -return (String)get_Value("DocAction"); -} -/** Column name DocAction */ -public static final String COLUMNNAME_DocAction = "DocAction"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { +if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory");if (DocAction.equals("--") || DocAction.equals("AP") || DocAction.equals("CL") || DocAction.equals("CO") || DocAction.equals("IN") || DocAction.equals("PO") || DocAction.equals("PR") || DocAction.equals("RA") || DocAction.equals("RC") || DocAction.equals("RE") || DocAction.equals("RJ") || DocAction.equals("VO") || DocAction.equals("WC") || DocAction.equals("XL")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL"); if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 1); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } /** DocStatus AD_Reference_ID=131 */ -public static final int DOCSTATUS_AD_Reference_ID=131; -/** Unknown = ?? */ -public static final String DOCSTATUS_Unknown = "??"; -/** Approved = AP */ -public static final String DOCSTATUS_Approved = "AP"; -/** Closed = CL */ -public static final String DOCSTATUS_Closed = "CL"; -/** Completed = CO */ -public static final String DOCSTATUS_Completed = "CO"; -/** Drafted = DR */ -public static final String DOCSTATUS_Drafted = "DR"; -/** Invalid = IN */ -public static final String DOCSTATUS_Invalid = "IN"; -/** In Progress = IP */ -public static final String DOCSTATUS_InProgress = "IP"; -/** Not Approved = NA */ -public static final String DOCSTATUS_NotApproved = "NA"; -/** Reversed = RE */ -public static final String DOCSTATUS_Reversed = "RE"; -/** Voided = VO */ -public static final String DOCSTATUS_Voided = "VO"; -/** Waiting Confirmation = WC */ -public static final String DOCSTATUS_WaitingConfirmation = "WC"; -/** Waiting Payment = WP */ +public static final int DOCSTATUS_AD_Reference_ID=131;/** Unknown = ?? */ +public static final String DOCSTATUS_Unknown = "??";/** Approved = AP */ +public static final String DOCSTATUS_Approved = "AP";/** Closed = CL */ +public static final String DOCSTATUS_Closed = "CL";/** Completed = CO */ +public static final String DOCSTATUS_Completed = "CO";/** Drafted = DR */ +public static final String DOCSTATUS_Drafted = "DR";/** Invalid = IN */ +public static final String DOCSTATUS_Invalid = "IN";/** In Progress = IP */ +public static final String DOCSTATUS_InProgress = "IP";/** Not Approved = NA */ +public static final String DOCSTATUS_NotApproved = "NA";/** Reversed = RE */ +public static final String DOCSTATUS_Reversed = "RE";/** Voided = VO */ +public static final String DOCSTATUS_Voided = "VO";/** Waiting Confirmation = WC */ +public static final String DOCSTATUS_WaitingConfirmation = "WC";/** Waiting Payment = WP */ public static final String DOCSTATUS_WaitingPayment = "WP"; -/** Set Document Status. -@param DocStatus The current status of the document */ -public void setDocStatus (String DocStatus) -{ -if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); -if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); - else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); -if (DocStatus.length() > 2) -{ -log.warning("Length > 2 - truncated"); -DocStatus = DocStatus.substring(0,1); -} -set_Value ("DocStatus", DocStatus); -} -/** Get Document Status. -@return The current status of the document */ -public String getDocStatus() -{ -return (String)get_Value("DocStatus"); -} -/** Column name DocStatus */ -public static final String COLUMNNAME_DocStatus = "DocStatus"; -/** Set Document No. -@param DocumentNo Document sequence number of the document */ -public void setDocumentNo (String DocumentNo) -{ -if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory."); -if (DocumentNo.length() > 30) -{ -log.warning("Length > 30 - truncated"); -DocumentNo = DocumentNo.substring(0,29); -} -set_Value ("DocumentNo", DocumentNo); -} -/** Get Document No. -@return Document sequence number of the document */ -public String getDocumentNo() -{ -return (String)get_Value("DocumentNo"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getDocumentNo()); -} -/** Column name DocumentNo */ -public static final String COLUMNNAME_DocumentNo = "DocumentNo"; -/** Set Approved. -@param IsApproved Indicates if this document requires approval */ -public void setIsApproved (boolean IsApproved) -{ -set_Value ("IsApproved", Boolean.valueOf(IsApproved)); -} -/** Get Approved. -@return Indicates if this document requires approval */ -public boolean isApproved() -{ -Object oo = get_Value("IsApproved"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsApproved */ -public static final String COLUMNNAME_IsApproved = "IsApproved"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Expense Report. -@param S_TimeExpense_ID Time and Expense Report */ -public void setS_TimeExpense_ID (int S_TimeExpense_ID) -{ -if (S_TimeExpense_ID < 1) throw new IllegalArgumentException ("S_TimeExpense_ID is mandatory."); -set_ValueNoCheck ("S_TimeExpense_ID", Integer.valueOf(S_TimeExpense_ID)); -} -/** Get Expense Report. -@return Time and Expense Report */ -public int getS_TimeExpense_ID() -{ -Integer ii = (Integer)get_Value("S_TimeExpense_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_TimeExpense_ID */ -public static final String COLUMNNAME_S_TimeExpense_ID = "S_TimeExpense_ID"; -} + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { +if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory");if (DocStatus.equals("??") || DocStatus.equals("AP") || DocStatus.equals("CL") || DocStatus.equals("CO") || DocStatus.equals("DR") || DocStatus.equals("IN") || DocStatus.equals("IP") || DocStatus.equals("NA") || DocStatus.equals("RE") || DocStatus.equals("VO") || DocStatus.equals("WC") || DocStatus.equals("WP")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - ?? - AP - CL - CO - DR - IN - IP - NA - RE - VO - WC - WP"); if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 1); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 29); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getDocumentNo()); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Expense Report. + @param S_TimeExpense_ID + Time and Expense Report + */ + public void setS_TimeExpense_ID (int S_TimeExpense_ID) + { + if (S_TimeExpense_ID < 1) + throw new IllegalArgumentException ("S_TimeExpense_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID)); + } + + /** Get Expense Report. + @return Time and Expense Report + */ + public int getS_TimeExpense_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeExpense_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_TimeExpenseLine.java b/base/src/org/compiere/model/X_S_TimeExpenseLine.java index 03a13fbe3b..3224333f60 100644 --- a/base/src/org/compiere/model/X_S_TimeExpenseLine.java +++ b/base/src/org/compiere/model/X_S_TimeExpenseLine.java @@ -1,626 +1,878 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_TimeExpenseLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_TimeExpenseLine extends PO -{ -/** Standard Constructor -@param ctx context -@param S_TimeExpenseLine_ID id -@param trxName transaction -*/ -public X_S_TimeExpenseLine (Properties ctx, int S_TimeExpenseLine_ID, String trxName) -{ -super (ctx, S_TimeExpenseLine_ID, trxName); -/** if (S_TimeExpenseLine_ID == 0) -{ -setDateExpense (new Timestamp(System.currentTimeMillis())); // @DateExpense@; -@DateReport@ -setIsInvoiced (false); -setIsTimeReport (false); -setLine (0); // @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM S_TimeExpenseLine WHERE S_TimeExpense_ID=@S_TimeExpense_ID@ -setProcessed (false); -setS_TimeExpenseLine_ID (0); -setS_TimeExpense_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_TimeExpenseLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_TimeExpenseLine */ -public static final String Table_Name="S_TimeExpenseLine"; - -/** AD_Table_ID=488 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(1); -/** AccessLevel -@return 1 - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_TimeExpenseLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice Line. -@param C_InvoiceLine_ID Invoice Detail Line */ -public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) -{ -if (C_InvoiceLine_ID <= 0) set_ValueNoCheck ("C_InvoiceLine_ID", null); - else -set_ValueNoCheck ("C_InvoiceLine_ID", Integer.valueOf(C_InvoiceLine_ID)); -} -/** Get Invoice Line. -@return Invoice Detail Line */ -public int getC_InvoiceLine_ID() -{ -Integer ii = (Integer)get_Value("C_InvoiceLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoiceLine_ID */ -public static final String COLUMNNAME_C_InvoiceLine_ID = "C_InvoiceLine_ID"; -/** Set Sales Order Line. -@param C_OrderLine_ID Sales Order Line */ -public void setC_OrderLine_ID (int C_OrderLine_ID) -{ -if (C_OrderLine_ID <= 0) set_ValueNoCheck ("C_OrderLine_ID", null); - else -set_ValueNoCheck ("C_OrderLine_ID", Integer.valueOf(C_OrderLine_ID)); -} -/** Get Sales Order Line. -@return Sales Order Line */ -public int getC_OrderLine_ID() -{ -Integer ii = (Integer)get_Value("C_OrderLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_OrderLine_ID */ -public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; -/** Set Project Phase. -@param C_ProjectPhase_ID Phase of a Project */ -public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) -{ -if (C_ProjectPhase_ID <= 0) set_Value ("C_ProjectPhase_ID", null); - else -set_Value ("C_ProjectPhase_ID", Integer.valueOf(C_ProjectPhase_ID)); -} -/** Get Project Phase. -@return Phase of a Project */ -public int getC_ProjectPhase_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectPhase_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectPhase_ID */ -public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; -/** Set Project Task. -@param C_ProjectTask_ID Actual Project Task in a Phase */ -public void setC_ProjectTask_ID (int C_ProjectTask_ID) -{ -if (C_ProjectTask_ID <= 0) set_Value ("C_ProjectTask_ID", null); - else -set_Value ("C_ProjectTask_ID", Integer.valueOf(C_ProjectTask_ID)); -} -/** Get Project Task. -@return Actual Project Task in a Phase */ -public int getC_ProjectTask_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectTask_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectTask_ID */ -public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Converted Amount. -@param ConvertedAmt Converted Amount */ -public void setConvertedAmt (BigDecimal ConvertedAmt) -{ -set_Value ("ConvertedAmt", ConvertedAmt); -} -/** Get Converted Amount. -@return Converted Amount */ -public BigDecimal getConvertedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ConvertedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ConvertedAmt */ -public static final String COLUMNNAME_ConvertedAmt = "ConvertedAmt"; -/** Set Expense Date. -@param DateExpense Date of expense */ -public void setDateExpense (Timestamp DateExpense) -{ -if (DateExpense == null) throw new IllegalArgumentException ("DateExpense is mandatory."); -set_Value ("DateExpense", DateExpense); -} -/** Get Expense Date. -@return Date of expense */ -public Timestamp getDateExpense() -{ -return (Timestamp)get_Value("DateExpense"); -} -/** Column name DateExpense */ -public static final String COLUMNNAME_DateExpense = "DateExpense"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Expense Amount. -@param ExpenseAmt Amount for this expense */ -public void setExpenseAmt (BigDecimal ExpenseAmt) -{ -set_Value ("ExpenseAmt", ExpenseAmt); -} -/** Get Expense Amount. -@return Amount for this expense */ -public BigDecimal getExpenseAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("ExpenseAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name ExpenseAmt */ -public static final String COLUMNNAME_ExpenseAmt = "ExpenseAmt"; -/** Set Invoice Price. -@param InvoicePrice Unit price to be invoiced or 0 for default price */ -public void setInvoicePrice (BigDecimal InvoicePrice) -{ -set_Value ("InvoicePrice", InvoicePrice); -} -/** Get Invoice Price. -@return Unit price to be invoiced or 0 for default price */ -public BigDecimal getInvoicePrice() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoicePrice"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoicePrice */ -public static final String COLUMNNAME_InvoicePrice = "InvoicePrice"; -/** Set Invoiced. -@param IsInvoiced Is this invoiced? */ -public void setIsInvoiced (boolean IsInvoiced) -{ -set_Value ("IsInvoiced", Boolean.valueOf(IsInvoiced)); -} -/** Get Invoiced. -@return Is this invoiced? */ -public boolean isInvoiced() -{ -Object oo = get_Value("IsInvoiced"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsInvoiced */ -public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; -/** Set Time Report. -@param IsTimeReport Line is a time report only (no expense) */ -public void setIsTimeReport (boolean IsTimeReport) -{ -set_Value ("IsTimeReport", Boolean.valueOf(IsTimeReport)); -} -/** Get Time Report. -@return Line is a time report only (no expense) */ -public boolean isTimeReport() -{ -Object oo = get_Value("IsTimeReport"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsTimeReport */ -public static final String COLUMNNAME_IsTimeReport = "IsTimeReport"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Note. -@param Note Optional additional user defined information */ -public void setNote (String Note) -{ -if (Note != null && Note.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Note = Note.substring(0,254); -} -set_Value ("Note", Note); -} -/** Get Note. -@return Optional additional user defined information */ -public String getNote() -{ -return (String)get_Value("Note"); -} -/** Column name Note */ -public static final String COLUMNNAME_Note = "Note"; -/** Set Price Invoiced. -@param PriceInvoiced The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price */ -public void setPriceInvoiced (BigDecimal PriceInvoiced) -{ -set_Value ("PriceInvoiced", PriceInvoiced); -} -/** Get Price Invoiced. -@return The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price */ -public BigDecimal getPriceInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceInvoiced */ -public static final String COLUMNNAME_PriceInvoiced = "PriceInvoiced"; -/** Set Price Reimbursed. -@param PriceReimbursed The reimbursed price (in currency of the employee's AP price list) */ -public void setPriceReimbursed (BigDecimal PriceReimbursed) -{ -set_Value ("PriceReimbursed", PriceReimbursed); -} -/** Get Price Reimbursed. -@return The reimbursed price (in currency of the employee's AP price list) */ -public BigDecimal getPriceReimbursed() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceReimbursed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceReimbursed */ -public static final String COLUMNNAME_PriceReimbursed = "PriceReimbursed"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Quantity Invoiced. -@param QtyInvoiced Invoiced Quantity */ -public void setQtyInvoiced (BigDecimal QtyInvoiced) -{ -set_Value ("QtyInvoiced", QtyInvoiced); -} -/** Get Quantity Invoiced. -@return Invoiced Quantity */ -public BigDecimal getQtyInvoiced() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyInvoiced"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyInvoiced */ -public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; -/** Set Quantity Reimbursed. -@param QtyReimbursed The reimbursed quantity */ -public void setQtyReimbursed (BigDecimal QtyReimbursed) -{ -set_Value ("QtyReimbursed", QtyReimbursed); -} -/** Get Quantity Reimbursed. -@return The reimbursed quantity */ -public BigDecimal getQtyReimbursed() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyReimbursed"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyReimbursed */ -public static final String COLUMNNAME_QtyReimbursed = "QtyReimbursed"; -/** Set Resource Assignment. -@param S_ResourceAssignment_ID Resource Assignment */ -public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) -{ -if (S_ResourceAssignment_ID <= 0) set_Value ("S_ResourceAssignment_ID", null); - else -set_Value ("S_ResourceAssignment_ID", Integer.valueOf(S_ResourceAssignment_ID)); -} -/** Get Resource Assignment. -@return Resource Assignment */ -public int getS_ResourceAssignment_ID() -{ -Integer ii = (Integer)get_Value("S_ResourceAssignment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_ResourceAssignment_ID */ -public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; -/** Set Expense Line. -@param S_TimeExpenseLine_ID Time and Expense Report Line */ -public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID) -{ -if (S_TimeExpenseLine_ID < 1) throw new IllegalArgumentException ("S_TimeExpenseLine_ID is mandatory."); -set_ValueNoCheck ("S_TimeExpenseLine_ID", Integer.valueOf(S_TimeExpenseLine_ID)); -} -/** Get Expense Line. -@return Time and Expense Report Line */ -public int getS_TimeExpenseLine_ID() -{ -Integer ii = (Integer)get_Value("S_TimeExpenseLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_TimeExpenseLine_ID */ -public static final String COLUMNNAME_S_TimeExpenseLine_ID = "S_TimeExpenseLine_ID"; -/** Set Expense Report. -@param S_TimeExpense_ID Time and Expense Report */ -public void setS_TimeExpense_ID (int S_TimeExpense_ID) -{ -if (S_TimeExpense_ID < 1) throw new IllegalArgumentException ("S_TimeExpense_ID is mandatory."); -set_ValueNoCheck ("S_TimeExpense_ID", Integer.valueOf(S_TimeExpense_ID)); -} -/** Get Expense Report. -@return Time and Expense Report */ -public int getS_TimeExpense_ID() -{ -Integer ii = (Integer)get_Value("S_TimeExpense_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_TimeExpense_ID */ -public static final String COLUMNNAME_S_TimeExpense_ID = "S_TimeExpense_ID"; -/** Set Time Type. -@param S_TimeType_ID Type of time recorded */ -public void setS_TimeType_ID (int S_TimeType_ID) -{ -if (S_TimeType_ID <= 0) set_Value ("S_TimeType_ID", null); - else -set_Value ("S_TimeType_ID", Integer.valueOf(S_TimeType_ID)); -} -/** Get Time Type. -@return Type of time recorded */ -public int getS_TimeType_ID() -{ -Integer ii = (Integer)get_Value("S_TimeType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_TimeType_ID */ -public static final String COLUMNNAME_S_TimeType_ID = "S_TimeType_ID"; -} + +/** Generated Model for S_TimeExpenseLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_TimeExpenseLine (Properties ctx, int S_TimeExpenseLine_ID, String trxName) + { + super (ctx, S_TimeExpenseLine_ID, trxName); + /** if (S_TimeExpenseLine_ID == 0) { setDateExpense (new Timestamp(System.currentTimeMillis())); +// @DateExpense@;@DateReport@ + setIsInvoiced (false); + setIsTimeReport (false); + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM S_TimeExpenseLine WHERE S_TimeExpense_ID=@S_TimeExpense_ID@ + setProcessed (false); + setS_TimeExpenseLine_ID (0); + setS_TimeExpense_ID (0); +} */ + } + + /** Load Constructor */ + public X_S_TimeExpenseLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_TimeExpenseLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Line. + @param C_InvoiceLine_ID + Invoice Detail Line + */ + public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) + { + if (C_InvoiceLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID)); + } + + /** Get Invoice Line. + @return Invoice Detail Line + */ + public int getC_InvoiceLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectPhase getI_C_ProjectPhase() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID <= 0) set_Value (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_Value (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getI_C_ProjectTask() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID <= 0) set_Value (COLUMNNAME_C_ProjectTask_ID, null); + else + set_Value (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Converted Amount. + @param ConvertedAmt + Converted Amount + */ + public void setConvertedAmt (BigDecimal ConvertedAmt) + { + set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt); + } + + /** Get Converted Amount. + @return Converted Amount + */ + public BigDecimal getConvertedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConvertedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Expense Date. + @param DateExpense + Date of expense + */ + public void setDateExpense (Timestamp DateExpense) + { + if (DateExpense == null) + throw new IllegalArgumentException ("DateExpense is mandatory."); + set_Value (COLUMNNAME_DateExpense, DateExpense); + } + + /** Get Expense Date. + @return Date of expense + */ + public Timestamp getDateExpense () + { + return (Timestamp)get_Value(COLUMNNAME_DateExpense); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Expense Amount. + @param ExpenseAmt + Amount for this expense + */ + public void setExpenseAmt (BigDecimal ExpenseAmt) + { + set_Value (COLUMNNAME_ExpenseAmt, ExpenseAmt); + } + + /** Get Expense Amount. + @return Amount for this expense + */ + public BigDecimal getExpenseAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ExpenseAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoice Price. + @param InvoicePrice + Unit price to be invoiced or 0 for default price + */ + public void setInvoicePrice (BigDecimal InvoicePrice) + { + set_Value (COLUMNNAME_InvoicePrice, InvoicePrice); + } + + /** Get Invoice Price. + @return Unit price to be invoiced or 0 for default price + */ + public BigDecimal getInvoicePrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicePrice); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Time Report. + @param IsTimeReport + Line is a time report only (no expense) + */ + public void setIsTimeReport (boolean IsTimeReport) + { + set_Value (COLUMNNAME_IsTimeReport, Boolean.valueOf(IsTimeReport)); + } + + /** Get Time Report. + @return Line is a time report only (no expense) + */ + public boolean isTimeReport () + { + Object oo = get_Value(COLUMNNAME_IsTimeReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Note. + @param Note + Optional additional user defined information + */ + public void setNote (String Note) + { + if (Note != null && Note.length() > 255) + { + log.warning("Length > 255 - truncated"); + Note = Note.substring(0, 254); + } + set_Value (COLUMNNAME_Note, Note); + } + + /** Get Note. + @return Optional additional user defined information + */ + public String getNote () + { + return (String)get_Value(COLUMNNAME_Note); + } + + /** Set Price Invoiced. + @param PriceInvoiced + The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price + */ + public void setPriceInvoiced (BigDecimal PriceInvoiced) + { + set_Value (COLUMNNAME_PriceInvoiced, PriceInvoiced); + } + + /** Get Price Invoiced. + @return The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price + */ + public BigDecimal getPriceInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price Reimbursed. + @param PriceReimbursed + The reimbursed price (in currency of the employee's AP price list) + */ + public void setPriceReimbursed (BigDecimal PriceReimbursed) + { + set_Value (COLUMNNAME_PriceReimbursed, PriceReimbursed); + } + + /** Get Price Reimbursed. + @return The reimbursed price (in currency of the employee's AP price list) + */ + public BigDecimal getPriceReimbursed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceReimbursed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Reimbursed. + @param QtyReimbursed + The reimbursed quantity + */ + public void setQtyReimbursed (BigDecimal QtyReimbursed) + { + set_Value (COLUMNNAME_QtyReimbursed, QtyReimbursed); + } + + /** Get Quantity Reimbursed. + @return The reimbursed quantity + */ + public BigDecimal getQtyReimbursed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReimbursed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Resource Assignment. + @param S_ResourceAssignment_ID + Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) + { + if (S_ResourceAssignment_ID <= 0) set_Value (COLUMNNAME_S_ResourceAssignment_ID, null); + else + set_Value (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); + } + + /** Get Resource Assignment. + @return Resource Assignment + */ + public int getS_ResourceAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Expense Line. + @param S_TimeExpenseLine_ID + Time and Expense Report Line + */ + public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID) + { + if (S_TimeExpenseLine_ID < 1) + throw new IllegalArgumentException ("S_TimeExpenseLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, Integer.valueOf(S_TimeExpenseLine_ID)); + } + + /** Get Expense Line. + @return Time and Expense Report Line + */ + public int getS_TimeExpenseLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeExpenseLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_TimeExpense getI_S_TimeExpense() throws Exception + { + 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 e; + } + return result; + } + + /** Set Expense Report. + @param S_TimeExpense_ID + Time and Expense Report + */ + public void setS_TimeExpense_ID (int S_TimeExpense_ID) + { + if (S_TimeExpense_ID < 1) + throw new IllegalArgumentException ("S_TimeExpense_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID)); + } + + /** Get Expense Report. + @return Time and Expense Report + */ + public int getS_TimeExpense_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeExpense_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_TimeType getI_S_TimeType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Time Type. + @param S_TimeType_ID + Type of time recorded + */ + public void setS_TimeType_ID (int S_TimeType_ID) + { + if (S_TimeType_ID <= 0) set_Value (COLUMNNAME_S_TimeType_ID, null); + else + set_Value (COLUMNNAME_S_TimeType_ID, Integer.valueOf(S_TimeType_ID)); + } + + /** Get Time Type. + @return Type of time recorded + */ + public int getS_TimeType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_TimeType.java b/base/src/org/compiere/model/X_S_TimeType.java index 94d20fffd5..c905f7eb3b 100644 --- a/base/src/org/compiere/model/X_S_TimeType.java +++ b/base/src/org/compiere/model/X_S_TimeType.java @@ -1,170 +1,172 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_TimeType - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_TimeType extends PO + +/** Generated Model for S_TimeType + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_TimeType extends PO implements I_S_TimeType, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_TimeType_ID id -@param trxName transaction -*/ -public X_S_TimeType (Properties ctx, int S_TimeType_ID, String trxName) -{ -super (ctx, S_TimeType_ID, trxName); -/** if (S_TimeType_ID == 0) -{ -setName (null); -setS_TimeType_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_TimeType (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_TimeType */ -public static final String Table_Name="S_TimeType"; - -/** AD_Table_ID=581 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_TimeType[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Time Type. -@param S_TimeType_ID Type of time recorded */ -public void setS_TimeType_ID (int S_TimeType_ID) -{ -if (S_TimeType_ID < 1) throw new IllegalArgumentException ("S_TimeType_ID is mandatory."); -set_ValueNoCheck ("S_TimeType_ID", Integer.valueOf(S_TimeType_ID)); -} -/** Get Time Type. -@return Type of time recorded */ -public int getS_TimeType_ID() -{ -Integer ii = (Integer)get_Value("S_TimeType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_TimeType_ID */ -public static final String COLUMNNAME_S_TimeType_ID = "S_TimeType_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_TimeType (Properties ctx, int S_TimeType_ID, String trxName) + { + super (ctx, S_TimeType_ID, trxName); + /** if (S_TimeType_ID == 0) { setName (null); + setS_TimeType_ID (0); +} */ + } + + /** Load Constructor */ + public X_S_TimeType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_TimeType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Time Type. + @param S_TimeType_ID + Type of time recorded + */ + public void setS_TimeType_ID (int S_TimeType_ID) + { + if (S_TimeType_ID < 1) + throw new IllegalArgumentException ("S_TimeType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_TimeType_ID, Integer.valueOf(S_TimeType_ID)); + } + + /** Get Time Type. + @return Type of time recorded + */ + public int getS_TimeType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_Training.java b/base/src/org/compiere/model/X_S_Training.java index 141e00c160..15e7d0df2b 100644 --- a/base/src/org/compiere/model/X_S_Training.java +++ b/base/src/org/compiere/model/X_S_Training.java @@ -1,301 +1,376 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_Training - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_Training extends PO + +/** Generated Model for S_Training + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_Training extends PO implements I_S_Training, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_Training_ID id -@param trxName transaction -*/ -public X_S_Training (Properties ctx, int S_Training_ID, String trxName) -{ -super (ctx, S_Training_ID, trxName); -/** if (S_Training_ID == 0) -{ -setC_TaxCategory_ID (0); -setC_UOM_ID (0); -setM_Product_Category_ID (0); -setName (null); -setS_Training_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_Training (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_Training */ -public static final String Table_Name="S_Training"; - -/** AD_Table_ID=538 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_Training[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Tax Category. -@param C_TaxCategory_ID Tax Category */ -public void setC_TaxCategory_ID (int C_TaxCategory_ID) -{ -if (C_TaxCategory_ID < 1) throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); -set_Value ("C_TaxCategory_ID", Integer.valueOf(C_TaxCategory_ID)); -} -/** Get Tax Category. -@return Tax Category */ -public int getC_TaxCategory_ID() -{ -Integer ii = (Integer)get_Value("C_TaxCategory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_TaxCategory_ID */ -public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID < 1) throw new IllegalArgumentException ("C_UOM_ID is mandatory."); -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Description URL. -@param DescriptionURL URL for the description */ -public void setDescriptionURL (String DescriptionURL) -{ -if (DescriptionURL != null && DescriptionURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -DescriptionURL = DescriptionURL.substring(0,119); -} -set_Value ("DescriptionURL", DescriptionURL); -} -/** Get Description URL. -@return URL for the description */ -public String getDescriptionURL() -{ -return (String)get_Value("DescriptionURL"); -} -/** Column name DescriptionURL */ -public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; -/** Set Document Note. -@param DocumentNote Additional information for a Document */ -public void setDocumentNote (String DocumentNote) -{ -if (DocumentNote != null && DocumentNote.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -DocumentNote = DocumentNote.substring(0,1999); -} -set_Value ("DocumentNote", DocumentNote); -} -/** Get Document Note. -@return Additional information for a Document */ -public String getDocumentNote() -{ -return (String)get_Value("DocumentNote"); -} -/** Column name DocumentNote */ -public static final String COLUMNNAME_DocumentNote = "DocumentNote"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Product Category. -@param M_Product_Category_ID Category of a Product */ -public void setM_Product_Category_ID (int M_Product_Category_ID) -{ -if (M_Product_Category_ID < 1) throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); -set_Value ("M_Product_Category_ID", Integer.valueOf(M_Product_Category_ID)); -} -/** Get Product Category. -@return Category of a Product */ -public int getM_Product_Category_ID() -{ -Integer ii = (Integer)get_Value("M_Product_Category_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_Category_ID */ -public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Training. -@param S_Training_ID Repeated Training */ -public void setS_Training_ID (int S_Training_ID) -{ -if (S_Training_ID < 1) throw new IllegalArgumentException ("S_Training_ID is mandatory."); -set_ValueNoCheck ("S_Training_ID", Integer.valueOf(S_Training_ID)); -} -/** Get Training. -@return Repeated Training */ -public int getS_Training_ID() -{ -Integer ii = (Integer)get_Value("S_Training_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_Training_ID */ -public static final String COLUMNNAME_S_Training_ID = "S_Training_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_Training (Properties ctx, int S_Training_ID, String trxName) + { + super (ctx, S_Training_ID, trxName); + /** if (S_Training_ID == 0) { setC_TaxCategory_ID (0); + setC_UOM_ID (0); + setM_Product_Category_ID (0); + setName (null); + setS_Training_ID (0); +} */ + } + + /** Load Constructor */ + public X_S_Training (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_Training[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_TaxCategory getI_C_TaxCategory() throws Exception + { + 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 e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Description URL. + @param DescriptionURL + URL for the description + */ + public void setDescriptionURL (String DescriptionURL) + { + if (DescriptionURL != null && DescriptionURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DescriptionURL = DescriptionURL.substring(0, 119); + } + set_Value (COLUMNNAME_DescriptionURL, DescriptionURL); + } + + /** Get Description URL. + @return URL for the description + */ + public String getDescriptionURL () + { + return (String)get_Value(COLUMNNAME_DescriptionURL); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 1999); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + public I_M_Product_Category getI_M_Product_Category() throws Exception + { + 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 e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Training. + @param S_Training_ID + Repeated Training + */ + public void setS_Training_ID (int S_Training_ID) + { + if (S_Training_ID < 1) + throw new IllegalArgumentException ("S_Training_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Training_ID, Integer.valueOf(S_Training_ID)); + } + + /** Get Training. + @return Repeated Training + */ + public int getS_Training_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Training_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file 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 2bf732c214..7d48751f45 100644 --- a/base/src/org/compiere/model/X_S_Training_Class.java +++ b/base/src/org/compiere/model/X_S_Training_Class.java @@ -1,179 +1,205 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for S_Training_Class - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_S_Training_Class extends PO + +/** Generated Model for S_Training_Class + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_S_Training_Class extends PO implements I_S_Training_Class, I_Persistent { -/** Standard Constructor -@param ctx context -@param S_Training_Class_ID id -@param trxName transaction -*/ -public X_S_Training_Class (Properties ctx, int S_Training_Class_ID, String trxName) -{ -super (ctx, S_Training_Class_ID, trxName); -/** if (S_Training_Class_ID == 0) -{ -setEndDate (new Timestamp(System.currentTimeMillis())); -setM_Product_ID (0); -setS_Training_Class_ID (0); -setS_Training_ID (0); -setStartDate (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_S_Training_Class (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=S_Training_Class */ -public static final String Table_Name="S_Training_Class"; - -/** AD_Table_ID=537 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_S_Training_Class[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set End Date. -@param EndDate Last effective date (inclusive) */ -public void setEndDate (Timestamp EndDate) -{ -if (EndDate == null) throw new IllegalArgumentException ("EndDate is mandatory."); -set_Value ("EndDate", EndDate); -} -/** Get End Date. -@return Last effective date (inclusive) */ -public Timestamp getEndDate() -{ -return (Timestamp)get_Value("EndDate"); -} -/** Column name EndDate */ -public static final String COLUMNNAME_EndDate = "EndDate"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Training Class. -@param S_Training_Class_ID The actual training class instance */ -public void setS_Training_Class_ID (int S_Training_Class_ID) -{ -if (S_Training_Class_ID < 1) throw new IllegalArgumentException ("S_Training_Class_ID is mandatory."); -set_ValueNoCheck ("S_Training_Class_ID", Integer.valueOf(S_Training_Class_ID)); -} -/** Get Training Class. -@return The actual training class instance */ -public int getS_Training_Class_ID() -{ -Integer ii = (Integer)get_Value("S_Training_Class_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_Training_Class_ID */ -public static final String COLUMNNAME_S_Training_Class_ID = "S_Training_Class_ID"; -/** Set Training. -@param S_Training_ID Repeated Training */ -public void setS_Training_ID (int S_Training_ID) -{ -if (S_Training_ID < 1) throw new IllegalArgumentException ("S_Training_ID is mandatory."); -set_ValueNoCheck ("S_Training_ID", Integer.valueOf(S_Training_ID)); -} -/** Get Training. -@return Repeated Training */ -public int getS_Training_ID() -{ -Integer ii = (Integer)get_Value("S_Training_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name S_Training_ID */ -public static final String COLUMNNAME_S_Training_ID = "S_Training_ID"; -/** Set Start Date. -@param StartDate First effective day (inclusive) */ -public void setStartDate (Timestamp StartDate) -{ -if (StartDate == null) throw new IllegalArgumentException ("StartDate is mandatory."); -set_Value ("StartDate", StartDate); -} -/** Get Start Date. -@return First effective day (inclusive) */ -public Timestamp getStartDate() -{ -return (Timestamp)get_Value("StartDate"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getStartDate())); -} -/** Column name StartDate */ -public static final String COLUMNNAME_StartDate = "StartDate"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_Training_Class (Properties ctx, int S_Training_Class_ID, String trxName) + { + super (ctx, S_Training_Class_ID, trxName); + /** if (S_Training_Class_ID == 0) { setEndDate (new Timestamp(System.currentTimeMillis())); + setM_Product_ID (0); + setS_Training_Class_ID (0); + setS_Training_ID (0); + setStartDate (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_S_Training_Class (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_S_Training_Class[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set End Date. + @param EndDate + Last effective date (inclusive) + */ + public void setEndDate (Timestamp EndDate) + { + if (EndDate == null) + throw new IllegalArgumentException ("EndDate is mandatory."); + set_Value (COLUMNNAME_EndDate, EndDate); + } + + /** Get End Date. + @return Last effective date (inclusive) + */ + public Timestamp getEndDate () + { + return (Timestamp)get_Value(COLUMNNAME_EndDate); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Training Class. + @param S_Training_Class_ID + The actual training class instance + */ + public void setS_Training_Class_ID (int S_Training_Class_ID) + { + if (S_Training_Class_ID < 1) + throw new IllegalArgumentException ("S_Training_Class_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Training_Class_ID, Integer.valueOf(S_Training_Class_ID)); + } + + /** Get Training Class. + @return The actual training class instance + */ + public int getS_Training_Class_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Training_Class_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Training getI_S_Training() throws Exception + { + 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 e; + } + return result; + } + + /** Set Training. + @param S_Training_ID + Repeated Training + */ + public void setS_Training_ID (int S_Training_ID) + { + if (S_Training_ID < 1) + throw new IllegalArgumentException ("S_Training_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Training_ID, Integer.valueOf(S_Training_ID)); + } + + /** Get Training. + @return Repeated Training + */ + public int getS_Training_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Training_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Start Date. + @param StartDate + First effective day (inclusive) + */ + public void setStartDate (Timestamp StartDate) + { + if (StartDate == null) + throw new IllegalArgumentException ("StartDate is mandatory."); + set_Value (COLUMNNAME_StartDate, StartDate); + } + + /** Get Start Date. + @return First effective day (inclusive) + */ + public Timestamp getStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_StartDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getStartDate())); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_Aging.java b/base/src/org/compiere/model/X_T_Aging.java index e6710242f5..3057973b77 100644 --- a/base/src/org/compiere/model/X_T_Aging.java +++ b/base/src/org/compiere/model/X_T_Aging.java @@ -1,735 +1,945 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_Aging - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_Aging extends PO -{ -/** Standard Constructor -@param ctx context -@param T_Aging_ID id -@param trxName transaction -*/ -public X_T_Aging (Properties ctx, int T_Aging_ID, String trxName) -{ -super (ctx, T_Aging_ID, trxName); -/** if (T_Aging_ID == 0) -{ -setAD_PInstance_ID (0); -setC_BP_Group_ID (0); -setC_BPartner_ID (0); -setC_Currency_ID (0); -setDue0 (Env.ZERO); -setDue0_30 (Env.ZERO); -setDue0_7 (Env.ZERO); -setDue1_7 (Env.ZERO); -setDue31_60 (Env.ZERO); -setDue31_Plus (Env.ZERO); -setDue61_90 (Env.ZERO); -setDue61_Plus (Env.ZERO); -setDue8_30 (Env.ZERO); -setDue91_Plus (Env.ZERO); -setDueAmt (Env.ZERO); -setDueDate (new Timestamp(System.currentTimeMillis())); -setInvoicedAmt (Env.ZERO); -setIsListInvoices (false); -setIsSOTrx (false); -setOpenAmt (Env.ZERO); -setPastDue1_30 (Env.ZERO); -setPastDue1_7 (Env.ZERO); -setPastDue31_60 (Env.ZERO); -setPastDue31_Plus (Env.ZERO); -setPastDue61_90 (Env.ZERO); -setPastDue61_Plus (Env.ZERO); -setPastDue8_30 (Env.ZERO); -setPastDue91_Plus (Env.ZERO); -setPastDueAmt (Env.ZERO); -setStatementDate (new Timestamp(System.currentTimeMillis())); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_Aging (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_Aging */ -public static final String Table_Name="T_Aging"; - -/** AD_Table_ID=631 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_Aging[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Activity. -@param C_Activity_ID Business Activity */ -public void setC_Activity_ID (int C_Activity_ID) -{ -if (C_Activity_ID <= 0) set_Value ("C_Activity_ID", null); - else -set_Value ("C_Activity_ID", Integer.valueOf(C_Activity_ID)); -} -/** Get Activity. -@return Business Activity */ -public int getC_Activity_ID() -{ -Integer ii = (Integer)get_Value("C_Activity_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Activity_ID */ -public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; -/** Set Business Partner Group. -@param C_BP_Group_ID Business Partner Group */ -public void setC_BP_Group_ID (int C_BP_Group_ID) -{ -if (C_BP_Group_ID < 1) throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); -set_Value ("C_BP_Group_ID", Integer.valueOf(C_BP_Group_ID)); -} -/** Get Business Partner Group. -@return Business Partner Group */ -public int getC_BP_Group_ID() -{ -Integer ii = (Integer)get_Value("C_BP_Group_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BP_Group_ID */ -public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_ValueNoCheck ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Campaign. -@param C_Campaign_ID Marketing Campaign */ -public void setC_Campaign_ID (int C_Campaign_ID) -{ -if (C_Campaign_ID <= 0) set_Value ("C_Campaign_ID", null); - else -set_Value ("C_Campaign_ID", Integer.valueOf(C_Campaign_ID)); -} -/** Get Campaign. -@return Marketing Campaign */ -public int getC_Campaign_ID() -{ -Integer ii = (Integer)get_Value("C_Campaign_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Campaign_ID */ -public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID < 1) throw new IllegalArgumentException ("C_Currency_ID is mandatory."); -set_ValueNoCheck ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Invoice Payment Schedule. -@param C_InvoicePaySchedule_ID Invoice Payment Schedule */ -public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) -{ -if (C_InvoicePaySchedule_ID <= 0) set_Value ("C_InvoicePaySchedule_ID", null); - else -set_Value ("C_InvoicePaySchedule_ID", Integer.valueOf(C_InvoicePaySchedule_ID)); -} -/** Get Invoice Payment Schedule. -@return Invoice Payment Schedule */ -public int getC_InvoicePaySchedule_ID() -{ -Integer ii = (Integer)get_Value("C_InvoicePaySchedule_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_InvoicePaySchedule_ID */ -public static final String COLUMNNAME_C_InvoicePaySchedule_ID = "C_InvoicePaySchedule_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID <= 0) set_ValueNoCheck ("C_Invoice_ID", null); - else -set_ValueNoCheck ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Days due. -@param DaysDue Number of days due (negative: due in number of days) */ -public void setDaysDue (int DaysDue) -{ -set_Value ("DaysDue", Integer.valueOf(DaysDue)); -} -/** Get Days due. -@return Number of days due (negative: due in number of days) */ -public int getDaysDue() -{ -Integer ii = (Integer)get_Value("DaysDue"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name DaysDue */ -public static final String COLUMNNAME_DaysDue = "DaysDue"; -/** Set Due Today. -@param Due0 Due Today */ -public void setDue0 (BigDecimal Due0) -{ -if (Due0 == null) throw new IllegalArgumentException ("Due0 is mandatory."); -set_Value ("Due0", Due0); -} -/** Get Due Today. -@return Due Today */ -public BigDecimal getDue0() -{ -BigDecimal bd = (BigDecimal)get_Value("Due0"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due0 */ -public static final String COLUMNNAME_Due0 = "Due0"; -/** Set Due Today-30. -@param Due0_30 Due Today-30 */ -public void setDue0_30 (BigDecimal Due0_30) -{ -if (Due0_30 == null) throw new IllegalArgumentException ("Due0_30 is mandatory."); -set_Value ("Due0_30", Due0_30); -} -/** Get Due Today-30. -@return Due Today-30 */ -public BigDecimal getDue0_30() -{ -BigDecimal bd = (BigDecimal)get_Value("Due0_30"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due0_30 */ -public static final String COLUMNNAME_Due0_30 = "Due0_30"; -/** Set Due Today-7. -@param Due0_7 Due Today-7 */ -public void setDue0_7 (BigDecimal Due0_7) -{ -if (Due0_7 == null) throw new IllegalArgumentException ("Due0_7 is mandatory."); -set_Value ("Due0_7", Due0_7); -} -/** Get Due Today-7. -@return Due Today-7 */ -public BigDecimal getDue0_7() -{ -BigDecimal bd = (BigDecimal)get_Value("Due0_7"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due0_7 */ -public static final String COLUMNNAME_Due0_7 = "Due0_7"; -/** Set Due 1-7. -@param Due1_7 Due 1-7 */ -public void setDue1_7 (BigDecimal Due1_7) -{ -if (Due1_7 == null) throw new IllegalArgumentException ("Due1_7 is mandatory."); -set_Value ("Due1_7", Due1_7); -} -/** Get Due 1-7. -@return Due 1-7 */ -public BigDecimal getDue1_7() -{ -BigDecimal bd = (BigDecimal)get_Value("Due1_7"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due1_7 */ -public static final String COLUMNNAME_Due1_7 = "Due1_7"; -/** Set Due 31-60. -@param Due31_60 Due 31-60 */ -public void setDue31_60 (BigDecimal Due31_60) -{ -if (Due31_60 == null) throw new IllegalArgumentException ("Due31_60 is mandatory."); -set_Value ("Due31_60", Due31_60); -} -/** Get Due 31-60. -@return Due 31-60 */ -public BigDecimal getDue31_60() -{ -BigDecimal bd = (BigDecimal)get_Value("Due31_60"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due31_60 */ -public static final String COLUMNNAME_Due31_60 = "Due31_60"; -/** Set Due > 31. -@param Due31_Plus Due > 31 */ -public void setDue31_Plus (BigDecimal Due31_Plus) -{ -if (Due31_Plus == null) throw new IllegalArgumentException ("Due31_Plus is mandatory."); -set_Value ("Due31_Plus", Due31_Plus); -} -/** Get Due > 31. -@return Due > 31 */ -public BigDecimal getDue31_Plus() -{ -BigDecimal bd = (BigDecimal)get_Value("Due31_Plus"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due31_Plus */ -public static final String COLUMNNAME_Due31_Plus = "Due31_Plus"; -/** Set Due 61-90. -@param Due61_90 Due 61-90 */ -public void setDue61_90 (BigDecimal Due61_90) -{ -if (Due61_90 == null) throw new IllegalArgumentException ("Due61_90 is mandatory."); -set_Value ("Due61_90", Due61_90); -} -/** Get Due 61-90. -@return Due 61-90 */ -public BigDecimal getDue61_90() -{ -BigDecimal bd = (BigDecimal)get_Value("Due61_90"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due61_90 */ -public static final String COLUMNNAME_Due61_90 = "Due61_90"; -/** Set Due > 61. -@param Due61_Plus Due > 61 */ -public void setDue61_Plus (BigDecimal Due61_Plus) -{ -if (Due61_Plus == null) throw new IllegalArgumentException ("Due61_Plus is mandatory."); -set_Value ("Due61_Plus", Due61_Plus); -} -/** Get Due > 61. -@return Due > 61 */ -public BigDecimal getDue61_Plus() -{ -BigDecimal bd = (BigDecimal)get_Value("Due61_Plus"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due61_Plus */ -public static final String COLUMNNAME_Due61_Plus = "Due61_Plus"; -/** Set Due 8-30. -@param Due8_30 Due 8-30 */ -public void setDue8_30 (BigDecimal Due8_30) -{ -if (Due8_30 == null) throw new IllegalArgumentException ("Due8_30 is mandatory."); -set_Value ("Due8_30", Due8_30); -} -/** Get Due 8-30. -@return Due 8-30 */ -public BigDecimal getDue8_30() -{ -BigDecimal bd = (BigDecimal)get_Value("Due8_30"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due8_30 */ -public static final String COLUMNNAME_Due8_30 = "Due8_30"; -/** Set Due > 91. -@param Due91_Plus Due > 91 */ -public void setDue91_Plus (BigDecimal Due91_Plus) -{ -if (Due91_Plus == null) throw new IllegalArgumentException ("Due91_Plus is mandatory."); -set_Value ("Due91_Plus", Due91_Plus); -} -/** Get Due > 91. -@return Due > 91 */ -public BigDecimal getDue91_Plus() -{ -BigDecimal bd = (BigDecimal)get_Value("Due91_Plus"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Due91_Plus */ -public static final String COLUMNNAME_Due91_Plus = "Due91_Plus"; -/** Set Amount due. -@param DueAmt Amount of the payment due */ -public void setDueAmt (BigDecimal DueAmt) -{ -if (DueAmt == null) throw new IllegalArgumentException ("DueAmt is mandatory."); -set_Value ("DueAmt", DueAmt); -} -/** Get Amount due. -@return Amount of the payment due */ -public BigDecimal getDueAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("DueAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name DueAmt */ -public static final String COLUMNNAME_DueAmt = "DueAmt"; -/** Set Due Date. -@param DueDate Date when the payment is due */ -public void setDueDate (Timestamp DueDate) -{ -if (DueDate == null) throw new IllegalArgumentException ("DueDate is mandatory."); -set_Value ("DueDate", DueDate); -} -/** Get Due Date. -@return Date when the payment is due */ -public Timestamp getDueDate() -{ -return (Timestamp)get_Value("DueDate"); -} -/** Column name DueDate */ -public static final String COLUMNNAME_DueDate = "DueDate"; -/** Set Invoiced Amount. -@param InvoicedAmt The amount invoiced */ -public void setInvoicedAmt (BigDecimal InvoicedAmt) -{ -if (InvoicedAmt == null) throw new IllegalArgumentException ("InvoicedAmt is mandatory."); -set_Value ("InvoicedAmt", InvoicedAmt); -} -/** Get Invoiced Amount. -@return The amount invoiced */ -public BigDecimal getInvoicedAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("InvoicedAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name InvoicedAmt */ -public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; -/** Set List Invoices. -@param IsListInvoices Include List of Invoices */ -public void setIsListInvoices (boolean IsListInvoices) -{ -set_Value ("IsListInvoices", Boolean.valueOf(IsListInvoices)); -} -/** Get List Invoices. -@return Include List of Invoices */ -public boolean isListInvoices() -{ -Object oo = get_Value("IsListInvoices"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsListInvoices */ -public static final String COLUMNNAME_IsListInvoices = "IsListInvoices"; -/** Set Sales Transaction. -@param IsSOTrx This is a Sales Transaction */ -public void setIsSOTrx (boolean IsSOTrx) -{ -set_Value ("IsSOTrx", Boolean.valueOf(IsSOTrx)); -} -/** Get Sales Transaction. -@return This is a Sales Transaction */ -public boolean isSOTrx() -{ -Object oo = get_Value("IsSOTrx"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSOTrx */ -public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; -/** Set Open Amount. -@param OpenAmt Open item amount */ -public void setOpenAmt (BigDecimal OpenAmt) -{ -if (OpenAmt == null) throw new IllegalArgumentException ("OpenAmt is mandatory."); -set_Value ("OpenAmt", OpenAmt); -} -/** Get Open Amount. -@return Open item amount */ -public BigDecimal getOpenAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OpenAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OpenAmt */ -public static final String COLUMNNAME_OpenAmt = "OpenAmt"; -/** Set Past Due 1-30. -@param PastDue1_30 Past Due 1-30 */ -public void setPastDue1_30 (BigDecimal PastDue1_30) -{ -if (PastDue1_30 == null) throw new IllegalArgumentException ("PastDue1_30 is mandatory."); -set_Value ("PastDue1_30", PastDue1_30); -} -/** Get Past Due 1-30. -@return Past Due 1-30 */ -public BigDecimal getPastDue1_30() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue1_30"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue1_30 */ -public static final String COLUMNNAME_PastDue1_30 = "PastDue1_30"; -/** Set Past Due 1-7. -@param PastDue1_7 Past Due 1-7 */ -public void setPastDue1_7 (BigDecimal PastDue1_7) -{ -if (PastDue1_7 == null) throw new IllegalArgumentException ("PastDue1_7 is mandatory."); -set_Value ("PastDue1_7", PastDue1_7); -} -/** Get Past Due 1-7. -@return Past Due 1-7 */ -public BigDecimal getPastDue1_7() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue1_7"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue1_7 */ -public static final String COLUMNNAME_PastDue1_7 = "PastDue1_7"; -/** Set Past Due 31-60. -@param PastDue31_60 Past Due 31-60 */ -public void setPastDue31_60 (BigDecimal PastDue31_60) -{ -if (PastDue31_60 == null) throw new IllegalArgumentException ("PastDue31_60 is mandatory."); -set_Value ("PastDue31_60", PastDue31_60); -} -/** Get Past Due 31-60. -@return Past Due 31-60 */ -public BigDecimal getPastDue31_60() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue31_60"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue31_60 */ -public static final String COLUMNNAME_PastDue31_60 = "PastDue31_60"; -/** Set Past Due > 31. -@param PastDue31_Plus Past Due > 31 */ -public void setPastDue31_Plus (BigDecimal PastDue31_Plus) -{ -if (PastDue31_Plus == null) throw new IllegalArgumentException ("PastDue31_Plus is mandatory."); -set_Value ("PastDue31_Plus", PastDue31_Plus); -} -/** Get Past Due > 31. -@return Past Due > 31 */ -public BigDecimal getPastDue31_Plus() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue31_Plus"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue31_Plus */ -public static final String COLUMNNAME_PastDue31_Plus = "PastDue31_Plus"; -/** Set Past Due 61-90. -@param PastDue61_90 Past Due 61-90 */ -public void setPastDue61_90 (BigDecimal PastDue61_90) -{ -if (PastDue61_90 == null) throw new IllegalArgumentException ("PastDue61_90 is mandatory."); -set_Value ("PastDue61_90", PastDue61_90); -} -/** Get Past Due 61-90. -@return Past Due 61-90 */ -public BigDecimal getPastDue61_90() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue61_90"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue61_90 */ -public static final String COLUMNNAME_PastDue61_90 = "PastDue61_90"; -/** Set Past Due > 61. -@param PastDue61_Plus Past Due > 61 */ -public void setPastDue61_Plus (BigDecimal PastDue61_Plus) -{ -if (PastDue61_Plus == null) throw new IllegalArgumentException ("PastDue61_Plus is mandatory."); -set_Value ("PastDue61_Plus", PastDue61_Plus); -} -/** Get Past Due > 61. -@return Past Due > 61 */ -public BigDecimal getPastDue61_Plus() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue61_Plus"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue61_Plus */ -public static final String COLUMNNAME_PastDue61_Plus = "PastDue61_Plus"; -/** Set Past Due 8-30. -@param PastDue8_30 Past Due 8-30 */ -public void setPastDue8_30 (BigDecimal PastDue8_30) -{ -if (PastDue8_30 == null) throw new IllegalArgumentException ("PastDue8_30 is mandatory."); -set_Value ("PastDue8_30", PastDue8_30); -} -/** Get Past Due 8-30. -@return Past Due 8-30 */ -public BigDecimal getPastDue8_30() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue8_30"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue8_30 */ -public static final String COLUMNNAME_PastDue8_30 = "PastDue8_30"; -/** Set Past Due > 91. -@param PastDue91_Plus Past Due > 91 */ -public void setPastDue91_Plus (BigDecimal PastDue91_Plus) -{ -if (PastDue91_Plus == null) throw new IllegalArgumentException ("PastDue91_Plus is mandatory."); -set_Value ("PastDue91_Plus", PastDue91_Plus); -} -/** Get Past Due > 91. -@return Past Due > 91 */ -public BigDecimal getPastDue91_Plus() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDue91_Plus"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDue91_Plus */ -public static final String COLUMNNAME_PastDue91_Plus = "PastDue91_Plus"; -/** Set Past Due. -@param PastDueAmt Past Due */ -public void setPastDueAmt (BigDecimal PastDueAmt) -{ -if (PastDueAmt == null) throw new IllegalArgumentException ("PastDueAmt is mandatory."); -set_Value ("PastDueAmt", PastDueAmt); -} -/** Get Past Due. -@return Past Due */ -public BigDecimal getPastDueAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PastDueAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PastDueAmt */ -public static final String COLUMNNAME_PastDueAmt = "PastDueAmt"; -/** Set Statement date. -@param StatementDate Date of the statement */ -public void setStatementDate (Timestamp StatementDate) -{ -if (StatementDate == null) throw new IllegalArgumentException ("StatementDate is mandatory."); -set_Value ("StatementDate", StatementDate); -} -/** Get Statement date. -@return Date of the statement */ -public Timestamp getStatementDate() -{ -return (Timestamp)get_Value("StatementDate"); -} -/** Column name StatementDate */ -public static final String COLUMNNAME_StatementDate = "StatementDate"; -} + +/** Generated Model for T_Aging + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_Aging extends PO implements I_T_Aging, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_Aging (Properties ctx, int T_Aging_ID, String trxName) + { + super (ctx, T_Aging_ID, trxName); + /** if (T_Aging_ID == 0) { setAD_PInstance_ID (0); + setC_BP_Group_ID (0); + setC_BPartner_ID (0); + setC_Currency_ID (0); + setDue0 (Env.ZERO); + setDue0_30 (Env.ZERO); + setDue0_7 (Env.ZERO); + setDue1_7 (Env.ZERO); + setDue31_60 (Env.ZERO); + setDue31_Plus (Env.ZERO); + setDue61_90 (Env.ZERO); + setDue61_Plus (Env.ZERO); + setDue8_30 (Env.ZERO); + setDue91_Plus (Env.ZERO); + setDueAmt (Env.ZERO); + setDueDate (new Timestamp(System.currentTimeMillis())); + setInvoicedAmt (Env.ZERO); + setIsListInvoices (false); + setIsSOTrx (false); + setOpenAmt (Env.ZERO); + setPastDue1_30 (Env.ZERO); + setPastDue1_7 (Env.ZERO); + setPastDue31_60 (Env.ZERO); + setPastDue31_Plus (Env.ZERO); + setPastDue61_90 (Env.ZERO); + setPastDue61_Plus (Env.ZERO); + setPastDue8_30 (Env.ZERO); + setPastDue91_Plus (Env.ZERO); + setPastDueAmt (Env.ZERO); + setStatementDate (new Timestamp(System.currentTimeMillis())); +} */ + } + + /** Load Constructor */ + public X_T_Aging (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_Aging[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getI_C_Activity() throws Exception + { + 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 e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID <= 0) set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_Group getI_C_BP_Group() throws Exception + { + 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 e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getI_C_Campaign() throws Exception + { + 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 e; + } + return result; + } + + /** Set Campaign. + @param C_Campaign_ID + Marketing Campaign + */ + public void setC_Campaign_ID (int C_Campaign_ID) + { + if (C_Campaign_ID <= 0) set_Value (COLUMNNAME_C_Campaign_ID, null); + else + set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); + } + + /** Get Campaign. + @return Marketing Campaign + */ + public int getC_Campaign_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID < 1) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_InvoicePaySchedule getI_C_InvoicePaySchedule() throws Exception + { + 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 e; + } + return result; + } + + /** Set Invoice Payment Schedule. + @param C_InvoicePaySchedule_ID + Invoice Payment Schedule + */ + public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) + { + if (C_InvoicePaySchedule_ID <= 0) set_Value (COLUMNNAME_C_InvoicePaySchedule_ID, null); + else + set_Value (COLUMNNAME_C_InvoicePaySchedule_ID, Integer.valueOf(C_InvoicePaySchedule_ID)); + } + + /** Get Invoice Payment Schedule. + @return Invoice Payment Schedule + */ + public int getC_InvoicePaySchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoicePaySchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID <= 0) set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getI_C_Project() throws Exception + { + 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 e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Days due. + @param DaysDue + Number of days due (negative: due in number of days) + */ + public void setDaysDue (int DaysDue) + { + set_Value (COLUMNNAME_DaysDue, Integer.valueOf(DaysDue)); + } + + /** Get Days due. + @return Number of days due (negative: due in number of days) + */ + public int getDaysDue () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DaysDue); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Due Today. + @param Due0 Due Today */ + public void setDue0 (BigDecimal Due0) + { + if (Due0 == null) + throw new IllegalArgumentException ("Due0 is mandatory."); + set_Value (COLUMNNAME_Due0, Due0); + } + + /** Get Due Today. +@return Due Today */ + public BigDecimal getDue0 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due0); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Today-30. + @param Due0_30 Due Today-30 */ + public void setDue0_30 (BigDecimal Due0_30) + { + if (Due0_30 == null) + throw new IllegalArgumentException ("Due0_30 is mandatory."); + set_Value (COLUMNNAME_Due0_30, Due0_30); + } + + /** Get Due Today-30. +@return Due Today-30 */ + public BigDecimal getDue0_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due0_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Today-7. + @param Due0_7 Due Today-7 */ + public void setDue0_7 (BigDecimal Due0_7) + { + if (Due0_7 == null) + throw new IllegalArgumentException ("Due0_7 is mandatory."); + set_Value (COLUMNNAME_Due0_7, Due0_7); + } + + /** Get Due Today-7. +@return Due Today-7 */ + public BigDecimal getDue0_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due0_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 1-7. + @param Due1_7 Due 1-7 */ + public void setDue1_7 (BigDecimal Due1_7) + { + if (Due1_7 == null) + throw new IllegalArgumentException ("Due1_7 is mandatory."); + set_Value (COLUMNNAME_Due1_7, Due1_7); + } + + /** Get Due 1-7. +@return Due 1-7 */ + public BigDecimal getDue1_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due1_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 31-60. + @param Due31_60 Due 31-60 */ + public void setDue31_60 (BigDecimal Due31_60) + { + if (Due31_60 == null) + throw new IllegalArgumentException ("Due31_60 is mandatory."); + set_Value (COLUMNNAME_Due31_60, Due31_60); + } + + /** Get Due 31-60. +@return Due 31-60 */ + public BigDecimal getDue31_60 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due31_60); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due > 31. + @param Due31_Plus Due > 31 */ + public void setDue31_Plus (BigDecimal Due31_Plus) + { + if (Due31_Plus == null) + throw new IllegalArgumentException ("Due31_Plus is mandatory."); + set_Value (COLUMNNAME_Due31_Plus, Due31_Plus); + } + + /** Get Due > 31. +@return Due > 31 */ + public BigDecimal getDue31_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due31_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 61-90. + @param Due61_90 Due 61-90 */ + public void setDue61_90 (BigDecimal Due61_90) + { + if (Due61_90 == null) + throw new IllegalArgumentException ("Due61_90 is mandatory."); + set_Value (COLUMNNAME_Due61_90, Due61_90); + } + + /** Get Due 61-90. +@return Due 61-90 */ + public BigDecimal getDue61_90 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due61_90); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due > 61. + @param Due61_Plus Due > 61 */ + public void setDue61_Plus (BigDecimal Due61_Plus) + { + if (Due61_Plus == null) + throw new IllegalArgumentException ("Due61_Plus is mandatory."); + set_Value (COLUMNNAME_Due61_Plus, Due61_Plus); + } + + /** Get Due > 61. +@return Due > 61 */ + public BigDecimal getDue61_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due61_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 8-30. + @param Due8_30 Due 8-30 */ + public void setDue8_30 (BigDecimal Due8_30) + { + if (Due8_30 == null) + throw new IllegalArgumentException ("Due8_30 is mandatory."); + set_Value (COLUMNNAME_Due8_30, Due8_30); + } + + /** Get Due 8-30. +@return Due 8-30 */ + public BigDecimal getDue8_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due8_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due > 91. + @param Due91_Plus Due > 91 */ + public void setDue91_Plus (BigDecimal Due91_Plus) + { + if (Due91_Plus == null) + throw new IllegalArgumentException ("Due91_Plus is mandatory."); + set_Value (COLUMNNAME_Due91_Plus, Due91_Plus); + } + + /** Get Due > 91. +@return Due > 91 */ + public BigDecimal getDue91_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due91_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Amount due. + @param DueAmt + Amount of the payment due + */ + public void setDueAmt (BigDecimal DueAmt) + { + if (DueAmt == null) + throw new IllegalArgumentException ("DueAmt is mandatory."); + set_Value (COLUMNNAME_DueAmt, DueAmt); + } + + /** Get Amount due. + @return Amount of the payment due + */ + public BigDecimal getDueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Date. + @param DueDate + Date when the payment is due + */ + public void setDueDate (Timestamp DueDate) + { + if (DueDate == null) + throw new IllegalArgumentException ("DueDate is mandatory."); + set_Value (COLUMNNAME_DueDate, DueDate); + } + + /** Get Due Date. + @return Date when the payment is due + */ + public Timestamp getDueDate () + { + return (Timestamp)get_Value(COLUMNNAME_DueDate); + } + + /** Set Invoiced Amount. + @param InvoicedAmt + The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt) + { + if (InvoicedAmt == null) + throw new IllegalArgumentException ("InvoicedAmt is mandatory."); + set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt); + } + + /** Get Invoiced Amount. + @return The amount invoiced + */ + public BigDecimal getInvoicedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Invoices. + @param IsListInvoices + Include List of Invoices + */ + public void setIsListInvoices (boolean IsListInvoices) + { + set_Value (COLUMNNAME_IsListInvoices, Boolean.valueOf(IsListInvoices)); + } + + /** Get List Invoices. + @return Include List of Invoices + */ + public boolean isListInvoices () + { + Object oo = get_Value(COLUMNNAME_IsListInvoices); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Open Amount. + @param OpenAmt + Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt) + { + if (OpenAmt == null) + throw new IllegalArgumentException ("OpenAmt is mandatory."); + set_Value (COLUMNNAME_OpenAmt, OpenAmt); + } + + /** Get Open Amount. + @return Open item amount + */ + public BigDecimal getOpenAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 1-30. + @param PastDue1_30 Past Due 1-30 */ + public void setPastDue1_30 (BigDecimal PastDue1_30) + { + if (PastDue1_30 == null) + throw new IllegalArgumentException ("PastDue1_30 is mandatory."); + set_Value (COLUMNNAME_PastDue1_30, PastDue1_30); + } + + /** Get Past Due 1-30. +@return Past Due 1-30 */ + public BigDecimal getPastDue1_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue1_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 1-7. + @param PastDue1_7 Past Due 1-7 */ + public void setPastDue1_7 (BigDecimal PastDue1_7) + { + if (PastDue1_7 == null) + throw new IllegalArgumentException ("PastDue1_7 is mandatory."); + set_Value (COLUMNNAME_PastDue1_7, PastDue1_7); + } + + /** Get Past Due 1-7. +@return Past Due 1-7 */ + public BigDecimal getPastDue1_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue1_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 31-60. + @param PastDue31_60 Past Due 31-60 */ + public void setPastDue31_60 (BigDecimal PastDue31_60) + { + if (PastDue31_60 == null) + throw new IllegalArgumentException ("PastDue31_60 is mandatory."); + set_Value (COLUMNNAME_PastDue31_60, PastDue31_60); + } + + /** Get Past Due 31-60. +@return Past Due 31-60 */ + public BigDecimal getPastDue31_60 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue31_60); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due > 31. + @param PastDue31_Plus Past Due > 31 */ + public void setPastDue31_Plus (BigDecimal PastDue31_Plus) + { + if (PastDue31_Plus == null) + throw new IllegalArgumentException ("PastDue31_Plus is mandatory."); + set_Value (COLUMNNAME_PastDue31_Plus, PastDue31_Plus); + } + + /** Get Past Due > 31. +@return Past Due > 31 */ + public BigDecimal getPastDue31_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue31_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 61-90. + @param PastDue61_90 Past Due 61-90 */ + public void setPastDue61_90 (BigDecimal PastDue61_90) + { + if (PastDue61_90 == null) + throw new IllegalArgumentException ("PastDue61_90 is mandatory."); + set_Value (COLUMNNAME_PastDue61_90, PastDue61_90); + } + + /** Get Past Due 61-90. +@return Past Due 61-90 */ + public BigDecimal getPastDue61_90 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue61_90); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due > 61. + @param PastDue61_Plus Past Due > 61 */ + public void setPastDue61_Plus (BigDecimal PastDue61_Plus) + { + if (PastDue61_Plus == null) + throw new IllegalArgumentException ("PastDue61_Plus is mandatory."); + set_Value (COLUMNNAME_PastDue61_Plus, PastDue61_Plus); + } + + /** Get Past Due > 61. +@return Past Due > 61 */ + public BigDecimal getPastDue61_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue61_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 8-30. + @param PastDue8_30 Past Due 8-30 */ + public void setPastDue8_30 (BigDecimal PastDue8_30) + { + if (PastDue8_30 == null) + throw new IllegalArgumentException ("PastDue8_30 is mandatory."); + set_Value (COLUMNNAME_PastDue8_30, PastDue8_30); + } + + /** Get Past Due 8-30. +@return Past Due 8-30 */ + public BigDecimal getPastDue8_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue8_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due > 91. + @param PastDue91_Plus Past Due > 91 */ + public void setPastDue91_Plus (BigDecimal PastDue91_Plus) + { + if (PastDue91_Plus == null) + throw new IllegalArgumentException ("PastDue91_Plus is mandatory."); + set_Value (COLUMNNAME_PastDue91_Plus, PastDue91_Plus); + } + + /** Get Past Due > 91. +@return Past Due > 91 */ + public BigDecimal getPastDue91_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue91_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due. + @param PastDueAmt Past Due */ + public void setPastDueAmt (BigDecimal PastDueAmt) + { + if (PastDueAmt == null) + throw new IllegalArgumentException ("PastDueAmt is mandatory."); + set_Value (COLUMNNAME_PastDueAmt, PastDueAmt); + } + + /** Get Past Due. +@return Past Due */ + public BigDecimal getPastDueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Statement date. + @param StatementDate + Date of the statement + */ + public void setStatementDate (Timestamp StatementDate) + { + if (StatementDate == null) + throw new IllegalArgumentException ("StatementDate is mandatory."); + set_Value (COLUMNNAME_StatementDate, StatementDate); + } + + /** Get Statement date. + @return Date of the statement + */ + public Timestamp getStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_DistributionRunDetail.java b/base/src/org/compiere/model/X_T_DistributionRunDetail.java index 4bc309ecf2..ed9335696e 100644 --- a/base/src/org/compiere/model/X_T_DistributionRunDetail.java +++ b/base/src/org/compiere/model/X_T_DistributionRunDetail.java @@ -1,273 +1,310 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_DistributionRunDetail - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_DistributionRunDetail extends PO + +/** Generated Model for T_DistributionRunDetail + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_DistributionRunDetail extends PO implements I_T_DistributionRunDetail, I_Persistent { -/** Standard Constructor -@param ctx context -@param T_DistributionRunDetail_ID id -@param trxName transaction -*/ -public X_T_DistributionRunDetail (Properties ctx, int T_DistributionRunDetail_ID, String trxName) -{ -super (ctx, T_DistributionRunDetail_ID, trxName); -/** if (T_DistributionRunDetail_ID == 0) -{ -setC_BPartner_ID (0); -setC_BPartner_Location_ID (0); -setM_DistributionListLine_ID (0); -setM_DistributionList_ID (0); -setM_DistributionRunLine_ID (0); -setM_DistributionRun_ID (0); -setM_Product_ID (0); -setMinQty (Env.ZERO); -setQty (Env.ZERO); -setRatio (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_DistributionRunDetail (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_DistributionRunDetail */ -public static final String Table_Name="T_DistributionRunDetail"; - -/** AD_Table_ID=714 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_DistributionRunDetail[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Partner Location. -@param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ -public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) -{ -if (C_BPartner_Location_ID < 1) throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); -set_Value ("C_BPartner_Location_ID", Integer.valueOf(C_BPartner_Location_ID)); -} -/** Get Partner Location. -@return Identifies the (ship to) address for this Business Partner */ -public int getC_BPartner_Location_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_Location_ID */ -public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; -/** Set Distribution List Line. -@param M_DistributionListLine_ID Distribution List Line with Business Partner and Quantity/Percentage */ -public void setM_DistributionListLine_ID (int M_DistributionListLine_ID) -{ -if (M_DistributionListLine_ID < 1) throw new IllegalArgumentException ("M_DistributionListLine_ID is mandatory."); -set_ValueNoCheck ("M_DistributionListLine_ID", Integer.valueOf(M_DistributionListLine_ID)); -} -/** Get Distribution List Line. -@return Distribution List Line with Business Partner and Quantity/Percentage */ -public int getM_DistributionListLine_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionListLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionListLine_ID */ -public static final String COLUMNNAME_M_DistributionListLine_ID = "M_DistributionListLine_ID"; -/** Set Distribution List. -@param M_DistributionList_ID Distribution Lists allow to distribute products to a selected list of partners */ -public void setM_DistributionList_ID (int M_DistributionList_ID) -{ -if (M_DistributionList_ID < 1) throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); -set_ValueNoCheck ("M_DistributionList_ID", Integer.valueOf(M_DistributionList_ID)); -} -/** Get Distribution List. -@return Distribution Lists allow to distribute products to a selected list of partners */ -public int getM_DistributionList_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionList_ID */ -public static final String COLUMNNAME_M_DistributionList_ID = "M_DistributionList_ID"; -/** Set Distribution Run Line. -@param M_DistributionRunLine_ID Distribution Run Lines define Distribution List, the Product and Quantiries */ -public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID) -{ -if (M_DistributionRunLine_ID < 1) throw new IllegalArgumentException ("M_DistributionRunLine_ID is mandatory."); -set_ValueNoCheck ("M_DistributionRunLine_ID", Integer.valueOf(M_DistributionRunLine_ID)); -} -/** Get Distribution Run Line. -@return Distribution Run Lines define Distribution List, the Product and Quantiries */ -public int getM_DistributionRunLine_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionRunLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_DistributionRunLine_ID */ -public static final String COLUMNNAME_M_DistributionRunLine_ID = "M_DistributionRunLine_ID"; -/** Set Distribution Run. -@param M_DistributionRun_ID Distribution Run create Orders to distribute products to a selected list of partners */ -public void setM_DistributionRun_ID (int M_DistributionRun_ID) -{ -if (M_DistributionRun_ID < 1) throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); -set_ValueNoCheck ("M_DistributionRun_ID", Integer.valueOf(M_DistributionRun_ID)); -} -/** Get Distribution Run. -@return Distribution Run create Orders to distribute products to a selected list of partners */ -public int getM_DistributionRun_ID() -{ -Integer ii = (Integer)get_Value("M_DistributionRun_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionRun_ID())); -} -/** Column name M_DistributionRun_ID */ -public static final String COLUMNNAME_M_DistributionRun_ID = "M_DistributionRun_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Minimum Quantity. -@param MinQty Minimum quantity for the business partner */ -public void setMinQty (BigDecimal MinQty) -{ -if (MinQty == null) throw new IllegalArgumentException ("MinQty is mandatory."); -set_Value ("MinQty", MinQty); -} -/** Get Minimum Quantity. -@return Minimum quantity for the business partner */ -public BigDecimal getMinQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MinQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MinQty */ -public static final String COLUMNNAME_MinQty = "MinQty"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Ratio. -@param Ratio Relative Ratio for Distributions */ -public void setRatio (BigDecimal Ratio) -{ -if (Ratio == null) throw new IllegalArgumentException ("Ratio is mandatory."); -set_Value ("Ratio", Ratio); -} -/** Get Ratio. -@return Relative Ratio for Distributions */ -public BigDecimal getRatio() -{ -BigDecimal bd = (BigDecimal)get_Value("Ratio"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Ratio */ -public static final String COLUMNNAME_Ratio = "Ratio"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_DistributionRunDetail (Properties ctx, int T_DistributionRunDetail_ID, String trxName) + { + super (ctx, T_DistributionRunDetail_ID, trxName); + /** if (T_DistributionRunDetail_ID == 0) { setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setM_DistributionListLine_ID (0); + setM_DistributionList_ID (0); + setM_DistributionRunLine_ID (0); + setM_DistributionRun_ID (0); + setM_Product_ID (0); + setMinQty (Env.ZERO); + setQty (Env.ZERO); + setRatio (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_T_DistributionRunDetail (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_DistributionRunDetail[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Distribution List Line. + @param M_DistributionListLine_ID + Distribution List Line with Business Partner and Quantity/Percentage + */ + public void setM_DistributionListLine_ID (int M_DistributionListLine_ID) + { + if (M_DistributionListLine_ID < 1) + throw new IllegalArgumentException ("M_DistributionListLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionListLine_ID, Integer.valueOf(M_DistributionListLine_ID)); + } + + /** Get Distribution List Line. + @return Distribution List Line with Business Partner and Quantity/Percentage + */ + public int getM_DistributionListLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionListLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Distribution List. + @param M_DistributionList_ID + Distribution Lists allow to distribute products to a selected list of partners + */ + public void setM_DistributionList_ID (int M_DistributionList_ID) + { + if (M_DistributionList_ID < 1) + throw new IllegalArgumentException ("M_DistributionList_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionList_ID, Integer.valueOf(M_DistributionList_ID)); + } + + /** Get Distribution List. + @return Distribution Lists allow to distribute products to a selected list of partners + */ + public int getM_DistributionList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Distribution Run Line. + @param M_DistributionRunLine_ID + Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public void setM_DistributionRunLine_ID (int M_DistributionRunLine_ID) + { + if (M_DistributionRunLine_ID < 1) + throw new IllegalArgumentException ("M_DistributionRunLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionRunLine_ID, Integer.valueOf(M_DistributionRunLine_ID)); + } + + /** Get Distribution Run Line. + @return Distribution Run Lines define Distribution List, the Product and Quantiries + */ + public int getM_DistributionRunLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionRunLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Distribution Run. + @param M_DistributionRun_ID + Distribution Run create Orders to distribute products to a selected list of partners + */ + public void setM_DistributionRun_ID (int M_DistributionRun_ID) + { + if (M_DistributionRun_ID < 1) + throw new IllegalArgumentException ("M_DistributionRun_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DistributionRun_ID, Integer.valueOf(M_DistributionRun_ID)); + } + + /** Get Distribution Run. + @return Distribution Run create Orders to distribute products to a selected list of partners + */ + public int getM_DistributionRun_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DistributionRun_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getM_DistributionRun_ID())); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Minimum Quantity. + @param MinQty + Minimum quantity for the business partner + */ + public void setMinQty (BigDecimal MinQty) + { + if (MinQty == null) + throw new IllegalArgumentException ("MinQty is mandatory."); + set_Value (COLUMNNAME_MinQty, MinQty); + } + + /** Get Minimum Quantity. + @return Minimum quantity for the business partner + */ + public BigDecimal getMinQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ratio. + @param Ratio + Relative Ratio for Distributions + */ + public void setRatio (BigDecimal Ratio) + { + if (Ratio == null) + throw new IllegalArgumentException ("Ratio is mandatory."); + set_Value (COLUMNNAME_Ratio, Ratio); + } + + /** Get Ratio. + @return Relative Ratio for Distributions + */ + public BigDecimal getRatio () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Ratio); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_InventoryValue.java b/base/src/org/compiere/model/X_T_InventoryValue.java index 2fc9c4bbd2..b79bddcedd 100644 --- a/base/src/org/compiere/model/X_T_InventoryValue.java +++ b/base/src/org/compiere/model/X_T_InventoryValue.java @@ -1,435 +1,587 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_InventoryValue - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_InventoryValue extends PO + +/** Generated Model for T_InventoryValue + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_InventoryValue extends PO implements I_T_InventoryValue, I_Persistent { -/** Standard Constructor -@param ctx context -@param T_InventoryValue_ID id -@param trxName transaction -*/ -public X_T_InventoryValue (Properties ctx, int T_InventoryValue_ID, String trxName) -{ -super (ctx, T_InventoryValue_ID, trxName); -/** if (T_InventoryValue_ID == 0) -{ -setAD_PInstance_ID (0); -setM_AttributeSetInstance_ID (0); -setM_Product_ID (0); -setM_Warehouse_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_InventoryValue (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_InventoryValue */ -public static final String Table_Name="T_InventoryValue"; - -/** AD_Table_ID=478 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_InventoryValue[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Cost. -@param Cost Cost information */ -public void setCost (BigDecimal Cost) -{ -set_Value ("Cost", Cost); -} -/** Get Cost. -@return Cost information */ -public BigDecimal getCost() -{ -BigDecimal bd = (BigDecimal)get_Value("Cost"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Cost */ -public static final String COLUMNNAME_Cost = "Cost"; -/** Set Cost Value. -@param CostAmt Value with Cost */ -public void setCostAmt (BigDecimal CostAmt) -{ -set_Value ("CostAmt", CostAmt); -} -/** Get Cost Value. -@return Value with Cost */ -public BigDecimal getCostAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CostAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostAmt */ -public static final String COLUMNNAME_CostAmt = "CostAmt"; -/** Set Standard Cost. -@param CostStandard Standard Costs */ -public void setCostStandard (BigDecimal CostStandard) -{ -set_Value ("CostStandard", CostStandard); -} -/** Get Standard Cost. -@return Standard Costs */ -public BigDecimal getCostStandard() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandard"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandard */ -public static final String COLUMNNAME_CostStandard = "CostStandard"; -/** Set Standard Cost Value. -@param CostStandardAmt Value in Standard Costs */ -public void setCostStandardAmt (BigDecimal CostStandardAmt) -{ -set_Value ("CostStandardAmt", CostStandardAmt); -} -/** Get Standard Cost Value. -@return Value in Standard Costs */ -public BigDecimal getCostStandardAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("CostStandardAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name CostStandardAmt */ -public static final String COLUMNNAME_CostStandardAmt = "CostStandardAmt"; -/** Set Valuation Date. -@param DateValue Date of valuation */ -public void setDateValue (Timestamp DateValue) -{ -set_Value ("DateValue", DateValue); -} -/** Get Valuation Date. -@return Date of valuation */ -public Timestamp getDateValue() -{ -return (Timestamp)get_Value("DateValue"); -} -/** Column name DateValue */ -public static final String COLUMNNAME_DateValue = "DateValue"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Cost Element. -@param M_CostElement_ID Product Cost Element */ -public void setM_CostElement_ID (int M_CostElement_ID) -{ -if (M_CostElement_ID <= 0) set_Value ("M_CostElement_ID", null); - else -set_Value ("M_CostElement_ID", Integer.valueOf(M_CostElement_ID)); -} -/** Get Cost Element. -@return Product Cost Element */ -public int getM_CostElement_ID() -{ -Integer ii = (Integer)get_Value("M_CostElement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_CostElement_ID */ -public static final String COLUMNNAME_M_CostElement_ID = "M_CostElement_ID"; -/** Set Price List Version. -@param M_PriceList_Version_ID Identifies a unique instance of a Price List */ -public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) -{ -if (M_PriceList_Version_ID <= 0) set_Value ("M_PriceList_Version_ID", null); - else -set_Value ("M_PriceList_Version_ID", Integer.valueOf(M_PriceList_Version_ID)); -} -/** Get Price List Version. -@return Identifies a unique instance of a Price List */ -public int getM_PriceList_Version_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_Version_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_Version_ID */ -public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Limit Price. -@param PriceLimit Lowest price for a product */ -public void setPriceLimit (BigDecimal PriceLimit) -{ -set_Value ("PriceLimit", PriceLimit); -} -/** Get Limit Price. -@return Lowest price for a product */ -public BigDecimal getPriceLimit() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimit"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimit */ -public static final String COLUMNNAME_PriceLimit = "PriceLimit"; -/** Set Limit price Value. -@param PriceLimitAmt Value with limit price */ -public void setPriceLimitAmt (BigDecimal PriceLimitAmt) -{ -set_Value ("PriceLimitAmt", PriceLimitAmt); -} -/** Get Limit price Value. -@return Value with limit price */ -public BigDecimal getPriceLimitAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceLimitAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceLimitAmt */ -public static final String COLUMNNAME_PriceLimitAmt = "PriceLimitAmt"; -/** Set List Price. -@param PriceList List Price */ -public void setPriceList (BigDecimal PriceList) -{ -set_Value ("PriceList", PriceList); -} -/** Get List Price. -@return List Price */ -public BigDecimal getPriceList() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceList"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceList */ -public static final String COLUMNNAME_PriceList = "PriceList"; -/** Set List price Value. -@param PriceListAmt Valuation with List Price */ -public void setPriceListAmt (BigDecimal PriceListAmt) -{ -set_Value ("PriceListAmt", PriceListAmt); -} -/** Get List price Value. -@return Valuation with List Price */ -public BigDecimal getPriceListAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceListAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceListAmt */ -public static final String COLUMNNAME_PriceListAmt = "PriceListAmt"; -/** Set PO Price. -@param PricePO Price based on a purchase order */ -public void setPricePO (BigDecimal PricePO) -{ -set_Value ("PricePO", PricePO); -} -/** Get PO Price. -@return Price based on a purchase order */ -public BigDecimal getPricePO() -{ -BigDecimal bd = (BigDecimal)get_Value("PricePO"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PricePO */ -public static final String COLUMNNAME_PricePO = "PricePO"; -/** Set PO Price Value. -@param PricePOAmt Valuation with PO Price */ -public void setPricePOAmt (BigDecimal PricePOAmt) -{ -set_Value ("PricePOAmt", PricePOAmt); -} -/** Get PO Price Value. -@return Valuation with PO Price */ -public BigDecimal getPricePOAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PricePOAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PricePOAmt */ -public static final String COLUMNNAME_PricePOAmt = "PricePOAmt"; -/** Set Standard Price. -@param PriceStd Standard Price */ -public void setPriceStd (BigDecimal PriceStd) -{ -set_Value ("PriceStd", PriceStd); -} -/** Get Standard Price. -@return Standard Price */ -public BigDecimal getPriceStd() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceStd"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceStd */ -public static final String COLUMNNAME_PriceStd = "PriceStd"; -/** Set Std Price Value. -@param PriceStdAmt Valuation with standard price */ -public void setPriceStdAmt (BigDecimal PriceStdAmt) -{ -set_Value ("PriceStdAmt", PriceStdAmt); -} -/** Get Std Price Value. -@return Valuation with standard price */ -public BigDecimal getPriceStdAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("PriceStdAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name PriceStdAmt */ -public static final String COLUMNNAME_PriceStdAmt = "PriceStdAmt"; -/** Set On Hand Quantity. -@param QtyOnHand On Hand Quantity */ -public void setQtyOnHand (BigDecimal QtyOnHand) -{ -set_Value ("QtyOnHand", QtyOnHand); -} -/** Get On Hand Quantity. -@return On Hand Quantity */ -public BigDecimal getQtyOnHand() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOnHand"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOnHand */ -public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_InventoryValue (Properties ctx, int T_InventoryValue_ID, String trxName) + { + super (ctx, T_InventoryValue_ID, trxName); + /** if (T_InventoryValue_ID == 0) { setAD_PInstance_ID (0); + setM_AttributeSetInstance_ID (0); + setM_Product_ID (0); + setM_Warehouse_ID (0); +} */ + } + + /** Load Constructor */ + public X_T_InventoryValue (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_InventoryValue[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cost. + @param Cost + Cost information + */ + public void setCost (BigDecimal Cost) + { + set_Value (COLUMNNAME_Cost, Cost); + } + + /** Get Cost. + @return Cost information + */ + public BigDecimal getCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Cost Value. + @param CostAmt + Value with Cost + */ + public void setCostAmt (BigDecimal CostAmt) + { + set_Value (COLUMNNAME_CostAmt, CostAmt); + } + + /** Get Cost Value. + @return Value with Cost + */ + public BigDecimal getCostAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Cost. + @param CostStandard + Standard Costs + */ + public void setCostStandard (BigDecimal CostStandard) + { + set_Value (COLUMNNAME_CostStandard, CostStandard); + } + + /** Get Standard Cost. + @return Standard Costs + */ + public BigDecimal getCostStandard () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandard); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Cost Value. + @param CostStandardAmt + Value in Standard Costs + */ + public void setCostStandardAmt (BigDecimal CostStandardAmt) + { + set_Value (COLUMNNAME_CostStandardAmt, CostStandardAmt); + } + + /** Get Standard Cost Value. + @return Value in Standard Costs + */ + public BigDecimal getCostStandardAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CostStandardAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Valuation Date. + @param DateValue + Date of valuation + */ + public void setDateValue (Timestamp DateValue) + { + set_Value (COLUMNNAME_DateValue, DateValue); + } + + /** Get Valuation Date. + @return Date of valuation + */ + public Timestamp getDateValue () + { + return (Timestamp)get_Value(COLUMNNAME_DateValue); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_CostElement getI_M_CostElement() throws Exception + { + 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 e; + } + return result; + } + + /** Set Cost Element. + @param M_CostElement_ID + Product Cost Element + */ + public void setM_CostElement_ID (int M_CostElement_ID) + { + if (M_CostElement_ID <= 0) set_Value (COLUMNNAME_M_CostElement_ID, null); + else + set_Value (COLUMNNAME_M_CostElement_ID, Integer.valueOf(M_CostElement_ID)); + } + + /** Get Cost Element. + @return Product Cost Element + */ + public int getM_CostElement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostElement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList_Version getI_M_PriceList_Version() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List Version. + @param M_PriceList_Version_ID + Identifies a unique instance of a Price List + */ + public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) + { + if (M_PriceList_Version_ID <= 0) set_Value (COLUMNNAME_M_PriceList_Version_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID)); + } + + /** Get Price List Version. + @return Identifies a unique instance of a Price List + */ + public int getM_PriceList_Version_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + set_Value (COLUMNNAME_PriceLimit, PriceLimit); + } + + /** Get Limit Price. + @return Lowest price for a product + */ + public BigDecimal getPriceLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit price Value. + @param PriceLimitAmt + Value with limit price + */ + public void setPriceLimitAmt (BigDecimal PriceLimitAmt) + { + set_Value (COLUMNNAME_PriceLimitAmt, PriceLimitAmt); + } + + /** Get Limit price Value. + @return Value with limit price + */ + public BigDecimal getPriceLimitAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimitAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Price. + @param PriceList + List Price + */ + public void setPriceList (BigDecimal PriceList) + { + set_Value (COLUMNNAME_PriceList, PriceList); + } + + /** Get List Price. + @return List Price + */ + public BigDecimal getPriceList () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List price Value. + @param PriceListAmt + Valuation with List Price + */ + public void setPriceListAmt (BigDecimal PriceListAmt) + { + set_Value (COLUMNNAME_PriceListAmt, PriceListAmt); + } + + /** Get List price Value. + @return Valuation with List Price + */ + public BigDecimal getPriceListAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceListAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Price. + @param PricePO + Price based on a purchase order + */ + public void setPricePO (BigDecimal PricePO) + { + set_Value (COLUMNNAME_PricePO, PricePO); + } + + /** Get PO Price. + @return Price based on a purchase order + */ + public BigDecimal getPricePO () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePO); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Price Value. + @param PricePOAmt + Valuation with PO Price + */ + public void setPricePOAmt (BigDecimal PricePOAmt) + { + set_Value (COLUMNNAME_PricePOAmt, PricePOAmt); + } + + /** Get PO Price Value. + @return Valuation with PO Price + */ + public BigDecimal getPricePOAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PricePOAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard Price. + @param PriceStd + Standard Price + */ + public void setPriceStd (BigDecimal PriceStd) + { + set_Value (COLUMNNAME_PriceStd, PriceStd); + } + + /** Get Standard Price. + @return Standard Price + */ + public BigDecimal getPriceStd () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Std Price Value. + @param PriceStdAmt + Valuation with standard price + */ + public void setPriceStdAmt (BigDecimal PriceStdAmt) + { + set_Value (COLUMNNAME_PriceStdAmt, PriceStdAmt); + } + + /** Get Std Price Value. + @return Valuation with standard price + */ + public BigDecimal getPriceStdAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStdAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set On Hand Quantity. + @param QtyOnHand + On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand) + { + set_Value (COLUMNNAME_QtyOnHand, QtyOnHand); + } + + /** Get On Hand Quantity. + @return On Hand Quantity + */ + public BigDecimal getQtyOnHand () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOnHand); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_InvoiceGL.java b/base/src/org/compiere/model/X_T_InvoiceGL.java index e3a9883e92..22a7f39e28 100644 --- a/base/src/org/compiere/model/X_T_InvoiceGL.java +++ b/base/src/org/compiere/model/X_T_InvoiceGL.java @@ -1,410 +1,479 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_InvoiceGL - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_InvoiceGL extends PO + +/** Generated Model for T_InvoiceGL + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_InvoiceGL extends PO implements I_T_InvoiceGL, I_Persistent { -/** Standard Constructor -@param ctx context -@param T_InvoiceGL_ID id -@param trxName transaction -*/ -public X_T_InvoiceGL (Properties ctx, int T_InvoiceGL_ID, String trxName) -{ -super (ctx, T_InvoiceGL_ID, trxName); -/** if (T_InvoiceGL_ID == 0) -{ -setAD_PInstance_ID (0); -setAmtAcctBalance (Env.ZERO); -setAmtRevalCr (Env.ZERO); -setAmtRevalCrDiff (Env.ZERO); -setAmtRevalDr (Env.ZERO); -setAmtRevalDrDiff (Env.ZERO); -setAmtSourceBalance (Env.ZERO); -setC_ConversionTypeReval_ID (0); -setC_Invoice_ID (0); -setDateReval (new Timestamp(System.currentTimeMillis())); -setFact_Acct_ID (0); -setGrandTotal (Env.ZERO); -setIsAllCurrencies (false); -setOpenAmt (Env.ZERO); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_InvoiceGL (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_InvoiceGL */ -public static final String Table_Name="T_InvoiceGL"; - -/** AD_Table_ID=803 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_InvoiceGL[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_Value ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_InvoiceGL (Properties ctx, int T_InvoiceGL_ID, String trxName) + { + super (ctx, T_InvoiceGL_ID, trxName); + /** if (T_InvoiceGL_ID == 0) { setAD_PInstance_ID (0); + setAmtAcctBalance (Env.ZERO); + setAmtRevalCr (Env.ZERO); + setAmtRevalCrDiff (Env.ZERO); + setAmtRevalDr (Env.ZERO); + setAmtRevalDrDiff (Env.ZERO); + setAmtSourceBalance (Env.ZERO); + setC_ConversionTypeReval_ID (0); + setC_Invoice_ID (0); + setDateReval (new Timestamp(System.currentTimeMillis())); + setFact_Acct_ID (0); + setGrandTotal (Env.ZERO); + setIsAllCurrencies (false); + setOpenAmt (Env.ZERO); +} */ + } + + /** Load Constructor */ + public X_T_InvoiceGL (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_InvoiceGL[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_Value (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** APAR AD_Reference_ID=332 */ -public static final int APAR_AD_Reference_ID=332; -/** Receivables & Payables = A */ -public static final String APAR_ReceivablesPayables = "A"; -/** Payables only = P */ -public static final String APAR_PayablesOnly = "P"; -/** Receivables only = R */ +public static final int APAR_AD_Reference_ID=332;/** Receivables & Payables = A */ +public static final String APAR_ReceivablesPayables = "A";/** Payables only = P */ +public static final String APAR_PayablesOnly = "P";/** Receivables only = R */ public static final String APAR_ReceivablesOnly = "R"; -/** Set AP - AR. -@param APAR Include Receivables and/or Payables transactions */ -public void setAPAR (String APAR) -{ -if (APAR == null || APAR.equals("A") || APAR.equals("P") || APAR.equals("R")); - else throw new IllegalArgumentException ("APAR Invalid value - " + APAR + " - Reference_ID=332 - A - P - R"); -if (APAR != null && APAR.length() > 1) -{ -log.warning("Length > 1 - truncated"); -APAR = APAR.substring(0,0); -} -set_Value ("APAR", APAR); -} -/** Get AP - AR. -@return Include Receivables and/or Payables transactions */ -public String getAPAR() -{ -return (String)get_Value("APAR"); -} -/** Column name APAR */ -public static final String COLUMNNAME_APAR = "APAR"; -/** Set Accounted Balance. -@param AmtAcctBalance Accounted Balance Amount */ -public void setAmtAcctBalance (BigDecimal AmtAcctBalance) -{ -if (AmtAcctBalance == null) throw new IllegalArgumentException ("AmtAcctBalance is mandatory."); -set_Value ("AmtAcctBalance", AmtAcctBalance); -} -/** Get Accounted Balance. -@return Accounted Balance Amount */ -public BigDecimal getAmtAcctBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctBalance */ -public static final String COLUMNNAME_AmtAcctBalance = "AmtAcctBalance"; -/** Set Revaluated Amount Cr. -@param AmtRevalCr Revaluated Cr Amount */ -public void setAmtRevalCr (BigDecimal AmtRevalCr) -{ -if (AmtRevalCr == null) throw new IllegalArgumentException ("AmtRevalCr is mandatory."); -set_Value ("AmtRevalCr", AmtRevalCr); -} -/** Get Revaluated Amount Cr. -@return Revaluated Cr Amount */ -public BigDecimal getAmtRevalCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtRevalCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtRevalCr */ -public static final String COLUMNNAME_AmtRevalCr = "AmtRevalCr"; -/** Set Revaluated Difference Cr. -@param AmtRevalCrDiff Revaluated Cr Amount Difference */ -public void setAmtRevalCrDiff (BigDecimal AmtRevalCrDiff) -{ -if (AmtRevalCrDiff == null) throw new IllegalArgumentException ("AmtRevalCrDiff is mandatory."); -set_Value ("AmtRevalCrDiff", AmtRevalCrDiff); -} -/** Get Revaluated Difference Cr. -@return Revaluated Cr Amount Difference */ -public BigDecimal getAmtRevalCrDiff() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtRevalCrDiff"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtRevalCrDiff */ -public static final String COLUMNNAME_AmtRevalCrDiff = "AmtRevalCrDiff"; -/** Set Revaluated Amount Dr. -@param AmtRevalDr Revaluated Dr Amount */ -public void setAmtRevalDr (BigDecimal AmtRevalDr) -{ -if (AmtRevalDr == null) throw new IllegalArgumentException ("AmtRevalDr is mandatory."); -set_Value ("AmtRevalDr", AmtRevalDr); -} -/** Get Revaluated Amount Dr. -@return Revaluated Dr Amount */ -public BigDecimal getAmtRevalDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtRevalDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtRevalDr */ -public static final String COLUMNNAME_AmtRevalDr = "AmtRevalDr"; -/** Set Revaluated Difference Dr. -@param AmtRevalDrDiff Revaluated Dr Amount Difference */ -public void setAmtRevalDrDiff (BigDecimal AmtRevalDrDiff) -{ -if (AmtRevalDrDiff == null) throw new IllegalArgumentException ("AmtRevalDrDiff is mandatory."); -set_Value ("AmtRevalDrDiff", AmtRevalDrDiff); -} -/** Get Revaluated Difference Dr. -@return Revaluated Dr Amount Difference */ -public BigDecimal getAmtRevalDrDiff() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtRevalDrDiff"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtRevalDrDiff */ -public static final String COLUMNNAME_AmtRevalDrDiff = "AmtRevalDrDiff"; -/** Set Source Balance. -@param AmtSourceBalance Source Balance Amount */ -public void setAmtSourceBalance (BigDecimal AmtSourceBalance) -{ -if (AmtSourceBalance == null) throw new IllegalArgumentException ("AmtSourceBalance is mandatory."); -set_Value ("AmtSourceBalance", AmtSourceBalance); -} -/** Get Source Balance. -@return Source Balance Amount */ -public BigDecimal getAmtSourceBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtSourceBalance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtSourceBalance */ -public static final String COLUMNNAME_AmtSourceBalance = "AmtSourceBalance"; + /** Set AP - AR. + @param APAR + Include Receivables and/or Payables transactions + */ + public void setAPAR (String APAR) + { +if (APAR == null || APAR.equals("A") || APAR.equals("P") || APAR.equals("R")); else throw new IllegalArgumentException ("APAR Invalid value - " + APAR + " - Reference_ID=332 - A - P - R"); if (APAR != null && APAR.length() > 1) + { + log.warning("Length > 1 - truncated"); + APAR = APAR.substring(0, 0); + } + set_Value (COLUMNNAME_APAR, APAR); + } + + /** Get AP - AR. + @return Include Receivables and/or Payables transactions + */ + public String getAPAR () + { + return (String)get_Value(COLUMNNAME_APAR); + } + + /** Set Accounted Balance. + @param AmtAcctBalance + Accounted Balance Amount + */ + public void setAmtAcctBalance (BigDecimal AmtAcctBalance) + { + if (AmtAcctBalance == null) + throw new IllegalArgumentException ("AmtAcctBalance is mandatory."); + set_Value (COLUMNNAME_AmtAcctBalance, AmtAcctBalance); + } + + /** Get Accounted Balance. + @return Accounted Balance Amount + */ + public BigDecimal getAmtAcctBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revaluated Amount Cr. + @param AmtRevalCr + Revaluated Cr Amount + */ + public void setAmtRevalCr (BigDecimal AmtRevalCr) + { + if (AmtRevalCr == null) + throw new IllegalArgumentException ("AmtRevalCr is mandatory."); + set_Value (COLUMNNAME_AmtRevalCr, AmtRevalCr); + } + + /** Get Revaluated Amount Cr. + @return Revaluated Cr Amount + */ + public BigDecimal getAmtRevalCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtRevalCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revaluated Difference Cr. + @param AmtRevalCrDiff + Revaluated Cr Amount Difference + */ + public void setAmtRevalCrDiff (BigDecimal AmtRevalCrDiff) + { + if (AmtRevalCrDiff == null) + throw new IllegalArgumentException ("AmtRevalCrDiff is mandatory."); + set_Value (COLUMNNAME_AmtRevalCrDiff, AmtRevalCrDiff); + } + + /** Get Revaluated Difference Cr. + @return Revaluated Cr Amount Difference + */ + public BigDecimal getAmtRevalCrDiff () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtRevalCrDiff); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revaluated Amount Dr. + @param AmtRevalDr + Revaluated Dr Amount + */ + public void setAmtRevalDr (BigDecimal AmtRevalDr) + { + if (AmtRevalDr == null) + throw new IllegalArgumentException ("AmtRevalDr is mandatory."); + set_Value (COLUMNNAME_AmtRevalDr, AmtRevalDr); + } + + /** Get Revaluated Amount Dr. + @return Revaluated Dr Amount + */ + public BigDecimal getAmtRevalDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtRevalDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revaluated Difference Dr. + @param AmtRevalDrDiff + Revaluated Dr Amount Difference + */ + public void setAmtRevalDrDiff (BigDecimal AmtRevalDrDiff) + { + if (AmtRevalDrDiff == null) + throw new IllegalArgumentException ("AmtRevalDrDiff is mandatory."); + set_Value (COLUMNNAME_AmtRevalDrDiff, AmtRevalDrDiff); + } + + /** Get Revaluated Difference Dr. + @return Revaluated Dr Amount Difference + */ + public BigDecimal getAmtRevalDrDiff () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtRevalDrDiff); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Source Balance. + @param AmtSourceBalance + Source Balance Amount + */ + public void setAmtSourceBalance (BigDecimal AmtSourceBalance) + { + if (AmtSourceBalance == null) + throw new IllegalArgumentException ("AmtSourceBalance is mandatory."); + set_Value (COLUMNNAME_AmtSourceBalance, AmtSourceBalance); + } + + /** Get Source Balance. + @return Source Balance Amount + */ + public BigDecimal getAmtSourceBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceBalance); + if (bd == null) + return Env.ZERO; + return bd; + } /** C_ConversionTypeReval_ID AD_Reference_ID=352 */ public static final int C_CONVERSIONTYPEREVAL_ID_AD_Reference_ID=352; -/** Set Revaluation Conversion Type. -@param C_ConversionTypeReval_ID Revaluation Currency Conversion Type */ -public void setC_ConversionTypeReval_ID (int C_ConversionTypeReval_ID) -{ -if (C_ConversionTypeReval_ID < 1) throw new IllegalArgumentException ("C_ConversionTypeReval_ID is mandatory."); -set_Value ("C_ConversionTypeReval_ID", Integer.valueOf(C_ConversionTypeReval_ID)); -} -/** Get Revaluation Conversion Type. -@return Revaluation Currency Conversion Type */ -public int getC_ConversionTypeReval_ID() -{ -Integer ii = (Integer)get_Value("C_ConversionTypeReval_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ConversionTypeReval_ID */ -public static final String COLUMNNAME_C_ConversionTypeReval_ID = "C_ConversionTypeReval_ID"; + /** Set Revaluation Conversion Type. + @param C_ConversionTypeReval_ID + Revaluation Currency Conversion Type + */ + public void setC_ConversionTypeReval_ID (int C_ConversionTypeReval_ID) + { + if (C_ConversionTypeReval_ID < 1) + throw new IllegalArgumentException ("C_ConversionTypeReval_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionTypeReval_ID, Integer.valueOf(C_ConversionTypeReval_ID)); + } + + /** Get Revaluation Conversion Type. + @return Revaluation Currency Conversion Type + */ + public int getC_ConversionTypeReval_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionTypeReval_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** C_DocTypeReval_ID AD_Reference_ID=170 */ public static final int C_DOCTYPEREVAL_ID_AD_Reference_ID=170; -/** Set Revaluation Document Type. -@param C_DocTypeReval_ID Document Type for Revaluation Journal */ -public void setC_DocTypeReval_ID (int C_DocTypeReval_ID) -{ -if (C_DocTypeReval_ID <= 0) set_Value ("C_DocTypeReval_ID", null); - else -set_Value ("C_DocTypeReval_ID", Integer.valueOf(C_DocTypeReval_ID)); -} -/** Get Revaluation Document Type. -@return Document Type for Revaluation Journal */ -public int getC_DocTypeReval_ID() -{ -Integer ii = (Integer)get_Value("C_DocTypeReval_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocTypeReval_ID */ -public static final String COLUMNNAME_C_DocTypeReval_ID = "C_DocTypeReval_ID"; -/** Set Invoice. -@param C_Invoice_ID Invoice Identifier */ -public void setC_Invoice_ID (int C_Invoice_ID) -{ -if (C_Invoice_ID < 1) throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); -set_Value ("C_Invoice_ID", Integer.valueOf(C_Invoice_ID)); -} -/** Get Invoice. -@return Invoice Identifier */ -public int getC_Invoice_ID() -{ -Integer ii = (Integer)get_Value("C_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Invoice_ID */ -public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; -/** Set Revaluation Date. -@param DateReval Date of Revaluation */ -public void setDateReval (Timestamp DateReval) -{ -if (DateReval == null) throw new IllegalArgumentException ("DateReval is mandatory."); -set_Value ("DateReval", DateReval); -} -/** Get Revaluation Date. -@return Date of Revaluation */ -public Timestamp getDateReval() -{ -return (Timestamp)get_Value("DateReval"); -} -/** Column name DateReval */ -public static final String COLUMNNAME_DateReval = "DateReval"; -/** Set Accounting Fact. -@param Fact_Acct_ID Accounting Fact */ -public void setFact_Acct_ID (int Fact_Acct_ID) -{ -if (Fact_Acct_ID < 1) throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); -set_ValueNoCheck ("Fact_Acct_ID", Integer.valueOf(Fact_Acct_ID)); -} -/** Get Accounting Fact. -@return Accounting Fact */ -public int getFact_Acct_ID() -{ -Integer ii = (Integer)get_Value("Fact_Acct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Fact_Acct_ID */ -public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; -/** Set Grand Total. -@param GrandTotal Total amount of document */ -public void setGrandTotal (BigDecimal GrandTotal) -{ -if (GrandTotal == null) throw new IllegalArgumentException ("GrandTotal is mandatory."); -set_Value ("GrandTotal", GrandTotal); -} -/** Get Grand Total. -@return Total amount of document */ -public BigDecimal getGrandTotal() -{ -BigDecimal bd = (BigDecimal)get_Value("GrandTotal"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name GrandTotal */ -public static final String COLUMNNAME_GrandTotal = "GrandTotal"; -/** Set Include All Currencies. -@param IsAllCurrencies Report not just foreign currency Invoices */ -public void setIsAllCurrencies (boolean IsAllCurrencies) -{ -set_Value ("IsAllCurrencies", Boolean.valueOf(IsAllCurrencies)); -} -/** Get Include All Currencies. -@return Report not just foreign currency Invoices */ -public boolean isAllCurrencies() -{ -Object oo = get_Value("IsAllCurrencies"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsAllCurrencies */ -public static final String COLUMNNAME_IsAllCurrencies = "IsAllCurrencies"; -/** Set Open Amount. -@param OpenAmt Open item amount */ -public void setOpenAmt (BigDecimal OpenAmt) -{ -if (OpenAmt == null) throw new IllegalArgumentException ("OpenAmt is mandatory."); -set_Value ("OpenAmt", OpenAmt); -} -/** Get Open Amount. -@return Open item amount */ -public BigDecimal getOpenAmt() -{ -BigDecimal bd = (BigDecimal)get_Value("OpenAmt"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name OpenAmt */ -public static final String COLUMNNAME_OpenAmt = "OpenAmt"; -/** Set Percent. -@param Percent Percentage */ -public void setPercent (BigDecimal Percent) -{ -set_Value ("Percent", Percent); -} -/** Get Percent. -@return Percentage */ -public BigDecimal getPercent() -{ -BigDecimal bd = (BigDecimal)get_Value("Percent"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Percent */ -public static final String COLUMNNAME_Percent = "Percent"; -} + /** Set Revaluation Document Type. + @param C_DocTypeReval_ID + Document Type for Revaluation Journal + */ + public void setC_DocTypeReval_ID (int C_DocTypeReval_ID) + { + if (C_DocTypeReval_ID <= 0) set_Value (COLUMNNAME_C_DocTypeReval_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeReval_ID, Integer.valueOf(C_DocTypeReval_ID)); + } + + /** Get Revaluation Document Type. + @return Document Type for Revaluation Journal + */ + public int getC_DocTypeReval_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeReval_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Revaluation Date. + @param DateReval + Date of Revaluation + */ + public void setDateReval (Timestamp DateReval) + { + if (DateReval == null) + throw new IllegalArgumentException ("DateReval is mandatory."); + set_Value (COLUMNNAME_DateReval, DateReval); + } + + /** Get Revaluation Date. + @return Date of Revaluation + */ + public Timestamp getDateReval () + { + return (Timestamp)get_Value(COLUMNNAME_DateReval); + } + + /** Set Accounting Fact. + @param Fact_Acct_ID Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID) + { + if (Fact_Acct_ID < 1) + throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + } + + /** Get Accounting Fact. +@return Accounting Fact */ + public int getFact_Acct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Grand Total. + @param GrandTotal + Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal) + { + if (GrandTotal == null) + throw new IllegalArgumentException ("GrandTotal is mandatory."); + set_Value (COLUMNNAME_GrandTotal, GrandTotal); + } + + /** Get Grand Total. + @return Total amount of document + */ + public BigDecimal getGrandTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Include All Currencies. + @param IsAllCurrencies + Report not just foreign currency Invoices + */ + public void setIsAllCurrencies (boolean IsAllCurrencies) + { + set_Value (COLUMNNAME_IsAllCurrencies, Boolean.valueOf(IsAllCurrencies)); + } + + /** Get Include All Currencies. + @return Report not just foreign currency Invoices + */ + public boolean isAllCurrencies () + { + Object oo = get_Value(COLUMNNAME_IsAllCurrencies); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Open Amount. + @param OpenAmt + Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt) + { + if (OpenAmt == null) + throw new IllegalArgumentException ("OpenAmt is mandatory."); + set_Value (COLUMNNAME_OpenAmt, OpenAmt); + } + + /** Get Open Amount. + @return Open item amount + */ + public BigDecimal getOpenAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Percent. + @param Percent + Percentage + */ + public void setPercent (BigDecimal Percent) + { + set_Value (COLUMNNAME_Percent, Percent); + } + + /** Get Percent. + @return Percentage + */ + public BigDecimal getPercent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Percent); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_Replenish.java b/base/src/org/compiere/model/X_T_Replenish.java index 20fa656667..bcfd09b9d1 100644 --- a/base/src/org/compiere/model/X_T_Replenish.java +++ b/base/src/org/compiere/model/X_T_Replenish.java @@ -1,394 +1,477 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_Replenish - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_Replenish extends PO + +/** Generated Model for T_Replenish + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent { -/** Standard Constructor -@param ctx context -@param T_Replenish_ID id -@param trxName transaction -*/ -public X_T_Replenish (Properties ctx, int T_Replenish_ID, String trxName) -{ -super (ctx, T_Replenish_ID, trxName); -/** if (T_Replenish_ID == 0) -{ -setAD_PInstance_ID (0); -setC_BPartner_ID (0); -setLevel_Max (Env.ZERO); -setLevel_Min (Env.ZERO); -setM_Product_ID (0); -setM_Warehouse_ID (0); -setReplenishType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_Replenish (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_Replenish */ -public static final String Table_Name="T_Replenish"; - -/** AD_Table_ID=364 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_Replenish[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Document Type. -@param C_DocType_ID Document type or rules */ -public void setC_DocType_ID (int C_DocType_ID) -{ -if (C_DocType_ID <= 0) set_Value ("C_DocType_ID", null); - else -set_Value ("C_DocType_ID", Integer.valueOf(C_DocType_ID)); -} -/** Get Document Type. -@return Document type or rules */ -public int getC_DocType_ID() -{ -Integer ii = (Integer)get_Value("C_DocType_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_DocType_ID */ -public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; -/** Set Maximum Level. -@param Level_Max Maximum Inventory level for this product */ -public void setLevel_Max (BigDecimal Level_Max) -{ -if (Level_Max == null) throw new IllegalArgumentException ("Level_Max is mandatory."); -set_Value ("Level_Max", Level_Max); -} -/** Get Maximum Level. -@return Maximum Inventory level for this product */ -public BigDecimal getLevel_Max() -{ -BigDecimal bd = (BigDecimal)get_Value("Level_Max"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Level_Max */ -public static final String COLUMNNAME_Level_Max = "Level_Max"; -/** Set Minimum Level. -@param Level_Min Minimum Inventory level for this product */ -public void setLevel_Min (BigDecimal Level_Min) -{ -if (Level_Min == null) throw new IllegalArgumentException ("Level_Min is mandatory."); -set_Value ("Level_Min", Level_Min); -} -/** Get Minimum Level. -@return Minimum Inventory level for this product */ -public BigDecimal getLevel_Min() -{ -BigDecimal bd = (BigDecimal)get_Value("Level_Min"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Level_Min */ -public static final String COLUMNNAME_Level_Min = "Level_Min"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_ValueNoCheck ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_Replenish (Properties ctx, int T_Replenish_ID, String trxName) + { + super (ctx, T_Replenish_ID, trxName); + /** if (T_Replenish_ID == 0) { setAD_PInstance_ID (0); + setC_BPartner_ID (0); + setLevel_Max (Env.ZERO); + setLevel_Min (Env.ZERO); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setReplenishType (null); +} */ + } + + /** Load Constructor */ + public X_T_Replenish (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_Replenish[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getI_C_DocType() throws Exception + { + 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 e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID <= 0) set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Maximum Level. + @param Level_Max + Maximum Inventory level for this product + */ + public void setLevel_Max (BigDecimal Level_Max) + { + if (Level_Max == null) + throw new IllegalArgumentException ("Level_Max is mandatory."); + set_Value (COLUMNNAME_Level_Max, Level_Max); + } + + /** Get Maximum Level. + @return Maximum Inventory level for this product + */ + public BigDecimal getLevel_Max () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Level_Max); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Minimum Level. + @param Level_Min + Minimum Inventory level for this product + */ + public void setLevel_Min (BigDecimal Level_Min) + { + if (Level_Min == null) + throw new IllegalArgumentException ("Level_Min is mandatory."); + set_Value (COLUMNNAME_Level_Min, Level_Min); + } + + /** Get Minimum Level. + @return Minimum Inventory level for this product + */ + public BigDecimal getLevel_Min () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Level_Min); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** M_WarehouseSource_ID AD_Reference_ID=197 */ public static final int M_WAREHOUSESOURCE_ID_AD_Reference_ID=197; -/** Set Source Warehouse. -@param M_WarehouseSource_ID Optional Warehouse to replenish from */ -public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) -{ -if (M_WarehouseSource_ID <= 0) set_Value ("M_WarehouseSource_ID", null); - else -set_Value ("M_WarehouseSource_ID", Integer.valueOf(M_WarehouseSource_ID)); -} -/** Get Source Warehouse. -@return Optional Warehouse to replenish from */ -public int getM_WarehouseSource_ID() -{ -Integer ii = (Integer)get_Value("M_WarehouseSource_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_WarehouseSource_ID */ -public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_ValueNoCheck ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Minimum Order Qty. -@param Order_Min Minimum order quantity in UOM */ -public void setOrder_Min (BigDecimal Order_Min) -{ -set_Value ("Order_Min", Order_Min); -} -/** Get Minimum Order Qty. -@return Minimum order quantity in UOM */ -public BigDecimal getOrder_Min() -{ -BigDecimal bd = (BigDecimal)get_Value("Order_Min"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Order_Min */ -public static final String COLUMNNAME_Order_Min = "Order_Min"; -/** Set Order Pack Qty. -@param Order_Pack Package order size in UOM (e.g. order set of 5 units) */ -public void setOrder_Pack (BigDecimal Order_Pack) -{ -set_Value ("Order_Pack", Order_Pack); -} -/** Get Order Pack Qty. -@return Package order size in UOM (e.g. order set of 5 units) */ -public BigDecimal getOrder_Pack() -{ -BigDecimal bd = (BigDecimal)get_Value("Order_Pack"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Order_Pack */ -public static final String COLUMNNAME_Order_Pack = "Order_Pack"; -/** Set On Hand Quantity. -@param QtyOnHand On Hand Quantity */ -public void setQtyOnHand (BigDecimal QtyOnHand) -{ -set_Value ("QtyOnHand", QtyOnHand); -} -/** Get On Hand Quantity. -@return On Hand Quantity */ -public BigDecimal getQtyOnHand() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOnHand"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOnHand */ -public static final String COLUMNNAME_QtyOnHand = "QtyOnHand"; -/** Set Ordered Quantity. -@param QtyOrdered Ordered Quantity */ -public void setQtyOrdered (BigDecimal QtyOrdered) -{ -set_Value ("QtyOrdered", QtyOrdered); -} -/** Get Ordered Quantity. -@return Ordered Quantity */ -public BigDecimal getQtyOrdered() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyOrdered"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyOrdered */ -public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; -/** Set Reserved Quantity. -@param QtyReserved Reserved Quantity */ -public void setQtyReserved (BigDecimal QtyReserved) -{ -set_Value ("QtyReserved", QtyReserved); -} -/** Get Reserved Quantity. -@return Reserved Quantity */ -public BigDecimal getQtyReserved() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyReserved"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyReserved */ -public static final String COLUMNNAME_QtyReserved = "QtyReserved"; -/** Set Quantity to Order. -@param QtyToOrder Quantity to Order */ -public void setQtyToOrder (BigDecimal QtyToOrder) -{ -set_Value ("QtyToOrder", QtyToOrder); -} -/** Get Quantity to Order. -@return Quantity to Order */ -public BigDecimal getQtyToOrder() -{ -BigDecimal bd = (BigDecimal)get_Value("QtyToOrder"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name QtyToOrder */ -public static final String COLUMNNAME_QtyToOrder = "QtyToOrder"; + /** Set Source Warehouse. + @param M_WarehouseSource_ID + Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) + { + if (M_WarehouseSource_ID <= 0) set_Value (COLUMNNAME_M_WarehouseSource_ID, null); + else + set_Value (COLUMNNAME_M_WarehouseSource_ID, Integer.valueOf(M_WarehouseSource_ID)); + } + + /** Get Source Warehouse. + @return Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_WarehouseSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Minimum Order Qty. + @param Order_Min + Minimum order quantity in UOM + */ + public void setOrder_Min (BigDecimal Order_Min) + { + set_Value (COLUMNNAME_Order_Min, Order_Min); + } + + /** Get Minimum Order Qty. + @return Minimum order quantity in UOM + */ + public BigDecimal getOrder_Min () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Order_Min); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Order Pack Qty. + @param Order_Pack + Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (BigDecimal Order_Pack) + { + set_Value (COLUMNNAME_Order_Pack, Order_Pack); + } + + /** Get Order Pack Qty. + @return Package order size in UOM (e.g. order set of 5 units) + */ + public BigDecimal getOrder_Pack () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Order_Pack); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set On Hand Quantity. + @param QtyOnHand + On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand) + { + set_Value (COLUMNNAME_QtyOnHand, QtyOnHand); + } + + /** Get On Hand Quantity. + @return On Hand Quantity + */ + public BigDecimal getQtyOnHand () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOnHand); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reserved Quantity. + @param QtyReserved + Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved) + { + set_Value (COLUMNNAME_QtyReserved, QtyReserved); + } + + /** Get Reserved Quantity. + @return Reserved Quantity + */ + public BigDecimal getQtyReserved () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity to Order. + @param QtyToOrder Quantity to Order */ + public void setQtyToOrder (BigDecimal QtyToOrder) + { + set_Value (COLUMNNAME_QtyToOrder, QtyToOrder); + } + + /** Get Quantity to Order. +@return Quantity to Order */ + public BigDecimal getQtyToOrder () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyToOrder); + if (bd == null) + return Env.ZERO; + return bd; + } /** ReplenishType AD_Reference_ID=164 */ -public static final int REPLENISHTYPE_AD_Reference_ID=164; -/** Manual = 0 */ -public static final String REPLENISHTYPE_Manual = "0"; -/** Reorder below Minimum Level = 1 */ -public static final String REPLENISHTYPE_ReorderBelowMinimumLevel = "1"; -/** Maintain Maximum Level = 2 */ -public static final String REPLENISHTYPE_MaintainMaximumLevel = "2"; -/** Custom = 9 */ +public static final int REPLENISHTYPE_AD_Reference_ID=164;/** Manual = 0 */ +public static final String REPLENISHTYPE_Manual = "0";/** Reorder below Minimum Level = 1 */ +public static final String REPLENISHTYPE_ReorderBelowMinimumLevel = "1";/** Maintain Maximum Level = 2 */ +public static final String REPLENISHTYPE_MaintainMaximumLevel = "2";/** Custom = 9 */ public static final String REPLENISHTYPE_Custom = "9"; -/** Set Replenish Type. -@param ReplenishType Method for re-ordering a product */ -public void setReplenishType (String ReplenishType) -{ -if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory"); -if (ReplenishType.equals("0") || ReplenishType.equals("1") || ReplenishType.equals("2") || ReplenishType.equals("9")); - else throw new IllegalArgumentException ("ReplenishType Invalid value - " + ReplenishType + " - Reference_ID=164 - 0 - 1 - 2 - 9"); -if (ReplenishType.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ReplenishType = ReplenishType.substring(0,0); -} -set_Value ("ReplenishType", ReplenishType); -} -/** Get Replenish Type. -@return Method for re-ordering a product */ -public String getReplenishType() -{ -return (String)get_Value("ReplenishType"); -} -/** Column name ReplenishType */ -public static final String COLUMNNAME_ReplenishType = "ReplenishType"; + /** Set Replenish Type. + @param ReplenishType + Method for re-ordering a product + */ + public void setReplenishType (String ReplenishType) + { +if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory");if (ReplenishType.equals("0") || ReplenishType.equals("1") || ReplenishType.equals("2") || ReplenishType.equals("9")); else throw new IllegalArgumentException ("ReplenishType Invalid value - " + ReplenishType + " - Reference_ID=164 - 0 - 1 - 2 - 9"); if (ReplenishType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplenishType = ReplenishType.substring(0, 0); + } + set_Value (COLUMNNAME_ReplenishType, ReplenishType); + } + + /** Get Replenish Type. + @return Method for re-ordering a product + */ + public String getReplenishType () + { + return (String)get_Value(COLUMNNAME_ReplenishType); + } /** ReplenishmentCreate AD_Reference_ID=329 */ -public static final int REPLENISHMENTCREATE_AD_Reference_ID=329; -/** Inventory Move = MMM */ -public static final String REPLENISHMENTCREATE_InventoryMove = "MMM"; -/** Purchase Order = POO */ -public static final String REPLENISHMENTCREATE_PurchaseOrder = "POO"; -/** Requisition = POR */ +public static final int REPLENISHMENTCREATE_AD_Reference_ID=329;/** Inventory Move = MMM */ +public static final String REPLENISHMENTCREATE_InventoryMove = "MMM";/** Purchase Order = POO */ +public static final String REPLENISHMENTCREATE_PurchaseOrder = "POO";/** Requisition = POR */ public static final String REPLENISHMENTCREATE_Requisition = "POR"; -/** Set Create. -@param ReplenishmentCreate Create from Replenishment */ -public void setReplenishmentCreate (String ReplenishmentCreate) -{ -if (ReplenishmentCreate == null || ReplenishmentCreate.equals("MMM") || ReplenishmentCreate.equals("POO") || ReplenishmentCreate.equals("POR")); - else throw new IllegalArgumentException ("ReplenishmentCreate Invalid value - " + ReplenishmentCreate + " - Reference_ID=329 - MMM - POO - POR"); -if (ReplenishmentCreate != null && ReplenishmentCreate.length() > 1) -{ -log.warning("Length > 1 - truncated"); -ReplenishmentCreate = ReplenishmentCreate.substring(0,0); -} -set_Value ("ReplenishmentCreate", ReplenishmentCreate); -} -/** Get Create. -@return Create from Replenishment */ -public String getReplenishmentCreate() -{ -return (String)get_Value("ReplenishmentCreate"); -} -/** Column name ReplenishmentCreate */ -public static final String COLUMNNAME_ReplenishmentCreate = "ReplenishmentCreate"; -} + /** Set Create. + @param ReplenishmentCreate + Create from Replenishment + */ + public void setReplenishmentCreate (String ReplenishmentCreate) + { +if (ReplenishmentCreate == null || ReplenishmentCreate.equals("MMM") || ReplenishmentCreate.equals("POO") || ReplenishmentCreate.equals("POR")); else throw new IllegalArgumentException ("ReplenishmentCreate Invalid value - " + ReplenishmentCreate + " - Reference_ID=329 - MMM - POO - POR"); if (ReplenishmentCreate != null && ReplenishmentCreate.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplenishmentCreate = ReplenishmentCreate.substring(0, 0); + } + set_Value (COLUMNNAME_ReplenishmentCreate, ReplenishmentCreate); + } + + /** Get Create. + @return Create from Replenishment + */ + public String getReplenishmentCreate () + { + return (String)get_Value(COLUMNNAME_ReplenishmentCreate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_Report.java b/base/src/org/compiere/model/X_T_Report.java index 91f265f156..e6816b4553 100644 --- a/base/src/org/compiere/model/X_T_Report.java +++ b/base/src/org/compiere/model/X_T_Report.java @@ -1,573 +1,636 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_Report - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_Report extends PO -{ -/** Standard Constructor -@param ctx context -@param T_Report_ID id -@param trxName transaction -*/ -public X_T_Report (Properties ctx, int T_Report_ID, String trxName) -{ -super (ctx, T_Report_ID, trxName); -/** if (T_Report_ID == 0) -{ -setAD_PInstance_ID (0); -setFact_Acct_ID (0); -setPA_ReportLine_ID (0); -setRecord_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_Report (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_Report */ -public static final String Table_Name="T_Report"; - -/** AD_Table_ID=544 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_Report[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Col_0. -@param Col_0 Col_0 */ -public void setCol_0 (BigDecimal Col_0) -{ -set_ValueNoCheck ("Col_0", Col_0); -} -/** Get Col_0. -@return Col_0 */ -public BigDecimal getCol_0() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_0"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_0 */ -public static final String COLUMNNAME_Col_0 = "Col_0"; -/** Set Col_1. -@param Col_1 Col_1 */ -public void setCol_1 (BigDecimal Col_1) -{ -set_ValueNoCheck ("Col_1", Col_1); -} -/** Get Col_1. -@return Col_1 */ -public BigDecimal getCol_1() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_1"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_1 */ -public static final String COLUMNNAME_Col_1 = "Col_1"; -/** Set Col_10. -@param Col_10 Col_10 */ -public void setCol_10 (BigDecimal Col_10) -{ -set_ValueNoCheck ("Col_10", Col_10); -} -/** Get Col_10. -@return Col_10 */ -public BigDecimal getCol_10() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_10"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_10 */ -public static final String COLUMNNAME_Col_10 = "Col_10"; -/** Set Col_11. -@param Col_11 Col_11 */ -public void setCol_11 (BigDecimal Col_11) -{ -set_ValueNoCheck ("Col_11", Col_11); -} -/** Get Col_11. -@return Col_11 */ -public BigDecimal getCol_11() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_11"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_11 */ -public static final String COLUMNNAME_Col_11 = "Col_11"; -/** Set Col_12. -@param Col_12 Col_12 */ -public void setCol_12 (BigDecimal Col_12) -{ -set_ValueNoCheck ("Col_12", Col_12); -} -/** Get Col_12. -@return Col_12 */ -public BigDecimal getCol_12() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_12"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_12 */ -public static final String COLUMNNAME_Col_12 = "Col_12"; -/** Set Col_13. -@param Col_13 Col_13 */ -public void setCol_13 (BigDecimal Col_13) -{ -set_ValueNoCheck ("Col_13", Col_13); -} -/** Get Col_13. -@return Col_13 */ -public BigDecimal getCol_13() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_13"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_13 */ -public static final String COLUMNNAME_Col_13 = "Col_13"; -/** Set Col_14. -@param Col_14 Col_14 */ -public void setCol_14 (BigDecimal Col_14) -{ -set_ValueNoCheck ("Col_14", Col_14); -} -/** Get Col_14. -@return Col_14 */ -public BigDecimal getCol_14() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_14"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_14 */ -public static final String COLUMNNAME_Col_14 = "Col_14"; -/** Set Col_15. -@param Col_15 Col_15 */ -public void setCol_15 (BigDecimal Col_15) -{ -set_ValueNoCheck ("Col_15", Col_15); -} -/** Get Col_15. -@return Col_15 */ -public BigDecimal getCol_15() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_15"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_15 */ -public static final String COLUMNNAME_Col_15 = "Col_15"; -/** Set Col_16. -@param Col_16 Col_16 */ -public void setCol_16 (BigDecimal Col_16) -{ -set_ValueNoCheck ("Col_16", Col_16); -} -/** Get Col_16. -@return Col_16 */ -public BigDecimal getCol_16() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_16"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_16 */ -public static final String COLUMNNAME_Col_16 = "Col_16"; -/** Set Col_17. -@param Col_17 Col_17 */ -public void setCol_17 (BigDecimal Col_17) -{ -set_ValueNoCheck ("Col_17", Col_17); -} -/** Get Col_17. -@return Col_17 */ -public BigDecimal getCol_17() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_17"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_17 */ -public static final String COLUMNNAME_Col_17 = "Col_17"; -/** Set Col_18. -@param Col_18 Col_18 */ -public void setCol_18 (BigDecimal Col_18) -{ -set_ValueNoCheck ("Col_18", Col_18); -} -/** Get Col_18. -@return Col_18 */ -public BigDecimal getCol_18() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_18"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_18 */ -public static final String COLUMNNAME_Col_18 = "Col_18"; -/** Set Col_19. -@param Col_19 Col_19 */ -public void setCol_19 (BigDecimal Col_19) -{ -set_ValueNoCheck ("Col_19", Col_19); -} -/** Get Col_19. -@return Col_19 */ -public BigDecimal getCol_19() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_19"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_19 */ -public static final String COLUMNNAME_Col_19 = "Col_19"; -/** Set Col_2. -@param Col_2 Col_2 */ -public void setCol_2 (BigDecimal Col_2) -{ -set_ValueNoCheck ("Col_2", Col_2); -} -/** Get Col_2. -@return Col_2 */ -public BigDecimal getCol_2() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_2"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_2 */ -public static final String COLUMNNAME_Col_2 = "Col_2"; -/** Set Col_20. -@param Col_20 Col_20 */ -public void setCol_20 (BigDecimal Col_20) -{ -set_ValueNoCheck ("Col_20", Col_20); -} -/** Get Col_20. -@return Col_20 */ -public BigDecimal getCol_20() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_20"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_20 */ -public static final String COLUMNNAME_Col_20 = "Col_20"; -/** Set Col_3. -@param Col_3 Col_3 */ -public void setCol_3 (BigDecimal Col_3) -{ -set_ValueNoCheck ("Col_3", Col_3); -} -/** Get Col_3. -@return Col_3 */ -public BigDecimal getCol_3() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_3"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_3 */ -public static final String COLUMNNAME_Col_3 = "Col_3"; -/** Set Col_4. -@param Col_4 Col_4 */ -public void setCol_4 (BigDecimal Col_4) -{ -set_ValueNoCheck ("Col_4", Col_4); -} -/** Get Col_4. -@return Col_4 */ -public BigDecimal getCol_4() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_4"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_4 */ -public static final String COLUMNNAME_Col_4 = "Col_4"; -/** Set Col_5. -@param Col_5 Col_5 */ -public void setCol_5 (BigDecimal Col_5) -{ -set_ValueNoCheck ("Col_5", Col_5); -} -/** Get Col_5. -@return Col_5 */ -public BigDecimal getCol_5() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_5"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_5 */ -public static final String COLUMNNAME_Col_5 = "Col_5"; -/** Set Col_6. -@param Col_6 Col_6 */ -public void setCol_6 (BigDecimal Col_6) -{ -set_ValueNoCheck ("Col_6", Col_6); -} -/** Get Col_6. -@return Col_6 */ -public BigDecimal getCol_6() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_6"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_6 */ -public static final String COLUMNNAME_Col_6 = "Col_6"; -/** Set Col_7. -@param Col_7 Col_7 */ -public void setCol_7 (BigDecimal Col_7) -{ -set_ValueNoCheck ("Col_7", Col_7); -} -/** Get Col_7. -@return Col_7 */ -public BigDecimal getCol_7() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_7"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_7 */ -public static final String COLUMNNAME_Col_7 = "Col_7"; -/** Set Col_8. -@param Col_8 Col_8 */ -public void setCol_8 (BigDecimal Col_8) -{ -set_ValueNoCheck ("Col_8", Col_8); -} -/** Get Col_8. -@return Col_8 */ -public BigDecimal getCol_8() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_8"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_8 */ -public static final String COLUMNNAME_Col_8 = "Col_8"; -/** Set Col_9. -@param Col_9 Col_9 */ -public void setCol_9 (BigDecimal Col_9) -{ -set_ValueNoCheck ("Col_9", Col_9); -} -/** Get Col_9. -@return Col_9 */ -public BigDecimal getCol_9() -{ -BigDecimal bd = (BigDecimal)get_Value("Col_9"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Col_9 */ -public static final String COLUMNNAME_Col_9 = "Col_9"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_ValueNoCheck ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Accounting Fact. -@param Fact_Acct_ID Accounting Fact */ -public void setFact_Acct_ID (int Fact_Acct_ID) -{ -if (Fact_Acct_ID < 1) throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); -set_ValueNoCheck ("Fact_Acct_ID", Integer.valueOf(Fact_Acct_ID)); -} -/** Get Accounting Fact. -@return Accounting Fact */ -public int getFact_Acct_ID() -{ -Integer ii = (Integer)get_Value("Fact_Acct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Fact_Acct_ID */ -public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; -/** Set Level no. -@param LevelNo Level no */ -public void setLevelNo (int LevelNo) -{ -set_ValueNoCheck ("LevelNo", Integer.valueOf(LevelNo)); -} -/** Get Level no. -@return Level no */ -public int getLevelNo() -{ -Integer ii = (Integer)get_Value("LevelNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LevelNo */ -public static final String COLUMNNAME_LevelNo = "LevelNo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_ValueNoCheck ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Report Line. -@param PA_ReportLine_ID Report Line */ -public void setPA_ReportLine_ID (int PA_ReportLine_ID) -{ -if (PA_ReportLine_ID < 1) throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); -set_ValueNoCheck ("PA_ReportLine_ID", Integer.valueOf(PA_ReportLine_ID)); -} -/** Get Report Line. -@return Report Line */ -public int getPA_ReportLine_ID() -{ -Integer ii = (Integer)get_Value("PA_ReportLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name PA_ReportLine_ID */ -public static final String COLUMNNAME_PA_ReportLine_ID = "PA_ReportLine_ID"; -/** Set Record ID. -@param Record_ID Direct internal record ID */ -public void setRecord_ID (int Record_ID) -{ -if (Record_ID < 0) throw new IllegalArgumentException ("Record_ID is mandatory."); -set_ValueNoCheck ("Record_ID", Integer.valueOf(Record_ID)); -} -/** Get Record ID. -@return Direct internal record ID */ -public int getRecord_ID() -{ -Integer ii = (Integer)get_Value("Record_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Record_ID */ -public static final String COLUMNNAME_Record_ID = "Record_ID"; -/** Set Sequence. -@param SeqNo Method of ordering records; - lowest number comes first */ -public void setSeqNo (int SeqNo) -{ -set_ValueNoCheck ("SeqNo", Integer.valueOf(SeqNo)); -} -/** Get Sequence. -@return Method of ordering records; - lowest number comes first */ -public int getSeqNo() -{ -Integer ii = (Integer)get_Value("SeqNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SeqNo */ -public static final String COLUMNNAME_SeqNo = "SeqNo"; -} + +/** Generated Model for T_Report + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_Report extends PO implements I_T_Report, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_Report (Properties ctx, int T_Report_ID, String trxName) + { + super (ctx, T_Report_ID, trxName); + /** if (T_Report_ID == 0) { setAD_PInstance_ID (0); + setFact_Acct_ID (0); + setPA_ReportLine_ID (0); + setRecord_ID (0); +} */ + } + + /** Load Constructor */ + public X_T_Report (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_Report[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Col_0. + @param Col_0 Col_0 */ + public void setCol_0 (BigDecimal Col_0) + { + set_ValueNoCheck (COLUMNNAME_Col_0, Col_0); + } + + /** Get Col_0. +@return Col_0 */ + public BigDecimal getCol_0 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_0); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_1. + @param Col_1 Col_1 */ + public void setCol_1 (BigDecimal Col_1) + { + set_ValueNoCheck (COLUMNNAME_Col_1, Col_1); + } + + /** Get Col_1. +@return Col_1 */ + public BigDecimal getCol_1 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_1); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_10. + @param Col_10 Col_10 */ + public void setCol_10 (BigDecimal Col_10) + { + set_ValueNoCheck (COLUMNNAME_Col_10, Col_10); + } + + /** Get Col_10. +@return Col_10 */ + public BigDecimal getCol_10 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_10); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_11. + @param Col_11 Col_11 */ + public void setCol_11 (BigDecimal Col_11) + { + set_ValueNoCheck (COLUMNNAME_Col_11, Col_11); + } + + /** Get Col_11. +@return Col_11 */ + public BigDecimal getCol_11 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_11); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_12. + @param Col_12 Col_12 */ + public void setCol_12 (BigDecimal Col_12) + { + set_ValueNoCheck (COLUMNNAME_Col_12, Col_12); + } + + /** Get Col_12. +@return Col_12 */ + public BigDecimal getCol_12 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_12); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_13. + @param Col_13 Col_13 */ + public void setCol_13 (BigDecimal Col_13) + { + set_ValueNoCheck (COLUMNNAME_Col_13, Col_13); + } + + /** Get Col_13. +@return Col_13 */ + public BigDecimal getCol_13 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_13); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_14. + @param Col_14 Col_14 */ + public void setCol_14 (BigDecimal Col_14) + { + set_ValueNoCheck (COLUMNNAME_Col_14, Col_14); + } + + /** Get Col_14. +@return Col_14 */ + public BigDecimal getCol_14 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_14); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_15. + @param Col_15 Col_15 */ + public void setCol_15 (BigDecimal Col_15) + { + set_ValueNoCheck (COLUMNNAME_Col_15, Col_15); + } + + /** Get Col_15. +@return Col_15 */ + public BigDecimal getCol_15 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_15); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_16. + @param Col_16 Col_16 */ + public void setCol_16 (BigDecimal Col_16) + { + set_ValueNoCheck (COLUMNNAME_Col_16, Col_16); + } + + /** Get Col_16. +@return Col_16 */ + public BigDecimal getCol_16 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_16); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_17. + @param Col_17 Col_17 */ + public void setCol_17 (BigDecimal Col_17) + { + set_ValueNoCheck (COLUMNNAME_Col_17, Col_17); + } + + /** Get Col_17. +@return Col_17 */ + public BigDecimal getCol_17 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_17); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_18. + @param Col_18 Col_18 */ + public void setCol_18 (BigDecimal Col_18) + { + set_ValueNoCheck (COLUMNNAME_Col_18, Col_18); + } + + /** Get Col_18. +@return Col_18 */ + public BigDecimal getCol_18 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_18); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_19. + @param Col_19 Col_19 */ + public void setCol_19 (BigDecimal Col_19) + { + set_ValueNoCheck (COLUMNNAME_Col_19, Col_19); + } + + /** Get Col_19. +@return Col_19 */ + public BigDecimal getCol_19 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_19); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_2. + @param Col_2 Col_2 */ + public void setCol_2 (BigDecimal Col_2) + { + set_ValueNoCheck (COLUMNNAME_Col_2, Col_2); + } + + /** Get Col_2. +@return Col_2 */ + public BigDecimal getCol_2 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_2); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_20. + @param Col_20 Col_20 */ + public void setCol_20 (BigDecimal Col_20) + { + set_ValueNoCheck (COLUMNNAME_Col_20, Col_20); + } + + /** Get Col_20. +@return Col_20 */ + public BigDecimal getCol_20 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_20); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_3. + @param Col_3 Col_3 */ + public void setCol_3 (BigDecimal Col_3) + { + set_ValueNoCheck (COLUMNNAME_Col_3, Col_3); + } + + /** Get Col_3. +@return Col_3 */ + public BigDecimal getCol_3 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_3); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_4. + @param Col_4 Col_4 */ + public void setCol_4 (BigDecimal Col_4) + { + set_ValueNoCheck (COLUMNNAME_Col_4, Col_4); + } + + /** Get Col_4. +@return Col_4 */ + public BigDecimal getCol_4 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_4); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_5. + @param Col_5 Col_5 */ + public void setCol_5 (BigDecimal Col_5) + { + set_ValueNoCheck (COLUMNNAME_Col_5, Col_5); + } + + /** Get Col_5. +@return Col_5 */ + public BigDecimal getCol_5 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_5); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_6. + @param Col_6 Col_6 */ + public void setCol_6 (BigDecimal Col_6) + { + set_ValueNoCheck (COLUMNNAME_Col_6, Col_6); + } + + /** Get Col_6. +@return Col_6 */ + public BigDecimal getCol_6 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_6); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_7. + @param Col_7 Col_7 */ + public void setCol_7 (BigDecimal Col_7) + { + set_ValueNoCheck (COLUMNNAME_Col_7, Col_7); + } + + /** Get Col_7. +@return Col_7 */ + public BigDecimal getCol_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_8. + @param Col_8 Col_8 */ + public void setCol_8 (BigDecimal Col_8) + { + set_ValueNoCheck (COLUMNNAME_Col_8, Col_8); + } + + /** Get Col_8. +@return Col_8 */ + public BigDecimal getCol_8 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_8); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Col_9. + @param Col_9 Col_9 */ + public void setCol_9 (BigDecimal Col_9) + { + set_ValueNoCheck (COLUMNNAME_Col_9, Col_9); + } + + /** Get Col_9. +@return Col_9 */ + public BigDecimal getCol_9 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Col_9); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Accounting Fact. + @param Fact_Acct_ID Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID) + { + if (Fact_Acct_ID < 1) + throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + } + + /** Get Accounting Fact. +@return Accounting Fact */ + public int getFact_Acct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Level no. + @param LevelNo Level no */ + public void setLevelNo (int LevelNo) + { + set_ValueNoCheck (COLUMNNAME_LevelNo, Integer.valueOf(LevelNo)); + } + + /** Get Level no. +@return Level no */ + public int getLevelNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LevelNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + public I_PA_ReportLine getI_PA_ReportLine() throws Exception + { + 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 e; + } + return result; + } + + /** Set Report Line. + @param PA_ReportLine_ID Report Line */ + public void setPA_ReportLine_ID (int PA_ReportLine_ID) + { + if (PA_ReportLine_ID < 1) + throw new IllegalArgumentException ("PA_ReportLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_PA_ReportLine_ID, Integer.valueOf(PA_ReportLine_ID)); + } + + /** Get Report Line. +@return Report Line */ + public int getPA_ReportLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 0) + throw new IllegalArgumentException ("Record_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_ValueNoCheck (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_ReportStatement.java b/base/src/org/compiere/model/X_T_ReportStatement.java index fd39a5ca14..b41ff85d9c 100644 --- a/base/src/org/compiere/model/X_T_ReportStatement.java +++ b/base/src/org/compiere/model/X_T_ReportStatement.java @@ -1,264 +1,298 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_ReportStatement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_ReportStatement extends PO + +/** Generated Model for T_ReportStatement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_ReportStatement extends PO implements I_T_ReportStatement, I_Persistent { -/** Standard Constructor -@param ctx context -@param T_ReportStatement_ID id -@param trxName transaction -*/ -public X_T_ReportStatement (Properties ctx, int T_ReportStatement_ID, String trxName) -{ -super (ctx, T_ReportStatement_ID, trxName); -/** if (T_ReportStatement_ID == 0) -{ -setAD_PInstance_ID (0); -setDateAcct (new Timestamp(System.currentTimeMillis())); -setFact_Acct_ID (0); -setLevelNo (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_ReportStatement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_ReportStatement */ -public static final String Table_Name="T_ReportStatement"; - -/** AD_Table_ID=545 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_ReportStatement[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_ValueNoCheck ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Accounted Credit. -@param AmtAcctCr Accounted Credit Amount */ -public void setAmtAcctCr (BigDecimal AmtAcctCr) -{ -set_ValueNoCheck ("AmtAcctCr", AmtAcctCr); -} -/** Get Accounted Credit. -@return Accounted Credit Amount */ -public BigDecimal getAmtAcctCr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctCr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctCr */ -public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr"; -/** Set Accounted Debit. -@param AmtAcctDr Accounted Debit Amount */ -public void setAmtAcctDr (BigDecimal AmtAcctDr) -{ -set_ValueNoCheck ("AmtAcctDr", AmtAcctDr); -} -/** Get Accounted Debit. -@return Accounted Debit Amount */ -public BigDecimal getAmtAcctDr() -{ -BigDecimal bd = (BigDecimal)get_Value("AmtAcctDr"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name AmtAcctDr */ -public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr"; -/** Set Balance. -@param Balance Balance */ -public void setBalance (BigDecimal Balance) -{ -set_ValueNoCheck ("Balance", Balance); -} -/** Get Balance. -@return Balance */ -public BigDecimal getBalance() -{ -BigDecimal bd = (BigDecimal)get_Value("Balance"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Balance */ -public static final String COLUMNNAME_Balance = "Balance"; -/** Set Account Date. -@param DateAcct Accounting Date */ -public void setDateAcct (Timestamp DateAcct) -{ -if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory."); -set_ValueNoCheck ("DateAcct", DateAcct); -} -/** Get Account Date. -@return Accounting Date */ -public Timestamp getDateAcct() -{ -return (Timestamp)get_Value("DateAcct"); -} -/** Column name DateAcct */ -public static final String COLUMNNAME_DateAcct = "DateAcct"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_ValueNoCheck ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Accounting Fact. -@param Fact_Acct_ID Accounting Fact */ -public void setFact_Acct_ID (int Fact_Acct_ID) -{ -if (Fact_Acct_ID < 1) throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); -set_ValueNoCheck ("Fact_Acct_ID", Integer.valueOf(Fact_Acct_ID)); -} -/** Get Accounting Fact. -@return Accounting Fact */ -public int getFact_Acct_ID() -{ -Integer ii = (Integer)get_Value("Fact_Acct_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Fact_Acct_ID */ -public static final String COLUMNNAME_Fact_Acct_ID = "Fact_Acct_ID"; -/** Set Level no. -@param LevelNo Level no */ -public void setLevelNo (int LevelNo) -{ -set_ValueNoCheck ("LevelNo", Integer.valueOf(LevelNo)); -} -/** Get Level no. -@return Level no */ -public int getLevelNo() -{ -Integer ii = (Integer)get_Value("LevelNo"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name LevelNo */ -public static final String COLUMNNAME_LevelNo = "LevelNo"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name != null && Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_ValueNoCheck ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -set_ValueNoCheck ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_ReportStatement (Properties ctx, int T_ReportStatement_ID, String trxName) + { + super (ctx, T_ReportStatement_ID, trxName); + /** if (T_ReportStatement_ID == 0) { setAD_PInstance_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); + setFact_Acct_ID (0); + setLevelNo (0); +} */ + } + + /** Load Constructor */ + public X_T_ReportStatement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_ReportStatement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getI_AD_PInstance() throws Exception + { + 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 e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accounted Credit. + @param AmtAcctCr + Accounted Credit Amount + */ + public void setAmtAcctCr (BigDecimal AmtAcctCr) + { + set_ValueNoCheck (COLUMNNAME_AmtAcctCr, AmtAcctCr); + } + + /** Get Accounted Credit. + @return Accounted Credit Amount + */ + public BigDecimal getAmtAcctCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Accounted Debit. + @param AmtAcctDr + Accounted Debit Amount + */ + public void setAmtAcctDr (BigDecimal AmtAcctDr) + { + set_ValueNoCheck (COLUMNNAME_AmtAcctDr, AmtAcctDr); + } + + /** Get Accounted Debit. + @return Accounted Debit Amount + */ + public BigDecimal getAmtAcctDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Balance. + @param Balance Balance */ + public void setBalance (BigDecimal Balance) + { + set_ValueNoCheck (COLUMNNAME_Balance, Balance); + } + + /** Get Balance. +@return Balance */ + public BigDecimal getBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Balance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_ValueNoCheck (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Accounting Fact. + @param Fact_Acct_ID Accounting Fact */ + public void setFact_Acct_ID (int Fact_Acct_ID) + { + if (Fact_Acct_ID < 1) + throw new IllegalArgumentException ("Fact_Acct_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); + } + + /** Get Accounting Fact. +@return Accounting Fact */ + public int getFact_Acct_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Level no. + @param LevelNo Level no */ + public void setLevelNo (int LevelNo) + { + set_ValueNoCheck (COLUMNNAME_LevelNo, Integer.valueOf(LevelNo)); + } + + /** Get Level no. +@return Level no */ + public int getLevelNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LevelNo); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name != null && Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_ValueNoCheck (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + set_ValueNoCheck (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_Transaction.java b/base/src/org/compiere/model/X_T_Transaction.java index 360d18439b..915f2334a4 100644 --- a/base/src/org/compiere/model/X_T_Transaction.java +++ b/base/src/org/compiere/model/X_T_Transaction.java @@ -1,504 +1,556 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for T_Transaction - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_T_Transaction extends PO + +/** Generated Model for T_Transaction + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_T_Transaction extends PO implements I_T_Transaction, I_Persistent { -/** Standard Constructor -@param ctx context -@param T_Transaction_ID id -@param trxName transaction -*/ -public X_T_Transaction (Properties ctx, int T_Transaction_ID, String trxName) -{ -super (ctx, T_Transaction_ID, trxName); -/** if (T_Transaction_ID == 0) -{ -setAD_PInstance_ID (0); -setM_AttributeSetInstance_ID (0); -setM_Locator_ID (0); -setM_Product_ID (0); -setM_Transaction_ID (0); -setMovementDate (new Timestamp(System.currentTimeMillis())); -setMovementQty (Env.ZERO); -setMovementType (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_T_Transaction (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=T_Transaction */ -public static final String Table_Name="T_Transaction"; - -/** AD_Table_ID=758 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_T_Transaction[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Process Instance. -@param AD_PInstance_ID Instance of the process */ -public void setAD_PInstance_ID (int AD_PInstance_ID) -{ -if (AD_PInstance_ID < 1) throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); -set_Value ("AD_PInstance_ID", Integer.valueOf(AD_PInstance_ID)); -} -/** Get Process Instance. -@return Instance of the process */ -public int getAD_PInstance_ID() -{ -Integer ii = (Integer)get_Value("AD_PInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_PInstance_ID */ -public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; -/** Set Project Issue. -@param C_ProjectIssue_ID Project Issues (Material, Labor) */ -public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) -{ -if (C_ProjectIssue_ID <= 0) set_Value ("C_ProjectIssue_ID", null); - else -set_Value ("C_ProjectIssue_ID", Integer.valueOf(C_ProjectIssue_ID)); -} -/** Get Project Issue. -@return Project Issues (Material, Labor) */ -public int getC_ProjectIssue_ID() -{ -Integer ii = (Integer)get_Value("C_ProjectIssue_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_ProjectIssue_ID */ -public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; -/** Set Project. -@param C_Project_ID Financial Project */ -public void setC_Project_ID (int C_Project_ID) -{ -if (C_Project_ID <= 0) set_Value ("C_Project_ID", null); - else -set_Value ("C_Project_ID", Integer.valueOf(C_Project_ID)); -} -/** Get Project. -@return Financial Project */ -public int getC_Project_ID() -{ -Integer ii = (Integer)get_Value("C_Project_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Project_ID */ -public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; -/** Set Attribute Set Instance. -@param M_AttributeSetInstance_ID Product Attribute Set Instance */ -public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) -{ -if (M_AttributeSetInstance_ID < 0) throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); -set_Value ("M_AttributeSetInstance_ID", Integer.valueOf(M_AttributeSetInstance_ID)); -} -/** Get Attribute Set Instance. -@return Product Attribute Set Instance */ -public int getM_AttributeSetInstance_ID() -{ -Integer ii = (Integer)get_Value("M_AttributeSetInstance_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_AttributeSetInstance_ID */ -public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; -/** Set Shipment/Receipt Line. -@param M_InOutLine_ID Line on Shipment or Receipt document */ -public void setM_InOutLine_ID (int M_InOutLine_ID) -{ -if (M_InOutLine_ID <= 0) set_Value ("M_InOutLine_ID", null); - else -set_Value ("M_InOutLine_ID", Integer.valueOf(M_InOutLine_ID)); -} -/** Get Shipment/Receipt Line. -@return Line on Shipment or Receipt document */ -public int getM_InOutLine_ID() -{ -Integer ii = (Integer)get_Value("M_InOutLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOutLine_ID */ -public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; -/** Set Shipment/Receipt. -@param M_InOut_ID Material Shipment Document */ -public void setM_InOut_ID (int M_InOut_ID) -{ -if (M_InOut_ID <= 0) set_Value ("M_InOut_ID", null); - else -set_Value ("M_InOut_ID", Integer.valueOf(M_InOut_ID)); -} -/** Get Shipment/Receipt. -@return Material Shipment Document */ -public int getM_InOut_ID() -{ -Integer ii = (Integer)get_Value("M_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InOut_ID */ -public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; -/** Set Phys.Inventory Line. -@param M_InventoryLine_ID Unique line in an Inventory document */ -public void setM_InventoryLine_ID (int M_InventoryLine_ID) -{ -if (M_InventoryLine_ID <= 0) set_Value ("M_InventoryLine_ID", null); - else -set_Value ("M_InventoryLine_ID", Integer.valueOf(M_InventoryLine_ID)); -} -/** Get Phys.Inventory Line. -@return Unique line in an Inventory document */ -public int getM_InventoryLine_ID() -{ -Integer ii = (Integer)get_Value("M_InventoryLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_InventoryLine_ID */ -public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; -/** Set Phys.Inventory. -@param M_Inventory_ID Parameters for a Physical Inventory */ -public void setM_Inventory_ID (int M_Inventory_ID) -{ -if (M_Inventory_ID <= 0) set_Value ("M_Inventory_ID", null); - else -set_Value ("M_Inventory_ID", Integer.valueOf(M_Inventory_ID)); -} -/** Get Phys.Inventory. -@return Parameters for a Physical Inventory */ -public int getM_Inventory_ID() -{ -Integer ii = (Integer)get_Value("M_Inventory_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Inventory_ID */ -public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID < 1) throw new IllegalArgumentException ("M_Locator_ID is mandatory."); -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Move Line. -@param M_MovementLine_ID Inventory Move document Line */ -public void setM_MovementLine_ID (int M_MovementLine_ID) -{ -if (M_MovementLine_ID <= 0) set_Value ("M_MovementLine_ID", null); - else -set_Value ("M_MovementLine_ID", Integer.valueOf(M_MovementLine_ID)); -} -/** Get Move Line. -@return Inventory Move document Line */ -public int getM_MovementLine_ID() -{ -Integer ii = (Integer)get_Value("M_MovementLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_MovementLine_ID */ -public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; -/** Set Inventory Move. -@param M_Movement_ID Movement of Inventory */ -public void setM_Movement_ID (int M_Movement_ID) -{ -if (M_Movement_ID <= 0) set_Value ("M_Movement_ID", null); - else -set_Value ("M_Movement_ID", Integer.valueOf(M_Movement_ID)); -} -/** Get Inventory Move. -@return Movement of Inventory */ -public int getM_Movement_ID() -{ -Integer ii = (Integer)get_Value("M_Movement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Movement_ID */ -public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID < 1) throw new IllegalArgumentException ("M_Product_ID is mandatory."); -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Production Line. -@param M_ProductionLine_ID Document Line representing a production */ -public void setM_ProductionLine_ID (int M_ProductionLine_ID) -{ -if (M_ProductionLine_ID <= 0) set_Value ("M_ProductionLine_ID", null); - else -set_Value ("M_ProductionLine_ID", Integer.valueOf(M_ProductionLine_ID)); -} -/** Get Production Line. -@return Document Line representing a production */ -public int getM_ProductionLine_ID() -{ -Integer ii = (Integer)get_Value("M_ProductionLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_ProductionLine_ID */ -public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; -/** Set Production. -@param M_Production_ID Plan for producing a product */ -public void setM_Production_ID (int M_Production_ID) -{ -if (M_Production_ID <= 0) set_Value ("M_Production_ID", null); - else -set_Value ("M_Production_ID", Integer.valueOf(M_Production_ID)); -} -/** Get Production. -@return Plan for producing a product */ -public int getM_Production_ID() -{ -Integer ii = (Integer)get_Value("M_Production_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Production_ID */ -public static final String COLUMNNAME_M_Production_ID = "M_Production_ID"; -/** Set Inventory Transaction. -@param M_Transaction_ID Inventory Transaction */ -public void setM_Transaction_ID (int M_Transaction_ID) -{ -if (M_Transaction_ID < 1) throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); -set_Value ("M_Transaction_ID", Integer.valueOf(M_Transaction_ID)); -} -/** Get Inventory Transaction. -@return Inventory Transaction */ -public int getM_Transaction_ID() -{ -Integer ii = (Integer)get_Value("M_Transaction_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Transaction_ID */ -public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; -/** Set Movement Date. -@param MovementDate Date a product was moved in or out of inventory */ -public void setMovementDate (Timestamp MovementDate) -{ -if (MovementDate == null) throw new IllegalArgumentException ("MovementDate is mandatory."); -set_Value ("MovementDate", MovementDate); -} -/** Get Movement Date. -@return Date a product was moved in or out of inventory */ -public Timestamp getMovementDate() -{ -return (Timestamp)get_Value("MovementDate"); -} -/** Column name MovementDate */ -public static final String COLUMNNAME_MovementDate = "MovementDate"; -/** Set Movement Quantity. -@param MovementQty Quantity of a product moved. */ -public void setMovementQty (BigDecimal MovementQty) -{ -if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory."); -set_Value ("MovementQty", MovementQty); -} -/** Get Movement Quantity. -@return Quantity of a product moved. */ -public BigDecimal getMovementQty() -{ -BigDecimal bd = (BigDecimal)get_Value("MovementQty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name MovementQty */ -public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_Transaction (Properties ctx, int T_Transaction_ID, String trxName) + { + super (ctx, T_Transaction_ID, trxName); + /** if (T_Transaction_ID == 0) { setAD_PInstance_ID (0); + setM_AttributeSetInstance_ID (0); + setM_Locator_ID (0); + setM_Product_ID (0); + setM_Transaction_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); + setMovementQty (Env.ZERO); + setMovementType (null); +} */ + } + + /** Load Constructor */ + public X_T_Transaction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_T_Transaction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_Value (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID <= 0) set_Value (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_Value (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID <= 0) set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID <= 0) set_Value (COLUMNNAME_M_InOutLine_ID, null); + else + set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID <= 0) set_Value (COLUMNNAME_M_InOut_ID, null); + else + set_Value (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID <= 0) set_Value (COLUMNNAME_M_InventoryLine_ID, null); + else + set_Value (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID <= 0) set_Value (COLUMNNAME_M_Inventory_ID, null); + else + set_Value (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID <= 0) set_Value (COLUMNNAME_M_MovementLine_ID, null); + else + set_Value (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Move. + @param M_Movement_ID + Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID) + { + if (M_Movement_ID <= 0) set_Value (COLUMNNAME_M_Movement_ID, null); + else + set_Value (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + } + + /** Get Inventory Move. + @return Movement of Inventory + */ + public int getM_Movement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID <= 0) set_Value (COLUMNNAME_M_ProductionLine_ID, null); + else + set_Value (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Production. + @param M_Production_ID + Plan for producing a product + */ + public void setM_Production_ID (int M_Production_ID) + { + if (M_Production_ID <= 0) set_Value (COLUMNNAME_M_Production_ID, null); + else + set_Value (COLUMNNAME_M_Production_ID, Integer.valueOf(M_Production_ID)); + } + + /** Get Production. + @return Plan for producing a product + */ + public int getM_Production_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Production_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Transaction. + @param M_Transaction_ID Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID) + { + if (M_Transaction_ID < 1) + throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); + set_Value (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + } + + /** Get Inventory Transaction. +@return Inventory Transaction */ + public int getM_Transaction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Transaction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } /** MovementType AD_Reference_ID=189 */ -public static final int MOVEMENTTYPE_AD_Reference_ID=189; -/** Customer Returns = C+ */ -public static final String MOVEMENTTYPE_CustomerReturns = "C+"; -/** Customer Shipment = C- */ -public static final String MOVEMENTTYPE_CustomerShipment = "C-"; -/** Inventory In = I+ */ -public static final String MOVEMENTTYPE_InventoryIn = "I+"; -/** Inventory Out = I- */ -public static final String MOVEMENTTYPE_InventoryOut = "I-"; -/** Movement To = M+ */ -public static final String MOVEMENTTYPE_MovementTo = "M+"; -/** Movement From = M- */ -public static final String MOVEMENTTYPE_MovementFrom = "M-"; -/** Production + = P+ */ -public static final String MOVEMENTTYPE_ProductionPlus = "P+"; -/** Production - = P- */ -public static final String MOVEMENTTYPE_Production_ = "P-"; -/** Vendor Receipts = V+ */ -public static final String MOVEMENTTYPE_VendorReceipts = "V+"; -/** Vendor Returns = V- */ -public static final String MOVEMENTTYPE_VendorReturns = "V-"; -/** Work Order + = W+ */ -public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; -/** Work Order - = W- */ +public static final int MOVEMENTTYPE_AD_Reference_ID=189;/** Customer Returns = C+ */ +public static final String MOVEMENTTYPE_CustomerReturns = "C+";/** Customer Shipment = C- */ +public static final String MOVEMENTTYPE_CustomerShipment = "C-";/** Inventory In = I+ */ +public static final String MOVEMENTTYPE_InventoryIn = "I+";/** Inventory Out = I- */ +public static final String MOVEMENTTYPE_InventoryOut = "I-";/** Movement To = M+ */ +public static final String MOVEMENTTYPE_MovementTo = "M+";/** Movement From = M- */ +public static final String MOVEMENTTYPE_MovementFrom = "M-";/** Production + = P+ */ +public static final String MOVEMENTTYPE_ProductionPlus = "P+";/** Production - = P- */ +public static final String MOVEMENTTYPE_Production_ = "P-";/** Vendor Receipts = V+ */ +public static final String MOVEMENTTYPE_VendorReceipts = "V+";/** Vendor Returns = V- */ +public static final String MOVEMENTTYPE_VendorReturns = "V-";/** Work Order + = W+ */ +public static final String MOVEMENTTYPE_WorkOrderPlus = "W+";/** Work Order - = W- */ public static final String MOVEMENTTYPE_WorkOrder_ = "W-"; -/** Set Movement Type. -@param MovementType Method of moving the inventory */ -public void setMovementType (String MovementType) -{ -if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); -if (MovementType.equals("C+") || MovementType.equals("C-") || MovementType.equals("I+") || MovementType.equals("I-") || MovementType.equals("M+") || MovementType.equals("M-") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("W+") || MovementType.equals("W-")); - else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C+ - C- - I+ - I- - M+ - M- - P+ - P- - V+ - V- - W+ - W-"); -if (MovementType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -MovementType = MovementType.substring(0,1); -} -set_Value ("MovementType", MovementType); -} -/** Get Movement Type. -@return Method of moving the inventory */ -public String getMovementType() -{ -return (String)get_Value("MovementType"); -} -/** Column name MovementType */ -public static final String COLUMNNAME_MovementType = "MovementType"; + /** Set Movement Type. + @param MovementType + Method of moving the inventory + */ + public void setMovementType (String MovementType) + { +if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory");if (MovementType.equals("C+") || MovementType.equals("C-") || MovementType.equals("I+") || MovementType.equals("I-") || MovementType.equals("M+") || MovementType.equals("M-") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("W+") || MovementType.equals("W-")); else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C+ - C- - I+ - I- - M+ - M- - P+ - P- - V+ - V- - W+ - W-"); if (MovementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + MovementType = MovementType.substring(0, 1); + } + set_Value (COLUMNNAME_MovementType, MovementType); + } + + /** Get Movement Type. + @return Method of moving the inventory + */ + public String getMovementType () + { + return (String)get_Value(COLUMNNAME_MovementType); + } /** Search_InOut_ID AD_Reference_ID=295 */ public static final int SEARCH_INOUT_ID_AD_Reference_ID=295; -/** Set Search Shipment/Receipt. -@param Search_InOut_ID Material Shipment Document */ -public void setSearch_InOut_ID (int Search_InOut_ID) -{ -if (Search_InOut_ID <= 0) set_Value ("Search_InOut_ID", null); - else -set_Value ("Search_InOut_ID", Integer.valueOf(Search_InOut_ID)); -} -/** Get Search Shipment/Receipt. -@return Material Shipment Document */ -public int getSearch_InOut_ID() -{ -Integer ii = (Integer)get_Value("Search_InOut_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Search_InOut_ID */ -public static final String COLUMNNAME_Search_InOut_ID = "Search_InOut_ID"; + /** Set Search Shipment/Receipt. + @param Search_InOut_ID + Material Shipment Document + */ + public void setSearch_InOut_ID (int Search_InOut_ID) + { + if (Search_InOut_ID <= 0) set_Value (COLUMNNAME_Search_InOut_ID, null); + else + set_Value (COLUMNNAME_Search_InOut_ID, Integer.valueOf(Search_InOut_ID)); + } + + /** Get Search Shipment/Receipt. + @return Material Shipment Document + */ + public int getSearch_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Search_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Search_Invoice_ID AD_Reference_ID=336 */ public static final int SEARCH_INVOICE_ID_AD_Reference_ID=336; -/** Set Search Invoice. -@param Search_Invoice_ID Search Invoice Identifier */ -public void setSearch_Invoice_ID (int Search_Invoice_ID) -{ -if (Search_Invoice_ID <= 0) set_Value ("Search_Invoice_ID", null); - else -set_Value ("Search_Invoice_ID", Integer.valueOf(Search_Invoice_ID)); -} -/** Get Search Invoice. -@return Search Invoice Identifier */ -public int getSearch_Invoice_ID() -{ -Integer ii = (Integer)get_Value("Search_Invoice_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Search_Invoice_ID */ -public static final String COLUMNNAME_Search_Invoice_ID = "Search_Invoice_ID"; + /** Set Search Invoice. + @param Search_Invoice_ID + Search Invoice Identifier + */ + public void setSearch_Invoice_ID (int Search_Invoice_ID) + { + if (Search_Invoice_ID <= 0) set_Value (COLUMNNAME_Search_Invoice_ID, null); + else + set_Value (COLUMNNAME_Search_Invoice_ID, Integer.valueOf(Search_Invoice_ID)); + } + + /** Get Search Invoice. + @return Search Invoice Identifier + */ + public int getSearch_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Search_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } /** Search_Order_ID AD_Reference_ID=290 */ public static final int SEARCH_ORDER_ID_AD_Reference_ID=290; -/** Set Search Order. -@param Search_Order_ID Order Identifier */ -public void setSearch_Order_ID (int Search_Order_ID) -{ -if (Search_Order_ID <= 0) set_Value ("Search_Order_ID", null); - else -set_Value ("Search_Order_ID", Integer.valueOf(Search_Order_ID)); -} -/** Get Search Order. -@return Order Identifier */ -public int getSearch_Order_ID() -{ -Integer ii = (Integer)get_Value("Search_Order_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Search_Order_ID */ -public static final String COLUMNNAME_Search_Order_ID = "Search_Order_ID"; -} + /** Set Search Order. + @param Search_Order_ID + Order Identifier + */ + public void setSearch_Order_ID (int Search_Order_ID) + { + if (Search_Order_ID <= 0) set_Value (COLUMNNAME_Search_Order_ID, null); + else + set_Value (COLUMNNAME_Search_Order_ID, Integer.valueOf(Search_Order_ID)); + } + + /** Get Search Order. + @return Order Identifier + */ + public int getSearch_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Search_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_Test.java b/base/src/org/compiere/model/X_Test.java index 82f951e7f5..14aee68052 100644 --- a/base/src/org/compiere/model/X_Test.java +++ b/base/src/org/compiere/model/X_Test.java @@ -1,474 +1,550 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for Test - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_Test extends PO + +/** Generated Model for Test + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_Test extends PO implements I_Test, I_Persistent { -/** Standard Constructor -@param ctx context -@param Test_ID id -@param trxName transaction -*/ -public X_Test (Properties ctx, int Test_ID, String trxName) -{ -super (ctx, Test_ID, trxName); -/** if (Test_ID == 0) -{ -setName (null); -setTest_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_Test (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=Test */ -public static final String Table_Name="Test"; - -/** AD_Table_ID=135 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_Test[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Account_Acct. -@param Account_Acct Account_Acct */ -public void setAccount_Acct (int Account_Acct) -{ -set_Value ("Account_Acct", Integer.valueOf(Account_Acct)); -} -/** Get Account_Acct. -@return Account_Acct */ -public int getAccount_Acct() -{ -Integer ii = (Integer)get_Value("Account_Acct"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Account_Acct */ -public static final String COLUMNNAME_Account_Acct = "Account_Acct"; -/** Set BinaryData. -@param BinaryData Binary Data */ -public void setBinaryData (int BinaryData) -{ -set_Value ("BinaryData", Integer.valueOf(BinaryData)); -} -/** Get BinaryData. -@return Binary Data */ -public int getBinaryData() -{ -Integer ii = (Integer)get_Value("BinaryData"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name BinaryData */ -public static final String COLUMNNAME_BinaryData = "BinaryData"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Currency. -@param C_Currency_ID The Currency for this record */ -public void setC_Currency_ID (int C_Currency_ID) -{ -if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null); - else -set_Value ("C_Currency_ID", Integer.valueOf(C_Currency_ID)); -} -/** Get Currency. -@return The Currency for this record */ -public int getC_Currency_ID() -{ -Integer ii = (Integer)get_Value("C_Currency_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Currency_ID */ -public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID"; -/** Set Address. -@param C_Location_ID Location or Address */ -public void setC_Location_ID (int C_Location_ID) -{ -if (C_Location_ID <= 0) set_Value ("C_Location_ID", null); - else -set_Value ("C_Location_ID", Integer.valueOf(C_Location_ID)); -} -/** Get Address. -@return Location or Address */ -public int getC_Location_ID() -{ -Integer ii = (Integer)get_Value("C_Location_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Location_ID */ -public static final String COLUMNNAME_C_Location_ID = "C_Location_ID"; -/** Set Payment. -@param C_Payment_ID Payment identifier */ -public void setC_Payment_ID (int C_Payment_ID) -{ -if (C_Payment_ID <= 0) set_Value ("C_Payment_ID", null); - else -set_Value ("C_Payment_ID", Integer.valueOf(C_Payment_ID)); -} -/** Get Payment. -@return Payment identifier */ -public int getC_Payment_ID() -{ -Integer ii = (Integer)get_Value("C_Payment_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_Payment_ID */ -public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; -/** Set UOM. -@param C_UOM_ID Unit of Measure */ -public void setC_UOM_ID (int C_UOM_ID) -{ -if (C_UOM_ID <= 0) set_Value ("C_UOM_ID", null); - else -set_Value ("C_UOM_ID", Integer.valueOf(C_UOM_ID)); -} -/** Get UOM. -@return Unit of Measure */ -public int getC_UOM_ID() -{ -Integer ii = (Integer)get_Value("C_UOM_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_UOM_ID */ -public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; -/** Set Character Data. -@param CharacterData Long Character Field */ -public void setCharacterData (String CharacterData) -{ -set_Value ("CharacterData", CharacterData); -} -/** Get Character Data. -@return Long Character Field */ -public String getCharacterData() -{ -return (String)get_Value("CharacterData"); -} -/** Column name CharacterData */ -public static final String COLUMNNAME_CharacterData = "CharacterData"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Locator. -@param M_Locator_ID Warehouse Locator */ -public void setM_Locator_ID (int M_Locator_ID) -{ -if (M_Locator_ID <= 0) set_Value ("M_Locator_ID", null); - else -set_Value ("M_Locator_ID", Integer.valueOf(M_Locator_ID)); -} -/** Get Locator. -@return Warehouse Locator */ -public int getM_Locator_ID() -{ -Integer ii = (Integer)get_Value("M_Locator_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Locator_ID */ -public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; -/** Set Amount. -@param T_Amount Amount */ -public void setT_Amount (BigDecimal T_Amount) -{ -set_Value ("T_Amount", T_Amount); -} -/** Get Amount. -@return Amount */ -public BigDecimal getT_Amount() -{ -BigDecimal bd = (BigDecimal)get_Value("T_Amount"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name T_Amount */ -public static final String COLUMNNAME_T_Amount = "T_Amount"; -/** Set Date. -@param T_Date Date */ -public void setT_Date (Timestamp T_Date) -{ -set_Value ("T_Date", T_Date); -} -/** Get Date. -@return Date */ -public Timestamp getT_Date() -{ -return (Timestamp)get_Value("T_Date"); -} -/** Column name T_Date */ -public static final String COLUMNNAME_T_Date = "T_Date"; -/** Set DateTime. -@param T_DateTime DateTime */ -public void setT_DateTime (Timestamp T_DateTime) -{ -set_Value ("T_DateTime", T_DateTime); -} -/** Get DateTime. -@return DateTime */ -public Timestamp getT_DateTime() -{ -return (Timestamp)get_Value("T_DateTime"); -} -/** Column name T_DateTime */ -public static final String COLUMNNAME_T_DateTime = "T_DateTime"; -/** Set Integer. -@param T_Integer Integer */ -public void setT_Integer (int T_Integer) -{ -set_Value ("T_Integer", Integer.valueOf(T_Integer)); -} -/** Get Integer. -@return Integer */ -public int getT_Integer() -{ -Integer ii = (Integer)get_Value("T_Integer"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name T_Integer */ -public static final String COLUMNNAME_T_Integer = "T_Integer"; -/** Set Number. -@param T_Number Number */ -public void setT_Number (BigDecimal T_Number) -{ -set_Value ("T_Number", T_Number); -} -/** Get Number. -@return Number */ -public BigDecimal getT_Number() -{ -BigDecimal bd = (BigDecimal)get_Value("T_Number"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name T_Number */ -public static final String COLUMNNAME_T_Number = "T_Number"; -/** Set Qty. -@param T_Qty Qty */ -public void setT_Qty (BigDecimal T_Qty) -{ -set_Value ("T_Qty", T_Qty); -} -/** Get Qty. -@return Qty */ -public BigDecimal getT_Qty() -{ -BigDecimal bd = (BigDecimal)get_Value("T_Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name T_Qty */ -public static final String COLUMNNAME_T_Qty = "T_Qty"; -/** Set Test ID. -@param Test_ID Test ID */ -public void setTest_ID (int Test_ID) -{ -if (Test_ID < 1) throw new IllegalArgumentException ("Test_ID is mandatory."); -set_ValueNoCheck ("Test_ID", Integer.valueOf(Test_ID)); -} -/** Get Test ID. -@return Test ID */ -public int getTest_ID() -{ -Integer ii = (Integer)get_Value("Test_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Test_ID */ -public static final String COLUMNNAME_Test_ID = "Test_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_Test (Properties ctx, int Test_ID, String trxName) + { + super (ctx, Test_ID, trxName); + /** if (Test_ID == 0) { setName (null); + setTest_ID (0); +} */ + } + + /** Load Constructor */ + public X_Test (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_Test[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Account_Acct. + @param Account_Acct Account_Acct */ + public void setAccount_Acct (int Account_Acct) + { + set_Value (COLUMNNAME_Account_Acct, Integer.valueOf(Account_Acct)); + } + + /** Get Account_Acct. +@return Account_Acct */ + public int getAccount_Acct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Account_Acct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set BinaryData. + @param BinaryData + Binary Data + */ + public void setBinaryData (int BinaryData) + { + set_Value (COLUMNNAME_BinaryData, Integer.valueOf(BinaryData)); + } + + /** Get BinaryData. + @return Binary Data + */ + public int getBinaryData () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BinaryData); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getI_C_Currency() throws Exception + { + 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 e; + } + return result; + } + + /** Set Currency. + @param C_Currency_ID + The Currency for this record + */ + public void setC_Currency_ID (int C_Currency_ID) + { + if (C_Currency_ID <= 0) set_Value (COLUMNNAME_C_Currency_ID, null); + else + set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); + } + + /** Get Currency. + @return The Currency for this record + */ + public int getC_Currency_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID <= 0) set_Value (COLUMNNAME_C_Location_ID, null); + else + set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID)); + } + + /** Get Address. + @return Location or Address + */ + public int getC_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID <= 0) set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getI_C_UOM() throws Exception + { + 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 e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID <= 0) set_Value (COLUMNNAME_C_UOM_ID, null); + else + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Character Data. + @param CharacterData + Long Character Field + */ + public void setCharacterData (String CharacterData) + { + set_Value (COLUMNNAME_CharacterData, CharacterData); + } + + /** Get Character Data. + @return Long Character Field + */ + public String getCharacterData () + { + return (String)get_Value(COLUMNNAME_CharacterData); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID <= 0) set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Amount. + @param T_Amount Amount */ + public void setT_Amount (BigDecimal T_Amount) + { + set_Value (COLUMNNAME_T_Amount, T_Amount); + } + + /** Get Amount. +@return Amount */ + public BigDecimal getT_Amount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_T_Amount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Date. + @param T_Date Date */ + public void setT_Date (Timestamp T_Date) + { + set_Value (COLUMNNAME_T_Date, T_Date); + } + + /** Get Date. +@return Date */ + public Timestamp getT_Date () + { + return (Timestamp)get_Value(COLUMNNAME_T_Date); + } + + /** Set DateTime. + @param T_DateTime DateTime */ + public void setT_DateTime (Timestamp T_DateTime) + { + set_Value (COLUMNNAME_T_DateTime, T_DateTime); + } + + /** Get DateTime. +@return DateTime */ + public Timestamp getT_DateTime () + { + return (Timestamp)get_Value(COLUMNNAME_T_DateTime); + } + + /** Set Integer. + @param T_Integer Integer */ + public void setT_Integer (int T_Integer) + { + set_Value (COLUMNNAME_T_Integer, Integer.valueOf(T_Integer)); + } + + /** Get Integer. +@return Integer */ + public int getT_Integer () + { + Integer ii = (Integer)get_Value(COLUMNNAME_T_Integer); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number. + @param T_Number Number */ + public void setT_Number (BigDecimal T_Number) + { + set_Value (COLUMNNAME_T_Number, T_Number); + } + + /** Get Number. +@return Number */ + public BigDecimal getT_Number () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_T_Number); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Qty. + @param T_Qty Qty */ + public void setT_Qty (BigDecimal T_Qty) + { + set_Value (COLUMNNAME_T_Qty, T_Qty); + } + + /** Get Qty. +@return Qty */ + public BigDecimal getT_Qty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_T_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Test ID. + @param Test_ID Test ID */ + public void setTest_ID (int Test_ID) + { + if (Test_ID < 1) + throw new IllegalArgumentException ("Test_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_Test_ID, Integer.valueOf(Test_ID)); + } + + /** Get Test ID. +@return Test ID */ + public int getTest_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Test_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_Advertisement.java b/base/src/org/compiere/model/X_W_Advertisement.java index d7e948926e..f90b5ad094 100644 --- a/base/src/org/compiere/model/X_W_Advertisement.java +++ b/base/src/org/compiere/model/X_W_Advertisement.java @@ -1,478 +1,576 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_Advertisement - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_Advertisement extends PO + +/** Generated Model for W_Advertisement + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_Advertisement extends PO implements I_W_Advertisement, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_Advertisement_ID id -@param trxName transaction -*/ -public X_W_Advertisement (Properties ctx, int W_Advertisement_ID, String trxName) -{ -super (ctx, W_Advertisement_ID, trxName); -/** if (W_Advertisement_ID == 0) -{ -setAD_User_ID (0); // -1 -setC_BPartner_ID (0); -setIsSelfService (true); // Y -setName (null); -setPublishStatus (null); // U -setW_Advertisement_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_Advertisement (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_Advertisement */ -public static final String Table_Name="W_Advertisement"; - -/** AD_Table_ID=579 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_Advertisement[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Advertisement Text. -@param AdText Text of the Advertisement */ -public void setAdText (String AdText) -{ -if (AdText != null && AdText.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -AdText = AdText.substring(0,1999); -} -set_Value ("AdText", AdText); -} -/** Get Advertisement Text. -@return Text of the Advertisement */ -public String getAdText() -{ -return (String)get_Value("AdText"); -} -/** Column name AdText */ -public static final String COLUMNNAME_AdText = "AdText"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_Advertisement (Properties ctx, int W_Advertisement_ID, String trxName) + { + super (ctx, W_Advertisement_ID, trxName); + /** if (W_Advertisement_ID == 0) { setAD_User_ID (0); +// -1 + setC_BPartner_ID (0); + setIsSelfService (true); +// Y + setName (null); + setPublishStatus (null); +// U + setW_Advertisement_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_Advertisement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_Advertisement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getI_AD_User() throws Exception + { + 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 e; + } + return result; + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Advertisement Text. + @param AdText + Text of the Advertisement + */ + public void setAdText (String AdText) + { + if (AdText != null && AdText.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + AdText = AdText.substring(0, 1999); + } + set_Value (COLUMNNAME_AdText, AdText); + } + + /** Get Advertisement Text. + @return Text of the Advertisement + */ + public String getAdText () + { + return (String)get_Value(COLUMNNAME_AdText); + } /** C_BPartner_ID AD_Reference_ID=232 */ public static final int C_BPARTNER_ID_AD_Reference_ID=232; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID < 1) throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Image URL. -@param ImageURL URL of image */ -public void setImageURL (String ImageURL) -{ -if (ImageURL != null && ImageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -ImageURL = ImageURL.substring(0,119); -} -set_Value ("ImageURL", ImageURL); -} -/** Get Image URL. -@return URL of image */ -public String getImageURL() -{ -return (String)get_Value("ImageURL"); -} -/** Column name ImageURL */ -public static final String COLUMNNAME_ImageURL = "ImageURL"; -/** Set Self-Service. -@param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ -public void setIsSelfService (boolean IsSelfService) -{ -set_Value ("IsSelfService", Boolean.valueOf(IsSelfService)); -} -/** Get Self-Service. -@return This is a Self-Service entry or this entry can be changed via Self-Service */ -public boolean isSelfService() -{ -Object oo = get_Value("IsSelfService"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsSelfService */ -public static final String COLUMNNAME_IsSelfService = "IsSelfService"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Process Now. -@param Processing Process Now */ -public void setProcessing (boolean Processing) -{ -set_Value ("Processing", Boolean.valueOf(Processing)); -} -/** Get Process Now. -@return Process Now */ -public boolean isProcessing() -{ -Object oo = get_Value("Processing"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processing */ -public static final String COLUMNNAME_Processing = "Processing"; + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID < 1) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 119); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. +@return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } /** PublishStatus AD_Reference_ID=310 */ -public static final int PUBLISHSTATUS_AD_Reference_ID=310; -/** Released = R */ -public static final String PUBLISHSTATUS_Released = "R"; -/** Test = T */ -public static final String PUBLISHSTATUS_Test = "T"; -/** Under Revision = U */ -public static final String PUBLISHSTATUS_UnderRevision = "U"; -/** Void = V */ +public static final int PUBLISHSTATUS_AD_Reference_ID=310;/** Released = R */ +public static final String PUBLISHSTATUS_Released = "R";/** Test = T */ +public static final String PUBLISHSTATUS_Test = "T";/** Under Revision = U */ +public static final String PUBLISHSTATUS_UnderRevision = "U";/** Void = V */ public static final String PUBLISHSTATUS_Void = "V"; -/** Set Publication Status. -@param PublishStatus Status of Publication */ -public void setPublishStatus (String PublishStatus) -{ -if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory"); -if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V")); - else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V"); -if (PublishStatus.length() > 1) -{ -log.warning("Length > 1 - truncated"); -PublishStatus = PublishStatus.substring(0,0); -} -set_Value ("PublishStatus", PublishStatus); -} -/** Get Publication Status. -@return Status of Publication */ -public String getPublishStatus() -{ -return (String)get_Value("PublishStatus"); -} -/** Column name PublishStatus */ -public static final String COLUMNNAME_PublishStatus = "PublishStatus"; -/** Set Valid from. -@param ValidFrom Valid from including this date (first day) */ -public void setValidFrom (Timestamp ValidFrom) -{ -set_Value ("ValidFrom", ValidFrom); -} -/** Get Valid from. -@return Valid from including this date (first day) */ -public Timestamp getValidFrom() -{ -return (Timestamp)get_Value("ValidFrom"); -} -/** Column name ValidFrom */ -public static final String COLUMNNAME_ValidFrom = "ValidFrom"; -/** Set Valid to. -@param ValidTo Valid to including this date (last day) */ -public void setValidTo (Timestamp ValidTo) -{ -set_Value ("ValidTo", ValidTo); -} -/** Get Valid to. -@return Valid to including this date (last day) */ -public Timestamp getValidTo() -{ -return (Timestamp)get_Value("ValidTo"); -} -/** Column name ValidTo */ -public static final String COLUMNNAME_ValidTo = "ValidTo"; -/** Set Version. -@param Version Version of the table definition */ -public void setVersion (int Version) -{ -set_Value ("Version", Integer.valueOf(Version)); -} -/** Get Version. -@return Version of the table definition */ -public int getVersion() -{ -Integer ii = (Integer)get_Value("Version"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Version */ -public static final String COLUMNNAME_Version = "Version"; -/** Set Advertisement. -@param W_Advertisement_ID Web Advertisement */ -public void setW_Advertisement_ID (int W_Advertisement_ID) -{ -if (W_Advertisement_ID < 1) throw new IllegalArgumentException ("W_Advertisement_ID is mandatory."); -set_ValueNoCheck ("W_Advertisement_ID", Integer.valueOf(W_Advertisement_ID)); -} -/** Get Advertisement. -@return Web Advertisement */ -public int getW_Advertisement_ID() -{ -Integer ii = (Integer)get_Value("W_Advertisement_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Advertisement_ID */ -public static final String COLUMNNAME_W_Advertisement_ID = "W_Advertisement_ID"; -/** Set Click Count. -@param W_ClickCount_ID Web Click Management */ -public void setW_ClickCount_ID (int W_ClickCount_ID) -{ -if (W_ClickCount_ID <= 0) set_Value ("W_ClickCount_ID", null); - else -set_Value ("W_ClickCount_ID", Integer.valueOf(W_ClickCount_ID)); -} -/** Get Click Count. -@return Web Click Management */ -public int getW_ClickCount_ID() -{ -Integer ii = (Integer)get_Value("W_ClickCount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_ClickCount_ID */ -public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID"; -/** Set Counter Count. -@param W_CounterCount_ID Web Counter Count Management */ -public void setW_CounterCount_ID (int W_CounterCount_ID) -{ -if (W_CounterCount_ID <= 0) set_Value ("W_CounterCount_ID", null); - else -set_Value ("W_CounterCount_ID", Integer.valueOf(W_CounterCount_ID)); -} -/** Get Counter Count. -@return Web Counter Count Management */ -public int getW_CounterCount_ID() -{ -Integer ii = (Integer)get_Value("W_CounterCount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_CounterCount_ID */ -public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID"; -/** Set Web Parameter 1. -@param WebParam1 Web Site Parameter 1 (default: header image) */ -public void setWebParam1 (String WebParam1) -{ -if (WebParam1 != null && WebParam1.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam1 = WebParam1.substring(0,1999); -} -set_Value ("WebParam1", WebParam1); -} -/** Get Web Parameter 1. -@return Web Site Parameter 1 (default: header image) */ -public String getWebParam1() -{ -return (String)get_Value("WebParam1"); -} -/** Column name WebParam1 */ -public static final String COLUMNNAME_WebParam1 = "WebParam1"; -/** Set Web Parameter 2. -@param WebParam2 Web Site Parameter 2 (default index page) */ -public void setWebParam2 (String WebParam2) -{ -if (WebParam2 != null && WebParam2.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam2 = WebParam2.substring(0,1999); -} -set_Value ("WebParam2", WebParam2); -} -/** Get Web Parameter 2. -@return Web Site Parameter 2 (default index page) */ -public String getWebParam2() -{ -return (String)get_Value("WebParam2"); -} -/** Column name WebParam2 */ -public static final String COLUMNNAME_WebParam2 = "WebParam2"; -/** Set Web Parameter 3. -@param WebParam3 Web Site Parameter 3 (default left - menu) */ -public void setWebParam3 (String WebParam3) -{ -if (WebParam3 != null && WebParam3.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam3 = WebParam3.substring(0,1999); -} -set_Value ("WebParam3", WebParam3); -} -/** Get Web Parameter 3. -@return Web Site Parameter 3 (default left - menu) */ -public String getWebParam3() -{ -return (String)get_Value("WebParam3"); -} -/** Column name WebParam3 */ -public static final String COLUMNNAME_WebParam3 = "WebParam3"; -/** Set Web Parameter 4. -@param WebParam4 Web Site Parameter 4 (default footer left) */ -public void setWebParam4 (String WebParam4) -{ -if (WebParam4 != null && WebParam4.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam4 = WebParam4.substring(0,1999); -} -set_Value ("WebParam4", WebParam4); -} -/** Get Web Parameter 4. -@return Web Site Parameter 4 (default footer left) */ -public String getWebParam4() -{ -return (String)get_Value("WebParam4"); -} -/** Column name WebParam4 */ -public static final String COLUMNNAME_WebParam4 = "WebParam4"; -} + /** Set Publication Status. + @param PublishStatus + Status of Publication + */ + public void setPublishStatus (String PublishStatus) + { +if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory");if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V")); else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V"); if (PublishStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + PublishStatus = PublishStatus.substring(0, 0); + } + set_Value (COLUMNNAME_PublishStatus, PublishStatus); + } + + /** Get Publication Status. + @return Status of Publication + */ + public String getPublishStatus () + { + return (String)get_Value(COLUMNNAME_PublishStatus); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + set_Value (COLUMNNAME_ValidFrom, ValidFrom); + } + + /** Get Valid from. + @return Valid from including this date (first day) + */ + public Timestamp getValidFrom () + { + return (Timestamp)get_Value(COLUMNNAME_ValidFrom); + } + + /** Set Valid to. + @param ValidTo + Valid to including this date (last day) + */ + public void setValidTo (Timestamp ValidTo) + { + set_Value (COLUMNNAME_ValidTo, ValidTo); + } + + /** Get Valid to. + @return Valid to including this date (last day) + */ + public Timestamp getValidTo () + { + return (Timestamp)get_Value(COLUMNNAME_ValidTo); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (int Version) + { + set_Value (COLUMNNAME_Version, Integer.valueOf(Version)); + } + + /** Get Version. + @return Version of the table definition + */ + public int getVersion () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Version); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Advertisement. + @param W_Advertisement_ID + Web Advertisement + */ + public void setW_Advertisement_ID (int W_Advertisement_ID) + { + if (W_Advertisement_ID < 1) + throw new IllegalArgumentException ("W_Advertisement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_Advertisement_ID, Integer.valueOf(W_Advertisement_ID)); + } + + /** Get Advertisement. + @return Web Advertisement + */ + public int getW_Advertisement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Advertisement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_W_ClickCount getI_W_ClickCount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Click Count. + @param W_ClickCount_ID + Web Click Management + */ + public void setW_ClickCount_ID (int W_ClickCount_ID) + { + if (W_ClickCount_ID <= 0) set_Value (COLUMNNAME_W_ClickCount_ID, null); + else + set_Value (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID)); + } + + /** Get Click Count. + @return Web Click Management + */ + public int getW_ClickCount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_ClickCount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_W_CounterCount getI_W_CounterCount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Counter Count. + @param W_CounterCount_ID + Web Counter Count Management + */ + public void setW_CounterCount_ID (int W_CounterCount_ID) + { + if (W_CounterCount_ID <= 0) set_Value (COLUMNNAME_W_CounterCount_ID, null); + else + set_Value (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID)); + } + + /** Get Counter Count. + @return Web Counter Count Management + */ + public int getW_CounterCount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_CounterCount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Parameter 1. + @param WebParam1 + Web Site Parameter 1 (default: header image) + */ + public void setWebParam1 (String WebParam1) + { + if (WebParam1 != null && WebParam1.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam1 = WebParam1.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam1, WebParam1); + } + + /** Get Web Parameter 1. + @return Web Site Parameter 1 (default: header image) + */ + public String getWebParam1 () + { + return (String)get_Value(COLUMNNAME_WebParam1); + } + + /** Set Web Parameter 2. + @param WebParam2 + Web Site Parameter 2 (default index page) + */ + public void setWebParam2 (String WebParam2) + { + if (WebParam2 != null && WebParam2.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam2 = WebParam2.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam2, WebParam2); + } + + /** Get Web Parameter 2. + @return Web Site Parameter 2 (default index page) + */ + public String getWebParam2 () + { + return (String)get_Value(COLUMNNAME_WebParam2); + } + + /** Set Web Parameter 3. + @param WebParam3 + Web Site Parameter 3 (default left - menu) + */ + public void setWebParam3 (String WebParam3) + { + if (WebParam3 != null && WebParam3.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam3 = WebParam3.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam3, WebParam3); + } + + /** Get Web Parameter 3. + @return Web Site Parameter 3 (default left - menu) + */ + public String getWebParam3 () + { + return (String)get_Value(COLUMNNAME_WebParam3); + } + + /** Set Web Parameter 4. + @param WebParam4 + Web Site Parameter 4 (default footer left) + */ + public void setWebParam4 (String WebParam4) + { + if (WebParam4 != null && WebParam4.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam4 = WebParam4.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam4, WebParam4); + } + + /** Get Web Parameter 4. + @return Web Site Parameter 4 (default footer left) + */ + public String getWebParam4 () + { + return (String)get_Value(COLUMNNAME_WebParam4); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_Basket.java b/base/src/org/compiere/model/X_W_Basket.java index 59846969c2..941c07a206 100644 --- a/base/src/org/compiere/model/X_W_Basket.java +++ b/base/src/org/compiere/model/X_W_Basket.java @@ -1,202 +1,228 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_Basket - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_Basket extends PO + +/** Generated Model for W_Basket + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_Basket extends PO implements I_W_Basket, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_Basket_ID id -@param trxName transaction -*/ -public X_W_Basket (Properties ctx, int W_Basket_ID, String trxName) -{ -super (ctx, W_Basket_ID, trxName); -/** if (W_Basket_ID == 0) -{ -setAD_User_ID (0); -setSession_ID (0); -setW_Basket_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_Basket (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_Basket */ -public static final String Table_Name="W_Basket"; - -/** AD_Table_ID=402 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_Basket[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID < 1) throw new IllegalArgumentException ("AD_User_ID is mandatory."); -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID <= 0) set_Value ("M_PriceList_ID", null); - else -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Session ID. -@param Session_ID Session ID */ -public void setSession_ID (int Session_ID) -{ -if (Session_ID < 1) throw new IllegalArgumentException ("Session_ID is mandatory."); -set_Value ("Session_ID", Integer.valueOf(Session_ID)); -} -/** Get Session ID. -@return Session ID */ -public int getSession_ID() -{ -Integer ii = (Integer)get_Value("Session_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getSession_ID())); -} -/** Column name Session_ID */ -public static final String COLUMNNAME_Session_ID = "Session_ID"; -/** Set W_Basket_ID. -@param W_Basket_ID Web Basket */ -public void setW_Basket_ID (int W_Basket_ID) -{ -if (W_Basket_ID < 1) throw new IllegalArgumentException ("W_Basket_ID is mandatory."); -set_ValueNoCheck ("W_Basket_ID", Integer.valueOf(W_Basket_ID)); -} -/** Get W_Basket_ID. -@return Web Basket */ -public int getW_Basket_ID() -{ -Integer ii = (Integer)get_Value("W_Basket_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Basket_ID */ -public static final String COLUMNNAME_W_Basket_ID = "W_Basket_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_Basket (Properties ctx, int W_Basket_ID, String trxName) + { + super (ctx, W_Basket_ID, trxName); + /** if (W_Basket_ID == 0) { setAD_User_ID (0); + setSession_ID (0); + setW_Basket_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_Basket (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_Basket[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID < 1) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID <= 0) set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Session ID. + @param Session_ID Session ID */ + public void setSession_ID (int Session_ID) + { + if (Session_ID < 1) + throw new IllegalArgumentException ("Session_ID is mandatory."); + set_Value (COLUMNNAME_Session_ID, Integer.valueOf(Session_ID)); + } + + /** Get Session ID. +@return Session ID */ + public int getSession_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Session_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getSession_ID())); + } + + /** Set W_Basket_ID. + @param W_Basket_ID + Web Basket + */ + public void setW_Basket_ID (int W_Basket_ID) + { + if (W_Basket_ID < 1) + throw new IllegalArgumentException ("W_Basket_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); + } + + /** Get W_Basket_ID. + @return Web Basket + */ + public int getW_Basket_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Basket_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_BasketLine.java b/base/src/org/compiere/model/X_W_BasketLine.java index 48988ec742..fea55c9af2 100644 --- a/base/src/org/compiere/model/X_W_BasketLine.java +++ b/base/src/org/compiere/model/X_W_BasketLine.java @@ -1,242 +1,278 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_BasketLine - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_BasketLine extends PO + +/** Generated Model for W_BasketLine + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_BasketLine extends PO implements I_W_BasketLine, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_BasketLine_ID id -@param trxName transaction -*/ -public X_W_BasketLine (Properties ctx, int W_BasketLine_ID, String trxName) -{ -super (ctx, W_BasketLine_ID, trxName); -/** if (W_BasketLine_ID == 0) -{ -setDescription (null); -setLine (0); -setPrice (Env.ZERO); -setProduct (null); -setQty (Env.ZERO); -setW_BasketLine_ID (0); -setW_Basket_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_BasketLine (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_BasketLine */ -public static final String Table_Name="W_BasketLine"; - -/** AD_Table_ID=549 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(4); -/** AccessLevel -@return 4 - System -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_BasketLine[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description == null) throw new IllegalArgumentException ("Description is mandatory."); -if (Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Line No. -@param Line Unique line for this document */ -public void setLine (int Line) -{ -set_Value ("Line", Integer.valueOf(Line)); -} -/** Get Line No. -@return Unique line for this document */ -public int getLine() -{ -Integer ii = (Integer)get_Value("Line"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), String.valueOf(getLine())); -} -/** Column name Line */ -public static final String COLUMNNAME_Line = "Line"; -/** Set Product. -@param M_Product_ID Product, Service, Item */ -public void setM_Product_ID (int M_Product_ID) -{ -if (M_Product_ID <= 0) set_Value ("M_Product_ID", null); - else -set_Value ("M_Product_ID", Integer.valueOf(M_Product_ID)); -} -/** Get Product. -@return Product, Service, Item */ -public int getM_Product_ID() -{ -Integer ii = (Integer)get_Value("M_Product_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Product_ID */ -public static final String COLUMNNAME_M_Product_ID = "M_Product_ID"; -/** Set Price. -@param Price Price */ -public void setPrice (BigDecimal Price) -{ -if (Price == null) throw new IllegalArgumentException ("Price is mandatory."); -set_Value ("Price", Price); -} -/** Get Price. -@return Price */ -public BigDecimal getPrice() -{ -BigDecimal bd = (BigDecimal)get_Value("Price"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Price */ -public static final String COLUMNNAME_Price = "Price"; -/** Set Product. -@param Product Product */ -public void setProduct (String Product) -{ -if (Product == null) throw new IllegalArgumentException ("Product is mandatory."); -if (Product.length() > 40) -{ -log.warning("Length > 40 - truncated"); -Product = Product.substring(0,39); -} -set_Value ("Product", Product); -} -/** Get Product. -@return Product */ -public String getProduct() -{ -return (String)get_Value("Product"); -} -/** Column name Product */ -public static final String COLUMNNAME_Product = "Product"; -/** Set Quantity. -@param Qty Quantity */ -public void setQty (BigDecimal Qty) -{ -if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory."); -set_Value ("Qty", Qty); -} -/** Get Quantity. -@return Quantity */ -public BigDecimal getQty() -{ -BigDecimal bd = (BigDecimal)get_Value("Qty"); -if (bd == null) return Env.ZERO; -return bd; -} -/** Column name Qty */ -public static final String COLUMNNAME_Qty = "Qty"; -/** Set Basket Line. -@param W_BasketLine_ID Web Basket Line */ -public void setW_BasketLine_ID (int W_BasketLine_ID) -{ -if (W_BasketLine_ID < 1) throw new IllegalArgumentException ("W_BasketLine_ID is mandatory."); -set_ValueNoCheck ("W_BasketLine_ID", Integer.valueOf(W_BasketLine_ID)); -} -/** Get Basket Line. -@return Web Basket Line */ -public int getW_BasketLine_ID() -{ -Integer ii = (Integer)get_Value("W_BasketLine_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_BasketLine_ID */ -public static final String COLUMNNAME_W_BasketLine_ID = "W_BasketLine_ID"; -/** Set W_Basket_ID. -@param W_Basket_ID Web Basket */ -public void setW_Basket_ID (int W_Basket_ID) -{ -if (W_Basket_ID < 1) throw new IllegalArgumentException ("W_Basket_ID is mandatory."); -set_ValueNoCheck ("W_Basket_ID", Integer.valueOf(W_Basket_ID)); -} -/** Get W_Basket_ID. -@return Web Basket */ -public int getW_Basket_ID() -{ -Integer ii = (Integer)get_Value("W_Basket_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Basket_ID */ -public static final String COLUMNNAME_W_Basket_ID = "W_Basket_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_BasketLine (Properties ctx, int W_BasketLine_ID, String trxName) + { + super (ctx, W_BasketLine_ID, trxName); + /** if (W_BasketLine_ID == 0) { setDescription (null); + setLine (0); + setPrice (Env.ZERO); + setProduct (null); + setQty (Env.ZERO); + setW_BasketLine_ID (0); + setW_Basket_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_BasketLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_BasketLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getLine())); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID <= 0) set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Price. + @param Price + Price + */ + public void setPrice (BigDecimal Price) + { + if (Price == null) + throw new IllegalArgumentException ("Price is mandatory."); + set_Value (COLUMNNAME_Price, Price); + } + + /** Get Price. + @return Price + */ + public BigDecimal getPrice () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Price); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Product. + @param Product Product */ + public void setProduct (String Product) + { + if (Product == null) + throw new IllegalArgumentException ("Product is mandatory."); + if (Product.length() > 40) + { + log.warning("Length > 40 - truncated"); + Product = Product.substring(0, 39); + } + set_Value (COLUMNNAME_Product, Product); + } + + /** Get Product. +@return Product */ + public String getProduct () + { + return (String)get_Value(COLUMNNAME_Product); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Basket Line. + @param W_BasketLine_ID + Web Basket Line + */ + public void setW_BasketLine_ID (int W_BasketLine_ID) + { + if (W_BasketLine_ID < 1) + throw new IllegalArgumentException ("W_BasketLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, Integer.valueOf(W_BasketLine_ID)); + } + + /** Get Basket Line. + @return Web Basket Line + */ + public int getW_BasketLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_BasketLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_W_Basket getI_W_Basket() throws Exception + { + 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 e; + } + return result; + } + + /** Set W_Basket_ID. + @param W_Basket_ID + Web Basket + */ + public void setW_Basket_ID (int W_Basket_ID) + { + if (W_Basket_ID < 1) + throw new IllegalArgumentException ("W_Basket_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); + } + + /** Get W_Basket_ID. + @return Web Basket + */ + public int getW_Basket_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Basket_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_Click.java b/base/src/org/compiere/model/X_W_Click.java index 028ef77800..9fdd2f2d84 100644 --- a/base/src/org/compiere/model/X_W_Click.java +++ b/base/src/org/compiere/model/X_W_Click.java @@ -1,301 +1,342 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_Click - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_Click extends PO + +/** Generated Model for W_Click + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_Click extends PO implements I_W_Click, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_Click_ID id -@param trxName transaction -*/ -public X_W_Click (Properties ctx, int W_Click_ID, String trxName) -{ -super (ctx, W_Click_ID, trxName); -/** if (W_Click_ID == 0) -{ -setProcessed (false); -setW_Click_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_Click (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_Click */ -public static final String Table_Name="W_Click"; - -/** AD_Table_ID=550 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_Click[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Accept Language. -@param AcceptLanguage Language accepted based on browser information */ -public void setAcceptLanguage (String AcceptLanguage) -{ -if (AcceptLanguage != null && AcceptLanguage.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AcceptLanguage = AcceptLanguage.substring(0,59); -} -set_Value ("AcceptLanguage", AcceptLanguage); -} -/** Get Accept Language. -@return Language accepted based on browser information */ -public String getAcceptLanguage() -{ -return (String)get_Value("AcceptLanguage"); -} -/** Column name AcceptLanguage */ -public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Referrer. -@param Referrer Referring web address */ -public void setReferrer (String Referrer) -{ -if (Referrer != null && Referrer.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Referrer = Referrer.substring(0,119); -} -set_Value ("Referrer", Referrer); -} -/** Get Referrer. -@return Referring web address */ -public String getReferrer() -{ -return (String)get_Value("Referrer"); -} -/** Column name Referrer */ -public static final String COLUMNNAME_Referrer = "Referrer"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr != null && Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_Value ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getRemote_Addr()); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host != null && Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_Value ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set Target URL. -@param TargetURL URL for the Target */ -public void setTargetURL (String TargetURL) -{ -if (TargetURL != null && TargetURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -TargetURL = TargetURL.substring(0,119); -} -set_Value ("TargetURL", TargetURL); -} -/** Get Target URL. -@return URL for the Target */ -public String getTargetURL() -{ -return (String)get_Value("TargetURL"); -} -/** Column name TargetURL */ -public static final String COLUMNNAME_TargetURL = "TargetURL"; -/** Set User Agent. -@param UserAgent Browser Used */ -public void setUserAgent (String UserAgent) -{ -if (UserAgent != null && UserAgent.length() > 255) -{ -log.warning("Length > 255 - truncated"); -UserAgent = UserAgent.substring(0,254); -} -set_Value ("UserAgent", UserAgent); -} -/** Get User Agent. -@return Browser Used */ -public String getUserAgent() -{ -return (String)get_Value("UserAgent"); -} -/** Column name UserAgent */ -public static final String COLUMNNAME_UserAgent = "UserAgent"; -/** Set Click Count. -@param W_ClickCount_ID Web Click Management */ -public void setW_ClickCount_ID (int W_ClickCount_ID) -{ -if (W_ClickCount_ID <= 0) set_ValueNoCheck ("W_ClickCount_ID", null); - else -set_ValueNoCheck ("W_ClickCount_ID", Integer.valueOf(W_ClickCount_ID)); -} -/** Get Click Count. -@return Web Click Management */ -public int getW_ClickCount_ID() -{ -Integer ii = (Integer)get_Value("W_ClickCount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_ClickCount_ID */ -public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID"; -/** Set Web Click. -@param W_Click_ID Individual Web Click */ -public void setW_Click_ID (int W_Click_ID) -{ -if (W_Click_ID < 1) throw new IllegalArgumentException ("W_Click_ID is mandatory."); -set_ValueNoCheck ("W_Click_ID", Integer.valueOf(W_Click_ID)); -} -/** Get Web Click. -@return Individual Web Click */ -public int getW_Click_ID() -{ -Integer ii = (Integer)get_Value("W_Click_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Click_ID */ -public static final String COLUMNNAME_W_Click_ID = "W_Click_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_Click (Properties ctx, int W_Click_ID, String trxName) + { + super (ctx, W_Click_ID, trxName); + /** if (W_Click_ID == 0) { setProcessed (false); + setW_Click_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_Click (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_Click[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accept Language. + @param AcceptLanguage + Language accepted based on browser information + */ + public void setAcceptLanguage (String AcceptLanguage) + { + if (AcceptLanguage != null && AcceptLanguage.length() > 60) + { + log.warning("Length > 60 - truncated"); + AcceptLanguage = AcceptLanguage.substring(0, 59); + } + set_Value (COLUMNNAME_AcceptLanguage, AcceptLanguage); + } + + /** Get Accept Language. + @return Language accepted based on browser information + */ + public String getAcceptLanguage () + { + return (String)get_Value(COLUMNNAME_AcceptLanguage); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Referrer. + @param Referrer + Referring web address + */ + public void setReferrer (String Referrer) + { + if (Referrer != null && Referrer.length() > 120) + { + log.warning("Length > 120 - truncated"); + Referrer = Referrer.substring(0, 119); + } + set_Value (COLUMNNAME_Referrer, Referrer); + } + + /** Get Referrer. + @return Referring web address + */ + public String getReferrer () + { + return (String)get_Value(COLUMNNAME_Referrer); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr != null && Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getRemote_Addr()); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host != null && Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_Value (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set Target URL. + @param TargetURL + URL for the Target + */ + public void setTargetURL (String TargetURL) + { + if (TargetURL != null && TargetURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + TargetURL = TargetURL.substring(0, 119); + } + set_Value (COLUMNNAME_TargetURL, TargetURL); + } + + /** Get Target URL. + @return URL for the Target + */ + public String getTargetURL () + { + return (String)get_Value(COLUMNNAME_TargetURL); + } + + /** Set User Agent. + @param UserAgent + Browser Used + */ + public void setUserAgent (String UserAgent) + { + if (UserAgent != null && UserAgent.length() > 255) + { + log.warning("Length > 255 - truncated"); + UserAgent = UserAgent.substring(0, 254); + } + set_Value (COLUMNNAME_UserAgent, UserAgent); + } + + /** Get User Agent. + @return Browser Used + */ + public String getUserAgent () + { + return (String)get_Value(COLUMNNAME_UserAgent); + } + + public I_W_ClickCount getI_W_ClickCount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Click Count. + @param W_ClickCount_ID + Web Click Management + */ + public void setW_ClickCount_ID (int W_ClickCount_ID) + { + if (W_ClickCount_ID <= 0) set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID)); + } + + /** Get Click Count. + @return Web Click Management + */ + public int getW_ClickCount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_ClickCount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Click. + @param W_Click_ID + Individual Web Click + */ + public void setW_Click_ID (int W_Click_ID) + { + if (W_Click_ID < 1) + throw new IllegalArgumentException ("W_Click_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_Click_ID, Integer.valueOf(W_Click_ID)); + } + + /** Get Web Click. + @return Individual Web Click + */ + public int getW_Click_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Click_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_ClickCount.java b/base/src/org/compiere/model/X_W_ClickCount.java index 4e8c5a4e24..4600797fbb 100644 --- a/base/src/org/compiere/model/X_W_ClickCount.java +++ b/base/src/org/compiere/model/X_W_ClickCount.java @@ -1,209 +1,218 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_ClickCount - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_ClickCount extends PO + +/** Generated Model for W_ClickCount + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_ClickCount extends PO implements I_W_ClickCount, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_ClickCount_ID id -@param trxName transaction -*/ -public X_W_ClickCount (Properties ctx, int W_ClickCount_ID, String trxName) -{ -super (ctx, W_ClickCount_ID, trxName); -/** if (W_ClickCount_ID == 0) -{ -setName (null); -setTargetURL (null); -setW_ClickCount_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_ClickCount (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_ClickCount */ -public static final String Table_Name="W_ClickCount"; - -/** AD_Table_ID=553 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_ClickCount[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_ClickCount (Properties ctx, int W_ClickCount_ID, String trxName) + { + super (ctx, W_ClickCount_ID, trxName); + /** if (W_ClickCount_ID == 0) { setName (null); + setTargetURL (null); + setW_ClickCount_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_ClickCount (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_ClickCount[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** C_BPartner_ID AD_Reference_ID=232 */ public static final int C_BPARTNER_ID_AD_Reference_ID=232; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Counter. -@param Counter Count Value */ -public void setCounter (int Counter) -{ -throw new IllegalArgumentException ("Counter is virtual column"); -} -/** Get Counter. -@return Count Value */ -public int getCounter() -{ -Integer ii = (Integer)get_Value("Counter"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Counter */ -public static final String COLUMNNAME_Counter = "Counter"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Target URL. -@param TargetURL URL for the Target */ -public void setTargetURL (String TargetURL) -{ -if (TargetURL == null) throw new IllegalArgumentException ("TargetURL is mandatory."); -if (TargetURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -TargetURL = TargetURL.substring(0,119); -} -set_Value ("TargetURL", TargetURL); -} -/** Get Target URL. -@return URL for the Target */ -public String getTargetURL() -{ -return (String)get_Value("TargetURL"); -} -/** Column name TargetURL */ -public static final String COLUMNNAME_TargetURL = "TargetURL"; -/** Set Click Count. -@param W_ClickCount_ID Web Click Management */ -public void setW_ClickCount_ID (int W_ClickCount_ID) -{ -if (W_ClickCount_ID < 1) throw new IllegalArgumentException ("W_ClickCount_ID is mandatory."); -set_ValueNoCheck ("W_ClickCount_ID", Integer.valueOf(W_ClickCount_ID)); -} -/** Get Click Count. -@return Web Click Management */ -public int getW_ClickCount_ID() -{ -Integer ii = (Integer)get_Value("W_ClickCount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_ClickCount_ID */ -public static final String COLUMNNAME_W_ClickCount_ID = "W_ClickCount_ID"; -} + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Counter. + @param Counter + Count Value + */ + public void setCounter (int Counter) + { + throw new IllegalArgumentException ("Counter is virtual column"); } + + /** Get Counter. + @return Count Value + */ + public int getCounter () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Counter); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Target URL. + @param TargetURL + URL for the Target + */ + public void setTargetURL (String TargetURL) + { + if (TargetURL == null) + throw new IllegalArgumentException ("TargetURL is mandatory."); + if (TargetURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + TargetURL = TargetURL.substring(0, 119); + } + set_Value (COLUMNNAME_TargetURL, TargetURL); + } + + /** Get Target URL. + @return URL for the Target + */ + public String getTargetURL () + { + return (String)get_Value(COLUMNNAME_TargetURL); + } + + /** Set Click Count. + @param W_ClickCount_ID + Web Click Management + */ + public void setW_ClickCount_ID (int W_ClickCount_ID) + { + if (W_ClickCount_ID < 1) + throw new IllegalArgumentException ("W_ClickCount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID)); + } + + /** Get Click Count. + @return Web Click Management + */ + public int getW_ClickCount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_ClickCount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_Counter.java b/base/src/org/compiere/model/X_W_Counter.java index 949c05a58c..7e4383b19c 100644 --- a/base/src/org/compiere/model/X_W_Counter.java +++ b/base/src/org/compiere/model/X_W_Counter.java @@ -1,307 +1,348 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_Counter - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_Counter extends PO + +/** Generated Model for W_Counter + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_Counter extends PO implements I_W_Counter, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_Counter_ID id -@param trxName transaction -*/ -public X_W_Counter (Properties ctx, int W_Counter_ID, String trxName) -{ -super (ctx, W_Counter_ID, trxName); -/** if (W_Counter_ID == 0) -{ -setPageURL (null); -setProcessed (false); -setRemote_Addr (null); -setRemote_Host (null); -setW_Counter_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_Counter (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_Counter */ -public static final String Table_Name="W_Counter"; - -/** AD_Table_ID=403 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_Counter[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set User/Contact. -@param AD_User_ID User within the system - Internal or Business Partner Contact */ -public void setAD_User_ID (int AD_User_ID) -{ -if (AD_User_ID <= 0) set_Value ("AD_User_ID", null); - else -set_Value ("AD_User_ID", Integer.valueOf(AD_User_ID)); -} -/** Get User/Contact. -@return User within the system - Internal or Business Partner Contact */ -public int getAD_User_ID() -{ -Integer ii = (Integer)get_Value("AD_User_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name AD_User_ID */ -public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; -/** Set Accept Language. -@param AcceptLanguage Language accepted based on browser information */ -public void setAcceptLanguage (String AcceptLanguage) -{ -if (AcceptLanguage != null && AcceptLanguage.length() > 60) -{ -log.warning("Length > 60 - truncated"); -AcceptLanguage = AcceptLanguage.substring(0,59); -} -set_Value ("AcceptLanguage", AcceptLanguage); -} -/** Get Accept Language. -@return Language accepted based on browser information */ -public String getAcceptLanguage() -{ -return (String)get_Value("AcceptLanguage"); -} -/** Column name AcceptLanguage */ -public static final String COLUMNNAME_AcceptLanguage = "AcceptLanguage"; -/** Set EMail Address. -@param EMail Electronic Mail Address */ -public void setEMail (String EMail) -{ -if (EMail != null && EMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -EMail = EMail.substring(0,59); -} -set_Value ("EMail", EMail); -} -/** Get EMail Address. -@return Electronic Mail Address */ -public String getEMail() -{ -return (String)get_Value("EMail"); -} -/** Column name EMail */ -public static final String COLUMNNAME_EMail = "EMail"; -/** Set Page URL. -@param PageURL Page URL */ -public void setPageURL (String PageURL) -{ -if (PageURL == null) throw new IllegalArgumentException ("PageURL is mandatory."); -if (PageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -PageURL = PageURL.substring(0,119); -} -set_Value ("PageURL", PageURL); -} -/** Get Page URL. -@return Page URL */ -public String getPageURL() -{ -return (String)get_Value("PageURL"); -} -/** Column name PageURL */ -public static final String COLUMNNAME_PageURL = "PageURL"; -/** Set Processed. -@param Processed The document has been processed */ -public void setProcessed (boolean Processed) -{ -set_Value ("Processed", Boolean.valueOf(Processed)); -} -/** Get Processed. -@return The document has been processed */ -public boolean isProcessed() -{ -Object oo = get_Value("Processed"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name Processed */ -public static final String COLUMNNAME_Processed = "Processed"; -/** Set Referrer. -@param Referrer Referring web address */ -public void setReferrer (String Referrer) -{ -if (Referrer != null && Referrer.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Referrer = Referrer.substring(0,119); -} -set_Value ("Referrer", Referrer); -} -/** Get Referrer. -@return Referring web address */ -public String getReferrer() -{ -return (String)get_Value("Referrer"); -} -/** Column name Referrer */ -public static final String COLUMNNAME_Referrer = "Referrer"; -/** Set Remote Addr. -@param Remote_Addr Remote Address */ -public void setRemote_Addr (String Remote_Addr) -{ -if (Remote_Addr == null) throw new IllegalArgumentException ("Remote_Addr is mandatory."); -if (Remote_Addr.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Remote_Addr = Remote_Addr.substring(0,59); -} -set_Value ("Remote_Addr", Remote_Addr); -} -/** Get Remote Addr. -@return Remote Address */ -public String getRemote_Addr() -{ -return (String)get_Value("Remote_Addr"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getRemote_Addr()); -} -/** Column name Remote_Addr */ -public static final String COLUMNNAME_Remote_Addr = "Remote_Addr"; -/** Set Remote Host. -@param Remote_Host Remote host Info */ -public void setRemote_Host (String Remote_Host) -{ -if (Remote_Host == null) throw new IllegalArgumentException ("Remote_Host is mandatory."); -if (Remote_Host.length() > 120) -{ -log.warning("Length > 120 - truncated"); -Remote_Host = Remote_Host.substring(0,119); -} -set_Value ("Remote_Host", Remote_Host); -} -/** Get Remote Host. -@return Remote host Info */ -public String getRemote_Host() -{ -return (String)get_Value("Remote_Host"); -} -/** Column name Remote_Host */ -public static final String COLUMNNAME_Remote_Host = "Remote_Host"; -/** Set User Agent. -@param UserAgent Browser Used */ -public void setUserAgent (String UserAgent) -{ -if (UserAgent != null && UserAgent.length() > 255) -{ -log.warning("Length > 255 - truncated"); -UserAgent = UserAgent.substring(0,254); -} -set_Value ("UserAgent", UserAgent); -} -/** Get User Agent. -@return Browser Used */ -public String getUserAgent() -{ -return (String)get_Value("UserAgent"); -} -/** Column name UserAgent */ -public static final String COLUMNNAME_UserAgent = "UserAgent"; -/** Set Counter Count. -@param W_CounterCount_ID Web Counter Count Management */ -public void setW_CounterCount_ID (int W_CounterCount_ID) -{ -if (W_CounterCount_ID <= 0) set_ValueNoCheck ("W_CounterCount_ID", null); - else -set_ValueNoCheck ("W_CounterCount_ID", Integer.valueOf(W_CounterCount_ID)); -} -/** Get Counter Count. -@return Web Counter Count Management */ -public int getW_CounterCount_ID() -{ -Integer ii = (Integer)get_Value("W_CounterCount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_CounterCount_ID */ -public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID"; -/** Set Web Counter. -@param W_Counter_ID Individual Count hit */ -public void setW_Counter_ID (int W_Counter_ID) -{ -if (W_Counter_ID < 1) throw new IllegalArgumentException ("W_Counter_ID is mandatory."); -set_ValueNoCheck ("W_Counter_ID", Integer.valueOf(W_Counter_ID)); -} -/** Get Web Counter. -@return Individual Count hit */ -public int getW_Counter_ID() -{ -Integer ii = (Integer)get_Value("W_Counter_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Counter_ID */ -public static final String COLUMNNAME_W_Counter_ID = "W_Counter_ID"; -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_Counter (Properties ctx, int W_Counter_ID, String trxName) + { + super (ctx, W_Counter_ID, trxName); + /** if (W_Counter_ID == 0) { setPageURL (null); + setProcessed (false); + setRemote_Addr (null); + setRemote_Host (null); + setW_Counter_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_Counter (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_Counter[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User/Contact. + @param AD_User_ID + User within the system - Internal or Business Partner Contact + */ + public void setAD_User_ID (int AD_User_ID) + { + if (AD_User_ID <= 0) set_Value (COLUMNNAME_AD_User_ID, null); + else + set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); + } + + /** Get User/Contact. + @return User within the system - Internal or Business Partner Contact + */ + public int getAD_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Accept Language. + @param AcceptLanguage + Language accepted based on browser information + */ + public void setAcceptLanguage (String AcceptLanguage) + { + if (AcceptLanguage != null && AcceptLanguage.length() > 60) + { + log.warning("Length > 60 - truncated"); + AcceptLanguage = AcceptLanguage.substring(0, 59); + } + set_Value (COLUMNNAME_AcceptLanguage, AcceptLanguage); + } + + /** Get Accept Language. + @return Language accepted based on browser information + */ + public String getAcceptLanguage () + { + return (String)get_Value(COLUMNNAME_AcceptLanguage); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 59); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** Set Page URL. + @param PageURL Page URL */ + public void setPageURL (String PageURL) + { + if (PageURL == null) + throw new IllegalArgumentException ("PageURL is mandatory."); + if (PageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + PageURL = PageURL.substring(0, 119); + } + set_Value (COLUMNNAME_PageURL, PageURL); + } + + /** Get Page URL. +@return Page URL */ + public String getPageURL () + { + return (String)get_Value(COLUMNNAME_PageURL); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Referrer. + @param Referrer + Referring web address + */ + public void setReferrer (String Referrer) + { + if (Referrer != null && Referrer.length() > 120) + { + log.warning("Length > 120 - truncated"); + Referrer = Referrer.substring(0, 119); + } + set_Value (COLUMNNAME_Referrer, Referrer); + } + + /** Get Referrer. + @return Referring web address + */ + public String getReferrer () + { + return (String)get_Value(COLUMNNAME_Referrer); + } + + /** Set Remote Addr. + @param Remote_Addr + Remote Address + */ + public void setRemote_Addr (String Remote_Addr) + { + if (Remote_Addr == null) + throw new IllegalArgumentException ("Remote_Addr is mandatory."); + if (Remote_Addr.length() > 60) + { + log.warning("Length > 60 - truncated"); + Remote_Addr = Remote_Addr.substring(0, 59); + } + set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); + } + + /** Get Remote Addr. + @return Remote Address + */ + public String getRemote_Addr () + { + return (String)get_Value(COLUMNNAME_Remote_Addr); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getRemote_Addr()); + } + + /** Set Remote Host. + @param Remote_Host + Remote host Info + */ + public void setRemote_Host (String Remote_Host) + { + if (Remote_Host == null) + throw new IllegalArgumentException ("Remote_Host is mandatory."); + if (Remote_Host.length() > 120) + { + log.warning("Length > 120 - truncated"); + Remote_Host = Remote_Host.substring(0, 119); + } + set_Value (COLUMNNAME_Remote_Host, Remote_Host); + } + + /** Get Remote Host. + @return Remote host Info + */ + public String getRemote_Host () + { + return (String)get_Value(COLUMNNAME_Remote_Host); + } + + /** Set User Agent. + @param UserAgent + Browser Used + */ + public void setUserAgent (String UserAgent) + { + if (UserAgent != null && UserAgent.length() > 255) + { + log.warning("Length > 255 - truncated"); + UserAgent = UserAgent.substring(0, 254); + } + set_Value (COLUMNNAME_UserAgent, UserAgent); + } + + /** Get User Agent. + @return Browser Used + */ + public String getUserAgent () + { + return (String)get_Value(COLUMNNAME_UserAgent); + } + + public I_W_CounterCount getI_W_CounterCount() throws Exception + { + 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 e; + } + return result; + } + + /** Set Counter Count. + @param W_CounterCount_ID + Web Counter Count Management + */ + public void setW_CounterCount_ID (int W_CounterCount_ID) + { + if (W_CounterCount_ID <= 0) set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, null); + else + set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID)); + } + + /** Get Counter Count. + @return Web Counter Count Management + */ + public int getW_CounterCount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_CounterCount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Counter. + @param W_Counter_ID + Individual Count hit + */ + public void setW_Counter_ID (int W_Counter_ID) + { + if (W_Counter_ID < 1) + throw new IllegalArgumentException ("W_Counter_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_Counter_ID, Integer.valueOf(W_Counter_ID)); + } + + /** Get Web Counter. + @return Individual Count hit + */ + public int getW_Counter_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Counter_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_CounterCount.java b/base/src/org/compiere/model/X_W_CounterCount.java index 9fddb20dc9..93dbf263fd 100644 --- a/base/src/org/compiere/model/X_W_CounterCount.java +++ b/base/src/org/compiere/model/X_W_CounterCount.java @@ -1,209 +1,215 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_CounterCount - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_CounterCount extends PO + +/** Generated Model for W_CounterCount + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_CounterCount extends PO implements I_W_CounterCount, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_CounterCount_ID id -@param trxName transaction -*/ -public X_W_CounterCount (Properties ctx, int W_CounterCount_ID, String trxName) -{ -super (ctx, W_CounterCount_ID, trxName); -/** if (W_CounterCount_ID == 0) -{ -setName (null); -setPageURL (null); -setW_CounterCount_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_CounterCount (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_CounterCount */ -public static final String Table_Name="W_CounterCount"; - -/** AD_Table_ID=552 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(3); -/** AccessLevel -@return 3 - Client - Org -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_CounterCount[").append(get_ID()).append("]"); -return sb.toString(); -} + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_CounterCount (Properties ctx, int W_CounterCount_ID, String trxName) + { + super (ctx, W_CounterCount_ID, trxName); + /** if (W_CounterCount_ID == 0) { setName (null); + setPageURL (null); + setW_CounterCount_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_CounterCount (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_CounterCount[") + .append(get_ID()).append("]"); + return sb.toString(); + } /** C_BPartner_ID AD_Reference_ID=232 */ public static final int C_BPARTNER_ID_AD_Reference_ID=232; -/** Set Business Partner . -@param C_BPartner_ID Identifies a Business Partner */ -public void setC_BPartner_ID (int C_BPartner_ID) -{ -if (C_BPartner_ID <= 0) set_Value ("C_BPartner_ID", null); - else -set_Value ("C_BPartner_ID", Integer.valueOf(C_BPartner_ID)); -} -/** Get Business Partner . -@return Identifies a Business Partner */ -public int getC_BPartner_ID() -{ -Integer ii = (Integer)get_Value("C_BPartner_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_BPartner_ID */ -public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID"; -/** Set Counter. -@param Counter Count Value */ -public void setCounter (int Counter) -{ -throw new IllegalArgumentException ("Counter is virtual column"); -} -/** Get Counter. -@return Count Value */ -public int getCounter() -{ -Integer ii = (Integer)get_Value("Counter"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name Counter */ -public static final String COLUMNNAME_Counter = "Counter"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Page URL. -@param PageURL Page URL */ -public void setPageURL (String PageURL) -{ -if (PageURL == null) throw new IllegalArgumentException ("PageURL is mandatory."); -if (PageURL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -PageURL = PageURL.substring(0,119); -} -set_Value ("PageURL", PageURL); -} -/** Get Page URL. -@return Page URL */ -public String getPageURL() -{ -return (String)get_Value("PageURL"); -} -/** Column name PageURL */ -public static final String COLUMNNAME_PageURL = "PageURL"; -/** Set Counter Count. -@param W_CounterCount_ID Web Counter Count Management */ -public void setW_CounterCount_ID (int W_CounterCount_ID) -{ -if (W_CounterCount_ID < 1) throw new IllegalArgumentException ("W_CounterCount_ID is mandatory."); -set_ValueNoCheck ("W_CounterCount_ID", Integer.valueOf(W_CounterCount_ID)); -} -/** Get Counter Count. -@return Web Counter Count Management */ -public int getW_CounterCount_ID() -{ -Integer ii = (Integer)get_Value("W_CounterCount_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_CounterCount_ID */ -public static final String COLUMNNAME_W_CounterCount_ID = "W_CounterCount_ID"; -} + /** Set Business Partner . + @param C_BPartner_ID + Identifies a Business Partner + */ + public void setC_BPartner_ID (int C_BPartner_ID) + { + if (C_BPartner_ID <= 0) set_Value (COLUMNNAME_C_BPartner_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); + } + + /** Get Business Partner . + @return Identifies a Business Partner + */ + public int getC_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Counter. + @param Counter + Count Value + */ + public void setCounter (int Counter) + { + throw new IllegalArgumentException ("Counter is virtual column"); } + + /** Get Counter. + @return Count Value + */ + public int getCounter () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Counter); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Page URL. + @param PageURL Page URL */ + public void setPageURL (String PageURL) + { + if (PageURL == null) + throw new IllegalArgumentException ("PageURL is mandatory."); + if (PageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + PageURL = PageURL.substring(0, 119); + } + set_Value (COLUMNNAME_PageURL, PageURL); + } + + /** Get Page URL. +@return Page URL */ + public String getPageURL () + { + return (String)get_Value(COLUMNNAME_PageURL); + } + + /** Set Counter Count. + @param W_CounterCount_ID + Web Counter Count Management + */ + public void setW_CounterCount_ID (int W_CounterCount_ID) + { + if (W_CounterCount_ID < 1) + throw new IllegalArgumentException ("W_CounterCount_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_CounterCount_ID, Integer.valueOf(W_CounterCount_ID)); + } + + /** Get Counter Count. + @return Web Counter Count Management + */ + public int getW_CounterCount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_CounterCount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_MailMsg.java b/base/src/org/compiere/model/X_W_MailMsg.java index 3aef8e3c26..7454eb5f81 100644 --- a/base/src/org/compiere/model/X_W_MailMsg.java +++ b/base/src/org/compiere/model/X_W_MailMsg.java @@ -1,293 +1,317 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_MailMsg - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_MailMsg extends PO + +/** Generated Model for W_MailMsg + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_MailMsg extends PO implements I_W_MailMsg, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_MailMsg_ID id -@param trxName transaction -*/ -public X_W_MailMsg (Properties ctx, int W_MailMsg_ID, String trxName) -{ -super (ctx, W_MailMsg_ID, trxName); -/** if (W_MailMsg_ID == 0) -{ -setMailMsgType (null); -setMessage (null); -setName (null); -setSubject (null); -setW_MailMsg_ID (0); -setW_Store_ID (0); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_MailMsg (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_MailMsg */ -public static final String Table_Name="W_MailMsg"; - -/** AD_Table_ID=780 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_MailMsg[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_MailMsg (Properties ctx, int W_MailMsg_ID, String trxName) + { + super (ctx, W_MailMsg_ID, trxName); + /** if (W_MailMsg_ID == 0) { setMailMsgType (null); + setMessage (null); + setName (null); + setSubject (null); + setW_MailMsg_ID (0); + setW_Store_ID (0); +} */ + } + + /** Load Constructor */ + public X_W_MailMsg (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_MailMsg[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } /** MailMsgType AD_Reference_ID=342 */ -public static final int MAILMSGTYPE_AD_Reference_ID=342; -/** Subscribe = LS */ -public static final String MAILMSGTYPE_Subscribe = "LS"; -/** UnSubscribe = LU */ -public static final String MAILMSGTYPE_UnSubscribe = "LU"; -/** Order Acknowledgement = OA */ -public static final String MAILMSGTYPE_OrderAcknowledgement = "OA"; -/** Payment Acknowledgement = PA */ -public static final String MAILMSGTYPE_PaymentAcknowledgement = "PA"; -/** Payment Error = PE */ -public static final String MAILMSGTYPE_PaymentError = "PE"; -/** User Account = UA */ -public static final String MAILMSGTYPE_UserAccount = "UA"; -/** User Password = UP */ -public static final String MAILMSGTYPE_UserPassword = "UP"; -/** User Verification = UV */ -public static final String MAILMSGTYPE_UserVerification = "UV"; -/** Request = WR */ +public static final int MAILMSGTYPE_AD_Reference_ID=342;/** Subscribe = LS */ +public static final String MAILMSGTYPE_Subscribe = "LS";/** UnSubscribe = LU */ +public static final String MAILMSGTYPE_UnSubscribe = "LU";/** Order Acknowledgement = OA */ +public static final String MAILMSGTYPE_OrderAcknowledgement = "OA";/** Payment Acknowledgement = PA */ +public static final String MAILMSGTYPE_PaymentAcknowledgement = "PA";/** Payment Error = PE */ +public static final String MAILMSGTYPE_PaymentError = "PE";/** User Account = UA */ +public static final String MAILMSGTYPE_UserAccount = "UA";/** User Password = UP */ +public static final String MAILMSGTYPE_UserPassword = "UP";/** User Verification = UV */ +public static final String MAILMSGTYPE_UserVerification = "UV";/** Request = WR */ public static final String MAILMSGTYPE_Request = "WR"; -/** Set Message Type. -@param MailMsgType Mail Message Type */ -public void setMailMsgType (String MailMsgType) -{ -if (MailMsgType == null) throw new IllegalArgumentException ("MailMsgType is mandatory"); -if (MailMsgType.equals("LS") || MailMsgType.equals("LU") || MailMsgType.equals("OA") || MailMsgType.equals("PA") || MailMsgType.equals("PE") || MailMsgType.equals("UA") || MailMsgType.equals("UP") || MailMsgType.equals("UV") || MailMsgType.equals("WR")); - else throw new IllegalArgumentException ("MailMsgType Invalid value - " + MailMsgType + " - Reference_ID=342 - LS - LU - OA - PA - PE - UA - UP - UV - WR"); -if (MailMsgType.length() > 2) -{ -log.warning("Length > 2 - truncated"); -MailMsgType = MailMsgType.substring(0,1); -} -set_Value ("MailMsgType", MailMsgType); -} -/** Get Message Type. -@return Mail Message Type */ -public String getMailMsgType() -{ -return (String)get_Value("MailMsgType"); -} -/** Column name MailMsgType */ -public static final String COLUMNNAME_MailMsgType = "MailMsgType"; -/** Set Message. -@param Message EMail Message */ -public void setMessage (String Message) -{ -if (Message == null) throw new IllegalArgumentException ("Message is mandatory."); -if (Message.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Message = Message.substring(0,1999); -} -set_Value ("Message", Message); -} -/** Get Message. -@return EMail Message */ -public String getMessage() -{ -return (String)get_Value("Message"); -} -/** Column name Message */ -public static final String COLUMNNAME_Message = "Message"; -/** Set Message 2. -@param Message2 Optional second part of the EMail Message */ -public void setMessage2 (String Message2) -{ -if (Message2 != null && Message2.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Message2 = Message2.substring(0,1999); -} -set_Value ("Message2", Message2); -} -/** Get Message 2. -@return Optional second part of the EMail Message */ -public String getMessage2() -{ -return (String)get_Value("Message2"); -} -/** Column name Message2 */ -public static final String COLUMNNAME_Message2 = "Message2"; -/** Set Message 3. -@param Message3 Optional third part of the EMail Message */ -public void setMessage3 (String Message3) -{ -if (Message3 != null && Message3.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Message3 = Message3.substring(0,1999); -} -set_Value ("Message3", Message3); -} -/** Get Message 3. -@return Optional third part of the EMail Message */ -public String getMessage3() -{ -return (String)get_Value("Message3"); -} -/** Column name Message3 */ -public static final String COLUMNNAME_Message3 = "Message3"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; -/** Set Subject. -@param Subject Email Message Subject */ -public void setSubject (String Subject) -{ -if (Subject == null) throw new IllegalArgumentException ("Subject is mandatory."); -if (Subject.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Subject = Subject.substring(0,254); -} -set_Value ("Subject", Subject); -} -/** Get Subject. -@return Email Message Subject */ -public String getSubject() -{ -return (String)get_Value("Subject"); -} -/** Column name Subject */ -public static final String COLUMNNAME_Subject = "Subject"; -/** Set Mail Message. -@param W_MailMsg_ID Web Store Mail Message Template */ -public void setW_MailMsg_ID (int W_MailMsg_ID) -{ -if (W_MailMsg_ID < 1) throw new IllegalArgumentException ("W_MailMsg_ID is mandatory."); -set_ValueNoCheck ("W_MailMsg_ID", Integer.valueOf(W_MailMsg_ID)); -} -/** Get Mail Message. -@return Web Store Mail Message Template */ -public int getW_MailMsg_ID() -{ -Integer ii = (Integer)get_Value("W_MailMsg_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_MailMsg_ID */ -public static final String COLUMNNAME_W_MailMsg_ID = "W_MailMsg_ID"; -/** Set Web Store. -@param W_Store_ID A Web Store of the Client */ -public void setW_Store_ID (int W_Store_ID) -{ -if (W_Store_ID < 1) throw new IllegalArgumentException ("W_Store_ID is mandatory."); -set_Value ("W_Store_ID", Integer.valueOf(W_Store_ID)); -} -/** Get Web Store. -@return A Web Store of the Client */ -public int getW_Store_ID() -{ -Integer ii = (Integer)get_Value("W_Store_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Store_ID */ -public static final String COLUMNNAME_W_Store_ID = "W_Store_ID"; -} + /** Set Message Type. + @param MailMsgType + Mail Message Type + */ + public void setMailMsgType (String MailMsgType) + { +if (MailMsgType == null) throw new IllegalArgumentException ("MailMsgType is mandatory");if (MailMsgType.equals("LS") || MailMsgType.equals("LU") || MailMsgType.equals("OA") || MailMsgType.equals("PA") || MailMsgType.equals("PE") || MailMsgType.equals("UA") || MailMsgType.equals("UP") || MailMsgType.equals("UV") || MailMsgType.equals("WR")); else throw new IllegalArgumentException ("MailMsgType Invalid value - " + MailMsgType + " - Reference_ID=342 - LS - LU - OA - PA - PE - UA - UP - UV - WR"); if (MailMsgType.length() > 2) + { + log.warning("Length > 2 - truncated"); + MailMsgType = MailMsgType.substring(0, 1); + } + set_Value (COLUMNNAME_MailMsgType, MailMsgType); + } + + /** Get Message Type. + @return Mail Message Type + */ + public String getMailMsgType () + { + return (String)get_Value(COLUMNNAME_MailMsgType); + } + + /** Set Message. + @param Message + EMail Message + */ + public void setMessage (String Message) + { + if (Message == null) + throw new IllegalArgumentException ("Message is mandatory."); + if (Message.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Message = Message.substring(0, 1999); + } + set_Value (COLUMNNAME_Message, Message); + } + + /** Get Message. + @return EMail Message + */ + public String getMessage () + { + return (String)get_Value(COLUMNNAME_Message); + } + + /** Set Message 2. + @param Message2 + Optional second part of the EMail Message + */ + public void setMessage2 (String Message2) + { + if (Message2 != null && Message2.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Message2 = Message2.substring(0, 1999); + } + set_Value (COLUMNNAME_Message2, Message2); + } + + /** Get Message 2. + @return Optional second part of the EMail Message + */ + public String getMessage2 () + { + return (String)get_Value(COLUMNNAME_Message2); + } + + /** Set Message 3. + @param Message3 + Optional third part of the EMail Message + */ + public void setMessage3 (String Message3) + { + if (Message3 != null && Message3.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Message3 = Message3.substring(0, 1999); + } + set_Value (COLUMNNAME_Message3, Message3); + } + + /** Get Message 3. + @return Optional third part of the EMail Message + */ + public String getMessage3 () + { + return (String)get_Value(COLUMNNAME_Message3); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } + + /** Set Subject. + @param Subject + Email Message Subject + */ + public void setSubject (String Subject) + { + if (Subject == null) + throw new IllegalArgumentException ("Subject is mandatory."); + if (Subject.length() > 255) + { + log.warning("Length > 255 - truncated"); + Subject = Subject.substring(0, 254); + } + set_Value (COLUMNNAME_Subject, Subject); + } + + /** Get Subject. + @return Email Message Subject + */ + public String getSubject () + { + return (String)get_Value(COLUMNNAME_Subject); + } + + /** Set Mail Message. + @param W_MailMsg_ID + Web Store Mail Message Template + */ + public void setW_MailMsg_ID (int W_MailMsg_ID) + { + if (W_MailMsg_ID < 1) + throw new IllegalArgumentException ("W_MailMsg_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_MailMsg_ID, Integer.valueOf(W_MailMsg_ID)); + } + + /** Get Mail Message. + @return Web Store Mail Message Template + */ + public int getW_MailMsg_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_MailMsg_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_W_Store getI_W_Store() throws Exception + { + 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 e; + } + return result; + } + + /** Set Web Store. + @param W_Store_ID + A Web Store of the Client + */ + public void setW_Store_ID (int W_Store_ID) + { + if (W_Store_ID < 1) + throw new IllegalArgumentException ("W_Store_ID is mandatory."); + set_Value (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID)); + } + + /** Get Web Store. + @return A Web Store of the Client + */ + public int getW_Store_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Store_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_W_Store.java b/base/src/org/compiere/model/X_W_Store.java index 437dda5f2e..f725a25326 100644 --- a/base/src/org/compiere/model/X_W_Store.java +++ b/base/src/org/compiere/model/X_W_Store.java @@ -1,784 +1,957 @@ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * - * This program is free software; - you can redistribute it and/or modify it * + * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; - without even the implied * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * - * with this program; - if not, write to the Free Software Foundation, Inc., * + * with this program; if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ package org.compiere.model; - -/** Generated Model - DO NOT CHANGE */ + import java.util.*; import java.sql.*; import java.math.*; +import java.lang.reflect.Constructor; +import java.util.logging.Level; import org.compiere.util.*; -/** Generated Model for W_Store - * @author Adempiere (generated) - * @version Release 3.3.0 - $Id$ */ -public class X_W_Store extends PO + +/** Generated Model for W_Store + * @author Adempiere (generated) + * @version Release 3.3.0 - $Id$ */ +public class X_W_Store extends PO implements I_W_Store, I_Persistent { -/** Standard Constructor -@param ctx context -@param W_Store_ID id -@param trxName transaction -*/ -public X_W_Store (Properties ctx, int W_Store_ID, String trxName) -{ -super (ctx, W_Store_ID, trxName); -/** if (W_Store_ID == 0) -{ -setC_PaymentTerm_ID (0); -setIsDefault (false); -setIsMenuAssets (true); // Y -setIsMenuContact (true); // Y -setIsMenuInterests (true); // Y -setIsMenuInvoices (true); // Y -setIsMenuOrders (true); // Y -setIsMenuPayments (true); // Y -setIsMenuRegistrations (true); // Y -setIsMenuRequests (true); // Y -setIsMenuRfQs (true); // Y -setIsMenuShipments (true); // Y -setM_PriceList_ID (0); -setM_Warehouse_ID (0); -setName (null); -setSalesRep_ID (0); -setURL (null); -setW_Store_ID (0); -setWebContext (null); -} - */ -} -/** Load Constructor -@param ctx context -@param rs result set -@param trxName transaction -*/ -public X_W_Store (Properties ctx, ResultSet rs, String trxName) -{ -super (ctx, rs, trxName); -} -/** TableName=W_Store */ -public static final String Table_Name="W_Store"; - -/** AD_Table_ID=778 */ -public static final int Table_ID=MTable.getTable_ID(Table_Name); - -protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); - -protected BigDecimal accessLevel = BigDecimal.valueOf(2); -/** AccessLevel -@return 2 - Client -*/ -protected int get_AccessLevel() -{ -return accessLevel.intValue(); -} -/** Load Meta Data -@param ctx context -@return PO Info -*/ -protected POInfo initPO (Properties ctx) -{ -POInfo poi = POInfo.getPOInfo (ctx, Table_ID); -return poi; -} -/** Info -@return info -*/ -public String toString() -{ -StringBuffer sb = new StringBuffer ("X_W_Store[").append(get_ID()).append("]"); -return sb.toString(); -} -/** Set Payment Term. -@param C_PaymentTerm_ID The terms of Payment (timing, discount) */ -public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) -{ -if (C_PaymentTerm_ID < 1) throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); -set_Value ("C_PaymentTerm_ID", Integer.valueOf(C_PaymentTerm_ID)); -} -/** Get Payment Term. -@return The terms of Payment (timing, discount) */ -public int getC_PaymentTerm_ID() -{ -Integer ii = (Integer)get_Value("C_PaymentTerm_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name C_PaymentTerm_ID */ -public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; -/** Set Description. -@param Description Optional short description of the record */ -public void setDescription (String Description) -{ -if (Description != null && Description.length() > 255) -{ -log.warning("Length > 255 - truncated"); -Description = Description.substring(0,254); -} -set_Value ("Description", Description); -} -/** Get Description. -@return Optional short description of the record */ -public String getDescription() -{ -return (String)get_Value("Description"); -} -/** Column name Description */ -public static final String COLUMNNAME_Description = "Description"; -/** Set EMail Footer. -@param EMailFooter Footer added to EMails */ -public void setEMailFooter (String EMailFooter) -{ -if (EMailFooter != null && EMailFooter.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -EMailFooter = EMailFooter.substring(0,1999); -} -set_Value ("EMailFooter", EMailFooter); -} -/** Get EMail Footer. -@return Footer added to EMails */ -public String getEMailFooter() -{ -return (String)get_Value("EMailFooter"); -} -/** Column name EMailFooter */ -public static final String COLUMNNAME_EMailFooter = "EMailFooter"; -/** Set EMail Header. -@param EMailHeader Header added to EMails */ -public void setEMailHeader (String EMailHeader) -{ -if (EMailHeader != null && EMailHeader.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -EMailHeader = EMailHeader.substring(0,1999); -} -set_Value ("EMailHeader", EMailHeader); -} -/** Get EMail Header. -@return Header added to EMails */ -public String getEMailHeader() -{ -return (String)get_Value("EMailHeader"); -} -/** Column name EMailHeader */ -public static final String COLUMNNAME_EMailHeader = "EMailHeader"; -/** Set Comment/Help. -@param Help Comment or Hint */ -public void setHelp (String Help) -{ -if (Help != null && Help.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -Help = Help.substring(0,1999); -} -set_Value ("Help", Help); -} -/** Get Comment/Help. -@return Comment or Hint */ -public String getHelp() -{ -return (String)get_Value("Help"); -} -/** Column name Help */ -public static final String COLUMNNAME_Help = "Help"; -/** Set Default. -@param IsDefault Default value */ -public void setIsDefault (boolean IsDefault) -{ -set_Value ("IsDefault", Boolean.valueOf(IsDefault)); -} -/** Get Default. -@return Default value */ -public boolean isDefault() -{ -Object oo = get_Value("IsDefault"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsDefault */ -public static final String COLUMNNAME_IsDefault = "IsDefault"; -/** Set Menu Assets. -@param IsMenuAssets Show Menu Assets */ -public void setIsMenuAssets (boolean IsMenuAssets) -{ -set_Value ("IsMenuAssets", Boolean.valueOf(IsMenuAssets)); -} -/** Get Menu Assets. -@return Show Menu Assets */ -public boolean isMenuAssets() -{ -Object oo = get_Value("IsMenuAssets"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuAssets */ -public static final String COLUMNNAME_IsMenuAssets = "IsMenuAssets"; -/** Set Menu Contact. -@param IsMenuContact Show Menu Contact */ -public void setIsMenuContact (boolean IsMenuContact) -{ -set_Value ("IsMenuContact", Boolean.valueOf(IsMenuContact)); -} -/** Get Menu Contact. -@return Show Menu Contact */ -public boolean isMenuContact() -{ -Object oo = get_Value("IsMenuContact"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuContact */ -public static final String COLUMNNAME_IsMenuContact = "IsMenuContact"; -/** Set Menu Interests. -@param IsMenuInterests Show Menu Interests */ -public void setIsMenuInterests (boolean IsMenuInterests) -{ -set_Value ("IsMenuInterests", Boolean.valueOf(IsMenuInterests)); -} -/** Get Menu Interests. -@return Show Menu Interests */ -public boolean isMenuInterests() -{ -Object oo = get_Value("IsMenuInterests"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuInterests */ -public static final String COLUMNNAME_IsMenuInterests = "IsMenuInterests"; -/** Set Menu Invoices. -@param IsMenuInvoices Show Menu Invoices */ -public void setIsMenuInvoices (boolean IsMenuInvoices) -{ -set_Value ("IsMenuInvoices", Boolean.valueOf(IsMenuInvoices)); -} -/** Get Menu Invoices. -@return Show Menu Invoices */ -public boolean isMenuInvoices() -{ -Object oo = get_Value("IsMenuInvoices"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuInvoices */ -public static final String COLUMNNAME_IsMenuInvoices = "IsMenuInvoices"; -/** Set Menu Orders. -@param IsMenuOrders Show Menu Orders */ -public void setIsMenuOrders (boolean IsMenuOrders) -{ -set_Value ("IsMenuOrders", Boolean.valueOf(IsMenuOrders)); -} -/** Get Menu Orders. -@return Show Menu Orders */ -public boolean isMenuOrders() -{ -Object oo = get_Value("IsMenuOrders"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuOrders */ -public static final String COLUMNNAME_IsMenuOrders = "IsMenuOrders"; -/** Set Menu Payments. -@param IsMenuPayments Show Menu Payments */ -public void setIsMenuPayments (boolean IsMenuPayments) -{ -set_Value ("IsMenuPayments", Boolean.valueOf(IsMenuPayments)); -} -/** Get Menu Payments. -@return Show Menu Payments */ -public boolean isMenuPayments() -{ -Object oo = get_Value("IsMenuPayments"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuPayments */ -public static final String COLUMNNAME_IsMenuPayments = "IsMenuPayments"; -/** Set Menu Registrations. -@param IsMenuRegistrations Show Menu Registrations */ -public void setIsMenuRegistrations (boolean IsMenuRegistrations) -{ -set_Value ("IsMenuRegistrations", Boolean.valueOf(IsMenuRegistrations)); -} -/** Get Menu Registrations. -@return Show Menu Registrations */ -public boolean isMenuRegistrations() -{ -Object oo = get_Value("IsMenuRegistrations"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuRegistrations */ -public static final String COLUMNNAME_IsMenuRegistrations = "IsMenuRegistrations"; -/** Set Menu Requests. -@param IsMenuRequests Show Menu Requests */ -public void setIsMenuRequests (boolean IsMenuRequests) -{ -set_Value ("IsMenuRequests", Boolean.valueOf(IsMenuRequests)); -} -/** Get Menu Requests. -@return Show Menu Requests */ -public boolean isMenuRequests() -{ -Object oo = get_Value("IsMenuRequests"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuRequests */ -public static final String COLUMNNAME_IsMenuRequests = "IsMenuRequests"; -/** Set Menu RfQs. -@param IsMenuRfQs Show Menu RfQs */ -public void setIsMenuRfQs (boolean IsMenuRfQs) -{ -set_Value ("IsMenuRfQs", Boolean.valueOf(IsMenuRfQs)); -} -/** Get Menu RfQs. -@return Show Menu RfQs */ -public boolean isMenuRfQs() -{ -Object oo = get_Value("IsMenuRfQs"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuRfQs */ -public static final String COLUMNNAME_IsMenuRfQs = "IsMenuRfQs"; -/** Set Menu Shipments. -@param IsMenuShipments Show Menu Shipments */ -public void setIsMenuShipments (boolean IsMenuShipments) -{ -set_Value ("IsMenuShipments", Boolean.valueOf(IsMenuShipments)); -} -/** Get Menu Shipments. -@return Show Menu Shipments */ -public boolean isMenuShipments() -{ -Object oo = get_Value("IsMenuShipments"); -if (oo != null) -{ - if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); - return "Y".equals(oo); -} -return false; -} -/** Column name IsMenuShipments */ -public static final String COLUMNNAME_IsMenuShipments = "IsMenuShipments"; -/** Set Price List. -@param M_PriceList_ID Unique identifier of a Price List */ -public void setM_PriceList_ID (int M_PriceList_ID) -{ -if (M_PriceList_ID < 1) throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); -set_Value ("M_PriceList_ID", Integer.valueOf(M_PriceList_ID)); -} -/** Get Price List. -@return Unique identifier of a Price List */ -public int getM_PriceList_ID() -{ -Integer ii = (Integer)get_Value("M_PriceList_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_PriceList_ID */ -public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; -/** Set Warehouse. -@param M_Warehouse_ID Storage Warehouse and Service Point */ -public void setM_Warehouse_ID (int M_Warehouse_ID) -{ -if (M_Warehouse_ID < 1) throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); -set_Value ("M_Warehouse_ID", Integer.valueOf(M_Warehouse_ID)); -} -/** Get Warehouse. -@return Storage Warehouse and Service Point */ -public int getM_Warehouse_ID() -{ -Integer ii = (Integer)get_Value("M_Warehouse_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name M_Warehouse_ID */ -public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; -/** Set Name. -@param Name Alphanumeric identifier of the entity */ -public void setName (String Name) -{ -if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); -if (Name.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Name = Name.substring(0,59); -} -set_Value ("Name", Name); -} -/** Get Name. -@return Alphanumeric identifier of the entity */ -public String getName() -{ -return (String)get_Value("Name"); -} -/** Get Record ID/ColumnName -@return ID/ColumnName pair -*/public KeyNamePair getKeyNamePair() -{ -return new KeyNamePair(get_ID(), getName()); -} -/** Column name Name */ -public static final String COLUMNNAME_Name = "Name"; + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_W_Store (Properties ctx, int W_Store_ID, String trxName) + { + super (ctx, W_Store_ID, trxName); + /** if (W_Store_ID == 0) { setC_PaymentTerm_ID (0); + setIsDefault (false); + setIsMenuAssets (true); +// Y + setIsMenuContact (true); +// Y + setIsMenuInterests (true); +// Y + setIsMenuInvoices (true); +// Y + setIsMenuOrders (true); +// Y + setIsMenuPayments (true); +// Y + setIsMenuRegistrations (true); +// Y + setIsMenuRequests (true); +// Y + setIsMenuRfQs (true); +// Y + setIsMenuShipments (true); +// Y + setM_PriceList_ID (0); + setM_Warehouse_ID (0); + setName (null); + setSalesRep_ID (0); + setURL (null); + setW_Store_ID (0); + setWebContext (null); +} */ + } + + /** Load Constructor */ + public X_W_Store (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID); + return poi; + } + + public String toString() + { + StringBuffer sb = new StringBuffer ("X_W_Store[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_PaymentTerm getI_C_PaymentTerm() throws Exception + { + 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 e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 254); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set EMail Footer. + @param EMailFooter + Footer added to EMails + */ + public void setEMailFooter (String EMailFooter) + { + if (EMailFooter != null && EMailFooter.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + EMailFooter = EMailFooter.substring(0, 1999); + } + set_Value (COLUMNNAME_EMailFooter, EMailFooter); + } + + /** Get EMail Footer. + @return Footer added to EMails + */ + public String getEMailFooter () + { + return (String)get_Value(COLUMNNAME_EMailFooter); + } + + /** Set EMail Header. + @param EMailHeader + Header added to EMails + */ + public void setEMailHeader (String EMailHeader) + { + if (EMailHeader != null && EMailHeader.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + EMailHeader = EMailHeader.substring(0, 1999); + } + set_Value (COLUMNNAME_EMailHeader, EMailHeader); + } + + /** Get EMail Header. + @return Header added to EMails + */ + public String getEMailHeader () + { + return (String)get_Value(COLUMNNAME_EMailHeader); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 1999); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Assets. + @param IsMenuAssets + Show Menu Assets + */ + public void setIsMenuAssets (boolean IsMenuAssets) + { + set_Value (COLUMNNAME_IsMenuAssets, Boolean.valueOf(IsMenuAssets)); + } + + /** Get Menu Assets. + @return Show Menu Assets + */ + public boolean isMenuAssets () + { + Object oo = get_Value(COLUMNNAME_IsMenuAssets); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Contact. + @param IsMenuContact + Show Menu Contact + */ + public void setIsMenuContact (boolean IsMenuContact) + { + set_Value (COLUMNNAME_IsMenuContact, Boolean.valueOf(IsMenuContact)); + } + + /** Get Menu Contact. + @return Show Menu Contact + */ + public boolean isMenuContact () + { + Object oo = get_Value(COLUMNNAME_IsMenuContact); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Interests. + @param IsMenuInterests + Show Menu Interests + */ + public void setIsMenuInterests (boolean IsMenuInterests) + { + set_Value (COLUMNNAME_IsMenuInterests, Boolean.valueOf(IsMenuInterests)); + } + + /** Get Menu Interests. + @return Show Menu Interests + */ + public boolean isMenuInterests () + { + Object oo = get_Value(COLUMNNAME_IsMenuInterests); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Invoices. + @param IsMenuInvoices + Show Menu Invoices + */ + public void setIsMenuInvoices (boolean IsMenuInvoices) + { + set_Value (COLUMNNAME_IsMenuInvoices, Boolean.valueOf(IsMenuInvoices)); + } + + /** Get Menu Invoices. + @return Show Menu Invoices + */ + public boolean isMenuInvoices () + { + Object oo = get_Value(COLUMNNAME_IsMenuInvoices); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Orders. + @param IsMenuOrders + Show Menu Orders + */ + public void setIsMenuOrders (boolean IsMenuOrders) + { + set_Value (COLUMNNAME_IsMenuOrders, Boolean.valueOf(IsMenuOrders)); + } + + /** Get Menu Orders. + @return Show Menu Orders + */ + public boolean isMenuOrders () + { + Object oo = get_Value(COLUMNNAME_IsMenuOrders); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Payments. + @param IsMenuPayments + Show Menu Payments + */ + public void setIsMenuPayments (boolean IsMenuPayments) + { + set_Value (COLUMNNAME_IsMenuPayments, Boolean.valueOf(IsMenuPayments)); + } + + /** Get Menu Payments. + @return Show Menu Payments + */ + public boolean isMenuPayments () + { + Object oo = get_Value(COLUMNNAME_IsMenuPayments); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Registrations. + @param IsMenuRegistrations + Show Menu Registrations + */ + public void setIsMenuRegistrations (boolean IsMenuRegistrations) + { + set_Value (COLUMNNAME_IsMenuRegistrations, Boolean.valueOf(IsMenuRegistrations)); + } + + /** Get Menu Registrations. + @return Show Menu Registrations + */ + public boolean isMenuRegistrations () + { + Object oo = get_Value(COLUMNNAME_IsMenuRegistrations); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Requests. + @param IsMenuRequests + Show Menu Requests + */ + public void setIsMenuRequests (boolean IsMenuRequests) + { + set_Value (COLUMNNAME_IsMenuRequests, Boolean.valueOf(IsMenuRequests)); + } + + /** Get Menu Requests. + @return Show Menu Requests + */ + public boolean isMenuRequests () + { + Object oo = get_Value(COLUMNNAME_IsMenuRequests); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu RfQs. + @param IsMenuRfQs + Show Menu RfQs + */ + public void setIsMenuRfQs (boolean IsMenuRfQs) + { + set_Value (COLUMNNAME_IsMenuRfQs, Boolean.valueOf(IsMenuRfQs)); + } + + /** Get Menu RfQs. + @return Show Menu RfQs + */ + public boolean isMenuRfQs () + { + Object oo = get_Value(COLUMNNAME_IsMenuRfQs); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Menu Shipments. + @param IsMenuShipments + Show Menu Shipments + */ + public void setIsMenuShipments (boolean IsMenuShipments) + { + set_Value (COLUMNNAME_IsMenuShipments, Boolean.valueOf(IsMenuShipments)); + } + + /** Get Menu Shipments. + @return Show Menu Shipments + */ + public boolean isMenuShipments () + { + Object oo = get_Value(COLUMNNAME_IsMenuShipments); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getI_M_PriceList() throws Exception + { + 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 e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getI_M_Warehouse() throws Exception + { + 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 e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 59); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getName()); + } /** SalesRep_ID AD_Reference_ID=190 */ public static final int SALESREP_ID_AD_Reference_ID=190; -/** Set Sales Representative. -@param SalesRep_ID Sales Representative or Company Agent */ -public void setSalesRep_ID (int SalesRep_ID) -{ -if (SalesRep_ID < 1) throw new IllegalArgumentException ("SalesRep_ID is mandatory."); -set_Value ("SalesRep_ID", Integer.valueOf(SalesRep_ID)); -} -/** Get Sales Representative. -@return Sales Representative or Company Agent */ -public int getSalesRep_ID() -{ -Integer ii = (Integer)get_Value("SalesRep_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name SalesRep_ID */ -public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID"; -/** Set Stylesheet. -@param Stylesheet CSS (Stylesheet) used */ -public void setStylesheet (String Stylesheet) -{ -if (Stylesheet != null && Stylesheet.length() > 60) -{ -log.warning("Length > 60 - truncated"); -Stylesheet = Stylesheet.substring(0,59); -} -set_Value ("Stylesheet", Stylesheet); -} -/** Get Stylesheet. -@return CSS (Stylesheet) used */ -public String getStylesheet() -{ -return (String)get_Value("Stylesheet"); -} -/** Column name Stylesheet */ -public static final String COLUMNNAME_Stylesheet = "Stylesheet"; -/** Set URL. -@param URL Full URL address - e.g. http://www.adempiere.org */ -public void setURL (String URL) -{ -if (URL == null) throw new IllegalArgumentException ("URL is mandatory."); -if (URL.length() > 120) -{ -log.warning("Length > 120 - truncated"); -URL = URL.substring(0,119); -} -set_Value ("URL", URL); -} -/** Get URL. -@return Full URL address - e.g. http://www.adempiere.org */ -public String getURL() -{ -return (String)get_Value("URL"); -} -/** Column name URL */ -public static final String COLUMNNAME_URL = "URL"; -/** Set Web Store EMail. -@param WStoreEMail EMail address used as the sender (From) */ -public void setWStoreEMail (String WStoreEMail) -{ -if (WStoreEMail != null && WStoreEMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -WStoreEMail = WStoreEMail.substring(0,59); -} -set_Value ("WStoreEMail", WStoreEMail); -} -/** Get Web Store EMail. -@return EMail address used as the sender (From) */ -public String getWStoreEMail() -{ -return (String)get_Value("WStoreEMail"); -} -/** Column name WStoreEMail */ -public static final String COLUMNNAME_WStoreEMail = "WStoreEMail"; -/** Set WebStore User. -@param WStoreUser User ID of the Web Store EMail address */ -public void setWStoreUser (String WStoreUser) -{ -if (WStoreUser != null && WStoreUser.length() > 60) -{ -log.warning("Length > 60 - truncated"); -WStoreUser = WStoreUser.substring(0,59); -} -set_Value ("WStoreUser", WStoreUser); -} -/** Get WebStore User. -@return User ID of the Web Store EMail address */ -public String getWStoreUser() -{ -return (String)get_Value("WStoreUser"); -} -/** Column name WStoreUser */ -public static final String COLUMNNAME_WStoreUser = "WStoreUser"; -/** Set WebStore Password. -@param WStoreUserPW Password of the Web Store EMail address */ -public void setWStoreUserPW (String WStoreUserPW) -{ -if (WStoreUserPW != null && WStoreUserPW.length() > 20) -{ -log.warning("Length > 20 - truncated"); -WStoreUserPW = WStoreUserPW.substring(0,19); -} -set_Value ("WStoreUserPW", WStoreUserPW); -} -/** Get WebStore Password. -@return Password of the Web Store EMail address */ -public String getWStoreUserPW() -{ -return (String)get_Value("WStoreUserPW"); -} -/** Column name WStoreUserPW */ -public static final String COLUMNNAME_WStoreUserPW = "WStoreUserPW"; -/** Set Web Store. -@param W_Store_ID A Web Store of the Client */ -public void setW_Store_ID (int W_Store_ID) -{ -if (W_Store_ID < 1) throw new IllegalArgumentException ("W_Store_ID is mandatory."); -set_ValueNoCheck ("W_Store_ID", Integer.valueOf(W_Store_ID)); -} -/** Get Web Store. -@return A Web Store of the Client */ -public int getW_Store_ID() -{ -Integer ii = (Integer)get_Value("W_Store_ID"); -if (ii == null) return 0; -return ii.intValue(); -} -/** Column name W_Store_ID */ -public static final String COLUMNNAME_W_Store_ID = "W_Store_ID"; -/** Set Web Context. -@param WebContext Web Server Context - e.g. /wstore */ -public void setWebContext (String WebContext) -{ -if (WebContext == null) throw new IllegalArgumentException ("WebContext is mandatory."); -if (WebContext.length() > 20) -{ -log.warning("Length > 20 - truncated"); -WebContext = WebContext.substring(0,19); -} -set_Value ("WebContext", WebContext); -} -/** Get Web Context. -@return Web Server Context - e.g. /wstore */ -public String getWebContext() -{ -return (String)get_Value("WebContext"); -} -/** Column name WebContext */ -public static final String COLUMNNAME_WebContext = "WebContext"; -/** Set Web Store Info. -@param WebInfo Web Store Header Information */ -public void setWebInfo (String WebInfo) -{ -if (WebInfo != null && WebInfo.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebInfo = WebInfo.substring(0,1999); -} -set_Value ("WebInfo", WebInfo); -} -/** Get Web Store Info. -@return Web Store Header Information */ -public String getWebInfo() -{ -return (String)get_Value("WebInfo"); -} -/** Column name WebInfo */ -public static final String COLUMNNAME_WebInfo = "WebInfo"; -/** Set Web Order EMail. -@param WebOrderEMail EMail address to receive notifications when web orders were processed */ -public void setWebOrderEMail (String WebOrderEMail) -{ -if (WebOrderEMail != null && WebOrderEMail.length() > 60) -{ -log.warning("Length > 60 - truncated"); -WebOrderEMail = WebOrderEMail.substring(0,59); -} -set_Value ("WebOrderEMail", WebOrderEMail); -} -/** Get Web Order EMail. -@return EMail address to receive notifications when web orders were processed */ -public String getWebOrderEMail() -{ -return (String)get_Value("WebOrderEMail"); -} -/** Column name WebOrderEMail */ -public static final String COLUMNNAME_WebOrderEMail = "WebOrderEMail"; -/** Set Web Parameter 1. -@param WebParam1 Web Site Parameter 1 (default: header image) */ -public void setWebParam1 (String WebParam1) -{ -if (WebParam1 != null && WebParam1.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam1 = WebParam1.substring(0,1999); -} -set_Value ("WebParam1", WebParam1); -} -/** Get Web Parameter 1. -@return Web Site Parameter 1 (default: header image) */ -public String getWebParam1() -{ -return (String)get_Value("WebParam1"); -} -/** Column name WebParam1 */ -public static final String COLUMNNAME_WebParam1 = "WebParam1"; -/** Set Web Parameter 2. -@param WebParam2 Web Site Parameter 2 (default index page) */ -public void setWebParam2 (String WebParam2) -{ -if (WebParam2 != null && WebParam2.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam2 = WebParam2.substring(0,1999); -} -set_Value ("WebParam2", WebParam2); -} -/** Get Web Parameter 2. -@return Web Site Parameter 2 (default index page) */ -public String getWebParam2() -{ -return (String)get_Value("WebParam2"); -} -/** Column name WebParam2 */ -public static final String COLUMNNAME_WebParam2 = "WebParam2"; -/** Set Web Parameter 3. -@param WebParam3 Web Site Parameter 3 (default left - menu) */ -public void setWebParam3 (String WebParam3) -{ -if (WebParam3 != null && WebParam3.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam3 = WebParam3.substring(0,1999); -} -set_Value ("WebParam3", WebParam3); -} -/** Get Web Parameter 3. -@return Web Site Parameter 3 (default left - menu) */ -public String getWebParam3() -{ -return (String)get_Value("WebParam3"); -} -/** Column name WebParam3 */ -public static final String COLUMNNAME_WebParam3 = "WebParam3"; -/** Set Web Parameter 4. -@param WebParam4 Web Site Parameter 4 (default footer left) */ -public void setWebParam4 (String WebParam4) -{ -if (WebParam4 != null && WebParam4.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam4 = WebParam4.substring(0,1999); -} -set_Value ("WebParam4", WebParam4); -} -/** Get Web Parameter 4. -@return Web Site Parameter 4 (default footer left) */ -public String getWebParam4() -{ -return (String)get_Value("WebParam4"); -} -/** Column name WebParam4 */ -public static final String COLUMNNAME_WebParam4 = "WebParam4"; -/** Set Web Parameter 5. -@param WebParam5 Web Site Parameter 5 (default footer center) */ -public void setWebParam5 (String WebParam5) -{ -if (WebParam5 != null && WebParam5.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam5 = WebParam5.substring(0,1999); -} -set_Value ("WebParam5", WebParam5); -} -/** Get Web Parameter 5. -@return Web Site Parameter 5 (default footer center) */ -public String getWebParam5() -{ -return (String)get_Value("WebParam5"); -} -/** Column name WebParam5 */ -public static final String COLUMNNAME_WebParam5 = "WebParam5"; -/** Set Web Parameter 6. -@param WebParam6 Web Site Parameter 6 (default footer right) */ -public void setWebParam6 (String WebParam6) -{ -if (WebParam6 != null && WebParam6.length() > 2000) -{ -log.warning("Length > 2000 - truncated"); -WebParam6 = WebParam6.substring(0,1999); -} -set_Value ("WebParam6", WebParam6); -} -/** Get Web Parameter 6. -@return Web Site Parameter 6 (default footer right) */ -public String getWebParam6() -{ -return (String)get_Value("WebParam6"); -} -/** Column name WebParam6 */ -public static final String COLUMNNAME_WebParam6 = "WebParam6"; -} + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); + } + + /** Get Sales Representative. + @return Sales Representative or Company Agent + */ + public int getSalesRep_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Stylesheet. + @param Stylesheet + CSS (Stylesheet) used + */ + public void setStylesheet (String Stylesheet) + { + if (Stylesheet != null && Stylesheet.length() > 60) + { + log.warning("Length > 60 - truncated"); + Stylesheet = Stylesheet.substring(0, 59); + } + set_Value (COLUMNNAME_Stylesheet, Stylesheet); + } + + /** Get Stylesheet. + @return CSS (Stylesheet) used + */ + public String getStylesheet () + { + return (String)get_Value(COLUMNNAME_Stylesheet); + } + + /** Set URL. + @param URL + Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL) + { + if (URL == null) + throw new IllegalArgumentException ("URL is mandatory."); + if (URL.length() > 120) + { + log.warning("Length > 120 - truncated"); + URL = URL.substring(0, 119); + } + set_Value (COLUMNNAME_URL, URL); + } + + /** Get URL. + @return Full URL address - e.g. http://www.adempiere.org + */ + public String getURL () + { + return (String)get_Value(COLUMNNAME_URL); + } + + /** Set Web Store EMail. + @param WStoreEMail + EMail address used as the sender (From) + */ + public void setWStoreEMail (String WStoreEMail) + { + if (WStoreEMail != null && WStoreEMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + WStoreEMail = WStoreEMail.substring(0, 59); + } + set_Value (COLUMNNAME_WStoreEMail, WStoreEMail); + } + + /** Get Web Store EMail. + @return EMail address used as the sender (From) + */ + public String getWStoreEMail () + { + return (String)get_Value(COLUMNNAME_WStoreEMail); + } + + /** Set WebStore User. + @param WStoreUser + User ID of the Web Store EMail address + */ + public void setWStoreUser (String WStoreUser) + { + if (WStoreUser != null && WStoreUser.length() > 60) + { + log.warning("Length > 60 - truncated"); + WStoreUser = WStoreUser.substring(0, 59); + } + set_Value (COLUMNNAME_WStoreUser, WStoreUser); + } + + /** Get WebStore User. + @return User ID of the Web Store EMail address + */ + public String getWStoreUser () + { + return (String)get_Value(COLUMNNAME_WStoreUser); + } + + /** Set WebStore Password. + @param WStoreUserPW + Password of the Web Store EMail address + */ + public void setWStoreUserPW (String WStoreUserPW) + { + if (WStoreUserPW != null && WStoreUserPW.length() > 20) + { + log.warning("Length > 20 - truncated"); + WStoreUserPW = WStoreUserPW.substring(0, 19); + } + set_Value (COLUMNNAME_WStoreUserPW, WStoreUserPW); + } + + /** Get WebStore Password. + @return Password of the Web Store EMail address + */ + public String getWStoreUserPW () + { + return (String)get_Value(COLUMNNAME_WStoreUserPW); + } + + /** Set Web Store. + @param W_Store_ID + A Web Store of the Client + */ + public void setW_Store_ID (int W_Store_ID) + { + if (W_Store_ID < 1) + throw new IllegalArgumentException ("W_Store_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_W_Store_ID, Integer.valueOf(W_Store_ID)); + } + + /** Get Web Store. + @return A Web Store of the Client + */ + public int getW_Store_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_W_Store_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Web Context. + @param WebContext + Web Server Context - e.g. /wstore + */ + public void setWebContext (String WebContext) + { + if (WebContext == null) + throw new IllegalArgumentException ("WebContext is mandatory."); + if (WebContext.length() > 20) + { + log.warning("Length > 20 - truncated"); + WebContext = WebContext.substring(0, 19); + } + set_Value (COLUMNNAME_WebContext, WebContext); + } + + /** Get Web Context. + @return Web Server Context - e.g. /wstore + */ + public String getWebContext () + { + return (String)get_Value(COLUMNNAME_WebContext); + } + + /** Set Web Store Info. + @param WebInfo + Web Store Header Information + */ + public void setWebInfo (String WebInfo) + { + if (WebInfo != null && WebInfo.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebInfo = WebInfo.substring(0, 1999); + } + set_Value (COLUMNNAME_WebInfo, WebInfo); + } + + /** Get Web Store Info. + @return Web Store Header Information + */ + public String getWebInfo () + { + return (String)get_Value(COLUMNNAME_WebInfo); + } + + /** Set Web Order EMail. + @param WebOrderEMail + EMail address to receive notifications when web orders were processed + */ + public void setWebOrderEMail (String WebOrderEMail) + { + if (WebOrderEMail != null && WebOrderEMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + WebOrderEMail = WebOrderEMail.substring(0, 59); + } + set_Value (COLUMNNAME_WebOrderEMail, WebOrderEMail); + } + + /** Get Web Order EMail. + @return EMail address to receive notifications when web orders were processed + */ + public String getWebOrderEMail () + { + return (String)get_Value(COLUMNNAME_WebOrderEMail); + } + + /** Set Web Parameter 1. + @param WebParam1 + Web Site Parameter 1 (default: header image) + */ + public void setWebParam1 (String WebParam1) + { + if (WebParam1 != null && WebParam1.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam1 = WebParam1.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam1, WebParam1); + } + + /** Get Web Parameter 1. + @return Web Site Parameter 1 (default: header image) + */ + public String getWebParam1 () + { + return (String)get_Value(COLUMNNAME_WebParam1); + } + + /** Set Web Parameter 2. + @param WebParam2 + Web Site Parameter 2 (default index page) + */ + public void setWebParam2 (String WebParam2) + { + if (WebParam2 != null && WebParam2.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam2 = WebParam2.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam2, WebParam2); + } + + /** Get Web Parameter 2. + @return Web Site Parameter 2 (default index page) + */ + public String getWebParam2 () + { + return (String)get_Value(COLUMNNAME_WebParam2); + } + + /** Set Web Parameter 3. + @param WebParam3 + Web Site Parameter 3 (default left - menu) + */ + public void setWebParam3 (String WebParam3) + { + if (WebParam3 != null && WebParam3.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam3 = WebParam3.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam3, WebParam3); + } + + /** Get Web Parameter 3. + @return Web Site Parameter 3 (default left - menu) + */ + public String getWebParam3 () + { + return (String)get_Value(COLUMNNAME_WebParam3); + } + + /** Set Web Parameter 4. + @param WebParam4 + Web Site Parameter 4 (default footer left) + */ + public void setWebParam4 (String WebParam4) + { + if (WebParam4 != null && WebParam4.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam4 = WebParam4.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam4, WebParam4); + } + + /** Get Web Parameter 4. + @return Web Site Parameter 4 (default footer left) + */ + public String getWebParam4 () + { + return (String)get_Value(COLUMNNAME_WebParam4); + } + + /** Set Web Parameter 5. + @param WebParam5 + Web Site Parameter 5 (default footer center) + */ + public void setWebParam5 (String WebParam5) + { + if (WebParam5 != null && WebParam5.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam5 = WebParam5.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam5, WebParam5); + } + + /** Get Web Parameter 5. + @return Web Site Parameter 5 (default footer center) + */ + public String getWebParam5 () + { + return (String)get_Value(COLUMNNAME_WebParam5); + } + + /** Set Web Parameter 6. + @param WebParam6 + Web Site Parameter 6 (default footer right) + */ + public void setWebParam6 (String WebParam6) + { + if (WebParam6 != null && WebParam6.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + WebParam6 = WebParam6.substring(0, 1999); + } + set_Value (COLUMNNAME_WebParam6, WebParam6); + } + + /** Get Web Parameter 6. + @return Web Site Parameter 6 (default footer right) + */ + public String getWebParam6 () + { + return (String)get_Value(COLUMNNAME_WebParam6); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/util/GenerateModel.java b/base/src/org/compiere/util/GenerateModel.java deleted file mode 100644 index 3a48f3c53e..0000000000 --- a/base/src/org/compiere/util/GenerateModel.java +++ /dev/null @@ -1,874 +0,0 @@ -/****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * - * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * - * This program is free software; you can redistribute it and/or modify it * - * under the terms version 2 of the GNU General Public License as published * - * by the Free Software Foundation. This program is distributed in the hope * - * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along * - * with this program; if not, write to the Free Software Foundation, Inc., * - * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * - * For the text or an alternative of this public license, you may reach us * - * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * - * or via info@compiere.org or http://www.compiere.org/license.html * - * Contributor(s): Carlos Ruiz - globalqss * - * Teo Sarca - *****************************************************************************/ -package org.compiere.util; - -import java.io.*; -import java.math.*; -import java.sql.*; -import java.util.logging.*; -import org.compiere.*; - -/** - * Generate Model Classes extending PO. - * Base class for CMP interface - will be extended to create byte code directly - * - * @author Jorg Janke - * @version $Id: GenerateModel.java,v 1.5 2006/07/30 00:54:36 jjanke Exp $ - * - * globalqss - Grant independence to GenerateModel from AD_Table_ID - * globalqss - Filter by table (LIKE) - * - * globalqss - integrate Teo Sarca hint [ 1617928 ] Ineficient use of Boolean ctor for gen. model - * teo_sarca - bug fix [ 1651801 ] GenerateModel: duplicate "getKeyNamePair" methods - * teo_sarca - feature request [ 1662447 ] Add column names in model classes - * trifon - Cotribution [1770528] Reuse COLUMNAME_ property - */ -public class GenerateModel -{ - /** - * Generate PO Class - * @param AD_Table_ID table id - * @param directory directory with \ or / at the end. - * @param packageName package name - */ - public GenerateModel (int AD_Table_ID, String directory, String packageName) - { - // create column access methods - StringBuffer mandatory = new StringBuffer(); - StringBuffer sb = createColumns(AD_Table_ID, mandatory); - // add header stuff - String tableName = createHeader(AD_Table_ID, sb, mandatory, packageName); - // Save it - writeToFile (sb, directory + tableName + ".java"); - } // GenerateModel - - /** File Header */ - public static final String COPY = - "/******************************************************************************\n" - +" * Product: Adempiere ERP & CRM Smart Business Solution *\n" - +" * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *\n" - +" * This program is free software; you can redistribute it and/or modify it *\n" - +" * under the terms version 2 of the GNU General Public License as published *\n" - +" * by the Free Software Foundation. This program is distributed in the hope *\n" - +" * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *\n" - +" * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *\n" - +" * See the GNU General Public License for more details. *\n" - +" * You should have received a copy of the GNU General Public License along *\n" - +" * with this program; if not, write to the Free Software Foundation, Inc., *\n" - +" * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *\n" - +" * For the text or an alternative of this public license, you may reach us *\n" - +" * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *\n" - +" * or via info@compiere.org or http://www.compiere.org/license.html *\n" - +" *****************************************************************************/\n"; - - /** Generated on */ - //private Timestamp s_run = new Timestamp(System.currentTimeMillis()); - - /** Logger */ - private static CLogger log = CLogger.getCLogger (GenerateModel.class); - - /** - * Add Header info to buffer - * @param AD_Table_ID table - * @param sb buffer - * @param mandatory init call for mandatory columns - * @param packageName package name - * @return class name - */ - private String createHeader (int AD_Table_ID, StringBuffer sb, StringBuffer mandatory, String packageName) - { - String tableName = ""; - int accessLevel = 0; - String sql = "SELECT TableName, AccessLevel FROM AD_Table WHERE AD_Table_ID=?"; - PreparedStatement pstmt = null; - try - { - pstmt = DB.prepareStatement(sql, null); - pstmt.setInt(1, AD_Table_ID); - ResultSet rs = pstmt.executeQuery(); - if (rs.next()) - { - tableName = rs.getString(1); - accessLevel = rs.getInt(2); - } - rs.close(); - pstmt.close(); - pstmt = null; - } - catch (Exception e) - { - log.log(Level.SEVERE, sql, e); - } - finally - { - try - { - if (pstmt != null) - pstmt.close (); - } - catch (Exception e) - {} - pstmt = null; - } - if (tableName == null) - throw new RuntimeException ("TableName not found for ID=" + AD_Table_ID); - // - String accessLevelInfo = accessLevel + " "; - if (accessLevel >= 4 ) - accessLevelInfo += "- System "; - if (accessLevel == 2 || accessLevel == 3 || accessLevel == 6 || accessLevel == 7) - accessLevelInfo += "- Client "; - if (accessLevel == 1 || accessLevel == 3 || accessLevel == 5 || accessLevel == 7) - accessLevelInfo += "- Org "; - - String keyColumn = tableName + "_ID"; - String className = "X_" + tableName; - // - StringBuffer start = new StringBuffer () - .append (COPY) - .append ("package " + packageName + ";\n" - + "/** Generated Model - DO NOT CHANGE */\n"); - if (!packageName.equals("org.compiere.model")) - start.append("import org.compiere.model.*;"); - start.append("import java.util.*;" - + "import java.sql.*;" - + "import java.math.*;" - + "import org.compiere.util.*;" - // Class - + "/** Generated Model for ").append(tableName).append("\n" - + " * @author Adempiere (generated) \n" - + " * @version ").append(Adempiere.MAIN_VERSION).append(" - $Id$") - // .append(s_run) // Timestamp - .append(" */\n" - + "public class ").append(className).append(" extends PO" - + "{" - // Standard Constructor - + "/** Standard Constructor\n@param ctx context\n@param " - + keyColumn + " id\n@param trxName transaction\n*/\n" - + "public ").append(className).append(" (Properties ctx, int ").append(keyColumn) - .append(", String trxName)" - + "{" - + "super (ctx, ").append(keyColumn).append(", trxName);" - + "/** if (").append(keyColumn).append(" == 0)" - + "{").append(mandatory).append("} */\n" - + "}" // Constructor End - // Short Constructor -// + "/** Short Constructor */\n" -// + "public ").append(className).append(" (Properties ctx, int ").append(keyColumn).append(")" -// + "{" -// + "this (ctx, ").append(keyColumn).append(", null);" -// + "}" // Constructor End - - // Load Constructor - + "/** Load Constructor \n@param ctx context\n@param rs result set \n@param trxName transaction\n*/\n" - + "public ").append(className).append(" (Properties ctx, ResultSet rs, String trxName)" - + "{" - + "super (ctx, rs, trxName);" - + "}" // Load Constructor End - // - // globalqss - Grant independence to GenerateModel from AD_Table_ID - + "/** TableName=").append(tableName).append(" */\n" - + "public static final String Table_Name=\"").append(tableName).append("\";\n" - + "/** AD_Table_ID=").append(AD_Table_ID).append(" */\n" - + "public static final int Table_ID = MTable.getTable_ID(Table_Name);\n" - // - // globalqss - + "protected static KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n" - // - + "protected BigDecimal accessLevel = BigDecimal.valueOf(").append(accessLevel).append(");" - + "/** AccessLevel\n@return ").append(accessLevelInfo).append("\n*/\n" - + "protected int get_AccessLevel()" - + "{" - + "return accessLevel.intValue();" - + "}" - // - + "/** Load Meta Data\n@param ctx context\n@return PO Info\n*/\n" - + "protected POInfo initPO (Properties ctx)" - + "{" - + "POInfo poi = POInfo.getPOInfo (ctx, Table_ID);" - + "return poi;" - + "}" // initPO - // - + "/** Info\n@return info\n*/\n" - + "public String toString()" - + "{" - + "StringBuffer sb = new StringBuffer (\"").append(className).append("[\")" - + ".append(get_ID()).append(\"]\");" - + "return sb.toString();" - + "}"); - - StringBuffer end = new StringBuffer ("}"); - // - sb.insert(0, start); - sb.append(end); - - return className; - } // createHeader - - - /** - * Create Column access methods - * @param AD_Table_ID table - * @param mandatory init call for mandatory columns - * @return set/get method - */ - private StringBuffer createColumns (int AD_Table_ID, StringBuffer mandatory) - { - StringBuffer sb = new StringBuffer(); - String sql = "SELECT c.ColumnName, c.IsUpdateable, c.IsMandatory," // 1..3 - + " c.AD_Reference_ID, c.AD_Reference_Value_ID, DefaultValue, SeqNo, " // 4..7 - + " c.FieldLength, c.ValueMin, c.ValueMax, c.VFormat, c.Callout, " // 8..12 - + " c.Name, c.Description, c.ColumnSQL, c.IsEncrypted, " // 13..16 - + " c.IsIdentifier " // 17 - + "FROM AD_Column c " - + "WHERE c.AD_Table_ID=?" - + " AND c.IsActive='Y'" - + " AND c.ColumnName <> 'AD_Client_ID'" - + " AND c.ColumnName <> 'AD_Org_ID'" - + " AND c.ColumnName <> 'IsActive'" - + " AND c.ColumnName NOT LIKE 'Created%'" - + " AND c.ColumnName NOT LIKE 'Updated%' " - + "ORDER BY c.ColumnName"; - boolean isKeyNamePairCreated = false; // true if the method "getKeyNamePair" is already generated - PreparedStatement pstmt = null; - try - { - pstmt = DB.prepareStatement(sql, null); - pstmt.setInt(1, AD_Table_ID); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) - { - String columnName = rs.getString(1); - boolean isUpdateable = "Y".equals(rs.getString(2)); - boolean isMandatory = "Y".equals(rs.getString(3)); - int displayType = rs.getInt(4); - int AD_Reference_Value_ID = rs.getInt(5); - String defaultValue = rs.getString(6); - int seqNo = rs.getInt(7); - int fieldLength = rs.getInt(8); - String ValueMin = rs.getString(9); - String ValueMax = rs.getString(10); - String VFormat = rs.getString(11); - String Callout = rs.getString(12); - String Name = rs.getString(13); - String Description = rs.getString(14); - String ColumnSQL = rs.getString(15); - boolean virtualColumn = ColumnSQL != null && ColumnSQL.length() > 0; - boolean IsEncrypted = "Y".equals(rs.getString(16)); - - // Create COLUMNNAME_ property (teo_sarca, [ 1662447 ]) - // Reuse COLUMNAME_ property (Trifon, [1770528] ) - sb.append("/** Column name ").append(columnName).append(" */\n") - .append("public static final String COLUMNNAME_").append(columnName) - .append(" = \"").append(columnName).append("\";"); - - // - sb.append(createColumnMethods (mandatory, - columnName, isUpdateable, isMandatory, - displayType, AD_Reference_Value_ID, fieldLength, - defaultValue, ValueMin, ValueMax, VFormat, - Callout, Name, Description, virtualColumn, IsEncrypted)); - // - if (seqNo == 1 && "Y".equals(rs.getString("IsIdentifier"))) { - if (!isKeyNamePairCreated) { - sb.append(createKeyNamePair(columnName, displayType)); - isKeyNamePairCreated = true; - } - else { - throw new RuntimeException("More than one primary identifier found " - + " (AD_Table_ID=" + AD_Table_ID + ", ColumnName=" + columnName + ")"); - } - } - } - rs.close(); - pstmt.close(); - pstmt = null; - } - catch (Exception e) - { - log.log(Level.SEVERE, sql, e); - } - finally - { - try - { - if (pstmt != null) - pstmt.close (); - } - catch (Exception e) - {} - pstmt = null; - } - return sb; - } // createColumns - - /** - * Create set/get methods for column - * @param mandatory init call for mandatory columns - * @param columnName column name - * @param isUpdateable updateable - * @param isMandatory mandatory - * @param displayType display type - * @param AD_Reference_ID validation reference - * @param fieldLength int - * @param defaultValue default value - * @param ValueMin String - * @param ValueMax String - * @param VFormat String - * @param Callout String - * @param Name String - * @param Description String - * @param virtualColumn virtual column - * @param IsEncrypted stored encrypted - @return set/get method - */ - private String createColumnMethods (StringBuffer mandatory, - String columnName, boolean isUpdateable, boolean isMandatory, - int displayType, int AD_Reference_ID, int fieldLength, - String defaultValue, String ValueMin, String ValueMax, String VFormat, - String Callout, String Name, String Description, - boolean virtualColumn, boolean IsEncrypted) - { - // Clazz - Class clazz = DisplayType.getClass(displayType, true); - if (defaultValue == null) - defaultValue = ""; - if (DisplayType.isLOB(displayType)) // No length check for LOBs - fieldLength = 0; - - // Handle Posted - if (columnName.equalsIgnoreCase("Posted") - || columnName.equalsIgnoreCase("Processed") - || columnName.equalsIgnoreCase("Processing")) - { - clazz = Boolean.class; - AD_Reference_ID = 0; - } - // Record_ID - else if (columnName.equalsIgnoreCase("Record_ID")) - { - clazz = Integer.class; - AD_Reference_ID = 0; - } - // String Key - else if (columnName.equalsIgnoreCase("AD_Language") - || columnName.equalsIgnoreCase("EntityType")) - { - clazz = String.class; - } - // Data Type - String dataType = clazz.getName(); - dataType = dataType.substring(dataType.lastIndexOf('.')+1); - if (dataType.equals("Boolean")) - dataType = "boolean"; - else if (dataType.equals("Integer")) - dataType = "int"; - else if (displayType == DisplayType.Binary) - dataType = "byte[]"; - - - StringBuffer sb = new StringBuffer(); - // ****** Set Comment ****** - sb.append("/** Set ").append(Name); - sb.append(".\n@param ").append(columnName).append(" "); - if (Description != null && Description.length() > 0) - sb.append(Description); - else - sb.append(Name); - sb.append(" */\n"); - - // Set ******** - String setValue = "set_Value"; - if (IsEncrypted) - setValue = "set_ValueE"; - // public void setColumn (xxx variable) - sb.append("public "); - if (!isUpdateable) - { - setValue = "set_ValueNoCheck"; - if (IsEncrypted) - setValue = "set_ValueNoCheckE"; - } - sb.append("void set").append(columnName).append(" (").append(dataType).append(" ").append(columnName).append(")" - + "{"); - // List Validation - if (AD_Reference_ID != 0) - { - String staticVar = addListValidation (sb, AD_Reference_ID, columnName, !isMandatory); - sb.insert(0, staticVar); // first check - } - // setValue ("ColumnName", xx); - if (virtualColumn) - { - sb.append ("throw new IllegalArgumentException (\"").append(columnName).append(" is virtual column\");"); - } - // Integer - else if (clazz.equals(Integer.class)) - { - if (columnName.endsWith("_ID")) - { - if (isMandatory) // check mandatory ID - { - int firstOK = 1; // Valid ID 0 - if (columnName.equals("AD_Client_ID") || columnName.equals("AD_Org_ID") - || columnName.equals("Record_ID") || columnName.equals("C_DocType_ID") - || columnName.equals("Node_ID") || columnName.equals("AD_Role_ID") - || columnName.equals("M_AttributeSet_ID") || columnName.equals("M_AttributeSetInstance_ID")) - firstOK = 0; - sb.append("if (").append (columnName) - .append (" < ").append(firstOK).append(") throw new IllegalArgumentException (\"") - .append(columnName).append(" is mandatory.\");"); - } - else // set optional _ID to null if 0 - sb.append("if (").append (columnName).append (" <= 0) ") - .append(setValue).append(" (").append ("COLUMNNAME_").append(columnName).append(", null); else \n"); - } - sb.append(setValue).append(" (").append ("COLUMNNAME_").append(columnName).append(", Integer.valueOf(").append(columnName).append("));"); - } - // Boolean - else if (clazz.equals(Boolean.class)) - sb.append(setValue).append(" (").append ("COLUMNNAME_").append(columnName).append(", Boolean.valueOf(").append(columnName).append("));"); - else - { - if (isMandatory && AD_Reference_ID == 0) // does not apply to int/boolean - { - sb.append("if (") - .append (columnName).append (" == null)" - + " throw new IllegalArgumentException (\"") - .append(columnName).append(" is mandatory.\");"); - } - // String length check - if (clazz.equals(String.class) && fieldLength > 0) - { - sb.append ("if ("); - if (!isMandatory) - sb.append(columnName).append(" != null && "); - sb.append(columnName).append(".length() > ").append(fieldLength) - .append("){log.warning(\"Length > ") - .append(fieldLength).append(" - truncated\");") - .append(columnName).append(" = ") - .append(columnName).append(".substring(0,").append(fieldLength-1).append(");}"); - } - - // - sb.append (setValue).append(" (").append ("COLUMNNAME_").append (columnName).append (", ") - .append (columnName).append (");"); - } - sb.append("}"); - - // Mandatory call in constructor - if (isMandatory) - { - mandatory.append("set").append(columnName).append(" ("); - if (clazz.equals(Integer.class)) - mandatory.append("0"); - else if (clazz.equals(Boolean.class)) - { - if (defaultValue.indexOf('Y') != -1) - mandatory.append(true); - else - mandatory.append("false"); - } - else if (clazz.equals(BigDecimal.class)) - mandatory.append("Env.ZERO"); - else if (clazz.equals(Timestamp.class)) - mandatory.append("new Timestamp(System.currentTimeMillis())"); - else - mandatory.append("null"); - mandatory.append(");"); - if (defaultValue.length() > 0) - mandatory.append("// ").append(defaultValue).append(Env.NL); - } - - - // ****** Get Comment ****** - sb.append("/** Get ").append(Name); - if (Description != null && Description.length() > 0) - sb.append(".\n@return ").append(Description); - else - sb.append(".\n@return ").append(Name); - sb.append(" */\n"); - - // Get ******** - String getValue = "get_Value"; - if (IsEncrypted) - getValue = "get_ValueE"; - sb.append("public ").append(dataType); - if (clazz.equals(Boolean.class)) - { - sb.append(" is"); - if (columnName.toLowerCase().startsWith("is")) - sb.append(columnName.substring(2)); - else - sb.append(columnName); - } - else - sb.append(" get").append(columnName); - sb.append("() {"); - if (clazz.equals(Integer.class)) - sb.append("Integer ii = (Integer)") - .append(getValue).append("(").append ("COLUMNNAME_").append(columnName).append(");" - + "if (ii == null)" - + " return 0;" - + "return ii.intValue();"); - else if (clazz.equals(BigDecimal.class)) - sb.append("BigDecimal bd = (BigDecimal)").append(getValue) - .append("(").append ("COLUMNNAME_").append(columnName).append(");" - + "if (bd == null)" - + " return Env.ZERO;" - + "return bd;"); - else if (clazz.equals(Boolean.class)) - sb.append("Object oo = ").append(getValue) - .append("(").append ("COLUMNNAME_").append(columnName).append(");" - + "if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return \"Y\".equals(oo);}" - + "return false;"); - else if (dataType.equals("Object")) - sb.append("return ").append(getValue) - .append("(").append ("COLUMNNAME_").append(columnName).append(");"); - else - sb.append("return (").append(dataType).append(")").append(getValue) - .append("(").append ("COLUMNNAME_").append(columnName).append(");"); - sb.append("}"); - // - return sb.toString(); - } // createColumnMethods - - - /** - * Add List Validation - * @param sb buffer - example: - if (NextAction.equals("N") || NextAction.equals("F")); - else throw new IllegalArgumentException ("NextAction Invalid value - Reference_ID=219 - N - F"); - * @param AD_Reference_ID reference - * @param columnName column - * @param nullable the validation must allow null values - * @return static parameter - Example: - public static final int NEXTACTION_AD_Reference_ID=219; - public static final String NEXTACTION_None = "N"; - public static final String NEXTACTION_FollowUp = "F"; - */ - private String addListValidation (StringBuffer sb, int AD_Reference_ID, - String columnName, boolean nullable) - { - StringBuffer retValue = new StringBuffer(); - retValue.append("\n/** ").append(columnName).append(" AD_Reference_ID=").append(AD_Reference_ID) .append(" */\n") - .append("public static final int ").append(columnName.toUpperCase()) - .append("_AD_Reference_ID=").append(AD_Reference_ID).append(";"); - // - boolean found = false; - StringBuffer values = new StringBuffer("Reference_ID=") - .append(AD_Reference_ID); - StringBuffer statement = new StringBuffer(); - if (nullable) - statement.append("if (").append(columnName).append(" == null"); - // - String sql = "SELECT Value, Name FROM AD_Ref_List WHERE AD_Reference_ID=?"; - PreparedStatement pstmt = null; - try - { - pstmt = DB.prepareStatement(sql, null); - pstmt.setInt(1, AD_Reference_ID); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) - { - String value = rs.getString(1); - values.append(" - ").append(value); - if (statement.length() == 0) - statement.append("if (").append(columnName) - .append(".equals(\"").append(value).append("\")"); - else - statement.append(" || ").append(columnName) - .append(".equals(\"").append(value).append("\")"); - // - if (!found) - { - found = true; - if (!nullable) - sb.append("if (") - .append (columnName).append (" == null)" - + " throw new IllegalArgumentException (\"") - .append(columnName).append(" is mandatory\");"); - } - - - // Name (SmallTalkNotation) - String name = rs.getString(2); - char[] nameArray = name.toCharArray(); - StringBuffer nameClean = new StringBuffer(); - boolean initCap = true; - for (int i = 0; i < nameArray.length; i++) - { - char c = nameArray[i]; - if (Character.isJavaIdentifierPart(c)) - { - if (initCap) - nameClean.append(Character.toUpperCase(c)); - else - nameClean.append(c); - initCap = false; - } - else - { - if (c == '+') - nameClean.append("Plus"); - else if (c == '-') - nameClean.append("_"); - else if (c == '>') - { - if (name.indexOf('<') == -1) // ignore - nameClean.append("Gt"); - } - else if (c == '<') - { - if (name.indexOf('>') == -1) // ignore - nameClean.append("Le"); - } - else if (c == '!') - nameClean.append("Not"); - else if (c == '=') - nameClean.append("Eq"); - else if (c == '~') - nameClean.append("Like"); - initCap = true; - } - } - retValue.append("/** ").append(name).append(" = ").append(value).append(" */\n"); - retValue.append("public static final String ").append(columnName.toUpperCase()) - .append("_").append(nameClean) - .append(" = \"").append(value).append("\";"); - } - rs.close(); - pstmt.close(); - pstmt = null; - } - catch (Exception e) - { - log.log(Level.SEVERE, sql, e); - found = false; - } - finally - { - try - { - if (pstmt != null) - pstmt.close (); - } - catch (Exception e) - {} - pstmt = null; - } - statement.append(")" - + "; " - + "else " - + "throw new IllegalArgumentException (\"").append(columnName) - .append(" Invalid value - \" + ").append(columnName) - .append(" + \" - ").append(values).append("\");"); - // - if (found && !columnName.equals("EntityType")) - sb.append (statement); - return retValue.toString(); - } // addListValidation - - /** - * Create getKeyNamePair() method with first identifier - * @param columnName name - * * @param displayType int - @return method code - */ - private StringBuffer createKeyNamePair (String columnName, int displayType) - { - String method = "get" + columnName + "()"; - if (displayType != DisplayType.String) - method = "String.valueOf(" + method + ")"; - StringBuffer sb = new StringBuffer("/** Get Record ID/ColumnName\n@return ID/ColumnName pair\n*/" - + "public KeyNamePair getKeyNamePair() " - + "{return new KeyNamePair(get_ID(), ").append(method).append(");}"); - return sb; - } // createKeyNamePair - - - /************************************************************************** - * Write to file - * @param sb string buffer - * @param fileName file name - */ - private void writeToFile (StringBuffer sb, String fileName) - { - try - { - File out = new File (fileName); - // FileWriter fw = new FileWriter (out); - // http://sourceforge.net/tracker/index.php?func=detail&aid=1629947&group_id=176962&atid=879332 - Writer fw = new OutputStreamWriter(new FileOutputStream(out, false), "UTF-8"); - for (int i = 0; i < sb.length(); i++) - { - char c = sb.charAt(i); - // after - if (c == ';' || c == '}') - { - fw.write (c); - if (sb.substring(i+1).startsWith("//")) - fw.write('\t'); - else - fw.write(Env.NL); - } - // before & after - else if (c == '{') - { - fw.write(Env.NL); - fw.write (c); - fw.write(Env.NL); - } - else - fw.write (c); - } - fw.flush (); - fw.close (); - float size = out.length(); - size /= 1024; - log.info(out.getAbsolutePath() + " - " + size + " kB"); - } - catch (Exception ex) - { - log.log(Level.SEVERE, fileName, ex); - } - } // writeToFile - - /** - * String representation - * @return string representation - */ - public String toString() - { - StringBuffer sb = new StringBuffer ("GenerateModel[") - .append("]"); - return sb.toString(); - } // toString - - - - /************************************************************************** - * Generate PO Model Class. - *
-	 * 	Example: java GenerateModel.class mydirectory myPackage 'U','A'
-	 * 	would generate entity type User and Application classes into mydirectory.
-	 * 	Without parameters, the default is used:
-	 * 	C:\Adempiere\adempiere-all\extend\src\adempiere\model\ adempiere.model 'U','A'
-	 * 	
- * @param args directory package entityType - * - directory where to save the generated file - * - package of the classes to be generated - * - entityType to be generated - */ - public static void main (String[] args) - { - org.compiere.Adempiere.startupEnvironment(true); - CLogMgt.setLevel(Level.FINE); - // CLogMgt.setLevel(Level.ALL); - log.info("Generate Model $Revision: 1.5 $"); - log.info("----------------------------------"); - // first parameter - String directory = "C:\\Adempiere\\adempiere-all\\extend\\src\\adempiere\\model\\"; - if (args.length > 0) - directory = args[0]; - if (directory == null || directory.length() == 0) - { - System.err.println("No Directory"); - System.exit(1); - } - log.info("Directory: " + directory); - - // second parameter - String packageName = "compiere.model"; - if (args.length > 1) - packageName = args[1]; - if (packageName == null || packageName.length() == 0) - { - System.err.println("No package"); - System.exit(1); - } - log.info("Package: " + packageName); - - // third parameter - String entityType = "'U','A'"; // User, Application - if (args.length > 2) - entityType = args[2]; - if (entityType == null || entityType.length() == 0) - { - System.err.println("No EntityType"); - System.exit(1); - } - StringBuffer sql = new StringBuffer("EntityType IN (") - .append(entityType).append(")"); - log.info(sql.toString()); - log.info("----------------------------------"); - - // globalqss - add filter LIKE table - String tableLike = "'%'"; // All tables - if (args.length > 3) - tableLike = args[3]; - log.info("Table Like: " + tableLike); - - // complete sql - sql.insert(0, "SELECT AD_Table_ID " - + "FROM AD_Table " - + "WHERE (TableName IN ('RV_WarehousePrice','RV_BPartner')" // special views - + " OR IsView='N')" - + " AND TableName NOT LIKE '%_Trl' AND "); - // globalqss - sql.append(" AND TableName LIKE ").append(tableLike); - // - sql.append(" ORDER BY TableName"); - - // - int count = 0; - PreparedStatement pstmt = null; - try - { - pstmt = DB.prepareStatement(sql.toString(), null); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) - { - new GenerateModel(rs.getInt(1), directory, packageName); - count++; - } - rs.close(); - pstmt.close(); - pstmt = null; - } - catch (Exception e) - { - log.severe("main - " + e); - } - finally - { - try - { - if (pstmt != null) - pstmt.close (); - } - catch (Exception e) - {} - pstmt = null; - } - log.info("Generated = " + count); - - } // main - -} // GenerateModel